autotool.patch 2.1 MB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893148941489514896148971489814899149001490114902149031490414905149061490714908149091491014911149121491314914149151491614917149181491914920149211492214923149241492514926149271492814929149301493114932149331493414935149361493714938149391494014941149421494314944149451494614947149481494914950149511495214953149541495514956149571495814959149601496114962149631496414965149661496714968149691497014971149721497314974149751497614977149781497914980149811498214983149841498514986149871498814989149901499114992149931499414995149961499714998149991500015001150021500315004150051500615007150081500915010150111501215013150141501515016150171501815019150201502115022150231502415025150261502715028150291503015031150321503315034150351503615037150381503915040150411504215043150441504515046150471504815049150501505115052150531505415055150561505715058150591506015061150621506315064150651506615067150681506915070150711507215073150741507515076150771507815079150801508115082150831508415085150861508715088150891509015091150921509315094150951509615097150981509915100151011510215103151041510515106151071510815109151101511115112151131511415115151161511715118151191512015121151221512315124151251512615127151281512915130151311513215133151341513515136151371513815139151401514115142151431514415145151461514715148151491515015151151521515315154151551515615157151581515915160151611516215163151641516515166151671516815169151701517115172151731517415175151761517715178151791518015181151821518315184151851518615187151881518915190151911519215193151941519515196151971519815199152001520115202152031520415205152061520715208152091521015211152121521315214152151521615217152181521915220152211522215223152241522515226152271522815229152301523115232152331523415235152361523715238152391524015241152421524315244152451524615247152481524915250152511525215253152541525515256152571525815259152601526115262152631526415265152661526715268152691527015271152721527315274152751527615277152781527915280152811528215283152841528515286152871528815289152901529115292152931529415295152961529715298152991530015301153021530315304153051530615307153081530915310153111531215313153141531515316153171531815319153201532115322153231532415325153261532715328153291533015331153321533315334153351533615337153381533915340153411534215343153441534515346153471534815349153501535115352153531535415355153561535715358153591536015361153621536315364153651536615367153681536915370153711537215373153741537515376153771537815379153801538115382153831538415385153861538715388153891539015391153921539315394153951539615397153981539915400154011540215403154041540515406154071540815409154101541115412154131541415415154161541715418154191542015421154221542315424154251542615427154281542915430154311543215433154341543515436154371543815439154401544115442154431544415445154461544715448154491545015451154521545315454154551545615457154581545915460154611546215463154641546515466154671546815469154701547115472154731547415475154761547715478154791548015481154821548315484154851548615487154881548915490154911549215493154941549515496154971549815499155001550115502155031550415505155061550715508155091551015511155121551315514155151551615517155181551915520155211552215523155241552515526155271552815529155301553115532155331553415535155361553715538155391554015541155421554315544155451554615547155481554915550155511555215553155541555515556155571555815559155601556115562155631556415565155661556715568155691557015571155721557315574155751557615577155781557915580155811558215583155841558515586155871558815589155901559115592155931559415595155961559715598155991560015601156021560315604156051560615607156081560915610156111561215613156141561515616156171561815619156201562115622156231562415625156261562715628156291563015631156321563315634156351563615637156381563915640156411564215643156441564515646156471564815649156501565115652156531565415655156561565715658156591566015661156621566315664156651566615667156681566915670156711567215673156741567515676156771567815679156801568115682156831568415685156861568715688156891569015691156921569315694156951569615697156981569915700157011570215703157041570515706157071570815709157101571115712157131571415715157161571715718157191572015721157221572315724157251572615727157281572915730157311573215733157341573515736157371573815739157401574115742157431574415745157461574715748157491575015751157521575315754157551575615757157581575915760157611576215763157641576515766157671576815769157701577115772157731577415775157761577715778157791578015781157821578315784157851578615787157881578915790157911579215793157941579515796157971579815799158001580115802158031580415805158061580715808158091581015811158121581315814158151581615817158181581915820158211582215823158241582515826158271582815829158301583115832158331583415835158361583715838158391584015841158421584315844158451584615847158481584915850158511585215853158541585515856158571585815859158601586115862158631586415865158661586715868158691587015871158721587315874158751587615877158781587915880158811588215883158841588515886158871588815889158901589115892158931589415895158961589715898158991590015901159021590315904159051590615907159081590915910159111591215913159141591515916159171591815919159201592115922159231592415925159261592715928159291593015931159321593315934159351593615937159381593915940159411594215943159441594515946159471594815949159501595115952159531595415955159561595715958159591596015961159621596315964159651596615967159681596915970159711597215973159741597515976159771597815979159801598115982159831598415985159861598715988159891599015991159921599315994159951599615997159981599916000160011600216003160041600516006160071600816009160101601116012160131601416015160161601716018160191602016021160221602316024160251602616027160281602916030160311603216033160341603516036160371603816039160401604116042160431604416045160461604716048160491605016051160521605316054160551605616057160581605916060160611606216063160641606516066160671606816069160701607116072160731607416075160761607716078160791608016081160821608316084160851608616087160881608916090160911609216093160941609516096160971609816099161001610116102161031610416105161061610716108161091611016111161121611316114161151611616117161181611916120161211612216123161241612516126161271612816129161301613116132161331613416135161361613716138161391614016141161421614316144161451614616147161481614916150161511615216153161541615516156161571615816159161601616116162161631616416165161661616716168161691617016171161721617316174161751617616177161781617916180161811618216183161841618516186161871618816189161901619116192161931619416195161961619716198161991620016201162021620316204162051620616207162081620916210162111621216213162141621516216162171621816219162201622116222162231622416225162261622716228162291623016231162321623316234162351623616237162381623916240162411624216243162441624516246162471624816249162501625116252162531625416255162561625716258162591626016261162621626316264162651626616267162681626916270162711627216273162741627516276162771627816279162801628116282162831628416285162861628716288162891629016291162921629316294162951629616297162981629916300163011630216303163041630516306163071630816309163101631116312163131631416315163161631716318163191632016321163221632316324163251632616327163281632916330163311633216333163341633516336163371633816339163401634116342163431634416345163461634716348163491635016351163521635316354163551635616357163581635916360163611636216363163641636516366163671636816369163701637116372163731637416375163761637716378163791638016381163821638316384163851638616387163881638916390163911639216393163941639516396163971639816399164001640116402164031640416405164061640716408164091641016411164121641316414164151641616417164181641916420164211642216423164241642516426164271642816429164301643116432164331643416435164361643716438164391644016441164421644316444164451644616447164481644916450164511645216453164541645516456164571645816459164601646116462164631646416465164661646716468164691647016471164721647316474164751647616477164781647916480164811648216483164841648516486164871648816489164901649116492164931649416495164961649716498164991650016501165021650316504165051650616507165081650916510165111651216513165141651516516165171651816519165201652116522165231652416525165261652716528165291653016531165321653316534165351653616537165381653916540165411654216543165441654516546165471654816549165501655116552165531655416555165561655716558165591656016561165621656316564165651656616567165681656916570165711657216573165741657516576165771657816579165801658116582165831658416585165861658716588165891659016591165921659316594165951659616597165981659916600166011660216603166041660516606166071660816609166101661116612166131661416615166161661716618166191662016621166221662316624166251662616627166281662916630166311663216633166341663516636166371663816639166401664116642166431664416645166461664716648166491665016651166521665316654166551665616657166581665916660166611666216663166641666516666166671666816669166701667116672166731667416675166761667716678166791668016681166821668316684166851668616687166881668916690166911669216693166941669516696166971669816699167001670116702167031670416705167061670716708167091671016711167121671316714167151671616717167181671916720167211672216723167241672516726167271672816729167301673116732167331673416735167361673716738167391674016741167421674316744167451674616747167481674916750167511675216753167541675516756167571675816759167601676116762167631676416765167661676716768167691677016771167721677316774167751677616777167781677916780167811678216783167841678516786167871678816789167901679116792167931679416795167961679716798167991680016801168021680316804168051680616807168081680916810168111681216813168141681516816168171681816819168201682116822168231682416825168261682716828168291683016831168321683316834168351683616837168381683916840168411684216843168441684516846168471684816849168501685116852168531685416855168561685716858168591686016861168621686316864168651686616867168681686916870168711687216873168741687516876168771687816879168801688116882168831688416885168861688716888168891689016891168921689316894168951689616897168981689916900169011690216903169041690516906169071690816909169101691116912169131691416915169161691716918169191692016921169221692316924169251692616927169281692916930169311693216933169341693516936169371693816939169401694116942169431694416945169461694716948169491695016951169521695316954169551695616957169581695916960169611696216963169641696516966169671696816969169701697116972169731697416975169761697716978169791698016981169821698316984169851698616987169881698916990169911699216993169941699516996169971699816999170001700117002170031700417005170061700717008170091701017011170121701317014170151701617017170181701917020170211702217023170241702517026170271702817029170301703117032170331703417035170361703717038170391704017041170421704317044170451704617047170481704917050170511705217053170541705517056170571705817059170601706117062170631706417065170661706717068170691707017071170721707317074170751707617077170781707917080170811708217083170841708517086170871708817089170901709117092170931709417095170961709717098170991710017101171021710317104171051710617107171081710917110171111711217113171141711517116171171711817119171201712117122171231712417125171261712717128171291713017131171321713317134171351713617137171381713917140171411714217143171441714517146171471714817149171501715117152171531715417155171561715717158171591716017161171621716317164171651716617167171681716917170171711717217173171741717517176171771717817179171801718117182171831718417185171861718717188171891719017191171921719317194171951719617197171981719917200172011720217203172041720517206172071720817209172101721117212172131721417215172161721717218172191722017221172221722317224172251722617227172281722917230172311723217233172341723517236172371723817239172401724117242172431724417245172461724717248172491725017251172521725317254172551725617257172581725917260172611726217263172641726517266172671726817269172701727117272172731727417275172761727717278172791728017281172821728317284172851728617287172881728917290172911729217293172941729517296172971729817299173001730117302173031730417305173061730717308173091731017311173121731317314173151731617317173181731917320173211732217323173241732517326173271732817329173301733117332173331733417335173361733717338173391734017341173421734317344173451734617347173481734917350173511735217353173541735517356173571735817359173601736117362173631736417365173661736717368173691737017371173721737317374173751737617377173781737917380173811738217383173841738517386173871738817389173901739117392173931739417395173961739717398173991740017401174021740317404174051740617407174081740917410174111741217413174141741517416174171741817419174201742117422174231742417425174261742717428174291743017431174321743317434174351743617437174381743917440174411744217443174441744517446174471744817449174501745117452174531745417455174561745717458174591746017461174621746317464174651746617467174681746917470174711747217473174741747517476174771747817479174801748117482174831748417485174861748717488174891749017491174921749317494174951749617497174981749917500175011750217503175041750517506175071750817509175101751117512175131751417515175161751717518175191752017521175221752317524175251752617527175281752917530175311753217533175341753517536175371753817539175401754117542175431754417545175461754717548175491755017551175521755317554175551755617557175581755917560175611756217563175641756517566175671756817569175701757117572175731757417575175761757717578175791758017581175821758317584175851758617587175881758917590175911759217593175941759517596175971759817599176001760117602176031760417605176061760717608176091761017611176121761317614176151761617617176181761917620176211762217623176241762517626176271762817629176301763117632176331763417635176361763717638176391764017641176421764317644176451764617647176481764917650176511765217653176541765517656176571765817659176601766117662176631766417665176661766717668176691767017671176721767317674176751767617677176781767917680176811768217683176841768517686176871768817689176901769117692176931769417695176961769717698176991770017701177021770317704177051770617707177081770917710177111771217713177141771517716177171771817719177201772117722177231772417725177261772717728177291773017731177321773317734177351773617737177381773917740177411774217743177441774517746177471774817749177501775117752177531775417755177561775717758177591776017761177621776317764177651776617767177681776917770177711777217773177741777517776177771777817779177801778117782177831778417785177861778717788177891779017791177921779317794177951779617797177981779917800178011780217803178041780517806178071780817809178101781117812178131781417815178161781717818178191782017821178221782317824178251782617827178281782917830178311783217833178341783517836178371783817839178401784117842178431784417845178461784717848178491785017851178521785317854178551785617857178581785917860178611786217863178641786517866178671786817869178701787117872178731787417875178761787717878178791788017881178821788317884178851788617887178881788917890178911789217893178941789517896178971789817899179001790117902179031790417905179061790717908179091791017911179121791317914179151791617917179181791917920179211792217923179241792517926179271792817929179301793117932179331793417935179361793717938179391794017941179421794317944179451794617947179481794917950179511795217953179541795517956179571795817959179601796117962179631796417965179661796717968179691797017971179721797317974179751797617977179781797917980179811798217983179841798517986179871798817989179901799117992179931799417995179961799717998179991800018001180021800318004180051800618007180081800918010180111801218013180141801518016180171801818019180201802118022180231802418025180261802718028180291803018031180321803318034180351803618037180381803918040180411804218043180441804518046180471804818049180501805118052180531805418055180561805718058180591806018061180621806318064180651806618067180681806918070180711807218073180741807518076180771807818079180801808118082180831808418085180861808718088180891809018091180921809318094180951809618097180981809918100181011810218103181041810518106181071810818109181101811118112181131811418115181161811718118181191812018121181221812318124181251812618127181281812918130181311813218133181341813518136181371813818139181401814118142181431814418145181461814718148181491815018151181521815318154181551815618157181581815918160181611816218163181641816518166181671816818169181701817118172181731817418175181761817718178181791818018181181821818318184181851818618187181881818918190181911819218193181941819518196181971819818199182001820118202182031820418205182061820718208182091821018211182121821318214182151821618217182181821918220182211822218223182241822518226182271822818229182301823118232182331823418235182361823718238182391824018241182421824318244182451824618247182481824918250182511825218253182541825518256182571825818259182601826118262182631826418265182661826718268182691827018271182721827318274182751827618277182781827918280182811828218283182841828518286182871828818289182901829118292182931829418295182961829718298182991830018301183021830318304183051830618307183081830918310183111831218313183141831518316183171831818319183201832118322183231832418325183261832718328183291833018331183321833318334183351833618337183381833918340183411834218343183441834518346183471834818349183501835118352183531835418355183561835718358183591836018361183621836318364183651836618367183681836918370183711837218373183741837518376183771837818379183801838118382183831838418385183861838718388183891839018391183921839318394183951839618397183981839918400184011840218403184041840518406184071840818409184101841118412184131841418415184161841718418184191842018421184221842318424184251842618427184281842918430184311843218433184341843518436184371843818439184401844118442184431844418445184461844718448184491845018451184521845318454184551845618457184581845918460184611846218463184641846518466184671846818469184701847118472184731847418475184761847718478184791848018481184821848318484184851848618487184881848918490184911849218493184941849518496184971849818499185001850118502185031850418505185061850718508185091851018511185121851318514185151851618517185181851918520185211852218523185241852518526185271852818529185301853118532185331853418535185361853718538185391854018541185421854318544185451854618547185481854918550185511855218553185541855518556185571855818559185601856118562185631856418565185661856718568185691857018571185721857318574185751857618577185781857918580185811858218583185841858518586185871858818589185901859118592185931859418595185961859718598185991860018601186021860318604186051860618607186081860918610186111861218613186141861518616186171861818619186201862118622186231862418625186261862718628186291863018631186321863318634186351863618637186381863918640186411864218643186441864518646186471864818649186501865118652186531865418655186561865718658186591866018661186621866318664186651866618667186681866918670186711867218673186741867518676186771867818679186801868118682186831868418685186861868718688186891869018691186921869318694186951869618697186981869918700187011870218703187041870518706187071870818709187101871118712187131871418715187161871718718187191872018721187221872318724187251872618727187281872918730187311873218733187341873518736187371873818739187401874118742187431874418745187461874718748187491875018751187521875318754187551875618757187581875918760187611876218763187641876518766187671876818769187701877118772187731877418775187761877718778187791878018781187821878318784187851878618787187881878918790187911879218793187941879518796187971879818799188001880118802188031880418805188061880718808188091881018811188121881318814188151881618817188181881918820188211882218823188241882518826188271882818829188301883118832188331883418835188361883718838188391884018841188421884318844188451884618847188481884918850188511885218853188541885518856188571885818859188601886118862188631886418865188661886718868188691887018871188721887318874188751887618877188781887918880188811888218883188841888518886188871888818889188901889118892188931889418895188961889718898188991890018901189021890318904189051890618907189081890918910189111891218913189141891518916189171891818919189201892118922189231892418925189261892718928189291893018931189321893318934189351893618937189381893918940189411894218943189441894518946189471894818949189501895118952189531895418955189561895718958189591896018961189621896318964189651896618967189681896918970189711897218973189741897518976189771897818979189801898118982189831898418985189861898718988189891899018991189921899318994189951899618997189981899919000190011900219003190041900519006190071900819009190101901119012190131901419015190161901719018190191902019021190221902319024190251902619027190281902919030190311903219033190341903519036190371903819039190401904119042190431904419045190461904719048190491905019051190521905319054190551905619057190581905919060190611906219063190641906519066190671906819069190701907119072190731907419075190761907719078190791908019081190821908319084190851908619087190881908919090190911909219093190941909519096190971909819099191001910119102191031910419105191061910719108191091911019111191121911319114191151911619117191181911919120191211912219123191241912519126191271912819129191301913119132191331913419135191361913719138191391914019141191421914319144191451914619147191481914919150191511915219153191541915519156191571915819159191601916119162191631916419165191661916719168191691917019171191721917319174191751917619177191781917919180191811918219183191841918519186191871918819189191901919119192191931919419195191961919719198191991920019201192021920319204192051920619207192081920919210192111921219213192141921519216192171921819219192201922119222192231922419225192261922719228192291923019231192321923319234192351923619237192381923919240192411924219243192441924519246192471924819249192501925119252192531925419255192561925719258192591926019261192621926319264192651926619267192681926919270192711927219273192741927519276192771927819279192801928119282192831928419285192861928719288192891929019291192921929319294192951929619297192981929919300193011930219303193041930519306193071930819309193101931119312193131931419315193161931719318193191932019321193221932319324193251932619327193281932919330193311933219333193341933519336193371933819339193401934119342193431934419345193461934719348193491935019351193521935319354193551935619357193581935919360193611936219363193641936519366193671936819369193701937119372193731937419375193761937719378193791938019381193821938319384193851938619387193881938919390193911939219393193941939519396193971939819399194001940119402194031940419405194061940719408194091941019411194121941319414194151941619417194181941919420194211942219423194241942519426194271942819429194301943119432194331943419435194361943719438194391944019441194421944319444194451944619447194481944919450194511945219453194541945519456194571945819459194601946119462194631946419465194661946719468194691947019471194721947319474194751947619477194781947919480194811948219483194841948519486194871948819489194901949119492194931949419495194961949719498194991950019501195021950319504195051950619507195081950919510195111951219513195141951519516195171951819519195201952119522195231952419525195261952719528195291953019531195321953319534195351953619537195381953919540195411954219543195441954519546195471954819549195501955119552195531955419555195561955719558195591956019561195621956319564195651956619567195681956919570195711957219573195741957519576195771957819579195801958119582195831958419585195861958719588195891959019591195921959319594195951959619597195981959919600196011960219603196041960519606196071960819609196101961119612196131961419615196161961719618196191962019621196221962319624196251962619627196281962919630196311963219633196341963519636196371963819639196401964119642196431964419645196461964719648196491965019651196521965319654196551965619657196581965919660196611966219663196641966519666196671966819669196701967119672196731967419675196761967719678196791968019681196821968319684196851968619687196881968919690196911969219693196941969519696196971969819699197001970119702197031970419705197061970719708197091971019711197121971319714197151971619717197181971919720197211972219723197241972519726197271972819729197301973119732197331973419735197361973719738197391974019741197421974319744197451974619747197481974919750197511975219753197541975519756197571975819759197601976119762197631976419765197661976719768197691977019771197721977319774197751977619777197781977919780197811978219783197841978519786197871978819789197901979119792197931979419795197961979719798197991980019801198021980319804198051980619807198081980919810198111981219813198141981519816198171981819819198201982119822198231982419825198261982719828198291983019831198321983319834198351983619837198381983919840198411984219843198441984519846198471984819849198501985119852198531985419855198561985719858198591986019861198621986319864198651986619867198681986919870198711987219873198741987519876198771987819879198801988119882198831988419885198861988719888198891989019891198921989319894198951989619897198981989919900199011990219903199041990519906199071990819909199101991119912199131991419915199161991719918199191992019921199221992319924199251992619927199281992919930199311993219933199341993519936199371993819939199401994119942199431994419945199461994719948199491995019951199521995319954199551995619957199581995919960199611996219963199641996519966199671996819969199701997119972199731997419975199761997719978199791998019981199821998319984199851998619987199881998919990199911999219993199941999519996199971999819999200002000120002200032000420005200062000720008200092001020011200122001320014200152001620017200182001920020200212002220023200242002520026200272002820029200302003120032200332003420035200362003720038200392004020041200422004320044200452004620047200482004920050200512005220053200542005520056200572005820059200602006120062200632006420065200662006720068200692007020071200722007320074200752007620077200782007920080200812008220083200842008520086200872008820089200902009120092200932009420095200962009720098200992010020101201022010320104201052010620107201082010920110201112011220113201142011520116201172011820119201202012120122201232012420125201262012720128201292013020131201322013320134201352013620137201382013920140201412014220143201442014520146201472014820149201502015120152201532015420155201562015720158201592016020161201622016320164201652016620167201682016920170201712017220173201742017520176201772017820179201802018120182201832018420185201862018720188201892019020191201922019320194201952019620197201982019920200202012020220203202042020520206202072020820209202102021120212202132021420215202162021720218202192022020221202222022320224202252022620227202282022920230202312023220233202342023520236202372023820239202402024120242202432024420245202462024720248202492025020251202522025320254202552025620257202582025920260202612026220263202642026520266202672026820269202702027120272202732027420275202762027720278202792028020281202822028320284202852028620287202882028920290202912029220293202942029520296202972029820299203002030120302203032030420305203062030720308203092031020311203122031320314203152031620317203182031920320203212032220323203242032520326203272032820329203302033120332203332033420335203362033720338203392034020341203422034320344203452034620347203482034920350203512035220353203542035520356203572035820359203602036120362203632036420365203662036720368203692037020371203722037320374203752037620377203782037920380203812038220383203842038520386203872038820389203902039120392203932039420395203962039720398203992040020401204022040320404204052040620407204082040920410204112041220413204142041520416204172041820419204202042120422204232042420425204262042720428204292043020431204322043320434204352043620437204382043920440204412044220443204442044520446204472044820449204502045120452204532045420455204562045720458204592046020461204622046320464204652046620467204682046920470204712047220473204742047520476204772047820479204802048120482204832048420485204862048720488204892049020491204922049320494204952049620497204982049920500205012050220503205042050520506205072050820509205102051120512205132051420515205162051720518205192052020521205222052320524205252052620527205282052920530205312053220533205342053520536205372053820539205402054120542205432054420545205462054720548205492055020551205522055320554205552055620557205582055920560205612056220563205642056520566205672056820569205702057120572205732057420575205762057720578205792058020581205822058320584205852058620587205882058920590205912059220593205942059520596205972059820599206002060120602206032060420605206062060720608206092061020611206122061320614206152061620617206182061920620206212062220623206242062520626206272062820629206302063120632206332063420635206362063720638206392064020641206422064320644206452064620647206482064920650206512065220653206542065520656206572065820659206602066120662206632066420665206662066720668206692067020671206722067320674206752067620677206782067920680206812068220683206842068520686206872068820689206902069120692206932069420695206962069720698206992070020701207022070320704207052070620707207082070920710207112071220713207142071520716207172071820719207202072120722207232072420725207262072720728207292073020731207322073320734207352073620737207382073920740207412074220743207442074520746207472074820749207502075120752207532075420755207562075720758207592076020761207622076320764207652076620767207682076920770207712077220773207742077520776207772077820779207802078120782207832078420785207862078720788207892079020791207922079320794207952079620797207982079920800208012080220803208042080520806208072080820809208102081120812208132081420815208162081720818208192082020821208222082320824208252082620827208282082920830208312083220833208342083520836208372083820839208402084120842208432084420845208462084720848208492085020851208522085320854208552085620857208582085920860208612086220863208642086520866208672086820869208702087120872208732087420875208762087720878208792088020881208822088320884208852088620887208882088920890208912089220893208942089520896208972089820899209002090120902209032090420905209062090720908209092091020911209122091320914209152091620917209182091920920209212092220923209242092520926209272092820929209302093120932209332093420935209362093720938209392094020941209422094320944209452094620947209482094920950209512095220953209542095520956209572095820959209602096120962209632096420965209662096720968209692097020971209722097320974209752097620977209782097920980209812098220983209842098520986209872098820989209902099120992209932099420995209962099720998209992100021001210022100321004210052100621007210082100921010210112101221013210142101521016210172101821019210202102121022210232102421025210262102721028210292103021031210322103321034210352103621037210382103921040210412104221043210442104521046210472104821049210502105121052210532105421055210562105721058210592106021061210622106321064210652106621067210682106921070210712107221073210742107521076210772107821079210802108121082210832108421085210862108721088210892109021091210922109321094210952109621097210982109921100211012110221103211042110521106211072110821109211102111121112211132111421115211162111721118211192112021121211222112321124211252112621127211282112921130211312113221133211342113521136211372113821139211402114121142211432114421145211462114721148211492115021151211522115321154211552115621157211582115921160211612116221163211642116521166211672116821169211702117121172211732117421175211762117721178211792118021181211822118321184211852118621187211882118921190211912119221193211942119521196211972119821199212002120121202212032120421205212062120721208212092121021211212122121321214212152121621217212182121921220212212122221223212242122521226212272122821229212302123121232212332123421235212362123721238212392124021241212422124321244212452124621247212482124921250212512125221253212542125521256212572125821259212602126121262212632126421265212662126721268212692127021271212722127321274212752127621277212782127921280212812128221283212842128521286212872128821289212902129121292212932129421295212962129721298212992130021301213022130321304213052130621307213082130921310213112131221313213142131521316213172131821319213202132121322213232132421325213262132721328213292133021331213322133321334213352133621337213382133921340213412134221343213442134521346213472134821349213502135121352213532135421355213562135721358213592136021361213622136321364213652136621367213682136921370213712137221373213742137521376213772137821379213802138121382213832138421385213862138721388213892139021391213922139321394213952139621397213982139921400214012140221403214042140521406214072140821409214102141121412214132141421415214162141721418214192142021421214222142321424214252142621427214282142921430214312143221433214342143521436214372143821439214402144121442214432144421445214462144721448214492145021451214522145321454214552145621457214582145921460214612146221463214642146521466214672146821469214702147121472214732147421475214762147721478214792148021481214822148321484214852148621487214882148921490214912149221493214942149521496214972149821499215002150121502215032150421505215062150721508215092151021511215122151321514215152151621517215182151921520215212152221523215242152521526215272152821529215302153121532215332153421535215362153721538215392154021541215422154321544215452154621547215482154921550215512155221553215542155521556215572155821559215602156121562215632156421565215662156721568215692157021571215722157321574215752157621577215782157921580215812158221583215842158521586215872158821589215902159121592215932159421595215962159721598215992160021601216022160321604216052160621607216082160921610216112161221613216142161521616216172161821619216202162121622216232162421625216262162721628216292163021631216322163321634216352163621637216382163921640216412164221643216442164521646216472164821649216502165121652216532165421655216562165721658216592166021661216622166321664216652166621667216682166921670216712167221673216742167521676216772167821679216802168121682216832168421685216862168721688216892169021691216922169321694216952169621697216982169921700217012170221703217042170521706217072170821709217102171121712217132171421715217162171721718217192172021721217222172321724217252172621727217282172921730217312173221733217342173521736217372173821739217402174121742217432174421745217462174721748217492175021751217522175321754217552175621757217582175921760217612176221763217642176521766217672176821769217702177121772217732177421775217762177721778217792178021781217822178321784217852178621787217882178921790217912179221793217942179521796217972179821799218002180121802218032180421805218062180721808218092181021811218122181321814218152181621817218182181921820218212182221823218242182521826218272182821829218302183121832218332183421835218362183721838218392184021841218422184321844218452184621847218482184921850218512185221853218542185521856218572185821859218602186121862218632186421865218662186721868218692187021871218722187321874218752187621877218782187921880218812188221883218842188521886218872188821889218902189121892218932189421895218962189721898218992190021901219022190321904219052190621907219082190921910219112191221913219142191521916219172191821919219202192121922219232192421925219262192721928219292193021931219322193321934219352193621937219382193921940219412194221943219442194521946219472194821949219502195121952219532195421955219562195721958219592196021961219622196321964219652196621967219682196921970219712197221973219742197521976219772197821979219802198121982219832198421985219862198721988219892199021991219922199321994219952199621997219982199922000220012200222003220042200522006220072200822009220102201122012220132201422015220162201722018220192202022021220222202322024220252202622027220282202922030220312203222033220342203522036220372203822039220402204122042220432204422045220462204722048220492205022051220522205322054220552205622057220582205922060220612206222063220642206522066220672206822069220702207122072220732207422075220762207722078220792208022081220822208322084220852208622087220882208922090220912209222093220942209522096220972209822099221002210122102221032210422105221062210722108221092211022111221122211322114221152211622117221182211922120221212212222123221242212522126221272212822129221302213122132221332213422135221362213722138221392214022141221422214322144221452214622147221482214922150221512215222153221542215522156221572215822159221602216122162221632216422165221662216722168221692217022171221722217322174221752217622177221782217922180221812218222183221842218522186221872218822189221902219122192221932219422195221962219722198221992220022201222022220322204222052220622207222082220922210222112221222213222142221522216222172221822219222202222122222222232222422225222262222722228222292223022231222322223322234222352223622237222382223922240222412224222243222442224522246222472224822249222502225122252222532225422255222562225722258222592226022261222622226322264222652226622267222682226922270222712227222273222742227522276222772227822279222802228122282222832228422285222862228722288222892229022291222922229322294222952229622297222982229922300223012230222303223042230522306223072230822309223102231122312223132231422315223162231722318223192232022321223222232322324223252232622327223282232922330223312233222333223342233522336223372233822339223402234122342223432234422345223462234722348223492235022351223522235322354223552235622357223582235922360223612236222363223642236522366223672236822369223702237122372223732237422375223762237722378223792238022381223822238322384223852238622387223882238922390223912239222393223942239522396223972239822399224002240122402224032240422405224062240722408224092241022411224122241322414224152241622417224182241922420224212242222423224242242522426224272242822429224302243122432224332243422435224362243722438224392244022441224422244322444224452244622447224482244922450224512245222453224542245522456224572245822459224602246122462224632246422465224662246722468224692247022471224722247322474224752247622477224782247922480224812248222483224842248522486224872248822489224902249122492224932249422495224962249722498224992250022501225022250322504225052250622507225082250922510225112251222513225142251522516225172251822519225202252122522225232252422525225262252722528225292253022531225322253322534225352253622537225382253922540225412254222543225442254522546225472254822549225502255122552225532255422555225562255722558225592256022561225622256322564225652256622567225682256922570225712257222573225742257522576225772257822579225802258122582225832258422585225862258722588225892259022591225922259322594225952259622597225982259922600226012260222603226042260522606226072260822609226102261122612226132261422615226162261722618226192262022621226222262322624226252262622627226282262922630226312263222633226342263522636226372263822639226402264122642226432264422645226462264722648226492265022651226522265322654226552265622657226582265922660226612266222663226642266522666226672266822669226702267122672226732267422675226762267722678226792268022681226822268322684226852268622687226882268922690226912269222693226942269522696226972269822699227002270122702227032270422705227062270722708227092271022711227122271322714227152271622717227182271922720227212272222723227242272522726227272272822729227302273122732227332273422735227362273722738227392274022741227422274322744227452274622747227482274922750227512275222753227542275522756227572275822759227602276122762227632276422765227662276722768227692277022771227722277322774227752277622777227782277922780227812278222783227842278522786227872278822789227902279122792227932279422795227962279722798227992280022801228022280322804228052280622807228082280922810228112281222813228142281522816228172281822819228202282122822228232282422825228262282722828228292283022831228322283322834228352283622837228382283922840228412284222843228442284522846228472284822849228502285122852228532285422855228562285722858228592286022861228622286322864228652286622867228682286922870228712287222873228742287522876228772287822879228802288122882228832288422885228862288722888228892289022891228922289322894228952289622897228982289922900229012290222903229042290522906229072290822909229102291122912229132291422915229162291722918229192292022921229222292322924229252292622927229282292922930229312293222933229342293522936229372293822939229402294122942229432294422945229462294722948229492295022951229522295322954229552295622957229582295922960229612296222963229642296522966229672296822969229702297122972229732297422975229762297722978229792298022981229822298322984229852298622987229882298922990229912299222993229942299522996229972299822999230002300123002230032300423005230062300723008230092301023011230122301323014230152301623017230182301923020230212302223023230242302523026230272302823029230302303123032230332303423035230362303723038230392304023041230422304323044230452304623047230482304923050230512305223053230542305523056230572305823059230602306123062230632306423065230662306723068230692307023071230722307323074230752307623077230782307923080230812308223083230842308523086230872308823089230902309123092230932309423095230962309723098230992310023101231022310323104231052310623107231082310923110231112311223113231142311523116231172311823119231202312123122231232312423125231262312723128231292313023131231322313323134231352313623137231382313923140231412314223143231442314523146231472314823149231502315123152231532315423155231562315723158231592316023161231622316323164231652316623167231682316923170231712317223173231742317523176231772317823179231802318123182231832318423185231862318723188231892319023191231922319323194231952319623197231982319923200232012320223203232042320523206232072320823209232102321123212232132321423215232162321723218232192322023221232222322323224232252322623227232282322923230232312323223233232342323523236232372323823239232402324123242232432324423245232462324723248232492325023251232522325323254232552325623257232582325923260232612326223263232642326523266232672326823269232702327123272232732327423275232762327723278232792328023281232822328323284232852328623287232882328923290232912329223293232942329523296232972329823299233002330123302233032330423305233062330723308233092331023311233122331323314233152331623317233182331923320233212332223323233242332523326233272332823329233302333123332233332333423335233362333723338233392334023341233422334323344233452334623347233482334923350233512335223353233542335523356233572335823359233602336123362233632336423365233662336723368233692337023371233722337323374233752337623377233782337923380233812338223383233842338523386233872338823389233902339123392233932339423395233962339723398233992340023401234022340323404234052340623407234082340923410234112341223413234142341523416234172341823419234202342123422234232342423425234262342723428234292343023431234322343323434234352343623437234382343923440234412344223443234442344523446234472344823449234502345123452234532345423455234562345723458234592346023461234622346323464234652346623467234682346923470234712347223473234742347523476234772347823479234802348123482234832348423485234862348723488234892349023491234922349323494234952349623497234982349923500235012350223503235042350523506235072350823509235102351123512235132351423515235162351723518235192352023521235222352323524235252352623527235282352923530235312353223533235342353523536235372353823539235402354123542235432354423545235462354723548235492355023551235522355323554235552355623557235582355923560235612356223563235642356523566235672356823569235702357123572235732357423575235762357723578235792358023581235822358323584235852358623587235882358923590235912359223593235942359523596235972359823599236002360123602236032360423605236062360723608236092361023611236122361323614236152361623617236182361923620236212362223623236242362523626236272362823629236302363123632236332363423635236362363723638236392364023641236422364323644236452364623647236482364923650236512365223653236542365523656236572365823659236602366123662236632366423665236662366723668236692367023671236722367323674236752367623677236782367923680236812368223683236842368523686236872368823689236902369123692236932369423695236962369723698236992370023701237022370323704237052370623707237082370923710237112371223713237142371523716237172371823719237202372123722237232372423725237262372723728237292373023731237322373323734237352373623737237382373923740237412374223743237442374523746237472374823749237502375123752237532375423755237562375723758237592376023761237622376323764237652376623767237682376923770237712377223773237742377523776237772377823779237802378123782237832378423785237862378723788237892379023791237922379323794237952379623797237982379923800238012380223803238042380523806238072380823809238102381123812238132381423815238162381723818238192382023821238222382323824238252382623827238282382923830238312383223833238342383523836238372383823839238402384123842238432384423845238462384723848238492385023851238522385323854238552385623857238582385923860238612386223863238642386523866238672386823869238702387123872238732387423875238762387723878238792388023881238822388323884238852388623887238882388923890238912389223893238942389523896238972389823899239002390123902239032390423905239062390723908239092391023911239122391323914239152391623917239182391923920239212392223923239242392523926239272392823929239302393123932239332393423935239362393723938239392394023941239422394323944239452394623947239482394923950239512395223953239542395523956239572395823959239602396123962239632396423965239662396723968239692397023971239722397323974239752397623977239782397923980239812398223983239842398523986239872398823989239902399123992239932399423995239962399723998239992400024001240022400324004240052400624007240082400924010240112401224013240142401524016240172401824019240202402124022240232402424025240262402724028240292403024031240322403324034240352403624037240382403924040240412404224043240442404524046240472404824049240502405124052240532405424055240562405724058240592406024061240622406324064240652406624067240682406924070240712407224073240742407524076240772407824079240802408124082240832408424085240862408724088240892409024091240922409324094240952409624097240982409924100241012410224103241042410524106241072410824109241102411124112241132411424115241162411724118241192412024121241222412324124241252412624127241282412924130241312413224133241342413524136241372413824139241402414124142241432414424145241462414724148241492415024151241522415324154241552415624157241582415924160241612416224163241642416524166241672416824169241702417124172241732417424175241762417724178241792418024181241822418324184241852418624187241882418924190241912419224193241942419524196241972419824199242002420124202242032420424205242062420724208242092421024211242122421324214242152421624217242182421924220242212422224223242242422524226242272422824229242302423124232242332423424235242362423724238242392424024241242422424324244242452424624247242482424924250242512425224253242542425524256242572425824259242602426124262242632426424265242662426724268242692427024271242722427324274242752427624277242782427924280242812428224283242842428524286242872428824289242902429124292242932429424295242962429724298242992430024301243022430324304243052430624307243082430924310243112431224313243142431524316243172431824319243202432124322243232432424325243262432724328243292433024331243322433324334243352433624337243382433924340243412434224343243442434524346243472434824349243502435124352243532435424355243562435724358243592436024361243622436324364243652436624367243682436924370243712437224373243742437524376243772437824379243802438124382243832438424385243862438724388243892439024391243922439324394243952439624397243982439924400244012440224403244042440524406244072440824409244102441124412244132441424415244162441724418244192442024421244222442324424244252442624427244282442924430244312443224433244342443524436244372443824439244402444124442244432444424445244462444724448244492445024451244522445324454244552445624457244582445924460244612446224463244642446524466244672446824469244702447124472244732447424475244762447724478244792448024481244822448324484244852448624487244882448924490244912449224493244942449524496244972449824499245002450124502245032450424505245062450724508245092451024511245122451324514245152451624517245182451924520245212452224523245242452524526245272452824529245302453124532245332453424535245362453724538245392454024541245422454324544245452454624547245482454924550245512455224553245542455524556245572455824559245602456124562245632456424565245662456724568245692457024571245722457324574245752457624577245782457924580245812458224583245842458524586245872458824589245902459124592245932459424595245962459724598245992460024601246022460324604246052460624607246082460924610246112461224613246142461524616246172461824619246202462124622246232462424625246262462724628246292463024631246322463324634246352463624637246382463924640246412464224643246442464524646246472464824649246502465124652246532465424655246562465724658246592466024661246622466324664246652466624667246682466924670246712467224673246742467524676246772467824679246802468124682246832468424685246862468724688246892469024691246922469324694246952469624697246982469924700247012470224703247042470524706247072470824709247102471124712247132471424715247162471724718247192472024721247222472324724247252472624727247282472924730247312473224733247342473524736247372473824739247402474124742247432474424745247462474724748247492475024751247522475324754247552475624757247582475924760247612476224763247642476524766247672476824769247702477124772247732477424775247762477724778247792478024781247822478324784247852478624787247882478924790247912479224793247942479524796247972479824799248002480124802248032480424805248062480724808248092481024811248122481324814248152481624817248182481924820248212482224823248242482524826248272482824829248302483124832248332483424835248362483724838248392484024841248422484324844248452484624847248482484924850248512485224853248542485524856248572485824859248602486124862248632486424865248662486724868248692487024871248722487324874248752487624877248782487924880248812488224883248842488524886248872488824889248902489124892248932489424895248962489724898248992490024901249022490324904249052490624907249082490924910249112491224913249142491524916249172491824919249202492124922249232492424925249262492724928249292493024931249322493324934249352493624937249382493924940249412494224943249442494524946249472494824949249502495124952249532495424955249562495724958249592496024961249622496324964249652496624967249682496924970249712497224973249742497524976249772497824979249802498124982249832498424985249862498724988249892499024991249922499324994249952499624997249982499925000250012500225003250042500525006250072500825009250102501125012250132501425015250162501725018250192502025021250222502325024250252502625027250282502925030250312503225033250342503525036250372503825039250402504125042250432504425045250462504725048250492505025051250522505325054250552505625057250582505925060250612506225063250642506525066250672506825069250702507125072250732507425075250762507725078250792508025081250822508325084250852508625087250882508925090250912509225093250942509525096250972509825099251002510125102251032510425105251062510725108251092511025111251122511325114251152511625117251182511925120251212512225123251242512525126251272512825129251302513125132251332513425135251362513725138251392514025141251422514325144251452514625147251482514925150251512515225153251542515525156251572515825159251602516125162251632516425165251662516725168251692517025171251722517325174251752517625177251782517925180251812518225183251842518525186251872518825189251902519125192251932519425195251962519725198251992520025201252022520325204252052520625207252082520925210252112521225213252142521525216252172521825219252202522125222252232522425225252262522725228252292523025231252322523325234252352523625237252382523925240252412524225243252442524525246252472524825249252502525125252252532525425255252562525725258252592526025261252622526325264252652526625267252682526925270252712527225273252742527525276252772527825279252802528125282252832528425285252862528725288252892529025291252922529325294252952529625297252982529925300253012530225303253042530525306253072530825309253102531125312253132531425315253162531725318253192532025321253222532325324253252532625327253282532925330253312533225333253342533525336253372533825339253402534125342253432534425345253462534725348253492535025351253522535325354253552535625357253582535925360253612536225363253642536525366253672536825369253702537125372253732537425375253762537725378253792538025381253822538325384253852538625387253882538925390253912539225393253942539525396253972539825399254002540125402254032540425405254062540725408254092541025411254122541325414254152541625417254182541925420254212542225423254242542525426254272542825429254302543125432254332543425435254362543725438254392544025441254422544325444254452544625447254482544925450254512545225453254542545525456254572545825459254602546125462254632546425465254662546725468254692547025471254722547325474254752547625477254782547925480254812548225483254842548525486254872548825489254902549125492254932549425495254962549725498254992550025501255022550325504255052550625507255082550925510255112551225513255142551525516255172551825519255202552125522255232552425525255262552725528255292553025531255322553325534255352553625537255382553925540255412554225543255442554525546255472554825549255502555125552255532555425555255562555725558255592556025561255622556325564255652556625567255682556925570255712557225573255742557525576255772557825579255802558125582255832558425585255862558725588255892559025591255922559325594255952559625597255982559925600256012560225603256042560525606256072560825609256102561125612256132561425615256162561725618256192562025621256222562325624256252562625627256282562925630256312563225633256342563525636256372563825639256402564125642256432564425645256462564725648256492565025651256522565325654256552565625657256582565925660256612566225663256642566525666256672566825669256702567125672256732567425675256762567725678256792568025681256822568325684256852568625687256882568925690256912569225693256942569525696256972569825699257002570125702257032570425705257062570725708257092571025711257122571325714257152571625717257182571925720257212572225723257242572525726257272572825729257302573125732257332573425735257362573725738257392574025741257422574325744257452574625747257482574925750257512575225753257542575525756257572575825759257602576125762257632576425765257662576725768257692577025771257722577325774257752577625777257782577925780257812578225783257842578525786257872578825789257902579125792257932579425795257962579725798257992580025801258022580325804258052580625807258082580925810258112581225813258142581525816258172581825819258202582125822258232582425825258262582725828258292583025831258322583325834258352583625837258382583925840258412584225843258442584525846258472584825849258502585125852258532585425855258562585725858258592586025861258622586325864258652586625867258682586925870258712587225873258742587525876258772587825879258802588125882258832588425885258862588725888258892589025891258922589325894258952589625897258982589925900259012590225903259042590525906259072590825909259102591125912259132591425915259162591725918259192592025921259222592325924259252592625927259282592925930259312593225933259342593525936259372593825939259402594125942259432594425945259462594725948259492595025951259522595325954259552595625957259582595925960259612596225963259642596525966259672596825969259702597125972259732597425975259762597725978259792598025981259822598325984259852598625987259882598925990259912599225993259942599525996259972599825999260002600126002260032600426005260062600726008260092601026011260122601326014260152601626017260182601926020260212602226023260242602526026260272602826029260302603126032260332603426035260362603726038260392604026041260422604326044260452604626047260482604926050260512605226053260542605526056260572605826059260602606126062260632606426065260662606726068260692607026071260722607326074260752607626077260782607926080260812608226083260842608526086260872608826089260902609126092260932609426095260962609726098260992610026101261022610326104261052610626107261082610926110261112611226113261142611526116261172611826119261202612126122261232612426125261262612726128261292613026131261322613326134261352613626137261382613926140261412614226143261442614526146261472614826149261502615126152261532615426155261562615726158261592616026161261622616326164261652616626167261682616926170261712617226173261742617526176261772617826179261802618126182261832618426185261862618726188261892619026191261922619326194261952619626197261982619926200262012620226203262042620526206262072620826209262102621126212262132621426215262162621726218262192622026221262222622326224262252622626227262282622926230262312623226233262342623526236262372623826239262402624126242262432624426245262462624726248262492625026251262522625326254262552625626257262582625926260262612626226263262642626526266262672626826269262702627126272262732627426275262762627726278262792628026281262822628326284262852628626287262882628926290262912629226293262942629526296262972629826299263002630126302263032630426305263062630726308263092631026311263122631326314263152631626317263182631926320263212632226323263242632526326263272632826329263302633126332263332633426335263362633726338263392634026341263422634326344263452634626347263482634926350263512635226353263542635526356263572635826359263602636126362263632636426365263662636726368263692637026371263722637326374263752637626377263782637926380263812638226383263842638526386263872638826389263902639126392263932639426395263962639726398263992640026401264022640326404264052640626407264082640926410264112641226413264142641526416264172641826419264202642126422264232642426425264262642726428264292643026431264322643326434264352643626437264382643926440264412644226443264442644526446264472644826449264502645126452264532645426455264562645726458264592646026461264622646326464264652646626467264682646926470264712647226473264742647526476264772647826479264802648126482264832648426485264862648726488264892649026491264922649326494264952649626497264982649926500265012650226503265042650526506265072650826509265102651126512265132651426515265162651726518265192652026521265222652326524265252652626527265282652926530265312653226533265342653526536265372653826539265402654126542265432654426545265462654726548265492655026551265522655326554265552655626557265582655926560265612656226563265642656526566265672656826569265702657126572265732657426575265762657726578265792658026581265822658326584265852658626587265882658926590265912659226593265942659526596265972659826599266002660126602266032660426605266062660726608266092661026611266122661326614266152661626617266182661926620266212662226623266242662526626266272662826629266302663126632266332663426635266362663726638266392664026641266422664326644266452664626647266482664926650266512665226653266542665526656266572665826659266602666126662266632666426665266662666726668266692667026671266722667326674266752667626677266782667926680266812668226683266842668526686266872668826689266902669126692266932669426695266962669726698266992670026701267022670326704267052670626707267082670926710267112671226713267142671526716267172671826719267202672126722267232672426725267262672726728267292673026731267322673326734267352673626737267382673926740267412674226743267442674526746267472674826749267502675126752267532675426755267562675726758267592676026761267622676326764267652676626767267682676926770267712677226773267742677526776267772677826779267802678126782267832678426785267862678726788267892679026791267922679326794267952679626797267982679926800268012680226803268042680526806268072680826809268102681126812268132681426815268162681726818268192682026821268222682326824268252682626827268282682926830268312683226833268342683526836268372683826839268402684126842268432684426845268462684726848268492685026851268522685326854268552685626857268582685926860268612686226863268642686526866268672686826869268702687126872268732687426875268762687726878268792688026881268822688326884268852688626887268882688926890268912689226893268942689526896268972689826899269002690126902269032690426905269062690726908269092691026911269122691326914269152691626917269182691926920269212692226923269242692526926269272692826929269302693126932269332693426935269362693726938269392694026941269422694326944269452694626947269482694926950269512695226953269542695526956269572695826959269602696126962269632696426965269662696726968269692697026971269722697326974269752697626977269782697926980269812698226983269842698526986269872698826989269902699126992269932699426995269962699726998269992700027001270022700327004270052700627007270082700927010270112701227013270142701527016270172701827019270202702127022270232702427025270262702727028270292703027031270322703327034270352703627037270382703927040270412704227043270442704527046270472704827049270502705127052270532705427055270562705727058270592706027061270622706327064270652706627067270682706927070270712707227073270742707527076270772707827079270802708127082270832708427085270862708727088270892709027091270922709327094270952709627097270982709927100271012710227103271042710527106271072710827109271102711127112271132711427115271162711727118271192712027121271222712327124271252712627127271282712927130271312713227133271342713527136271372713827139271402714127142271432714427145271462714727148271492715027151271522715327154271552715627157271582715927160271612716227163271642716527166271672716827169271702717127172271732717427175271762717727178271792718027181271822718327184271852718627187271882718927190271912719227193271942719527196271972719827199272002720127202272032720427205272062720727208272092721027211272122721327214272152721627217272182721927220272212722227223272242722527226272272722827229272302723127232272332723427235272362723727238272392724027241272422724327244272452724627247272482724927250272512725227253272542725527256272572725827259272602726127262272632726427265272662726727268272692727027271272722727327274272752727627277272782727927280272812728227283272842728527286272872728827289272902729127292272932729427295272962729727298272992730027301273022730327304273052730627307273082730927310273112731227313273142731527316273172731827319273202732127322273232732427325273262732727328273292733027331273322733327334273352733627337273382733927340273412734227343273442734527346273472734827349273502735127352273532735427355273562735727358273592736027361273622736327364273652736627367273682736927370273712737227373273742737527376273772737827379273802738127382273832738427385273862738727388273892739027391273922739327394273952739627397273982739927400274012740227403274042740527406274072740827409274102741127412274132741427415274162741727418274192742027421274222742327424274252742627427274282742927430274312743227433274342743527436274372743827439274402744127442274432744427445274462744727448274492745027451274522745327454274552745627457274582745927460274612746227463274642746527466274672746827469274702747127472274732747427475274762747727478274792748027481274822748327484274852748627487274882748927490274912749227493274942749527496274972749827499275002750127502275032750427505275062750727508275092751027511275122751327514275152751627517275182751927520275212752227523275242752527526275272752827529275302753127532275332753427535275362753727538275392754027541275422754327544275452754627547275482754927550275512755227553275542755527556275572755827559275602756127562275632756427565275662756727568275692757027571275722757327574275752757627577275782757927580275812758227583275842758527586275872758827589275902759127592275932759427595275962759727598275992760027601276022760327604276052760627607276082760927610276112761227613276142761527616276172761827619276202762127622276232762427625276262762727628276292763027631276322763327634276352763627637276382763927640276412764227643276442764527646276472764827649276502765127652276532765427655276562765727658276592766027661276622766327664276652766627667276682766927670276712767227673276742767527676276772767827679276802768127682276832768427685276862768727688276892769027691276922769327694276952769627697276982769927700277012770227703277042770527706277072770827709277102771127712277132771427715277162771727718277192772027721277222772327724277252772627727277282772927730277312773227733277342773527736277372773827739277402774127742277432774427745277462774727748277492775027751277522775327754277552775627757277582775927760277612776227763277642776527766277672776827769277702777127772277732777427775277762777727778277792778027781277822778327784277852778627787277882778927790277912779227793277942779527796277972779827799278002780127802278032780427805278062780727808278092781027811278122781327814278152781627817278182781927820278212782227823278242782527826278272782827829278302783127832278332783427835278362783727838278392784027841278422784327844278452784627847278482784927850278512785227853278542785527856278572785827859278602786127862278632786427865278662786727868278692787027871278722787327874278752787627877278782787927880278812788227883278842788527886278872788827889278902789127892278932789427895278962789727898278992790027901279022790327904279052790627907279082790927910279112791227913279142791527916279172791827919279202792127922279232792427925279262792727928279292793027931279322793327934279352793627937279382793927940279412794227943279442794527946279472794827949279502795127952279532795427955279562795727958279592796027961279622796327964279652796627967279682796927970279712797227973279742797527976279772797827979279802798127982279832798427985279862798727988279892799027991279922799327994279952799627997279982799928000280012800228003280042800528006280072800828009280102801128012280132801428015280162801728018280192802028021280222802328024280252802628027280282802928030280312803228033280342803528036280372803828039280402804128042280432804428045280462804728048280492805028051280522805328054280552805628057280582805928060280612806228063280642806528066280672806828069280702807128072280732807428075280762807728078280792808028081280822808328084280852808628087280882808928090280912809228093280942809528096280972809828099281002810128102281032810428105281062810728108281092811028111281122811328114281152811628117281182811928120281212812228123281242812528126281272812828129281302813128132281332813428135281362813728138281392814028141281422814328144281452814628147281482814928150281512815228153281542815528156281572815828159281602816128162281632816428165281662816728168281692817028171281722817328174281752817628177281782817928180281812818228183281842818528186281872818828189281902819128192281932819428195281962819728198281992820028201282022820328204282052820628207282082820928210282112821228213282142821528216282172821828219282202822128222282232822428225282262822728228282292823028231282322823328234282352823628237282382823928240282412824228243282442824528246282472824828249282502825128252282532825428255282562825728258282592826028261282622826328264282652826628267282682826928270282712827228273282742827528276282772827828279282802828128282282832828428285282862828728288282892829028291282922829328294282952829628297282982829928300283012830228303283042830528306283072830828309283102831128312283132831428315283162831728318283192832028321283222832328324283252832628327283282832928330283312833228333283342833528336283372833828339283402834128342283432834428345283462834728348283492835028351283522835328354283552835628357283582835928360283612836228363283642836528366283672836828369283702837128372283732837428375283762837728378283792838028381283822838328384283852838628387283882838928390283912839228393283942839528396283972839828399284002840128402284032840428405284062840728408284092841028411284122841328414284152841628417284182841928420284212842228423284242842528426284272842828429284302843128432284332843428435284362843728438284392844028441284422844328444284452844628447284482844928450284512845228453284542845528456284572845828459284602846128462284632846428465284662846728468284692847028471284722847328474284752847628477284782847928480284812848228483284842848528486284872848828489284902849128492284932849428495284962849728498284992850028501285022850328504285052850628507285082850928510285112851228513285142851528516285172851828519285202852128522285232852428525285262852728528285292853028531285322853328534285352853628537285382853928540285412854228543285442854528546285472854828549285502855128552285532855428555285562855728558285592856028561285622856328564285652856628567285682856928570285712857228573285742857528576285772857828579285802858128582285832858428585285862858728588285892859028591285922859328594285952859628597285982859928600286012860228603286042860528606286072860828609286102861128612286132861428615286162861728618286192862028621286222862328624286252862628627286282862928630286312863228633286342863528636286372863828639286402864128642286432864428645286462864728648286492865028651286522865328654286552865628657286582865928660286612866228663286642866528666286672866828669286702867128672286732867428675286762867728678286792868028681286822868328684286852868628687286882868928690286912869228693286942869528696286972869828699287002870128702287032870428705287062870728708287092871028711287122871328714287152871628717287182871928720287212872228723287242872528726287272872828729287302873128732287332873428735287362873728738287392874028741287422874328744287452874628747287482874928750287512875228753287542875528756287572875828759287602876128762287632876428765287662876728768287692877028771287722877328774287752877628777287782877928780287812878228783287842878528786287872878828789287902879128792287932879428795287962879728798287992880028801288022880328804288052880628807288082880928810288112881228813288142881528816288172881828819288202882128822288232882428825288262882728828288292883028831288322883328834288352883628837288382883928840288412884228843288442884528846288472884828849288502885128852288532885428855288562885728858288592886028861288622886328864288652886628867288682886928870288712887228873288742887528876288772887828879288802888128882288832888428885288862888728888288892889028891288922889328894288952889628897288982889928900289012890228903289042890528906289072890828909289102891128912289132891428915289162891728918289192892028921289222892328924289252892628927289282892928930289312893228933289342893528936289372893828939289402894128942289432894428945289462894728948289492895028951289522895328954289552895628957289582895928960289612896228963289642896528966289672896828969289702897128972289732897428975289762897728978289792898028981289822898328984289852898628987289882898928990289912899228993289942899528996289972899828999290002900129002290032900429005290062900729008290092901029011290122901329014290152901629017290182901929020290212902229023290242902529026290272902829029290302903129032290332903429035290362903729038290392904029041290422904329044290452904629047290482904929050290512905229053290542905529056290572905829059290602906129062290632906429065290662906729068290692907029071290722907329074290752907629077290782907929080290812908229083290842908529086290872908829089290902909129092290932909429095290962909729098290992910029101291022910329104291052910629107291082910929110291112911229113291142911529116291172911829119291202912129122291232912429125291262912729128291292913029131291322913329134291352913629137291382913929140291412914229143291442914529146291472914829149291502915129152291532915429155291562915729158291592916029161291622916329164291652916629167291682916929170291712917229173291742917529176291772917829179291802918129182291832918429185291862918729188291892919029191291922919329194291952919629197291982919929200292012920229203292042920529206292072920829209292102921129212292132921429215292162921729218292192922029221292222922329224292252922629227292282922929230292312923229233292342923529236292372923829239292402924129242292432924429245292462924729248292492925029251292522925329254292552925629257292582925929260292612926229263292642926529266292672926829269292702927129272292732927429275292762927729278292792928029281292822928329284292852928629287292882928929290292912929229293292942929529296292972929829299293002930129302293032930429305293062930729308293092931029311293122931329314293152931629317293182931929320293212932229323293242932529326293272932829329293302933129332293332933429335293362933729338293392934029341293422934329344293452934629347293482934929350293512935229353293542935529356293572935829359293602936129362293632936429365293662936729368293692937029371293722937329374293752937629377293782937929380293812938229383293842938529386293872938829389293902939129392293932939429395293962939729398293992940029401294022940329404294052940629407294082940929410294112941229413294142941529416294172941829419294202942129422294232942429425294262942729428294292943029431294322943329434294352943629437294382943929440294412944229443294442944529446294472944829449294502945129452294532945429455294562945729458294592946029461294622946329464294652946629467294682946929470294712947229473294742947529476294772947829479294802948129482294832948429485294862948729488294892949029491294922949329494294952949629497294982949929500295012950229503295042950529506295072950829509295102951129512295132951429515295162951729518295192952029521295222952329524295252952629527295282952929530295312953229533295342953529536295372953829539295402954129542295432954429545295462954729548295492955029551295522955329554295552955629557295582955929560295612956229563295642956529566295672956829569295702957129572295732957429575295762957729578295792958029581295822958329584295852958629587295882958929590295912959229593295942959529596295972959829599296002960129602296032960429605296062960729608296092961029611296122961329614296152961629617296182961929620296212962229623296242962529626296272962829629296302963129632296332963429635296362963729638296392964029641296422964329644296452964629647296482964929650296512965229653296542965529656296572965829659296602966129662296632966429665296662966729668296692967029671296722967329674296752967629677296782967929680296812968229683296842968529686296872968829689296902969129692296932969429695296962969729698296992970029701297022970329704297052970629707297082970929710297112971229713297142971529716297172971829719297202972129722297232972429725297262972729728297292973029731297322973329734297352973629737297382973929740297412974229743297442974529746297472974829749297502975129752297532975429755297562975729758297592976029761297622976329764297652976629767297682976929770297712977229773297742977529776297772977829779297802978129782297832978429785297862978729788297892979029791297922979329794297952979629797297982979929800298012980229803298042980529806298072980829809298102981129812298132981429815298162981729818298192982029821298222982329824298252982629827298282982929830298312983229833298342983529836298372983829839298402984129842298432984429845298462984729848298492985029851298522985329854298552985629857298582985929860298612986229863298642986529866298672986829869298702987129872298732987429875298762987729878298792988029881298822988329884298852988629887298882988929890298912989229893298942989529896298972989829899299002990129902299032990429905299062990729908299092991029911299122991329914299152991629917299182991929920299212992229923299242992529926299272992829929299302993129932299332993429935299362993729938299392994029941299422994329944299452994629947299482994929950299512995229953299542995529956299572995829959299602996129962299632996429965299662996729968299692997029971299722997329974299752997629977299782997929980299812998229983299842998529986299872998829989299902999129992299932999429995299962999729998299993000030001300023000330004300053000630007300083000930010300113001230013300143001530016300173001830019300203002130022300233002430025300263002730028300293003030031300323003330034300353003630037300383003930040300413004230043300443004530046300473004830049300503005130052300533005430055300563005730058300593006030061300623006330064300653006630067300683006930070300713007230073300743007530076300773007830079300803008130082300833008430085300863008730088300893009030091300923009330094300953009630097300983009930100301013010230103301043010530106301073010830109301103011130112301133011430115301163011730118301193012030121301223012330124301253012630127301283012930130301313013230133301343013530136301373013830139301403014130142301433014430145301463014730148301493015030151301523015330154301553015630157301583015930160301613016230163301643016530166301673016830169301703017130172301733017430175301763017730178301793018030181301823018330184301853018630187301883018930190301913019230193301943019530196301973019830199302003020130202302033020430205302063020730208302093021030211302123021330214302153021630217302183021930220302213022230223302243022530226302273022830229302303023130232302333023430235302363023730238302393024030241302423024330244302453024630247302483024930250302513025230253302543025530256302573025830259302603026130262302633026430265302663026730268302693027030271302723027330274302753027630277302783027930280302813028230283302843028530286302873028830289302903029130292302933029430295302963029730298302993030030301303023030330304303053030630307303083030930310303113031230313303143031530316303173031830319303203032130322303233032430325303263032730328303293033030331303323033330334303353033630337303383033930340303413034230343303443034530346303473034830349303503035130352303533035430355303563035730358303593036030361303623036330364303653036630367303683036930370303713037230373303743037530376303773037830379303803038130382303833038430385303863038730388303893039030391303923039330394303953039630397303983039930400304013040230403304043040530406304073040830409304103041130412304133041430415304163041730418304193042030421304223042330424304253042630427304283042930430304313043230433304343043530436304373043830439304403044130442304433044430445304463044730448304493045030451304523045330454304553045630457304583045930460304613046230463304643046530466304673046830469304703047130472304733047430475304763047730478304793048030481304823048330484304853048630487304883048930490304913049230493304943049530496304973049830499305003050130502305033050430505305063050730508305093051030511305123051330514305153051630517305183051930520305213052230523305243052530526305273052830529305303053130532305333053430535305363053730538305393054030541305423054330544305453054630547305483054930550305513055230553305543055530556305573055830559305603056130562305633056430565305663056730568305693057030571305723057330574305753057630577305783057930580305813058230583305843058530586305873058830589305903059130592305933059430595305963059730598305993060030601306023060330604306053060630607306083060930610306113061230613306143061530616306173061830619306203062130622306233062430625306263062730628306293063030631306323063330634306353063630637306383063930640306413064230643306443064530646306473064830649306503065130652306533065430655306563065730658306593066030661306623066330664306653066630667306683066930670306713067230673306743067530676306773067830679306803068130682306833068430685306863068730688306893069030691306923069330694306953069630697306983069930700307013070230703307043070530706307073070830709307103071130712307133071430715307163071730718307193072030721307223072330724307253072630727307283072930730307313073230733307343073530736307373073830739307403074130742307433074430745307463074730748307493075030751307523075330754307553075630757307583075930760307613076230763307643076530766307673076830769307703077130772307733077430775307763077730778307793078030781307823078330784307853078630787307883078930790307913079230793307943079530796307973079830799308003080130802308033080430805308063080730808308093081030811308123081330814308153081630817308183081930820308213082230823308243082530826308273082830829308303083130832308333083430835308363083730838308393084030841308423084330844308453084630847308483084930850308513085230853308543085530856308573085830859308603086130862308633086430865308663086730868308693087030871308723087330874308753087630877308783087930880308813088230883308843088530886308873088830889308903089130892308933089430895308963089730898308993090030901309023090330904309053090630907309083090930910309113091230913309143091530916309173091830919309203092130922309233092430925309263092730928309293093030931309323093330934309353093630937309383093930940309413094230943309443094530946309473094830949309503095130952309533095430955309563095730958309593096030961309623096330964309653096630967309683096930970309713097230973309743097530976309773097830979309803098130982309833098430985309863098730988309893099030991309923099330994309953099630997309983099931000310013100231003310043100531006310073100831009310103101131012310133101431015310163101731018310193102031021310223102331024310253102631027310283102931030310313103231033310343103531036310373103831039310403104131042310433104431045310463104731048310493105031051310523105331054310553105631057310583105931060310613106231063310643106531066310673106831069310703107131072310733107431075310763107731078310793108031081310823108331084310853108631087310883108931090310913109231093310943109531096310973109831099311003110131102311033110431105311063110731108311093111031111311123111331114311153111631117311183111931120311213112231123311243112531126311273112831129311303113131132311333113431135311363113731138311393114031141311423114331144311453114631147311483114931150311513115231153311543115531156311573115831159311603116131162311633116431165311663116731168311693117031171311723117331174311753117631177311783117931180311813118231183311843118531186311873118831189311903119131192311933119431195311963119731198311993120031201312023120331204312053120631207312083120931210312113121231213312143121531216312173121831219312203122131222312233122431225312263122731228312293123031231312323123331234312353123631237312383123931240312413124231243312443124531246312473124831249312503125131252312533125431255312563125731258312593126031261312623126331264312653126631267312683126931270312713127231273312743127531276312773127831279312803128131282312833128431285312863128731288312893129031291312923129331294312953129631297312983129931300313013130231303313043130531306313073130831309313103131131312313133131431315313163131731318313193132031321313223132331324313253132631327313283132931330313313133231333313343133531336313373133831339313403134131342313433134431345313463134731348313493135031351313523135331354313553135631357313583135931360313613136231363313643136531366313673136831369313703137131372313733137431375313763137731378313793138031381313823138331384313853138631387313883138931390313913139231393313943139531396313973139831399314003140131402314033140431405314063140731408314093141031411314123141331414314153141631417314183141931420314213142231423314243142531426314273142831429314303143131432314333143431435314363143731438314393144031441314423144331444314453144631447314483144931450314513145231453314543145531456314573145831459314603146131462314633146431465314663146731468314693147031471314723147331474314753147631477314783147931480314813148231483314843148531486314873148831489314903149131492314933149431495314963149731498314993150031501315023150331504315053150631507315083150931510315113151231513315143151531516315173151831519315203152131522315233152431525315263152731528315293153031531315323153331534315353153631537315383153931540315413154231543315443154531546315473154831549315503155131552315533155431555315563155731558315593156031561315623156331564315653156631567315683156931570315713157231573315743157531576315773157831579315803158131582315833158431585315863158731588315893159031591315923159331594315953159631597315983159931600316013160231603316043160531606316073160831609316103161131612316133161431615316163161731618316193162031621316223162331624316253162631627316283162931630316313163231633316343163531636316373163831639316403164131642316433164431645316463164731648316493165031651316523165331654316553165631657316583165931660316613166231663316643166531666316673166831669316703167131672316733167431675316763167731678316793168031681316823168331684316853168631687316883168931690316913169231693316943169531696316973169831699317003170131702317033170431705317063170731708317093171031711317123171331714317153171631717317183171931720317213172231723317243172531726317273172831729317303173131732317333173431735317363173731738317393174031741317423174331744317453174631747317483174931750317513175231753317543175531756317573175831759317603176131762317633176431765317663176731768317693177031771317723177331774317753177631777317783177931780317813178231783317843178531786317873178831789317903179131792317933179431795317963179731798317993180031801318023180331804318053180631807318083180931810318113181231813318143181531816318173181831819318203182131822318233182431825318263182731828318293183031831318323183331834318353183631837318383183931840318413184231843318443184531846318473184831849318503185131852318533185431855318563185731858318593186031861318623186331864318653186631867318683186931870318713187231873318743187531876318773187831879318803188131882318833188431885318863188731888318893189031891318923189331894318953189631897318983189931900319013190231903319043190531906319073190831909319103191131912319133191431915319163191731918319193192031921319223192331924319253192631927319283192931930319313193231933319343193531936319373193831939319403194131942319433194431945319463194731948319493195031951319523195331954319553195631957319583195931960319613196231963319643196531966319673196831969319703197131972319733197431975319763197731978319793198031981319823198331984319853198631987319883198931990319913199231993319943199531996319973199831999320003200132002320033200432005320063200732008320093201032011320123201332014320153201632017320183201932020320213202232023320243202532026320273202832029320303203132032320333203432035320363203732038320393204032041320423204332044320453204632047320483204932050320513205232053320543205532056320573205832059320603206132062320633206432065320663206732068320693207032071320723207332074320753207632077320783207932080320813208232083320843208532086320873208832089320903209132092320933209432095320963209732098320993210032101321023210332104321053210632107321083210932110321113211232113321143211532116321173211832119321203212132122321233212432125321263212732128321293213032131321323213332134321353213632137321383213932140321413214232143321443214532146321473214832149321503215132152321533215432155321563215732158321593216032161321623216332164321653216632167321683216932170321713217232173321743217532176321773217832179321803218132182321833218432185321863218732188321893219032191321923219332194321953219632197321983219932200322013220232203322043220532206322073220832209322103221132212322133221432215322163221732218322193222032221322223222332224322253222632227322283222932230322313223232233322343223532236322373223832239322403224132242322433224432245322463224732248322493225032251322523225332254322553225632257322583225932260322613226232263322643226532266322673226832269322703227132272322733227432275322763227732278322793228032281322823228332284322853228632287322883228932290322913229232293322943229532296322973229832299323003230132302323033230432305323063230732308323093231032311323123231332314323153231632317323183231932320323213232232323323243232532326323273232832329323303233132332323333233432335323363233732338323393234032341323423234332344323453234632347323483234932350323513235232353323543235532356323573235832359323603236132362323633236432365323663236732368323693237032371323723237332374323753237632377323783237932380323813238232383323843238532386323873238832389323903239132392323933239432395323963239732398323993240032401324023240332404324053240632407324083240932410324113241232413324143241532416324173241832419324203242132422324233242432425324263242732428324293243032431324323243332434324353243632437324383243932440324413244232443324443244532446324473244832449324503245132452324533245432455324563245732458324593246032461324623246332464324653246632467324683246932470324713247232473324743247532476324773247832479324803248132482324833248432485324863248732488324893249032491324923249332494324953249632497324983249932500325013250232503325043250532506325073250832509325103251132512325133251432515325163251732518325193252032521325223252332524325253252632527325283252932530325313253232533325343253532536325373253832539325403254132542325433254432545325463254732548325493255032551325523255332554325553255632557325583255932560325613256232563325643256532566325673256832569325703257132572325733257432575325763257732578325793258032581325823258332584325853258632587325883258932590325913259232593325943259532596325973259832599326003260132602326033260432605326063260732608326093261032611326123261332614326153261632617326183261932620326213262232623326243262532626326273262832629326303263132632326333263432635326363263732638326393264032641326423264332644326453264632647326483264932650326513265232653326543265532656326573265832659326603266132662326633266432665326663266732668326693267032671326723267332674326753267632677326783267932680326813268232683326843268532686326873268832689326903269132692326933269432695326963269732698326993270032701327023270332704327053270632707327083270932710327113271232713327143271532716327173271832719327203272132722327233272432725327263272732728327293273032731327323273332734327353273632737327383273932740327413274232743327443274532746327473274832749327503275132752327533275432755327563275732758327593276032761327623276332764327653276632767327683276932770327713277232773327743277532776327773277832779327803278132782327833278432785327863278732788327893279032791327923279332794327953279632797327983279932800328013280232803328043280532806328073280832809328103281132812328133281432815328163281732818328193282032821328223282332824328253282632827328283282932830328313283232833328343283532836328373283832839328403284132842328433284432845328463284732848328493285032851328523285332854328553285632857328583285932860328613286232863328643286532866328673286832869328703287132872328733287432875328763287732878328793288032881328823288332884328853288632887328883288932890328913289232893328943289532896328973289832899329003290132902329033290432905329063290732908329093291032911329123291332914329153291632917329183291932920329213292232923329243292532926329273292832929329303293132932329333293432935329363293732938329393294032941329423294332944329453294632947329483294932950329513295232953329543295532956329573295832959329603296132962329633296432965329663296732968329693297032971329723297332974329753297632977329783297932980329813298232983329843298532986329873298832989329903299132992329933299432995329963299732998329993300033001330023300333004330053300633007330083300933010330113301233013330143301533016330173301833019330203302133022330233302433025330263302733028330293303033031330323303333034330353303633037330383303933040330413304233043330443304533046330473304833049330503305133052330533305433055330563305733058330593306033061330623306333064330653306633067330683306933070330713307233073330743307533076330773307833079330803308133082330833308433085330863308733088330893309033091330923309333094330953309633097330983309933100331013310233103331043310533106331073310833109331103311133112331133311433115331163311733118331193312033121331223312333124331253312633127331283312933130331313313233133331343313533136331373313833139331403314133142331433314433145331463314733148331493315033151331523315333154331553315633157331583315933160331613316233163331643316533166331673316833169331703317133172331733317433175331763317733178331793318033181331823318333184331853318633187331883318933190331913319233193331943319533196331973319833199332003320133202332033320433205332063320733208332093321033211332123321333214332153321633217332183321933220332213322233223332243322533226332273322833229332303323133232332333323433235332363323733238332393324033241332423324333244332453324633247332483324933250332513325233253332543325533256332573325833259332603326133262332633326433265332663326733268332693327033271332723327333274332753327633277332783327933280332813328233283332843328533286332873328833289332903329133292332933329433295332963329733298332993330033301333023330333304333053330633307333083330933310333113331233313333143331533316333173331833319333203332133322333233332433325333263332733328333293333033331333323333333334333353333633337333383333933340333413334233343333443334533346333473334833349333503335133352333533335433355333563335733358333593336033361333623336333364333653336633367333683336933370333713337233373333743337533376333773337833379333803338133382333833338433385333863338733388333893339033391333923339333394333953339633397333983339933400334013340233403334043340533406334073340833409334103341133412334133341433415334163341733418334193342033421334223342333424334253342633427334283342933430334313343233433334343343533436334373343833439334403344133442334433344433445334463344733448334493345033451334523345333454334553345633457334583345933460334613346233463334643346533466334673346833469334703347133472334733347433475334763347733478334793348033481334823348333484334853348633487334883348933490334913349233493334943349533496334973349833499335003350133502335033350433505335063350733508335093351033511335123351333514335153351633517335183351933520335213352233523335243352533526335273352833529335303353133532335333353433535335363353733538335393354033541335423354333544335453354633547335483354933550335513355233553335543355533556335573355833559335603356133562335633356433565335663356733568335693357033571335723357333574335753357633577335783357933580335813358233583335843358533586335873358833589335903359133592335933359433595335963359733598335993360033601336023360333604336053360633607336083360933610336113361233613336143361533616336173361833619336203362133622336233362433625336263362733628336293363033631336323363333634336353363633637336383363933640336413364233643336443364533646336473364833649336503365133652336533365433655336563365733658336593366033661336623366333664336653366633667336683366933670336713367233673336743367533676336773367833679336803368133682336833368433685336863368733688336893369033691336923369333694336953369633697336983369933700337013370233703337043370533706337073370833709337103371133712337133371433715337163371733718337193372033721337223372333724337253372633727337283372933730337313373233733337343373533736337373373833739337403374133742337433374433745337463374733748337493375033751337523375333754337553375633757337583375933760337613376233763337643376533766337673376833769337703377133772337733377433775337763377733778337793378033781337823378333784337853378633787337883378933790337913379233793337943379533796337973379833799338003380133802338033380433805338063380733808338093381033811338123381333814338153381633817338183381933820338213382233823338243382533826338273382833829338303383133832338333383433835338363383733838338393384033841338423384333844338453384633847338483384933850338513385233853338543385533856338573385833859338603386133862338633386433865338663386733868338693387033871338723387333874338753387633877338783387933880338813388233883338843388533886338873388833889338903389133892338933389433895338963389733898338993390033901339023390333904339053390633907339083390933910339113391233913339143391533916339173391833919339203392133922339233392433925339263392733928339293393033931339323393333934339353393633937339383393933940339413394233943339443394533946339473394833949339503395133952339533395433955339563395733958339593396033961339623396333964339653396633967339683396933970339713397233973339743397533976339773397833979339803398133982339833398433985339863398733988339893399033991339923399333994339953399633997339983399934000340013400234003340043400534006340073400834009340103401134012340133401434015340163401734018340193402034021340223402334024340253402634027340283402934030340313403234033340343403534036340373403834039340403404134042340433404434045340463404734048340493405034051340523405334054340553405634057340583405934060340613406234063340643406534066340673406834069340703407134072340733407434075340763407734078340793408034081340823408334084340853408634087340883408934090340913409234093340943409534096340973409834099341003410134102341033410434105341063410734108341093411034111341123411334114341153411634117341183411934120341213412234123341243412534126341273412834129341303413134132341333413434135341363413734138341393414034141341423414334144341453414634147341483414934150341513415234153341543415534156341573415834159341603416134162341633416434165341663416734168341693417034171341723417334174341753417634177341783417934180341813418234183341843418534186341873418834189341903419134192341933419434195341963419734198341993420034201342023420334204342053420634207342083420934210342113421234213342143421534216342173421834219342203422134222342233422434225342263422734228342293423034231342323423334234342353423634237342383423934240342413424234243342443424534246342473424834249342503425134252342533425434255342563425734258342593426034261342623426334264342653426634267342683426934270342713427234273342743427534276342773427834279342803428134282342833428434285342863428734288342893429034291342923429334294342953429634297342983429934300343013430234303343043430534306343073430834309343103431134312343133431434315343163431734318343193432034321343223432334324343253432634327343283432934330343313433234333343343433534336343373433834339343403434134342343433434434345343463434734348343493435034351343523435334354343553435634357343583435934360343613436234363343643436534366343673436834369343703437134372343733437434375343763437734378343793438034381343823438334384343853438634387343883438934390343913439234393343943439534396343973439834399344003440134402344033440434405344063440734408344093441034411344123441334414344153441634417344183441934420344213442234423344243442534426344273442834429344303443134432344333443434435344363443734438344393444034441344423444334444344453444634447344483444934450344513445234453344543445534456344573445834459344603446134462344633446434465344663446734468344693447034471344723447334474344753447634477344783447934480344813448234483344843448534486344873448834489344903449134492344933449434495344963449734498344993450034501345023450334504345053450634507345083450934510345113451234513345143451534516345173451834519345203452134522345233452434525345263452734528345293453034531345323453334534345353453634537345383453934540345413454234543345443454534546345473454834549345503455134552345533455434555345563455734558345593456034561345623456334564345653456634567345683456934570345713457234573345743457534576345773457834579345803458134582345833458434585345863458734588345893459034591345923459334594345953459634597345983459934600346013460234603346043460534606346073460834609346103461134612346133461434615346163461734618346193462034621346223462334624346253462634627346283462934630346313463234633346343463534636346373463834639346403464134642346433464434645346463464734648346493465034651346523465334654346553465634657346583465934660346613466234663346643466534666346673466834669346703467134672346733467434675346763467734678346793468034681346823468334684346853468634687346883468934690346913469234693346943469534696346973469834699347003470134702347033470434705347063470734708347093471034711347123471334714347153471634717347183471934720347213472234723347243472534726347273472834729347303473134732347333473434735347363473734738347393474034741347423474334744347453474634747347483474934750347513475234753347543475534756347573475834759347603476134762347633476434765347663476734768347693477034771347723477334774347753477634777347783477934780347813478234783347843478534786347873478834789347903479134792347933479434795347963479734798347993480034801348023480334804348053480634807348083480934810348113481234813348143481534816348173481834819348203482134822348233482434825348263482734828348293483034831348323483334834348353483634837348383483934840348413484234843348443484534846348473484834849348503485134852348533485434855348563485734858348593486034861348623486334864348653486634867348683486934870348713487234873348743487534876348773487834879348803488134882348833488434885348863488734888348893489034891348923489334894348953489634897348983489934900349013490234903349043490534906349073490834909349103491134912349133491434915349163491734918349193492034921349223492334924349253492634927349283492934930349313493234933349343493534936349373493834939349403494134942349433494434945349463494734948349493495034951349523495334954349553495634957349583495934960349613496234963349643496534966349673496834969349703497134972349733497434975349763497734978349793498034981349823498334984349853498634987349883498934990349913499234993349943499534996349973499834999350003500135002350033500435005350063500735008350093501035011350123501335014350153501635017350183501935020350213502235023350243502535026350273502835029350303503135032350333503435035350363503735038350393504035041350423504335044350453504635047350483504935050350513505235053350543505535056350573505835059350603506135062350633506435065350663506735068350693507035071350723507335074350753507635077350783507935080350813508235083350843508535086350873508835089350903509135092350933509435095350963509735098350993510035101351023510335104351053510635107351083510935110351113511235113351143511535116351173511835119351203512135122351233512435125351263512735128351293513035131351323513335134351353513635137351383513935140351413514235143351443514535146351473514835149351503515135152351533515435155351563515735158351593516035161351623516335164351653516635167351683516935170351713517235173351743517535176351773517835179351803518135182351833518435185351863518735188351893519035191351923519335194351953519635197351983519935200352013520235203352043520535206352073520835209352103521135212352133521435215352163521735218352193522035221352223522335224352253522635227352283522935230352313523235233352343523535236352373523835239352403524135242352433524435245352463524735248352493525035251352523525335254352553525635257352583525935260352613526235263352643526535266352673526835269352703527135272352733527435275352763527735278352793528035281352823528335284352853528635287352883528935290352913529235293352943529535296352973529835299353003530135302353033530435305353063530735308353093531035311353123531335314353153531635317353183531935320353213532235323353243532535326353273532835329353303533135332353333533435335353363533735338353393534035341353423534335344353453534635347353483534935350353513535235353353543535535356353573535835359353603536135362353633536435365353663536735368353693537035371353723537335374353753537635377353783537935380353813538235383353843538535386353873538835389353903539135392353933539435395353963539735398353993540035401354023540335404354053540635407354083540935410354113541235413354143541535416354173541835419354203542135422354233542435425354263542735428354293543035431354323543335434354353543635437354383543935440354413544235443354443544535446354473544835449354503545135452354533545435455354563545735458354593546035461354623546335464354653546635467354683546935470354713547235473354743547535476354773547835479354803548135482354833548435485354863548735488354893549035491354923549335494354953549635497354983549935500355013550235503355043550535506355073550835509355103551135512355133551435515355163551735518355193552035521355223552335524355253552635527355283552935530355313553235533355343553535536355373553835539355403554135542355433554435545355463554735548355493555035551355523555335554355553555635557355583555935560355613556235563355643556535566355673556835569355703557135572355733557435575355763557735578355793558035581355823558335584355853558635587355883558935590355913559235593355943559535596355973559835599356003560135602356033560435605356063560735608356093561035611356123561335614356153561635617356183561935620356213562235623356243562535626356273562835629356303563135632356333563435635356363563735638356393564035641356423564335644356453564635647356483564935650356513565235653356543565535656356573565835659356603566135662356633566435665356663566735668356693567035671356723567335674356753567635677356783567935680356813568235683356843568535686356873568835689356903569135692356933569435695356963569735698356993570035701357023570335704357053570635707357083570935710357113571235713357143571535716357173571835719357203572135722357233572435725357263572735728357293573035731357323573335734357353573635737357383573935740357413574235743357443574535746357473574835749357503575135752357533575435755357563575735758357593576035761357623576335764357653576635767357683576935770357713577235773357743577535776357773577835779357803578135782357833578435785357863578735788357893579035791357923579335794357953579635797357983579935800358013580235803358043580535806358073580835809358103581135812358133581435815358163581735818358193582035821358223582335824358253582635827358283582935830358313583235833358343583535836358373583835839358403584135842358433584435845358463584735848358493585035851358523585335854358553585635857358583585935860358613586235863358643586535866358673586835869358703587135872358733587435875358763587735878358793588035881358823588335884358853588635887358883588935890358913589235893358943589535896358973589835899359003590135902359033590435905359063590735908359093591035911359123591335914359153591635917359183591935920359213592235923359243592535926359273592835929359303593135932359333593435935359363593735938359393594035941359423594335944359453594635947359483594935950359513595235953359543595535956359573595835959359603596135962359633596435965359663596735968359693597035971359723597335974359753597635977359783597935980359813598235983359843598535986359873598835989359903599135992359933599435995359963599735998359993600036001360023600336004360053600636007360083600936010360113601236013360143601536016360173601836019360203602136022360233602436025360263602736028360293603036031360323603336034360353603636037360383603936040360413604236043360443604536046360473604836049360503605136052360533605436055360563605736058360593606036061360623606336064360653606636067360683606936070360713607236073360743607536076360773607836079360803608136082360833608436085360863608736088360893609036091360923609336094360953609636097360983609936100361013610236103361043610536106361073610836109361103611136112361133611436115361163611736118361193612036121361223612336124361253612636127361283612936130361313613236133361343613536136361373613836139361403614136142361433614436145361463614736148361493615036151361523615336154361553615636157361583615936160361613616236163361643616536166361673616836169361703617136172361733617436175361763617736178361793618036181361823618336184361853618636187361883618936190361913619236193361943619536196361973619836199362003620136202362033620436205362063620736208362093621036211362123621336214362153621636217362183621936220362213622236223362243622536226362273622836229362303623136232362333623436235362363623736238362393624036241362423624336244362453624636247362483624936250362513625236253362543625536256362573625836259362603626136262362633626436265362663626736268362693627036271362723627336274362753627636277362783627936280362813628236283362843628536286362873628836289362903629136292362933629436295362963629736298362993630036301363023630336304363053630636307363083630936310363113631236313363143631536316363173631836319363203632136322363233632436325363263632736328363293633036331363323633336334363353633636337363383633936340363413634236343363443634536346363473634836349363503635136352363533635436355363563635736358363593636036361363623636336364363653636636367363683636936370363713637236373363743637536376363773637836379363803638136382363833638436385363863638736388363893639036391363923639336394363953639636397363983639936400364013640236403364043640536406364073640836409364103641136412364133641436415364163641736418364193642036421364223642336424364253642636427364283642936430364313643236433364343643536436364373643836439364403644136442364433644436445364463644736448364493645036451364523645336454364553645636457364583645936460364613646236463364643646536466364673646836469364703647136472364733647436475364763647736478364793648036481364823648336484364853648636487364883648936490364913649236493364943649536496364973649836499365003650136502365033650436505365063650736508365093651036511365123651336514365153651636517365183651936520365213652236523365243652536526365273652836529365303653136532365333653436535365363653736538365393654036541365423654336544365453654636547365483654936550365513655236553365543655536556365573655836559365603656136562365633656436565365663656736568365693657036571365723657336574365753657636577365783657936580365813658236583365843658536586365873658836589365903659136592365933659436595365963659736598365993660036601366023660336604366053660636607366083660936610366113661236613366143661536616366173661836619366203662136622366233662436625366263662736628366293663036631366323663336634366353663636637366383663936640366413664236643366443664536646366473664836649366503665136652366533665436655366563665736658366593666036661366623666336664366653666636667366683666936670366713667236673366743667536676366773667836679366803668136682366833668436685366863668736688366893669036691366923669336694366953669636697366983669936700367013670236703367043670536706367073670836709367103671136712367133671436715367163671736718367193672036721367223672336724367253672636727367283672936730367313673236733367343673536736367373673836739367403674136742367433674436745367463674736748367493675036751367523675336754367553675636757367583675936760367613676236763367643676536766367673676836769367703677136772367733677436775367763677736778367793678036781367823678336784367853678636787367883678936790367913679236793367943679536796367973679836799368003680136802368033680436805368063680736808368093681036811368123681336814368153681636817368183681936820368213682236823368243682536826368273682836829368303683136832368333683436835368363683736838368393684036841368423684336844368453684636847368483684936850368513685236853368543685536856368573685836859368603686136862368633686436865368663686736868368693687036871368723687336874368753687636877368783687936880368813688236883368843688536886368873688836889368903689136892368933689436895368963689736898368993690036901369023690336904369053690636907369083690936910369113691236913369143691536916369173691836919369203692136922369233692436925369263692736928369293693036931369323693336934369353693636937369383693936940369413694236943369443694536946369473694836949369503695136952369533695436955369563695736958369593696036961369623696336964369653696636967369683696936970369713697236973369743697536976369773697836979369803698136982369833698436985369863698736988369893699036991369923699336994369953699636997369983699937000370013700237003370043700537006370073700837009370103701137012370133701437015370163701737018370193702037021370223702337024370253702637027370283702937030370313703237033370343703537036370373703837039370403704137042370433704437045370463704737048370493705037051370523705337054370553705637057370583705937060370613706237063370643706537066370673706837069370703707137072370733707437075370763707737078370793708037081370823708337084370853708637087370883708937090370913709237093370943709537096370973709837099371003710137102371033710437105371063710737108371093711037111371123711337114371153711637117371183711937120371213712237123371243712537126371273712837129371303713137132371333713437135371363713737138371393714037141371423714337144371453714637147371483714937150371513715237153371543715537156371573715837159371603716137162371633716437165371663716737168371693717037171371723717337174371753717637177371783717937180371813718237183371843718537186371873718837189371903719137192371933719437195371963719737198371993720037201372023720337204372053720637207372083720937210372113721237213372143721537216372173721837219372203722137222372233722437225372263722737228372293723037231372323723337234372353723637237372383723937240372413724237243372443724537246372473724837249372503725137252372533725437255372563725737258372593726037261372623726337264372653726637267372683726937270372713727237273372743727537276372773727837279372803728137282372833728437285372863728737288372893729037291372923729337294372953729637297372983729937300373013730237303373043730537306373073730837309373103731137312373133731437315373163731737318373193732037321373223732337324373253732637327373283732937330373313733237333373343733537336373373733837339373403734137342373433734437345373463734737348373493735037351373523735337354373553735637357373583735937360373613736237363373643736537366373673736837369373703737137372373733737437375373763737737378373793738037381373823738337384373853738637387373883738937390373913739237393373943739537396373973739837399374003740137402374033740437405374063740737408374093741037411374123741337414374153741637417374183741937420374213742237423374243742537426374273742837429374303743137432374333743437435374363743737438374393744037441374423744337444374453744637447374483744937450374513745237453374543745537456374573745837459374603746137462374633746437465374663746737468374693747037471374723747337474374753747637477374783747937480374813748237483374843748537486374873748837489374903749137492374933749437495374963749737498374993750037501375023750337504375053750637507375083750937510375113751237513375143751537516375173751837519375203752137522375233752437525375263752737528375293753037531375323753337534375353753637537375383753937540375413754237543375443754537546375473754837549375503755137552375533755437555375563755737558375593756037561375623756337564375653756637567375683756937570375713757237573375743757537576375773757837579375803758137582375833758437585375863758737588375893759037591375923759337594375953759637597375983759937600376013760237603376043760537606376073760837609376103761137612376133761437615376163761737618376193762037621376223762337624376253762637627376283762937630376313763237633376343763537636376373763837639376403764137642376433764437645376463764737648376493765037651376523765337654376553765637657376583765937660376613766237663376643766537666376673766837669376703767137672376733767437675376763767737678376793768037681376823768337684376853768637687376883768937690376913769237693376943769537696376973769837699377003770137702377033770437705377063770737708377093771037711377123771337714377153771637717377183771937720377213772237723377243772537726377273772837729377303773137732377333773437735377363773737738377393774037741377423774337744377453774637747377483774937750377513775237753377543775537756377573775837759377603776137762377633776437765377663776737768377693777037771377723777337774377753777637777377783777937780377813778237783377843778537786377873778837789377903779137792377933779437795377963779737798377993780037801378023780337804378053780637807378083780937810378113781237813378143781537816378173781837819378203782137822378233782437825378263782737828378293783037831378323783337834378353783637837378383783937840378413784237843378443784537846378473784837849378503785137852378533785437855378563785737858378593786037861378623786337864378653786637867378683786937870378713787237873378743787537876378773787837879378803788137882378833788437885378863788737888378893789037891378923789337894378953789637897378983789937900379013790237903379043790537906379073790837909379103791137912379133791437915379163791737918379193792037921379223792337924379253792637927379283792937930379313793237933379343793537936379373793837939379403794137942379433794437945379463794737948379493795037951379523795337954379553795637957379583795937960379613796237963379643796537966379673796837969379703797137972379733797437975379763797737978379793798037981379823798337984379853798637987379883798937990379913799237993379943799537996379973799837999380003800138002380033800438005380063800738008380093801038011380123801338014380153801638017380183801938020380213802238023380243802538026380273802838029380303803138032380333803438035380363803738038380393804038041380423804338044380453804638047380483804938050380513805238053380543805538056380573805838059380603806138062380633806438065380663806738068380693807038071380723807338074380753807638077380783807938080380813808238083380843808538086380873808838089380903809138092380933809438095380963809738098380993810038101381023810338104381053810638107381083810938110381113811238113381143811538116381173811838119381203812138122381233812438125381263812738128381293813038131381323813338134381353813638137381383813938140381413814238143381443814538146381473814838149381503815138152381533815438155381563815738158381593816038161381623816338164381653816638167381683816938170381713817238173381743817538176381773817838179381803818138182381833818438185381863818738188381893819038191381923819338194381953819638197381983819938200382013820238203382043820538206382073820838209382103821138212382133821438215382163821738218382193822038221382223822338224382253822638227382283822938230382313823238233382343823538236382373823838239382403824138242382433824438245382463824738248382493825038251382523825338254382553825638257382583825938260382613826238263382643826538266382673826838269382703827138272382733827438275382763827738278382793828038281382823828338284382853828638287382883828938290382913829238293382943829538296382973829838299383003830138302383033830438305383063830738308383093831038311383123831338314383153831638317383183831938320383213832238323383243832538326383273832838329383303833138332383333833438335383363833738338383393834038341383423834338344383453834638347383483834938350383513835238353383543835538356383573835838359383603836138362383633836438365383663836738368383693837038371383723837338374383753837638377383783837938380383813838238383383843838538386383873838838389383903839138392383933839438395383963839738398383993840038401384023840338404384053840638407384083840938410384113841238413384143841538416384173841838419384203842138422384233842438425384263842738428384293843038431384323843338434384353843638437384383843938440384413844238443384443844538446384473844838449384503845138452384533845438455384563845738458384593846038461384623846338464384653846638467384683846938470384713847238473384743847538476384773847838479384803848138482384833848438485384863848738488384893849038491384923849338494384953849638497384983849938500385013850238503385043850538506385073850838509385103851138512385133851438515385163851738518385193852038521385223852338524385253852638527385283852938530385313853238533385343853538536385373853838539385403854138542385433854438545385463854738548385493855038551385523855338554385553855638557385583855938560385613856238563385643856538566385673856838569385703857138572385733857438575385763857738578385793858038581385823858338584385853858638587385883858938590385913859238593385943859538596385973859838599386003860138602386033860438605386063860738608386093861038611386123861338614386153861638617386183861938620386213862238623386243862538626386273862838629386303863138632386333863438635386363863738638386393864038641386423864338644386453864638647386483864938650386513865238653386543865538656386573865838659386603866138662386633866438665386663866738668386693867038671386723867338674386753867638677386783867938680386813868238683386843868538686386873868838689386903869138692386933869438695386963869738698386993870038701387023870338704387053870638707387083870938710387113871238713387143871538716387173871838719387203872138722387233872438725387263872738728387293873038731387323873338734387353873638737387383873938740387413874238743387443874538746387473874838749387503875138752387533875438755387563875738758387593876038761387623876338764387653876638767387683876938770387713877238773387743877538776387773877838779387803878138782387833878438785387863878738788387893879038791387923879338794387953879638797387983879938800388013880238803388043880538806388073880838809388103881138812388133881438815388163881738818388193882038821388223882338824388253882638827388283882938830388313883238833388343883538836388373883838839388403884138842388433884438845388463884738848388493885038851388523885338854388553885638857388583885938860388613886238863388643886538866388673886838869388703887138872388733887438875388763887738878388793888038881388823888338884388853888638887388883888938890388913889238893388943889538896388973889838899389003890138902389033890438905389063890738908389093891038911389123891338914389153891638917389183891938920389213892238923389243892538926389273892838929389303893138932389333893438935389363893738938389393894038941389423894338944389453894638947389483894938950389513895238953389543895538956389573895838959389603896138962389633896438965389663896738968389693897038971389723897338974389753897638977389783897938980389813898238983389843898538986389873898838989389903899138992389933899438995389963899738998389993900039001390023900339004390053900639007390083900939010390113901239013390143901539016390173901839019390203902139022390233902439025390263902739028390293903039031390323903339034390353903639037390383903939040390413904239043390443904539046390473904839049390503905139052390533905439055390563905739058390593906039061390623906339064390653906639067390683906939070390713907239073390743907539076390773907839079390803908139082390833908439085390863908739088390893909039091390923909339094390953909639097390983909939100391013910239103391043910539106391073910839109391103911139112391133911439115391163911739118391193912039121391223912339124391253912639127391283912939130391313913239133391343913539136391373913839139391403914139142391433914439145391463914739148391493915039151391523915339154391553915639157391583915939160391613916239163391643916539166391673916839169391703917139172391733917439175391763917739178391793918039181391823918339184391853918639187391883918939190391913919239193391943919539196391973919839199392003920139202392033920439205392063920739208392093921039211392123921339214392153921639217392183921939220392213922239223392243922539226392273922839229392303923139232392333923439235392363923739238392393924039241392423924339244392453924639247392483924939250392513925239253392543925539256392573925839259392603926139262392633926439265392663926739268392693927039271392723927339274392753927639277392783927939280392813928239283392843928539286392873928839289392903929139292392933929439295392963929739298392993930039301393023930339304393053930639307393083930939310393113931239313393143931539316393173931839319393203932139322393233932439325393263932739328393293933039331393323933339334393353933639337393383933939340393413934239343393443934539346393473934839349393503935139352393533935439355393563935739358393593936039361393623936339364393653936639367393683936939370393713937239373393743937539376393773937839379393803938139382393833938439385393863938739388393893939039391393923939339394393953939639397393983939939400394013940239403394043940539406394073940839409394103941139412394133941439415394163941739418394193942039421394223942339424394253942639427394283942939430394313943239433394343943539436394373943839439394403944139442394433944439445394463944739448394493945039451394523945339454394553945639457394583945939460394613946239463394643946539466394673946839469394703947139472394733947439475394763947739478394793948039481394823948339484394853948639487394883948939490394913949239493394943949539496394973949839499395003950139502395033950439505395063950739508395093951039511395123951339514395153951639517395183951939520395213952239523395243952539526395273952839529395303953139532395333953439535395363953739538395393954039541395423954339544395453954639547395483954939550395513955239553395543955539556395573955839559395603956139562395633956439565395663956739568395693957039571395723957339574395753957639577395783957939580395813958239583395843958539586395873958839589395903959139592395933959439595395963959739598395993960039601396023960339604396053960639607396083960939610396113961239613396143961539616396173961839619396203962139622396233962439625396263962739628396293963039631396323963339634396353963639637396383963939640396413964239643396443964539646396473964839649396503965139652396533965439655396563965739658396593966039661396623966339664396653966639667396683966939670396713967239673396743967539676396773967839679396803968139682396833968439685396863968739688396893969039691396923969339694396953969639697396983969939700397013970239703397043970539706397073970839709397103971139712397133971439715397163971739718397193972039721397223972339724397253972639727397283972939730397313973239733397343973539736397373973839739397403974139742397433974439745397463974739748397493975039751397523975339754397553975639757397583975939760397613976239763397643976539766397673976839769397703977139772397733977439775397763977739778397793978039781397823978339784397853978639787397883978939790397913979239793397943979539796397973979839799398003980139802398033980439805398063980739808398093981039811398123981339814398153981639817398183981939820398213982239823398243982539826398273982839829398303983139832398333983439835398363983739838398393984039841398423984339844398453984639847398483984939850398513985239853398543985539856398573985839859398603986139862398633986439865398663986739868398693987039871398723987339874398753987639877398783987939880398813988239883398843988539886398873988839889398903989139892398933989439895398963989739898398993990039901399023990339904399053990639907399083990939910399113991239913399143991539916399173991839919399203992139922399233992439925399263992739928399293993039931399323993339934399353993639937399383993939940399413994239943399443994539946399473994839949399503995139952399533995439955399563995739958399593996039961399623996339964399653996639967399683996939970399713997239973399743997539976399773997839979399803998139982399833998439985399863998739988399893999039991399923999339994399953999639997399983999940000400014000240003400044000540006400074000840009400104001140012400134001440015400164001740018400194002040021400224002340024400254002640027400284002940030400314003240033400344003540036400374003840039400404004140042400434004440045400464004740048400494005040051400524005340054400554005640057400584005940060400614006240063400644006540066400674006840069400704007140072400734007440075400764007740078400794008040081400824008340084400854008640087400884008940090400914009240093400944009540096400974009840099401004010140102401034010440105401064010740108401094011040111401124011340114401154011640117401184011940120401214012240123401244012540126401274012840129401304013140132401334013440135401364013740138401394014040141401424014340144401454014640147401484014940150401514015240153401544015540156401574015840159401604016140162401634016440165401664016740168401694017040171401724017340174401754017640177401784017940180401814018240183401844018540186401874018840189401904019140192401934019440195401964019740198401994020040201402024020340204402054020640207402084020940210402114021240213402144021540216402174021840219402204022140222402234022440225402264022740228402294023040231402324023340234402354023640237402384023940240402414024240243402444024540246402474024840249402504025140252402534025440255402564025740258402594026040261402624026340264402654026640267402684026940270402714027240273402744027540276402774027840279402804028140282402834028440285402864028740288402894029040291402924029340294402954029640297402984029940300403014030240303403044030540306403074030840309403104031140312403134031440315403164031740318403194032040321403224032340324403254032640327403284032940330403314033240333403344033540336403374033840339403404034140342403434034440345403464034740348403494035040351403524035340354403554035640357403584035940360403614036240363403644036540366403674036840369403704037140372403734037440375403764037740378403794038040381403824038340384403854038640387403884038940390403914039240393403944039540396403974039840399404004040140402404034040440405404064040740408404094041040411404124041340414404154041640417404184041940420404214042240423404244042540426404274042840429404304043140432404334043440435404364043740438404394044040441404424044340444404454044640447404484044940450404514045240453404544045540456404574045840459404604046140462404634046440465404664046740468404694047040471404724047340474404754047640477404784047940480404814048240483404844048540486404874048840489404904049140492404934049440495404964049740498404994050040501405024050340504405054050640507405084050940510405114051240513405144051540516405174051840519405204052140522405234052440525405264052740528405294053040531405324053340534405354053640537405384053940540405414054240543405444054540546405474054840549405504055140552405534055440555405564055740558405594056040561405624056340564405654056640567405684056940570405714057240573405744057540576405774057840579405804058140582405834058440585405864058740588405894059040591405924059340594405954059640597405984059940600406014060240603406044060540606406074060840609406104061140612406134061440615406164061740618406194062040621406224062340624406254062640627406284062940630406314063240633406344063540636406374063840639406404064140642406434064440645406464064740648406494065040651406524065340654406554065640657406584065940660406614066240663406644066540666406674066840669406704067140672406734067440675406764067740678406794068040681406824068340684406854068640687406884068940690406914069240693406944069540696406974069840699407004070140702407034070440705407064070740708407094071040711407124071340714407154071640717407184071940720407214072240723407244072540726407274072840729407304073140732407334073440735407364073740738407394074040741407424074340744407454074640747407484074940750407514075240753407544075540756407574075840759407604076140762407634076440765407664076740768407694077040771407724077340774407754077640777407784077940780407814078240783407844078540786407874078840789407904079140792407934079440795407964079740798407994080040801408024080340804408054080640807408084080940810408114081240813408144081540816408174081840819408204082140822408234082440825408264082740828408294083040831408324083340834408354083640837408384083940840408414084240843408444084540846408474084840849408504085140852408534085440855408564085740858408594086040861408624086340864408654086640867408684086940870408714087240873408744087540876408774087840879408804088140882408834088440885408864088740888408894089040891408924089340894408954089640897408984089940900409014090240903409044090540906409074090840909409104091140912409134091440915409164091740918409194092040921409224092340924409254092640927409284092940930409314093240933409344093540936409374093840939409404094140942409434094440945409464094740948409494095040951409524095340954409554095640957409584095940960409614096240963409644096540966409674096840969409704097140972409734097440975409764097740978409794098040981409824098340984409854098640987409884098940990409914099240993409944099540996409974099840999410004100141002410034100441005410064100741008410094101041011410124101341014410154101641017410184101941020410214102241023410244102541026410274102841029410304103141032410334103441035410364103741038410394104041041410424104341044410454104641047410484104941050410514105241053410544105541056410574105841059410604106141062410634106441065410664106741068410694107041071410724107341074410754107641077410784107941080410814108241083410844108541086410874108841089410904109141092410934109441095410964109741098410994110041101411024110341104411054110641107411084110941110411114111241113411144111541116411174111841119411204112141122411234112441125411264112741128411294113041131411324113341134411354113641137411384113941140411414114241143411444114541146411474114841149411504115141152411534115441155411564115741158411594116041161411624116341164411654116641167411684116941170411714117241173411744117541176411774117841179411804118141182411834118441185411864118741188411894119041191411924119341194411954119641197411984119941200412014120241203412044120541206412074120841209412104121141212412134121441215412164121741218412194122041221412224122341224412254122641227412284122941230412314123241233412344123541236412374123841239412404124141242412434124441245412464124741248412494125041251412524125341254412554125641257412584125941260412614126241263412644126541266412674126841269412704127141272412734127441275412764127741278412794128041281412824128341284412854128641287412884128941290412914129241293412944129541296412974129841299413004130141302413034130441305413064130741308413094131041311413124131341314413154131641317413184131941320413214132241323413244132541326413274132841329413304133141332413334133441335413364133741338413394134041341413424134341344413454134641347413484134941350413514135241353413544135541356413574135841359413604136141362413634136441365413664136741368413694137041371413724137341374413754137641377413784137941380413814138241383413844138541386413874138841389413904139141392413934139441395413964139741398413994140041401414024140341404414054140641407414084140941410414114141241413414144141541416414174141841419414204142141422414234142441425414264142741428414294143041431414324143341434414354143641437414384143941440414414144241443414444144541446414474144841449414504145141452414534145441455414564145741458414594146041461414624146341464414654146641467414684146941470414714147241473414744147541476414774147841479414804148141482414834148441485414864148741488414894149041491414924149341494414954149641497414984149941500415014150241503415044150541506415074150841509415104151141512415134151441515415164151741518415194152041521415224152341524415254152641527415284152941530415314153241533415344153541536415374153841539415404154141542415434154441545415464154741548415494155041551415524155341554415554155641557415584155941560415614156241563415644156541566415674156841569415704157141572415734157441575415764157741578415794158041581415824158341584415854158641587415884158941590415914159241593415944159541596415974159841599416004160141602416034160441605416064160741608416094161041611416124161341614416154161641617416184161941620416214162241623416244162541626416274162841629416304163141632416334163441635416364163741638416394164041641416424164341644416454164641647416484164941650416514165241653416544165541656416574165841659416604166141662416634166441665416664166741668416694167041671416724167341674416754167641677416784167941680416814168241683416844168541686416874168841689416904169141692416934169441695416964169741698416994170041701417024170341704417054170641707417084170941710417114171241713417144171541716417174171841719417204172141722417234172441725417264172741728417294173041731417324173341734417354173641737417384173941740417414174241743417444174541746417474174841749417504175141752417534175441755417564175741758417594176041761417624176341764417654176641767417684176941770417714177241773417744177541776417774177841779417804178141782417834178441785417864178741788417894179041791417924179341794417954179641797417984179941800418014180241803418044180541806418074180841809418104181141812418134181441815418164181741818418194182041821418224182341824418254182641827418284182941830418314183241833418344183541836418374183841839418404184141842418434184441845418464184741848418494185041851418524185341854418554185641857418584185941860418614186241863418644186541866418674186841869418704187141872418734187441875418764187741878418794188041881418824188341884418854188641887418884188941890418914189241893418944189541896418974189841899419004190141902419034190441905419064190741908419094191041911419124191341914419154191641917419184191941920419214192241923419244192541926419274192841929419304193141932419334193441935419364193741938419394194041941419424194341944419454194641947419484194941950419514195241953419544195541956419574195841959419604196141962419634196441965419664196741968419694197041971419724197341974419754197641977419784197941980419814198241983419844198541986419874198841989419904199141992419934199441995419964199741998419994200042001420024200342004420054200642007420084200942010420114201242013420144201542016420174201842019420204202142022420234202442025420264202742028420294203042031420324203342034420354203642037420384203942040420414204242043420444204542046420474204842049420504205142052420534205442055420564205742058420594206042061420624206342064420654206642067420684206942070420714207242073420744207542076420774207842079420804208142082420834208442085420864208742088420894209042091420924209342094420954209642097420984209942100421014210242103421044210542106421074210842109421104211142112421134211442115421164211742118421194212042121421224212342124421254212642127421284212942130421314213242133421344213542136421374213842139421404214142142421434214442145421464214742148421494215042151421524215342154421554215642157421584215942160421614216242163421644216542166421674216842169421704217142172421734217442175421764217742178421794218042181421824218342184421854218642187421884218942190421914219242193421944219542196421974219842199422004220142202422034220442205422064220742208422094221042211422124221342214422154221642217422184221942220422214222242223422244222542226422274222842229422304223142232422334223442235422364223742238422394224042241422424224342244422454224642247422484224942250422514225242253422544225542256422574225842259422604226142262422634226442265422664226742268422694227042271422724227342274422754227642277422784227942280422814228242283422844228542286422874228842289422904229142292422934229442295422964229742298422994230042301423024230342304423054230642307423084230942310423114231242313423144231542316423174231842319423204232142322423234232442325423264232742328423294233042331423324233342334423354233642337423384233942340423414234242343423444234542346423474234842349423504235142352423534235442355423564235742358423594236042361423624236342364423654236642367423684236942370423714237242373423744237542376423774237842379423804238142382423834238442385423864238742388423894239042391423924239342394423954239642397423984239942400424014240242403424044240542406424074240842409424104241142412424134241442415424164241742418424194242042421424224242342424424254242642427424284242942430424314243242433424344243542436424374243842439424404244142442424434244442445424464244742448424494245042451424524245342454424554245642457424584245942460424614246242463424644246542466424674246842469424704247142472424734247442475424764247742478424794248042481424824248342484424854248642487424884248942490424914249242493424944249542496424974249842499425004250142502425034250442505425064250742508425094251042511425124251342514425154251642517425184251942520425214252242523425244252542526425274252842529425304253142532425334253442535425364253742538425394254042541425424254342544425454254642547425484254942550425514255242553425544255542556425574255842559425604256142562425634256442565425664256742568425694257042571425724257342574425754257642577425784257942580425814258242583425844258542586425874258842589425904259142592425934259442595425964259742598425994260042601426024260342604426054260642607426084260942610426114261242613426144261542616426174261842619426204262142622426234262442625426264262742628426294263042631426324263342634426354263642637426384263942640426414264242643426444264542646426474264842649426504265142652426534265442655426564265742658426594266042661426624266342664426654266642667426684266942670426714267242673426744267542676426774267842679426804268142682426834268442685426864268742688426894269042691426924269342694426954269642697426984269942700427014270242703427044270542706427074270842709427104271142712427134271442715427164271742718427194272042721427224272342724427254272642727427284272942730427314273242733427344273542736427374273842739427404274142742427434274442745427464274742748427494275042751427524275342754427554275642757427584275942760427614276242763427644276542766427674276842769427704277142772427734277442775427764277742778427794278042781427824278342784427854278642787427884278942790427914279242793427944279542796427974279842799428004280142802428034280442805428064280742808428094281042811428124281342814428154281642817428184281942820428214282242823428244282542826428274282842829428304283142832428334283442835428364283742838428394284042841428424284342844428454284642847428484284942850428514285242853428544285542856428574285842859428604286142862428634286442865428664286742868428694287042871428724287342874428754287642877428784287942880428814288242883428844288542886428874288842889428904289142892428934289442895428964289742898428994290042901429024290342904429054290642907429084290942910429114291242913429144291542916429174291842919429204292142922429234292442925429264292742928429294293042931429324293342934429354293642937429384293942940429414294242943429444294542946429474294842949429504295142952429534295442955429564295742958429594296042961429624296342964429654296642967429684296942970429714297242973429744297542976429774297842979429804298142982429834298442985429864298742988429894299042991429924299342994429954299642997429984299943000430014300243003430044300543006430074300843009430104301143012430134301443015430164301743018430194302043021430224302343024430254302643027430284302943030430314303243033430344303543036430374303843039430404304143042430434304443045430464304743048430494305043051430524305343054430554305643057430584305943060430614306243063430644306543066430674306843069430704307143072430734307443075430764307743078430794308043081430824308343084430854308643087430884308943090430914309243093430944309543096430974309843099431004310143102431034310443105431064310743108431094311043111431124311343114431154311643117431184311943120431214312243123431244312543126431274312843129431304313143132431334313443135431364313743138431394314043141431424314343144431454314643147431484314943150431514315243153431544315543156431574315843159431604316143162431634316443165431664316743168431694317043171431724317343174431754317643177431784317943180431814318243183431844318543186431874318843189431904319143192431934319443195431964319743198431994320043201432024320343204432054320643207432084320943210432114321243213432144321543216432174321843219432204322143222432234322443225432264322743228432294323043231432324323343234432354323643237432384323943240432414324243243432444324543246432474324843249432504325143252432534325443255432564325743258432594326043261432624326343264432654326643267432684326943270432714327243273432744327543276432774327843279432804328143282432834328443285432864328743288432894329043291432924329343294432954329643297432984329943300433014330243303433044330543306433074330843309433104331143312433134331443315433164331743318433194332043321433224332343324433254332643327433284332943330433314333243333433344333543336433374333843339433404334143342433434334443345433464334743348433494335043351433524335343354433554335643357433584335943360433614336243363433644336543366433674336843369433704337143372433734337443375433764337743378433794338043381433824338343384433854338643387433884338943390433914339243393433944339543396433974339843399434004340143402434034340443405434064340743408434094341043411434124341343414434154341643417434184341943420434214342243423434244342543426434274342843429434304343143432434334343443435434364343743438434394344043441434424344343444434454344643447434484344943450434514345243453434544345543456434574345843459434604346143462434634346443465434664346743468434694347043471434724347343474434754347643477434784347943480434814348243483434844348543486434874348843489434904349143492434934349443495434964349743498434994350043501435024350343504435054350643507435084350943510435114351243513435144351543516435174351843519435204352143522435234352443525435264352743528435294353043531435324353343534435354353643537435384353943540435414354243543435444354543546435474354843549435504355143552435534355443555435564355743558435594356043561435624356343564435654356643567435684356943570435714357243573435744357543576435774357843579435804358143582435834358443585435864358743588435894359043591435924359343594435954359643597435984359943600436014360243603436044360543606436074360843609436104361143612436134361443615436164361743618436194362043621436224362343624436254362643627436284362943630436314363243633436344363543636436374363843639436404364143642436434364443645436464364743648436494365043651436524365343654436554365643657436584365943660436614366243663436644366543666436674366843669436704367143672436734367443675436764367743678436794368043681436824368343684436854368643687436884368943690436914369243693436944369543696436974369843699437004370143702437034370443705437064370743708437094371043711437124371343714437154371643717437184371943720437214372243723437244372543726437274372843729437304373143732437334373443735437364373743738437394374043741437424374343744437454374643747437484374943750437514375243753437544375543756437574375843759437604376143762437634376443765437664376743768437694377043771437724377343774437754377643777437784377943780437814378243783437844378543786437874378843789437904379143792437934379443795437964379743798437994380043801438024380343804438054380643807438084380943810438114381243813438144381543816438174381843819438204382143822438234382443825438264382743828438294383043831438324383343834438354383643837438384383943840438414384243843438444384543846438474384843849438504385143852438534385443855438564385743858438594386043861438624386343864438654386643867438684386943870438714387243873438744387543876438774387843879438804388143882438834388443885438864388743888438894389043891438924389343894438954389643897438984389943900439014390243903439044390543906439074390843909439104391143912439134391443915439164391743918439194392043921439224392343924439254392643927439284392943930439314393243933439344393543936439374393843939439404394143942439434394443945439464394743948439494395043951439524395343954439554395643957439584395943960439614396243963439644396543966439674396843969439704397143972439734397443975439764397743978439794398043981439824398343984439854398643987439884398943990439914399243993439944399543996439974399843999440004400144002440034400444005440064400744008440094401044011440124401344014440154401644017440184401944020440214402244023440244402544026440274402844029440304403144032440334403444035440364403744038440394404044041440424404344044440454404644047440484404944050440514405244053440544405544056440574405844059440604406144062440634406444065440664406744068440694407044071440724407344074440754407644077440784407944080440814408244083440844408544086440874408844089440904409144092440934409444095440964409744098440994410044101441024410344104441054410644107441084410944110441114411244113441144411544116441174411844119441204412144122441234412444125441264412744128441294413044131441324413344134441354413644137441384413944140441414414244143441444414544146441474414844149441504415144152441534415444155441564415744158441594416044161441624416344164441654416644167441684416944170441714417244173441744417544176441774417844179441804418144182441834418444185441864418744188441894419044191441924419344194441954419644197441984419944200442014420244203442044420544206442074420844209442104421144212442134421444215442164421744218442194422044221442224422344224442254422644227442284422944230442314423244233442344423544236442374423844239442404424144242442434424444245442464424744248442494425044251442524425344254442554425644257442584425944260442614426244263442644426544266442674426844269442704427144272442734427444275442764427744278442794428044281442824428344284442854428644287442884428944290442914429244293442944429544296442974429844299443004430144302443034430444305443064430744308443094431044311443124431344314443154431644317443184431944320443214432244323443244432544326443274432844329443304433144332443334433444335443364433744338443394434044341443424434344344443454434644347443484434944350443514435244353443544435544356443574435844359443604436144362443634436444365443664436744368443694437044371443724437344374443754437644377443784437944380443814438244383443844438544386443874438844389443904439144392443934439444395443964439744398443994440044401444024440344404444054440644407444084440944410444114441244413444144441544416444174441844419444204442144422444234442444425444264442744428444294443044431444324443344434444354443644437444384443944440444414444244443444444444544446444474444844449444504445144452444534445444455444564445744458444594446044461444624446344464444654446644467444684446944470444714447244473444744447544476444774447844479444804448144482444834448444485444864448744488444894449044491444924449344494444954449644497444984449944500445014450244503445044450544506445074450844509445104451144512445134451444515445164451744518445194452044521445224452344524445254452644527445284452944530445314453244533445344453544536445374453844539445404454144542445434454444545445464454744548445494455044551445524455344554445554455644557445584455944560445614456244563445644456544566445674456844569445704457144572445734457444575445764457744578445794458044581445824458344584445854458644587445884458944590445914459244593445944459544596445974459844599446004460144602446034460444605446064460744608446094461044611446124461344614446154461644617446184461944620446214462244623446244462544626446274462844629446304463144632446334463444635446364463744638446394464044641446424464344644446454464644647446484464944650446514465244653446544465544656446574465844659446604466144662446634466444665446664466744668446694467044671446724467344674446754467644677446784467944680446814468244683446844468544686446874468844689446904469144692446934469444695446964469744698446994470044701447024470344704447054470644707447084470944710447114471244713447144471544716447174471844719447204472144722447234472444725447264472744728447294473044731447324473344734447354473644737447384473944740447414474244743447444474544746447474474844749447504475144752447534475444755447564475744758447594476044761447624476344764447654476644767447684476944770447714477244773447744477544776447774477844779447804478144782447834478444785447864478744788447894479044791447924479344794447954479644797447984479944800448014480244803448044480544806448074480844809448104481144812448134481444815448164481744818448194482044821448224482344824448254482644827448284482944830448314483244833448344483544836448374483844839448404484144842448434484444845448464484744848448494485044851448524485344854448554485644857448584485944860448614486244863448644486544866448674486844869448704487144872448734487444875448764487744878448794488044881448824488344884448854488644887448884488944890448914489244893448944489544896448974489844899449004490144902449034490444905449064490744908449094491044911449124491344914449154491644917449184491944920449214492244923449244492544926449274492844929449304493144932449334493444935449364493744938449394494044941449424494344944449454494644947449484494944950449514495244953449544495544956449574495844959449604496144962449634496444965449664496744968449694497044971449724497344974449754497644977449784497944980449814498244983449844498544986449874498844989449904499144992449934499444995449964499744998449994500045001450024500345004450054500645007450084500945010450114501245013450144501545016450174501845019450204502145022450234502445025450264502745028450294503045031450324503345034450354503645037450384503945040450414504245043450444504545046450474504845049450504505145052450534505445055450564505745058450594506045061450624506345064450654506645067450684506945070450714507245073450744507545076450774507845079450804508145082450834508445085450864508745088450894509045091450924509345094450954509645097450984509945100451014510245103451044510545106451074510845109451104511145112451134511445115451164511745118451194512045121451224512345124451254512645127451284512945130451314513245133451344513545136451374513845139451404514145142451434514445145451464514745148451494515045151451524515345154451554515645157451584515945160451614516245163451644516545166451674516845169451704517145172451734517445175451764517745178451794518045181451824518345184451854518645187451884518945190451914519245193451944519545196451974519845199452004520145202452034520445205452064520745208452094521045211452124521345214452154521645217452184521945220452214522245223452244522545226452274522845229452304523145232452334523445235452364523745238452394524045241452424524345244452454524645247452484524945250452514525245253452544525545256452574525845259452604526145262452634526445265452664526745268452694527045271452724527345274452754527645277452784527945280452814528245283452844528545286452874528845289452904529145292452934529445295452964529745298452994530045301453024530345304453054530645307453084530945310453114531245313453144531545316453174531845319453204532145322453234532445325453264532745328453294533045331453324533345334453354533645337453384533945340453414534245343453444534545346453474534845349453504535145352453534535445355453564535745358453594536045361453624536345364453654536645367453684536945370453714537245373453744537545376453774537845379453804538145382453834538445385453864538745388453894539045391453924539345394453954539645397453984539945400454014540245403454044540545406454074540845409454104541145412454134541445415454164541745418454194542045421454224542345424454254542645427454284542945430454314543245433454344543545436454374543845439454404544145442454434544445445454464544745448454494545045451454524545345454454554545645457454584545945460454614546245463454644546545466454674546845469454704547145472454734547445475454764547745478454794548045481454824548345484454854548645487454884548945490454914549245493454944549545496454974549845499455004550145502455034550445505455064550745508455094551045511455124551345514455154551645517455184551945520455214552245523455244552545526455274552845529455304553145532455334553445535455364553745538455394554045541455424554345544455454554645547455484554945550455514555245553455544555545556455574555845559455604556145562455634556445565455664556745568455694557045571455724557345574455754557645577455784557945580455814558245583455844558545586455874558845589455904559145592455934559445595455964559745598455994560045601456024560345604456054560645607456084560945610456114561245613456144561545616456174561845619456204562145622456234562445625456264562745628456294563045631456324563345634456354563645637456384563945640456414564245643456444564545646456474564845649456504565145652456534565445655456564565745658456594566045661456624566345664456654566645667456684566945670456714567245673456744567545676456774567845679456804568145682456834568445685456864568745688456894569045691456924569345694456954569645697456984569945700457014570245703457044570545706457074570845709457104571145712457134571445715457164571745718457194572045721457224572345724457254572645727457284572945730457314573245733457344573545736457374573845739457404574145742457434574445745457464574745748457494575045751457524575345754457554575645757457584575945760457614576245763457644576545766457674576845769457704577145772457734577445775457764577745778457794578045781457824578345784457854578645787457884578945790457914579245793457944579545796457974579845799458004580145802458034580445805458064580745808458094581045811458124581345814458154581645817458184581945820458214582245823458244582545826458274582845829458304583145832458334583445835458364583745838458394584045841458424584345844458454584645847458484584945850458514585245853458544585545856458574585845859458604586145862458634586445865458664586745868458694587045871458724587345874458754587645877458784587945880458814588245883458844588545886458874588845889458904589145892458934589445895458964589745898458994590045901459024590345904459054590645907459084590945910459114591245913459144591545916459174591845919459204592145922459234592445925459264592745928459294593045931459324593345934459354593645937459384593945940459414594245943459444594545946459474594845949459504595145952459534595445955459564595745958459594596045961459624596345964459654596645967459684596945970459714597245973459744597545976459774597845979459804598145982459834598445985459864598745988459894599045991459924599345994459954599645997459984599946000460014600246003460044600546006460074600846009460104601146012460134601446015460164601746018460194602046021460224602346024460254602646027460284602946030460314603246033460344603546036460374603846039460404604146042460434604446045460464604746048460494605046051460524605346054460554605646057460584605946060460614606246063460644606546066460674606846069460704607146072460734607446075460764607746078460794608046081460824608346084460854608646087460884608946090460914609246093460944609546096460974609846099461004610146102461034610446105461064610746108461094611046111461124611346114461154611646117461184611946120461214612246123461244612546126461274612846129461304613146132461334613446135461364613746138461394614046141461424614346144461454614646147461484614946150461514615246153461544615546156461574615846159461604616146162461634616446165461664616746168461694617046171461724617346174461754617646177461784617946180461814618246183461844618546186461874618846189461904619146192461934619446195461964619746198461994620046201462024620346204462054620646207462084620946210462114621246213462144621546216462174621846219462204622146222462234622446225462264622746228462294623046231462324623346234462354623646237462384623946240462414624246243462444624546246462474624846249462504625146252462534625446255462564625746258462594626046261462624626346264462654626646267462684626946270462714627246273462744627546276462774627846279462804628146282462834628446285462864628746288462894629046291462924629346294462954629646297462984629946300463014630246303463044630546306463074630846309463104631146312463134631446315463164631746318463194632046321463224632346324463254632646327463284632946330463314633246333463344633546336463374633846339463404634146342463434634446345463464634746348463494635046351463524635346354463554635646357463584635946360463614636246363463644636546366463674636846369463704637146372463734637446375463764637746378463794638046381463824638346384463854638646387463884638946390463914639246393463944639546396463974639846399464004640146402464034640446405464064640746408464094641046411464124641346414464154641646417464184641946420464214642246423464244642546426464274642846429464304643146432464334643446435464364643746438464394644046441464424644346444464454644646447464484644946450464514645246453464544645546456464574645846459464604646146462464634646446465464664646746468464694647046471464724647346474464754647646477464784647946480464814648246483464844648546486464874648846489464904649146492464934649446495464964649746498464994650046501465024650346504465054650646507465084650946510465114651246513465144651546516465174651846519465204652146522465234652446525465264652746528465294653046531465324653346534465354653646537465384653946540465414654246543465444654546546465474654846549465504655146552465534655446555465564655746558465594656046561465624656346564465654656646567465684656946570465714657246573465744657546576465774657846579465804658146582465834658446585465864658746588465894659046591465924659346594465954659646597465984659946600466014660246603466044660546606466074660846609466104661146612466134661446615466164661746618466194662046621466224662346624466254662646627466284662946630466314663246633466344663546636466374663846639466404664146642466434664446645466464664746648466494665046651466524665346654466554665646657466584665946660466614666246663466644666546666466674666846669466704667146672466734667446675466764667746678466794668046681466824668346684466854668646687466884668946690466914669246693466944669546696466974669846699467004670146702467034670446705467064670746708467094671046711467124671346714467154671646717467184671946720467214672246723467244672546726467274672846729467304673146732467334673446735467364673746738467394674046741467424674346744467454674646747467484674946750467514675246753467544675546756467574675846759467604676146762467634676446765467664676746768467694677046771467724677346774467754677646777467784677946780467814678246783467844678546786467874678846789467904679146792467934679446795467964679746798467994680046801468024680346804468054680646807468084680946810468114681246813468144681546816468174681846819468204682146822468234682446825468264682746828468294683046831468324683346834468354683646837468384683946840468414684246843468444684546846468474684846849468504685146852468534685446855468564685746858468594686046861468624686346864468654686646867468684686946870468714687246873468744687546876468774687846879468804688146882468834688446885468864688746888468894689046891468924689346894468954689646897468984689946900469014690246903469044690546906469074690846909469104691146912469134691446915469164691746918469194692046921469224692346924469254692646927469284692946930469314693246933469344693546936469374693846939469404694146942469434694446945469464694746948469494695046951469524695346954469554695646957469584695946960469614696246963469644696546966469674696846969469704697146972469734697446975469764697746978469794698046981469824698346984469854698646987469884698946990469914699246993469944699546996469974699846999470004700147002470034700447005470064700747008470094701047011470124701347014470154701647017470184701947020470214702247023470244702547026470274702847029470304703147032470334703447035470364703747038470394704047041470424704347044470454704647047470484704947050470514705247053470544705547056470574705847059470604706147062470634706447065470664706747068470694707047071470724707347074470754707647077470784707947080470814708247083470844708547086470874708847089470904709147092470934709447095470964709747098470994710047101471024710347104471054710647107471084710947110471114711247113471144711547116471174711847119471204712147122471234712447125471264712747128471294713047131471324713347134471354713647137471384713947140471414714247143471444714547146471474714847149471504715147152471534715447155471564715747158471594716047161471624716347164471654716647167471684716947170471714717247173471744717547176471774717847179471804718147182471834718447185471864718747188471894719047191471924719347194471954719647197471984719947200472014720247203472044720547206472074720847209472104721147212472134721447215472164721747218472194722047221472224722347224472254722647227472284722947230472314723247233472344723547236472374723847239472404724147242472434724447245472464724747248472494725047251472524725347254472554725647257472584725947260472614726247263472644726547266472674726847269472704727147272472734727447275472764727747278472794728047281472824728347284472854728647287472884728947290472914729247293472944729547296472974729847299473004730147302473034730447305473064730747308473094731047311473124731347314473154731647317473184731947320473214732247323473244732547326473274732847329473304733147332473334733447335473364733747338473394734047341473424734347344473454734647347473484734947350473514735247353473544735547356473574735847359473604736147362473634736447365473664736747368473694737047371473724737347374473754737647377473784737947380473814738247383473844738547386473874738847389473904739147392473934739447395473964739747398473994740047401474024740347404474054740647407474084740947410474114741247413474144741547416474174741847419474204742147422474234742447425474264742747428474294743047431474324743347434474354743647437474384743947440474414744247443474444744547446474474744847449474504745147452474534745447455474564745747458474594746047461474624746347464474654746647467474684746947470474714747247473474744747547476474774747847479474804748147482474834748447485474864748747488474894749047491474924749347494474954749647497474984749947500475014750247503475044750547506475074750847509475104751147512475134751447515475164751747518475194752047521475224752347524475254752647527475284752947530475314753247533475344753547536475374753847539475404754147542475434754447545475464754747548475494755047551475524755347554475554755647557475584755947560475614756247563475644756547566475674756847569475704757147572475734757447575475764757747578475794758047581475824758347584475854758647587475884758947590475914759247593475944759547596475974759847599476004760147602476034760447605476064760747608476094761047611476124761347614476154761647617476184761947620476214762247623476244762547626476274762847629476304763147632476334763447635476364763747638476394764047641476424764347644476454764647647476484764947650476514765247653476544765547656476574765847659476604766147662476634766447665476664766747668476694767047671476724767347674476754767647677476784767947680476814768247683476844768547686476874768847689476904769147692476934769447695476964769747698476994770047701477024770347704477054770647707477084770947710477114771247713477144771547716477174771847719477204772147722477234772447725477264772747728477294773047731477324773347734477354773647737477384773947740477414774247743477444774547746477474774847749477504775147752477534775447755477564775747758477594776047761477624776347764477654776647767477684776947770477714777247773477744777547776477774777847779477804778147782477834778447785477864778747788477894779047791477924779347794477954779647797477984779947800478014780247803478044780547806478074780847809478104781147812478134781447815478164781747818478194782047821478224782347824478254782647827478284782947830478314783247833478344783547836478374783847839478404784147842478434784447845478464784747848478494785047851478524785347854478554785647857478584785947860478614786247863478644786547866478674786847869478704787147872478734787447875478764787747878478794788047881478824788347884478854788647887478884788947890478914789247893478944789547896478974789847899479004790147902479034790447905479064790747908479094791047911479124791347914479154791647917479184791947920479214792247923479244792547926479274792847929479304793147932479334793447935479364793747938479394794047941479424794347944479454794647947479484794947950479514795247953479544795547956479574795847959479604796147962479634796447965479664796747968479694797047971479724797347974479754797647977479784797947980479814798247983479844798547986479874798847989479904799147992479934799447995479964799747998479994800048001480024800348004480054800648007480084800948010480114801248013480144801548016480174801848019480204802148022480234802448025480264802748028480294803048031480324803348034480354803648037480384803948040480414804248043480444804548046480474804848049480504805148052480534805448055480564805748058480594806048061480624806348064480654806648067480684806948070480714807248073480744807548076480774807848079480804808148082480834808448085480864808748088480894809048091480924809348094480954809648097480984809948100481014810248103481044810548106481074810848109481104811148112481134811448115481164811748118481194812048121481224812348124481254812648127481284812948130481314813248133481344813548136481374813848139481404814148142481434814448145481464814748148481494815048151481524815348154481554815648157481584815948160481614816248163481644816548166481674816848169481704817148172481734817448175481764817748178481794818048181481824818348184481854818648187481884818948190481914819248193481944819548196481974819848199482004820148202482034820448205482064820748208482094821048211482124821348214482154821648217482184821948220482214822248223482244822548226482274822848229482304823148232482334823448235482364823748238482394824048241482424824348244482454824648247482484824948250482514825248253482544825548256482574825848259482604826148262482634826448265482664826748268482694827048271482724827348274482754827648277482784827948280482814828248283482844828548286482874828848289482904829148292482934829448295482964829748298482994830048301483024830348304483054830648307483084830948310483114831248313483144831548316483174831848319483204832148322483234832448325483264832748328483294833048331483324833348334483354833648337483384833948340483414834248343483444834548346483474834848349483504835148352483534835448355483564835748358483594836048361483624836348364483654836648367483684836948370483714837248373483744837548376483774837848379483804838148382483834838448385483864838748388483894839048391483924839348394483954839648397483984839948400484014840248403484044840548406484074840848409484104841148412484134841448415484164841748418484194842048421484224842348424484254842648427484284842948430484314843248433484344843548436484374843848439484404844148442484434844448445484464844748448484494845048451484524845348454484554845648457484584845948460484614846248463484644846548466484674846848469484704847148472484734847448475484764847748478484794848048481484824848348484484854848648487484884848948490484914849248493484944849548496484974849848499485004850148502485034850448505485064850748508485094851048511485124851348514485154851648517485184851948520485214852248523485244852548526485274852848529485304853148532485334853448535485364853748538485394854048541485424854348544485454854648547485484854948550485514855248553485544855548556485574855848559485604856148562485634856448565485664856748568485694857048571485724857348574485754857648577485784857948580485814858248583485844858548586485874858848589485904859148592485934859448595485964859748598485994860048601486024860348604486054860648607486084860948610486114861248613486144861548616486174861848619486204862148622486234862448625486264862748628486294863048631486324863348634486354863648637486384863948640486414864248643486444864548646486474864848649486504865148652486534865448655486564865748658486594866048661486624866348664486654866648667486684866948670486714867248673486744867548676486774867848679486804868148682486834868448685486864868748688486894869048691486924869348694486954869648697486984869948700487014870248703487044870548706487074870848709487104871148712487134871448715487164871748718487194872048721487224872348724487254872648727487284872948730487314873248733487344873548736487374873848739487404874148742487434874448745487464874748748487494875048751487524875348754487554875648757487584875948760487614876248763487644876548766487674876848769487704877148772487734877448775487764877748778487794878048781487824878348784487854878648787487884878948790487914879248793487944879548796487974879848799488004880148802488034880448805488064880748808488094881048811488124881348814488154881648817488184881948820488214882248823488244882548826488274882848829488304883148832488334883448835488364883748838488394884048841488424884348844488454884648847488484884948850488514885248853488544885548856488574885848859488604886148862488634886448865488664886748868488694887048871488724887348874488754887648877488784887948880488814888248883488844888548886488874888848889488904889148892488934889448895488964889748898488994890048901489024890348904489054890648907489084890948910489114891248913489144891548916489174891848919489204892148922489234892448925489264892748928489294893048931489324893348934489354893648937489384893948940489414894248943489444894548946489474894848949489504895148952489534895448955489564895748958489594896048961489624896348964489654896648967489684896948970489714897248973489744897548976489774897848979489804898148982489834898448985489864898748988489894899048991489924899348994489954899648997489984899949000490014900249003490044900549006490074900849009490104901149012490134901449015490164901749018490194902049021490224902349024490254902649027490284902949030490314903249033490344903549036490374903849039490404904149042490434904449045490464904749048490494905049051490524905349054490554905649057490584905949060490614906249063490644906549066490674906849069490704907149072490734907449075490764907749078490794908049081490824908349084490854908649087490884908949090490914909249093490944909549096490974909849099491004910149102491034910449105491064910749108491094911049111491124911349114491154911649117491184911949120491214912249123491244912549126491274912849129491304913149132491334913449135491364913749138491394914049141491424914349144491454914649147491484914949150491514915249153491544915549156491574915849159491604916149162491634916449165491664916749168491694917049171491724917349174491754917649177491784917949180491814918249183491844918549186491874918849189491904919149192491934919449195491964919749198491994920049201492024920349204492054920649207492084920949210492114921249213492144921549216492174921849219492204922149222492234922449225492264922749228492294923049231492324923349234492354923649237492384923949240492414924249243492444924549246492474924849249492504925149252492534925449255492564925749258492594926049261492624926349264492654926649267492684926949270492714927249273492744927549276492774927849279492804928149282492834928449285492864928749288492894929049291492924929349294492954929649297492984929949300493014930249303493044930549306493074930849309493104931149312493134931449315493164931749318493194932049321493224932349324493254932649327493284932949330493314933249333493344933549336493374933849339493404934149342493434934449345493464934749348493494935049351493524935349354493554935649357493584935949360493614936249363493644936549366493674936849369493704937149372493734937449375493764937749378493794938049381493824938349384493854938649387493884938949390493914939249393493944939549396493974939849399494004940149402494034940449405494064940749408494094941049411494124941349414494154941649417494184941949420494214942249423494244942549426494274942849429494304943149432494334943449435494364943749438494394944049441494424944349444494454944649447494484944949450494514945249453494544945549456494574945849459494604946149462494634946449465494664946749468494694947049471494724947349474494754947649477494784947949480494814948249483494844948549486494874948849489494904949149492494934949449495494964949749498494994950049501495024950349504495054950649507495084950949510495114951249513495144951549516495174951849519495204952149522495234952449525495264952749528495294953049531495324953349534495354953649537495384953949540495414954249543495444954549546495474954849549495504955149552495534955449555495564955749558495594956049561495624956349564495654956649567495684956949570495714957249573495744957549576495774957849579495804958149582495834958449585495864958749588495894959049591495924959349594495954959649597495984959949600496014960249603496044960549606496074960849609496104961149612496134961449615496164961749618496194962049621496224962349624496254962649627496284962949630496314963249633496344963549636496374963849639496404964149642496434964449645496464964749648496494965049651496524965349654496554965649657496584965949660496614966249663496644966549666496674966849669496704967149672496734967449675496764967749678496794968049681496824968349684496854968649687496884968949690496914969249693496944969549696496974969849699497004970149702497034970449705497064970749708497094971049711497124971349714497154971649717497184971949720497214972249723497244972549726497274972849729497304973149732497334973449735497364973749738497394974049741497424974349744497454974649747497484974949750497514975249753497544975549756497574975849759497604976149762497634976449765497664976749768497694977049771497724977349774497754977649777497784977949780497814978249783497844978549786497874978849789497904979149792497934979449795497964979749798497994980049801498024980349804498054980649807498084980949810498114981249813498144981549816498174981849819498204982149822498234982449825498264982749828498294983049831498324983349834498354983649837498384983949840498414984249843498444984549846498474984849849498504985149852498534985449855498564985749858498594986049861498624986349864498654986649867498684986949870498714987249873498744987549876498774987849879498804988149882498834988449885498864988749888498894989049891498924989349894498954989649897498984989949900499014990249903499044990549906499074990849909499104991149912499134991449915499164991749918499194992049921499224992349924499254992649927499284992949930499314993249933499344993549936499374993849939499404994149942499434994449945499464994749948499494995049951499524995349954499554995649957499584995949960499614996249963499644996549966499674996849969499704997149972499734997449975499764997749978499794998049981499824998349984499854998649987499884998949990499914999249993499944999549996499974999849999500005000150002500035000450005500065000750008500095001050011500125001350014500155001650017500185001950020500215002250023500245002550026500275002850029500305003150032500335003450035500365003750038500395004050041500425004350044500455004650047500485004950050500515005250053500545005550056500575005850059500605006150062500635006450065500665006750068500695007050071500725007350074500755007650077500785007950080500815008250083500845008550086500875008850089500905009150092500935009450095500965009750098500995010050101501025010350104501055010650107501085010950110501115011250113501145011550116501175011850119501205012150122501235012450125501265012750128501295013050131501325013350134501355013650137501385013950140501415014250143501445014550146501475014850149501505015150152501535015450155501565015750158501595016050161501625016350164501655016650167501685016950170501715017250173501745017550176501775017850179501805018150182501835018450185501865018750188501895019050191501925019350194501955019650197501985019950200502015020250203502045020550206502075020850209502105021150212502135021450215502165021750218502195022050221502225022350224502255022650227502285022950230502315023250233502345023550236502375023850239502405024150242502435024450245502465024750248502495025050251502525025350254502555025650257502585025950260502615026250263502645026550266502675026850269502705027150272502735027450275502765027750278502795028050281502825028350284502855028650287502885028950290502915029250293502945029550296502975029850299503005030150302503035030450305503065030750308503095031050311503125031350314503155031650317503185031950320503215032250323503245032550326503275032850329503305033150332503335033450335503365033750338503395034050341503425034350344503455034650347503485034950350503515035250353503545035550356503575035850359503605036150362503635036450365503665036750368503695037050371503725037350374503755037650377503785037950380503815038250383503845038550386503875038850389503905039150392503935039450395503965039750398503995040050401504025040350404504055040650407504085040950410504115041250413504145041550416504175041850419504205042150422504235042450425504265042750428504295043050431504325043350434504355043650437504385043950440504415044250443504445044550446504475044850449504505045150452504535045450455504565045750458504595046050461504625046350464504655046650467504685046950470504715047250473504745047550476504775047850479504805048150482504835048450485504865048750488504895049050491504925049350494504955049650497504985049950500505015050250503505045050550506505075050850509505105051150512505135051450515505165051750518505195052050521505225052350524505255052650527505285052950530505315053250533505345053550536505375053850539505405054150542505435054450545505465054750548505495055050551505525055350554505555055650557505585055950560505615056250563505645056550566505675056850569505705057150572505735057450575505765057750578505795058050581505825058350584505855058650587505885058950590505915059250593505945059550596505975059850599506005060150602506035060450605506065060750608506095061050611506125061350614506155061650617506185061950620506215062250623506245062550626506275062850629506305063150632506335063450635506365063750638506395064050641506425064350644506455064650647506485064950650506515065250653506545065550656506575065850659506605066150662506635066450665506665066750668506695067050671506725067350674506755067650677506785067950680506815068250683506845068550686506875068850689506905069150692506935069450695506965069750698506995070050701507025070350704507055070650707507085070950710507115071250713507145071550716507175071850719507205072150722507235072450725507265072750728507295073050731507325073350734507355073650737507385073950740507415074250743507445074550746507475074850749507505075150752507535075450755507565075750758507595076050761507625076350764507655076650767507685076950770507715077250773507745077550776507775077850779507805078150782507835078450785507865078750788507895079050791507925079350794507955079650797507985079950800508015080250803508045080550806508075080850809508105081150812508135081450815508165081750818508195082050821508225082350824508255082650827508285082950830508315083250833508345083550836508375083850839508405084150842508435084450845508465084750848508495085050851508525085350854508555085650857508585085950860508615086250863508645086550866508675086850869508705087150872508735087450875508765087750878508795088050881508825088350884508855088650887508885088950890508915089250893508945089550896508975089850899509005090150902509035090450905509065090750908509095091050911509125091350914509155091650917509185091950920509215092250923509245092550926509275092850929509305093150932509335093450935509365093750938509395094050941509425094350944509455094650947509485094950950509515095250953509545095550956509575095850959509605096150962509635096450965509665096750968509695097050971509725097350974509755097650977509785097950980509815098250983509845098550986509875098850989509905099150992509935099450995509965099750998509995100051001510025100351004510055100651007510085100951010510115101251013510145101551016510175101851019510205102151022510235102451025510265102751028510295103051031510325103351034510355103651037510385103951040510415104251043510445104551046510475104851049510505105151052510535105451055510565105751058510595106051061510625106351064510655106651067510685106951070510715107251073510745107551076510775107851079510805108151082510835108451085510865108751088510895109051091510925109351094510955109651097510985109951100511015110251103511045110551106511075110851109511105111151112511135111451115511165111751118511195112051121511225112351124511255112651127511285112951130511315113251133511345113551136511375113851139511405114151142511435114451145511465114751148511495115051151511525115351154511555115651157511585115951160511615116251163511645116551166511675116851169511705117151172511735117451175511765117751178511795118051181511825118351184511855118651187511885118951190511915119251193511945119551196511975119851199512005120151202512035120451205512065120751208512095121051211512125121351214512155121651217512185121951220512215122251223512245122551226512275122851229512305123151232512335123451235512365123751238512395124051241512425124351244512455124651247512485124951250512515125251253512545125551256512575125851259512605126151262512635126451265512665126751268512695127051271512725127351274512755127651277512785127951280512815128251283512845128551286512875128851289512905129151292512935129451295512965129751298512995130051301513025130351304513055130651307513085130951310513115131251313513145131551316513175131851319513205132151322513235132451325513265132751328513295133051331513325133351334513355133651337513385133951340513415134251343513445134551346513475134851349513505135151352513535135451355513565135751358513595136051361513625136351364513655136651367513685136951370513715137251373513745137551376513775137851379513805138151382513835138451385513865138751388513895139051391513925139351394513955139651397513985139951400514015140251403514045140551406514075140851409514105141151412514135141451415514165141751418514195142051421514225142351424514255142651427514285142951430514315143251433514345143551436514375143851439514405144151442514435144451445514465144751448514495145051451514525145351454514555145651457514585145951460514615146251463514645146551466514675146851469514705147151472514735147451475514765147751478514795148051481514825148351484514855148651487514885148951490514915149251493514945149551496514975149851499515005150151502515035150451505515065150751508515095151051511515125151351514515155151651517515185151951520515215152251523515245152551526515275152851529515305153151532515335153451535515365153751538515395154051541515425154351544515455154651547515485154951550515515155251553515545155551556515575155851559515605156151562515635156451565515665156751568515695157051571515725157351574515755157651577515785157951580515815158251583515845158551586515875158851589515905159151592515935159451595515965159751598515995160051601516025160351604516055160651607516085160951610516115161251613516145161551616516175161851619516205162151622516235162451625516265162751628516295163051631516325163351634516355163651637516385163951640516415164251643516445164551646516475164851649516505165151652516535165451655516565165751658516595166051661516625166351664516655166651667516685166951670516715167251673516745167551676516775167851679516805168151682516835168451685516865168751688516895169051691516925169351694516955169651697516985169951700517015170251703517045170551706517075170851709517105171151712517135171451715517165171751718517195172051721517225172351724517255172651727517285172951730517315173251733517345173551736517375173851739517405174151742517435174451745517465174751748517495175051751517525175351754517555175651757517585175951760517615176251763517645176551766517675176851769517705177151772517735177451775517765177751778517795178051781517825178351784517855178651787517885178951790517915179251793517945179551796517975179851799518005180151802518035180451805518065180751808518095181051811518125181351814518155181651817518185181951820518215182251823518245182551826518275182851829518305183151832518335183451835518365183751838518395184051841518425184351844518455184651847518485184951850518515185251853518545185551856518575185851859518605186151862518635186451865518665186751868518695187051871518725187351874518755187651877518785187951880518815188251883518845188551886518875188851889518905189151892518935189451895518965189751898518995190051901519025190351904519055190651907519085190951910519115191251913519145191551916519175191851919519205192151922519235192451925519265192751928519295193051931519325193351934519355193651937519385193951940519415194251943519445194551946519475194851949519505195151952519535195451955519565195751958519595196051961519625196351964519655196651967519685196951970519715197251973519745197551976519775197851979519805198151982519835198451985519865198751988519895199051991519925199351994519955199651997519985199952000520015200252003520045200552006520075200852009520105201152012520135201452015520165201752018520195202052021520225202352024520255202652027520285202952030520315203252033520345203552036520375203852039520405204152042520435204452045520465204752048520495205052051520525205352054520555205652057520585205952060520615206252063520645206552066520675206852069520705207152072520735207452075520765207752078520795208052081520825208352084520855208652087520885208952090520915209252093520945209552096520975209852099521005210152102521035210452105521065210752108521095211052111521125211352114521155211652117521185211952120521215212252123521245212552126521275212852129521305213152132521335213452135521365213752138521395214052141521425214352144521455214652147521485214952150521515215252153521545215552156521575215852159521605216152162521635216452165521665216752168521695217052171521725217352174521755217652177521785217952180521815218252183521845218552186521875218852189521905219152192521935219452195521965219752198521995220052201522025220352204522055220652207522085220952210522115221252213522145221552216522175221852219522205222152222522235222452225522265222752228522295223052231522325223352234522355223652237522385223952240522415224252243522445224552246522475224852249522505225152252522535225452255522565225752258522595226052261522625226352264522655226652267522685226952270522715227252273522745227552276522775227852279522805228152282522835228452285522865228752288522895229052291522925229352294522955229652297522985229952300523015230252303523045230552306523075230852309523105231152312523135231452315523165231752318523195232052321523225232352324523255232652327523285232952330523315233252333523345233552336523375233852339523405234152342523435234452345523465234752348523495235052351523525235352354523555235652357523585235952360523615236252363523645236552366523675236852369523705237152372523735237452375523765237752378523795238052381523825238352384523855238652387523885238952390523915239252393523945239552396523975239852399524005240152402524035240452405524065240752408524095241052411524125241352414524155241652417524185241952420524215242252423524245242552426524275242852429524305243152432524335243452435524365243752438524395244052441524425244352444524455244652447524485244952450524515245252453524545245552456524575245852459524605246152462524635246452465524665246752468524695247052471524725247352474524755247652477524785247952480524815248252483524845248552486524875248852489524905249152492524935249452495524965249752498524995250052501525025250352504525055250652507525085250952510525115251252513525145251552516525175251852519525205252152522525235252452525525265252752528525295253052531525325253352534525355253652537525385253952540525415254252543525445254552546525475254852549525505255152552525535255452555525565255752558525595256052561525625256352564525655256652567525685256952570525715257252573525745257552576525775257852579525805258152582525835258452585525865258752588525895259052591525925259352594525955259652597525985259952600526015260252603526045260552606526075260852609526105261152612526135261452615526165261752618526195262052621526225262352624526255262652627526285262952630526315263252633526345263552636526375263852639526405264152642526435264452645526465264752648526495265052651526525265352654526555265652657526585265952660526615266252663526645266552666526675266852669526705267152672526735267452675526765267752678526795268052681526825268352684526855268652687526885268952690526915269252693526945269552696526975269852699527005270152702527035270452705527065270752708527095271052711527125271352714527155271652717527185271952720527215272252723527245272552726527275272852729527305273152732527335273452735527365273752738527395274052741527425274352744527455274652747527485274952750527515275252753527545275552756527575275852759527605276152762527635276452765527665276752768527695277052771527725277352774527755277652777527785277952780527815278252783527845278552786527875278852789527905279152792527935279452795527965279752798527995280052801528025280352804528055280652807528085280952810528115281252813528145281552816528175281852819528205282152822528235282452825528265282752828528295283052831528325283352834528355283652837528385283952840528415284252843528445284552846528475284852849528505285152852528535285452855528565285752858528595286052861528625286352864528655286652867528685286952870528715287252873528745287552876528775287852879528805288152882528835288452885528865288752888528895289052891528925289352894528955289652897528985289952900529015290252903529045290552906529075290852909529105291152912529135291452915529165291752918529195292052921529225292352924529255292652927529285292952930529315293252933529345293552936529375293852939529405294152942529435294452945529465294752948529495295052951529525295352954529555295652957529585295952960529615296252963529645296552966529675296852969529705297152972529735297452975529765297752978529795298052981529825298352984529855298652987529885298952990529915299252993529945299552996529975299852999530005300153002530035300453005530065300753008530095301053011530125301353014530155301653017530185301953020530215302253023530245302553026530275302853029530305303153032530335303453035530365303753038530395304053041530425304353044530455304653047530485304953050530515305253053530545305553056530575305853059530605306153062530635306453065530665306753068530695307053071530725307353074530755307653077530785307953080530815308253083530845308553086530875308853089530905309153092530935309453095530965309753098530995310053101531025310353104531055310653107531085310953110531115311253113531145311553116531175311853119531205312153122531235312453125531265312753128531295313053131531325313353134531355313653137531385313953140531415314253143531445314553146531475314853149531505315153152531535315453155531565315753158531595316053161531625316353164531655316653167531685316953170531715317253173531745317553176531775317853179531805318153182531835318453185531865318753188531895319053191531925319353194531955319653197531985319953200532015320253203532045320553206532075320853209532105321153212532135321453215532165321753218532195322053221532225322353224532255322653227532285322953230532315323253233532345323553236532375323853239532405324153242532435324453245532465324753248532495325053251532525325353254532555325653257532585325953260532615326253263532645326553266532675326853269532705327153272532735327453275532765327753278532795328053281532825328353284532855328653287532885328953290532915329253293532945329553296532975329853299533005330153302533035330453305533065330753308533095331053311533125331353314533155331653317533185331953320533215332253323533245332553326533275332853329533305333153332533335333453335533365333753338533395334053341533425334353344533455334653347533485334953350533515335253353533545335553356533575335853359533605336153362533635336453365533665336753368533695337053371533725337353374533755337653377533785337953380533815338253383533845338553386533875338853389533905339153392533935339453395533965339753398533995340053401534025340353404534055340653407534085340953410534115341253413534145341553416534175341853419534205342153422534235342453425534265342753428534295343053431534325343353434534355343653437534385343953440534415344253443534445344553446534475344853449534505345153452534535345453455534565345753458534595346053461534625346353464534655346653467534685346953470534715347253473534745347553476534775347853479534805348153482534835348453485534865348753488534895349053491534925349353494534955349653497534985349953500535015350253503535045350553506535075350853509535105351153512535135351453515535165351753518535195352053521535225352353524535255352653527535285352953530535315353253533535345353553536535375353853539535405354153542535435354453545535465354753548535495355053551535525355353554535555355653557535585355953560535615356253563535645356553566535675356853569535705357153572535735357453575535765357753578535795358053581535825358353584535855358653587535885358953590535915359253593535945359553596535975359853599536005360153602536035360453605536065360753608536095361053611536125361353614536155361653617536185361953620536215362253623536245362553626536275362853629536305363153632536335363453635536365363753638536395364053641536425364353644536455364653647536485364953650536515365253653536545365553656536575365853659536605366153662536635366453665536665366753668536695367053671536725367353674536755367653677536785367953680536815368253683536845368553686536875368853689536905369153692536935369453695536965369753698536995370053701537025370353704537055370653707537085370953710537115371253713537145371553716537175371853719537205372153722537235372453725537265372753728537295373053731537325373353734537355373653737537385373953740537415374253743537445374553746537475374853749537505375153752537535375453755537565375753758537595376053761537625376353764537655376653767537685376953770537715377253773537745377553776537775377853779537805378153782537835378453785537865378753788537895379053791537925379353794537955379653797537985379953800538015380253803538045380553806538075380853809538105381153812538135381453815538165381753818538195382053821538225382353824538255382653827538285382953830538315383253833538345383553836538375383853839538405384153842538435384453845538465384753848538495385053851538525385353854538555385653857538585385953860538615386253863538645386553866538675386853869538705387153872538735387453875538765387753878538795388053881538825388353884538855388653887538885388953890538915389253893538945389553896538975389853899539005390153902539035390453905539065390753908539095391053911539125391353914539155391653917539185391953920539215392253923539245392553926539275392853929539305393153932539335393453935539365393753938539395394053941539425394353944539455394653947539485394953950539515395253953539545395553956539575395853959539605396153962539635396453965539665396753968539695397053971539725397353974539755397653977539785397953980539815398253983539845398553986539875398853989539905399153992539935399453995539965399753998539995400054001540025400354004540055400654007540085400954010540115401254013540145401554016540175401854019540205402154022540235402454025540265402754028540295403054031540325403354034540355403654037540385403954040540415404254043540445404554046540475404854049540505405154052540535405454055540565405754058540595406054061540625406354064540655406654067540685406954070540715407254073540745407554076540775407854079540805408154082540835408454085540865408754088540895409054091540925409354094540955409654097540985409954100541015410254103541045410554106541075410854109541105411154112541135411454115541165411754118541195412054121541225412354124541255412654127541285412954130541315413254133541345413554136541375413854139541405414154142541435414454145541465414754148541495415054151541525415354154541555415654157541585415954160541615416254163541645416554166541675416854169541705417154172541735417454175541765417754178541795418054181541825418354184541855418654187541885418954190541915419254193541945419554196541975419854199542005420154202542035420454205542065420754208542095421054211542125421354214542155421654217542185421954220542215422254223542245422554226542275422854229542305423154232542335423454235542365423754238542395424054241542425424354244542455424654247542485424954250542515425254253542545425554256542575425854259542605426154262542635426454265542665426754268542695427054271542725427354274542755427654277542785427954280542815428254283542845428554286542875428854289542905429154292542935429454295542965429754298542995430054301543025430354304543055430654307543085430954310543115431254313543145431554316543175431854319543205432154322543235432454325543265432754328543295433054331543325433354334543355433654337543385433954340543415434254343543445434554346543475434854349543505435154352543535435454355543565435754358543595436054361543625436354364543655436654367543685436954370543715437254373543745437554376543775437854379543805438154382543835438454385543865438754388543895439054391543925439354394543955439654397543985439954400544015440254403544045440554406544075440854409544105441154412544135441454415544165441754418544195442054421544225442354424544255442654427544285442954430544315443254433544345443554436544375443854439544405444154442544435444454445544465444754448544495445054451544525445354454544555445654457544585445954460544615446254463544645446554466544675446854469544705447154472544735447454475544765447754478544795448054481544825448354484544855448654487544885448954490544915449254493544945449554496544975449854499545005450154502545035450454505545065450754508545095451054511545125451354514545155451654517545185451954520545215452254523545245452554526545275452854529545305453154532545335453454535545365453754538545395454054541545425454354544545455454654547545485454954550545515455254553545545455554556545575455854559545605456154562545635456454565545665456754568545695457054571545725457354574545755457654577545785457954580545815458254583545845458554586545875458854589545905459154592545935459454595545965459754598545995460054601546025460354604546055460654607546085460954610546115461254613546145461554616546175461854619546205462154622546235462454625546265462754628546295463054631546325463354634546355463654637546385463954640546415464254643546445464554646546475464854649546505465154652546535465454655546565465754658546595466054661546625466354664546655466654667546685466954670546715467254673546745467554676546775467854679546805468154682546835468454685546865468754688546895469054691546925469354694546955469654697546985469954700547015470254703547045470554706547075470854709547105471154712547135471454715547165471754718547195472054721547225472354724547255472654727547285472954730547315473254733547345473554736547375473854739547405474154742547435474454745547465474754748547495475054751547525475354754547555475654757547585475954760547615476254763547645476554766547675476854769547705477154772547735477454775547765477754778547795478054781547825478354784547855478654787547885478954790547915479254793547945479554796547975479854799548005480154802548035480454805548065480754808548095481054811548125481354814548155481654817548185481954820548215482254823548245482554826548275482854829548305483154832548335483454835548365483754838548395484054841548425484354844548455484654847548485484954850548515485254853548545485554856548575485854859548605486154862548635486454865548665486754868548695487054871548725487354874548755487654877548785487954880548815488254883548845488554886548875488854889548905489154892548935489454895548965489754898548995490054901549025490354904549055490654907549085490954910549115491254913549145491554916549175491854919549205492154922549235492454925549265492754928549295493054931549325493354934549355493654937549385493954940549415494254943549445494554946549475494854949549505495154952549535495454955549565495754958549595496054961549625496354964549655496654967549685496954970549715497254973549745497554976549775497854979549805498154982549835498454985549865498754988549895499054991549925499354994549955499654997549985499955000550015500255003550045500555006550075500855009550105501155012550135501455015550165501755018550195502055021550225502355024550255502655027550285502955030550315503255033550345503555036550375503855039550405504155042550435504455045550465504755048550495505055051550525505355054550555505655057550585505955060550615506255063550645506555066550675506855069550705507155072550735507455075550765507755078550795508055081550825508355084550855508655087550885508955090550915509255093550945509555096550975509855099551005510155102551035510455105551065510755108551095511055111551125511355114551155511655117551185511955120551215512255123551245512555126551275512855129551305513155132551335513455135551365513755138551395514055141551425514355144551455514655147551485514955150551515515255153551545515555156551575515855159551605516155162551635516455165551665516755168551695517055171551725517355174551755517655177551785517955180551815518255183551845518555186551875518855189551905519155192551935519455195551965519755198551995520055201552025520355204552055520655207552085520955210552115521255213552145521555216552175521855219552205522155222552235522455225552265522755228552295523055231552325523355234552355523655237552385523955240552415524255243552445524555246552475524855249552505525155252552535525455255552565525755258552595526055261552625526355264552655526655267552685526955270552715527255273552745527555276552775527855279552805528155282552835528455285552865528755288552895529055291552925529355294552955529655297552985529955300553015530255303553045530555306553075530855309553105531155312553135531455315553165531755318553195532055321553225532355324553255532655327553285532955330553315533255333553345533555336553375533855339553405534155342553435534455345553465534755348553495535055351553525535355354553555535655357553585535955360553615536255363553645536555366553675536855369553705537155372553735537455375553765537755378553795538055381553825538355384553855538655387553885538955390553915539255393553945539555396553975539855399554005540155402554035540455405554065540755408554095541055411554125541355414554155541655417554185541955420554215542255423554245542555426554275542855429554305543155432554335543455435554365543755438554395544055441554425544355444554455544655447554485544955450554515545255453554545545555456554575545855459554605546155462554635546455465554665546755468554695547055471554725547355474554755547655477554785547955480554815548255483554845548555486554875548855489554905549155492554935549455495554965549755498554995550055501555025550355504555055550655507555085550955510555115551255513555145551555516555175551855519555205552155522555235552455525555265552755528555295553055531555325553355534555355553655537555385553955540555415554255543555445554555546555475554855549555505555155552555535555455555555565555755558555595556055561555625556355564555655556655567555685556955570555715557255573555745557555576555775557855579555805558155582555835558455585555865558755588555895559055591555925559355594555955559655597555985559955600556015560255603556045560555606556075560855609556105561155612556135561455615556165561755618556195562055621556225562355624556255562655627556285562955630556315563255633556345563555636556375563855639556405564155642556435564455645556465564755648556495565055651556525565355654556555565655657556585565955660556615566255663556645566555666556675566855669556705567155672556735567455675556765567755678556795568055681556825568355684556855568655687556885568955690556915569255693556945569555696556975569855699557005570155702557035570455705557065570755708557095571055711557125571355714557155571655717557185571955720557215572255723557245572555726557275572855729557305573155732557335573455735557365573755738557395574055741557425574355744557455574655747557485574955750557515575255753557545575555756557575575855759557605576155762557635576455765557665576755768557695577055771557725577355774557755577655777557785577955780557815578255783557845578555786557875578855789557905579155792557935579455795557965579755798557995580055801558025580355804558055580655807558085580955810558115581255813558145581555816558175581855819558205582155822558235582455825558265582755828558295583055831558325583355834558355583655837558385583955840558415584255843558445584555846558475584855849558505585155852558535585455855558565585755858558595586055861558625586355864558655586655867558685586955870558715587255873558745587555876558775587855879558805588155882558835588455885558865588755888558895589055891558925589355894558955589655897558985589955900559015590255903559045590555906559075590855909559105591155912559135591455915559165591755918559195592055921559225592355924559255592655927559285592955930559315593255933559345593555936559375593855939559405594155942559435594455945559465594755948559495595055951559525595355954559555595655957559585595955960559615596255963559645596555966559675596855969559705597155972559735597455975559765597755978559795598055981559825598355984559855598655987559885598955990559915599255993559945599555996559975599855999560005600156002560035600456005560065600756008560095601056011560125601356014560155601656017560185601956020560215602256023560245602556026560275602856029560305603156032560335603456035560365603756038560395604056041560425604356044560455604656047560485604956050560515605256053560545605556056560575605856059560605606156062560635606456065560665606756068560695607056071560725607356074560755607656077560785607956080560815608256083560845608556086560875608856089560905609156092560935609456095560965609756098560995610056101561025610356104561055610656107561085610956110561115611256113561145611556116561175611856119561205612156122561235612456125561265612756128561295613056131561325613356134561355613656137561385613956140561415614256143561445614556146561475614856149561505615156152561535615456155561565615756158561595616056161561625616356164561655616656167561685616956170561715617256173561745617556176561775617856179561805618156182561835618456185561865618756188561895619056191561925619356194561955619656197561985619956200562015620256203562045620556206562075620856209562105621156212562135621456215562165621756218562195622056221562225622356224562255622656227562285622956230562315623256233562345623556236562375623856239562405624156242562435624456245562465624756248562495625056251562525625356254562555625656257562585625956260562615626256263562645626556266562675626856269562705627156272562735627456275562765627756278562795628056281562825628356284562855628656287562885628956290562915629256293562945629556296562975629856299563005630156302563035630456305563065630756308563095631056311563125631356314563155631656317563185631956320563215632256323563245632556326563275632856329563305633156332563335633456335563365633756338563395634056341563425634356344563455634656347563485634956350563515635256353563545635556356563575635856359563605636156362563635636456365563665636756368563695637056371563725637356374563755637656377563785637956380563815638256383563845638556386563875638856389563905639156392563935639456395563965639756398563995640056401564025640356404564055640656407564085640956410564115641256413564145641556416564175641856419564205642156422564235642456425564265642756428564295643056431564325643356434564355643656437564385643956440564415644256443564445644556446564475644856449564505645156452564535645456455564565645756458564595646056461564625646356464564655646656467564685646956470564715647256473564745647556476564775647856479564805648156482564835648456485564865648756488564895649056491564925649356494564955649656497564985649956500565015650256503565045650556506565075650856509565105651156512565135651456515565165651756518565195652056521565225652356524565255652656527565285652956530565315653256533565345653556536565375653856539565405654156542565435654456545565465654756548565495655056551565525655356554565555655656557565585655956560565615656256563565645656556566565675656856569565705657156572565735657456575565765657756578565795658056581565825658356584565855658656587565885658956590565915659256593565945659556596565975659856599566005660156602566035660456605566065660756608566095661056611566125661356614566155661656617566185661956620566215662256623566245662556626566275662856629566305663156632566335663456635566365663756638566395664056641566425664356644566455664656647566485664956650566515665256653566545665556656566575665856659566605666156662566635666456665566665666756668566695667056671566725667356674566755667656677566785667956680566815668256683566845668556686566875668856689566905669156692566935669456695566965669756698566995670056701567025670356704567055670656707567085670956710567115671256713567145671556716567175671856719567205672156722567235672456725567265672756728567295673056731567325673356734567355673656737567385673956740567415674256743567445674556746567475674856749567505675156752567535675456755567565675756758567595676056761567625676356764567655676656767567685676956770567715677256773567745677556776567775677856779567805678156782567835678456785567865678756788567895679056791567925679356794567955679656797567985679956800568015680256803568045680556806568075680856809568105681156812568135681456815568165681756818568195682056821568225682356824568255682656827568285682956830568315683256833568345683556836568375683856839568405684156842568435684456845568465684756848568495685056851568525685356854568555685656857568585685956860568615686256863568645686556866568675686856869568705687156872568735687456875568765687756878568795688056881568825688356884568855688656887568885688956890568915689256893568945689556896568975689856899569005690156902569035690456905569065690756908569095691056911569125691356914569155691656917569185691956920569215692256923569245692556926569275692856929569305693156932569335693456935569365693756938569395694056941569425694356944569455694656947569485694956950569515695256953569545695556956569575695856959569605696156962569635696456965569665696756968569695697056971569725697356974569755697656977569785697956980569815698256983569845698556986569875698856989569905699156992569935699456995569965699756998569995700057001570025700357004570055700657007570085700957010570115701257013570145701557016570175701857019570205702157022570235702457025570265702757028570295703057031570325703357034570355703657037570385703957040570415704257043570445704557046570475704857049570505705157052570535705457055570565705757058570595706057061570625706357064570655706657067570685706957070570715707257073570745707557076570775707857079570805708157082570835708457085570865708757088570895709057091570925709357094570955709657097570985709957100571015710257103571045710557106571075710857109571105711157112571135711457115571165711757118571195712057121571225712357124571255712657127571285712957130571315713257133571345713557136571375713857139571405714157142571435714457145571465714757148571495715057151571525715357154571555715657157571585715957160571615716257163571645716557166571675716857169571705717157172571735717457175571765717757178571795718057181571825718357184571855718657187571885718957190571915719257193571945719557196571975719857199572005720157202572035720457205572065720757208572095721057211572125721357214572155721657217572185721957220572215722257223572245722557226572275722857229572305723157232572335723457235572365723757238572395724057241572425724357244572455724657247572485724957250572515725257253572545725557256572575725857259572605726157262572635726457265572665726757268572695727057271572725727357274572755727657277572785727957280572815728257283572845728557286572875728857289572905729157292572935729457295572965729757298572995730057301573025730357304573055730657307573085730957310573115731257313573145731557316573175731857319573205732157322573235732457325573265732757328573295733057331573325733357334573355733657337573385733957340573415734257343573445734557346573475734857349573505735157352573535735457355573565735757358573595736057361573625736357364573655736657367573685736957370573715737257373573745737557376573775737857379573805738157382573835738457385573865738757388573895739057391573925739357394573955739657397573985739957400574015740257403574045740557406574075740857409574105741157412574135741457415574165741757418574195742057421574225742357424574255742657427574285742957430574315743257433574345743557436574375743857439574405744157442574435744457445574465744757448574495745057451574525745357454574555745657457574585745957460574615746257463574645746557466574675746857469574705747157472574735747457475574765747757478574795748057481574825748357484574855748657487574885748957490574915749257493574945749557496574975749857499575005750157502575035750457505575065750757508575095751057511575125751357514575155751657517575185751957520575215752257523575245752557526575275752857529575305753157532575335753457535575365753757538575395754057541575425754357544575455754657547575485754957550575515755257553575545755557556575575755857559575605756157562575635756457565575665756757568575695757057571575725757357574575755757657577575785757957580575815758257583575845758557586575875758857589575905759157592575935759457595575965759757598575995760057601576025760357604576055760657607576085760957610576115761257613576145761557616576175761857619576205762157622576235762457625576265762757628576295763057631576325763357634576355763657637576385763957640576415764257643576445764557646576475764857649576505765157652576535765457655576565765757658576595766057661576625766357664576655766657667576685766957670576715767257673576745767557676576775767857679576805768157682576835768457685576865768757688576895769057691576925769357694576955769657697576985769957700577015770257703577045770557706577075770857709577105771157712577135771457715577165771757718577195772057721577225772357724577255772657727577285772957730577315773257733577345773557736577375773857739577405774157742577435774457745577465774757748577495775057751577525775357754577555775657757577585775957760577615776257763577645776557766577675776857769577705777157772577735777457775577765777757778577795778057781577825778357784577855778657787577885778957790577915779257793577945779557796577975779857799578005780157802578035780457805578065780757808578095781057811578125781357814578155781657817578185781957820578215782257823578245782557826578275782857829578305783157832578335783457835578365783757838578395784057841578425784357844578455784657847578485784957850578515785257853578545785557856578575785857859578605786157862578635786457865578665786757868578695787057871578725787357874578755787657877578785787957880578815788257883578845788557886578875788857889578905789157892578935789457895578965789757898578995790057901579025790357904579055790657907579085790957910579115791257913579145791557916579175791857919579205792157922579235792457925579265792757928579295793057931579325793357934579355793657937579385793957940579415794257943579445794557946579475794857949579505795157952579535795457955579565795757958579595796057961579625796357964579655796657967579685796957970579715797257973579745797557976579775797857979579805798157982579835798457985579865798757988579895799057991579925799357994579955799657997579985799958000580015800258003580045800558006580075800858009580105801158012580135801458015580165801758018580195802058021580225802358024580255802658027580285802958030580315803258033580345803558036580375803858039580405804158042580435804458045580465804758048580495805058051580525805358054580555805658057580585805958060580615806258063580645806558066580675806858069580705807158072580735807458075580765807758078580795808058081580825808358084580855808658087580885808958090580915809258093580945809558096580975809858099581005810158102581035810458105581065810758108581095811058111581125811358114581155811658117581185811958120581215812258123581245812558126581275812858129581305813158132581335813458135581365813758138581395814058141581425814358144581455814658147581485814958150581515815258153581545815558156581575815858159581605816158162581635816458165581665816758168581695817058171581725817358174581755817658177581785817958180581815818258183581845818558186581875818858189581905819158192581935819458195581965819758198581995820058201582025820358204582055820658207582085820958210582115821258213582145821558216582175821858219582205822158222582235822458225582265822758228582295823058231582325823358234582355823658237582385823958240582415824258243582445824558246582475824858249582505825158252582535825458255582565825758258582595826058261582625826358264582655826658267582685826958270582715827258273582745827558276582775827858279582805828158282582835828458285582865828758288582895829058291582925829358294582955829658297582985829958300583015830258303583045830558306583075830858309583105831158312583135831458315583165831758318583195832058321583225832358324583255832658327583285832958330583315833258333583345833558336583375833858339583405834158342583435834458345583465834758348583495835058351583525835358354583555835658357583585835958360583615836258363583645836558366583675836858369583705837158372583735837458375583765837758378583795838058381583825838358384583855838658387583885838958390583915839258393583945839558396583975839858399584005840158402584035840458405584065840758408584095841058411584125841358414584155841658417584185841958420584215842258423584245842558426584275842858429584305843158432584335843458435584365843758438584395844058441584425844358444584455844658447584485844958450584515845258453584545845558456584575845858459584605846158462584635846458465584665846758468584695847058471584725847358474584755847658477584785847958480584815848258483584845848558486584875848858489584905849158492584935849458495584965849758498584995850058501585025850358504585055850658507585085850958510585115851258513585145851558516585175851858519585205852158522585235852458525585265852758528585295853058531585325853358534585355853658537585385853958540585415854258543585445854558546585475854858549585505855158552585535855458555585565855758558585595856058561585625856358564585655856658567585685856958570585715857258573585745857558576585775857858579585805858158582585835858458585585865858758588585895859058591585925859358594585955859658597585985859958600586015860258603586045860558606586075860858609586105861158612586135861458615586165861758618586195862058621586225862358624586255862658627586285862958630586315863258633586345863558636586375863858639586405864158642586435864458645586465864758648586495865058651586525865358654586555865658657586585865958660586615866258663586645866558666586675866858669586705867158672586735867458675586765867758678586795868058681586825868358684586855868658687586885868958690586915869258693586945869558696586975869858699587005870158702587035870458705587065870758708587095871058711587125871358714587155871658717587185871958720587215872258723587245872558726587275872858729587305873158732587335873458735587365873758738587395874058741587425874358744587455874658747587485874958750587515875258753587545875558756587575875858759587605876158762587635876458765587665876758768587695877058771587725877358774587755877658777587785877958780587815878258783587845878558786587875878858789587905879158792587935879458795587965879758798587995880058801588025880358804588055880658807588085880958810588115881258813588145881558816588175881858819588205882158822588235882458825588265882758828588295883058831588325883358834588355883658837588385883958840588415884258843588445884558846588475884858849588505885158852588535885458855588565885758858588595886058861588625886358864588655886658867588685886958870588715887258873588745887558876588775887858879588805888158882588835888458885588865888758888588895889058891588925889358894588955889658897588985889958900589015890258903589045890558906589075890858909589105891158912589135891458915589165891758918589195892058921589225892358924589255892658927589285892958930589315893258933589345893558936589375893858939589405894158942589435894458945589465894758948589495895058951589525895358954589555895658957589585895958960589615896258963589645896558966589675896858969589705897158972589735897458975589765897758978589795898058981589825898358984589855898658987589885898958990589915899258993589945899558996589975899858999590005900159002590035900459005590065900759008590095901059011590125901359014590155901659017590185901959020590215902259023590245902559026590275902859029590305903159032590335903459035590365903759038590395904059041590425904359044590455904659047590485904959050590515905259053590545905559056590575905859059590605906159062590635906459065590665906759068590695907059071590725907359074590755907659077590785907959080590815908259083590845908559086590875908859089590905909159092590935909459095590965909759098590995910059101591025910359104591055910659107591085910959110591115911259113591145911559116591175911859119591205912159122591235912459125591265912759128591295913059131591325913359134591355913659137591385913959140591415914259143591445914559146591475914859149591505915159152591535915459155591565915759158591595916059161591625916359164591655916659167591685916959170591715917259173591745917559176591775917859179591805918159182591835918459185591865918759188591895919059191591925919359194591955919659197591985919959200592015920259203592045920559206592075920859209592105921159212592135921459215592165921759218592195922059221592225922359224592255922659227592285922959230592315923259233592345923559236592375923859239592405924159242592435924459245592465924759248592495925059251592525925359254592555925659257592585925959260592615926259263592645926559266592675926859269592705927159272592735927459275592765927759278592795928059281592825928359284592855928659287592885928959290592915929259293592945929559296592975929859299593005930159302593035930459305593065930759308593095931059311593125931359314593155931659317593185931959320593215932259323593245932559326593275932859329593305933159332593335933459335593365933759338593395934059341593425934359344593455934659347593485934959350593515935259353593545935559356593575935859359593605936159362593635936459365593665936759368593695937059371593725937359374593755937659377593785937959380593815938259383593845938559386593875938859389593905939159392593935939459395593965939759398593995940059401594025940359404594055940659407594085940959410594115941259413594145941559416594175941859419594205942159422594235942459425594265942759428594295943059431594325943359434594355943659437594385943959440594415944259443594445944559446594475944859449594505945159452594535945459455594565945759458594595946059461594625946359464594655946659467594685946959470594715947259473594745947559476594775947859479594805948159482594835948459485594865948759488594895949059491594925949359494594955949659497594985949959500595015950259503595045950559506595075950859509595105951159512595135951459515595165951759518595195952059521595225952359524595255952659527595285952959530595315953259533595345953559536595375953859539595405954159542595435954459545595465954759548595495955059551595525955359554595555955659557595585955959560595615956259563595645956559566595675956859569595705957159572595735957459575595765957759578595795958059581595825958359584595855958659587595885958959590595915959259593595945959559596595975959859599596005960159602596035960459605596065960759608596095961059611596125961359614596155961659617596185961959620596215962259623596245962559626596275962859629596305963159632596335963459635596365963759638596395964059641596425964359644596455964659647596485964959650596515965259653596545965559656596575965859659596605966159662596635966459665596665966759668596695967059671596725967359674596755967659677596785967959680596815968259683596845968559686596875968859689596905969159692596935969459695596965969759698596995970059701597025970359704597055970659707597085970959710597115971259713597145971559716597175971859719597205972159722597235972459725597265972759728597295973059731597325973359734597355973659737597385973959740597415974259743597445974559746597475974859749597505975159752597535975459755597565975759758597595976059761597625976359764597655976659767597685976959770597715977259773597745977559776597775977859779597805978159782597835978459785597865978759788597895979059791597925979359794597955979659797597985979959800598015980259803598045980559806598075980859809598105981159812598135981459815598165981759818598195982059821598225982359824598255982659827598285982959830598315983259833598345983559836598375983859839598405984159842598435984459845598465984759848598495985059851598525985359854598555985659857598585985959860598615986259863598645986559866598675986859869598705987159872598735987459875598765987759878598795988059881598825988359884598855988659887598885988959890598915989259893598945989559896598975989859899599005990159902599035990459905599065990759908599095991059911599125991359914599155991659917599185991959920599215992259923599245992559926599275992859929599305993159932599335993459935599365993759938599395994059941599425994359944599455994659947599485994959950599515995259953599545995559956599575995859959599605996159962599635996459965599665996759968599695997059971599725997359974599755997659977599785997959980599815998259983599845998559986599875998859989599905999159992599935999459995599965999759998599996000060001600026000360004600056000660007600086000960010600116001260013600146001560016600176001860019600206002160022600236002460025600266002760028600296003060031600326003360034600356003660037600386003960040600416004260043600446004560046600476004860049600506005160052600536005460055600566005760058600596006060061600626006360064600656006660067600686006960070600716007260073600746007560076600776007860079600806008160082600836008460085600866008760088600896009060091600926009360094600956009660097600986009960100601016010260103601046010560106601076010860109601106011160112601136011460115601166011760118601196012060121601226012360124601256012660127601286012960130601316013260133601346013560136601376013860139601406014160142601436014460145601466014760148601496015060151601526015360154601556015660157601586015960160601616016260163601646016560166601676016860169601706017160172601736017460175601766017760178601796018060181601826018360184601856018660187601886018960190601916019260193601946019560196601976019860199602006020160202602036020460205602066020760208602096021060211602126021360214602156021660217602186021960220602216022260223602246022560226602276022860229602306023160232602336023460235602366023760238602396024060241602426024360244602456024660247602486024960250602516025260253602546025560256602576025860259602606026160262602636026460265602666026760268602696027060271602726027360274602756027660277602786027960280602816028260283602846028560286602876028860289602906029160292602936029460295602966029760298602996030060301603026030360304603056030660307603086030960310603116031260313603146031560316603176031860319603206032160322603236032460325603266032760328603296033060331603326033360334603356033660337603386033960340603416034260343603446034560346603476034860349603506035160352603536035460355603566035760358603596036060361603626036360364603656036660367603686036960370603716037260373603746037560376603776037860379603806038160382603836038460385603866038760388603896039060391603926039360394603956039660397603986039960400604016040260403604046040560406604076040860409604106041160412604136041460415604166041760418604196042060421604226042360424604256042660427604286042960430604316043260433604346043560436604376043860439604406044160442604436044460445604466044760448604496045060451604526045360454604556045660457604586045960460604616046260463604646046560466604676046860469604706047160472604736047460475604766047760478604796048060481604826048360484604856048660487604886048960490604916049260493604946049560496604976049860499605006050160502605036050460505605066050760508605096051060511605126051360514605156051660517605186051960520605216052260523605246052560526605276052860529605306053160532605336053460535605366053760538605396054060541605426054360544605456054660547605486054960550605516055260553605546055560556605576055860559605606056160562605636056460565605666056760568605696057060571605726057360574605756057660577605786057960580605816058260583605846058560586605876058860589605906059160592605936059460595605966059760598605996060060601606026060360604606056060660607606086060960610606116061260613606146061560616606176061860619606206062160622606236062460625606266062760628606296063060631606326063360634606356063660637606386063960640606416064260643606446064560646606476064860649606506065160652606536065460655606566065760658606596066060661606626066360664606656066660667606686066960670606716067260673606746067560676606776067860679606806068160682606836068460685606866068760688606896069060691606926069360694606956069660697606986069960700607016070260703607046070560706607076070860709607106071160712607136071460715607166071760718607196072060721607226072360724607256072660727607286072960730607316073260733607346073560736607376073860739607406074160742607436074460745607466074760748607496075060751607526075360754607556075660757607586075960760607616076260763607646076560766607676076860769607706077160772607736077460775607766077760778607796078060781607826078360784607856078660787607886078960790607916079260793607946079560796607976079860799608006080160802608036080460805608066080760808608096081060811608126081360814608156081660817608186081960820608216082260823608246082560826608276082860829608306083160832608336083460835608366083760838608396084060841608426084360844608456084660847608486084960850608516085260853608546085560856608576085860859608606086160862608636086460865608666086760868608696087060871608726087360874608756087660877608786087960880608816088260883608846088560886608876088860889608906089160892608936089460895608966089760898608996090060901609026090360904609056090660907609086090960910609116091260913609146091560916609176091860919609206092160922609236092460925609266092760928609296093060931609326093360934609356093660937609386093960940609416094260943609446094560946609476094860949609506095160952609536095460955609566095760958609596096060961609626096360964609656096660967609686096960970609716097260973609746097560976609776097860979609806098160982609836098460985609866098760988609896099060991609926099360994609956099660997609986099961000610016100261003610046100561006610076100861009610106101161012610136101461015610166101761018610196102061021610226102361024610256102661027610286102961030610316103261033610346103561036610376103861039610406104161042610436104461045610466104761048610496105061051610526105361054610556105661057610586105961060610616106261063610646106561066610676106861069610706107161072610736107461075610766107761078610796108061081610826108361084610856108661087610886108961090610916109261093610946109561096610976109861099611006110161102611036110461105611066110761108611096111061111611126111361114611156111661117611186111961120611216112261123611246112561126611276112861129611306113161132611336113461135611366113761138611396114061141611426114361144611456114661147611486114961150611516115261153611546115561156611576115861159611606116161162611636116461165611666116761168611696117061171611726117361174611756117661177611786117961180611816118261183611846118561186611876118861189611906119161192611936119461195611966119761198611996120061201612026120361204612056120661207612086120961210612116121261213612146121561216612176121861219612206122161222612236122461225612266122761228612296123061231612326123361234612356123661237612386123961240612416124261243612446124561246612476124861249612506125161252612536125461255612566125761258612596126061261612626126361264612656126661267612686126961270612716127261273612746127561276612776127861279612806128161282612836128461285612866128761288612896129061291612926129361294612956129661297612986129961300613016130261303613046130561306613076130861309613106131161312613136131461315613166131761318613196132061321613226132361324613256132661327613286132961330613316133261333613346133561336613376133861339613406134161342613436134461345613466134761348613496135061351613526135361354613556135661357613586135961360613616136261363613646136561366613676136861369613706137161372613736137461375613766137761378613796138061381613826138361384613856138661387613886138961390613916139261393613946139561396613976139861399614006140161402614036140461405614066140761408614096141061411614126141361414614156141661417614186141961420614216142261423614246142561426614276142861429614306143161432614336143461435614366143761438614396144061441614426144361444614456144661447614486144961450614516145261453614546145561456614576145861459614606146161462614636146461465614666146761468614696147061471614726147361474614756147661477614786147961480614816148261483614846148561486614876148861489614906149161492614936149461495614966149761498614996150061501615026150361504615056150661507615086150961510615116151261513615146151561516615176151861519615206152161522615236152461525615266152761528615296153061531615326153361534615356153661537615386153961540615416154261543615446154561546615476154861549615506155161552615536155461555615566155761558615596156061561615626156361564615656156661567615686156961570615716157261573615746157561576615776157861579615806158161582615836158461585615866158761588615896159061591615926159361594615956159661597615986159961600616016160261603616046160561606616076160861609616106161161612616136161461615616166161761618616196162061621616226162361624616256162661627616286162961630616316163261633616346163561636616376163861639616406164161642616436164461645616466164761648616496165061651616526165361654616556165661657616586165961660616616166261663616646166561666616676166861669616706167161672616736167461675616766167761678616796168061681616826168361684616856168661687616886168961690616916169261693616946169561696616976169861699617006170161702617036170461705617066170761708617096171061711617126171361714617156171661717617186171961720617216172261723617246172561726617276172861729617306173161732617336173461735617366173761738617396174061741617426174361744617456174661747617486174961750617516175261753617546175561756617576175861759617606176161762617636176461765617666176761768617696177061771617726177361774617756177661777617786177961780617816178261783617846178561786617876178861789617906179161792617936179461795617966179761798617996180061801618026180361804618056180661807618086180961810618116181261813618146181561816618176181861819618206182161822618236182461825618266182761828618296183061831618326183361834618356183661837618386183961840618416184261843618446184561846618476184861849618506185161852618536185461855618566185761858618596186061861618626186361864618656186661867618686186961870618716187261873618746187561876618776187861879618806188161882618836188461885618866188761888618896189061891618926189361894618956189661897618986189961900619016190261903619046190561906619076190861909619106191161912619136191461915619166191761918619196192061921619226192361924619256192661927619286192961930619316193261933619346193561936619376193861939619406194161942619436194461945619466194761948619496195061951619526195361954619556195661957619586195961960619616196261963619646196561966619676196861969619706197161972619736197461975619766197761978619796198061981619826198361984619856198661987619886198961990619916199261993619946199561996619976199861999620006200162002620036200462005620066200762008620096201062011620126201362014620156201662017620186201962020620216202262023620246202562026620276202862029620306203162032620336203462035620366203762038620396204062041620426204362044620456204662047620486204962050620516205262053620546205562056620576205862059620606206162062620636206462065620666206762068620696207062071620726207362074620756207662077620786207962080620816208262083620846208562086620876208862089620906209162092620936209462095620966209762098620996210062101621026210362104621056210662107621086210962110621116211262113621146211562116621176211862119621206212162122621236212462125621266212762128621296213062131621326213362134621356213662137621386213962140621416214262143621446214562146621476214862149621506215162152621536215462155621566215762158621596216062161621626216362164621656216662167621686216962170621716217262173621746217562176621776217862179621806218162182621836218462185621866218762188621896219062191621926219362194621956219662197621986219962200622016220262203622046220562206622076220862209622106221162212622136221462215622166221762218622196222062221622226222362224622256222662227622286222962230622316223262233622346223562236622376223862239622406224162242622436224462245622466224762248622496225062251622526225362254622556225662257622586225962260622616226262263622646226562266622676226862269622706227162272622736227462275622766227762278622796228062281622826228362284622856228662287622886228962290622916229262293622946229562296622976229862299623006230162302623036230462305623066230762308623096231062311623126231362314623156231662317623186231962320623216232262323623246232562326623276232862329623306233162332623336233462335623366233762338623396234062341623426234362344623456234662347623486234962350623516235262353623546235562356623576235862359623606236162362623636236462365623666236762368623696237062371623726237362374623756237662377623786237962380623816238262383623846238562386623876238862389623906239162392623936239462395623966239762398623996240062401624026240362404624056240662407624086240962410624116241262413624146241562416624176241862419624206242162422624236242462425624266242762428624296243062431624326243362434624356243662437624386243962440624416244262443624446244562446624476244862449624506245162452624536245462455624566245762458624596246062461624626246362464624656246662467624686246962470624716247262473624746247562476624776247862479624806248162482624836248462485624866248762488624896249062491624926249362494624956249662497624986249962500625016250262503625046250562506625076250862509625106251162512625136251462515625166251762518625196252062521625226252362524625256252662527625286252962530625316253262533625346253562536625376253862539625406254162542625436254462545625466254762548625496255062551625526255362554625556255662557625586255962560625616256262563625646256562566625676256862569625706257162572625736257462575625766257762578625796258062581625826258362584625856258662587625886258962590625916259262593625946259562596625976259862599626006260162602626036260462605626066260762608626096261062611626126261362614626156261662617626186261962620626216262262623626246262562626626276262862629626306263162632626336263462635626366263762638626396264062641626426264362644626456264662647626486264962650626516265262653626546265562656626576265862659626606266162662626636266462665626666266762668626696267062671626726267362674626756267662677626786267962680626816268262683626846268562686626876268862689626906269162692626936269462695626966269762698626996270062701627026270362704627056270662707627086270962710627116271262713627146271562716627176271862719627206272162722627236272462725627266272762728627296273062731627326273362734627356273662737627386273962740627416274262743627446274562746627476274862749627506275162752627536275462755627566275762758627596276062761627626276362764627656276662767627686276962770627716277262773627746277562776627776277862779627806278162782627836278462785627866278762788627896279062791627926279362794627956279662797627986279962800628016280262803628046280562806628076280862809628106281162812628136281462815628166281762818628196282062821628226282362824628256282662827628286282962830628316283262833628346283562836628376283862839628406284162842628436284462845628466284762848628496285062851628526285362854628556285662857628586285962860628616286262863628646286562866628676286862869628706287162872628736287462875628766287762878628796288062881628826288362884628856288662887628886288962890628916289262893628946289562896628976289862899629006290162902629036290462905629066290762908629096291062911629126291362914629156291662917629186291962920629216292262923629246292562926629276292862929629306293162932629336293462935629366293762938629396294062941629426294362944629456294662947629486294962950629516295262953629546295562956629576295862959629606296162962629636296462965629666296762968629696297062971629726297362974629756297662977629786297962980629816298262983629846298562986629876298862989629906299162992629936299462995629966299762998629996300063001630026300363004630056300663007630086300963010630116301263013630146301563016630176301863019630206302163022630236302463025630266302763028630296303063031630326303363034630356303663037630386303963040630416304263043630446304563046630476304863049630506305163052630536305463055630566305763058630596306063061630626306363064630656306663067630686306963070630716307263073630746307563076630776307863079630806308163082630836308463085630866308763088630896309063091630926309363094630956309663097630986309963100631016310263103631046310563106631076310863109631106311163112631136311463115631166311763118631196312063121631226312363124631256312663127631286312963130631316313263133631346313563136631376313863139631406314163142631436314463145631466314763148631496315063151631526315363154631556315663157631586315963160631616316263163631646316563166631676316863169631706317163172631736317463175631766317763178631796318063181631826318363184631856318663187631886318963190631916319263193631946319563196631976319863199632006320163202632036320463205632066320763208632096321063211632126321363214632156321663217632186321963220632216322263223632246322563226632276322863229632306323163232632336323463235632366323763238632396324063241632426324363244632456324663247632486324963250632516325263253632546325563256632576325863259632606326163262632636326463265632666326763268632696327063271632726327363274632756327663277632786327963280632816328263283632846328563286632876328863289632906329163292632936329463295632966329763298632996330063301633026330363304633056330663307633086330963310633116331263313633146331563316633176331863319633206332163322633236332463325633266332763328633296333063331633326333363334633356333663337633386333963340633416334263343633446334563346633476334863349633506335163352633536335463355633566335763358633596336063361633626336363364633656336663367633686336963370633716337263373633746337563376633776337863379633806338163382633836338463385633866338763388633896339063391633926339363394633956339663397633986339963400634016340263403634046340563406634076340863409634106341163412634136341463415634166341763418634196342063421634226342363424634256342663427634286342963430634316343263433634346343563436634376343863439634406344163442634436344463445634466344763448634496345063451634526345363454634556345663457634586345963460634616346263463634646346563466634676346863469634706347163472634736347463475634766347763478634796348063481634826348363484634856348663487634886348963490634916349263493634946349563496634976349863499635006350163502635036350463505635066350763508635096351063511635126351363514635156351663517635186351963520635216352263523635246352563526635276352863529635306353163532635336353463535635366353763538635396354063541635426354363544635456354663547635486354963550635516355263553635546355563556635576355863559635606356163562635636356463565635666356763568635696357063571635726357363574635756357663577635786357963580635816358263583635846358563586635876358863589635906359163592635936359463595635966359763598635996360063601636026360363604636056360663607636086360963610636116361263613636146361563616636176361863619636206362163622636236362463625636266362763628636296363063631636326363363634636356363663637636386363963640636416364263643636446364563646636476364863649636506365163652636536365463655636566365763658636596366063661636626366363664636656366663667636686366963670636716367263673636746367563676636776367863679636806368163682636836368463685636866368763688636896369063691636926369363694636956369663697636986369963700637016370263703637046370563706637076370863709637106371163712637136371463715637166371763718637196372063721637226372363724637256372663727637286372963730637316373263733637346373563736637376373863739637406374163742637436374463745637466374763748637496375063751637526375363754637556375663757637586375963760637616376263763637646376563766637676376863769637706377163772637736377463775637766377763778637796378063781637826378363784637856378663787637886378963790637916379263793637946379563796637976379863799638006380163802638036380463805638066380763808638096381063811638126381363814638156381663817638186381963820638216382263823638246382563826638276382863829638306383163832638336383463835638366383763838638396384063841638426384363844638456384663847638486384963850638516385263853638546385563856638576385863859638606386163862638636386463865638666386763868638696387063871638726387363874638756387663877638786387963880638816388263883638846388563886638876388863889638906389163892638936389463895638966389763898638996390063901639026390363904639056390663907639086390963910639116391263913639146391563916639176391863919639206392163922639236392463925639266392763928639296393063931639326393363934639356393663937639386393963940639416394263943639446394563946639476394863949639506395163952639536395463955639566395763958639596396063961639626396363964639656396663967639686396963970639716397263973639746397563976639776397863979639806398163982639836398463985639866398763988639896399063991639926399363994639956399663997639986399964000640016400264003640046400564006640076400864009640106401164012640136401464015640166401764018640196402064021640226402364024640256402664027640286402964030640316403264033640346403564036640376403864039640406404164042640436404464045640466404764048640496405064051640526405364054640556405664057640586405964060640616406264063640646406564066640676406864069640706407164072640736407464075640766407764078640796408064081640826408364084640856408664087640886408964090640916409264093640946409564096640976409864099641006410164102641036410464105641066410764108641096411064111641126411364114641156411664117641186411964120641216412264123641246412564126641276412864129641306413164132641336413464135641366413764138641396414064141641426414364144641456414664147641486414964150641516415264153641546415564156641576415864159641606416164162641636416464165641666416764168641696417064171641726417364174641756417664177641786417964180641816418264183641846418564186641876418864189641906419164192641936419464195641966419764198641996420064201642026420364204642056420664207642086420964210642116421264213642146421564216642176421864219642206422164222642236422464225642266422764228642296423064231642326423364234642356423664237642386423964240642416424264243642446424564246642476424864249642506425164252642536425464255642566425764258642596426064261642626426364264642656426664267642686426964270642716427264273642746427564276642776427864279642806428164282642836428464285642866428764288642896429064291642926429364294642956429664297642986429964300643016430264303643046430564306643076430864309643106431164312643136431464315643166431764318643196432064321643226432364324643256432664327643286432964330643316433264333643346433564336643376433864339643406434164342643436434464345643466434764348643496435064351643526435364354643556435664357643586435964360643616436264363643646436564366643676436864369643706437164372643736437464375643766437764378643796438064381643826438364384643856438664387643886438964390643916439264393643946439564396643976439864399644006440164402644036440464405644066440764408644096441064411644126441364414644156441664417644186441964420644216442264423644246442564426644276442864429644306443164432644336443464435644366443764438644396444064441644426444364444644456444664447644486444964450644516445264453644546445564456644576445864459644606446164462644636446464465644666446764468644696447064471644726447364474644756447664477644786447964480644816448264483644846448564486644876448864489644906449164492644936449464495644966449764498644996450064501645026450364504645056450664507645086450964510645116451264513645146451564516645176451864519645206452164522645236452464525645266452764528645296453064531645326453364534645356453664537645386453964540645416454264543645446454564546645476454864549645506455164552645536455464555645566455764558645596456064561645626456364564645656456664567645686456964570645716457264573645746457564576645776457864579645806458164582645836458464585645866458764588645896459064591645926459364594645956459664597645986459964600646016460264603646046460564606646076460864609646106461164612646136461464615646166461764618646196462064621646226462364624646256462664627646286462964630646316463264633646346463564636646376463864639646406464164642646436464464645646466464764648646496465064651646526465364654646556465664657646586465964660646616466264663646646466564666646676466864669646706467164672646736467464675646766467764678646796468064681646826468364684646856468664687646886468964690646916469264693646946469564696646976469864699647006470164702647036470464705647066470764708647096471064711647126471364714647156471664717647186471964720647216472264723647246472564726647276472864729647306473164732647336473464735647366473764738647396474064741647426474364744647456474664747647486474964750647516475264753647546475564756647576475864759647606476164762647636476464765647666476764768647696477064771647726477364774647756477664777647786477964780647816478264783647846478564786647876478864789647906479164792647936479464795647966479764798647996480064801648026480364804648056480664807648086480964810648116481264813648146481564816648176481864819648206482164822648236482464825648266482764828648296483064831648326483364834648356483664837648386483964840648416484264843648446484564846648476484864849648506485164852648536485464855648566485764858648596486064861648626486364864648656486664867648686486964870648716487264873648746487564876648776487864879648806488164882648836488464885648866488764888648896489064891648926489364894648956489664897648986489964900649016490264903649046490564906649076490864909649106491164912649136491464915649166491764918649196492064921649226492364924649256492664927649286492964930649316493264933649346493564936649376493864939649406494164942649436494464945649466494764948649496495064951649526495364954649556495664957649586495964960649616496264963649646496564966649676496864969649706497164972649736497464975649766497764978649796498064981649826498364984649856498664987649886498964990649916499264993649946499564996649976499864999650006500165002650036500465005650066500765008650096501065011650126501365014650156501665017650186501965020650216502265023650246502565026650276502865029650306503165032650336503465035650366503765038650396504065041650426504365044650456504665047650486504965050650516505265053650546505565056650576505865059650606506165062650636506465065650666506765068650696507065071650726507365074650756507665077650786507965080650816508265083650846508565086650876508865089650906509165092650936509465095650966509765098650996510065101651026510365104651056510665107651086510965110651116511265113651146511565116651176511865119651206512165122651236512465125651266512765128651296513065131651326513365134651356513665137651386513965140651416514265143651446514565146651476514865149651506515165152651536515465155651566515765158651596516065161651626516365164651656516665167651686516965170651716517265173651746517565176651776517865179651806518165182651836518465185651866518765188651896519065191651926519365194651956519665197651986519965200652016520265203652046520565206652076520865209652106521165212652136521465215652166521765218652196522065221652226522365224652256522665227652286522965230652316523265233652346523565236652376523865239652406524165242652436524465245652466524765248652496525065251652526525365254652556525665257652586525965260652616526265263652646526565266652676526865269652706527165272652736527465275652766527765278652796528065281652826528365284652856528665287652886528965290652916529265293652946529565296652976529865299653006530165302653036530465305653066530765308653096531065311653126531365314653156531665317653186531965320653216532265323653246532565326653276532865329653306533165332653336533465335653366533765338653396534065341653426534365344653456534665347653486534965350653516535265353653546535565356653576535865359653606536165362653636536465365653666536765368653696537065371653726537365374653756537665377653786537965380653816538265383653846538565386653876538865389653906539165392653936539465395653966539765398653996540065401654026540365404654056540665407654086540965410654116541265413654146541565416654176541865419654206542165422654236542465425654266542765428654296543065431654326543365434654356543665437654386543965440654416544265443654446544565446654476544865449654506545165452654536545465455654566545765458654596546065461654626546365464654656546665467654686546965470654716547265473654746547565476654776547865479654806548165482654836548465485654866548765488654896549065491654926549365494654956549665497654986549965500655016550265503655046550565506655076550865509655106551165512655136551465515655166551765518655196552065521655226552365524655256552665527655286552965530655316553265533655346553565536655376553865539655406554165542655436554465545655466554765548655496555065551655526555365554655556555665557655586555965560655616556265563655646556565566655676556865569655706557165572655736557465575655766557765578655796558065581655826558365584655856558665587655886558965590655916559265593655946559565596655976559865599656006560165602656036560465605656066560765608656096561065611656126561365614656156561665617656186561965620656216562265623656246562565626656276562865629656306563165632656336563465635656366563765638656396564065641656426564365644656456564665647656486564965650656516565265653656546565565656656576565865659656606566165662656636566465665656666566765668656696567065671656726567365674656756567665677656786567965680656816568265683656846568565686656876568865689656906569165692656936569465695656966569765698656996570065701657026570365704657056570665707657086570965710657116571265713657146571565716657176571865719657206572165722657236572465725657266572765728657296573065731657326573365734657356573665737657386573965740657416574265743657446574565746657476574865749657506575165752657536575465755657566575765758657596576065761657626576365764657656576665767657686576965770657716577265773657746577565776657776577865779657806578165782657836578465785657866578765788657896579065791657926579365794657956579665797657986579965800658016580265803658046580565806658076580865809658106581165812658136581465815658166581765818658196582065821658226582365824658256582665827658286582965830658316583265833658346583565836658376583865839
  1. older libtool is unecessary checking for c++
  2. * regen autotool infrastruture via
  3. "libtoolize; autoregen -vif; rm -rf automa4te"
  4. * add fstack-protector patch manually
  5. diff -Nur chillispot-1.1.0.orig/aclocal.m4 chillispot-1.1.0/aclocal.m4
  6. --- chillispot-1.1.0.orig/aclocal.m4 2006-09-24 21:34:50.000000000 +0200
  7. +++ chillispot-1.1.0/aclocal.m4 2011-02-21 17:56:51.794804767 +0100
  8. @@ -1,7 +1,7 @@
  9. -# generated automatically by aclocal 1.9.5 -*- Autoconf -*-
  10. +# generated automatically by aclocal 1.11.1 -*- Autoconf -*-
  11. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  12. -# 2005 Free Software Foundation, Inc.
  13. +# 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  14. # This file is free software; the Free Software Foundation
  15. # gives unlimited permission to copy and/or distribute it,
  16. # with or without modifications, as long as this notice is preserved.
  17. @@ -11,103 +11,196 @@
  18. # even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  19. # PARTICULAR PURPOSE.
  20. +m4_ifndef([AC_AUTOCONF_VERSION],
  21. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  22. +m4_if(m4_defn([AC_AUTOCONF_VERSION]), [2.65],,
  23. +[m4_warning([this file was generated for autoconf 2.65.
  24. +You have another version of autoconf. It may work, but is not guaranteed to.
  25. +If you have problems, you may need to regenerate the build system entirely.
  26. +To do so, use the procedure documented by the package, typically `autoreconf'.])])
  27. +
  28. # libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  29. +#
  30. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  31. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  32. +# Written by Gordon Matzigkeit, 1996
  33. +#
  34. +# This file is free software; the Free Software Foundation gives
  35. +# unlimited permission to copy and/or distribute it, with or without
  36. +# modifications, as long as this notice is preserved.
  37. +
  38. +m4_define([_LT_COPYING], [dnl
  39. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  40. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  41. +# Written by Gordon Matzigkeit, 1996
  42. +#
  43. +# This file is part of GNU Libtool.
  44. +#
  45. +# GNU Libtool is free software; you can redistribute it and/or
  46. +# modify it under the terms of the GNU General Public License as
  47. +# published by the Free Software Foundation; either version 2 of
  48. +# the License, or (at your option) any later version.
  49. +#
  50. +# As a special exception to the GNU General Public License,
  51. +# if you distribute this file as part of a program or library that
  52. +# is built using GNU Libtool, you may include this file under the
  53. +# same distribution terms that you use for the rest of that program.
  54. +#
  55. +# GNU Libtool is distributed in the hope that it will be useful,
  56. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  57. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  58. +# GNU General Public License for more details.
  59. +#
  60. +# You should have received a copy of the GNU General Public License
  61. +# along with GNU Libtool; see the file COPYING. If not, a copy
  62. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  63. +# obtained by writing to the Free Software Foundation, Inc.,
  64. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  65. +])
  66. -# serial 47 AC_PROG_LIBTOOL
  67. +# serial 56 LT_INIT
  68. -# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  69. -# -----------------------------------------------------------
  70. -# If this macro is not defined by Autoconf, define it here.
  71. -m4_ifdef([AC_PROVIDE_IFELSE],
  72. - [],
  73. - [m4_define([AC_PROVIDE_IFELSE],
  74. - [m4_ifdef([AC_PROVIDE_$1],
  75. - [$2], [$3])])])
  76. +# LT_PREREQ(VERSION)
  77. +# ------------------
  78. +# Complain and exit if this libtool version is less that VERSION.
  79. +m4_defun([LT_PREREQ],
  80. +[m4_if(m4_version_compare(m4_defn([LT_PACKAGE_VERSION]), [$1]), -1,
  81. + [m4_default([$3],
  82. + [m4_fatal([Libtool version $1 or higher is required],
  83. + 63)])],
  84. + [$2])])
  85. -# AC_PROG_LIBTOOL
  86. -# ---------------
  87. -AC_DEFUN([AC_PROG_LIBTOOL],
  88. -[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  89. -dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  90. -dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  91. - AC_PROVIDE_IFELSE([AC_PROG_CXX],
  92. - [AC_LIBTOOL_CXX],
  93. - [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  94. - ])])
  95. -dnl And a similar setup for Fortran 77 support
  96. - AC_PROVIDE_IFELSE([AC_PROG_F77],
  97. - [AC_LIBTOOL_F77],
  98. - [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  99. -])])
  100. -
  101. -dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  102. -dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  103. -dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  104. - AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  105. - [AC_LIBTOOL_GCJ],
  106. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  107. - [AC_LIBTOOL_GCJ],
  108. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  109. - [AC_LIBTOOL_GCJ],
  110. - [ifdef([AC_PROG_GCJ],
  111. - [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  112. - ifdef([A][M_PROG_GCJ],
  113. - [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  114. - ifdef([LT_AC_PROG_GCJ],
  115. - [define([LT_AC_PROG_GCJ],
  116. - defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  117. -])])# AC_PROG_LIBTOOL
  118. +# _LT_CHECK_BUILDDIR
  119. +# ------------------
  120. +# Complain if the absolute build directory name contains unusual characters
  121. +m4_defun([_LT_CHECK_BUILDDIR],
  122. +[case `pwd` in
  123. + *\ * | *\ *)
  124. + AC_MSG_WARN([Libtool does not cope well with whitespace in `pwd`]) ;;
  125. +esac
  126. +])
  127. -# _AC_PROG_LIBTOOL
  128. -# ----------------
  129. -AC_DEFUN([_AC_PROG_LIBTOOL],
  130. -[AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  131. -AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  132. -AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  133. -AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  134. +# LT_INIT([OPTIONS])
  135. +# ------------------
  136. +AC_DEFUN([LT_INIT],
  137. +[AC_PREREQ([2.58])dnl We use AC_INCLUDES_DEFAULT
  138. +AC_BEFORE([$0], [LT_LANG])dnl
  139. +AC_BEFORE([$0], [LT_OUTPUT])dnl
  140. +AC_BEFORE([$0], [LTDL_INIT])dnl
  141. +m4_require([_LT_CHECK_BUILDDIR])dnl
  142. +
  143. +dnl Autoconf doesn't catch unexpanded LT_ macros by default:
  144. +m4_pattern_forbid([^_?LT_[A-Z_]+$])dnl
  145. +m4_pattern_allow([^(_LT_EOF|LT_DLGLOBAL|LT_DLLAZY_OR_NOW|LT_MULTI_MODULE)$])dnl
  146. +dnl aclocal doesn't pull ltoptions.m4, ltsugar.m4, or ltversion.m4
  147. +dnl unless we require an AC_DEFUNed macro:
  148. +AC_REQUIRE([LTOPTIONS_VERSION])dnl
  149. +AC_REQUIRE([LTSUGAR_VERSION])dnl
  150. +AC_REQUIRE([LTVERSION_VERSION])dnl
  151. +AC_REQUIRE([LTOBSOLETE_VERSION])dnl
  152. +m4_require([_LT_PROG_LTMAIN])dnl
  153. +
  154. +dnl Parse OPTIONS
  155. +_LT_SET_OPTIONS([$0], [$1])
  156. # This can be used to rebuild libtool when needed
  157. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  158. +LIBTOOL_DEPS="$ltmain"
  159. # Always use our own libtool.
  160. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  161. AC_SUBST(LIBTOOL)dnl
  162. -# Prevent multiple expansion
  163. -define([AC_PROG_LIBTOOL], [])
  164. -])# _AC_PROG_LIBTOOL
  165. +_LT_SETUP
  166. +# Only expand once:
  167. +m4_define([LT_INIT])
  168. +])# LT_INIT
  169. +
  170. +# Old names:
  171. +AU_ALIAS([AC_PROG_LIBTOOL], [LT_INIT])
  172. +AU_ALIAS([AM_PROG_LIBTOOL], [LT_INIT])
  173. +dnl aclocal-1.4 backwards compatibility:
  174. +dnl AC_DEFUN([AC_PROG_LIBTOOL], [])
  175. +dnl AC_DEFUN([AM_PROG_LIBTOOL], [])
  176. -# AC_LIBTOOL_SETUP
  177. -# ----------------
  178. -AC_DEFUN([AC_LIBTOOL_SETUP],
  179. -[AC_PREREQ(2.50)dnl
  180. -AC_REQUIRE([AC_ENABLE_SHARED])dnl
  181. -AC_REQUIRE([AC_ENABLE_STATIC])dnl
  182. -AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  183. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  184. +
  185. +# _LT_CC_BASENAME(CC)
  186. +# -------------------
  187. +# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  188. +m4_defun([_LT_CC_BASENAME],
  189. +[for cc_temp in $1""; do
  190. + case $cc_temp in
  191. + compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  192. + distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  193. + \-*) ;;
  194. + *) break;;
  195. + esac
  196. +done
  197. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  198. +])
  199. +
  200. +
  201. +# _LT_FILEUTILS_DEFAULTS
  202. +# ----------------------
  203. +# It is okay to use these file commands and assume they have been set
  204. +# sensibly after `m4_require([_LT_FILEUTILS_DEFAULTS])'.
  205. +m4_defun([_LT_FILEUTILS_DEFAULTS],
  206. +[: ${CP="cp -f"}
  207. +: ${MV="mv -f"}
  208. +: ${RM="rm -f"}
  209. +])# _LT_FILEUTILS_DEFAULTS
  210. +
  211. +
  212. +# _LT_SETUP
  213. +# ---------
  214. +m4_defun([_LT_SETUP],
  215. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  216. AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  217. +_LT_DECL([], [host_alias], [0], [The host system])dnl
  218. +_LT_DECL([], [host], [0])dnl
  219. +_LT_DECL([], [host_os], [0])dnl
  220. +dnl
  221. +_LT_DECL([], [build_alias], [0], [The build system])dnl
  222. +_LT_DECL([], [build], [0])dnl
  223. +_LT_DECL([], [build_os], [0])dnl
  224. +dnl
  225. AC_REQUIRE([AC_PROG_CC])dnl
  226. -AC_REQUIRE([AC_PROG_LD])dnl
  227. -AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  228. -AC_REQUIRE([AC_PROG_NM])dnl
  229. -
  230. +AC_REQUIRE([LT_PATH_LD])dnl
  231. +AC_REQUIRE([LT_PATH_NM])dnl
  232. +dnl
  233. AC_REQUIRE([AC_PROG_LN_S])dnl
  234. -AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  235. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  236. -AC_REQUIRE([AC_OBJEXT])dnl
  237. -AC_REQUIRE([AC_EXEEXT])dnl
  238. +test -z "$LN_S" && LN_S="ln -s"
  239. +_LT_DECL([], [LN_S], [1], [Whether we need soft or hard links])dnl
  240. +dnl
  241. +AC_REQUIRE([LT_CMD_MAX_LEN])dnl
  242. +_LT_DECL([objext], [ac_objext], [0], [Object file suffix (normally "o")])dnl
  243. +_LT_DECL([], [exeext], [0], [Executable file suffix (normally "")])dnl
  244. dnl
  245. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  246. +m4_require([_LT_CHECK_SHELL_FEATURES])dnl
  247. +m4_require([_LT_CMD_RELOAD])dnl
  248. +m4_require([_LT_CHECK_MAGIC_METHOD])dnl
  249. +m4_require([_LT_CMD_OLD_ARCHIVE])dnl
  250. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  251. +
  252. +_LT_CONFIG_LIBTOOL_INIT([
  253. +# See if we are running on zsh, and set the options which allow our
  254. +# commands through without removal of \ escapes INIT.
  255. +if test -n "\${ZSH_VERSION+set}" ; then
  256. + setopt NO_GLOB_SUBST
  257. +fi
  258. +])
  259. +if test -n "${ZSH_VERSION+set}" ; then
  260. + setopt NO_GLOB_SUBST
  261. +fi
  262. -AC_LIBTOOL_SYS_MAX_CMD_LEN
  263. -AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  264. -AC_LIBTOOL_OBJDIR
  265. +_LT_CHECK_OBJDIR
  266. -AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  267. -_LT_AC_PROG_ECHO_BACKSLASH
  268. +m4_require([_LT_TAG_COMPILER])dnl
  269. +_LT_PROG_ECHO_BACKSLASH
  270. case $host_os in
  271. aix3*)
  272. @@ -123,6055 +216,7776 @@
  273. # Sed substitution that helps us do robust quoting. It backslashifies
  274. # metacharacters that are still active within double-quoted strings.
  275. -Xsed='sed -e 1s/^X//'
  276. -[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  277. +sed_quote_subst='s/\([["`$\\]]\)/\\\1/g'
  278. # Same as above, but do not quote variable references.
  279. -[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  280. +double_quote_subst='s/\([["`\\]]\)/\\\1/g'
  281. # Sed substitution to delay expansion of an escaped shell variable in a
  282. # double_quote_subst'ed string.
  283. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  284. +# Sed substitution to delay expansion of an escaped single quote.
  285. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  286. +
  287. # Sed substitution to avoid accidental globbing in evaled expressions
  288. no_glob_subst='s/\*/\\\*/g'
  289. -# Constants:
  290. -rm="rm -f"
  291. -
  292. # Global variables:
  293. -default_ofile=libtool
  294. +ofile=libtool
  295. can_build_shared=yes
  296. -# All known linkers require a `.a' archive for static linking (except M$VC,
  297. +# All known linkers require a `.a' archive for static linking (except MSVC,
  298. # which needs '.lib').
  299. libext=a
  300. -ltmain="$ac_aux_dir/ltmain.sh"
  301. -ofile="$default_ofile"
  302. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  303. -AC_CHECK_TOOL(AR, ar, false)
  304. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  305. -AC_CHECK_TOOL(STRIP, strip, :)
  306. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  307. old_CC="$CC"
  308. old_CFLAGS="$CFLAGS"
  309. # Set sane defaults for various variables
  310. -test -z "$AR" && AR=ar
  311. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  312. -test -z "$AS" && AS=as
  313. test -z "$CC" && CC=cc
  314. test -z "$LTCC" && LTCC=$CC
  315. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  316. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  317. test -z "$LD" && LD=ld
  318. -test -z "$LN_S" && LN_S="ln -s"
  319. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  320. -test -z "$NM" && NM=nm
  321. -test -z "$SED" && SED=sed
  322. -test -z "$OBJDUMP" && OBJDUMP=objdump
  323. -test -z "$RANLIB" && RANLIB=:
  324. -test -z "$STRIP" && STRIP=:
  325. test -z "$ac_objext" && ac_objext=o
  326. -# Determine commands to create old-style static archives.
  327. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  328. -old_postinstall_cmds='chmod 644 $oldlib'
  329. -old_postuninstall_cmds=
  330. -
  331. -if test -n "$RANLIB"; then
  332. - case $host_os in
  333. - openbsd*)
  334. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  335. - ;;
  336. - *)
  337. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  338. - ;;
  339. - esac
  340. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  341. -fi
  342. -
  343. _LT_CC_BASENAME([$compiler])
  344. # Only perform the check for file, if the check method requires it
  345. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  346. case $deplibs_check_method in
  347. file_magic*)
  348. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  349. - AC_PATH_MAGIC
  350. + _LT_PATH_MAGIC
  351. fi
  352. ;;
  353. esac
  354. -AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  355. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  356. -enable_win32_dll=yes, enable_win32_dll=no)
  357. -
  358. -AC_ARG_ENABLE([libtool-lock],
  359. - [AC_HELP_STRING([--disable-libtool-lock],
  360. - [avoid locking (might break parallel builds)])])
  361. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  362. +# Use C for the default configuration in the libtool script
  363. +LT_SUPPORTED_TAG([CC])
  364. +_LT_LANG_C_CONFIG
  365. +_LT_LANG_DEFAULT_CONFIG
  366. +_LT_CONFIG_COMMANDS
  367. +])# _LT_SETUP
  368. -AC_ARG_WITH([pic],
  369. - [AC_HELP_STRING([--with-pic],
  370. - [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  371. - [pic_mode="$withval"],
  372. - [pic_mode=default])
  373. -test -z "$pic_mode" && pic_mode=default
  374. -# Use C for the default configuration in the libtool script
  375. -tagname=
  376. -AC_LIBTOOL_LANG_C_CONFIG
  377. -_LT_AC_TAGCONFIG
  378. -])# AC_LIBTOOL_SETUP
  379. +# _LT_PROG_LTMAIN
  380. +# ---------------
  381. +# Note that this code is called both from `configure', and `config.status'
  382. +# now that we use AC_CONFIG_COMMANDS to generate libtool. Notably,
  383. +# `config.status' has no value for ac_aux_dir unless we are using Automake,
  384. +# so we pass a copy along to make sure it has a sensible value anyway.
  385. +m4_defun([_LT_PROG_LTMAIN],
  386. +[m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([ltmain.sh])])dnl
  387. +_LT_CONFIG_LIBTOOL_INIT([ac_aux_dir='$ac_aux_dir'])
  388. +ltmain="$ac_aux_dir/ltmain.sh"
  389. +])# _LT_PROG_LTMAIN
  390. -# _LT_AC_SYS_COMPILER
  391. -# -------------------
  392. -AC_DEFUN([_LT_AC_SYS_COMPILER],
  393. -[AC_REQUIRE([AC_PROG_CC])dnl
  394. -# If no C compiler was specified, use CC.
  395. -LTCC=${LTCC-"$CC"}
  396. +# So that we can recreate a full libtool script including additional
  397. +# tags, we accumulate the chunks of code to send to AC_CONFIG_COMMANDS
  398. +# in macros and then make a single call at the end using the `libtool'
  399. +# label.
  400. -# Allow CC to be a program name with arguments.
  401. -compiler=$CC
  402. -])# _LT_AC_SYS_COMPILER
  403. +# _LT_CONFIG_LIBTOOL_INIT([INIT-COMMANDS])
  404. +# ----------------------------------------
  405. +# Register INIT-COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  406. +m4_define([_LT_CONFIG_LIBTOOL_INIT],
  407. +[m4_ifval([$1],
  408. + [m4_append([_LT_OUTPUT_LIBTOOL_INIT],
  409. + [$1
  410. +])])])
  411. -# _LT_CC_BASENAME(CC)
  412. -# -------------------
  413. -# Calculate cc_basename. Skip known compiler wrappers and cross-prefix.
  414. -AC_DEFUN([_LT_CC_BASENAME],
  415. -[for cc_temp in $1""; do
  416. - case $cc_temp in
  417. - compile | *[[\\/]]compile | ccache | *[[\\/]]ccache ) ;;
  418. - distcc | *[[\\/]]distcc | purify | *[[\\/]]purify ) ;;
  419. - \-*) ;;
  420. - *) break;;
  421. - esac
  422. -done
  423. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  424. +# Initialize.
  425. +m4_define([_LT_OUTPUT_LIBTOOL_INIT])
  426. +
  427. +
  428. +# _LT_CONFIG_LIBTOOL([COMMANDS])
  429. +# ------------------------------
  430. +# Register COMMANDS to be passed to AC_CONFIG_COMMANDS later.
  431. +m4_define([_LT_CONFIG_LIBTOOL],
  432. +[m4_ifval([$1],
  433. + [m4_append([_LT_OUTPUT_LIBTOOL_COMMANDS],
  434. + [$1
  435. +])])])
  436. +
  437. +# Initialize.
  438. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS])
  439. +
  440. +
  441. +# _LT_CONFIG_SAVE_COMMANDS([COMMANDS], [INIT_COMMANDS])
  442. +# -----------------------------------------------------
  443. +m4_defun([_LT_CONFIG_SAVE_COMMANDS],
  444. +[_LT_CONFIG_LIBTOOL([$1])
  445. +_LT_CONFIG_LIBTOOL_INIT([$2])
  446. ])
  447. -# _LT_COMPILER_BOILERPLATE
  448. -# ------------------------
  449. -# Check for compiler boilerplate output or warnings with
  450. -# the simple compiler test code.
  451. -AC_DEFUN([_LT_COMPILER_BOILERPLATE],
  452. -[ac_outfile=conftest.$ac_objext
  453. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  454. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  455. -_lt_compiler_boilerplate=`cat conftest.err`
  456. -$rm conftest*
  457. -])# _LT_COMPILER_BOILERPLATE
  458. +# _LT_FORMAT_COMMENT([COMMENT])
  459. +# -----------------------------
  460. +# Add leading comment marks to the start of each line, and a trailing
  461. +# full-stop to the whole comment if one is not present already.
  462. +m4_define([_LT_FORMAT_COMMENT],
  463. +[m4_ifval([$1], [
  464. +m4_bpatsubst([m4_bpatsubst([$1], [^ *], [# ])],
  465. + [['`$\]], [\\\&])]m4_bmatch([$1], [[!?.]$], [], [.])
  466. +)])
  467. -# _LT_LINKER_BOILERPLATE
  468. -# ----------------------
  469. -# Check for linker boilerplate output or warnings with
  470. -# the simple link test code.
  471. -AC_DEFUN([_LT_LINKER_BOILERPLATE],
  472. -[ac_outfile=conftest.$ac_objext
  473. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  474. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  475. -_lt_linker_boilerplate=`cat conftest.err`
  476. -$rm conftest*
  477. -])# _LT_LINKER_BOILERPLATE
  478. -# _LT_AC_SYS_LIBPATH_AIX
  479. -# ----------------------
  480. -# Links a minimal program and checks the executable
  481. -# for the system default hardcoded library path. In most cases,
  482. -# this is /usr/lib:/lib, but when the MPI compilers are used
  483. -# the location of the communication and MPI libs are included too.
  484. -# If we don't find anything, use the default library path according
  485. -# to the aix ld manual.
  486. -AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  487. -[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  488. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  489. -}'`
  490. -# Check for a 64-bit object if we didn't find anything.
  491. -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; }
  492. -}'`; fi],[])
  493. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  494. -])# _LT_AC_SYS_LIBPATH_AIX
  495. +
  496. +# _LT_DECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION], [IS-TAGGED?])
  497. +# -------------------------------------------------------------------
  498. +# CONFIGNAME is the name given to the value in the libtool script.
  499. +# VARNAME is the (base) name used in the configure script.
  500. +# VALUE may be 0, 1 or 2 for a computed quote escaped value based on
  501. +# VARNAME. Any other value will be used directly.
  502. +m4_define([_LT_DECL],
  503. +[lt_if_append_uniq([lt_decl_varnames], [$2], [, ],
  504. + [lt_dict_add_subkey([lt_decl_dict], [$2], [libtool_name],
  505. + [m4_ifval([$1], [$1], [$2])])
  506. + lt_dict_add_subkey([lt_decl_dict], [$2], [value], [$3])
  507. + m4_ifval([$4],
  508. + [lt_dict_add_subkey([lt_decl_dict], [$2], [description], [$4])])
  509. + lt_dict_add_subkey([lt_decl_dict], [$2],
  510. + [tagged?], [m4_ifval([$5], [yes], [no])])])
  511. +])
  512. -# _LT_AC_SHELL_INIT(ARG)
  513. -# ----------------------
  514. -AC_DEFUN([_LT_AC_SHELL_INIT],
  515. -[ifdef([AC_DIVERSION_NOTICE],
  516. - [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  517. - [AC_DIVERT_PUSH(NOTICE)])
  518. -$1
  519. -AC_DIVERT_POP
  520. -])# _LT_AC_SHELL_INIT
  521. +# _LT_TAGDECL([CONFIGNAME], VARNAME, VALUE, [DESCRIPTION])
  522. +# --------------------------------------------------------
  523. +m4_define([_LT_TAGDECL], [_LT_DECL([$1], [$2], [$3], [$4], [yes])])
  524. +
  525. +
  526. +# lt_decl_tag_varnames([SEPARATOR], [VARNAME1...])
  527. +# ------------------------------------------------
  528. +m4_define([lt_decl_tag_varnames],
  529. +[_lt_decl_filter([tagged?], [yes], $@)])
  530. +
  531. +
  532. +# _lt_decl_filter(SUBKEY, VALUE, [SEPARATOR], [VARNAME1..])
  533. +# ---------------------------------------------------------
  534. +m4_define([_lt_decl_filter],
  535. +[m4_case([$#],
  536. + [0], [m4_fatal([$0: too few arguments: $#])],
  537. + [1], [m4_fatal([$0: too few arguments: $#: $1])],
  538. + [2], [lt_dict_filter([lt_decl_dict], [$1], [$2], [], lt_decl_varnames)],
  539. + [3], [lt_dict_filter([lt_decl_dict], [$1], [$2], [$3], lt_decl_varnames)],
  540. + [lt_dict_filter([lt_decl_dict], $@)])[]dnl
  541. +])
  542. -# _LT_AC_PROG_ECHO_BACKSLASH
  543. -# --------------------------
  544. -# Add some code to the start of the generated configure script which
  545. -# will find an echo command which doesn't interpret backslashes.
  546. -AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  547. -[_LT_AC_SHELL_INIT([
  548. -# Check that we are running under the correct shell.
  549. -SHELL=${CONFIG_SHELL-/bin/sh}
  550. +# lt_decl_quote_varnames([SEPARATOR], [VARNAME1...])
  551. +# --------------------------------------------------
  552. +m4_define([lt_decl_quote_varnames],
  553. +[_lt_decl_filter([value], [1], $@)])
  554. +
  555. +
  556. +# lt_decl_dquote_varnames([SEPARATOR], [VARNAME1...])
  557. +# ---------------------------------------------------
  558. +m4_define([lt_decl_dquote_varnames],
  559. +[_lt_decl_filter([value], [2], $@)])
  560. +
  561. +
  562. +# lt_decl_varnames_tagged([SEPARATOR], [VARNAME1...])
  563. +# ---------------------------------------------------
  564. +m4_define([lt_decl_varnames_tagged],
  565. +[m4_assert([$# <= 2])dnl
  566. +_$0(m4_quote(m4_default([$1], [[, ]])),
  567. + m4_ifval([$2], [[$2]], [m4_dquote(lt_decl_tag_varnames)]),
  568. + m4_split(m4_normalize(m4_quote(_LT_TAGS)), [ ]))])
  569. +m4_define([_lt_decl_varnames_tagged],
  570. +[m4_ifval([$3], [lt_combine([$1], [$2], [_], $3)])])
  571. +
  572. +
  573. +# lt_decl_all_varnames([SEPARATOR], [VARNAME1...])
  574. +# ------------------------------------------------
  575. +m4_define([lt_decl_all_varnames],
  576. +[_$0(m4_quote(m4_default([$1], [[, ]])),
  577. + m4_if([$2], [],
  578. + m4_quote(lt_decl_varnames),
  579. + m4_quote(m4_shift($@))))[]dnl
  580. +])
  581. +m4_define([_lt_decl_all_varnames],
  582. +[lt_join($@, lt_decl_varnames_tagged([$1],
  583. + lt_decl_tag_varnames([[, ]], m4_shift($@))))dnl
  584. +])
  585. -case X$ECHO in
  586. -X*--fallback-echo)
  587. - # Remove one level of quotation (which was required for Make).
  588. - ECHO=`echo "$ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  589. - ;;
  590. -esac
  591. -echo=${ECHO-echo}
  592. -if test "X[$]1" = X--no-reexec; then
  593. - # Discard the --no-reexec flag, and continue.
  594. - shift
  595. -elif test "X[$]1" = X--fallback-echo; then
  596. - # Avoid inline document here, it may be left over
  597. - :
  598. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  599. - # Yippee, $echo works!
  600. - :
  601. -else
  602. - # Restart under the correct shell.
  603. - exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  604. -fi
  605. +# _LT_CONFIG_STATUS_DECLARE([VARNAME])
  606. +# ------------------------------------
  607. +# Quote a variable value, and forward it to `config.status' so that its
  608. +# declaration there will have the same value as in `configure'. VARNAME
  609. +# must have a single quote delimited value for this to work.
  610. +m4_define([_LT_CONFIG_STATUS_DECLARE],
  611. +[$1='`$ECHO "X$][$1" | $Xsed -e "$delay_single_quote_subst"`'])
  612. -if test "X[$]1" = X--fallback-echo; then
  613. - # used as fallback echo
  614. - shift
  615. - cat <<EOF
  616. -[$]*
  617. -EOF
  618. - exit 0
  619. -fi
  620. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  621. -# if CDPATH is set.
  622. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  623. +# _LT_CONFIG_STATUS_DECLARATIONS
  624. +# ------------------------------
  625. +# We delimit libtool config variables with single quotes, so when
  626. +# we write them to config.status, we have to be sure to quote all
  627. +# embedded single quotes properly. In configure, this macro expands
  628. +# each variable declared with _LT_DECL (and _LT_TAGDECL) into:
  629. +#
  630. +# <var>='`$ECHO "X$<var>" | $Xsed -e "$delay_single_quote_subst"`'
  631. +m4_defun([_LT_CONFIG_STATUS_DECLARATIONS],
  632. +[m4_foreach([_lt_var], m4_quote(lt_decl_all_varnames),
  633. + [m4_n([_LT_CONFIG_STATUS_DECLARE(_lt_var)])])])
  634. -if test -z "$ECHO"; then
  635. -if test "X${echo_test_string+set}" != Xset; then
  636. -# find a string as large as possible, as long as the shell can cope with it
  637. - for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  638. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  639. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  640. - echo_test_string="`eval $cmd`" &&
  641. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  642. - then
  643. - break
  644. - fi
  645. - done
  646. -fi
  647. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  648. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  649. - test "X$echo_testing_string" = "X$echo_test_string"; then
  650. - :
  651. -else
  652. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  653. - # backslashes. This makes it impossible to quote backslashes using
  654. - # echo "$something" | sed 's/\\/\\\\/g'
  655. - #
  656. - # So, first we look for a working echo in the user's PATH.
  657. +# _LT_LIBTOOL_TAGS
  658. +# ----------------
  659. +# Output comment and list of tags supported by the script
  660. +m4_defun([_LT_LIBTOOL_TAGS],
  661. +[_LT_FORMAT_COMMENT([The names of the tagged configurations supported by this script])dnl
  662. +available_tags="_LT_TAGS"dnl
  663. +])
  664. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  665. - for dir in $PATH /usr/ucb; do
  666. - IFS="$lt_save_ifs"
  667. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  668. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  669. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  670. - test "X$echo_testing_string" = "X$echo_test_string"; then
  671. - echo="$dir/echo"
  672. - break
  673. - fi
  674. - done
  675. - IFS="$lt_save_ifs"
  676. - if test "X$echo" = Xecho; then
  677. - # We didn't find a better echo, so look for alternatives.
  678. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  679. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  680. - test "X$echo_testing_string" = "X$echo_test_string"; then
  681. - # This shell has a builtin print -r that does the trick.
  682. - echo='print -r'
  683. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  684. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  685. - # If we have ksh, try running configure again with it.
  686. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  687. - export ORIGINAL_CONFIG_SHELL
  688. - CONFIG_SHELL=/bin/ksh
  689. - export CONFIG_SHELL
  690. - exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  691. - else
  692. - # Try using printf.
  693. - echo='printf %s\n'
  694. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  695. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  696. - test "X$echo_testing_string" = "X$echo_test_string"; then
  697. - # Cool, printf works
  698. - :
  699. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  700. - test "X$echo_testing_string" = 'X\t' &&
  701. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  702. - test "X$echo_testing_string" = "X$echo_test_string"; then
  703. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  704. - export CONFIG_SHELL
  705. - SHELL="$CONFIG_SHELL"
  706. - export SHELL
  707. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  708. - elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  709. - test "X$echo_testing_string" = 'X\t' &&
  710. - echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  711. - test "X$echo_testing_string" = "X$echo_test_string"; then
  712. - echo="$CONFIG_SHELL [$]0 --fallback-echo"
  713. - else
  714. - # maybe with a smaller string...
  715. - prev=:
  716. +# _LT_LIBTOOL_DECLARE(VARNAME, [TAG])
  717. +# -----------------------------------
  718. +# Extract the dictionary values for VARNAME (optionally with TAG) and
  719. +# expand to a commented shell variable setting:
  720. +#
  721. +# # Some comment about what VAR is for.
  722. +# visible_name=$lt_internal_name
  723. +m4_define([_LT_LIBTOOL_DECLARE],
  724. +[_LT_FORMAT_COMMENT(m4_quote(lt_dict_fetch([lt_decl_dict], [$1],
  725. + [description])))[]dnl
  726. +m4_pushdef([_libtool_name],
  727. + m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [libtool_name])))[]dnl
  728. +m4_case(m4_quote(lt_dict_fetch([lt_decl_dict], [$1], [value])),
  729. + [0], [_libtool_name=[$]$1],
  730. + [1], [_libtool_name=$lt_[]$1],
  731. + [2], [_libtool_name=$lt_[]$1],
  732. + [_libtool_name=lt_dict_fetch([lt_decl_dict], [$1], [value])])[]dnl
  733. +m4_ifval([$2], [_$2])[]m4_popdef([_libtool_name])[]dnl
  734. +])
  735. - for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  736. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  737. - then
  738. - break
  739. - fi
  740. - prev="$cmd"
  741. - done
  742. - if test "$prev" != 'sed 50q "[$]0"'; then
  743. - echo_test_string=`eval $prev`
  744. - export echo_test_string
  745. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  746. - else
  747. - # Oops. We lost completely, so just stick with echo.
  748. - echo=echo
  749. - fi
  750. - fi
  751. - fi
  752. - fi
  753. -fi
  754. -fi
  755. +# _LT_LIBTOOL_CONFIG_VARS
  756. +# -----------------------
  757. +# Produce commented declarations of non-tagged libtool config variables
  758. +# suitable for insertion in the LIBTOOL CONFIG section of the `libtool'
  759. +# script. Tagged libtool config variables (even for the LIBTOOL CONFIG
  760. +# section) are produced by _LT_LIBTOOL_TAG_VARS.
  761. +m4_defun([_LT_LIBTOOL_CONFIG_VARS],
  762. +[m4_foreach([_lt_var],
  763. + m4_quote(_lt_decl_filter([tagged?], [no], [], lt_decl_varnames)),
  764. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var)])])])
  765. +
  766. +
  767. +# _LT_LIBTOOL_TAG_VARS(TAG)
  768. +# -------------------------
  769. +m4_define([_LT_LIBTOOL_TAG_VARS],
  770. +[m4_foreach([_lt_var], m4_quote(lt_decl_tag_varnames),
  771. + [m4_n([_LT_LIBTOOL_DECLARE(_lt_var, [$1])])])])
  772. -# Copy echo and quote the copy suitably for passing to libtool from
  773. -# the Makefile, instead of quoting the original, which is used later.
  774. -ECHO=$echo
  775. -if test "X$ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  776. - ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  777. -fi
  778. -AC_SUBST(ECHO)
  779. -])])# _LT_AC_PROG_ECHO_BACKSLASH
  780. +# _LT_TAGVAR(VARNAME, [TAGNAME])
  781. +# ------------------------------
  782. +m4_define([_LT_TAGVAR], [m4_ifval([$2], [$1_$2], [$1])])
  783. -# _LT_AC_LOCK
  784. -# -----------
  785. -AC_DEFUN([_LT_AC_LOCK],
  786. -[AC_ARG_ENABLE([libtool-lock],
  787. - [AC_HELP_STRING([--disable-libtool-lock],
  788. - [avoid locking (might break parallel builds)])])
  789. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  790. +# _LT_CONFIG_COMMANDS
  791. +# -------------------
  792. +# Send accumulated output to $CONFIG_STATUS. Thanks to the lists of
  793. +# variables for single and double quote escaping we saved from calls
  794. +# to _LT_DECL, we can put quote escaped variables declarations
  795. +# into `config.status', and then the shell code to quote escape them in
  796. +# for loops in `config.status'. Finally, any additional code accumulated
  797. +# from calls to _LT_CONFIG_LIBTOOL_INIT is expanded.
  798. +m4_defun([_LT_CONFIG_COMMANDS],
  799. +[AC_PROVIDE_IFELSE([LT_OUTPUT],
  800. + dnl If the libtool generation code has been placed in $CONFIG_LT,
  801. + dnl instead of duplicating it all over again into config.status,
  802. + dnl then we will have config.status run $CONFIG_LT later, so it
  803. + dnl needs to know what name is stored there:
  804. + [AC_CONFIG_COMMANDS([libtool],
  805. + [$SHELL $CONFIG_LT || AS_EXIT(1)], [CONFIG_LT='$CONFIG_LT'])],
  806. + dnl If the libtool generation code is destined for config.status,
  807. + dnl expand the accumulated commands and init code now:
  808. + [AC_CONFIG_COMMANDS([libtool],
  809. + [_LT_OUTPUT_LIBTOOL_COMMANDS], [_LT_OUTPUT_LIBTOOL_COMMANDS_INIT])])
  810. +])#_LT_CONFIG_COMMANDS
  811. -# Some flags need to be propagated to the compiler or linker for good
  812. -# libtool support.
  813. -case $host in
  814. -ia64-*-hpux*)
  815. - # Find out which ABI we are using.
  816. - echo 'int i;' > conftest.$ac_ext
  817. - if AC_TRY_EVAL(ac_compile); then
  818. - case `/usr/bin/file conftest.$ac_objext` in
  819. - *ELF-32*)
  820. - HPUX_IA64_MODE="32"
  821. - ;;
  822. - *ELF-64*)
  823. - HPUX_IA64_MODE="64"
  824. - ;;
  825. - esac
  826. - fi
  827. - rm -rf conftest*
  828. - ;;
  829. -*-*-irix6*)
  830. - # Find out which ABI we are using.
  831. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  832. - if AC_TRY_EVAL(ac_compile); then
  833. - if test "$lt_cv_prog_gnu_ld" = yes; then
  834. - case `/usr/bin/file conftest.$ac_objext` in
  835. - *32-bit*)
  836. - LD="${LD-ld} -melf32bsmip"
  837. - ;;
  838. - *N32*)
  839. - LD="${LD-ld} -melf32bmipn32"
  840. +
  841. +# Initialize.
  842. +m4_define([_LT_OUTPUT_LIBTOOL_COMMANDS_INIT],
  843. +[
  844. +
  845. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  846. +# if CDPATH is set.
  847. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  848. +
  849. +sed_quote_subst='$sed_quote_subst'
  850. +double_quote_subst='$double_quote_subst'
  851. +delay_variable_subst='$delay_variable_subst'
  852. +_LT_CONFIG_STATUS_DECLARATIONS
  853. +LTCC='$LTCC'
  854. +LTCFLAGS='$LTCFLAGS'
  855. +compiler='$compiler_DEFAULT'
  856. +
  857. +# Quote evaled strings.
  858. +for var in lt_decl_all_varnames([[ \
  859. +]], lt_decl_quote_varnames); do
  860. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  861. + *[[\\\\\\\`\\"\\\$]]*)
  862. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  863. ;;
  864. - *64-bit*)
  865. - LD="${LD-ld} -melf64bmip"
  866. + *)
  867. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  868. ;;
  869. esac
  870. - else
  871. - case `/usr/bin/file conftest.$ac_objext` in
  872. - *32-bit*)
  873. - LD="${LD-ld} -32"
  874. - ;;
  875. - *N32*)
  876. - LD="${LD-ld} -n32"
  877. +done
  878. +
  879. +# Double-quote double-evaled strings.
  880. +for var in lt_decl_all_varnames([[ \
  881. +]], lt_decl_dquote_varnames); do
  882. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  883. + *[[\\\\\\\`\\"\\\$]]*)
  884. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  885. ;;
  886. - *64-bit*)
  887. - LD="${LD-ld} -64"
  888. + *)
  889. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  890. ;;
  891. esac
  892. - fi
  893. - fi
  894. - rm -rf conftest*
  895. +done
  896. +
  897. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  898. +case \$lt_ECHO in
  899. +*'\\\[$]0 --fallback-echo"')dnl "
  900. + lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\[$]0 --fallback-echo"\[$]/\[$]0 --fallback-echo"/'\`
  901. ;;
  902. +esac
  903. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  904. - # Find out which ABI we are using.
  905. - echo 'int i;' > conftest.$ac_ext
  906. - if AC_TRY_EVAL(ac_compile); then
  907. - case "`/usr/bin/file conftest.o`" in
  908. - *32-bit*)
  909. - case $host in
  910. - x86_64-*linux*)
  911. - LD="${LD-ld} -m elf_i386"
  912. - ;;
  913. - ppc64-*linux*|powerpc64-*linux*)
  914. - LD="${LD-ld} -m elf32ppclinux"
  915. - ;;
  916. - s390x-*linux*)
  917. - LD="${LD-ld} -m elf_s390"
  918. - ;;
  919. - sparc64-*linux*)
  920. - LD="${LD-ld} -m elf32_sparc"
  921. - ;;
  922. - esac
  923. - ;;
  924. - *64-bit*)
  925. - case $host in
  926. - x86_64-*linux*)
  927. - LD="${LD-ld} -m elf_x86_64"
  928. - ;;
  929. - ppc*-*linux*|powerpc*-*linux*)
  930. - LD="${LD-ld} -m elf64ppc"
  931. - ;;
  932. - s390*-*linux*)
  933. - LD="${LD-ld} -m elf64_s390"
  934. - ;;
  935. - sparc*-*linux*)
  936. - LD="${LD-ld} -m elf64_sparc"
  937. - ;;
  938. - esac
  939. - ;;
  940. - esac
  941. - fi
  942. - rm -rf conftest*
  943. - ;;
  944. -
  945. -*-*-sco3.2v5*)
  946. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  947. - SAVE_CFLAGS="$CFLAGS"
  948. - CFLAGS="$CFLAGS -belf"
  949. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  950. - [AC_LANG_PUSH(C)
  951. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  952. - AC_LANG_POP])
  953. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  954. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  955. - CFLAGS="$SAVE_CFLAGS"
  956. - fi
  957. - ;;
  958. -AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  959. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  960. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  961. - AC_CHECK_TOOL(AS, as, false)
  962. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  963. - ;;
  964. - ])
  965. -esac
  966. +_LT_OUTPUT_LIBTOOL_INIT
  967. +])
  968. -need_locks="$enable_libtool_lock"
  969. -])# _LT_AC_LOCK
  970. +# LT_OUTPUT
  971. +# ---------
  972. +# This macro allows early generation of the libtool script (before
  973. +# AC_OUTPUT is called), incase it is used in configure for compilation
  974. +# tests.
  975. +AC_DEFUN([LT_OUTPUT],
  976. +[: ${CONFIG_LT=./config.lt}
  977. +AC_MSG_NOTICE([creating $CONFIG_LT])
  978. +cat >"$CONFIG_LT" <<_LTEOF
  979. +#! $SHELL
  980. +# Generated by $as_me.
  981. +# Run this file to recreate a libtool stub with the current configuration.
  982. +
  983. +lt_cl_silent=false
  984. +SHELL=\${CONFIG_SHELL-$SHELL}
  985. +_LTEOF
  986. +
  987. +cat >>"$CONFIG_LT" <<\_LTEOF
  988. +AS_SHELL_SANITIZE
  989. +_AS_PREPARE
  990. +exec AS_MESSAGE_FD>&1
  991. +exec AS_MESSAGE_LOG_FD>>config.log
  992. +{
  993. + echo
  994. + AS_BOX([Running $as_me.])
  995. +} >&AS_MESSAGE_LOG_FD
  996. +
  997. +lt_cl_help="\
  998. +\`$as_me' creates a local libtool stub from the current configuration,
  999. +for use in further configure time tests before the real libtool is
  1000. +generated.
  1001. +
  1002. +Usage: $[0] [[OPTIONS]]
  1003. +
  1004. + -h, --help print this help, then exit
  1005. + -V, --version print version number, then exit
  1006. + -q, --quiet do not print progress messages
  1007. + -d, --debug don't remove temporary files
  1008. +
  1009. +Report bugs to <bug-libtool@gnu.org>."
  1010. +
  1011. +lt_cl_version="\
  1012. +m4_ifset([AC_PACKAGE_NAME], [AC_PACKAGE_NAME ])config.lt[]dnl
  1013. +m4_ifset([AC_PACKAGE_VERSION], [ AC_PACKAGE_VERSION])
  1014. +configured by $[0], generated by m4_PACKAGE_STRING.
  1015. +
  1016. +Copyright (C) 2008 Free Software Foundation, Inc.
  1017. +This config.lt script is free software; the Free Software Foundation
  1018. +gives unlimited permision to copy, distribute and modify it."
  1019. -# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1020. -# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1021. -# ----------------------------------------------------------------
  1022. -# Check whether the given compiler option works
  1023. -AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1024. -[AC_REQUIRE([LT_AC_PROG_SED])
  1025. -AC_CACHE_CHECK([$1], [$2],
  1026. - [$2=no
  1027. - ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1028. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1029. - lt_compiler_flag="$3"
  1030. - # Insert the option either (1) after the last *FLAGS variable, or
  1031. - # (2) before a word containing "conftest.", or (3) at the end.
  1032. - # Note that $ac_compile itself does not contain backslashes and begins
  1033. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1034. - # The option is referenced via a variable to avoid confusing sed.
  1035. - lt_compile=`echo "$ac_compile" | $SED \
  1036. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1037. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1038. - -e 's:$: $lt_compiler_flag:'`
  1039. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1040. - (eval "$lt_compile" 2>conftest.err)
  1041. - ac_status=$?
  1042. - cat conftest.err >&AS_MESSAGE_LOG_FD
  1043. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1044. - if (exit $ac_status) && test -s "$ac_outfile"; then
  1045. - # The compiler can only warn and ignore the option if not recognized
  1046. - # So say no if there are warnings other than the usual output.
  1047. - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  1048. - $SED '/^$/d' conftest.err >conftest.er2
  1049. - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  1050. - $2=yes
  1051. - fi
  1052. - fi
  1053. - $rm conftest*
  1054. -])
  1055. +while test $[#] != 0
  1056. +do
  1057. + case $[1] in
  1058. + --version | --v* | -V )
  1059. + echo "$lt_cl_version"; exit 0 ;;
  1060. + --help | --h* | -h )
  1061. + echo "$lt_cl_help"; exit 0 ;;
  1062. + --debug | --d* | -d )
  1063. + debug=: ;;
  1064. + --quiet | --q* | --silent | --s* | -q )
  1065. + lt_cl_silent=: ;;
  1066. -if test x"[$]$2" = xyes; then
  1067. - ifelse([$5], , :, [$5])
  1068. -else
  1069. - ifelse([$6], , :, [$6])
  1070. -fi
  1071. -])# AC_LIBTOOL_COMPILER_OPTION
  1072. + -*) AC_MSG_ERROR([unrecognized option: $[1]
  1073. +Try \`$[0] --help' for more information.]) ;;
  1074. + *) AC_MSG_ERROR([unrecognized argument: $[1]
  1075. +Try \`$[0] --help' for more information.]) ;;
  1076. + esac
  1077. + shift
  1078. +done
  1079. -# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1080. -# [ACTION-SUCCESS], [ACTION-FAILURE])
  1081. -# ------------------------------------------------------------
  1082. -# Check whether the given compiler option works
  1083. -AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1084. -[AC_CACHE_CHECK([$1], [$2],
  1085. - [$2=no
  1086. - save_LDFLAGS="$LDFLAGS"
  1087. - LDFLAGS="$LDFLAGS $3"
  1088. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1089. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1090. - # The compiler can only warn and ignore the option if not recognized
  1091. - # So say no if there are warnings
  1092. - if test -s conftest.err; then
  1093. - # Append any errors to the config.log.
  1094. - cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1095. - $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  1096. - $SED '/^$/d' conftest.err >conftest.er2
  1097. - if diff conftest.exp conftest.er2 >/dev/null; then
  1098. - $2=yes
  1099. - fi
  1100. - else
  1101. - $2=yes
  1102. - fi
  1103. - fi
  1104. - $rm conftest*
  1105. - LDFLAGS="$save_LDFLAGS"
  1106. -])
  1107. +if $lt_cl_silent; then
  1108. + exec AS_MESSAGE_FD>/dev/null
  1109. +fi
  1110. +_LTEOF
  1111. -if test x"[$]$2" = xyes; then
  1112. - ifelse([$4], , :, [$4])
  1113. -else
  1114. - ifelse([$5], , :, [$5])
  1115. +cat >>"$CONFIG_LT" <<_LTEOF
  1116. +_LT_OUTPUT_LIBTOOL_COMMANDS_INIT
  1117. +_LTEOF
  1118. +
  1119. +cat >>"$CONFIG_LT" <<\_LTEOF
  1120. +AC_MSG_NOTICE([creating $ofile])
  1121. +_LT_OUTPUT_LIBTOOL_COMMANDS
  1122. +AS_EXIT(0)
  1123. +_LTEOF
  1124. +chmod +x "$CONFIG_LT"
  1125. +
  1126. +# configure is writing to config.log, but config.lt does its own redirection,
  1127. +# appending to config.log, which fails on DOS, as config.log is still kept
  1128. +# open by configure. Here we exec the FD to /dev/null, effectively closing
  1129. +# config.log, so it can be properly (re)opened and appended to by config.lt.
  1130. +if test "$no_create" != yes; then
  1131. + lt_cl_success=:
  1132. + test "$silent" = yes &&
  1133. + lt_config_lt_args="$lt_config_lt_args --quiet"
  1134. + exec AS_MESSAGE_LOG_FD>/dev/null
  1135. + $SHELL "$CONFIG_LT" $lt_config_lt_args || lt_cl_success=false
  1136. + exec AS_MESSAGE_LOG_FD>>config.log
  1137. + $lt_cl_success || AS_EXIT(1)
  1138. fi
  1139. -])# AC_LIBTOOL_LINKER_OPTION
  1140. +])# LT_OUTPUT
  1141. -# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1142. -# --------------------------
  1143. -AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1144. -[# find the maximum length of command line arguments
  1145. -AC_MSG_CHECKING([the maximum length of command line arguments])
  1146. -AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1147. - i=0
  1148. - teststring="ABCD"
  1149. +# _LT_CONFIG(TAG)
  1150. +# ---------------
  1151. +# If TAG is the built-in tag, create an initial libtool script with a
  1152. +# default configuration from the untagged config vars. Otherwise add code
  1153. +# to config.status for appending the configuration named by TAG from the
  1154. +# matching tagged config vars.
  1155. +m4_defun([_LT_CONFIG],
  1156. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  1157. +_LT_CONFIG_SAVE_COMMANDS([
  1158. + m4_define([_LT_TAG], m4_if([$1], [], [C], [$1]))dnl
  1159. + m4_if(_LT_TAG, [C], [
  1160. + # See if we are running on zsh, and set the options which allow our
  1161. + # commands through without removal of \ escapes.
  1162. + if test -n "${ZSH_VERSION+set}" ; then
  1163. + setopt NO_GLOB_SUBST
  1164. + fi
  1165. - case $build_os in
  1166. - msdosdjgpp*)
  1167. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  1168. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  1169. - # during glob expansion). Even if it were fixed, the result of this
  1170. - # check would be larger than it should be.
  1171. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1172. - ;;
  1173. + cfgfile="${ofile}T"
  1174. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  1175. + $RM "$cfgfile"
  1176. - gnu*)
  1177. - # Under GNU Hurd, this test is not required because there is
  1178. - # no limit to the length of command line arguments.
  1179. - # Libtool will interpret -1 as no limit whatsoever
  1180. - lt_cv_sys_max_cmd_len=-1;
  1181. - ;;
  1182. + cat <<_LT_EOF >> "$cfgfile"
  1183. +#! $SHELL
  1184. - cygwin* | mingw*)
  1185. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  1186. - # about 5 minutes as the teststring grows exponentially.
  1187. - # Worse, since 9x/ME are not pre-emptively multitasking,
  1188. - # you end up with a "frozen" computer, even though with patience
  1189. - # the test eventually succeeds (with a max line length of 256k).
  1190. - # Instead, let's just punt: use the minimum linelength reported by
  1191. - # all of the supported platforms: 8192 (on NT/2K/XP).
  1192. - lt_cv_sys_max_cmd_len=8192;
  1193. - ;;
  1194. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  1195. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  1196. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  1197. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  1198. +#
  1199. +_LT_COPYING
  1200. +_LT_LIBTOOL_TAGS
  1201. - amigaos*)
  1202. - # On AmigaOS with pdksh, this test takes hours, literally.
  1203. - # So we just punt and use a minimum line length of 8192.
  1204. - lt_cv_sys_max_cmd_len=8192;
  1205. - ;;
  1206. +# ### BEGIN LIBTOOL CONFIG
  1207. +_LT_LIBTOOL_CONFIG_VARS
  1208. +_LT_LIBTOOL_TAG_VARS
  1209. +# ### END LIBTOOL CONFIG
  1210. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  1211. - # This has been around since 386BSD, at least. Likely further.
  1212. - if test -x /sbin/sysctl; then
  1213. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  1214. - elif test -x /usr/sbin/sysctl; then
  1215. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  1216. - else
  1217. - lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  1218. - fi
  1219. - # And add a safety zone
  1220. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  1221. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  1222. - ;;
  1223. - osf*)
  1224. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  1225. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  1226. - # nice to cause kernel panics so lets avoid the loop below.
  1227. - # First set a reasonable default.
  1228. - lt_cv_sys_max_cmd_len=16384
  1229. - #
  1230. - if test -x /sbin/sysconfig; then
  1231. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  1232. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  1233. - esac
  1234. - fi
  1235. - ;;
  1236. - *)
  1237. - # If test is not a shell built-in, we'll probably end up computing a
  1238. - # maximum length that is only half of the actual maximum length, but
  1239. - # we can't tell.
  1240. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  1241. - while (test "X"`$SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1242. - = "XX$teststring") >/dev/null 2>&1 &&
  1243. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1244. - lt_cv_sys_max_cmd_len=$new_result &&
  1245. - test $i != 17 # 1/2 MB should be enough
  1246. - do
  1247. - i=`expr $i + 1`
  1248. - teststring=$teststring$teststring
  1249. - done
  1250. - teststring=
  1251. - # Add a significant safety factor because C++ compilers can tack on massive
  1252. - # amounts of additional arguments before passing them to the linker.
  1253. - # It appears as though 1/2 is a usable value.
  1254. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1255. +_LT_EOF
  1256. +
  1257. + case $host_os in
  1258. + aix3*)
  1259. + cat <<\_LT_EOF >> "$cfgfile"
  1260. +# AIX sometimes has problems with the GCC collect2 program. For some
  1261. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  1262. +# vanish in a puff of smoke.
  1263. +if test "X${COLLECT_NAMES+set}" != Xset; then
  1264. + COLLECT_NAMES=
  1265. + export COLLECT_NAMES
  1266. +fi
  1267. +_LT_EOF
  1268. ;;
  1269. esac
  1270. -])
  1271. -if test -n $lt_cv_sys_max_cmd_len ; then
  1272. - AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1273. -else
  1274. - AC_MSG_RESULT(none)
  1275. -fi
  1276. -])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1277. + _LT_PROG_LTMAIN
  1278. -# _LT_AC_CHECK_DLFCN
  1279. -# --------------------
  1280. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1281. -[AC_CHECK_HEADERS(dlfcn.h)dnl
  1282. -])# _LT_AC_CHECK_DLFCN
  1283. + # We use sed instead of cat because bash on DJGPP gets confused if
  1284. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  1285. + # text mode, it properly converts lines to CR/LF. This bash problem
  1286. + # is reportedly fixed, but why not run on old versions too?
  1287. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  1288. + || (rm -f "$cfgfile"; exit 1)
  1289. + _LT_PROG_XSI_SHELLFNS
  1290. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1291. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1292. -# ------------------------------------------------------------------
  1293. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1294. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1295. -if test "$cross_compiling" = yes; then :
  1296. - [$4]
  1297. -else
  1298. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1299. - lt_status=$lt_dlunknown
  1300. - cat > conftest.$ac_ext <<EOF
  1301. -[#line __oline__ "configure"
  1302. -#include "confdefs.h"
  1303. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  1304. + || (rm -f "$cfgfile"; exit 1)
  1305. -#if HAVE_DLFCN_H
  1306. -#include <dlfcn.h>
  1307. -#endif
  1308. + mv -f "$cfgfile" "$ofile" ||
  1309. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  1310. + chmod +x "$ofile"
  1311. +],
  1312. +[cat <<_LT_EOF >> "$ofile"
  1313. -#include <stdio.h>
  1314. +dnl Unfortunately we have to use $1 here, since _LT_TAG is not expanded
  1315. +dnl in a comment (ie after a #).
  1316. +# ### BEGIN LIBTOOL TAG CONFIG: $1
  1317. +_LT_LIBTOOL_TAG_VARS(_LT_TAG)
  1318. +# ### END LIBTOOL TAG CONFIG: $1
  1319. +_LT_EOF
  1320. +])dnl /m4_if
  1321. +],
  1322. +[m4_if([$1], [], [
  1323. + PACKAGE='$PACKAGE'
  1324. + VERSION='$VERSION'
  1325. + TIMESTAMP='$TIMESTAMP'
  1326. + RM='$RM'
  1327. + ofile='$ofile'], [])
  1328. +])dnl /_LT_CONFIG_SAVE_COMMANDS
  1329. +])# _LT_CONFIG
  1330. -#ifdef RTLD_GLOBAL
  1331. -# define LT_DLGLOBAL RTLD_GLOBAL
  1332. -#else
  1333. -# ifdef DL_GLOBAL
  1334. -# define LT_DLGLOBAL DL_GLOBAL
  1335. -# else
  1336. -# define LT_DLGLOBAL 0
  1337. -# endif
  1338. -#endif
  1339. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1340. - find out it does not work in some platform. */
  1341. -#ifndef LT_DLLAZY_OR_NOW
  1342. -# ifdef RTLD_LAZY
  1343. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1344. -# else
  1345. -# ifdef DL_LAZY
  1346. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1347. -# else
  1348. -# ifdef RTLD_NOW
  1349. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  1350. -# else
  1351. -# ifdef DL_NOW
  1352. -# define LT_DLLAZY_OR_NOW DL_NOW
  1353. -# else
  1354. -# define LT_DLLAZY_OR_NOW 0
  1355. -# endif
  1356. -# endif
  1357. -# endif
  1358. -# endif
  1359. -#endif
  1360. +# LT_SUPPORTED_TAG(TAG)
  1361. +# ---------------------
  1362. +# Trace this macro to discover what tags are supported by the libtool
  1363. +# --tag option, using:
  1364. +# autoconf --trace 'LT_SUPPORTED_TAG:$1'
  1365. +AC_DEFUN([LT_SUPPORTED_TAG], [])
  1366. -#ifdef __cplusplus
  1367. -extern "C" void exit (int);
  1368. -#endif
  1369. -void fnord() { int i=42;}
  1370. -int main ()
  1371. -{
  1372. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  1373. - int status = $lt_dlunknown;
  1374. +# C support is built-in for now
  1375. +m4_define([_LT_LANG_C_enabled], [])
  1376. +m4_define([_LT_TAGS], [])
  1377. - if (self)
  1378. - {
  1379. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  1380. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  1381. - /* dlclose (self); */
  1382. - }
  1383. - exit (status);
  1384. -}]
  1385. -EOF
  1386. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  1387. - (./conftest; exit; ) 2>/dev/null
  1388. - lt_status=$?
  1389. - case x$lt_status in
  1390. - x$lt_dlno_uscore) $1 ;;
  1391. - x$lt_dlneed_uscore) $2 ;;
  1392. - x$lt_unknown|x*) $3 ;;
  1393. - esac
  1394. - else :
  1395. - # compilation failed
  1396. - $3
  1397. - fi
  1398. -fi
  1399. -rm -fr conftest*
  1400. -])# _LT_AC_TRY_DLOPEN_SELF
  1401. +# LT_LANG(LANG)
  1402. +# -------------
  1403. +# Enable libtool support for the given language if not already enabled.
  1404. +AC_DEFUN([LT_LANG],
  1405. +[AC_BEFORE([$0], [LT_OUTPUT])dnl
  1406. +m4_case([$1],
  1407. + [C], [_LT_LANG(C)],
  1408. + [C++], [_LT_LANG(CXX)],
  1409. + [Java], [_LT_LANG(GCJ)],
  1410. + [Fortran 77], [_LT_LANG(F77)],
  1411. + [Fortran], [_LT_LANG(FC)],
  1412. + [Windows Resource], [_LT_LANG(RC)],
  1413. + [m4_ifdef([_LT_LANG_]$1[_CONFIG],
  1414. + [_LT_LANG($1)],
  1415. + [m4_fatal([$0: unsupported language: "$1"])])])dnl
  1416. +])# LT_LANG
  1417. -# AC_LIBTOOL_DLOPEN_SELF
  1418. -# -------------------
  1419. -AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1420. -[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1421. -if test "x$enable_dlopen" != xyes; then
  1422. - enable_dlopen=unknown
  1423. - enable_dlopen_self=unknown
  1424. - enable_dlopen_self_static=unknown
  1425. -else
  1426. - lt_cv_dlopen=no
  1427. - lt_cv_dlopen_libs=
  1428. +# _LT_LANG(LANGNAME)
  1429. +# ------------------
  1430. +m4_defun([_LT_LANG],
  1431. +[m4_ifdef([_LT_LANG_]$1[_enabled], [],
  1432. + [LT_SUPPORTED_TAG([$1])dnl
  1433. + m4_append([_LT_TAGS], [$1 ])dnl
  1434. + m4_define([_LT_LANG_]$1[_enabled], [])dnl
  1435. + _LT_LANG_$1_CONFIG($1)])dnl
  1436. +])# _LT_LANG
  1437. - case $host_os in
  1438. - beos*)
  1439. - lt_cv_dlopen="load_add_on"
  1440. - lt_cv_dlopen_libs=
  1441. - lt_cv_dlopen_self=yes
  1442. - ;;
  1443. - mingw* | pw32*)
  1444. - lt_cv_dlopen="LoadLibrary"
  1445. - lt_cv_dlopen_libs=
  1446. - ;;
  1447. +# _LT_LANG_DEFAULT_CONFIG
  1448. +# -----------------------
  1449. +m4_defun([_LT_LANG_DEFAULT_CONFIG],
  1450. +[AC_PROVIDE_IFELSE([AC_PROG_CXX],
  1451. + [LT_LANG(CXX)],
  1452. + [m4_define([AC_PROG_CXX], defn([AC_PROG_CXX])[LT_LANG(CXX)])])
  1453. +
  1454. +AC_PROVIDE_IFELSE([AC_PROG_F77],
  1455. + [LT_LANG(F77)],
  1456. + [m4_define([AC_PROG_F77], defn([AC_PROG_F77])[LT_LANG(F77)])])
  1457. +
  1458. +AC_PROVIDE_IFELSE([AC_PROG_FC],
  1459. + [LT_LANG(FC)],
  1460. + [m4_define([AC_PROG_FC], defn([AC_PROG_FC])[LT_LANG(FC)])])
  1461. +
  1462. +dnl The call to [A][M_PROG_GCJ] is quoted like that to stop aclocal
  1463. +dnl pulling things in needlessly.
  1464. +AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  1465. + [LT_LANG(GCJ)],
  1466. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  1467. + [LT_LANG(GCJ)],
  1468. + [AC_PROVIDE_IFELSE([LT_PROG_GCJ],
  1469. + [LT_LANG(GCJ)],
  1470. + [m4_ifdef([AC_PROG_GCJ],
  1471. + [m4_define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[LT_LANG(GCJ)])])
  1472. + m4_ifdef([A][M_PROG_GCJ],
  1473. + [m4_define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[LT_LANG(GCJ)])])
  1474. + m4_ifdef([LT_PROG_GCJ],
  1475. + [m4_define([LT_PROG_GCJ], defn([LT_PROG_GCJ])[LT_LANG(GCJ)])])])])])
  1476. +
  1477. +AC_PROVIDE_IFELSE([LT_PROG_RC],
  1478. + [LT_LANG(RC)],
  1479. + [m4_define([LT_PROG_RC], defn([LT_PROG_RC])[LT_LANG(RC)])])
  1480. +])# _LT_LANG_DEFAULT_CONFIG
  1481. +
  1482. +# Obsolete macros:
  1483. +AU_DEFUN([AC_LIBTOOL_CXX], [LT_LANG(C++)])
  1484. +AU_DEFUN([AC_LIBTOOL_F77], [LT_LANG(Fortran 77)])
  1485. +AU_DEFUN([AC_LIBTOOL_FC], [LT_LANG(Fortran)])
  1486. +AU_DEFUN([AC_LIBTOOL_GCJ], [LT_LANG(Java)])
  1487. +dnl aclocal-1.4 backwards compatibility:
  1488. +dnl AC_DEFUN([AC_LIBTOOL_CXX], [])
  1489. +dnl AC_DEFUN([AC_LIBTOOL_F77], [])
  1490. +dnl AC_DEFUN([AC_LIBTOOL_FC], [])
  1491. +dnl AC_DEFUN([AC_LIBTOOL_GCJ], [])
  1492. - cygwin*)
  1493. - lt_cv_dlopen="dlopen"
  1494. - lt_cv_dlopen_libs=
  1495. - ;;
  1496. - darwin*)
  1497. - # if libdl is installed we need to link against it
  1498. - AC_CHECK_LIB([dl], [dlopen],
  1499. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1500. - lt_cv_dlopen="dyld"
  1501. - lt_cv_dlopen_libs=
  1502. - lt_cv_dlopen_self=yes
  1503. - ])
  1504. - ;;
  1505. +# _LT_TAG_COMPILER
  1506. +# ----------------
  1507. +m4_defun([_LT_TAG_COMPILER],
  1508. +[AC_REQUIRE([AC_PROG_CC])dnl
  1509. - *)
  1510. - AC_CHECK_FUNC([shl_load],
  1511. - [lt_cv_dlopen="shl_load"],
  1512. - [AC_CHECK_LIB([dld], [shl_load],
  1513. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1514. - [AC_CHECK_FUNC([dlopen],
  1515. - [lt_cv_dlopen="dlopen"],
  1516. - [AC_CHECK_LIB([dl], [dlopen],
  1517. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1518. - [AC_CHECK_LIB([svld], [dlopen],
  1519. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1520. - [AC_CHECK_LIB([dld], [dld_link],
  1521. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1522. - ])
  1523. - ])
  1524. - ])
  1525. - ])
  1526. - ])
  1527. - ;;
  1528. - esac
  1529. +_LT_DECL([LTCC], [CC], [1], [A C compiler])dnl
  1530. +_LT_DECL([LTCFLAGS], [CFLAGS], [1], [LTCC compiler flags])dnl
  1531. +_LT_TAGDECL([CC], [compiler], [1], [A language specific compiler])dnl
  1532. +_LT_TAGDECL([with_gcc], [GCC], [0], [Is the compiler the GNU compiler?])dnl
  1533. - if test "x$lt_cv_dlopen" != xno; then
  1534. - enable_dlopen=yes
  1535. - else
  1536. - enable_dlopen=no
  1537. - fi
  1538. +# If no C compiler was specified, use CC.
  1539. +LTCC=${LTCC-"$CC"}
  1540. - case $lt_cv_dlopen in
  1541. - dlopen)
  1542. - save_CPPFLAGS="$CPPFLAGS"
  1543. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1544. +# If no C compiler flags were specified, use CFLAGS.
  1545. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  1546. - save_LDFLAGS="$LDFLAGS"
  1547. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  1548. +# Allow CC to be a program name with arguments.
  1549. +compiler=$CC
  1550. +])# _LT_TAG_COMPILER
  1551. - save_LIBS="$LIBS"
  1552. - LIBS="$lt_cv_dlopen_libs $LIBS"
  1553. - AC_CACHE_CHECK([whether a program can dlopen itself],
  1554. - lt_cv_dlopen_self, [dnl
  1555. - _LT_AC_TRY_DLOPEN_SELF(
  1556. - lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  1557. - lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  1558. - ])
  1559. +# _LT_COMPILER_BOILERPLATE
  1560. +# ------------------------
  1561. +# Check for compiler boilerplate output or warnings with
  1562. +# the simple compiler test code.
  1563. +m4_defun([_LT_COMPILER_BOILERPLATE],
  1564. +[m4_require([_LT_DECL_SED])dnl
  1565. +ac_outfile=conftest.$ac_objext
  1566. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  1567. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1568. +_lt_compiler_boilerplate=`cat conftest.err`
  1569. +$RM conftest*
  1570. +])# _LT_COMPILER_BOILERPLATE
  1571. - if test "x$lt_cv_dlopen_self" = xyes; then
  1572. - LDFLAGS="$LDFLAGS $link_static_flag"
  1573. - AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  1574. - lt_cv_dlopen_self_static, [dnl
  1575. - _LT_AC_TRY_DLOPEN_SELF(
  1576. - lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  1577. - lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  1578. - ])
  1579. - fi
  1580. - CPPFLAGS="$save_CPPFLAGS"
  1581. - LDFLAGS="$save_LDFLAGS"
  1582. - LIBS="$save_LIBS"
  1583. +# _LT_LINKER_BOILERPLATE
  1584. +# ----------------------
  1585. +# Check for linker boilerplate output or warnings with
  1586. +# the simple link test code.
  1587. +m4_defun([_LT_LINKER_BOILERPLATE],
  1588. +[m4_require([_LT_DECL_SED])dnl
  1589. +ac_outfile=conftest.$ac_objext
  1590. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  1591. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  1592. +_lt_linker_boilerplate=`cat conftest.err`
  1593. +$RM -r conftest*
  1594. +])# _LT_LINKER_BOILERPLATE
  1595. +
  1596. +# _LT_REQUIRED_DARWIN_CHECKS
  1597. +# -------------------------
  1598. +m4_defun_once([_LT_REQUIRED_DARWIN_CHECKS],[
  1599. + case $host_os in
  1600. + rhapsody* | darwin*)
  1601. + AC_CHECK_TOOL([DSYMUTIL], [dsymutil], [:])
  1602. + AC_CHECK_TOOL([NMEDIT], [nmedit], [:])
  1603. + AC_CHECK_TOOL([LIPO], [lipo], [:])
  1604. + AC_CHECK_TOOL([OTOOL], [otool], [:])
  1605. + AC_CHECK_TOOL([OTOOL64], [otool64], [:])
  1606. + _LT_DECL([], [DSYMUTIL], [1],
  1607. + [Tool to manipulate archived DWARF debug symbol files on Mac OS X])
  1608. + _LT_DECL([], [NMEDIT], [1],
  1609. + [Tool to change global to local symbols on Mac OS X])
  1610. + _LT_DECL([], [LIPO], [1],
  1611. + [Tool to manipulate fat objects and archives on Mac OS X])
  1612. + _LT_DECL([], [OTOOL], [1],
  1613. + [ldd/readelf like tool for Mach-O binaries on Mac OS X])
  1614. + _LT_DECL([], [OTOOL64], [1],
  1615. + [ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4])
  1616. +
  1617. + AC_CACHE_CHECK([for -single_module linker flag],[lt_cv_apple_cc_single_mod],
  1618. + [lt_cv_apple_cc_single_mod=no
  1619. + if test -z "${LT_MULTI_MODULE}"; then
  1620. + # By default we will add the -single_module flag. You can override
  1621. + # by either setting the environment variable LT_MULTI_MODULE
  1622. + # non-empty at configure time, or by adding -multi_module to the
  1623. + # link flags.
  1624. + rm -rf libconftest.dylib*
  1625. + echo "int foo(void){return 1;}" > conftest.c
  1626. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1627. +-dynamiclib -Wl,-single_module conftest.c" >&AS_MESSAGE_LOG_FD
  1628. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  1629. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  1630. + _lt_result=$?
  1631. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  1632. + lt_cv_apple_cc_single_mod=yes
  1633. + else
  1634. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1635. + fi
  1636. + rm -rf libconftest.dylib*
  1637. + rm -f conftest.*
  1638. + fi])
  1639. + AC_CACHE_CHECK([for -exported_symbols_list linker flag],
  1640. + [lt_cv_ld_exported_symbols_list],
  1641. + [lt_cv_ld_exported_symbols_list=no
  1642. + save_LDFLAGS=$LDFLAGS
  1643. + echo "_main" > conftest.sym
  1644. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  1645. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  1646. + [lt_cv_ld_exported_symbols_list=yes],
  1647. + [lt_cv_ld_exported_symbols_list=no])
  1648. + LDFLAGS="$save_LDFLAGS"
  1649. + ])
  1650. + case $host_os in
  1651. + rhapsody* | darwin1.[[012]])
  1652. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  1653. + darwin1.*)
  1654. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1655. + darwin*) # darwin 5.x on
  1656. + # if running on 10.5 or later, the deployment target defaults
  1657. + # to the OS version, if on x86, and 10.4, the deployment
  1658. + # target defaults to 10.4. Don't you love it?
  1659. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  1660. + 10.0,*86*-darwin8*|10.0,*-darwin[[91]]*)
  1661. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1662. + 10.[[012]]*)
  1663. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  1664. + 10.*)
  1665. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  1666. + esac
  1667. ;;
  1668. esac
  1669. -
  1670. - case $lt_cv_dlopen_self in
  1671. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  1672. - *) enable_dlopen_self=unknown ;;
  1673. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  1674. + _lt_dar_single_mod='$single_module'
  1675. + fi
  1676. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  1677. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  1678. + else
  1679. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  1680. + fi
  1681. + if test "$DSYMUTIL" != ":"; then
  1682. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  1683. + else
  1684. + _lt_dsymutil=
  1685. + fi
  1686. + ;;
  1687. esac
  1688. +])
  1689. - case $lt_cv_dlopen_self_static in
  1690. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  1691. - *) enable_dlopen_self_static=unknown ;;
  1692. +
  1693. +# _LT_DARWIN_LINKER_FEATURES
  1694. +# --------------------------
  1695. +# Checks for linker and compiler features on darwin
  1696. +m4_defun([_LT_DARWIN_LINKER_FEATURES],
  1697. +[
  1698. + m4_require([_LT_REQUIRED_DARWIN_CHECKS])
  1699. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  1700. + _LT_TAGVAR(hardcode_direct, $1)=no
  1701. + _LT_TAGVAR(hardcode_automatic, $1)=yes
  1702. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  1703. + _LT_TAGVAR(whole_archive_flag_spec, $1)=''
  1704. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  1705. + _LT_TAGVAR(allow_undefined_flag, $1)="$_lt_dar_allow_undefined"
  1706. + case $cc_basename in
  1707. + ifort*) _lt_dar_can_shared=yes ;;
  1708. + *) _lt_dar_can_shared=$GCC ;;
  1709. esac
  1710. -fi
  1711. -])# AC_LIBTOOL_DLOPEN_SELF
  1712. + if test "$_lt_dar_can_shared" = "yes"; then
  1713. + output_verbose_link_cmd=echo
  1714. + _LT_TAGVAR(archive_cmds, $1)="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  1715. + _LT_TAGVAR(module_cmds, $1)="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  1716. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  1717. + _LT_TAGVAR(module_expsym_cmds, $1)="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  1718. + m4_if([$1], [CXX],
  1719. +[ if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  1720. + _LT_TAGVAR(archive_cmds, $1)="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  1721. + _LT_TAGVAR(archive_expsym_cmds, $1)="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  1722. + fi
  1723. +],[])
  1724. + else
  1725. + _LT_TAGVAR(ld_shlibs, $1)=no
  1726. + fi
  1727. +])
  1728. +# _LT_SYS_MODULE_PATH_AIX
  1729. +# -----------------------
  1730. +# Links a minimal program and checks the executable
  1731. +# for the system default hardcoded library path. In most cases,
  1732. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1733. +# the location of the communication and MPI libs are included too.
  1734. +# If we don't find anything, use the default library path according
  1735. +# to the aix ld manual.
  1736. +m4_defun([_LT_SYS_MODULE_PATH_AIX],
  1737. +[m4_require([_LT_DECL_SED])dnl
  1738. +AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1739. +lt_aix_libpath_sed='
  1740. + /Import File Strings/,/^$/ {
  1741. + /^0/ {
  1742. + s/^0 *\(.*\)$/\1/
  1743. + p
  1744. + }
  1745. + }'
  1746. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1747. +# Check for a 64-bit object if we didn't find anything.
  1748. +if test -z "$aix_libpath"; then
  1749. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  1750. +fi],[])
  1751. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1752. +])# _LT_SYS_MODULE_PATH_AIX
  1753. -# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1754. -# ---------------------------------
  1755. -# Check to see if options -c and -o are simultaneously supported by compiler
  1756. -AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1757. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1758. -AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1759. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1760. - [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1761. - $rm -r conftest 2>/dev/null
  1762. - mkdir conftest
  1763. - cd conftest
  1764. - mkdir out
  1765. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1766. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  1767. - # Insert the option either (1) after the last *FLAGS variable, or
  1768. - # (2) before a word containing "conftest.", or (3) at the end.
  1769. - # Note that $ac_compile itself does not contain backslashes and begins
  1770. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  1771. - lt_compile=`echo "$ac_compile" | $SED \
  1772. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1773. - -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1774. - -e 's:$: $lt_compiler_flag:'`
  1775. - (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1776. - (eval "$lt_compile" 2>out/conftest.err)
  1777. - ac_status=$?
  1778. - cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1779. - echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1780. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1781. - then
  1782. - # The compiler can only warn and ignore the option if not recognized
  1783. - # So say no if there are warnings
  1784. - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  1785. - $SED '/^$/d' out/conftest.err >out/conftest.er2
  1786. - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  1787. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1788. - fi
  1789. - fi
  1790. - chmod u+w .
  1791. - $rm conftest*
  1792. - # SGI C++ compiler will create directory out/ii_files/ for
  1793. - # template instantiation
  1794. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1795. - $rm out/* && rmdir out
  1796. - cd ..
  1797. - rmdir conftest
  1798. - $rm conftest*
  1799. -])
  1800. -])# AC_LIBTOOL_PROG_CC_C_O
  1801. +# _LT_SHELL_INIT(ARG)
  1802. +# -------------------
  1803. +m4_define([_LT_SHELL_INIT],
  1804. +[ifdef([AC_DIVERSION_NOTICE],
  1805. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1806. + [AC_DIVERT_PUSH(NOTICE)])
  1807. +$1
  1808. +AC_DIVERT_POP
  1809. +])# _LT_SHELL_INIT
  1810. -# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1811. -# -----------------------------------------
  1812. -# Check to see if we can do hard links to lock some files if needed
  1813. -AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1814. -[AC_REQUIRE([_LT_AC_LOCK])dnl
  1815. +# _LT_PROG_ECHO_BACKSLASH
  1816. +# -----------------------
  1817. +# Add some code to the start of the generated configure script which
  1818. +# will find an echo command which doesn't interpret backslashes.
  1819. +m4_defun([_LT_PROG_ECHO_BACKSLASH],
  1820. +[_LT_SHELL_INIT([
  1821. +# Check that we are running under the correct shell.
  1822. +SHELL=${CONFIG_SHELL-/bin/sh}
  1823. -hard_links="nottested"
  1824. -if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1825. - # do not overwrite the value of need_locks provided by the user
  1826. - AC_MSG_CHECKING([if we can lock with hard links])
  1827. - hard_links=yes
  1828. - $rm conftest*
  1829. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1830. - touch conftest.a
  1831. - ln conftest.a conftest.b 2>&5 || hard_links=no
  1832. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1833. - AC_MSG_RESULT([$hard_links])
  1834. - if test "$hard_links" = no; then
  1835. - AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1836. - need_locks=warn
  1837. - fi
  1838. +case X$lt_ECHO in
  1839. +X*--fallback-echo)
  1840. + # Remove one level of quotation (which was required for Make).
  1841. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\[$]\\[$]0,'[$]0','`
  1842. + ;;
  1843. +esac
  1844. +
  1845. +ECHO=${lt_ECHO-echo}
  1846. +if test "X[$]1" = X--no-reexec; then
  1847. + # Discard the --no-reexec flag, and continue.
  1848. + shift
  1849. +elif test "X[$]1" = X--fallback-echo; then
  1850. + # Avoid inline document here, it may be left over
  1851. + :
  1852. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  1853. + # Yippee, $ECHO works!
  1854. + :
  1855. else
  1856. - need_locks=no
  1857. + # Restart under the correct shell.
  1858. + exec $SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1859. fi
  1860. -])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1861. -
  1862. -# AC_LIBTOOL_OBJDIR
  1863. -# -----------------
  1864. -AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1865. -[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1866. -[rm -f .libs 2>/dev/null
  1867. -mkdir .libs 2>/dev/null
  1868. -if test -d .libs; then
  1869. - lt_cv_objdir=.libs
  1870. -else
  1871. - # MS-DOS does not allow filenames that begin with a dot.
  1872. - lt_cv_objdir=_libs
  1873. +if test "X[$]1" = X--fallback-echo; then
  1874. + # used as fallback echo
  1875. + shift
  1876. + cat <<_LT_EOF
  1877. +[$]*
  1878. +_LT_EOF
  1879. + exit 0
  1880. fi
  1881. -rmdir .libs 2>/dev/null])
  1882. -objdir=$lt_cv_objdir
  1883. -])# AC_LIBTOOL_OBJDIR
  1884. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  1885. +# if CDPATH is set.
  1886. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  1887. -# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1888. -# ----------------------------------------------
  1889. -# Check hardcoding attributes.
  1890. -AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1891. -[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1892. -_LT_AC_TAGVAR(hardcode_action, $1)=
  1893. -if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1894. - test -n "$_LT_AC_TAGVAR(runpath_var, $1)" || \
  1895. - test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  1896. +if test -z "$lt_ECHO"; then
  1897. + if test "X${echo_test_string+set}" != Xset; then
  1898. + # find a string as large as possible, as long as the shell can cope with it
  1899. + for cmd in 'sed 50q "[$]0"' 'sed 20q "[$]0"' 'sed 10q "[$]0"' 'sed 2q "[$]0"' 'echo test'; do
  1900. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  1901. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  1902. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  1903. + then
  1904. + break
  1905. + fi
  1906. + done
  1907. + fi
  1908. - # We can hardcode non-existant directories.
  1909. - if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1910. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1911. - # have to relink, otherwise we might link with an installed library
  1912. - # when we should be linking with a yet-to-be-installed one
  1913. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1914. - test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  1915. - # Linking always hardcodes the temporary library directory.
  1916. - _LT_AC_TAGVAR(hardcode_action, $1)=relink
  1917. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1918. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1919. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1920. + :
  1921. else
  1922. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  1923. - _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  1924. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  1925. + # backslashes. This makes it impossible to quote backslashes using
  1926. + # echo "$something" | sed 's/\\/\\\\/g'
  1927. + #
  1928. + # So, first we look for a working echo in the user's PATH.
  1929. +
  1930. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1931. + for dir in $PATH /usr/ucb; do
  1932. + IFS="$lt_save_ifs"
  1933. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1934. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1935. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1936. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1937. + ECHO="$dir/echo"
  1938. + break
  1939. + fi
  1940. + done
  1941. + IFS="$lt_save_ifs"
  1942. +
  1943. + if test "X$ECHO" = Xecho; then
  1944. + # We didn't find a better echo, so look for alternatives.
  1945. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  1946. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  1947. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1948. + # This shell has a builtin print -r that does the trick.
  1949. + ECHO='print -r'
  1950. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  1951. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  1952. + # If we have ksh, try running configure again with it.
  1953. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  1954. + export ORIGINAL_CONFIG_SHELL
  1955. + CONFIG_SHELL=/bin/ksh
  1956. + export CONFIG_SHELL
  1957. + exec $CONFIG_SHELL "[$]0" --no-reexec ${1+"[$]@"}
  1958. + else
  1959. + # Try using printf.
  1960. + ECHO='printf %s\n'
  1961. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  1962. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  1963. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1964. + # Cool, printf works
  1965. + :
  1966. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1967. + test "X$echo_testing_string" = 'X\t' &&
  1968. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1969. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1970. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  1971. + export CONFIG_SHELL
  1972. + SHELL="$CONFIG_SHELL"
  1973. + export SHELL
  1974. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1975. + elif echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo '\t') 2>/dev/null` &&
  1976. + test "X$echo_testing_string" = 'X\t' &&
  1977. + echo_testing_string=`($CONFIG_SHELL "[$]0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  1978. + test "X$echo_testing_string" = "X$echo_test_string"; then
  1979. + ECHO="$CONFIG_SHELL [$]0 --fallback-echo"
  1980. + else
  1981. + # maybe with a smaller string...
  1982. + prev=:
  1983. +
  1984. + for cmd in 'echo test' 'sed 2q "[$]0"' 'sed 10q "[$]0"' 'sed 20q "[$]0"' 'sed 50q "[$]0"'; do
  1985. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  1986. + then
  1987. + break
  1988. + fi
  1989. + prev="$cmd"
  1990. + done
  1991. +
  1992. + if test "$prev" != 'sed 50q "[$]0"'; then
  1993. + echo_test_string=`eval $prev`
  1994. + export echo_test_string
  1995. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "[$]0" ${1+"[$]@"}
  1996. + else
  1997. + # Oops. We lost completely, so just stick with echo.
  1998. + ECHO=echo
  1999. + fi
  2000. + fi
  2001. + fi
  2002. + fi
  2003. fi
  2004. -else
  2005. - # We cannot hardcode anything, or else we can only hardcode existing
  2006. - # directories.
  2007. - _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2008. fi
  2009. -AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2010. -if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2011. - # Fast installation is not supported
  2012. - enable_fast_install=no
  2013. -elif test "$shlibpath_overrides_runpath" = yes ||
  2014. - test "$enable_shared" = no; then
  2015. - # Fast installation is not necessary
  2016. - enable_fast_install=needless
  2017. +# Copy echo and quote the copy suitably for passing to libtool from
  2018. +# the Makefile, instead of quoting the original, which is used later.
  2019. +lt_ECHO=$ECHO
  2020. +if test "X$lt_ECHO" = "X$CONFIG_SHELL [$]0 --fallback-echo"; then
  2021. + lt_ECHO="$CONFIG_SHELL \\\$\[$]0 --fallback-echo"
  2022. fi
  2023. -])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2024. +AC_SUBST(lt_ECHO)
  2025. +])
  2026. +_LT_DECL([], [SHELL], [1], [Shell to use when invoking shell scripts])
  2027. +_LT_DECL([], [ECHO], [1],
  2028. + [An echo program that does not interpret backslashes])
  2029. +])# _LT_PROG_ECHO_BACKSLASH
  2030. -# AC_LIBTOOL_SYS_LIB_STRIP
  2031. -# ------------------------
  2032. -AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2033. -[striplib=
  2034. -old_striplib=
  2035. -AC_MSG_CHECKING([whether stripping libraries is possible])
  2036. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2037. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2038. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2039. - AC_MSG_RESULT([yes])
  2040. -else
  2041. -# FIXME - insert some real tests, host_os isn't really good enough
  2042. - case $host_os in
  2043. - darwin*)
  2044. - if test -n "$STRIP" ; then
  2045. - striplib="$STRIP -x"
  2046. - AC_MSG_RESULT([yes])
  2047. - else
  2048. - AC_MSG_RESULT([no])
  2049. -fi
  2050. - ;;
  2051. - *)
  2052. - AC_MSG_RESULT([no])
  2053. - ;;
  2054. - esac
  2055. -fi
  2056. -])# AC_LIBTOOL_SYS_LIB_STRIP
  2057. +# _LT_ENABLE_LOCK
  2058. +# ---------------
  2059. +m4_defun([_LT_ENABLE_LOCK],
  2060. +[AC_ARG_ENABLE([libtool-lock],
  2061. + [AS_HELP_STRING([--disable-libtool-lock],
  2062. + [avoid locking (might break parallel builds)])])
  2063. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  2064. -# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2065. -# -----------------------------
  2066. -# PORTME Fill in your ld.so characteristics
  2067. -AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2068. -[AC_MSG_CHECKING([dynamic linker characteristics])
  2069. -library_names_spec=
  2070. -libname_spec='lib$name'
  2071. -soname_spec=
  2072. -shrext_cmds=".so"
  2073. -postinstall_cmds=
  2074. -postuninstall_cmds=
  2075. -finish_cmds=
  2076. -finish_eval=
  2077. -shlibpath_var=
  2078. -shlibpath_overrides_runpath=unknown
  2079. -version_type=none
  2080. -dynamic_linker="$host_os ld.so"
  2081. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2082. -if test "$GCC" = yes; then
  2083. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2084. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2085. - # if the path contains ";" then we assume it to be the separator
  2086. - # otherwise default to the standard path separator (i.e. ":") - it is
  2087. - # assumed that no part of a normal pathname contains ";" but that should
  2088. - # okay in the real world where ";" in dirpaths is itself problematic.
  2089. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2090. - else
  2091. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2092. +# Some flags need to be propagated to the compiler or linker for good
  2093. +# libtool support.
  2094. +case $host in
  2095. +ia64-*-hpux*)
  2096. + # Find out which ABI we are using.
  2097. + echo 'int i;' > conftest.$ac_ext
  2098. + if AC_TRY_EVAL(ac_compile); then
  2099. + case `/usr/bin/file conftest.$ac_objext` in
  2100. + *ELF-32*)
  2101. + HPUX_IA64_MODE="32"
  2102. + ;;
  2103. + *ELF-64*)
  2104. + HPUX_IA64_MODE="64"
  2105. + ;;
  2106. + esac
  2107. fi
  2108. -else
  2109. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2110. -fi
  2111. -need_lib_prefix=unknown
  2112. -hardcode_into_libs=no
  2113. -
  2114. -# when you set need_version to no, make sure it does not cause -set_version
  2115. -# flags to be left without arguments
  2116. -need_version=unknown
  2117. -
  2118. -case $host_os in
  2119. -aix3*)
  2120. - version_type=linux
  2121. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2122. - shlibpath_var=LIBPATH
  2123. -
  2124. - # AIX 3 has no versioning support, so we append a major version to the name.
  2125. - soname_spec='${libname}${release}${shared_ext}$major'
  2126. + rm -rf conftest*
  2127. ;;
  2128. -
  2129. -aix4* | aix5*)
  2130. - version_type=linux
  2131. - need_lib_prefix=no
  2132. - need_version=no
  2133. - hardcode_into_libs=yes
  2134. - if test "$host_cpu" = ia64; then
  2135. - # AIX 5 supports IA64
  2136. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2137. - shlibpath_var=LD_LIBRARY_PATH
  2138. - else
  2139. - # With GCC up to 2.95.x, collect2 would create an import file
  2140. - # for dependence libraries. The import file would start with
  2141. - # the line `#! .'. This would cause the generated library to
  2142. - # depend on `.', always an invalid library. This was fixed in
  2143. - # development snapshots of GCC prior to 3.0.
  2144. - case $host_os in
  2145. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  2146. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2147. - echo ' yes '
  2148. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2149. - :
  2150. - else
  2151. - can_build_shared=no
  2152. - fi
  2153. - ;;
  2154. - esac
  2155. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2156. - # soname into executable. Probably we can add versioning support to
  2157. - # collect2, so additional links can be useful in future.
  2158. - if test "$aix_use_runtimelinking" = yes; then
  2159. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2160. - # instead of lib<name>.a to let people know that these are not
  2161. - # typical AIX shared libraries.
  2162. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2163. +*-*-irix6*)
  2164. + # Find out which ABI we are using.
  2165. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2166. + if AC_TRY_EVAL(ac_compile); then
  2167. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2168. + case `/usr/bin/file conftest.$ac_objext` in
  2169. + *32-bit*)
  2170. + LD="${LD-ld} -melf32bsmip"
  2171. + ;;
  2172. + *N32*)
  2173. + LD="${LD-ld} -melf32bmipn32"
  2174. + ;;
  2175. + *64-bit*)
  2176. + LD="${LD-ld} -melf64bmip"
  2177. + ;;
  2178. + esac
  2179. else
  2180. - # We preserve .a as extension for shared libraries through AIX4.2
  2181. - # and later when we are not doing run time linking.
  2182. - library_names_spec='${libname}${release}.a $libname.a'
  2183. - soname_spec='${libname}${release}${shared_ext}$major'
  2184. + case `/usr/bin/file conftest.$ac_objext` in
  2185. + *32-bit*)
  2186. + LD="${LD-ld} -32"
  2187. + ;;
  2188. + *N32*)
  2189. + LD="${LD-ld} -n32"
  2190. + ;;
  2191. + *64-bit*)
  2192. + LD="${LD-ld} -64"
  2193. + ;;
  2194. + esac
  2195. fi
  2196. - shlibpath_var=LIBPATH
  2197. fi
  2198. + rm -rf conftest*
  2199. ;;
  2200. -amigaos*)
  2201. - library_names_spec='$libname.ixlibrary $libname.a'
  2202. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2203. - 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'
  2204. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  2205. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  2206. + # Find out which ABI we are using.
  2207. + echo 'int i;' > conftest.$ac_ext
  2208. + if AC_TRY_EVAL(ac_compile); then
  2209. + case `/usr/bin/file conftest.o` in
  2210. + *32-bit*)
  2211. + case $host in
  2212. + x86_64-*kfreebsd*-gnu)
  2213. + LD="${LD-ld} -m elf_i386_fbsd"
  2214. + ;;
  2215. + x86_64-*linux*)
  2216. + LD="${LD-ld} -m elf_i386"
  2217. + ;;
  2218. + ppc64-*linux*|powerpc64-*linux*)
  2219. + LD="${LD-ld} -m elf32ppclinux"
  2220. + ;;
  2221. + s390x-*linux*)
  2222. + LD="${LD-ld} -m elf_s390"
  2223. + ;;
  2224. + sparc64-*linux*)
  2225. + LD="${LD-ld} -m elf32_sparc"
  2226. + ;;
  2227. + esac
  2228. + ;;
  2229. + *64-bit*)
  2230. + case $host in
  2231. + x86_64-*kfreebsd*-gnu)
  2232. + LD="${LD-ld} -m elf_x86_64_fbsd"
  2233. + ;;
  2234. + x86_64-*linux*)
  2235. + LD="${LD-ld} -m elf_x86_64"
  2236. + ;;
  2237. + ppc*-*linux*|powerpc*-*linux*)
  2238. + LD="${LD-ld} -m elf64ppc"
  2239. + ;;
  2240. + s390*-*linux*|s390*-*tpf*)
  2241. + LD="${LD-ld} -m elf64_s390"
  2242. + ;;
  2243. + sparc*-*linux*)
  2244. + LD="${LD-ld} -m elf64_sparc"
  2245. + ;;
  2246. + esac
  2247. + ;;
  2248. + esac
  2249. + fi
  2250. + rm -rf conftest*
  2251. ;;
  2252. -beos*)
  2253. - library_names_spec='${libname}${shared_ext}'
  2254. - dynamic_linker="$host_os ld.so"
  2255. - shlibpath_var=LIBRARY_PATH
  2256. +*-*-sco3.2v5*)
  2257. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  2258. + SAVE_CFLAGS="$CFLAGS"
  2259. + CFLAGS="$CFLAGS -belf"
  2260. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  2261. + [AC_LANG_PUSH(C)
  2262. + AC_LINK_IFELSE([AC_LANG_PROGRAM([[]],[[]])],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  2263. + AC_LANG_POP])
  2264. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  2265. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  2266. + CFLAGS="$SAVE_CFLAGS"
  2267. + fi
  2268. ;;
  2269. -
  2270. -bsdi[[45]]*)
  2271. - version_type=linux
  2272. - need_version=no
  2273. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2274. - soname_spec='${libname}${release}${shared_ext}$major'
  2275. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2276. - shlibpath_var=LD_LIBRARY_PATH
  2277. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2278. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2279. - # the default ld.so.conf also contains /usr/contrib/lib and
  2280. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2281. - # libtool to hard-code these into programs
  2282. +sparc*-*solaris*)
  2283. + # Find out which ABI we are using.
  2284. + echo 'int i;' > conftest.$ac_ext
  2285. + if AC_TRY_EVAL(ac_compile); then
  2286. + case `/usr/bin/file conftest.o` in
  2287. + *64-bit*)
  2288. + case $lt_cv_prog_gnu_ld in
  2289. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  2290. + *)
  2291. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  2292. + LD="${LD-ld} -64"
  2293. + fi
  2294. + ;;
  2295. + esac
  2296. + ;;
  2297. + esac
  2298. + fi
  2299. + rm -rf conftest*
  2300. ;;
  2301. +esac
  2302. -cygwin* | mingw* | pw32*)
  2303. - version_type=windows
  2304. - shrext_cmds=".dll"
  2305. - need_version=no
  2306. - need_lib_prefix=no
  2307. +need_locks="$enable_libtool_lock"
  2308. +])# _LT_ENABLE_LOCK
  2309. - case $GCC,$host_os in
  2310. - yes,cygwin* | yes,mingw* | yes,pw32*)
  2311. - library_names_spec='$libname.dll.a'
  2312. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2313. - postinstall_cmds='base_file=`basename \${file}`~
  2314. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2315. - dldir=$destdir/`dirname \$dlpath`~
  2316. - test -d \$dldir || mkdir -p \$dldir~
  2317. - $install_prog $dir/$dlname \$dldir/$dlname'
  2318. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2319. - dlpath=$dir/\$dldll~
  2320. - $rm \$dlpath'
  2321. - shlibpath_overrides_runpath=yes
  2322. - case $host_os in
  2323. - cygwin*)
  2324. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2325. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2326. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2327. - ;;
  2328. - mingw*)
  2329. - # MinGW DLLs use traditional 'lib' prefix
  2330. - soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2331. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2332. - if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2333. - # It is most probably a Windows format PATH printed by
  2334. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2335. - # path with ; separators, and with drive letters. We can handle the
  2336. - # drive letters (cygwin fileutils understands them), so leave them,
  2337. - # especially as we might pass files found there to a mingw objdump,
  2338. - # which wouldn't understand a cygwinified path. Ahh.
  2339. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2340. - else
  2341. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2342. - fi
  2343. - ;;
  2344. - pw32*)
  2345. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  2346. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2347. - ;;
  2348. - esac
  2349. - ;;
  2350. +# _LT_CMD_OLD_ARCHIVE
  2351. +# -------------------
  2352. +m4_defun([_LT_CMD_OLD_ARCHIVE],
  2353. +[AC_CHECK_TOOL(AR, ar, false)
  2354. +test -z "$AR" && AR=ar
  2355. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  2356. +_LT_DECL([], [AR], [1], [The archiver])
  2357. +_LT_DECL([], [AR_FLAGS], [1])
  2358. +
  2359. +AC_CHECK_TOOL(STRIP, strip, :)
  2360. +test -z "$STRIP" && STRIP=:
  2361. +_LT_DECL([], [STRIP], [1], [A symbol stripping program])
  2362. +
  2363. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  2364. +test -z "$RANLIB" && RANLIB=:
  2365. +_LT_DECL([], [RANLIB], [1],
  2366. + [Commands used to install an old-style archive])
  2367. +
  2368. +# Determine commands to create old-style static archives.
  2369. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  2370. +old_postinstall_cmds='chmod 644 $oldlib'
  2371. +old_postuninstall_cmds=
  2372. +if test -n "$RANLIB"; then
  2373. + case $host_os in
  2374. + openbsd*)
  2375. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  2376. + ;;
  2377. *)
  2378. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2379. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  2380. ;;
  2381. esac
  2382. - dynamic_linker='Win32 ld.exe'
  2383. - # FIXME: first we should search . and the directory the executable is in
  2384. - shlibpath_var=PATH
  2385. - ;;
  2386. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2387. +fi
  2388. +_LT_DECL([], [old_postinstall_cmds], [2])
  2389. +_LT_DECL([], [old_postuninstall_cmds], [2])
  2390. +_LT_TAGDECL([], [old_archive_cmds], [2],
  2391. + [Commands used to build an old-style archive])
  2392. +])# _LT_CMD_OLD_ARCHIVE
  2393. -darwin* | rhapsody*)
  2394. - dynamic_linker="$host_os dyld"
  2395. - version_type=darwin
  2396. - need_lib_prefix=no
  2397. - need_version=no
  2398. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2399. - soname_spec='${libname}${release}${major}$shared_ext'
  2400. - shlibpath_overrides_runpath=yes
  2401. - shlibpath_var=DYLD_LIBRARY_PATH
  2402. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  2403. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2404. - if test "$GCC" = yes; then
  2405. - 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"`
  2406. - else
  2407. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2408. - fi
  2409. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2410. - ;;
  2411. -dgux*)
  2412. - version_type=linux
  2413. - need_lib_prefix=no
  2414. - need_version=no
  2415. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2416. - soname_spec='${libname}${release}${shared_ext}$major'
  2417. - shlibpath_var=LD_LIBRARY_PATH
  2418. - ;;
  2419. +# _LT_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2420. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  2421. +# ----------------------------------------------------------------
  2422. +# Check whether the given compiler option works
  2423. +AC_DEFUN([_LT_COMPILER_OPTION],
  2424. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2425. +m4_require([_LT_DECL_SED])dnl
  2426. +AC_CACHE_CHECK([$1], [$2],
  2427. + [$2=no
  2428. + m4_if([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  2429. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  2430. + lt_compiler_flag="$3"
  2431. + # Insert the option either (1) after the last *FLAGS variable, or
  2432. + # (2) before a word containing "conftest.", or (3) at the end.
  2433. + # Note that $ac_compile itself does not contain backslashes and begins
  2434. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  2435. + # The option is referenced via a variable to avoid confusing sed.
  2436. + lt_compile=`echo "$ac_compile" | $SED \
  2437. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  2438. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  2439. + -e 's:$: $lt_compiler_flag:'`
  2440. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  2441. + (eval "$lt_compile" 2>conftest.err)
  2442. + ac_status=$?
  2443. + cat conftest.err >&AS_MESSAGE_LOG_FD
  2444. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  2445. + if (exit $ac_status) && test -s "$ac_outfile"; then
  2446. + # The compiler can only warn and ignore the option if not recognized
  2447. + # So say no if there are warnings other than the usual output.
  2448. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  2449. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2450. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  2451. + $2=yes
  2452. + fi
  2453. + fi
  2454. + $RM conftest*
  2455. +])
  2456. -freebsd1*)
  2457. - dynamic_linker=no
  2458. - ;;
  2459. +if test x"[$]$2" = xyes; then
  2460. + m4_if([$5], , :, [$5])
  2461. +else
  2462. + m4_if([$6], , :, [$6])
  2463. +fi
  2464. +])# _LT_COMPILER_OPTION
  2465. -kfreebsd*-gnu)
  2466. - version_type=linux
  2467. - need_lib_prefix=no
  2468. - need_version=no
  2469. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2470. - soname_spec='${libname}${release}${shared_ext}$major'
  2471. - shlibpath_var=LD_LIBRARY_PATH
  2472. - shlibpath_overrides_runpath=no
  2473. - hardcode_into_libs=yes
  2474. - dynamic_linker='GNU ld.so'
  2475. - ;;
  2476. +# Old name:
  2477. +AU_ALIAS([AC_LIBTOOL_COMPILER_OPTION], [_LT_COMPILER_OPTION])
  2478. +dnl aclocal-1.4 backwards compatibility:
  2479. +dnl AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION], [])
  2480. +
  2481. +
  2482. +# _LT_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  2483. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  2484. +# ----------------------------------------------------
  2485. +# Check whether the given linker option works
  2486. +AC_DEFUN([_LT_LINKER_OPTION],
  2487. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  2488. +m4_require([_LT_DECL_SED])dnl
  2489. +AC_CACHE_CHECK([$1], [$2],
  2490. + [$2=no
  2491. + save_LDFLAGS="$LDFLAGS"
  2492. + LDFLAGS="$LDFLAGS $3"
  2493. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  2494. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  2495. + # The linker can only warn and ignore the option if not recognized
  2496. + # So say no if there are warnings
  2497. + if test -s conftest.err; then
  2498. + # Append any errors to the config.log.
  2499. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  2500. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  2501. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  2502. + if diff conftest.exp conftest.er2 >/dev/null; then
  2503. + $2=yes
  2504. + fi
  2505. + else
  2506. + $2=yes
  2507. + fi
  2508. + fi
  2509. + $RM -r conftest*
  2510. + LDFLAGS="$save_LDFLAGS"
  2511. +])
  2512. -freebsd* | dragonfly*)
  2513. - # DragonFly does not have aout. When/if they implement a new
  2514. - # versioning mechanism, adjust this.
  2515. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  2516. - version_type=freebsd-$objformat
  2517. - case $version_type in
  2518. - freebsd-elf*)
  2519. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2520. - need_version=no
  2521. - need_lib_prefix=no
  2522. - ;;
  2523. - freebsd-*)
  2524. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2525. - need_version=yes
  2526. - ;;
  2527. - esac
  2528. - shlibpath_var=LD_LIBRARY_PATH
  2529. - case $host_os in
  2530. - freebsd2*)
  2531. - shlibpath_overrides_runpath=yes
  2532. +if test x"[$]$2" = xyes; then
  2533. + m4_if([$4], , :, [$4])
  2534. +else
  2535. + m4_if([$5], , :, [$5])
  2536. +fi
  2537. +])# _LT_LINKER_OPTION
  2538. +
  2539. +# Old name:
  2540. +AU_ALIAS([AC_LIBTOOL_LINKER_OPTION], [_LT_LINKER_OPTION])
  2541. +dnl aclocal-1.4 backwards compatibility:
  2542. +dnl AC_DEFUN([AC_LIBTOOL_LINKER_OPTION], [])
  2543. +
  2544. +
  2545. +# LT_CMD_MAX_LEN
  2546. +#---------------
  2547. +AC_DEFUN([LT_CMD_MAX_LEN],
  2548. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  2549. +# find the maximum length of command line arguments
  2550. +AC_MSG_CHECKING([the maximum length of command line arguments])
  2551. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  2552. + i=0
  2553. + teststring="ABCD"
  2554. +
  2555. + case $build_os in
  2556. + msdosdjgpp*)
  2557. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  2558. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  2559. + # during glob expansion). Even if it were fixed, the result of this
  2560. + # check would be larger than it should be.
  2561. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  2562. ;;
  2563. - freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  2564. - shlibpath_overrides_runpath=yes
  2565. - hardcode_into_libs=yes
  2566. +
  2567. + gnu*)
  2568. + # Under GNU Hurd, this test is not required because there is
  2569. + # no limit to the length of command line arguments.
  2570. + # Libtool will interpret -1 as no limit whatsoever
  2571. + lt_cv_sys_max_cmd_len=-1;
  2572. ;;
  2573. - *) # from 3.2 on
  2574. - shlibpath_overrides_runpath=no
  2575. - hardcode_into_libs=yes
  2576. +
  2577. + cygwin* | mingw* | cegcc*)
  2578. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  2579. + # about 5 minutes as the teststring grows exponentially.
  2580. + # Worse, since 9x/ME are not pre-emptively multitasking,
  2581. + # you end up with a "frozen" computer, even though with patience
  2582. + # the test eventually succeeds (with a max line length of 256k).
  2583. + # Instead, let's just punt: use the minimum linelength reported by
  2584. + # all of the supported platforms: 8192 (on NT/2K/XP).
  2585. + lt_cv_sys_max_cmd_len=8192;
  2586. ;;
  2587. - esac
  2588. - ;;
  2589. -gnu*)
  2590. - version_type=linux
  2591. - need_lib_prefix=no
  2592. - need_version=no
  2593. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2594. - soname_spec='${libname}${release}${shared_ext}$major'
  2595. - shlibpath_var=LD_LIBRARY_PATH
  2596. - hardcode_into_libs=yes
  2597. - ;;
  2598. + amigaos*)
  2599. + # On AmigaOS with pdksh, this test takes hours, literally.
  2600. + # So we just punt and use a minimum line length of 8192.
  2601. + lt_cv_sys_max_cmd_len=8192;
  2602. + ;;
  2603. -hpux9* | hpux10* | hpux11*)
  2604. - # Give a soname corresponding to the major version so that dld.sl refuses to
  2605. - # link against other versions.
  2606. - version_type=sunos
  2607. - need_lib_prefix=no
  2608. - need_version=no
  2609. - case "$host_cpu" in
  2610. - ia64*)
  2611. - shrext_cmds='.so'
  2612. - hardcode_into_libs=yes
  2613. - dynamic_linker="$host_os dld.so"
  2614. - shlibpath_var=LD_LIBRARY_PATH
  2615. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2616. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2617. - soname_spec='${libname}${release}${shared_ext}$major'
  2618. - if test "X$HPUX_IA64_MODE" = X32; then
  2619. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2620. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  2621. + # This has been around since 386BSD, at least. Likely further.
  2622. + if test -x /sbin/sysctl; then
  2623. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  2624. + elif test -x /usr/sbin/sysctl; then
  2625. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  2626. else
  2627. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2628. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  2629. fi
  2630. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2631. + # And add a safety zone
  2632. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2633. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2634. ;;
  2635. - hppa*64*)
  2636. - shrext_cmds='.sl'
  2637. - hardcode_into_libs=yes
  2638. - dynamic_linker="$host_os dld.sl"
  2639. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2640. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2641. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2642. - soname_spec='${libname}${release}${shared_ext}$major'
  2643. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2644. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2645. - ;;
  2646. - *)
  2647. - shrext_cmds='.sl'
  2648. - dynamic_linker="$host_os dld.sl"
  2649. - shlibpath_var=SHLIB_PATH
  2650. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2651. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2652. - soname_spec='${libname}${release}${shared_ext}$major'
  2653. +
  2654. + interix*)
  2655. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  2656. + lt_cv_sys_max_cmd_len=196608
  2657. ;;
  2658. - esac
  2659. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2660. - postinstall_cmds='chmod 555 $lib'
  2661. - ;;
  2662. -irix5* | irix6* | nonstopux*)
  2663. - case $host_os in
  2664. - nonstopux*) version_type=nonstopux ;;
  2665. - *)
  2666. - if test "$lt_cv_prog_gnu_ld" = yes; then
  2667. - version_type=linux
  2668. - else
  2669. - version_type=irix
  2670. - fi ;;
  2671. - esac
  2672. - need_lib_prefix=no
  2673. - need_version=no
  2674. - soname_spec='${libname}${release}${shared_ext}$major'
  2675. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2676. - case $host_os in
  2677. - irix5* | nonstopux*)
  2678. - libsuff= shlibsuff=
  2679. + osf*)
  2680. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  2681. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  2682. + # nice to cause kernel panics so lets avoid the loop below.
  2683. + # First set a reasonable default.
  2684. + lt_cv_sys_max_cmd_len=16384
  2685. + #
  2686. + if test -x /sbin/sysconfig; then
  2687. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  2688. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  2689. + esac
  2690. + fi
  2691. + ;;
  2692. + sco3.2v5*)
  2693. + lt_cv_sys_max_cmd_len=102400
  2694. + ;;
  2695. + sysv5* | sco5v6* | sysv4.2uw2*)
  2696. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  2697. + if test -n "$kargmax"; then
  2698. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[[ ]]//'`
  2699. + else
  2700. + lt_cv_sys_max_cmd_len=32768
  2701. + fi
  2702. ;;
  2703. *)
  2704. - case $LD in # libtool.m4 will add one of these switches to LD
  2705. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2706. - libsuff= shlibsuff= libmagic=32-bit;;
  2707. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2708. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  2709. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2710. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2711. - *) libsuff= shlibsuff= libmagic=never-match;;
  2712. - esac
  2713. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  2714. + if test -n "$lt_cv_sys_max_cmd_len"; then
  2715. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  2716. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  2717. + else
  2718. + # Make teststring a little bigger before we do anything with it.
  2719. + # a 1K string should be a reasonable start.
  2720. + for i in 1 2 3 4 5 6 7 8 ; do
  2721. + teststring=$teststring$teststring
  2722. + done
  2723. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  2724. + # If test is not a shell built-in, we'll probably end up computing a
  2725. + # maximum length that is only half of the actual maximum length, but
  2726. + # we can't tell.
  2727. + while { test "X"`$SHELL [$]0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  2728. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  2729. + test $i != 17 # 1/2 MB should be enough
  2730. + do
  2731. + i=`expr $i + 1`
  2732. + teststring=$teststring$teststring
  2733. + done
  2734. + # Only check the string length outside the loop.
  2735. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  2736. + teststring=
  2737. + # Add a significant safety factor because C++ compilers can tack on
  2738. + # massive amounts of additional arguments before passing them to the
  2739. + # linker. It appears as though 1/2 is a usable value.
  2740. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  2741. + fi
  2742. ;;
  2743. esac
  2744. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2745. - shlibpath_overrides_runpath=no
  2746. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2747. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2748. - hardcode_into_libs=yes
  2749. - ;;
  2750. +])
  2751. +if test -n $lt_cv_sys_max_cmd_len ; then
  2752. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  2753. +else
  2754. + AC_MSG_RESULT(none)
  2755. +fi
  2756. +max_cmd_len=$lt_cv_sys_max_cmd_len
  2757. +_LT_DECL([], [max_cmd_len], [0],
  2758. + [What is the maximum length of a command?])
  2759. +])# LT_CMD_MAX_LEN
  2760. -# No shared lib support for Linux oldld, aout, or coff.
  2761. -linux*oldld* | linux*aout* | linux*coff*)
  2762. - dynamic_linker=no
  2763. - ;;
  2764. +# Old name:
  2765. +AU_ALIAS([AC_LIBTOOL_SYS_MAX_CMD_LEN], [LT_CMD_MAX_LEN])
  2766. +dnl aclocal-1.4 backwards compatibility:
  2767. +dnl AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN], [])
  2768. -# This must be Linux ELF.
  2769. -linux*)
  2770. - version_type=linux
  2771. - need_lib_prefix=no
  2772. - need_version=no
  2773. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2774. - soname_spec='${libname}${release}${shared_ext}$major'
  2775. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2776. - shlibpath_var=LD_LIBRARY_PATH
  2777. - shlibpath_overrides_runpath=no
  2778. - # This implies no fast_install, which is unacceptable.
  2779. - # Some rework will be needed to allow for fast_install
  2780. - # before this can be enabled.
  2781. - hardcode_into_libs=yes
  2782. - # find out which ABI we are using
  2783. - libsuff=
  2784. - case "$host_cpu" in
  2785. - x86_64*|s390x*|powerpc64*)
  2786. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  2787. - if AC_TRY_EVAL(ac_compile); then
  2788. - case `/usr/bin/file conftest.$ac_objext` in
  2789. - *64-bit*)
  2790. - libsuff=64
  2791. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  2792. - ;;
  2793. - esac
  2794. - fi
  2795. - rm -rf conftest*
  2796. - ;;
  2797. - esac
  2798. -
  2799. - # Append ld.so.conf contents to the search path
  2800. - if test -f /etc/ld.so.conf; then
  2801. - 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  2802. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  2803. - fi
  2804. -
  2805. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  2806. - # powerpc, because MkLinux only supported shared libraries with the
  2807. - # GNU dynamic linker. Since this was broken with cross compilers,
  2808. - # most powerpc-linux boxes support dynamic linking these days and
  2809. - # people can always --disable-shared, the test was removed, and we
  2810. - # assume the GNU/Linux dynamic linker is in use.
  2811. - dynamic_linker='GNU/Linux ld.so'
  2812. - ;;
  2813. -
  2814. -knetbsd*-gnu)
  2815. - version_type=linux
  2816. - need_lib_prefix=no
  2817. - need_version=no
  2818. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2819. - soname_spec='${libname}${release}${shared_ext}$major'
  2820. - shlibpath_var=LD_LIBRARY_PATH
  2821. - shlibpath_overrides_runpath=no
  2822. - hardcode_into_libs=yes
  2823. - dynamic_linker='GNU ld.so'
  2824. - ;;
  2825. +# _LT_HEADER_DLFCN
  2826. +# ----------------
  2827. +m4_defun([_LT_HEADER_DLFCN],
  2828. +[AC_CHECK_HEADERS([dlfcn.h], [], [], [AC_INCLUDES_DEFAULT])dnl
  2829. +])# _LT_HEADER_DLFCN
  2830. -netbsd*)
  2831. - version_type=sunos
  2832. - need_lib_prefix=no
  2833. - need_version=no
  2834. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2835. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2836. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2837. - dynamic_linker='NetBSD (a.out) ld.so'
  2838. - else
  2839. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2840. - soname_spec='${libname}${release}${shared_ext}$major'
  2841. - dynamic_linker='NetBSD ld.elf_so'
  2842. - fi
  2843. - shlibpath_var=LD_LIBRARY_PATH
  2844. - shlibpath_overrides_runpath=yes
  2845. - hardcode_into_libs=yes
  2846. - ;;
  2847. -newsos6)
  2848. - version_type=linux
  2849. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2850. - shlibpath_var=LD_LIBRARY_PATH
  2851. - shlibpath_overrides_runpath=yes
  2852. - ;;
  2853. +# _LT_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  2854. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  2855. +# ----------------------------------------------------------------
  2856. +m4_defun([_LT_TRY_DLOPEN_SELF],
  2857. +[m4_require([_LT_HEADER_DLFCN])dnl
  2858. +if test "$cross_compiling" = yes; then :
  2859. + [$4]
  2860. +else
  2861. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  2862. + lt_status=$lt_dlunknown
  2863. + cat > conftest.$ac_ext <<_LT_EOF
  2864. +[#line __oline__ "configure"
  2865. +#include "confdefs.h"
  2866. -nto-qnx*)
  2867. - version_type=linux
  2868. - need_lib_prefix=no
  2869. - need_version=no
  2870. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2871. - soname_spec='${libname}${release}${shared_ext}$major'
  2872. - shlibpath_var=LD_LIBRARY_PATH
  2873. - shlibpath_overrides_runpath=yes
  2874. - ;;
  2875. +#if HAVE_DLFCN_H
  2876. +#include <dlfcn.h>
  2877. +#endif
  2878. -openbsd*)
  2879. - version_type=sunos
  2880. - need_lib_prefix=no
  2881. - need_version=no
  2882. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2883. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2884. - shlibpath_var=LD_LIBRARY_PATH
  2885. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2886. - case $host_os in
  2887. - openbsd2.[[89]] | openbsd2.[[89]].*)
  2888. - shlibpath_overrides_runpath=no
  2889. - ;;
  2890. - *)
  2891. - shlibpath_overrides_runpath=yes
  2892. - ;;
  2893. - esac
  2894. - else
  2895. - shlibpath_overrides_runpath=yes
  2896. - fi
  2897. - ;;
  2898. +#include <stdio.h>
  2899. -os2*)
  2900. - libname_spec='$name'
  2901. - shrext_cmds=".dll"
  2902. - need_lib_prefix=no
  2903. - library_names_spec='$libname${shared_ext} $libname.a'
  2904. - dynamic_linker='OS/2 ld.exe'
  2905. - shlibpath_var=LIBPATH
  2906. - ;;
  2907. +#ifdef RTLD_GLOBAL
  2908. +# define LT_DLGLOBAL RTLD_GLOBAL
  2909. +#else
  2910. +# ifdef DL_GLOBAL
  2911. +# define LT_DLGLOBAL DL_GLOBAL
  2912. +# else
  2913. +# define LT_DLGLOBAL 0
  2914. +# endif
  2915. +#endif
  2916. -osf3* | osf4* | osf5*)
  2917. - version_type=osf
  2918. - need_lib_prefix=no
  2919. - need_version=no
  2920. - soname_spec='${libname}${release}${shared_ext}$major'
  2921. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2922. - shlibpath_var=LD_LIBRARY_PATH
  2923. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  2924. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  2925. - ;;
  2926. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  2927. + find out it does not work in some platform. */
  2928. +#ifndef LT_DLLAZY_OR_NOW
  2929. +# ifdef RTLD_LAZY
  2930. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  2931. +# else
  2932. +# ifdef DL_LAZY
  2933. +# define LT_DLLAZY_OR_NOW DL_LAZY
  2934. +# else
  2935. +# ifdef RTLD_NOW
  2936. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  2937. +# else
  2938. +# ifdef DL_NOW
  2939. +# define LT_DLLAZY_OR_NOW DL_NOW
  2940. +# else
  2941. +# define LT_DLLAZY_OR_NOW 0
  2942. +# endif
  2943. +# endif
  2944. +# endif
  2945. +# endif
  2946. +#endif
  2947. -sco3.2v5*)
  2948. - version_type=osf
  2949. - soname_spec='${libname}${release}${shared_ext}$major'
  2950. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2951. - shlibpath_var=LD_LIBRARY_PATH
  2952. - ;;
  2953. +void fnord() { int i=42;}
  2954. +int main ()
  2955. +{
  2956. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  2957. + int status = $lt_dlunknown;
  2958. -solaris*)
  2959. - version_type=linux
  2960. - need_lib_prefix=no
  2961. - need_version=no
  2962. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2963. - soname_spec='${libname}${release}${shared_ext}$major'
  2964. - shlibpath_var=LD_LIBRARY_PATH
  2965. - shlibpath_overrides_runpath=yes
  2966. - hardcode_into_libs=yes
  2967. - # ldd complains unless libraries are executable
  2968. - postinstall_cmds='chmod +x $lib'
  2969. - ;;
  2970. + if (self)
  2971. + {
  2972. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  2973. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  2974. + /* dlclose (self); */
  2975. + }
  2976. + else
  2977. + puts (dlerror ());
  2978. -sunos4*)
  2979. - version_type=sunos
  2980. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2981. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  2982. - shlibpath_var=LD_LIBRARY_PATH
  2983. - shlibpath_overrides_runpath=yes
  2984. - if test "$with_gnu_ld" = yes; then
  2985. - need_lib_prefix=no
  2986. + return status;
  2987. +}]
  2988. +_LT_EOF
  2989. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext} 2>/dev/null; then
  2990. + (./conftest; exit; ) >&AS_MESSAGE_LOG_FD 2>/dev/null
  2991. + lt_status=$?
  2992. + case x$lt_status in
  2993. + x$lt_dlno_uscore) $1 ;;
  2994. + x$lt_dlneed_uscore) $2 ;;
  2995. + x$lt_dlunknown|x*) $3 ;;
  2996. + esac
  2997. + else :
  2998. + # compilation failed
  2999. + $3
  3000. fi
  3001. - need_version=yes
  3002. - ;;
  3003. +fi
  3004. +rm -fr conftest*
  3005. +])# _LT_TRY_DLOPEN_SELF
  3006. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3007. - version_type=linux
  3008. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3009. - soname_spec='${libname}${release}${shared_ext}$major'
  3010. - shlibpath_var=LD_LIBRARY_PATH
  3011. - case $host_vendor in
  3012. - sni)
  3013. - shlibpath_overrides_runpath=no
  3014. - need_lib_prefix=no
  3015. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  3016. - runpath_var=LD_RUN_PATH
  3017. - ;;
  3018. - siemens)
  3019. - need_lib_prefix=no
  3020. - ;;
  3021. - motorola)
  3022. - need_lib_prefix=no
  3023. - need_version=no
  3024. - shlibpath_overrides_runpath=no
  3025. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3026. - ;;
  3027. - esac
  3028. - ;;
  3029. -sysv4*MP*)
  3030. - if test -d /usr/nec ;then
  3031. - version_type=linux
  3032. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3033. - soname_spec='$libname${shared_ext}.$major'
  3034. - shlibpath_var=LD_LIBRARY_PATH
  3035. - fi
  3036. - ;;
  3037. +# LT_SYS_DLOPEN_SELF
  3038. +# ------------------
  3039. +AC_DEFUN([LT_SYS_DLOPEN_SELF],
  3040. +[m4_require([_LT_HEADER_DLFCN])dnl
  3041. +if test "x$enable_dlopen" != xyes; then
  3042. + enable_dlopen=unknown
  3043. + enable_dlopen_self=unknown
  3044. + enable_dlopen_self_static=unknown
  3045. +else
  3046. + lt_cv_dlopen=no
  3047. + lt_cv_dlopen_libs=
  3048. -uts4*)
  3049. - version_type=linux
  3050. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3051. - soname_spec='${libname}${release}${shared_ext}$major'
  3052. - shlibpath_var=LD_LIBRARY_PATH
  3053. - ;;
  3054. + case $host_os in
  3055. + beos*)
  3056. + lt_cv_dlopen="load_add_on"
  3057. + lt_cv_dlopen_libs=
  3058. + lt_cv_dlopen_self=yes
  3059. + ;;
  3060. -*)
  3061. - dynamic_linker=no
  3062. - ;;
  3063. -esac
  3064. -AC_MSG_RESULT([$dynamic_linker])
  3065. -test "$dynamic_linker" = no && can_build_shared=no
  3066. -])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3067. + mingw* | pw32* | cegcc*)
  3068. + lt_cv_dlopen="LoadLibrary"
  3069. + lt_cv_dlopen_libs=
  3070. + ;;
  3071. + cygwin*)
  3072. + lt_cv_dlopen="dlopen"
  3073. + lt_cv_dlopen_libs=
  3074. + ;;
  3075. -# _LT_AC_TAGCONFIG
  3076. -# ----------------
  3077. -AC_DEFUN([_LT_AC_TAGCONFIG],
  3078. -[AC_ARG_WITH([tags],
  3079. - [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3080. - [include additional configurations @<:@automatic@:>@])],
  3081. - [tagnames="$withval"])
  3082. -
  3083. -if test -f "$ltmain" && test -n "$tagnames"; then
  3084. - if test ! -f "${ofile}"; then
  3085. - AC_MSG_WARN([output file `$ofile' does not exist])
  3086. - fi
  3087. -
  3088. - if test -z "$LTCC"; then
  3089. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3090. - if test -z "$LTCC"; then
  3091. - AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3092. - else
  3093. - AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3094. - fi
  3095. - fi
  3096. -
  3097. - # Extract list of available tagged configurations in $ofile.
  3098. - # Note that this assumes the entire list is on one line.
  3099. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3100. -
  3101. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3102. - for tagname in $tagnames; do
  3103. - IFS="$lt_save_ifs"
  3104. - # Check whether tagname contains only valid characters
  3105. - case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3106. - "") ;;
  3107. - *) AC_MSG_ERROR([invalid tag name: $tagname])
  3108. - ;;
  3109. - esac
  3110. -
  3111. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3112. - then
  3113. - AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3114. - fi
  3115. -
  3116. - # Update the list of available tags.
  3117. - if test -n "$tagname"; then
  3118. - echo appending configuration tag \"$tagname\" to $ofile
  3119. -
  3120. - case $tagname in
  3121. - CXX)
  3122. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  3123. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  3124. - (test "X$CXX" != "Xg++"))) ; then
  3125. - AC_LIBTOOL_LANG_CXX_CONFIG
  3126. - else
  3127. - tagname=""
  3128. - fi
  3129. - ;;
  3130. -
  3131. - F77)
  3132. - if test -n "$F77" && test "X$F77" != "Xno"; then
  3133. - AC_LIBTOOL_LANG_F77_CONFIG
  3134. - else
  3135. - tagname=""
  3136. - fi
  3137. - ;;
  3138. -
  3139. - GCJ)
  3140. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3141. - AC_LIBTOOL_LANG_GCJ_CONFIG
  3142. - else
  3143. - tagname=""
  3144. - fi
  3145. - ;;
  3146. -
  3147. - RC)
  3148. - AC_LIBTOOL_LANG_RC_CONFIG
  3149. - ;;
  3150. -
  3151. - *)
  3152. - AC_MSG_ERROR([Unsupported tag name: $tagname])
  3153. - ;;
  3154. - esac
  3155. + darwin*)
  3156. + # if libdl is installed we need to link against it
  3157. + AC_CHECK_LIB([dl], [dlopen],
  3158. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  3159. + lt_cv_dlopen="dyld"
  3160. + lt_cv_dlopen_libs=
  3161. + lt_cv_dlopen_self=yes
  3162. + ])
  3163. + ;;
  3164. - # Append the new tag name to the list of available tags.
  3165. - if test -n "$tagname" ; then
  3166. - available_tags="$available_tags $tagname"
  3167. - fi
  3168. - fi
  3169. - done
  3170. - IFS="$lt_save_ifs"
  3171. + *)
  3172. + AC_CHECK_FUNC([shl_load],
  3173. + [lt_cv_dlopen="shl_load"],
  3174. + [AC_CHECK_LIB([dld], [shl_load],
  3175. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"],
  3176. + [AC_CHECK_FUNC([dlopen],
  3177. + [lt_cv_dlopen="dlopen"],
  3178. + [AC_CHECK_LIB([dl], [dlopen],
  3179. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  3180. + [AC_CHECK_LIB([svld], [dlopen],
  3181. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  3182. + [AC_CHECK_LIB([dld], [dld_link],
  3183. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"])
  3184. + ])
  3185. + ])
  3186. + ])
  3187. + ])
  3188. + ])
  3189. + ;;
  3190. + esac
  3191. - # Now substitute the updated list of available tags.
  3192. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3193. - mv "${ofile}T" "$ofile"
  3194. - chmod +x "$ofile"
  3195. + if test "x$lt_cv_dlopen" != xno; then
  3196. + enable_dlopen=yes
  3197. else
  3198. - rm -f "${ofile}T"
  3199. - AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3200. + enable_dlopen=no
  3201. fi
  3202. -fi
  3203. -])# _LT_AC_TAGCONFIG
  3204. + case $lt_cv_dlopen in
  3205. + dlopen)
  3206. + save_CPPFLAGS="$CPPFLAGS"
  3207. + test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  3208. -# AC_LIBTOOL_DLOPEN
  3209. -# -----------------
  3210. -# enable checks for dlopen support
  3211. -AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3212. - [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3213. -])# AC_LIBTOOL_DLOPEN
  3214. + save_LDFLAGS="$LDFLAGS"
  3215. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  3216. + save_LIBS="$LIBS"
  3217. + LIBS="$lt_cv_dlopen_libs $LIBS"
  3218. -# AC_LIBTOOL_WIN32_DLL
  3219. -# --------------------
  3220. -# declare package support for building win32 dll's
  3221. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3222. -[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3223. -])# AC_LIBTOOL_WIN32_DLL
  3224. + AC_CACHE_CHECK([whether a program can dlopen itself],
  3225. + lt_cv_dlopen_self, [dnl
  3226. + _LT_TRY_DLOPEN_SELF(
  3227. + lt_cv_dlopen_self=yes, lt_cv_dlopen_self=yes,
  3228. + lt_cv_dlopen_self=no, lt_cv_dlopen_self=cross)
  3229. + ])
  3230. + if test "x$lt_cv_dlopen_self" = xyes; then
  3231. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  3232. + AC_CACHE_CHECK([whether a statically linked program can dlopen itself],
  3233. + lt_cv_dlopen_self_static, [dnl
  3234. + _LT_TRY_DLOPEN_SELF(
  3235. + lt_cv_dlopen_self_static=yes, lt_cv_dlopen_self_static=yes,
  3236. + lt_cv_dlopen_self_static=no, lt_cv_dlopen_self_static=cross)
  3237. + ])
  3238. + fi
  3239. -# AC_ENABLE_SHARED([DEFAULT])
  3240. -# ---------------------------
  3241. -# implement the --enable-shared flag
  3242. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3243. -AC_DEFUN([AC_ENABLE_SHARED],
  3244. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3245. -AC_ARG_ENABLE([shared],
  3246. - [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3247. - [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3248. - [p=${PACKAGE-default}
  3249. - case $enableval in
  3250. - yes) enable_shared=yes ;;
  3251. - no) enable_shared=no ;;
  3252. - *)
  3253. - enable_shared=no
  3254. - # Look at the argument we got. We use all the common list separators.
  3255. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3256. - for pkg in $enableval; do
  3257. - IFS="$lt_save_ifs"
  3258. - if test "X$pkg" = "X$p"; then
  3259. - enable_shared=yes
  3260. - fi
  3261. - done
  3262. - IFS="$lt_save_ifs"
  3263. - ;;
  3264. - esac],
  3265. - [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3266. -])# AC_ENABLE_SHARED
  3267. + CPPFLAGS="$save_CPPFLAGS"
  3268. + LDFLAGS="$save_LDFLAGS"
  3269. + LIBS="$save_LIBS"
  3270. + ;;
  3271. + esac
  3272. + case $lt_cv_dlopen_self in
  3273. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  3274. + *) enable_dlopen_self=unknown ;;
  3275. + esac
  3276. -# AC_DISABLE_SHARED
  3277. -# -----------------
  3278. -#- set the default shared flag to --disable-shared
  3279. -AC_DEFUN([AC_DISABLE_SHARED],
  3280. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3281. -AC_ENABLE_SHARED(no)
  3282. -])# AC_DISABLE_SHARED
  3283. + case $lt_cv_dlopen_self_static in
  3284. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  3285. + *) enable_dlopen_self_static=unknown ;;
  3286. + esac
  3287. +fi
  3288. +_LT_DECL([dlopen_support], [enable_dlopen], [0],
  3289. + [Whether dlopen is supported])
  3290. +_LT_DECL([dlopen_self], [enable_dlopen_self], [0],
  3291. + [Whether dlopen of programs is supported])
  3292. +_LT_DECL([dlopen_self_static], [enable_dlopen_self_static], [0],
  3293. + [Whether dlopen of statically linked programs is supported])
  3294. +])# LT_SYS_DLOPEN_SELF
  3295. +
  3296. +# Old name:
  3297. +AU_ALIAS([AC_LIBTOOL_DLOPEN_SELF], [LT_SYS_DLOPEN_SELF])
  3298. +dnl aclocal-1.4 backwards compatibility:
  3299. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF], [])
  3300. -# AC_ENABLE_STATIC([DEFAULT])
  3301. +# _LT_COMPILER_C_O([TAGNAME])
  3302. # ---------------------------
  3303. -# implement the --enable-static flag
  3304. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3305. -AC_DEFUN([AC_ENABLE_STATIC],
  3306. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3307. -AC_ARG_ENABLE([static],
  3308. - [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3309. - [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3310. - [p=${PACKAGE-default}
  3311. - case $enableval in
  3312. - yes) enable_static=yes ;;
  3313. - no) enable_static=no ;;
  3314. - *)
  3315. - enable_static=no
  3316. - # Look at the argument we got. We use all the common list separators.
  3317. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3318. - for pkg in $enableval; do
  3319. - IFS="$lt_save_ifs"
  3320. - if test "X$pkg" = "X$p"; then
  3321. - enable_static=yes
  3322. - fi
  3323. - done
  3324. - IFS="$lt_save_ifs"
  3325. - ;;
  3326. - esac],
  3327. - [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3328. -])# AC_ENABLE_STATIC
  3329. +# Check to see if options -c and -o are simultaneously supported by compiler.
  3330. +# This macro does not hard code the compiler like AC_PROG_CC_C_O.
  3331. +m4_defun([_LT_COMPILER_C_O],
  3332. +[m4_require([_LT_DECL_SED])dnl
  3333. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3334. +m4_require([_LT_TAG_COMPILER])dnl
  3335. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  3336. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  3337. + [_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  3338. + $RM -r conftest 2>/dev/null
  3339. + mkdir conftest
  3340. + cd conftest
  3341. + mkdir out
  3342. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  3343. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  3344. + # Insert the option either (1) after the last *FLAGS variable, or
  3345. + # (2) before a word containing "conftest.", or (3) at the end.
  3346. + # Note that $ac_compile itself does not contain backslashes and begins
  3347. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  3348. + lt_compile=`echo "$ac_compile" | $SED \
  3349. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  3350. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  3351. + -e 's:$: $lt_compiler_flag:'`
  3352. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  3353. + (eval "$lt_compile" 2>out/conftest.err)
  3354. + ac_status=$?
  3355. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  3356. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  3357. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  3358. + then
  3359. + # The compiler can only warn and ignore the option if not recognized
  3360. + # So say no if there are warnings
  3361. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  3362. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  3363. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  3364. + _LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  3365. + fi
  3366. + fi
  3367. + chmod u+w . 2>&AS_MESSAGE_LOG_FD
  3368. + $RM conftest*
  3369. + # SGI C++ compiler will create directory out/ii_files/ for
  3370. + # template instantiation
  3371. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  3372. + $RM out/* && rmdir out
  3373. + cd ..
  3374. + $RM -r conftest
  3375. + $RM conftest*
  3376. +])
  3377. +_LT_TAGDECL([compiler_c_o], [lt_cv_prog_compiler_c_o], [1],
  3378. + [Does compiler simultaneously support -c and -o options?])
  3379. +])# _LT_COMPILER_C_O
  3380. -# AC_DISABLE_STATIC
  3381. -# -----------------
  3382. -# set the default static flag to --disable-static
  3383. -AC_DEFUN([AC_DISABLE_STATIC],
  3384. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3385. -AC_ENABLE_STATIC(no)
  3386. -])# AC_DISABLE_STATIC
  3387. +# _LT_COMPILER_FILE_LOCKS([TAGNAME])
  3388. +# ----------------------------------
  3389. +# Check to see if we can do hard links to lock some files if needed
  3390. +m4_defun([_LT_COMPILER_FILE_LOCKS],
  3391. +[m4_require([_LT_ENABLE_LOCK])dnl
  3392. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3393. +_LT_COMPILER_C_O([$1])
  3394. -# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3395. -# ---------------------------------
  3396. -# implement the --enable-fast-install flag
  3397. -# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3398. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3399. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3400. -AC_ARG_ENABLE([fast-install],
  3401. - [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3402. - [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3403. - [p=${PACKAGE-default}
  3404. - case $enableval in
  3405. - yes) enable_fast_install=yes ;;
  3406. - no) enable_fast_install=no ;;
  3407. - *)
  3408. - enable_fast_install=no
  3409. - # Look at the argument we got. We use all the common list separators.
  3410. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3411. - for pkg in $enableval; do
  3412. - IFS="$lt_save_ifs"
  3413. - if test "X$pkg" = "X$p"; then
  3414. - enable_fast_install=yes
  3415. - fi
  3416. - done
  3417. - IFS="$lt_save_ifs"
  3418. - ;;
  3419. - esac],
  3420. - [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3421. -])# AC_ENABLE_FAST_INSTALL
  3422. +hard_links="nottested"
  3423. +if test "$_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  3424. + # do not overwrite the value of need_locks provided by the user
  3425. + AC_MSG_CHECKING([if we can lock with hard links])
  3426. + hard_links=yes
  3427. + $RM conftest*
  3428. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3429. + touch conftest.a
  3430. + ln conftest.a conftest.b 2>&5 || hard_links=no
  3431. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  3432. + AC_MSG_RESULT([$hard_links])
  3433. + if test "$hard_links" = no; then
  3434. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  3435. + need_locks=warn
  3436. + fi
  3437. +else
  3438. + need_locks=no
  3439. +fi
  3440. +_LT_DECL([], [need_locks], [1], [Must we lock files when doing compilation?])
  3441. +])# _LT_COMPILER_FILE_LOCKS
  3442. -# AC_DISABLE_FAST_INSTALL
  3443. -# -----------------------
  3444. -# set the default to --disable-fast-install
  3445. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3446. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3447. -AC_ENABLE_FAST_INSTALL(no)
  3448. -])# AC_DISABLE_FAST_INSTALL
  3449. +# _LT_CHECK_OBJDIR
  3450. +# ----------------
  3451. +m4_defun([_LT_CHECK_OBJDIR],
  3452. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  3453. +[rm -f .libs 2>/dev/null
  3454. +mkdir .libs 2>/dev/null
  3455. +if test -d .libs; then
  3456. + lt_cv_objdir=.libs
  3457. +else
  3458. + # MS-DOS does not allow filenames that begin with a dot.
  3459. + lt_cv_objdir=_libs
  3460. +fi
  3461. +rmdir .libs 2>/dev/null])
  3462. +objdir=$lt_cv_objdir
  3463. +_LT_DECL([], [objdir], [0],
  3464. + [The name of the directory that contains temporary libtool files])dnl
  3465. +m4_pattern_allow([LT_OBJDIR])dnl
  3466. +AC_DEFINE_UNQUOTED(LT_OBJDIR, "$lt_cv_objdir/",
  3467. + [Define to the sub-directory in which libtool stores uninstalled libraries.])
  3468. +])# _LT_CHECK_OBJDIR
  3469. -# AC_LIBTOOL_PICMODE([MODE])
  3470. -# --------------------------
  3471. -# implement the --with-pic flag
  3472. -# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3473. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  3474. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3475. -pic_mode=ifelse($#,1,$1,default)
  3476. -])# AC_LIBTOOL_PICMODE
  3477. +# _LT_LINKER_HARDCODE_LIBPATH([TAGNAME])
  3478. +# --------------------------------------
  3479. +# Check hardcoding attributes.
  3480. +m4_defun([_LT_LINKER_HARDCODE_LIBPATH],
  3481. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  3482. +_LT_TAGVAR(hardcode_action, $1)=
  3483. +if test -n "$_LT_TAGVAR(hardcode_libdir_flag_spec, $1)" ||
  3484. + test -n "$_LT_TAGVAR(runpath_var, $1)" ||
  3485. + test "X$_LT_TAGVAR(hardcode_automatic, $1)" = "Xyes" ; then
  3486. + # We can hardcode non-existent directories.
  3487. + if test "$_LT_TAGVAR(hardcode_direct, $1)" != no &&
  3488. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  3489. + # have to relink, otherwise we might link with an installed library
  3490. + # when we should be linking with a yet-to-be-installed one
  3491. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  3492. + test "$_LT_TAGVAR(hardcode_minus_L, $1)" != no; then
  3493. + # Linking always hardcodes the temporary library directory.
  3494. + _LT_TAGVAR(hardcode_action, $1)=relink
  3495. + else
  3496. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  3497. + _LT_TAGVAR(hardcode_action, $1)=immediate
  3498. + fi
  3499. +else
  3500. + # We cannot hardcode anything, or else we can only hardcode existing
  3501. + # directories.
  3502. + _LT_TAGVAR(hardcode_action, $1)=unsupported
  3503. +fi
  3504. +AC_MSG_RESULT([$_LT_TAGVAR(hardcode_action, $1)])
  3505. -# AC_PROG_EGREP
  3506. -# -------------
  3507. -# This is predefined starting with Autoconf 2.54, so this conditional
  3508. -# definition can be removed once we require Autoconf 2.54 or later.
  3509. -m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3510. -[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3511. - [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3512. - then ac_cv_prog_egrep='grep -E'
  3513. - else ac_cv_prog_egrep='egrep'
  3514. - fi])
  3515. - EGREP=$ac_cv_prog_egrep
  3516. - AC_SUBST([EGREP])
  3517. -])])
  3518. +if test "$_LT_TAGVAR(hardcode_action, $1)" = relink ||
  3519. + test "$_LT_TAGVAR(inherit_rpath, $1)" = yes; then
  3520. + # Fast installation is not supported
  3521. + enable_fast_install=no
  3522. +elif test "$shlibpath_overrides_runpath" = yes ||
  3523. + test "$enable_shared" = no; then
  3524. + # Fast installation is not necessary
  3525. + enable_fast_install=needless
  3526. +fi
  3527. +_LT_TAGDECL([], [hardcode_action], [0],
  3528. + [How to hardcode a shared library path into an executable])
  3529. +])# _LT_LINKER_HARDCODE_LIBPATH
  3530. -# AC_PATH_TOOL_PREFIX
  3531. -# -------------------
  3532. -# find a file program which can recognise shared library
  3533. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3534. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3535. -AC_MSG_CHECKING([for $1])
  3536. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3537. -[case $MAGIC_CMD in
  3538. -[[\\/*] | ?:[\\/]*])
  3539. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3540. - ;;
  3541. -*)
  3542. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  3543. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3544. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  3545. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  3546. -dnl not every word. This closes a longstanding sh security hole.
  3547. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  3548. - for ac_dir in $ac_dummy; do
  3549. - IFS="$lt_save_ifs"
  3550. - test -z "$ac_dir" && ac_dir=.
  3551. - if test -f $ac_dir/$1; then
  3552. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3553. - if test -n "$file_magic_test_file"; then
  3554. - case $deplibs_check_method in
  3555. - "file_magic "*)
  3556. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3557. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3558. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3559. - $EGREP "$file_magic_regex" > /dev/null; then
  3560. - :
  3561. - else
  3562. - cat <<EOF 1>&2
  3563. -
  3564. -*** Warning: the command libtool uses to detect shared libraries,
  3565. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  3566. -*** The result is that libtool may fail to recognize shared libraries
  3567. -*** as such. This will affect the creation of libtool libraries that
  3568. -*** depend on shared libraries, but programs linked with such libtool
  3569. -*** libraries will work regardless of this problem. Nevertheless, you
  3570. -*** may want to report the problem to your system manager and/or to
  3571. -*** bug-libtool@gnu.org
  3572. -
  3573. -EOF
  3574. - fi ;;
  3575. - esac
  3576. - fi
  3577. - break
  3578. - fi
  3579. - done
  3580. - IFS="$lt_save_ifs"
  3581. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  3582. - ;;
  3583. -esac])
  3584. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3585. -if test -n "$MAGIC_CMD"; then
  3586. - AC_MSG_RESULT($MAGIC_CMD)
  3587. +# _LT_CMD_STRIPLIB
  3588. +# ----------------
  3589. +m4_defun([_LT_CMD_STRIPLIB],
  3590. +[m4_require([_LT_DECL_EGREP])
  3591. +striplib=
  3592. +old_striplib=
  3593. +AC_MSG_CHECKING([whether stripping libraries is possible])
  3594. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  3595. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  3596. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  3597. + AC_MSG_RESULT([yes])
  3598. else
  3599. - AC_MSG_RESULT(no)
  3600. -fi
  3601. -])# AC_PATH_TOOL_PREFIX
  3602. -
  3603. -
  3604. -# AC_PATH_MAGIC
  3605. -# -------------
  3606. -# find a file program which can recognise a shared library
  3607. -AC_DEFUN([AC_PATH_MAGIC],
  3608. -[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3609. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  3610. - if test -n "$ac_tool_prefix"; then
  3611. - AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3612. - else
  3613. - MAGIC_CMD=:
  3614. - fi
  3615. -fi
  3616. -])# AC_PATH_MAGIC
  3617. -
  3618. -
  3619. -# AC_PROG_LD
  3620. -# ----------
  3621. -# find the pathname to the GNU or non-GNU linker
  3622. -AC_DEFUN([AC_PROG_LD],
  3623. -[AC_ARG_WITH([gnu-ld],
  3624. - [AC_HELP_STRING([--with-gnu-ld],
  3625. - [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3626. - [test "$withval" = no || with_gnu_ld=yes],
  3627. - [with_gnu_ld=no])
  3628. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  3629. -AC_REQUIRE([AC_PROG_CC])dnl
  3630. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3631. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3632. -ac_prog=ld
  3633. -if test "$GCC" = yes; then
  3634. - # Check if gcc -print-prog-name=ld gives a path.
  3635. - AC_MSG_CHECKING([for ld used by $CC])
  3636. - case $host in
  3637. - *-*-mingw*)
  3638. - # gcc leaves a trailing carriage return which upsets mingw
  3639. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3640. - *)
  3641. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3642. - esac
  3643. - case $ac_prog in
  3644. - # Accept absolute paths.
  3645. - [[\\/]]* | ?:[[\\/]]*)
  3646. - re_direlt='/[[^/]][[^/]]*/\.\./'
  3647. - # Canonicalize the pathname of ld
  3648. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3649. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3650. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3651. - done
  3652. - test -z "$LD" && LD="$ac_prog"
  3653. - ;;
  3654. - "")
  3655. - # If it fails, then pretend we aren't using GCC.
  3656. - ac_prog=ld
  3657. +# FIXME - insert some real tests, host_os isn't really good enough
  3658. + case $host_os in
  3659. + darwin*)
  3660. + if test -n "$STRIP" ; then
  3661. + striplib="$STRIP -x"
  3662. + old_striplib="$STRIP -S"
  3663. + AC_MSG_RESULT([yes])
  3664. + else
  3665. + AC_MSG_RESULT([no])
  3666. + fi
  3667. ;;
  3668. *)
  3669. - # If it is relative, then search for the first ld in PATH.
  3670. - with_gnu_ld=unknown
  3671. + AC_MSG_RESULT([no])
  3672. ;;
  3673. esac
  3674. -elif test "$with_gnu_ld" = yes; then
  3675. - AC_MSG_CHECKING([for GNU ld])
  3676. -else
  3677. - AC_MSG_CHECKING([for non-GNU ld])
  3678. fi
  3679. -AC_CACHE_VAL(lt_cv_path_LD,
  3680. -[if test -z "$LD"; then
  3681. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3682. - for ac_dir in $PATH; do
  3683. - IFS="$lt_save_ifs"
  3684. - test -z "$ac_dir" && ac_dir=.
  3685. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3686. - lt_cv_path_LD="$ac_dir/$ac_prog"
  3687. - # Check to see if the program is GNU ld. I'd rather use --version,
  3688. - # but apparently some GNU ld's only accept -v.
  3689. - # Break only if it was the GNU/non-GNU ld that we prefer.
  3690. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3691. - *GNU* | *'with BFD'*)
  3692. - test "$with_gnu_ld" != no && break
  3693. - ;;
  3694. - *)
  3695. - test "$with_gnu_ld" != yes && break
  3696. - ;;
  3697. - esac
  3698. +_LT_DECL([], [old_striplib], [1], [Commands to strip libraries])
  3699. +_LT_DECL([], [striplib], [1])
  3700. +])# _LT_CMD_STRIPLIB
  3701. +
  3702. +
  3703. +# _LT_SYS_DYNAMIC_LINKER([TAG])
  3704. +# -----------------------------
  3705. +# PORTME Fill in your ld.so characteristics
  3706. +m4_defun([_LT_SYS_DYNAMIC_LINKER],
  3707. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3708. +m4_require([_LT_DECL_EGREP])dnl
  3709. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  3710. +m4_require([_LT_DECL_OBJDUMP])dnl
  3711. +m4_require([_LT_DECL_SED])dnl
  3712. +AC_MSG_CHECKING([dynamic linker characteristics])
  3713. +m4_if([$1],
  3714. + [], [
  3715. +if test "$GCC" = yes; then
  3716. + case $host_os in
  3717. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  3718. + *) lt_awk_arg="/^libraries:/" ;;
  3719. + esac
  3720. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3721. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  3722. + # if the path contains ";" then we assume it to be the separator
  3723. + # otherwise default to the standard path separator (i.e. ":") - it is
  3724. + # assumed that no part of a normal pathname contains ";" but that should
  3725. + # okay in the real world where ";" in dirpaths is itself problematic.
  3726. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  3727. + else
  3728. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3729. + fi
  3730. + # Ok, now we have the path, separated by spaces, we can step through it
  3731. + # and add multilib dir if necessary.
  3732. + lt_tmp_lt_search_path_spec=
  3733. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  3734. + for lt_sys_path in $lt_search_path_spec; do
  3735. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  3736. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  3737. + else
  3738. + test -d "$lt_sys_path" && \
  3739. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  3740. fi
  3741. done
  3742. - IFS="$lt_save_ifs"
  3743. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  3744. +BEGIN {RS=" "; FS="/|\n";} {
  3745. + lt_foo="";
  3746. + lt_count=0;
  3747. + for (lt_i = NF; lt_i > 0; lt_i--) {
  3748. + if ($lt_i != "" && $lt_i != ".") {
  3749. + if ($lt_i == "..") {
  3750. + lt_count++;
  3751. + } else {
  3752. + if (lt_count == 0) {
  3753. + lt_foo="/" $lt_i lt_foo;
  3754. + } else {
  3755. + lt_count--;
  3756. + }
  3757. + }
  3758. + }
  3759. + }
  3760. + if (lt_foo != "") { lt_freq[[lt_foo]]++; }
  3761. + if (lt_freq[[lt_foo]] == 1) { print lt_foo; }
  3762. +}'`
  3763. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  3764. else
  3765. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3766. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  3767. fi])
  3768. -LD="$lt_cv_path_LD"
  3769. -if test -n "$LD"; then
  3770. - AC_MSG_RESULT($LD)
  3771. -else
  3772. - AC_MSG_RESULT(no)
  3773. -fi
  3774. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3775. -AC_PROG_LD_GNU
  3776. -])# AC_PROG_LD
  3777. +library_names_spec=
  3778. +libname_spec='lib$name'
  3779. +soname_spec=
  3780. +shrext_cmds=".so"
  3781. +postinstall_cmds=
  3782. +postuninstall_cmds=
  3783. +finish_cmds=
  3784. +finish_eval=
  3785. +shlibpath_var=
  3786. +shlibpath_overrides_runpath=unknown
  3787. +version_type=none
  3788. +dynamic_linker="$host_os ld.so"
  3789. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  3790. +need_lib_prefix=unknown
  3791. +hardcode_into_libs=no
  3792. +
  3793. +# when you set need_version to no, make sure it does not cause -set_version
  3794. +# flags to be left without arguments
  3795. +need_version=unknown
  3796. +case $host_os in
  3797. +aix3*)
  3798. + version_type=linux
  3799. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  3800. + shlibpath_var=LIBPATH
  3801. -# AC_PROG_LD_GNU
  3802. -# --------------
  3803. -AC_DEFUN([AC_PROG_LD_GNU],
  3804. -[AC_REQUIRE([AC_PROG_EGREP])dnl
  3805. -AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3806. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3807. -case `$LD -v 2>&1 </dev/null` in
  3808. -*GNU* | *'with BFD'*)
  3809. - lt_cv_prog_gnu_ld=yes
  3810. - ;;
  3811. -*)
  3812. - lt_cv_prog_gnu_ld=no
  3813. + # AIX 3 has no versioning support, so we append a major version to the name.
  3814. + soname_spec='${libname}${release}${shared_ext}$major'
  3815. ;;
  3816. -esac])
  3817. -with_gnu_ld=$lt_cv_prog_gnu_ld
  3818. -])# AC_PROG_LD_GNU
  3819. -
  3820. -# AC_PROG_LD_RELOAD_FLAG
  3821. -# ----------------------
  3822. -# find reload flag for linker
  3823. -# -- PORTME Some linkers may need a different reload flag.
  3824. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3825. -[AC_CACHE_CHECK([for $LD option to reload object files],
  3826. - lt_cv_ld_reload_flag,
  3827. - [lt_cv_ld_reload_flag='-r'])
  3828. -reload_flag=$lt_cv_ld_reload_flag
  3829. -case $reload_flag in
  3830. -"" | " "*) ;;
  3831. -*) reload_flag=" $reload_flag" ;;
  3832. -esac
  3833. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3834. -case $host_os in
  3835. - darwin*)
  3836. - if test "$GCC" = yes; then
  3837. - reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  3838. +aix[[4-9]]*)
  3839. + version_type=linux
  3840. + need_lib_prefix=no
  3841. + need_version=no
  3842. + hardcode_into_libs=yes
  3843. + if test "$host_cpu" = ia64; then
  3844. + # AIX 5 supports IA64
  3845. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  3846. + shlibpath_var=LD_LIBRARY_PATH
  3847. + else
  3848. + # With GCC up to 2.95.x, collect2 would create an import file
  3849. + # for dependence libraries. The import file would start with
  3850. + # the line `#! .'. This would cause the generated library to
  3851. + # depend on `.', always an invalid library. This was fixed in
  3852. + # development snapshots of GCC prior to 3.0.
  3853. + case $host_os in
  3854. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  3855. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  3856. + echo ' yes '
  3857. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  3858. + :
  3859. + else
  3860. + can_build_shared=no
  3861. + fi
  3862. + ;;
  3863. + esac
  3864. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  3865. + # soname into executable. Probably we can add versioning support to
  3866. + # collect2, so additional links can be useful in future.
  3867. + if test "$aix_use_runtimelinking" = yes; then
  3868. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  3869. + # instead of lib<name>.a to let people know that these are not
  3870. + # typical AIX shared libraries.
  3871. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3872. else
  3873. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3874. + # We preserve .a as extension for shared libraries through AIX4.2
  3875. + # and later when we are not doing run time linking.
  3876. + library_names_spec='${libname}${release}.a $libname.a'
  3877. + soname_spec='${libname}${release}${shared_ext}$major'
  3878. fi
  3879. + shlibpath_var=LIBPATH
  3880. + fi
  3881. + ;;
  3882. +
  3883. +amigaos*)
  3884. + case $host_cpu in
  3885. + powerpc)
  3886. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  3887. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  3888. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3889. ;;
  3890. -esac
  3891. -])# AC_PROG_LD_RELOAD_FLAG
  3892. + m68k)
  3893. + library_names_spec='$libname.ixlibrary $libname.a'
  3894. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  3895. + 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'
  3896. + ;;
  3897. + esac
  3898. + ;;
  3899. +beos*)
  3900. + library_names_spec='${libname}${shared_ext}'
  3901. + dynamic_linker="$host_os ld.so"
  3902. + shlibpath_var=LIBRARY_PATH
  3903. + ;;
  3904. -# AC_DEPLIBS_CHECK_METHOD
  3905. -# -----------------------
  3906. -# how to check for library dependencies
  3907. -# -- PORTME fill in with the dynamic library characteristics
  3908. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3909. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  3910. -lt_cv_deplibs_check_method,
  3911. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3912. -lt_cv_file_magic_test_file=
  3913. -lt_cv_deplibs_check_method='unknown'
  3914. -# Need to set the preceding variable on all platforms that support
  3915. -# interlibrary dependencies.
  3916. -# 'none' -- dependencies not supported.
  3917. -# `unknown' -- same as none, but documents that we really don't know.
  3918. -# 'pass_all' -- all dependencies passed with no checks.
  3919. -# 'test_compile' -- check by making test program.
  3920. -# 'file_magic [[regex]]' -- check by looking for files in library path
  3921. -# which responds to the $file_magic_cmd with a given extended regex.
  3922. -# If you have `file' or equivalent on your system and you're not sure
  3923. -# whether `pass_all' will *always* work, you probably want this one.
  3924. -
  3925. -case $host_os in
  3926. -aix4* | aix5*)
  3927. - lt_cv_deplibs_check_method=pass_all
  3928. +bsdi[[45]]*)
  3929. + version_type=linux
  3930. + need_version=no
  3931. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3932. + soname_spec='${libname}${release}${shared_ext}$major'
  3933. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  3934. + shlibpath_var=LD_LIBRARY_PATH
  3935. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  3936. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  3937. + # the default ld.so.conf also contains /usr/contrib/lib and
  3938. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  3939. + # libtool to hard-code these into programs
  3940. ;;
  3941. -beos*)
  3942. - lt_cv_deplibs_check_method=pass_all
  3943. - ;;
  3944. +cygwin* | mingw* | pw32* | cegcc*)
  3945. + version_type=windows
  3946. + shrext_cmds=".dll"
  3947. + need_version=no
  3948. + need_lib_prefix=no
  3949. -bsdi[[45]]*)
  3950. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3951. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  3952. - lt_cv_file_magic_test_file=/shlib/libc.so
  3953. + case $GCC,$host_os in
  3954. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  3955. + library_names_spec='$libname.dll.a'
  3956. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  3957. + postinstall_cmds='base_file=`basename \${file}`~
  3958. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  3959. + dldir=$destdir/`dirname \$dlpath`~
  3960. + test -d \$dldir || mkdir -p \$dldir~
  3961. + $install_prog $dir/$dlname \$dldir/$dlname~
  3962. + chmod a+x \$dldir/$dlname~
  3963. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  3964. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  3965. + fi'
  3966. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  3967. + dlpath=$dir/\$dldll~
  3968. + $RM \$dlpath'
  3969. + shlibpath_overrides_runpath=yes
  3970. +
  3971. + case $host_os in
  3972. + cygwin*)
  3973. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  3974. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3975. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  3976. + ;;
  3977. + mingw* | cegcc*)
  3978. + # MinGW DLLs use traditional 'lib' prefix
  3979. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3980. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  3981. + if $ECHO "$sys_lib_search_path_spec" | [$GREP ';[c-zC-Z]:/' >/dev/null]; then
  3982. + # It is most probably a Windows format PATH printed by
  3983. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  3984. + # path with ; separators, and with drive letters. We can handle the
  3985. + # drive letters (cygwin fileutils understands them), so leave them,
  3986. + # especially as we might pass files found there to a mingw objdump,
  3987. + # which wouldn't understand a cygwinified path. Ahh.
  3988. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  3989. + else
  3990. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  3991. + fi
  3992. + ;;
  3993. + pw32*)
  3994. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  3995. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  3996. + ;;
  3997. + esac
  3998. + ;;
  3999. +
  4000. + *)
  4001. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  4002. + ;;
  4003. + esac
  4004. + dynamic_linker='Win32 ld.exe'
  4005. + # FIXME: first we should search . and the directory the executable is in
  4006. + shlibpath_var=PATH
  4007. ;;
  4008. -cygwin*)
  4009. - # func_win32_libid is a shell function defined in ltmain.sh
  4010. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4011. - lt_cv_file_magic_cmd='func_win32_libid'
  4012. +darwin* | rhapsody*)
  4013. + dynamic_linker="$host_os dyld"
  4014. + version_type=darwin
  4015. + need_lib_prefix=no
  4016. + need_version=no
  4017. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  4018. + soname_spec='${libname}${release}${major}$shared_ext'
  4019. + shlibpath_overrides_runpath=yes
  4020. + shlibpath_var=DYLD_LIBRARY_PATH
  4021. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  4022. +m4_if([$1], [],[
  4023. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"])
  4024. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  4025. ;;
  4026. -mingw* | pw32*)
  4027. - # Base MSYS/MinGW do not provide the 'file' command needed by
  4028. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  4029. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  4030. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  4031. +dgux*)
  4032. + version_type=linux
  4033. + need_lib_prefix=no
  4034. + need_version=no
  4035. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  4036. + soname_spec='${libname}${release}${shared_ext}$major'
  4037. + shlibpath_var=LD_LIBRARY_PATH
  4038. ;;
  4039. -darwin* | rhapsody*)
  4040. - lt_cv_deplibs_check_method=pass_all
  4041. +freebsd1*)
  4042. + dynamic_linker=no
  4043. ;;
  4044. -freebsd* | kfreebsd*-gnu | dragonfly*)
  4045. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4046. - case $host_cpu in
  4047. - i*86 )
  4048. - # Not sure whether the presence of OpenBSD here was a mistake.
  4049. - # Let's accept both of them until this is cleared up.
  4050. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  4051. - lt_cv_file_magic_cmd=/usr/bin/file
  4052. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4053. - ;;
  4054. - esac
  4055. +freebsd* | dragonfly*)
  4056. + # DragonFly does not have aout. When/if they implement a new
  4057. + # versioning mechanism, adjust this.
  4058. + if test -x /usr/bin/objformat; then
  4059. + objformat=`/usr/bin/objformat`
  4060. else
  4061. - lt_cv_deplibs_check_method=pass_all
  4062. + case $host_os in
  4063. + freebsd[[123]]*) objformat=aout ;;
  4064. + *) objformat=elf ;;
  4065. + esac
  4066. fi
  4067. + version_type=freebsd-$objformat
  4068. + case $version_type in
  4069. + freebsd-elf*)
  4070. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4071. + need_version=no
  4072. + need_lib_prefix=no
  4073. + ;;
  4074. + freebsd-*)
  4075. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  4076. + need_version=yes
  4077. + ;;
  4078. + esac
  4079. + shlibpath_var=LD_LIBRARY_PATH
  4080. + case $host_os in
  4081. + freebsd2*)
  4082. + shlibpath_overrides_runpath=yes
  4083. + ;;
  4084. + freebsd3.[[01]]* | freebsdelf3.[[01]]*)
  4085. + shlibpath_overrides_runpath=yes
  4086. + hardcode_into_libs=yes
  4087. + ;;
  4088. + freebsd3.[[2-9]]* | freebsdelf3.[[2-9]]* | \
  4089. + freebsd4.[[0-5]] | freebsdelf4.[[0-5]] | freebsd4.1.1 | freebsdelf4.1.1)
  4090. + shlibpath_overrides_runpath=no
  4091. + hardcode_into_libs=yes
  4092. + ;;
  4093. + *) # from 4.6 on, and DragonFly
  4094. + shlibpath_overrides_runpath=yes
  4095. + hardcode_into_libs=yes
  4096. + ;;
  4097. + esac
  4098. ;;
  4099. gnu*)
  4100. - lt_cv_deplibs_check_method=pass_all
  4101. + version_type=linux
  4102. + need_lib_prefix=no
  4103. + need_version=no
  4104. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  4105. + soname_spec='${libname}${release}${shared_ext}$major'
  4106. + shlibpath_var=LD_LIBRARY_PATH
  4107. + hardcode_into_libs=yes
  4108. ;;
  4109. -hpux10.20* | hpux11*)
  4110. - lt_cv_file_magic_cmd=/usr/bin/file
  4111. - case "$host_cpu" in
  4112. +hpux9* | hpux10* | hpux11*)
  4113. + # Give a soname corresponding to the major version so that dld.sl refuses to
  4114. + # link against other versions.
  4115. + version_type=sunos
  4116. + need_lib_prefix=no
  4117. + need_version=no
  4118. + case $host_cpu in
  4119. ia64*)
  4120. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  4121. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4122. + shrext_cmds='.so'
  4123. + hardcode_into_libs=yes
  4124. + dynamic_linker="$host_os dld.so"
  4125. + shlibpath_var=LD_LIBRARY_PATH
  4126. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4127. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4128. + soname_spec='${libname}${release}${shared_ext}$major'
  4129. + if test "X$HPUX_IA64_MODE" = X32; then
  4130. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  4131. + else
  4132. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  4133. + fi
  4134. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4135. ;;
  4136. hppa*64*)
  4137. - [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]']
  4138. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4139. + shrext_cmds='.sl'
  4140. + hardcode_into_libs=yes
  4141. + dynamic_linker="$host_os dld.sl"
  4142. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  4143. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  4144. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4145. + soname_spec='${libname}${release}${shared_ext}$major'
  4146. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  4147. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  4148. ;;
  4149. *)
  4150. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  4151. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4152. + shrext_cmds='.sl'
  4153. + dynamic_linker="$host_os dld.sl"
  4154. + shlibpath_var=SHLIB_PATH
  4155. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  4156. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4157. + soname_spec='${libname}${release}${shared_ext}$major'
  4158. ;;
  4159. esac
  4160. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  4161. + postinstall_cmds='chmod 555 $lib'
  4162. + ;;
  4163. +
  4164. +interix[[3-9]]*)
  4165. + version_type=linux
  4166. + need_lib_prefix=no
  4167. + need_version=no
  4168. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4169. + soname_spec='${libname}${release}${shared_ext}$major'
  4170. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  4171. + shlibpath_var=LD_LIBRARY_PATH
  4172. + shlibpath_overrides_runpath=no
  4173. + hardcode_into_libs=yes
  4174. ;;
  4175. irix5* | irix6* | nonstopux*)
  4176. - case $LD in
  4177. - *-32|*"-32 ") libmagic=32-bit;;
  4178. - *-n32|*"-n32 ") libmagic=N32;;
  4179. - *-64|*"-64 ") libmagic=64-bit;;
  4180. - *) libmagic=never-match;;
  4181. + case $host_os in
  4182. + nonstopux*) version_type=nonstopux ;;
  4183. + *)
  4184. + if test "$lt_cv_prog_gnu_ld" = yes; then
  4185. + version_type=linux
  4186. + else
  4187. + version_type=irix
  4188. + fi ;;
  4189. esac
  4190. - lt_cv_deplibs_check_method=pass_all
  4191. + need_lib_prefix=no
  4192. + need_version=no
  4193. + soname_spec='${libname}${release}${shared_ext}$major'
  4194. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  4195. + case $host_os in
  4196. + irix5* | nonstopux*)
  4197. + libsuff= shlibsuff=
  4198. + ;;
  4199. + *)
  4200. + case $LD in # libtool.m4 will add one of these switches to LD
  4201. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  4202. + libsuff= shlibsuff= libmagic=32-bit;;
  4203. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  4204. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  4205. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  4206. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  4207. + *) libsuff= shlibsuff= libmagic=never-match;;
  4208. + esac
  4209. + ;;
  4210. + esac
  4211. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  4212. + shlibpath_overrides_runpath=no
  4213. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  4214. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  4215. + hardcode_into_libs=yes
  4216. ;;
  4217. -# This must be Linux ELF.
  4218. -linux*)
  4219. - lt_cv_deplibs_check_method=pass_all
  4220. +# No shared lib support for Linux oldld, aout, or coff.
  4221. +linux*oldld* | linux*aout* | linux*coff*)
  4222. + dynamic_linker=no
  4223. ;;
  4224. -netbsd*)
  4225. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  4226. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4227. - else
  4228. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  4229. - fi
  4230. - ;;
  4231. +# This must be Linux ELF.
  4232. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  4233. + version_type=linux
  4234. + need_lib_prefix=no
  4235. + need_version=no
  4236. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4237. + soname_spec='${libname}${release}${shared_ext}$major'
  4238. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  4239. + shlibpath_var=LD_LIBRARY_PATH
  4240. + shlibpath_overrides_runpath=no
  4241. + # Some binutils ld are patched to set DT_RUNPATH
  4242. + save_LDFLAGS=$LDFLAGS
  4243. + save_libdir=$libdir
  4244. + eval "libdir=/foo; wl=\"$_LT_TAGVAR(lt_prog_compiler_wl, $1)\"; \
  4245. + LDFLAGS=\"\$LDFLAGS $_LT_TAGVAR(hardcode_libdir_flag_spec, $1)\""
  4246. + AC_LINK_IFELSE([AC_LANG_PROGRAM([],[])],
  4247. + [AS_IF([ ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null],
  4248. + [shlibpath_overrides_runpath=yes])])
  4249. + LDFLAGS=$save_LDFLAGS
  4250. + libdir=$save_libdir
  4251. -newos6*)
  4252. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  4253. - lt_cv_file_magic_cmd=/usr/bin/file
  4254. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4255. + # This implies no fast_install, which is unacceptable.
  4256. + # Some rework will be needed to allow for fast_install
  4257. + # before this can be enabled.
  4258. + hardcode_into_libs=yes
  4259. +
  4260. + # Append ld.so.conf contents to the search path
  4261. + if test -f /etc/ld.so.conf; then
  4262. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \[$]2)); skip = 1; } { if (!skip) print \[$]0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  4263. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  4264. + fi
  4265. +
  4266. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  4267. + # powerpc, because MkLinux only supported shared libraries with the
  4268. + # GNU dynamic linker. Since this was broken with cross compilers,
  4269. + # most powerpc-linux boxes support dynamic linking these days and
  4270. + # people can always --disable-shared, the test was removed, and we
  4271. + # assume the GNU/Linux dynamic linker is in use.
  4272. + dynamic_linker='GNU/Linux ld.so'
  4273. + ;;
  4274. +
  4275. +netbsdelf*-gnu)
  4276. + version_type=linux
  4277. + need_lib_prefix=no
  4278. + need_version=no
  4279. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4280. + soname_spec='${libname}${release}${shared_ext}$major'
  4281. + shlibpath_var=LD_LIBRARY_PATH
  4282. + shlibpath_overrides_runpath=no
  4283. + hardcode_into_libs=yes
  4284. + dynamic_linker='NetBSD ld.elf_so'
  4285. + ;;
  4286. +
  4287. +netbsd*)
  4288. + version_type=sunos
  4289. + need_lib_prefix=no
  4290. + need_version=no
  4291. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  4292. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4293. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4294. + dynamic_linker='NetBSD (a.out) ld.so'
  4295. + else
  4296. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  4297. + soname_spec='${libname}${release}${shared_ext}$major'
  4298. + dynamic_linker='NetBSD ld.elf_so'
  4299. + fi
  4300. + shlibpath_var=LD_LIBRARY_PATH
  4301. + shlibpath_overrides_runpath=yes
  4302. + hardcode_into_libs=yes
  4303. ;;
  4304. -nto-qnx*)
  4305. - lt_cv_deplibs_check_method=unknown
  4306. +newsos6)
  4307. + version_type=linux
  4308. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4309. + shlibpath_var=LD_LIBRARY_PATH
  4310. + shlibpath_overrides_runpath=yes
  4311. + ;;
  4312. +
  4313. +*nto* | *qnx*)
  4314. + version_type=qnx
  4315. + need_lib_prefix=no
  4316. + need_version=no
  4317. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4318. + soname_spec='${libname}${release}${shared_ext}$major'
  4319. + shlibpath_var=LD_LIBRARY_PATH
  4320. + shlibpath_overrides_runpath=no
  4321. + hardcode_into_libs=yes
  4322. + dynamic_linker='ldqnx.so'
  4323. ;;
  4324. openbsd*)
  4325. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4326. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  4327. + version_type=sunos
  4328. + sys_lib_dlsearch_path_spec="/usr/lib"
  4329. + need_lib_prefix=no
  4330. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  4331. + case $host_os in
  4332. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  4333. + *) need_version=no ;;
  4334. + esac
  4335. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4336. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  4337. + shlibpath_var=LD_LIBRARY_PATH
  4338. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4339. + case $host_os in
  4340. + openbsd2.[[89]] | openbsd2.[[89]].*)
  4341. + shlibpath_overrides_runpath=no
  4342. + ;;
  4343. + *)
  4344. + shlibpath_overrides_runpath=yes
  4345. + ;;
  4346. + esac
  4347. else
  4348. - lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  4349. + shlibpath_overrides_runpath=yes
  4350. fi
  4351. ;;
  4352. +os2*)
  4353. + libname_spec='$name'
  4354. + shrext_cmds=".dll"
  4355. + need_lib_prefix=no
  4356. + library_names_spec='$libname${shared_ext} $libname.a'
  4357. + dynamic_linker='OS/2 ld.exe'
  4358. + shlibpath_var=LIBPATH
  4359. + ;;
  4360. +
  4361. osf3* | osf4* | osf5*)
  4362. - lt_cv_deplibs_check_method=pass_all
  4363. + version_type=osf
  4364. + need_lib_prefix=no
  4365. + need_version=no
  4366. + soname_spec='${libname}${release}${shared_ext}$major'
  4367. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4368. + shlibpath_var=LD_LIBRARY_PATH
  4369. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  4370. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  4371. ;;
  4372. -sco3.2v5*)
  4373. - lt_cv_deplibs_check_method=pass_all
  4374. +rdos*)
  4375. + dynamic_linker=no
  4376. ;;
  4377. solaris*)
  4378. - lt_cv_deplibs_check_method=pass_all
  4379. + version_type=linux
  4380. + need_lib_prefix=no
  4381. + need_version=no
  4382. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4383. + soname_spec='${libname}${release}${shared_ext}$major'
  4384. + shlibpath_var=LD_LIBRARY_PATH
  4385. + shlibpath_overrides_runpath=yes
  4386. + hardcode_into_libs=yes
  4387. + # ldd complains unless libraries are executable
  4388. + postinstall_cmds='chmod +x $lib'
  4389. + ;;
  4390. +
  4391. +sunos4*)
  4392. + version_type=sunos
  4393. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  4394. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  4395. + shlibpath_var=LD_LIBRARY_PATH
  4396. + shlibpath_overrides_runpath=yes
  4397. + if test "$with_gnu_ld" = yes; then
  4398. + need_lib_prefix=no
  4399. + fi
  4400. + need_version=yes
  4401. ;;
  4402. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  4403. +sysv4 | sysv4.3*)
  4404. + version_type=linux
  4405. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4406. + soname_spec='${libname}${release}${shared_ext}$major'
  4407. + shlibpath_var=LD_LIBRARY_PATH
  4408. case $host_vendor in
  4409. - motorola)
  4410. - 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]]'
  4411. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4412. - ;;
  4413. - ncr)
  4414. - lt_cv_deplibs_check_method=pass_all
  4415. - ;;
  4416. - sequent)
  4417. - lt_cv_file_magic_cmd='/bin/file'
  4418. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  4419. - ;;
  4420. - sni)
  4421. - lt_cv_file_magic_cmd='/bin/file'
  4422. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  4423. - lt_cv_file_magic_test_file=/lib/libc.so
  4424. - ;;
  4425. - siemens)
  4426. - lt_cv_deplibs_check_method=pass_all
  4427. - ;;
  4428. + sni)
  4429. + shlibpath_overrides_runpath=no
  4430. + need_lib_prefix=no
  4431. + runpath_var=LD_RUN_PATH
  4432. + ;;
  4433. + siemens)
  4434. + need_lib_prefix=no
  4435. + ;;
  4436. + motorola)
  4437. + need_lib_prefix=no
  4438. + need_version=no
  4439. + shlibpath_overrides_runpath=no
  4440. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  4441. + ;;
  4442. esac
  4443. ;;
  4444. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  4445. - lt_cv_deplibs_check_method=pass_all
  4446. +sysv4*MP*)
  4447. + if test -d /usr/nec ;then
  4448. + version_type=linux
  4449. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  4450. + soname_spec='$libname${shared_ext}.$major'
  4451. + shlibpath_var=LD_LIBRARY_PATH
  4452. + fi
  4453. ;;
  4454. -esac
  4455. -])
  4456. -file_magic_cmd=$lt_cv_file_magic_cmd
  4457. -deplibs_check_method=$lt_cv_deplibs_check_method
  4458. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4459. -])# AC_DEPLIBS_CHECK_METHOD
  4460. -
  4461. -
  4462. -# AC_PROG_NM
  4463. -# ----------
  4464. -# find the pathname to a BSD-compatible name lister
  4465. -AC_DEFUN([AC_PROG_NM],
  4466. -[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  4467. -[if test -n "$NM"; then
  4468. - # Let the user override the test.
  4469. - lt_cv_path_NM="$NM"
  4470. -else
  4471. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4472. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  4473. - IFS="$lt_save_ifs"
  4474. - test -z "$ac_dir" && ac_dir=.
  4475. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  4476. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4477. - # Check to see if the nm accepts a BSD-compat flag.
  4478. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4479. - # nm: unknown option "B" ignored
  4480. - # Tru64's nm complains that /dev/null is an invalid object file
  4481. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4482. - */dev/null* | *'Invalid file or object type'*)
  4483. - lt_cv_path_NM="$tmp_nm -B"
  4484. - break
  4485. - ;;
  4486. - *)
  4487. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4488. - */dev/null*)
  4489. - lt_cv_path_NM="$tmp_nm -p"
  4490. - break
  4491. - ;;
  4492. - *)
  4493. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4494. - continue # so that we can try to find one that supports BSD flags
  4495. - ;;
  4496. - esac
  4497. - esac
  4498. - fi
  4499. - done
  4500. - IFS="$lt_save_ifs"
  4501. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  4502. -fi])
  4503. -NM="$lt_cv_path_NM"
  4504. -])# AC_PROG_NM
  4505. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4506. + version_type=freebsd-elf
  4507. + need_lib_prefix=no
  4508. + need_version=no
  4509. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  4510. + soname_spec='${libname}${release}${shared_ext}$major'
  4511. + shlibpath_var=LD_LIBRARY_PATH
  4512. + shlibpath_overrides_runpath=yes
  4513. + hardcode_into_libs=yes
  4514. + if test "$with_gnu_ld" = yes; then
  4515. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  4516. + else
  4517. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  4518. + case $host_os in
  4519. + sco3.2v5*)
  4520. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  4521. + ;;
  4522. + esac
  4523. + fi
  4524. + sys_lib_dlsearch_path_spec='/usr/lib'
  4525. + ;;
  4526. -# AC_CHECK_LIBM
  4527. -# -------------
  4528. -# check for math library
  4529. -AC_DEFUN([AC_CHECK_LIBM],
  4530. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4531. -LIBM=
  4532. -case $host in
  4533. -*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  4534. - # These system don't have libm, or don't need it
  4535. +tpf*)
  4536. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  4537. + version_type=linux
  4538. + need_lib_prefix=no
  4539. + need_version=no
  4540. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4541. + shlibpath_var=LD_LIBRARY_PATH
  4542. + shlibpath_overrides_runpath=no
  4543. + hardcode_into_libs=yes
  4544. ;;
  4545. -*-ncr-sysv4.3*)
  4546. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  4547. - AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  4548. +
  4549. +uts4*)
  4550. + version_type=linux
  4551. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  4552. + soname_spec='${libname}${release}${shared_ext}$major'
  4553. + shlibpath_var=LD_LIBRARY_PATH
  4554. ;;
  4555. +
  4556. *)
  4557. - AC_CHECK_LIB(m, cos, LIBM="-lm")
  4558. + dynamic_linker=no
  4559. ;;
  4560. esac
  4561. -])# AC_CHECK_LIBM
  4562. +AC_MSG_RESULT([$dynamic_linker])
  4563. +test "$dynamic_linker" = no && can_build_shared=no
  4564. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  4565. +if test "$GCC" = yes; then
  4566. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  4567. +fi
  4568. -# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  4569. -# -----------------------------------
  4570. -# sets LIBLTDL to the link flags for the libltdl convenience library and
  4571. -# LTDLINCL to the include flags for the libltdl header and adds
  4572. -# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  4573. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  4574. -# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  4575. -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  4576. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  4577. -# flat and you're not using automake, define top_builddir and
  4578. -# top_srcdir appropriately in the Makefiles.
  4579. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  4580. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4581. - case $enable_ltdl_convenience in
  4582. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  4583. - "") enable_ltdl_convenience=yes
  4584. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  4585. - esac
  4586. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  4587. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4588. - # For backwards non-gettext consistent compatibility...
  4589. - INCLTDL="$LTDLINCL"
  4590. -])# AC_LIBLTDL_CONVENIENCE
  4591. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  4592. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  4593. +fi
  4594. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  4595. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  4596. +fi
  4597. +_LT_DECL([], [variables_saved_for_relink], [1],
  4598. + [Variables whose values should be saved in libtool wrapper scripts and
  4599. + restored at link time])
  4600. +_LT_DECL([], [need_lib_prefix], [0],
  4601. + [Do we need the "lib" prefix for modules?])
  4602. +_LT_DECL([], [need_version], [0], [Do we need a version for libraries?])
  4603. +_LT_DECL([], [version_type], [0], [Library versioning type])
  4604. +_LT_DECL([], [runpath_var], [0], [Shared library runtime path variable])
  4605. +_LT_DECL([], [shlibpath_var], [0],[Shared library path variable])
  4606. +_LT_DECL([], [shlibpath_overrides_runpath], [0],
  4607. + [Is shlibpath searched before the hard-coded library search path?])
  4608. +_LT_DECL([], [libname_spec], [1], [Format of library name prefix])
  4609. +_LT_DECL([], [library_names_spec], [1],
  4610. + [[List of archive names. First name is the real one, the rest are links.
  4611. + The last name is the one that the linker finds with -lNAME]])
  4612. +_LT_DECL([], [soname_spec], [1],
  4613. + [[The coded name of the library, if different from the real name]])
  4614. +_LT_DECL([], [postinstall_cmds], [2],
  4615. + [Command to use after installation of a shared archive])
  4616. +_LT_DECL([], [postuninstall_cmds], [2],
  4617. + [Command to use after uninstallation of a shared archive])
  4618. +_LT_DECL([], [finish_cmds], [2],
  4619. + [Commands used to finish a libtool library installation in a directory])
  4620. +_LT_DECL([], [finish_eval], [1],
  4621. + [[As "finish_cmds", except a single script fragment to be evaled but
  4622. + not shown]])
  4623. +_LT_DECL([], [hardcode_into_libs], [0],
  4624. + [Whether we should hardcode library paths into libraries])
  4625. +_LT_DECL([], [sys_lib_search_path_spec], [2],
  4626. + [Compile-time system search path for libraries])
  4627. +_LT_DECL([], [sys_lib_dlsearch_path_spec], [2],
  4628. + [Run-time system search path for libraries])
  4629. +])# _LT_SYS_DYNAMIC_LINKER
  4630. -# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  4631. -# -----------------------------------
  4632. -# sets LIBLTDL to the link flags for the libltdl installable library and
  4633. -# LTDLINCL to the include flags for the libltdl header and adds
  4634. -# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  4635. -# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  4636. -# DIRECTORY is not provided and an installed libltdl is not found, it is
  4637. -# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  4638. -# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  4639. -# quotes!). If your package is not flat and you're not using automake,
  4640. -# define top_builddir and top_srcdir appropriately in the Makefiles.
  4641. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  4642. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  4643. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  4644. - AC_CHECK_LIB(ltdl, lt_dlinit,
  4645. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  4646. - [if test x"$enable_ltdl_install" = xno; then
  4647. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  4648. - else
  4649. - enable_ltdl_install=yes
  4650. - fi
  4651. - ])
  4652. - if test x"$enable_ltdl_install" = x"yes"; then
  4653. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  4654. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  4655. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  4656. - else
  4657. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  4658. - LIBLTDL="-lltdl"
  4659. - LTDLINCL=
  4660. - fi
  4661. - # For backwards non-gettext consistent compatibility...
  4662. - INCLTDL="$LTDLINCL"
  4663. -])# AC_LIBLTDL_INSTALLABLE
  4664. -
  4665. -
  4666. -# AC_LIBTOOL_CXX
  4667. -# --------------
  4668. -# enable support for C++ libraries
  4669. -AC_DEFUN([AC_LIBTOOL_CXX],
  4670. -[AC_REQUIRE([_LT_AC_LANG_CXX])
  4671. -])# AC_LIBTOOL_CXX
  4672. +# _LT_PATH_TOOL_PREFIX(TOOL)
  4673. +# --------------------------
  4674. +# find a file program which can recognize shared library
  4675. +AC_DEFUN([_LT_PATH_TOOL_PREFIX],
  4676. +[m4_require([_LT_DECL_EGREP])dnl
  4677. +AC_MSG_CHECKING([for $1])
  4678. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  4679. +[case $MAGIC_CMD in
  4680. +[[\\/*] | ?:[\\/]*])
  4681. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  4682. + ;;
  4683. +*)
  4684. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  4685. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4686. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  4687. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  4688. +dnl not every word. This closes a longstanding sh security hole.
  4689. + ac_dummy="m4_if([$2], , $PATH, [$2])"
  4690. + for ac_dir in $ac_dummy; do
  4691. + IFS="$lt_save_ifs"
  4692. + test -z "$ac_dir" && ac_dir=.
  4693. + if test -f $ac_dir/$1; then
  4694. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  4695. + if test -n "$file_magic_test_file"; then
  4696. + case $deplibs_check_method in
  4697. + "file_magic "*)
  4698. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  4699. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4700. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  4701. + $EGREP "$file_magic_regex" > /dev/null; then
  4702. + :
  4703. + else
  4704. + cat <<_LT_EOF 1>&2
  4705. -# _LT_AC_LANG_CXX
  4706. -# ---------------
  4707. -AC_DEFUN([_LT_AC_LANG_CXX],
  4708. -[AC_REQUIRE([AC_PROG_CXX])
  4709. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  4710. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  4711. -])# _LT_AC_LANG_CXX
  4712. +*** Warning: the command libtool uses to detect shared libraries,
  4713. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  4714. +*** The result is that libtool may fail to recognize shared libraries
  4715. +*** as such. This will affect the creation of libtool libraries that
  4716. +*** depend on shared libraries, but programs linked with such libtool
  4717. +*** libraries will work regardless of this problem. Nevertheless, you
  4718. +*** may want to report the problem to your system manager and/or to
  4719. +*** bug-libtool@gnu.org
  4720. -# _LT_AC_PROG_CXXCPP
  4721. -# ---------------
  4722. -AC_DEFUN([_LT_AC_PROG_CXXCPP],
  4723. -[
  4724. -AC_REQUIRE([AC_PROG_CXX])
  4725. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  4726. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  4727. - (test "X$CXX" != "Xg++"))) ; then
  4728. - AC_PROG_CXXCPP
  4729. +_LT_EOF
  4730. + fi ;;
  4731. + esac
  4732. + fi
  4733. + break
  4734. + fi
  4735. + done
  4736. + IFS="$lt_save_ifs"
  4737. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  4738. + ;;
  4739. +esac])
  4740. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  4741. +if test -n "$MAGIC_CMD"; then
  4742. + AC_MSG_RESULT($MAGIC_CMD)
  4743. +else
  4744. + AC_MSG_RESULT(no)
  4745. fi
  4746. -])# _LT_AC_PROG_CXXCPP
  4747. -
  4748. -# AC_LIBTOOL_F77
  4749. -# --------------
  4750. -# enable support for Fortran 77 libraries
  4751. -AC_DEFUN([AC_LIBTOOL_F77],
  4752. -[AC_REQUIRE([_LT_AC_LANG_F77])
  4753. -])# AC_LIBTOOL_F77
  4754. -
  4755. +_LT_DECL([], [MAGIC_CMD], [0],
  4756. + [Used to examine libraries when file_magic_cmd begins with "file"])dnl
  4757. +])# _LT_PATH_TOOL_PREFIX
  4758. -# _LT_AC_LANG_F77
  4759. -# ---------------
  4760. -AC_DEFUN([_LT_AC_LANG_F77],
  4761. -[AC_REQUIRE([AC_PROG_F77])
  4762. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  4763. -])# _LT_AC_LANG_F77
  4764. -
  4765. -
  4766. -# AC_LIBTOOL_GCJ
  4767. -# --------------
  4768. -# enable support for GCJ libraries
  4769. -AC_DEFUN([AC_LIBTOOL_GCJ],
  4770. -[AC_REQUIRE([_LT_AC_LANG_GCJ])
  4771. -])# AC_LIBTOOL_GCJ
  4772. +# Old name:
  4773. +AU_ALIAS([AC_PATH_TOOL_PREFIX], [_LT_PATH_TOOL_PREFIX])
  4774. +dnl aclocal-1.4 backwards compatibility:
  4775. +dnl AC_DEFUN([AC_PATH_TOOL_PREFIX], [])
  4776. -# _LT_AC_LANG_GCJ
  4777. -# ---------------
  4778. -AC_DEFUN([_LT_AC_LANG_GCJ],
  4779. -[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  4780. - [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  4781. - [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  4782. - [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  4783. - [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  4784. - [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  4785. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  4786. -])# _LT_AC_LANG_GCJ
  4787. -
  4788. -
  4789. -# AC_LIBTOOL_RC
  4790. +# _LT_PATH_MAGIC
  4791. # --------------
  4792. -# enable support for Windows resource files
  4793. -AC_DEFUN([AC_LIBTOOL_RC],
  4794. -[AC_REQUIRE([LT_AC_PROG_RC])
  4795. -_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  4796. -])# AC_LIBTOOL_RC
  4797. -
  4798. -
  4799. -# AC_LIBTOOL_LANG_C_CONFIG
  4800. -# ------------------------
  4801. -# Ensure that the configuration vars for the C compiler are
  4802. -# suitably defined. Those variables are subsequently used by
  4803. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4804. -AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  4805. -AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  4806. -[lt_save_CC="$CC"
  4807. -AC_LANG_PUSH(C)
  4808. -
  4809. -# Source file extension for C test sources.
  4810. -ac_ext=c
  4811. -
  4812. -# Object file extension for compiled C test sources.
  4813. -objext=o
  4814. -_LT_AC_TAGVAR(objext, $1)=$objext
  4815. -
  4816. -# Code to be used in simple compile tests
  4817. -lt_simple_compile_test_code="int some_variable = 0;\n"
  4818. +# find a file program which can recognize a shared library
  4819. +m4_defun([_LT_PATH_MAGIC],
  4820. +[_LT_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  4821. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  4822. + if test -n "$ac_tool_prefix"; then
  4823. + _LT_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  4824. + else
  4825. + MAGIC_CMD=:
  4826. + fi
  4827. +fi
  4828. +])# _LT_PATH_MAGIC
  4829. -# Code to be used in simple link tests
  4830. -lt_simple_link_test_code='int main(){return(0);}\n'
  4831. -_LT_AC_SYS_COMPILER
  4832. +# LT_PATH_LD
  4833. +# ----------
  4834. +# find the pathname to the GNU or non-GNU linker
  4835. +AC_DEFUN([LT_PATH_LD],
  4836. +[AC_REQUIRE([AC_PROG_CC])dnl
  4837. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  4838. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  4839. +m4_require([_LT_DECL_SED])dnl
  4840. +m4_require([_LT_DECL_EGREP])dnl
  4841. -# save warnings/boilerplate of simple test code
  4842. -_LT_COMPILER_BOILERPLATE
  4843. -_LT_LINKER_BOILERPLATE
  4844. +AC_ARG_WITH([gnu-ld],
  4845. + [AS_HELP_STRING([--with-gnu-ld],
  4846. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  4847. + [test "$withval" = no || with_gnu_ld=yes],
  4848. + [with_gnu_ld=no])dnl
  4849. -#
  4850. -# Check for any special shared library compilation flags.
  4851. -#
  4852. -_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  4853. -if test "$GCC" = no; then
  4854. - case $host_os in
  4855. - sco3.2v5*)
  4856. - _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  4857. +ac_prog=ld
  4858. +if test "$GCC" = yes; then
  4859. + # Check if gcc -print-prog-name=ld gives a path.
  4860. + AC_MSG_CHECKING([for ld used by $CC])
  4861. + case $host in
  4862. + *-*-mingw*)
  4863. + # gcc leaves a trailing carriage return which upsets mingw
  4864. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4865. + *)
  4866. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4867. + esac
  4868. + case $ac_prog in
  4869. + # Accept absolute paths.
  4870. + [[\\/]]* | ?:[[\\/]]*)
  4871. + re_direlt='/[[^/]][[^/]]*/\.\./'
  4872. + # Canonicalize the pathname of ld
  4873. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4874. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4875. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4876. + done
  4877. + test -z "$LD" && LD="$ac_prog"
  4878. + ;;
  4879. + "")
  4880. + # If it fails, then pretend we aren't using GCC.
  4881. + ac_prog=ld
  4882. + ;;
  4883. + *)
  4884. + # If it is relative, then search for the first ld in PATH.
  4885. + with_gnu_ld=unknown
  4886. ;;
  4887. esac
  4888. +elif test "$with_gnu_ld" = yes; then
  4889. + AC_MSG_CHECKING([for GNU ld])
  4890. +else
  4891. + AC_MSG_CHECKING([for non-GNU ld])
  4892. fi
  4893. -if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  4894. - AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  4895. - if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
  4896. - else
  4897. - AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  4898. - _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  4899. - fi
  4900. +AC_CACHE_VAL(lt_cv_path_LD,
  4901. +[if test -z "$LD"; then
  4902. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4903. + for ac_dir in $PATH; do
  4904. + IFS="$lt_save_ifs"
  4905. + test -z "$ac_dir" && ac_dir=.
  4906. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4907. + lt_cv_path_LD="$ac_dir/$ac_prog"
  4908. + # Check to see if the program is GNU ld. I'd rather use --version,
  4909. + # but apparently some variants of GNU ld only accept -v.
  4910. + # Break only if it was the GNU/non-GNU ld that we prefer.
  4911. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4912. + *GNU* | *'with BFD'*)
  4913. + test "$with_gnu_ld" != no && break
  4914. + ;;
  4915. + *)
  4916. + test "$with_gnu_ld" != yes && break
  4917. + ;;
  4918. + esac
  4919. + fi
  4920. + done
  4921. + IFS="$lt_save_ifs"
  4922. +else
  4923. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4924. +fi])
  4925. +LD="$lt_cv_path_LD"
  4926. +if test -n "$LD"; then
  4927. + AC_MSG_RESULT($LD)
  4928. +else
  4929. + AC_MSG_RESULT(no)
  4930. fi
  4931. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  4932. +_LT_PATH_LD_GNU
  4933. +AC_SUBST([LD])
  4934. +_LT_TAGDECL([], [LD], [1], [The linker used to build libraries])
  4935. +])# LT_PATH_LD
  4936. -#
  4937. -# Check to make sure the static flag actually works.
  4938. -#
  4939. -AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  4940. - _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  4941. - $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  4942. - [],
  4943. - [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4944. -
  4945. -
  4946. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4947. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4948. -AC_LIBTOOL_PROG_CC_C_O($1)
  4949. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4950. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4951. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4952. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4953. -AC_LIBTOOL_SYS_LIB_STRIP
  4954. -AC_LIBTOOL_DLOPEN_SELF($1)
  4955. -
  4956. -# Report which librarie types wil actually be built
  4957. -AC_MSG_CHECKING([if libtool supports shared libraries])
  4958. -AC_MSG_RESULT([$can_build_shared])
  4959. -
  4960. -AC_MSG_CHECKING([whether to build shared libraries])
  4961. -test "$can_build_shared" = "no" && enable_shared=no
  4962. -
  4963. -# On AIX, shared libraries and static libraries use the same namespace, and
  4964. -# are all built from PIC.
  4965. -case "$host_os" in
  4966. -aix3*)
  4967. - test "$enable_shared" = yes && enable_static=no
  4968. - if test -n "$RANLIB"; then
  4969. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4970. - postinstall_cmds='$RANLIB $lib'
  4971. - fi
  4972. +# Old names:
  4973. +AU_ALIAS([AM_PROG_LD], [LT_PATH_LD])
  4974. +AU_ALIAS([AC_PROG_LD], [LT_PATH_LD])
  4975. +dnl aclocal-1.4 backwards compatibility:
  4976. +dnl AC_DEFUN([AM_PROG_LD], [])
  4977. +dnl AC_DEFUN([AC_PROG_LD], [])
  4978. +
  4979. +
  4980. +# _LT_PATH_LD_GNU
  4981. +#- --------------
  4982. +m4_defun([_LT_PATH_LD_GNU],
  4983. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  4984. +[# I'd rather use --version here, but apparently some GNU lds only accept -v.
  4985. +case `$LD -v 2>&1 </dev/null` in
  4986. +*GNU* | *'with BFD'*)
  4987. + lt_cv_prog_gnu_ld=yes
  4988. + ;;
  4989. +*)
  4990. + lt_cv_prog_gnu_ld=no
  4991. ;;
  4992. +esac])
  4993. +with_gnu_ld=$lt_cv_prog_gnu_ld
  4994. +])# _LT_PATH_LD_GNU
  4995. -aix4* | aix5*)
  4996. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4997. - test "$enable_shared" = yes && enable_static=no
  4998. - fi
  4999. +
  5000. +# _LT_CMD_RELOAD
  5001. +# --------------
  5002. +# find reload flag for linker
  5003. +# -- PORTME Some linkers may need a different reload flag.
  5004. +m4_defun([_LT_CMD_RELOAD],
  5005. +[AC_CACHE_CHECK([for $LD option to reload object files],
  5006. + lt_cv_ld_reload_flag,
  5007. + [lt_cv_ld_reload_flag='-r'])
  5008. +reload_flag=$lt_cv_ld_reload_flag
  5009. +case $reload_flag in
  5010. +"" | " "*) ;;
  5011. +*) reload_flag=" $reload_flag" ;;
  5012. +esac
  5013. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5014. +case $host_os in
  5015. + darwin*)
  5016. + if test "$GCC" = yes; then
  5017. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5018. + else
  5019. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5020. + fi
  5021. ;;
  5022. esac
  5023. -AC_MSG_RESULT([$enable_shared])
  5024. -
  5025. -AC_MSG_CHECKING([whether to build static libraries])
  5026. -# Make sure either enable_shared or enable_static is yes.
  5027. -test "$enable_shared" = yes || enable_static=yes
  5028. -AC_MSG_RESULT([$enable_static])
  5029. +_LT_DECL([], [reload_flag], [1], [How to create reloadable object files])dnl
  5030. +_LT_DECL([], [reload_cmds], [2])dnl
  5031. +])# _LT_CMD_RELOAD
  5032. -AC_LIBTOOL_CONFIG($1)
  5033. -AC_LANG_POP
  5034. -CC="$lt_save_CC"
  5035. -])# AC_LIBTOOL_LANG_C_CONFIG
  5036. +# _LT_CHECK_MAGIC_METHOD
  5037. +# ----------------------
  5038. +# how to check for library dependencies
  5039. +# -- PORTME fill in with the dynamic library characteristics
  5040. +m4_defun([_LT_CHECK_MAGIC_METHOD],
  5041. +[m4_require([_LT_DECL_EGREP])
  5042. +m4_require([_LT_DECL_OBJDUMP])
  5043. +AC_CACHE_CHECK([how to recognize dependent libraries],
  5044. +lt_cv_deplibs_check_method,
  5045. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  5046. +lt_cv_file_magic_test_file=
  5047. +lt_cv_deplibs_check_method='unknown'
  5048. +# Need to set the preceding variable on all platforms that support
  5049. +# interlibrary dependencies.
  5050. +# 'none' -- dependencies not supported.
  5051. +# `unknown' -- same as none, but documents that we really don't know.
  5052. +# 'pass_all' -- all dependencies passed with no checks.
  5053. +# 'test_compile' -- check by making test program.
  5054. +# 'file_magic [[regex]]' -- check by looking for files in library path
  5055. +# which responds to the $file_magic_cmd with a given extended regex.
  5056. +# If you have `file' or equivalent on your system and you're not sure
  5057. +# whether `pass_all' will *always* work, you probably want this one.
  5058. +case $host_os in
  5059. +aix[[4-9]]*)
  5060. + lt_cv_deplibs_check_method=pass_all
  5061. + ;;
  5062. -# AC_LIBTOOL_LANG_CXX_CONFIG
  5063. -# --------------------------
  5064. -# Ensure that the configuration vars for the C compiler are
  5065. -# suitably defined. Those variables are subsequently used by
  5066. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5067. -AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  5068. -AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  5069. -[AC_LANG_PUSH(C++)
  5070. -AC_REQUIRE([AC_PROG_CXX])
  5071. -AC_REQUIRE([_LT_AC_PROG_CXXCPP])
  5072. -
  5073. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5074. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5075. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5076. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5077. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5078. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5079. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5080. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5081. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5082. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5083. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5084. -_LT_AC_TAGVAR(module_cmds, $1)=
  5085. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5086. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5087. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5088. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5089. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5090. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5091. +beos*)
  5092. + lt_cv_deplibs_check_method=pass_all
  5093. + ;;
  5094. -# Dependencies to place before and after the object being linked:
  5095. -_LT_AC_TAGVAR(predep_objects, $1)=
  5096. -_LT_AC_TAGVAR(postdep_objects, $1)=
  5097. -_LT_AC_TAGVAR(predeps, $1)=
  5098. -_LT_AC_TAGVAR(postdeps, $1)=
  5099. -_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  5100. +bsdi[[45]]*)
  5101. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  5102. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  5103. + lt_cv_file_magic_test_file=/shlib/libc.so
  5104. + ;;
  5105. -# Source file extension for C++ test sources.
  5106. -ac_ext=cc
  5107. +cygwin*)
  5108. + # func_win32_libid is a shell function defined in ltmain.sh
  5109. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5110. + lt_cv_file_magic_cmd='func_win32_libid'
  5111. + ;;
  5112. -# Object file extension for compiled C++ test sources.
  5113. -objext=o
  5114. -_LT_AC_TAGVAR(objext, $1)=$objext
  5115. +mingw* | pw32*)
  5116. + # Base MSYS/MinGW do not provide the 'file' command needed by
  5117. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5118. + # unless we find 'file', for example because we are cross-compiling.
  5119. + if ( file / ) >/dev/null 2>&1; then
  5120. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5121. + lt_cv_file_magic_cmd='func_win32_libid'
  5122. + else
  5123. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  5124. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5125. + fi
  5126. + ;;
  5127. -# Code to be used in simple compile tests
  5128. -lt_simple_compile_test_code="int some_variable = 0;\n"
  5129. +cegcc)
  5130. + # use the weaker test based on 'objdump'. See mingw*.
  5131. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5132. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  5133. + ;;
  5134. -# Code to be used in simple link tests
  5135. -lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  5136. +darwin* | rhapsody*)
  5137. + lt_cv_deplibs_check_method=pass_all
  5138. + ;;
  5139. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5140. -_LT_AC_SYS_COMPILER
  5141. -
  5142. -# save warnings/boilerplate of simple test code
  5143. -_LT_COMPILER_BOILERPLATE
  5144. -_LT_LINKER_BOILERPLATE
  5145. -
  5146. -# Allow CC to be a program name with arguments.
  5147. -lt_save_CC=$CC
  5148. -lt_save_LD=$LD
  5149. -lt_save_GCC=$GCC
  5150. -GCC=$GXX
  5151. -lt_save_with_gnu_ld=$with_gnu_ld
  5152. -lt_save_path_LD=$lt_cv_path_LD
  5153. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  5154. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  5155. -else
  5156. - unset lt_cv_prog_gnu_ld
  5157. -fi
  5158. -if test -n "${lt_cv_path_LDCXX+set}"; then
  5159. - lt_cv_path_LD=$lt_cv_path_LDCXX
  5160. -else
  5161. - unset lt_cv_path_LD
  5162. -fi
  5163. -test -z "${LDCXX+set}" || LD=$LDCXX
  5164. -CC=${CXX-"c++"}
  5165. -compiler=$CC
  5166. -_LT_AC_TAGVAR(compiler, $1)=$CC
  5167. -_LT_CC_BASENAME([$compiler])
  5168. -
  5169. -# We don't want -fno-exception wen compiling C++ code, so set the
  5170. -# no_builtin_flag separately
  5171. -if test "$GXX" = yes; then
  5172. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  5173. -else
  5174. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  5175. -fi
  5176. +freebsd* | dragonfly*)
  5177. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5178. + case $host_cpu in
  5179. + i*86 )
  5180. + # Not sure whether the presence of OpenBSD here was a mistake.
  5181. + # Let's accept both of them until this is cleared up.
  5182. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[[3-9]]86 (compact )?demand paged shared library'
  5183. + lt_cv_file_magic_cmd=/usr/bin/file
  5184. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5185. + ;;
  5186. + esac
  5187. + else
  5188. + lt_cv_deplibs_check_method=pass_all
  5189. + fi
  5190. + ;;
  5191. -if test "$GXX" = yes; then
  5192. - # Set up default GNU C++ configuration
  5193. +gnu*)
  5194. + lt_cv_deplibs_check_method=pass_all
  5195. + ;;
  5196. - AC_PROG_LD
  5197. +hpux10.20* | hpux11*)
  5198. + lt_cv_file_magic_cmd=/usr/bin/file
  5199. + case $host_cpu in
  5200. + ia64*)
  5201. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  5202. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5203. + ;;
  5204. + hppa*64*)
  5205. + [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]']
  5206. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5207. + ;;
  5208. + *)
  5209. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  5210. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5211. + ;;
  5212. + esac
  5213. + ;;
  5214. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  5215. - # archiving commands below assume that GNU ld is being used.
  5216. - if test "$with_gnu_ld" = yes; then
  5217. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5218. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  5219. +interix[[3-9]]*)
  5220. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5221. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|\.a)$'
  5222. + ;;
  5223. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5224. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5225. +irix5* | irix6* | nonstopux*)
  5226. + case $LD in
  5227. + *-32|*"-32 ") libmagic=32-bit;;
  5228. + *-n32|*"-n32 ") libmagic=N32;;
  5229. + *-64|*"-64 ") libmagic=64-bit;;
  5230. + *) libmagic=never-match;;
  5231. + esac
  5232. + lt_cv_deplibs_check_method=pass_all
  5233. + ;;
  5234. - # If archive_cmds runs LD, not CC, wlarc should be empty
  5235. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  5236. - # investigate it a little bit more. (MM)
  5237. - wlarc='${wl}'
  5238. +# This must be Linux ELF.
  5239. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5240. + lt_cv_deplibs_check_method=pass_all
  5241. + ;;
  5242. - # ancient GNU ld didn't support --whole-archive et. al.
  5243. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  5244. - grep 'no-whole-archive' > /dev/null; then
  5245. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5246. - else
  5247. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5248. - fi
  5249. +netbsd* | netbsdelf*-gnu)
  5250. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5251. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5252. else
  5253. - with_gnu_ld=no
  5254. - wlarc=
  5255. -
  5256. - # A generic and very simple default shared library creation
  5257. - # command for GNU C++ for the case where it uses the native
  5258. - # linker, instead of GNU ld. If possible, this setting should
  5259. - # overridden to take advantage of the native linker features on
  5260. - # the platform it is being used on.
  5261. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5262. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  5263. fi
  5264. + ;;
  5265. - # Commands to make compiler produce verbose output that lists
  5266. - # what "hidden" libraries, object files and flags are used when
  5267. - # linking a shared library.
  5268. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5269. -
  5270. -else
  5271. - GXX=no
  5272. - with_gnu_ld=no
  5273. - wlarc=
  5274. -fi
  5275. +newos6*)
  5276. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  5277. + lt_cv_file_magic_cmd=/usr/bin/file
  5278. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5279. + ;;
  5280. -# PORTME: fill in a description of your system's C++ link characteristics
  5281. -AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  5282. -_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5283. -case $host_os in
  5284. - aix3*)
  5285. - # FIXME: insert proper C++ library support
  5286. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5287. - ;;
  5288. - aix4* | aix5*)
  5289. - if test "$host_cpu" = ia64; then
  5290. - # On IA64, the linker does run time linking by default, so we don't
  5291. - # have to do anything special.
  5292. - aix_use_runtimelinking=no
  5293. - exp_sym_flag='-Bexport'
  5294. - no_entry_flag=""
  5295. - else
  5296. - aix_use_runtimelinking=no
  5297. +*nto* | *qnx*)
  5298. + lt_cv_deplibs_check_method=pass_all
  5299. + ;;
  5300. - # Test if we are trying to use run time linking or normal
  5301. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  5302. - # need to do runtime linking.
  5303. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  5304. - for ld_flag in $LDFLAGS; do
  5305. - case $ld_flag in
  5306. - *-brtl*)
  5307. - aix_use_runtimelinking=yes
  5308. - break
  5309. - ;;
  5310. - esac
  5311. - done
  5312. - esac
  5313. +openbsd*)
  5314. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5315. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|\.so|_pic\.a)$'
  5316. + else
  5317. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  5318. + fi
  5319. + ;;
  5320. - exp_sym_flag='-bexport'
  5321. - no_entry_flag='-bnoentry'
  5322. - fi
  5323. +osf3* | osf4* | osf5*)
  5324. + lt_cv_deplibs_check_method=pass_all
  5325. + ;;
  5326. - # When large executables or shared objects are built, AIX ld can
  5327. - # have problems creating the table of contents. If linking a library
  5328. - # or program results in "error TOC overflow" add -mminimal-toc to
  5329. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  5330. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  5331. -
  5332. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  5333. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5334. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  5335. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5336. +rdos*)
  5337. + lt_cv_deplibs_check_method=pass_all
  5338. + ;;
  5339. - if test "$GXX" = yes; then
  5340. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  5341. - # We only want to do this on AIX 4.2 and lower, the check
  5342. - # below for broken collect2 doesn't work under 4.3+
  5343. - collect2name=`${CC} -print-prog-name=collect2`
  5344. - if test -f "$collect2name" && \
  5345. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  5346. - then
  5347. - # We have reworked collect2
  5348. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5349. - else
  5350. - # We have old collect2
  5351. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  5352. - # It fails to find uninstalled libraries when the uninstalled
  5353. - # path is not listed in the libpath. Setting hardcode_minus_L
  5354. - # to unsupported forces relinking
  5355. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  5356. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5357. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5358. - fi
  5359. - esac
  5360. - shared_flag='-shared'
  5361. - if test "$aix_use_runtimelinking" = yes; then
  5362. - shared_flag="$shared_flag "'${wl}-G'
  5363. - fi
  5364. - else
  5365. - # not using gcc
  5366. - if test "$host_cpu" = ia64; then
  5367. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  5368. - # chokes on -Wl,-G. The following line is correct:
  5369. - shared_flag='-G'
  5370. - else
  5371. - if test "$aix_use_runtimelinking" = yes; then
  5372. - shared_flag='${wl}-G'
  5373. - else
  5374. - shared_flag='${wl}-bM:SRE'
  5375. - fi
  5376. - fi
  5377. - fi
  5378. +solaris*)
  5379. + lt_cv_deplibs_check_method=pass_all
  5380. + ;;
  5381. - # It seems that -bexpall does not export symbols beginning with
  5382. - # underscore (_), so it is better to generate a list of symbols to export.
  5383. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5384. - if test "$aix_use_runtimelinking" = yes; then
  5385. - # Warning - without using the other runtime loading flags (-brtl),
  5386. - # -berok will link without error, but may produce a broken library.
  5387. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  5388. - # Determine the default libpath from the value encoded in an empty executable.
  5389. - _LT_AC_SYS_LIBPATH_AIX
  5390. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5391. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5392. + lt_cv_deplibs_check_method=pass_all
  5393. + ;;
  5394. - _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"
  5395. - else
  5396. - if test "$host_cpu" = ia64; then
  5397. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  5398. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  5399. - _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"
  5400. - else
  5401. - # Determine the default libpath from the value encoded in an empty executable.
  5402. - _LT_AC_SYS_LIBPATH_AIX
  5403. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  5404. - # Warning - without using the other run time loading flags,
  5405. - # -berok will link without error, but may produce a broken library.
  5406. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  5407. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  5408. - # -bexpall does not export symbols beginning with underscore (_)
  5409. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  5410. - # Exported symbols can be pulled into shared objects from archives
  5411. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  5412. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  5413. - # This is similar to how AIX traditionally builds it's shared libraries.
  5414. - _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'
  5415. - fi
  5416. - fi
  5417. +sysv4 | sysv4.3*)
  5418. + case $host_vendor in
  5419. + motorola)
  5420. + 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]]'
  5421. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5422. ;;
  5423. - chorus*)
  5424. - case $cc_basename in
  5425. - *)
  5426. - # FIXME: insert proper C++ library support
  5427. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5428. - ;;
  5429. - esac
  5430. + ncr)
  5431. + lt_cv_deplibs_check_method=pass_all
  5432. ;;
  5433. -
  5434. -
  5435. - cygwin* | mingw* | pw32*)
  5436. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  5437. - # as there is no search path for DLLs.
  5438. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5439. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  5440. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  5441. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  5442. -
  5443. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  5444. - _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'
  5445. - # If the export-symbols file already is a .def file (1st line
  5446. - # is EXPORTS), use it as is; otherwise, prepend...
  5447. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  5448. - cp $export_symbols $output_objdir/$soname.def;
  5449. - else
  5450. - echo EXPORTS > $output_objdir/$soname.def;
  5451. - cat $export_symbols >> $output_objdir/$soname.def;
  5452. - fi~
  5453. - $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'
  5454. - else
  5455. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5456. - fi
  5457. - ;;
  5458. - darwin* | rhapsody*)
  5459. - case "$host_os" in
  5460. - rhapsody* | darwin1.[[012]])
  5461. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  5462. - ;;
  5463. - *) # Darwin 1.3 on
  5464. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  5465. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5466. - else
  5467. - case ${MACOSX_DEPLOYMENT_TARGET} in
  5468. - 10.[[012]])
  5469. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  5470. - ;;
  5471. - 10.*)
  5472. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  5473. - ;;
  5474. - esac
  5475. - fi
  5476. - ;;
  5477. - esac
  5478. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5479. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5480. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  5481. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  5482. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5483. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5484. -
  5485. - if test "$GXX" = yes ; then
  5486. - lt_int_apple_cc_single_mod=no
  5487. - output_verbose_link_cmd='echo'
  5488. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  5489. - lt_int_apple_cc_single_mod=yes
  5490. - fi
  5491. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5492. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  5493. - else
  5494. - _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'
  5495. - fi
  5496. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5497. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5498. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  5499. - _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}'
  5500. - else
  5501. - _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}'
  5502. - fi
  5503. - _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}'
  5504. - else
  5505. - case $cc_basename in
  5506. - xlc*)
  5507. - output_verbose_link_cmd='echo'
  5508. - _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'
  5509. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  5510. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  5511. - _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}'
  5512. - _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}'
  5513. - ;;
  5514. - *)
  5515. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5516. - ;;
  5517. - esac
  5518. - fi
  5519. - ;;
  5520. -
  5521. - dgux*)
  5522. - case $cc_basename in
  5523. - ec++*)
  5524. - # FIXME: insert proper C++ library support
  5525. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5526. - ;;
  5527. - ghcx*)
  5528. - # Green Hills C++ Compiler
  5529. - # FIXME: insert proper C++ library support
  5530. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5531. - ;;
  5532. - *)
  5533. - # FIXME: insert proper C++ library support
  5534. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5535. - ;;
  5536. - esac
  5537. + sequent)
  5538. + lt_cv_file_magic_cmd='/bin/file'
  5539. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  5540. ;;
  5541. - freebsd[[12]]*)
  5542. - # C++ shared libraries reported to be fairly broken before switch to ELF
  5543. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5544. - ;;
  5545. - freebsd-elf*)
  5546. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5547. - ;;
  5548. - freebsd* | kfreebsd*-gnu | dragonfly*)
  5549. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  5550. - # conventions
  5551. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  5552. + sni)
  5553. + lt_cv_file_magic_cmd='/bin/file'
  5554. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  5555. + lt_cv_file_magic_test_file=/lib/libc.so
  5556. ;;
  5557. - gnu*)
  5558. + siemens)
  5559. + lt_cv_deplibs_check_method=pass_all
  5560. ;;
  5561. - hpux9*)
  5562. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5563. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5564. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5565. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5566. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5567. - # but as the default
  5568. - # location of the library.
  5569. -
  5570. - case $cc_basename in
  5571. - CC*)
  5572. - # FIXME: insert proper C++ library support
  5573. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5574. - ;;
  5575. - aCC*)
  5576. - _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'
  5577. - # Commands to make compiler produce verbose output that lists
  5578. - # what "hidden" libraries, object files and flags are used when
  5579. - # linking a shared library.
  5580. - #
  5581. - # There doesn't appear to be a way to prevent this compiler from
  5582. - # explicitly linking system object files so we need to strip them
  5583. - # from the output so that they don't get included in the library
  5584. - # dependencies.
  5585. - 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'
  5586. - ;;
  5587. - *)
  5588. - if test "$GXX" = yes; then
  5589. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  5590. - else
  5591. - # FIXME: insert proper C++ library support
  5592. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5593. - fi
  5594. - ;;
  5595. - esac
  5596. + pc)
  5597. + lt_cv_deplibs_check_method=pass_all
  5598. ;;
  5599. - hpux10*|hpux11*)
  5600. - if test $with_gnu_ld = no; then
  5601. - case "$host_cpu" in
  5602. - hppa*64*)
  5603. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5604. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  5605. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5606. - ;;
  5607. - ia64*)
  5608. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  5609. - ;;
  5610. - *)
  5611. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  5612. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5613. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5614. - ;;
  5615. - esac
  5616. - fi
  5617. - case "$host_cpu" in
  5618. - hppa*64*)
  5619. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5620. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5621. - ;;
  5622. - ia64*)
  5623. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  5624. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5625. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5626. - # but as the default
  5627. - # location of the library.
  5628. - ;;
  5629. - *)
  5630. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5631. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  5632. - # but as the default
  5633. - # location of the library.
  5634. - ;;
  5635. - esac
  5636. + esac
  5637. + ;;
  5638. - case $cc_basename in
  5639. - CC*)
  5640. - # FIXME: insert proper C++ library support
  5641. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5642. - ;;
  5643. - aCC*)
  5644. - case "$host_cpu" in
  5645. - hppa*64*|ia64*)
  5646. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  5647. +tpf*)
  5648. + lt_cv_deplibs_check_method=pass_all
  5649. + ;;
  5650. +esac
  5651. +])
  5652. +file_magic_cmd=$lt_cv_file_magic_cmd
  5653. +deplibs_check_method=$lt_cv_deplibs_check_method
  5654. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5655. +
  5656. +_LT_DECL([], [deplibs_check_method], [1],
  5657. + [Method to check whether dependent libraries are shared objects])
  5658. +_LT_DECL([], [file_magic_cmd], [1],
  5659. + [Command to use when deplibs_check_method == "file_magic"])
  5660. +])# _LT_CHECK_MAGIC_METHOD
  5661. +
  5662. +
  5663. +# LT_PATH_NM
  5664. +# ----------
  5665. +# find the pathname to a BSD- or MS-compatible name lister
  5666. +AC_DEFUN([LT_PATH_NM],
  5667. +[AC_REQUIRE([AC_PROG_CC])dnl
  5668. +AC_CACHE_CHECK([for BSD- or MS-compatible name lister (nm)], lt_cv_path_NM,
  5669. +[if test -n "$NM"; then
  5670. + # Let the user override the test.
  5671. + lt_cv_path_NM="$NM"
  5672. +else
  5673. + lt_nm_to_check="${ac_tool_prefix}nm"
  5674. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5675. + lt_nm_to_check="$lt_nm_to_check nm"
  5676. + fi
  5677. + for lt_tmp_nm in $lt_nm_to_check; do
  5678. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5679. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5680. + IFS="$lt_save_ifs"
  5681. + test -z "$ac_dir" && ac_dir=.
  5682. + tmp_nm="$ac_dir/$lt_tmp_nm"
  5683. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5684. + # Check to see if the nm accepts a BSD-compat flag.
  5685. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5686. + # nm: unknown option "B" ignored
  5687. + # Tru64's nm complains that /dev/null is an invalid object file
  5688. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5689. + */dev/null* | *'Invalid file or object type'*)
  5690. + lt_cv_path_NM="$tmp_nm -B"
  5691. + break
  5692. ;;
  5693. *)
  5694. - _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'
  5695. - ;;
  5696. - esac
  5697. - # Commands to make compiler produce verbose output that lists
  5698. - # what "hidden" libraries, object files and flags are used when
  5699. - # linking a shared library.
  5700. - #
  5701. - # There doesn't appear to be a way to prevent this compiler from
  5702. - # explicitly linking system object files so we need to strip them
  5703. - # from the output so that they don't get included in the library
  5704. - # dependencies.
  5705. - 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'
  5706. - ;;
  5707. - *)
  5708. - if test "$GXX" = yes; then
  5709. - if test $with_gnu_ld = no; then
  5710. - case "$host_cpu" in
  5711. - ia64*|hppa*64*)
  5712. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  5713. - ;;
  5714. - *)
  5715. - _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'
  5716. - ;;
  5717. - esac
  5718. - fi
  5719. - else
  5720. - # FIXME: insert proper C++ library support
  5721. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5722. - fi
  5723. - ;;
  5724. - esac
  5725. - ;;
  5726. - irix5* | irix6*)
  5727. - case $cc_basename in
  5728. - CC*)
  5729. - # SGI C++
  5730. - _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'
  5731. -
  5732. - # Archives containing C++ object files must be created using
  5733. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  5734. - # necessary to make sure instantiated templates are included
  5735. - # in the archive.
  5736. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  5737. - ;;
  5738. - *)
  5739. - if test "$GXX" = yes; then
  5740. - if test "$with_gnu_ld" = no; then
  5741. - _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'
  5742. - else
  5743. - _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'
  5744. - fi
  5745. - fi
  5746. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5747. - ;;
  5748. - esac
  5749. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5750. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5751. - ;;
  5752. - linux*)
  5753. - case $cc_basename in
  5754. - KCC*)
  5755. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5756. -
  5757. - # KCC will only create a shared library if the output file
  5758. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5759. - # to its proper name (with version) after linking.
  5760. - _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'
  5761. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  5762. - # Commands to make compiler produce verbose output that lists
  5763. - # what "hidden" libraries, object files and flags are used when
  5764. - # linking a shared library.
  5765. - #
  5766. - # There doesn't appear to be a way to prevent this compiler from
  5767. - # explicitly linking system object files so we need to strip them
  5768. - # from the output so that they don't get included in the library
  5769. - # dependencies.
  5770. - 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'
  5771. -
  5772. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  5773. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5774. -
  5775. - # Archives containing C++ object files must be created using
  5776. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5777. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5778. - ;;
  5779. - icpc*)
  5780. - # Intel C++
  5781. - with_gnu_ld=yes
  5782. - # version 8.0 and above of icpc choke on multiply defined symbols
  5783. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  5784. - # earlier do not add the objects themselves.
  5785. - case `$CC -V 2>&1` in
  5786. - *"Version 7."*)
  5787. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5788. - _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'
  5789. - ;;
  5790. - *) # Version 8.0 or newer
  5791. - tmp_idyn=
  5792. - case $host_cpu in
  5793. - ia64*) tmp_idyn=' -i_dynamic';;
  5794. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5795. + */dev/null*)
  5796. + lt_cv_path_NM="$tmp_nm -p"
  5797. + break
  5798. + ;;
  5799. + *)
  5800. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5801. + continue # so that we can try to find one that supports BSD flags
  5802. + ;;
  5803. esac
  5804. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5805. - _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'
  5806. ;;
  5807. esac
  5808. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5809. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5810. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5811. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  5812. - ;;
  5813. - pgCC*)
  5814. - # Portland Group C++ compiler
  5815. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  5816. - _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'
  5817. -
  5818. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  5819. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  5820. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  5821. - ;;
  5822. - cxx*)
  5823. - # Compaq C++
  5824. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  5825. - _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'
  5826. -
  5827. - runpath_var=LD_RUN_PATH
  5828. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5829. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5830. -
  5831. - # Commands to make compiler produce verbose output that lists
  5832. - # what "hidden" libraries, object files and flags are used when
  5833. - # linking a shared library.
  5834. - #
  5835. - # There doesn't appear to be a way to prevent this compiler from
  5836. - # explicitly linking system object files so we need to strip them
  5837. - # from the output so that they don't get included in the library
  5838. - # dependencies.
  5839. - 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'
  5840. - ;;
  5841. - esac
  5842. - ;;
  5843. - lynxos*)
  5844. - # FIXME: insert proper C++ library support
  5845. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5846. - ;;
  5847. - m88k*)
  5848. - # FIXME: insert proper C++ library support
  5849. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5850. - ;;
  5851. - mvs*)
  5852. - case $cc_basename in
  5853. - cxx*)
  5854. - # FIXME: insert proper C++ library support
  5855. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5856. - ;;
  5857. - *)
  5858. - # FIXME: insert proper C++ library support
  5859. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5860. - ;;
  5861. - esac
  5862. - ;;
  5863. - netbsd*)
  5864. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5865. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5866. - wlarc=
  5867. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5868. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5869. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5870. - fi
  5871. - # Workaround some broken pre-1.5 toolchains
  5872. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5873. - ;;
  5874. - openbsd2*)
  5875. - # C++ shared libraries are fairly broken
  5876. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5877. - ;;
  5878. - openbsd*)
  5879. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5880. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5881. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  5882. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5883. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5884. - _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'
  5885. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  5886. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  5887. - fi
  5888. - output_verbose_link_cmd='echo'
  5889. - ;;
  5890. - osf3*)
  5891. - case $cc_basename in
  5892. - KCC*)
  5893. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5894. -
  5895. - # KCC will only create a shared library if the output file
  5896. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5897. - # to its proper name (with version) after linking.
  5898. - _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'
  5899. -
  5900. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5901. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5902. -
  5903. - # Archives containing C++ object files must be created using
  5904. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5905. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5906. -
  5907. - ;;
  5908. - RCC*)
  5909. - # Rational C++ 2.4.1
  5910. - # FIXME: insert proper C++ library support
  5911. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5912. - ;;
  5913. - cxx*)
  5914. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5915. - _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'
  5916. -
  5917. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5918. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5919. -
  5920. - # Commands to make compiler produce verbose output that lists
  5921. - # what "hidden" libraries, object files and flags are used when
  5922. - # linking a shared library.
  5923. - #
  5924. - # There doesn't appear to be a way to prevent this compiler from
  5925. - # explicitly linking system object files so we need to strip them
  5926. - # from the output so that they don't get included in the library
  5927. - # dependencies.
  5928. - 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'
  5929. - ;;
  5930. - *)
  5931. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5932. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5933. - _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'
  5934. -
  5935. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5936. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5937. -
  5938. - # Commands to make compiler produce verbose output that lists
  5939. - # what "hidden" libraries, object files and flags are used when
  5940. - # linking a shared library.
  5941. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5942. -
  5943. - else
  5944. - # FIXME: insert proper C++ library support
  5945. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5946. - fi
  5947. - ;;
  5948. - esac
  5949. - ;;
  5950. - osf4* | osf5*)
  5951. - case $cc_basename in
  5952. - KCC*)
  5953. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  5954. -
  5955. - # KCC will only create a shared library if the output file
  5956. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5957. - # to its proper name (with version) after linking.
  5958. - _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'
  5959. -
  5960. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5961. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5962. -
  5963. - # Archives containing C++ object files must be created using
  5964. - # the KAI C++ compiler.
  5965. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5966. - ;;
  5967. - RCC*)
  5968. - # Rational C++ 2.4.1
  5969. - # FIXME: insert proper C++ library support
  5970. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5971. - ;;
  5972. - cxx*)
  5973. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5974. - _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'
  5975. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5976. - echo "-hidden">> $lib.exp~
  5977. - $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~
  5978. - $rm $lib.exp'
  5979. -
  5980. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5981. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5982. -
  5983. - # Commands to make compiler produce verbose output that lists
  5984. - # what "hidden" libraries, object files and flags are used when
  5985. - # linking a shared library.
  5986. - #
  5987. - # There doesn't appear to be a way to prevent this compiler from
  5988. - # explicitly linking system object files so we need to strip them
  5989. - # from the output so that they don't get included in the library
  5990. - # dependencies.
  5991. - 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'
  5992. - ;;
  5993. - *)
  5994. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5995. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5996. - _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'
  5997. -
  5998. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5999. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  6000. -
  6001. - # Commands to make compiler produce verbose output that lists
  6002. - # what "hidden" libraries, object files and flags are used when
  6003. - # linking a shared library.
  6004. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  6005. -
  6006. - else
  6007. - # FIXME: insert proper C++ library support
  6008. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6009. - fi
  6010. - ;;
  6011. - esac
  6012. - ;;
  6013. - psos*)
  6014. - # FIXME: insert proper C++ library support
  6015. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6016. - ;;
  6017. - sco*)
  6018. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6019. - case $cc_basename in
  6020. - CC*)
  6021. - # FIXME: insert proper C++ library support
  6022. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6023. - ;;
  6024. - *)
  6025. - # FIXME: insert proper C++ library support
  6026. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6027. - ;;
  6028. - esac
  6029. - ;;
  6030. - sunos4*)
  6031. - case $cc_basename in
  6032. - CC*)
  6033. - # Sun C++ 4.x
  6034. - # FIXME: insert proper C++ library support
  6035. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6036. - ;;
  6037. - lcc*)
  6038. - # Lucid
  6039. - # FIXME: insert proper C++ library support
  6040. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6041. - ;;
  6042. - *)
  6043. - # FIXME: insert proper C++ library support
  6044. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6045. - ;;
  6046. - esac
  6047. - ;;
  6048. - solaris*)
  6049. - case $cc_basename in
  6050. - CC*)
  6051. - # Sun C++ 4.2, 5.x and Centerline C++
  6052. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  6053. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  6054. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6055. - $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'
  6056. -
  6057. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  6058. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  6059. - case $host_os in
  6060. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  6061. - *)
  6062. - # The C++ compiler is used as linker so we must use $wl
  6063. - # flag to pass the commands to the underlying system
  6064. - # linker. We must also pass each convience library through
  6065. - # to the system linker between allextract/defaultextract.
  6066. - # The C++ compiler will combine linker options so we
  6067. - # cannot just pass the convience library names through
  6068. - # without $wl.
  6069. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  6070. - _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'
  6071. - ;;
  6072. - esac
  6073. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  6074. -
  6075. - # Commands to make compiler produce verbose output that lists
  6076. - # what "hidden" libraries, object files and flags are used when
  6077. - # linking a shared library.
  6078. - #
  6079. - # There doesn't appear to be a way to prevent this compiler from
  6080. - # explicitly linking system object files so we need to strip them
  6081. - # from the output so that they don't get included in the library
  6082. - # dependencies.
  6083. - 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'
  6084. -
  6085. - # Archives containing C++ object files must be created using
  6086. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  6087. - # necessary to make sure instantiated templates are included
  6088. - # in the archive.
  6089. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  6090. - ;;
  6091. - gcx*)
  6092. - # Green Hills C++ Compiler
  6093. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6094. -
  6095. - # The C++ compiler must be used to create the archive.
  6096. - _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  6097. - ;;
  6098. - *)
  6099. - # GNU C++ compiler with Solaris linker
  6100. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  6101. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  6102. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  6103. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6104. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6105. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6106. + fi
  6107. + done
  6108. + IFS="$lt_save_ifs"
  6109. + done
  6110. + : ${lt_cv_path_NM=no}
  6111. +fi])
  6112. +if test "$lt_cv_path_NM" != "no"; then
  6113. + NM="$lt_cv_path_NM"
  6114. +else
  6115. + # Didn't find any BSD compatible name lister, look for dumpbin.
  6116. + AC_CHECK_TOOLS(DUMPBIN, ["dumpbin -symbols" "link -dump -symbols"], :)
  6117. + AC_SUBST([DUMPBIN])
  6118. + if test "$DUMPBIN" != ":"; then
  6119. + NM="$DUMPBIN"
  6120. + fi
  6121. +fi
  6122. +test -z "$NM" && NM=nm
  6123. +AC_SUBST([NM])
  6124. +_LT_DECL([], [NM], [1], [A BSD- or MS-compatible name lister])dnl
  6125. - # Commands to make compiler produce verbose output that lists
  6126. - # what "hidden" libraries, object files and flags are used when
  6127. - # linking a shared library.
  6128. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6129. - else
  6130. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  6131. - # platform.
  6132. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  6133. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  6134. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  6135. +AC_CACHE_CHECK([the name lister ($NM) interface], [lt_cv_nm_interface],
  6136. + [lt_cv_nm_interface="BSD nm"
  6137. + echo "int some_variable = 0;" > conftest.$ac_ext
  6138. + (eval echo "\"\$as_me:__oline__: $ac_compile\"" >&AS_MESSAGE_LOG_FD)
  6139. + (eval "$ac_compile" 2>conftest.err)
  6140. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6141. + (eval echo "\"\$as_me:__oline__: $NM \\\"conftest.$ac_objext\\\"\"" >&AS_MESSAGE_LOG_FD)
  6142. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  6143. + cat conftest.err >&AS_MESSAGE_LOG_FD
  6144. + (eval echo "\"\$as_me:__oline__: output\"" >&AS_MESSAGE_LOG_FD)
  6145. + cat conftest.out >&AS_MESSAGE_LOG_FD
  6146. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  6147. + lt_cv_nm_interface="MS dumpbin"
  6148. + fi
  6149. + rm -f conftest*])
  6150. +])# LT_PATH_NM
  6151. +
  6152. +# Old names:
  6153. +AU_ALIAS([AM_PROG_NM], [LT_PATH_NM])
  6154. +AU_ALIAS([AC_PROG_NM], [LT_PATH_NM])
  6155. +dnl aclocal-1.4 backwards compatibility:
  6156. +dnl AC_DEFUN([AM_PROG_NM], [])
  6157. +dnl AC_DEFUN([AC_PROG_NM], [])
  6158. - # Commands to make compiler produce verbose output that lists
  6159. - # what "hidden" libraries, object files and flags are used when
  6160. - # linking a shared library.
  6161. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  6162. - fi
  6163. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  6164. - fi
  6165. - ;;
  6166. - esac
  6167. - ;;
  6168. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  6169. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6170. - ;;
  6171. - tandem*)
  6172. - case $cc_basename in
  6173. - NCC*)
  6174. - # NonStop-UX NCC 3.20
  6175. - # FIXME: insert proper C++ library support
  6176. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6177. - ;;
  6178. - *)
  6179. - # FIXME: insert proper C++ library support
  6180. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6181. - ;;
  6182. - esac
  6183. - ;;
  6184. - vxworks*)
  6185. - # FIXME: insert proper C++ library support
  6186. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6187. - ;;
  6188. - *)
  6189. - # FIXME: insert proper C++ library support
  6190. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  6191. - ;;
  6192. +# LT_LIB_M
  6193. +# --------
  6194. +# check for math library
  6195. +AC_DEFUN([LT_LIB_M],
  6196. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6197. +LIBM=
  6198. +case $host in
  6199. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  6200. + # These system don't have libm, or don't need it
  6201. + ;;
  6202. +*-ncr-sysv4.3*)
  6203. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  6204. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  6205. + ;;
  6206. +*)
  6207. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  6208. + ;;
  6209. esac
  6210. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  6211. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6212. -
  6213. -_LT_AC_TAGVAR(GCC, $1)="$GXX"
  6214. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6215. +AC_SUBST([LIBM])
  6216. +])# LT_LIB_M
  6217. -AC_LIBTOOL_POSTDEP_PREDEP($1)
  6218. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6219. -AC_LIBTOOL_PROG_CC_C_O($1)
  6220. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6221. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6222. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6223. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6224. -AC_LIBTOOL_SYS_LIB_STRIP
  6225. -AC_LIBTOOL_DLOPEN_SELF($1)
  6226. +# Old name:
  6227. +AU_ALIAS([AC_CHECK_LIBM], [LT_LIB_M])
  6228. +dnl aclocal-1.4 backwards compatibility:
  6229. +dnl AC_DEFUN([AC_CHECK_LIBM], [])
  6230. -AC_LIBTOOL_CONFIG($1)
  6231. -AC_LANG_POP
  6232. -CC=$lt_save_CC
  6233. -LDCXX=$LD
  6234. -LD=$lt_save_LD
  6235. -GCC=$lt_save_GCC
  6236. -with_gnu_ldcxx=$with_gnu_ld
  6237. -with_gnu_ld=$lt_save_with_gnu_ld
  6238. -lt_cv_path_LDCXX=$lt_cv_path_LD
  6239. -lt_cv_path_LD=$lt_save_path_LD
  6240. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  6241. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  6242. -])# AC_LIBTOOL_LANG_CXX_CONFIG
  6243. +# _LT_COMPILER_NO_RTTI([TAGNAME])
  6244. +# -------------------------------
  6245. +m4_defun([_LT_COMPILER_NO_RTTI],
  6246. +[m4_require([_LT_TAG_COMPILER])dnl
  6247. -# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  6248. -# ------------------------
  6249. -# Figure out "hidden" library dependencies from verbose
  6250. -# compiler output when linking a shared library.
  6251. -# Parse the compiler output and extract the necessary
  6252. -# objects, libraries and library flags.
  6253. -AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  6254. -dnl we can't use the lt_simple_compile_test_code here,
  6255. -dnl because it contains code intended for an executable,
  6256. -dnl not a library. It's possible we should let each
  6257. -dnl tag define a new lt_????_link_test_code variable,
  6258. -dnl but it's only used here...
  6259. -ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  6260. -int a;
  6261. -void foo (void) { a = 0; }
  6262. -EOF
  6263. -],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  6264. -class Foo
  6265. -{
  6266. -public:
  6267. - Foo (void) { a = 0; }
  6268. -private:
  6269. - int a;
  6270. -};
  6271. -EOF
  6272. -],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  6273. - subroutine foo
  6274. - implicit none
  6275. - integer*4 a
  6276. - a=0
  6277. - return
  6278. - end
  6279. -EOF
  6280. -],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  6281. -public class foo {
  6282. - private int a;
  6283. - public void bar (void) {
  6284. - a = 0;
  6285. - }
  6286. -};
  6287. -EOF
  6288. -])
  6289. -dnl Parse the compiler output and extract the necessary
  6290. -dnl objects, libraries and library flags.
  6291. -if AC_TRY_EVAL(ac_compile); then
  6292. - # Parse the compiler output and extract the necessary
  6293. - # objects, libraries and library flags.
  6294. +_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6295. - # Sentinel used to keep track of whether or not we are before
  6296. - # the conftest object file.
  6297. - pre_test_object_deps_done=no
  6298. +if test "$GCC" = yes; then
  6299. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6300. - # The `*' in the case matches for architectures that use `case' in
  6301. - # $output_verbose_cmd can trigger glob expansion during the loop
  6302. - # eval without this substitution.
  6303. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  6304. + _LT_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6305. + lt_cv_prog_compiler_rtti_exceptions,
  6306. + [-fno-rtti -fno-exceptions], [],
  6307. + [_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6308. +fi
  6309. +_LT_TAGDECL([no_builtin_flag], [lt_prog_compiler_no_builtin_flag], [1],
  6310. + [Compiler flag to turn off builtin functions])
  6311. +])# _LT_COMPILER_NO_RTTI
  6312. - for p in `eval $output_verbose_link_cmd`; do
  6313. - case $p in
  6314. - -L* | -R* | -l*)
  6315. - # Some compilers place space between "-{L,R}" and the path.
  6316. - # Remove the space.
  6317. - if test $p = "-L" \
  6318. - || test $p = "-R"; then
  6319. - prev=$p
  6320. - continue
  6321. - else
  6322. - prev=
  6323. - fi
  6324. +# _LT_CMD_GLOBAL_SYMBOLS
  6325. +# ----------------------
  6326. +m4_defun([_LT_CMD_GLOBAL_SYMBOLS],
  6327. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  6328. +AC_REQUIRE([AC_PROG_CC])dnl
  6329. +AC_REQUIRE([LT_PATH_NM])dnl
  6330. +AC_REQUIRE([LT_PATH_LD])dnl
  6331. +m4_require([_LT_DECL_SED])dnl
  6332. +m4_require([_LT_DECL_EGREP])dnl
  6333. +m4_require([_LT_TAG_COMPILER])dnl
  6334. - if test "$pre_test_object_deps_done" = no; then
  6335. - case $p in
  6336. - -L* | -R*)
  6337. - # Internal compiler library paths should come after those
  6338. - # provided the user. The postdeps already come after the
  6339. - # user supplied libs so there is no need to process them.
  6340. - if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  6341. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  6342. - else
  6343. - _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  6344. - fi
  6345. - ;;
  6346. - # The "-l" case would never come before the object being
  6347. - # linked, so don't bother handling this case.
  6348. - esac
  6349. - else
  6350. - if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  6351. - _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  6352. - else
  6353. - _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  6354. - fi
  6355. - fi
  6356. - ;;
  6357. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6358. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6359. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6360. +[
  6361. +# These are sane defaults that work on at least a few old systems.
  6362. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6363. - *.$objext)
  6364. - # This assumes that the test object file only shows up
  6365. - # once in the compiler output.
  6366. - if test "$p" = "conftest.$objext"; then
  6367. - pre_test_object_deps_done=yes
  6368. - continue
  6369. - fi
  6370. +# Character class describing NM global symbol codes.
  6371. +symcode='[[BCDEGRST]]'
  6372. - if test "$pre_test_object_deps_done" = no; then
  6373. - if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  6374. - _LT_AC_TAGVAR(predep_objects, $1)="$p"
  6375. - else
  6376. - _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  6377. - fi
  6378. - else
  6379. - if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  6380. - _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  6381. - else
  6382. - _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  6383. - fi
  6384. - fi
  6385. - ;;
  6386. +# Regexp to match symbols that can be accessed directly from C.
  6387. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6388. - *) ;; # Ignore the rest.
  6389. +# Define system-specific variables.
  6390. +case $host_os in
  6391. +aix*)
  6392. + symcode='[[BCDT]]'
  6393. + ;;
  6394. +cygwin* | mingw* | pw32* | cegcc*)
  6395. + symcode='[[ABCDGISTW]]'
  6396. + ;;
  6397. +hpux*)
  6398. + if test "$host_cpu" = ia64; then
  6399. + symcode='[[ABCDEGRST]]'
  6400. + fi
  6401. + ;;
  6402. +irix* | nonstopux*)
  6403. + symcode='[[BCDEGRST]]'
  6404. + ;;
  6405. +osf*)
  6406. + symcode='[[BCDEGQRST]]'
  6407. + ;;
  6408. +solaris*)
  6409. + symcode='[[BDRT]]'
  6410. + ;;
  6411. +sco3.2v5*)
  6412. + symcode='[[DT]]'
  6413. + ;;
  6414. +sysv4.2uw2*)
  6415. + symcode='[[DT]]'
  6416. + ;;
  6417. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6418. + symcode='[[ABDT]]'
  6419. + ;;
  6420. +sysv4)
  6421. + symcode='[[DFNSTU]]'
  6422. + ;;
  6423. +esac
  6424. - esac
  6425. - done
  6426. +# If we're using GNU nm, then use its standard symbol codes.
  6427. +case `$NM -V 2>&1` in
  6428. +*GNU* | *'with BFD'*)
  6429. + symcode='[[ABCDGIRSTW]]' ;;
  6430. +esac
  6431. - # Clean up.
  6432. - rm -f a.out a.exe
  6433. -else
  6434. - echo "libtool.m4: error: problem compiling $1 test program"
  6435. -fi
  6436. +# Transform an extracted symbol line into a proper C declaration.
  6437. +# Some systems (esp. on ia64) link data and code symbols differently,
  6438. +# so use this general approach.
  6439. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6440. -$rm -f confest.$objext
  6441. +# Transform an extracted symbol line into symbol name and symbol address
  6442. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6443. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \(lib[[^ ]]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6444. -case " $_LT_AC_TAGVAR(postdeps, $1) " in
  6445. -*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  6446. +# Handle CRLF in mingw tool chain
  6447. +opt_cr=
  6448. +case $build_os in
  6449. +mingw*)
  6450. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6451. + ;;
  6452. esac
  6453. -])# AC_LIBTOOL_POSTDEP_PREDEP
  6454. -# AC_LIBTOOL_LANG_F77_CONFIG
  6455. -# ------------------------
  6456. -# Ensure that the configuration vars for the C compiler are
  6457. -# suitably defined. Those variables are subsequently used by
  6458. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6459. -AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  6460. -AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  6461. -[AC_REQUIRE([AC_PROG_F77])
  6462. -AC_LANG_PUSH(Fortran 77)
  6463. +# Try without a prefix underscore, then with it.
  6464. +for ac_symprfx in "" "_"; do
  6465. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6466. -_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  6467. -_LT_AC_TAGVAR(always_export_symbols, $1)=no
  6468. -_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  6469. -_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  6470. -_LT_AC_TAGVAR(hardcode_direct, $1)=no
  6471. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  6472. -_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  6473. -_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  6474. -_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  6475. -_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  6476. -_LT_AC_TAGVAR(module_cmds, $1)=
  6477. -_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  6478. -_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  6479. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6480. -_LT_AC_TAGVAR(no_undefined_flag, $1)=
  6481. -_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  6482. -_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  6483. + # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6484. + symxfrm="\\1 $ac_symprfx\\2 \\2"
  6485. -# Source file extension for f77 test sources.
  6486. -ac_ext=f
  6487. + # Write the raw and C identifiers.
  6488. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6489. + # Fake it for dumpbin and say T for any non-static function
  6490. + # and D for any global variable.
  6491. + # Also find C++ and __fastcall symbols from MSVC++,
  6492. + # which start with @ or ?.
  6493. + lt_cv_sys_global_symbol_pipe="$AWK ['"\
  6494. +" {last_section=section; section=\$ 3};"\
  6495. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6496. +" \$ 0!~/External *\|/{next};"\
  6497. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6498. +" {if(hide[section]) next};"\
  6499. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6500. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6501. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6502. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6503. +" ' prfx=^$ac_symprfx]"
  6504. + else
  6505. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6506. + fi
  6507. -# Object file extension for compiled f77 test sources.
  6508. -objext=o
  6509. -_LT_AC_TAGVAR(objext, $1)=$objext
  6510. + # Check to see that the pipe works correctly.
  6511. + pipe_works=no
  6512. -# Code to be used in simple compile tests
  6513. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  6514. + rm -f conftest*
  6515. + cat > conftest.$ac_ext <<_LT_EOF
  6516. +#ifdef __cplusplus
  6517. +extern "C" {
  6518. +#endif
  6519. +char nm_test_var;
  6520. +void nm_test_func(void);
  6521. +void nm_test_func(void){}
  6522. +#ifdef __cplusplus
  6523. +}
  6524. +#endif
  6525. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6526. +_LT_EOF
  6527. -# Code to be used in simple link tests
  6528. -lt_simple_link_test_code=" program t\n end\n"
  6529. + if AC_TRY_EVAL(ac_compile); then
  6530. + # Now try to grab the symbols.
  6531. + nlist=conftest.nm
  6532. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6533. + # Try sorting and uniquifying the output.
  6534. + if sort "$nlist" | uniq > "$nlist"T; then
  6535. + mv -f "$nlist"T "$nlist"
  6536. + else
  6537. + rm -f "$nlist"T
  6538. + fi
  6539. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6540. -_LT_AC_SYS_COMPILER
  6541. + # Make sure that we snagged all the symbols we need.
  6542. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6543. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6544. + cat <<_LT_EOF > conftest.$ac_ext
  6545. +#ifdef __cplusplus
  6546. +extern "C" {
  6547. +#endif
  6548. -# save warnings/boilerplate of simple test code
  6549. -_LT_COMPILER_BOILERPLATE
  6550. -_LT_LINKER_BOILERPLATE
  6551. +_LT_EOF
  6552. + # Now generate the symbol file.
  6553. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6554. -# Allow CC to be a program name with arguments.
  6555. -lt_save_CC="$CC"
  6556. -CC=${F77-"f77"}
  6557. -compiler=$CC
  6558. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6559. -_LT_CC_BASENAME([$compiler])
  6560. + cat <<_LT_EOF >> conftest.$ac_ext
  6561. -AC_MSG_CHECKING([if libtool supports shared libraries])
  6562. -AC_MSG_RESULT([$can_build_shared])
  6563. +/* The mapping between symbol names and symbols. */
  6564. +const struct {
  6565. + const char *name;
  6566. + void *address;
  6567. +}
  6568. +lt__PROGRAM__LTX_preloaded_symbols[[]] =
  6569. +{
  6570. + { "@PROGRAM@", (void *) 0 },
  6571. +_LT_EOF
  6572. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6573. + cat <<\_LT_EOF >> conftest.$ac_ext
  6574. + {0, (void *) 0}
  6575. +};
  6576. -AC_MSG_CHECKING([whether to build shared libraries])
  6577. -test "$can_build_shared" = "no" && enable_shared=no
  6578. +/* This works around a problem in FreeBSD linker */
  6579. +#ifdef FREEBSD_WORKAROUND
  6580. +static const void *lt_preloaded_setup() {
  6581. + return lt__PROGRAM__LTX_preloaded_symbols;
  6582. +}
  6583. +#endif
  6584. -# On AIX, shared libraries and static libraries use the same namespace, and
  6585. -# are all built from PIC.
  6586. -case "$host_os" in
  6587. -aix3*)
  6588. - test "$enable_shared" = yes && enable_static=no
  6589. - if test -n "$RANLIB"; then
  6590. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  6591. - postinstall_cmds='$RANLIB $lib'
  6592. - fi
  6593. - ;;
  6594. -aix4* | aix5*)
  6595. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6596. - test "$enable_shared" = yes && enable_static=no
  6597. +#ifdef __cplusplus
  6598. +}
  6599. +#endif
  6600. +_LT_EOF
  6601. + # Now try linking the two files.
  6602. + mv conftest.$ac_objext conftstm.$ac_objext
  6603. + lt_save_LIBS="$LIBS"
  6604. + lt_save_CFLAGS="$CFLAGS"
  6605. + LIBS="conftstm.$ac_objext"
  6606. + CFLAGS="$CFLAGS$_LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6607. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6608. + pipe_works=yes
  6609. + fi
  6610. + LIBS="$lt_save_LIBS"
  6611. + CFLAGS="$lt_save_CFLAGS"
  6612. + else
  6613. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6614. + fi
  6615. + else
  6616. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6617. + fi
  6618. + else
  6619. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6620. + fi
  6621. + else
  6622. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6623. + cat conftest.$ac_ext >&5
  6624. fi
  6625. - ;;
  6626. -esac
  6627. -AC_MSG_RESULT([$enable_shared])
  6628. -
  6629. -AC_MSG_CHECKING([whether to build static libraries])
  6630. -# Make sure either enable_shared or enable_static is yes.
  6631. -test "$enable_shared" = yes || enable_static=yes
  6632. -AC_MSG_RESULT([$enable_static])
  6633. -
  6634. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  6635. -
  6636. -_LT_AC_TAGVAR(GCC, $1)="$G77"
  6637. -_LT_AC_TAGVAR(LD, $1)="$LD"
  6638. -
  6639. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6640. -AC_LIBTOOL_PROG_CC_C_O($1)
  6641. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6642. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6643. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6644. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6645. -AC_LIBTOOL_SYS_LIB_STRIP
  6646. -
  6647. -
  6648. -AC_LIBTOOL_CONFIG($1)
  6649. -
  6650. -AC_LANG_POP
  6651. -CC="$lt_save_CC"
  6652. -])# AC_LIBTOOL_LANG_F77_CONFIG
  6653. -
  6654. -
  6655. -# AC_LIBTOOL_LANG_GCJ_CONFIG
  6656. -# --------------------------
  6657. -# Ensure that the configuration vars for the C compiler are
  6658. -# suitably defined. Those variables are subsequently used by
  6659. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6660. -AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  6661. -AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  6662. -[AC_LANG_SAVE
  6663. -
  6664. -# Source file extension for Java test sources.
  6665. -ac_ext=java
  6666. -
  6667. -# Object file extension for compiled Java test sources.
  6668. -objext=o
  6669. -_LT_AC_TAGVAR(objext, $1)=$objext
  6670. -
  6671. -# Code to be used in simple compile tests
  6672. -lt_simple_compile_test_code="class foo {}\n"
  6673. -
  6674. -# Code to be used in simple link tests
  6675. -lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }\n'
  6676. -
  6677. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6678. -_LT_AC_SYS_COMPILER
  6679. -
  6680. -# save warnings/boilerplate of simple test code
  6681. -_LT_COMPILER_BOILERPLATE
  6682. -_LT_LINKER_BOILERPLATE
  6683. -
  6684. -# Allow CC to be a program name with arguments.
  6685. -lt_save_CC="$CC"
  6686. -CC=${GCJ-"gcj"}
  6687. -compiler=$CC
  6688. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6689. -_LT_CC_BASENAME([$compiler])
  6690. -
  6691. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  6692. -_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  6693. -
  6694. -_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  6695. -
  6696. -AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  6697. -AC_LIBTOOL_PROG_COMPILER_PIC($1)
  6698. -AC_LIBTOOL_PROG_CC_C_O($1)
  6699. -AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  6700. -AC_LIBTOOL_PROG_LD_SHLIBS($1)
  6701. -AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  6702. -AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  6703. -AC_LIBTOOL_SYS_LIB_STRIP
  6704. -AC_LIBTOOL_DLOPEN_SELF($1)
  6705. -
  6706. -AC_LIBTOOL_CONFIG($1)
  6707. -
  6708. -AC_LANG_RESTORE
  6709. -CC="$lt_save_CC"
  6710. -])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6711. -
  6712. -
  6713. -# AC_LIBTOOL_LANG_RC_CONFIG
  6714. -# --------------------------
  6715. -# Ensure that the configuration vars for the Windows resource compiler are
  6716. -# suitably defined. Those variables are subsequently used by
  6717. -# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6718. -AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6719. -AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6720. -[AC_LANG_SAVE
  6721. -
  6722. -# Source file extension for RC test sources.
  6723. -ac_ext=rc
  6724. -
  6725. -# Object file extension for compiled RC test sources.
  6726. -objext=o
  6727. -_LT_AC_TAGVAR(objext, $1)=$objext
  6728. -
  6729. -# Code to be used in simple compile tests
  6730. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6731. + rm -rf conftest* conftst*
  6732. -# Code to be used in simple link tests
  6733. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  6734. + # Do not use the global_symbol_pipe unless it works.
  6735. + if test "$pipe_works" = yes; then
  6736. + break
  6737. + else
  6738. + lt_cv_sys_global_symbol_pipe=
  6739. + fi
  6740. +done
  6741. +])
  6742. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6743. + lt_cv_sys_global_symbol_to_cdecl=
  6744. +fi
  6745. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6746. + AC_MSG_RESULT(failed)
  6747. +else
  6748. + AC_MSG_RESULT(ok)
  6749. +fi
  6750. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6751. -_LT_AC_SYS_COMPILER
  6752. +_LT_DECL([global_symbol_pipe], [lt_cv_sys_global_symbol_pipe], [1],
  6753. + [Take the output of nm and produce a listing of raw symbols and C names])
  6754. +_LT_DECL([global_symbol_to_cdecl], [lt_cv_sys_global_symbol_to_cdecl], [1],
  6755. + [Transform the output of nm in a proper C declaration])
  6756. +_LT_DECL([global_symbol_to_c_name_address],
  6757. + [lt_cv_sys_global_symbol_to_c_name_address], [1],
  6758. + [Transform the output of nm in a C name address pair])
  6759. +_LT_DECL([global_symbol_to_c_name_address_lib_prefix],
  6760. + [lt_cv_sys_global_symbol_to_c_name_address_lib_prefix], [1],
  6761. + [Transform the output of nm in a C name address pair when lib prefix is needed])
  6762. +]) # _LT_CMD_GLOBAL_SYMBOLS
  6763. -# save warnings/boilerplate of simple test code
  6764. -_LT_COMPILER_BOILERPLATE
  6765. -_LT_LINKER_BOILERPLATE
  6766. -# Allow CC to be a program name with arguments.
  6767. -lt_save_CC="$CC"
  6768. -CC=${RC-"windres"}
  6769. -compiler=$CC
  6770. -_LT_AC_TAGVAR(compiler, $1)=$CC
  6771. -_LT_CC_BASENAME([$compiler])
  6772. -_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6773. +# _LT_COMPILER_PIC([TAGNAME])
  6774. +# ---------------------------
  6775. +m4_defun([_LT_COMPILER_PIC],
  6776. +[m4_require([_LT_TAG_COMPILER])dnl
  6777. +_LT_TAGVAR(lt_prog_compiler_wl, $1)=
  6778. +_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6779. +_LT_TAGVAR(lt_prog_compiler_static, $1)=
  6780. -AC_LIBTOOL_CONFIG($1)
  6781. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6782. +m4_if([$1], [CXX], [
  6783. + # C++ specific cases for pic, static, wl, etc.
  6784. + if test "$GXX" = yes; then
  6785. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6786. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6787. -AC_LANG_RESTORE
  6788. -CC="$lt_save_CC"
  6789. -])# AC_LIBTOOL_LANG_RC_CONFIG
  6790. + case $host_os in
  6791. + aix*)
  6792. + # All AIX code is PIC.
  6793. + if test "$host_cpu" = ia64; then
  6794. + # AIX 5 now supports IA64 processor
  6795. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6796. + fi
  6797. + ;;
  6798. + amigaos*)
  6799. + case $host_cpu in
  6800. + powerpc)
  6801. + # see comment about AmigaOS4 .so support
  6802. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6803. + ;;
  6804. + m68k)
  6805. + # FIXME: we need at least 68020 code to build shared libraries, but
  6806. + # adding the `-m68020' flag to GCC prevents building anything better,
  6807. + # like `-m68040'.
  6808. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6809. + ;;
  6810. + esac
  6811. + ;;
  6812. -# AC_LIBTOOL_CONFIG([TAGNAME])
  6813. -# ----------------------------
  6814. -# If TAGNAME is not passed, then create an initial libtool script
  6815. -# with a default configuration from the untagged config vars. Otherwise
  6816. -# add code to config.status for appending the configuration named by
  6817. -# TAGNAME from the matching tagged config vars.
  6818. -AC_DEFUN([AC_LIBTOOL_CONFIG],
  6819. -[# The else clause should only fire when bootstrapping the
  6820. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  6821. -# with your package, and you will get complaints that there are
  6822. -# no rules to generate ltmain.sh.
  6823. -if test -f "$ltmain"; then
  6824. - # See if we are running on zsh, and set the options which allow our commands through
  6825. - # without removal of \ escapes.
  6826. - if test -n "${ZSH_VERSION+set}" ; then
  6827. - setopt NO_GLOB_SUBST
  6828. - fi
  6829. - # Now quote all the things that may contain metacharacters while being
  6830. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  6831. - # variables and quote the copies for generation of the libtool script.
  6832. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  6833. - SED SHELL STRIP \
  6834. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6835. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6836. - deplibs_check_method reload_flag reload_cmds need_locks \
  6837. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6838. - lt_cv_sys_global_symbol_to_c_name_address \
  6839. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6840. - old_postinstall_cmds old_postuninstall_cmds \
  6841. - _LT_AC_TAGVAR(compiler, $1) \
  6842. - _LT_AC_TAGVAR(CC, $1) \
  6843. - _LT_AC_TAGVAR(LD, $1) \
  6844. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6845. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6846. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6847. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6848. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6849. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6850. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6851. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6852. - _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6853. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6854. - _LT_AC_TAGVAR(predep_objects, $1) \
  6855. - _LT_AC_TAGVAR(postdep_objects, $1) \
  6856. - _LT_AC_TAGVAR(predeps, $1) \
  6857. - _LT_AC_TAGVAR(postdeps, $1) \
  6858. - _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6859. - _LT_AC_TAGVAR(archive_cmds, $1) \
  6860. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6861. - _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6862. - _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6863. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6864. - _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6865. - _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6866. - _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  6867. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  6868. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  6869. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  6870. - _LT_AC_TAGVAR(hardcode_automatic, $1) \
  6871. - _LT_AC_TAGVAR(module_cmds, $1) \
  6872. - _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  6873. - _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  6874. - _LT_AC_TAGVAR(exclude_expsyms, $1) \
  6875. - _LT_AC_TAGVAR(include_expsyms, $1); do
  6876. -
  6877. - case $var in
  6878. - _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  6879. - _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  6880. - _LT_AC_TAGVAR(archive_cmds, $1) | \
  6881. - _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  6882. - _LT_AC_TAGVAR(module_cmds, $1) | \
  6883. - _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  6884. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  6885. - _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  6886. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  6887. - postinstall_cmds | postuninstall_cmds | \
  6888. - old_postinstall_cmds | old_postuninstall_cmds | \
  6889. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6890. - # Double-quote double-evaled strings.
  6891. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6892. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6893. + # PIC is the default for these OSes.
  6894. + ;;
  6895. + mingw* | cygwin* | os2* | pw32* | cegcc*)
  6896. + # This hack is so that the source file can tell whether it is being
  6897. + # built for inclusion in a dll (and should export symbols for example).
  6898. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6899. + # (--disable-auto-import) libraries
  6900. + m4_if([$1], [GCJ], [],
  6901. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  6902. + ;;
  6903. + darwin* | rhapsody*)
  6904. + # PIC is the default on this platform
  6905. + # Common symbols not allowed in MH_DYLIB files
  6906. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6907. + ;;
  6908. + *djgpp*)
  6909. + # DJGPP does not support shared libraries at all
  6910. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  6911. + ;;
  6912. + interix[[3-9]]*)
  6913. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6914. + # Instead, we relocate shared libraries at runtime.
  6915. + ;;
  6916. + sysv4*MP*)
  6917. + if test -d /usr/nec; then
  6918. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6919. + fi
  6920. + ;;
  6921. + hpux*)
  6922. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6923. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6924. + # sets the default TLS model and affects inlining.
  6925. + case $host_cpu in
  6926. + hppa*64*)
  6927. + ;;
  6928. + *)
  6929. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6930. + ;;
  6931. + esac
  6932. + ;;
  6933. + *qnx* | *nto*)
  6934. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  6935. + # it will coredump.
  6936. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  6937. ;;
  6938. *)
  6939. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  6940. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6941. ;;
  6942. esac
  6943. - done
  6944. -
  6945. - case $lt_echo in
  6946. - *'\[$]0 --fallback-echo"')
  6947. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  6948. - ;;
  6949. - esac
  6950. -
  6951. -ifelse([$1], [],
  6952. - [cfgfile="${ofile}T"
  6953. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  6954. - $rm -f "$cfgfile"
  6955. - AC_MSG_NOTICE([creating $ofile])],
  6956. - [cfgfile="$ofile"])
  6957. -
  6958. - cat <<__EOF__ >> "$cfgfile"
  6959. -ifelse([$1], [],
  6960. -[#! $SHELL
  6961. -
  6962. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6963. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6964. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6965. -#
  6966. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  6967. -# Free Software Foundation, Inc.
  6968. -#
  6969. -# This file is part of GNU Libtool:
  6970. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  6971. -#
  6972. -# This program is free software; you can redistribute it and/or modify
  6973. -# it under the terms of the GNU General Public License as published by
  6974. -# the Free Software Foundation; either version 2 of the License, or
  6975. -# (at your option) any later version.
  6976. -#
  6977. -# This program is distributed in the hope that it will be useful, but
  6978. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  6979. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  6980. -# General Public License for more details.
  6981. -#
  6982. -# You should have received a copy of the GNU General Public License
  6983. -# along with this program; if not, write to the Free Software
  6984. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  6985. -#
  6986. -# As a special exception to the GNU General Public License, if you
  6987. -# distribute this file as part of a program that contains a
  6988. -# configuration script generated by Autoconf, you may include it under
  6989. -# the same distribution terms that you use for the rest of that program.
  6990. -
  6991. -# A sed program that does not truncate output.
  6992. -SED=$lt_SED
  6993. -
  6994. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6995. -Xsed="$SED -e 1s/^X//"
  6996. -
  6997. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  6998. -# if CDPATH is set.
  6999. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  7000. -
  7001. -# The names of the tagged configurations supported by this script.
  7002. -available_tags=
  7003. -
  7004. -# ### BEGIN LIBTOOL CONFIG],
  7005. -[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  7006. -
  7007. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  7008. -
  7009. -# Shell to use when invoking shell scripts.
  7010. -SHELL=$lt_SHELL
  7011. -
  7012. -# Whether or not to build shared libraries.
  7013. -build_libtool_libs=$enable_shared
  7014. -
  7015. -# Whether or not to build static libraries.
  7016. -build_old_libs=$enable_static
  7017. -
  7018. -# Whether or not to add -lc for building shared libraries.
  7019. -build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  7020. -
  7021. -# Whether or not to disallow shared libs when runtime libs are static
  7022. -allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  7023. -
  7024. -# Whether or not to optimize for fast installation.
  7025. -fast_install=$enable_fast_install
  7026. -
  7027. -# The host system.
  7028. -host_alias=$host_alias
  7029. -host=$host
  7030. -host_os=$host_os
  7031. -
  7032. -# The build system.
  7033. -build_alias=$build_alias
  7034. -build=$build
  7035. -build_os=$build_os
  7036. -
  7037. -# An echo program that does not interpret backslashes.
  7038. -echo=$lt_echo
  7039. -
  7040. -# The archiver.
  7041. -AR=$lt_AR
  7042. -AR_FLAGS=$lt_AR_FLAGS
  7043. -
  7044. -# A C compiler.
  7045. -LTCC=$lt_LTCC
  7046. -
  7047. -# A language-specific compiler.
  7048. -CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  7049. -
  7050. -# Is the compiler the GNU C compiler?
  7051. -with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  7052. -
  7053. -# An ERE matcher.
  7054. -EGREP=$lt_EGREP
  7055. -
  7056. -# The linker used to build libraries.
  7057. -LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  7058. -
  7059. -# Whether we need hard or soft links.
  7060. -LN_S=$lt_LN_S
  7061. -
  7062. -# A BSD-compatible nm program.
  7063. -NM=$lt_NM
  7064. -
  7065. -# A symbol stripping program
  7066. -STRIP=$lt_STRIP
  7067. -
  7068. -# Used to examine libraries when file_magic_cmd begins "file"
  7069. -MAGIC_CMD=$MAGIC_CMD
  7070. -
  7071. -# Used on cygwin: DLL creation program.
  7072. -DLLTOOL="$DLLTOOL"
  7073. -
  7074. -# Used on cygwin: object dumper.
  7075. -OBJDUMP="$OBJDUMP"
  7076. -
  7077. -# Used on cygwin: assembler.
  7078. -AS="$AS"
  7079. -
  7080. -# The name of the directory that contains temporary libtool files.
  7081. -objdir=$objdir
  7082. -
  7083. -# How to create reloadable object files.
  7084. -reload_flag=$lt_reload_flag
  7085. -reload_cmds=$lt_reload_cmds
  7086. -
  7087. -# How to pass a linker flag through the compiler.
  7088. -wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  7089. -
  7090. -# Object file suffix (normally "o").
  7091. -objext="$ac_objext"
  7092. -
  7093. -# Old archive suffix (normally "a").
  7094. -libext="$libext"
  7095. -
  7096. -# Shared library suffix (normally ".so").
  7097. -shrext_cmds='$shrext_cmds'
  7098. -
  7099. -# Executable file suffix (normally "").
  7100. -exeext="$exeext"
  7101. -
  7102. -# Additional compiler flags for building library objects.
  7103. -pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  7104. -pic_mode=$pic_mode
  7105. -
  7106. -# What is the maximum length of a command?
  7107. -max_cmd_len=$lt_cv_sys_max_cmd_len
  7108. -
  7109. -# Does compiler simultaneously support -c and -o options?
  7110. -compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  7111. + else
  7112. + case $host_os in
  7113. + aix[[4-9]]*)
  7114. + # All AIX code is PIC.
  7115. + if test "$host_cpu" = ia64; then
  7116. + # AIX 5 now supports IA64 processor
  7117. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7118. + else
  7119. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7120. + fi
  7121. + ;;
  7122. + chorus*)
  7123. + case $cc_basename in
  7124. + cxch68*)
  7125. + # Green Hills C++ Compiler
  7126. + # _LT_TAGVAR(lt_prog_compiler_static, $1)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  7127. + ;;
  7128. + esac
  7129. + ;;
  7130. + dgux*)
  7131. + case $cc_basename in
  7132. + ec++*)
  7133. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7134. + ;;
  7135. + ghcx*)
  7136. + # Green Hills C++ Compiler
  7137. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7138. + ;;
  7139. + *)
  7140. + ;;
  7141. + esac
  7142. + ;;
  7143. + freebsd* | dragonfly*)
  7144. + # FreeBSD uses GNU C++
  7145. + ;;
  7146. + hpux9* | hpux10* | hpux11*)
  7147. + case $cc_basename in
  7148. + CC*)
  7149. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7150. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7151. + if test "$host_cpu" != ia64; then
  7152. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7153. + fi
  7154. + ;;
  7155. + aCC*)
  7156. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7157. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7158. + case $host_cpu in
  7159. + hppa*64*|ia64*)
  7160. + # +Z the default
  7161. + ;;
  7162. + *)
  7163. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7164. + ;;
  7165. + esac
  7166. + ;;
  7167. + *)
  7168. + ;;
  7169. + esac
  7170. + ;;
  7171. + interix*)
  7172. + # This is c89, which is MS Visual C++ (no shared libs)
  7173. + # Anyone wants to do a port?
  7174. + ;;
  7175. + irix5* | irix6* | nonstopux*)
  7176. + case $cc_basename in
  7177. + CC*)
  7178. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7179. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7180. + # CC pic flag -KPIC is the default.
  7181. + ;;
  7182. + *)
  7183. + ;;
  7184. + esac
  7185. + ;;
  7186. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7187. + case $cc_basename in
  7188. + KCC*)
  7189. + # KAI C++ Compiler
  7190. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7191. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7192. + ;;
  7193. + ecpc* )
  7194. + # old Intel C++ for x86_64 which still supported -KPIC.
  7195. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7196. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7197. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7198. + ;;
  7199. + icpc* )
  7200. + # Intel C++, used to be incompatible with GCC.
  7201. + # ICC 10 doesn't accept -KPIC any more.
  7202. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7203. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7204. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7205. + ;;
  7206. + pgCC* | pgcpp*)
  7207. + # Portland Group C++ compiler
  7208. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7209. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7210. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7211. + ;;
  7212. + cxx*)
  7213. + # Compaq C++
  7214. + # Make sure the PIC flag is empty. It appears that all Alpha
  7215. + # Linux and Compaq Tru64 Unix objects are PIC.
  7216. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7217. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7218. + ;;
  7219. + xlc* | xlC*)
  7220. + # IBM XL 8.0 on PPC
  7221. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7222. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7223. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7224. + ;;
  7225. + *)
  7226. + case `$CC -V 2>&1 | sed 5q` in
  7227. + *Sun\ C*)
  7228. + # Sun C++ 5.9
  7229. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7230. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7231. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7232. + ;;
  7233. + esac
  7234. + ;;
  7235. + esac
  7236. + ;;
  7237. + lynxos*)
  7238. + ;;
  7239. + m88k*)
  7240. + ;;
  7241. + mvs*)
  7242. + case $cc_basename in
  7243. + cxx*)
  7244. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  7245. + ;;
  7246. + *)
  7247. + ;;
  7248. + esac
  7249. + ;;
  7250. + netbsd* | netbsdelf*-gnu)
  7251. + ;;
  7252. + *qnx* | *nto*)
  7253. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7254. + # it will coredump.
  7255. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7256. + ;;
  7257. + osf3* | osf4* | osf5*)
  7258. + case $cc_basename in
  7259. + KCC*)
  7260. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  7261. + ;;
  7262. + RCC*)
  7263. + # Rational C++ 2.4.1
  7264. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7265. + ;;
  7266. + cxx*)
  7267. + # Digital/Compaq C++
  7268. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7269. + # Make sure the PIC flag is empty. It appears that all Alpha
  7270. + # Linux and Compaq Tru64 Unix objects are PIC.
  7271. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7272. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7273. + ;;
  7274. + *)
  7275. + ;;
  7276. + esac
  7277. + ;;
  7278. + psos*)
  7279. + ;;
  7280. + solaris*)
  7281. + case $cc_basename in
  7282. + CC*)
  7283. + # Sun C++ 4.2, 5.x and Centerline C++
  7284. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7285. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7286. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7287. + ;;
  7288. + gcx*)
  7289. + # Green Hills C++ Compiler
  7290. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7291. + ;;
  7292. + *)
  7293. + ;;
  7294. + esac
  7295. + ;;
  7296. + sunos4*)
  7297. + case $cc_basename in
  7298. + CC*)
  7299. + # Sun C++ 4.x
  7300. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7301. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7302. + ;;
  7303. + lcc*)
  7304. + # Lucid
  7305. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7306. + ;;
  7307. + *)
  7308. + ;;
  7309. + esac
  7310. + ;;
  7311. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7312. + case $cc_basename in
  7313. + CC*)
  7314. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7315. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7316. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7317. + ;;
  7318. + esac
  7319. + ;;
  7320. + tandem*)
  7321. + case $cc_basename in
  7322. + NCC*)
  7323. + # NonStop-UX NCC 3.20
  7324. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7325. + ;;
  7326. + *)
  7327. + ;;
  7328. + esac
  7329. + ;;
  7330. + vxworks*)
  7331. + ;;
  7332. + *)
  7333. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7334. + ;;
  7335. + esac
  7336. + fi
  7337. +],
  7338. +[
  7339. + if test "$GCC" = yes; then
  7340. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7341. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7342. -# Must we lock files when doing compilation?
  7343. -need_locks=$lt_need_locks
  7344. + case $host_os in
  7345. + aix*)
  7346. + # All AIX code is PIC.
  7347. + if test "$host_cpu" = ia64; then
  7348. + # AIX 5 now supports IA64 processor
  7349. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7350. + fi
  7351. + ;;
  7352. -# Do we need the lib prefix for modules?
  7353. -need_lib_prefix=$need_lib_prefix
  7354. + amigaos*)
  7355. + case $host_cpu in
  7356. + powerpc)
  7357. + # see comment about AmigaOS4 .so support
  7358. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7359. + ;;
  7360. + m68k)
  7361. + # FIXME: we need at least 68020 code to build shared libraries, but
  7362. + # adding the `-m68020' flag to GCC prevents building anything better,
  7363. + # like `-m68040'.
  7364. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7365. + ;;
  7366. + esac
  7367. + ;;
  7368. -# Do we need a version for libraries?
  7369. -need_version=$need_version
  7370. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7371. + # PIC is the default for these OSes.
  7372. + ;;
  7373. -# Whether dlopen is supported.
  7374. -dlopen_support=$enable_dlopen
  7375. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7376. + # This hack is so that the source file can tell whether it is being
  7377. + # built for inclusion in a dll (and should export symbols for example).
  7378. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7379. + # (--disable-auto-import) libraries
  7380. + m4_if([$1], [GCJ], [],
  7381. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7382. + ;;
  7383. -# Whether dlopen of programs is supported.
  7384. -dlopen_self=$enable_dlopen_self
  7385. + darwin* | rhapsody*)
  7386. + # PIC is the default on this platform
  7387. + # Common symbols not allowed in MH_DYLIB files
  7388. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7389. + ;;
  7390. -# Whether dlopen of statically linked programs is supported.
  7391. -dlopen_self_static=$enable_dlopen_self_static
  7392. + hpux*)
  7393. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7394. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7395. + # sets the default TLS model and affects inlining.
  7396. + case $host_cpu in
  7397. + hppa*64*)
  7398. + # +Z the default
  7399. + ;;
  7400. + *)
  7401. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7402. + ;;
  7403. + esac
  7404. + ;;
  7405. -# Compiler flag to prevent dynamic linking.
  7406. -link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  7407. + interix[[3-9]]*)
  7408. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7409. + # Instead, we relocate shared libraries at runtime.
  7410. + ;;
  7411. -# Compiler flag to turn off builtin functions.
  7412. -no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  7413. + msdosdjgpp*)
  7414. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7415. + # on systems that don't support them.
  7416. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7417. + enable_shared=no
  7418. + ;;
  7419. -# Compiler flag to allow reflexive dlopens.
  7420. -export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  7421. + *nto* | *qnx*)
  7422. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7423. + # it will coredump.
  7424. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7425. + ;;
  7426. -# Compiler flag to generate shared objects directly from archives.
  7427. -whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  7428. + sysv4*MP*)
  7429. + if test -d /usr/nec; then
  7430. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7431. + fi
  7432. + ;;
  7433. -# Compiler flag to generate thread-safe objects.
  7434. -thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  7435. + *)
  7436. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7437. + ;;
  7438. + esac
  7439. + else
  7440. + # PORTME Check for flag to pass linker flags through the system compiler.
  7441. + case $host_os in
  7442. + aix*)
  7443. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7444. + if test "$host_cpu" = ia64; then
  7445. + # AIX 5 now supports IA64 processor
  7446. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7447. + else
  7448. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7449. + fi
  7450. + ;;
  7451. -# Library versioning type.
  7452. -version_type=$version_type
  7453. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  7454. + # This hack is so that the source file can tell whether it is being
  7455. + # built for inclusion in a dll (and should export symbols for example).
  7456. + m4_if([$1], [GCJ], [],
  7457. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'])
  7458. + ;;
  7459. -# Format of library name prefix.
  7460. -libname_spec=$lt_libname_spec
  7461. + hpux9* | hpux10* | hpux11*)
  7462. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7463. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7464. + # not for PA HP-UX.
  7465. + case $host_cpu in
  7466. + hppa*64*|ia64*)
  7467. + # +Z the default
  7468. + ;;
  7469. + *)
  7470. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7471. + ;;
  7472. + esac
  7473. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7474. + _LT_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7475. + ;;
  7476. -# List of archive names. First name is the real one, the rest are links.
  7477. -# The last name is the one that the linker finds with -lNAME.
  7478. -library_names_spec=$lt_library_names_spec
  7479. + irix5* | irix6* | nonstopux*)
  7480. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7481. + # PIC (with -KPIC) is the default.
  7482. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7483. + ;;
  7484. -# The coded name of the library, if different from the real name.
  7485. -soname_spec=$lt_soname_spec
  7486. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7487. + case $cc_basename in
  7488. + # old Intel for x86_64 which still supported -KPIC.
  7489. + ecc*)
  7490. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7491. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7492. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7493. + ;;
  7494. + # icc used to be incompatible with GCC.
  7495. + # ICC 10 doesn't accept -KPIC any more.
  7496. + icc* | ifort*)
  7497. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7498. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7499. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7500. + ;;
  7501. + # Lahey Fortran 8.1.
  7502. + lf95*)
  7503. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7504. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='--shared'
  7505. + _LT_TAGVAR(lt_prog_compiler_static, $1)='--static'
  7506. + ;;
  7507. + pgcc* | pgf77* | pgf90* | pgf95*)
  7508. + # Portland Group compilers (*not* the Pentium gcc compiler,
  7509. + # which looks to be a dead project)
  7510. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7511. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  7512. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7513. + ;;
  7514. + ccc*)
  7515. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7516. + # All Alpha code is PIC.
  7517. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7518. + ;;
  7519. + xl*)
  7520. + # IBM XL C 8.0/Fortran 10.1 on PPC
  7521. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7522. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-qpic'
  7523. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-qstaticlink'
  7524. + ;;
  7525. + *)
  7526. + case `$CC -V 2>&1 | sed 5q` in
  7527. + *Sun\ C*)
  7528. + # Sun C 5.9
  7529. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7530. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7531. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7532. + ;;
  7533. + *Sun\ F*)
  7534. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7535. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7536. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7537. + _LT_TAGVAR(lt_prog_compiler_wl, $1)=''
  7538. + ;;
  7539. + esac
  7540. + ;;
  7541. + esac
  7542. + ;;
  7543. -# Commands used to build and install an old-style archive.
  7544. -RANLIB=$lt_RANLIB
  7545. -old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  7546. -old_postinstall_cmds=$lt_old_postinstall_cmds
  7547. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  7548. + newsos6)
  7549. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7550. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7551. + ;;
  7552. -# Create an old-style archive from a shared archive.
  7553. -old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  7554. + *nto* | *qnx*)
  7555. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  7556. + # it will coredump.
  7557. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC -shared'
  7558. + ;;
  7559. -# Create a temporary old-style archive to link instead of a shared archive.
  7560. -old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  7561. + osf3* | osf4* | osf5*)
  7562. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7563. + # All OSF/1 code is PIC.
  7564. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7565. + ;;
  7566. -# Commands used to build and install a shared archive.
  7567. -archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  7568. -archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  7569. -postinstall_cmds=$lt_postinstall_cmds
  7570. -postuninstall_cmds=$lt_postuninstall_cmds
  7571. + rdos*)
  7572. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7573. + ;;
  7574. -# Commands used to build a loadable module (assumed same as above if empty)
  7575. -module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  7576. -module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  7577. + solaris*)
  7578. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7579. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7580. + case $cc_basename in
  7581. + f77* | f90* | f95*)
  7582. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  7583. + *)
  7584. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  7585. + esac
  7586. + ;;
  7587. -# Commands to strip libraries.
  7588. -old_striplib=$lt_old_striplib
  7589. -striplib=$lt_striplib
  7590. + sunos4*)
  7591. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7592. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7593. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7594. + ;;
  7595. -# Dependencies to place before the objects being linked to create a
  7596. -# shared library.
  7597. -predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  7598. + sysv4 | sysv4.2uw2* | sysv4.3*)
  7599. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7600. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7601. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7602. + ;;
  7603. -# Dependencies to place after the objects being linked to create a
  7604. -# shared library.
  7605. -postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  7606. + sysv4*MP*)
  7607. + if test -d /usr/nec ;then
  7608. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7609. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7610. + fi
  7611. + ;;
  7612. -# Dependencies to place before the objects being linked to create a
  7613. -# shared library.
  7614. -predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  7615. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7616. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7617. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7618. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7619. + ;;
  7620. -# Dependencies to place after the objects being linked to create a
  7621. -# shared library.
  7622. -postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  7623. + unicos*)
  7624. + _LT_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7625. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7626. + ;;
  7627. -# The library search path used internally by the compiler when linking
  7628. -# a shared library.
  7629. -compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  7630. + uts4*)
  7631. + _LT_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7632. + _LT_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7633. + ;;
  7634. -# Method to check whether dependent libraries are shared objects.
  7635. -deplibs_check_method=$lt_deplibs_check_method
  7636. + *)
  7637. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7638. + ;;
  7639. + esac
  7640. + fi
  7641. +])
  7642. +case $host_os in
  7643. + # For platforms which do not support PIC, -DPIC is meaningless:
  7644. + *djgpp*)
  7645. + _LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7646. + ;;
  7647. + *)
  7648. + _LT_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])"
  7649. + ;;
  7650. +esac
  7651. +AC_MSG_RESULT([$_LT_TAGVAR(lt_prog_compiler_pic, $1)])
  7652. +_LT_TAGDECL([wl], [lt_prog_compiler_wl], [1],
  7653. + [How to pass a linker flag through the compiler])
  7654. -# Command to use when deplibs_check_method == file_magic.
  7655. -file_magic_cmd=$lt_file_magic_cmd
  7656. +#
  7657. +# Check to make sure the PIC flag actually works.
  7658. +#
  7659. +if test -n "$_LT_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7660. + _LT_COMPILER_OPTION([if $compiler PIC flag $_LT_TAGVAR(lt_prog_compiler_pic, $1) works],
  7661. + [_LT_TAGVAR(lt_cv_prog_compiler_pic_works, $1)],
  7662. + [$_LT_TAGVAR(lt_prog_compiler_pic, $1)@&t@m4_if([$1],[],[ -DPIC],[m4_if([$1],[CXX],[ -DPIC],[])])], [],
  7663. + [case $_LT_TAGVAR(lt_prog_compiler_pic, $1) in
  7664. + "" | " "*) ;;
  7665. + *) _LT_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7666. + esac],
  7667. + [_LT_TAGVAR(lt_prog_compiler_pic, $1)=
  7668. + _LT_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7669. +fi
  7670. +_LT_TAGDECL([pic_flag], [lt_prog_compiler_pic], [1],
  7671. + [Additional compiler flags for building library objects])
  7672. -# Flag that allows shared libraries with undefined symbols to be built.
  7673. -allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  7674. +#
  7675. +# Check to make sure the static flag actually works.
  7676. +#
  7677. +wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1) eval lt_tmp_static_flag=\"$_LT_TAGVAR(lt_prog_compiler_static, $1)\"
  7678. +_LT_LINKER_OPTION([if $compiler static flag $lt_tmp_static_flag works],
  7679. + _LT_TAGVAR(lt_cv_prog_compiler_static_works, $1),
  7680. + $lt_tmp_static_flag,
  7681. + [],
  7682. + [_LT_TAGVAR(lt_prog_compiler_static, $1)=])
  7683. +_LT_TAGDECL([link_static_flag], [lt_prog_compiler_static], [1],
  7684. + [Compiler flag to prevent dynamic linking])
  7685. +])# _LT_COMPILER_PIC
  7686. -# Flag that forces no undefined symbols.
  7687. -no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  7688. -# Commands used to finish a libtool library installation in a directory.
  7689. -finish_cmds=$lt_finish_cmds
  7690. +# _LT_LINKER_SHLIBS([TAGNAME])
  7691. +# ----------------------------
  7692. +# See if the linker supports building shared libraries.
  7693. +m4_defun([_LT_LINKER_SHLIBS],
  7694. +[AC_REQUIRE([LT_PATH_LD])dnl
  7695. +AC_REQUIRE([LT_PATH_NM])dnl
  7696. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  7697. +m4_require([_LT_DECL_EGREP])dnl
  7698. +m4_require([_LT_DECL_SED])dnl
  7699. +m4_require([_LT_CMD_GLOBAL_SYMBOLS])dnl
  7700. +m4_require([_LT_TAG_COMPILER])dnl
  7701. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7702. +m4_if([$1], [CXX], [
  7703. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7704. + case $host_os in
  7705. + aix[[4-9]]*)
  7706. + # If we're using GNU nm, then we don't want the "-C" option.
  7707. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7708. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7709. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7710. + else
  7711. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  7712. + fi
  7713. + ;;
  7714. + pw32*)
  7715. + _LT_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7716. + ;;
  7717. + cygwin* | mingw* | cegcc*)
  7718. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/;/^.*[[ ]]__nm__/s/^.*[[ ]]__nm__\([[^ ]]*\)[[ ]][[^ ]]*/\1 DATA/;/^I[[ ]]/d;/^[[AITW]][[ ]]/s/.* //'\'' | sort | uniq > $export_symbols'
  7719. + ;;
  7720. + linux* | k*bsd*-gnu)
  7721. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7722. + ;;
  7723. + *)
  7724. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7725. + ;;
  7726. + esac
  7727. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7728. +], [
  7729. + runpath_var=
  7730. + _LT_TAGVAR(allow_undefined_flag, $1)=
  7731. + _LT_TAGVAR(always_export_symbols, $1)=no
  7732. + _LT_TAGVAR(archive_cmds, $1)=
  7733. + _LT_TAGVAR(archive_expsym_cmds, $1)=
  7734. + _LT_TAGVAR(compiler_needs_object, $1)=no
  7735. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7736. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  7737. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7738. + _LT_TAGVAR(hardcode_automatic, $1)=no
  7739. + _LT_TAGVAR(hardcode_direct, $1)=no
  7740. + _LT_TAGVAR(hardcode_direct_absolute, $1)=no
  7741. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7742. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7743. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  7744. + _LT_TAGVAR(hardcode_minus_L, $1)=no
  7745. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7746. + _LT_TAGVAR(inherit_rpath, $1)=no
  7747. + _LT_TAGVAR(link_all_deplibs, $1)=unknown
  7748. + _LT_TAGVAR(module_cmds, $1)=
  7749. + _LT_TAGVAR(module_expsym_cmds, $1)=
  7750. + _LT_TAGVAR(old_archive_from_new_cmds, $1)=
  7751. + _LT_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7752. + _LT_TAGVAR(thread_safe_flag_spec, $1)=
  7753. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7754. + # include_expsyms should be a list of space-separated symbols to be *always*
  7755. + # included in the symbol list
  7756. + _LT_TAGVAR(include_expsyms, $1)=
  7757. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7758. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7759. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7760. + # as well as any symbol that contains `d'.
  7761. + _LT_TAGVAR(exclude_expsyms, $1)=['_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*']
  7762. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7763. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7764. + # the symbol is explicitly referenced. Since portable code cannot
  7765. + # rely on this symbol name, it's probably fine to never include it in
  7766. + # preloaded symbol tables.
  7767. + # Exclude shared library initialization/finalization symbols.
  7768. +dnl Note also adjust exclude_expsyms for C++ above.
  7769. + extract_expsyms_cmds=
  7770. -# Same as above, but a single script fragment to be evaled but not shown.
  7771. -finish_eval=$lt_finish_eval
  7772. + case $host_os in
  7773. + cygwin* | mingw* | pw32* | cegcc*)
  7774. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7775. + # When not using gcc, we currently assume that we are using
  7776. + # Microsoft Visual C++.
  7777. + if test "$GCC" != yes; then
  7778. + with_gnu_ld=no
  7779. + fi
  7780. + ;;
  7781. + interix*)
  7782. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  7783. + with_gnu_ld=yes
  7784. + ;;
  7785. + openbsd*)
  7786. + with_gnu_ld=no
  7787. + ;;
  7788. + linux* | k*bsd*-gnu)
  7789. + _LT_TAGVAR(link_all_deplibs, $1)=no
  7790. + ;;
  7791. + esac
  7792. -# Take the output of nm and produce a listing of raw symbols and C names.
  7793. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  7794. + _LT_TAGVAR(ld_shlibs, $1)=yes
  7795. + if test "$with_gnu_ld" = yes; then
  7796. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7797. + wlarc='${wl}'
  7798. -# Transform the output of nm in a proper C declaration
  7799. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  7800. + # Set some defaults for GNU ld with shared library support. These
  7801. + # are reset later if shared libraries are not supported. Putting them
  7802. + # here allows them to be overridden if necessary.
  7803. + runpath_var=LD_RUN_PATH
  7804. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  7805. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7806. + # ancient GNU ld didn't support --whole-archive et. al.
  7807. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7808. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7809. + else
  7810. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7811. + fi
  7812. + supports_anon_versioning=no
  7813. + case `$LD -v 2>&1` in
  7814. + *GNU\ gold*) supports_anon_versioning=yes ;;
  7815. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7816. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7817. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7818. + *\ 2.11.*) ;; # other 2.11 versions
  7819. + *) supports_anon_versioning=yes ;;
  7820. + esac
  7821. -# Transform the output of nm in a C name address pair
  7822. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  7823. + # See if GNU ld supports shared libraries.
  7824. + case $host_os in
  7825. + aix[[3-9]]*)
  7826. + # On AIX/PPC, the GNU linker is very broken
  7827. + if test "$host_cpu" != ia64; then
  7828. + _LT_TAGVAR(ld_shlibs, $1)=no
  7829. + cat <<_LT_EOF 1>&2
  7830. -# This is the shared library runtime path variable.
  7831. -runpath_var=$runpath_var
  7832. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7833. +*** to be unable to reliably create shared libraries on AIX.
  7834. +*** Therefore, libtool is disabling shared libraries support. If you
  7835. +*** really care for shared libraries, you may want to modify your PATH
  7836. +*** so that a non-GNU linker is found, and then restart.
  7837. -# This is the shared library path variable.
  7838. -shlibpath_var=$shlibpath_var
  7839. +_LT_EOF
  7840. + fi
  7841. + ;;
  7842. -# Is shlibpath searched before the hard-coded library search path?
  7843. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7844. + amigaos*)
  7845. + case $host_cpu in
  7846. + powerpc)
  7847. + # see comment about AmigaOS4 .so support
  7848. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7849. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  7850. + ;;
  7851. + m68k)
  7852. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  7853. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7854. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  7855. + ;;
  7856. + esac
  7857. + ;;
  7858. -# How to hardcode a shared library path into an executable.
  7859. -hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  7860. + beos*)
  7861. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7862. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7863. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7864. + # support --undefined. This deserves some investigation. FIXME
  7865. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7866. + else
  7867. + _LT_TAGVAR(ld_shlibs, $1)=no
  7868. + fi
  7869. + ;;
  7870. -# Whether we should hardcode library paths into libraries.
  7871. -hardcode_into_libs=$hardcode_into_libs
  7872. + cygwin* | mingw* | pw32* | cegcc*)
  7873. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7874. + # as there is no search path for DLLs.
  7875. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7876. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  7877. + _LT_TAGVAR(always_export_symbols, $1)=no
  7878. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7879. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGRS]][[ ]]/s/.*[[ ]]\([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]][[ ]]/s/.*[[ ]]//'\'' | sort | uniq > $export_symbols'
  7880. -# Flag to hardcode \$libdir into a binary during linking.
  7881. -# This must work even if \$libdir does not exist.
  7882. -hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  7883. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7884. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7885. + # If the export-symbols file already is a .def file (1st line
  7886. + # is EXPORTS), use it as is; otherwise, prepend...
  7887. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7888. + cp $export_symbols $output_objdir/$soname.def;
  7889. + else
  7890. + echo EXPORTS > $output_objdir/$soname.def;
  7891. + cat $export_symbols >> $output_objdir/$soname.def;
  7892. + fi~
  7893. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7894. + else
  7895. + _LT_TAGVAR(ld_shlibs, $1)=no
  7896. + fi
  7897. + ;;
  7898. -# If ld is used when linking, flag to hardcode \$libdir into
  7899. -# a binary during linking. This must work even if \$libdir does
  7900. -# not exist.
  7901. -hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  7902. + interix[[3-9]]*)
  7903. + _LT_TAGVAR(hardcode_direct, $1)=no
  7904. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  7905. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  7906. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  7907. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7908. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  7909. + # default) and relocated if they conflict, which is a slow very memory
  7910. + # consuming and fragmenting process. To avoid this, we pick a random,
  7911. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7912. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7913. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7914. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7915. + ;;
  7916. +
  7917. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7918. + tmp_diet=no
  7919. + if test "$host_os" = linux-dietlibc; then
  7920. + case $cc_basename in
  7921. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7922. + esac
  7923. + fi
  7924. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7925. + && test "$tmp_diet" = no
  7926. + then
  7927. + tmp_addflag=
  7928. + tmp_sharedflag='-shared'
  7929. + case $cc_basename,$host_cpu in
  7930. + pgcc*) # Portland Group C compiler
  7931. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7932. + tmp_addflag=' $pic_flag'
  7933. + ;;
  7934. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  7935. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7936. + tmp_addflag=' $pic_flag -Mnomain' ;;
  7937. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7938. + tmp_addflag=' -i_dynamic' ;;
  7939. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7940. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  7941. + ifc* | ifort*) # Intel Fortran compiler
  7942. + tmp_addflag=' -nofor_main' ;;
  7943. + lf95*) # Lahey Fortran 8.1
  7944. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  7945. + tmp_sharedflag='--shared' ;;
  7946. + xl[[cC]]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7947. + tmp_sharedflag='-qmkshrobj'
  7948. + tmp_addflag= ;;
  7949. + esac
  7950. + case `$CC -V 2>&1 | sed 5q` in
  7951. + *Sun\ C*) # Sun C 5.9
  7952. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  7953. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  7954. + tmp_sharedflag='-G' ;;
  7955. + *Sun\ F*) # Sun Fortran 8.3
  7956. + tmp_sharedflag='-G' ;;
  7957. + esac
  7958. + _LT_TAGVAR(archive_cmds, $1)='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7959. -# Whether we need a single -rpath flag with a separated argument.
  7960. -hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  7961. + if test "x$supports_anon_versioning" = xyes; then
  7962. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7963. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7964. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7965. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7966. + fi
  7967. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  7968. -# resulting binary.
  7969. -hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  7970. + case $cc_basename in
  7971. + xlf*)
  7972. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7973. + _LT_TAGVAR(whole_archive_flag_spec, $1)='--whole-archive$convenience --no-whole-archive'
  7974. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7975. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  7976. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  7977. + if test "x$supports_anon_versioning" = xyes; then
  7978. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  7979. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7980. + echo "local: *; };" >> $output_objdir/$libname.ver~
  7981. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7982. + fi
  7983. + ;;
  7984. + esac
  7985. + else
  7986. + _LT_TAGVAR(ld_shlibs, $1)=no
  7987. + fi
  7988. + ;;
  7989. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7990. -# resulting binary.
  7991. -hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  7992. + netbsd* | netbsdelf*-gnu)
  7993. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7994. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7995. + wlarc=
  7996. + else
  7997. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7998. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7999. + fi
  8000. + ;;
  8001. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  8002. -# the resulting binary.
  8003. -hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  8004. + solaris*)
  8005. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8006. + _LT_TAGVAR(ld_shlibs, $1)=no
  8007. + cat <<_LT_EOF 1>&2
  8008. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  8009. -# and all subsequent libraries and executables linked against it.
  8010. -hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  8011. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8012. +*** create shared libraries on Solaris systems. Therefore, libtool
  8013. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8014. +*** binutils to release 2.9.1 or newer. Another option is to modify
  8015. +*** your PATH or compiler configuration so that the native linker is
  8016. +*** used, and then restart.
  8017. -# Variables whose values should be saved in libtool wrapper scripts and
  8018. -# restored at relink time.
  8019. -variables_saved_for_relink="$variables_saved_for_relink"
  8020. +_LT_EOF
  8021. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8022. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8023. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8024. + else
  8025. + _LT_TAGVAR(ld_shlibs, $1)=no
  8026. + fi
  8027. + ;;
  8028. -# Whether libtool must link a program against all its dependency libraries.
  8029. -link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  8030. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8031. + case `$LD -v 2>&1` in
  8032. + *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.1[[0-5]].*)
  8033. + _LT_TAGVAR(ld_shlibs, $1)=no
  8034. + cat <<_LT_EOF 1>&2
  8035. -# Compile-time system search path for libraries
  8036. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  8037. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8038. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  8039. +*** is disabling shared libraries support. We urge you to upgrade GNU
  8040. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8041. +*** your PATH or compiler configuration so that the native linker is
  8042. +*** used, and then restart.
  8043. -# Run-time system search path for libraries
  8044. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  8045. +_LT_EOF
  8046. + ;;
  8047. + *)
  8048. + # For security reasons, it is highly recommended that you always
  8049. + # use absolute paths for naming shared libraries, and exclude the
  8050. + # DT_RUNPATH tag from executables and libraries. But doing so
  8051. + # requires that you compile everything twice, which is a pain.
  8052. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8053. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8054. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8055. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8056. + else
  8057. + _LT_TAGVAR(ld_shlibs, $1)=no
  8058. + fi
  8059. + ;;
  8060. + esac
  8061. + ;;
  8062. -# Fix the shell variable \$srcfile for the compiler.
  8063. -fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  8064. + sunos4*)
  8065. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8066. + wlarc=
  8067. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8068. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8069. + ;;
  8070. -# Set to yes if exported symbols are required.
  8071. -always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  8072. + *)
  8073. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8074. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8075. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8076. + else
  8077. + _LT_TAGVAR(ld_shlibs, $1)=no
  8078. + fi
  8079. + ;;
  8080. + esac
  8081. -# The commands to list exported symbols.
  8082. -export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  8083. + if test "$_LT_TAGVAR(ld_shlibs, $1)" = no; then
  8084. + runpath_var=
  8085. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8086. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=
  8087. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  8088. + fi
  8089. + else
  8090. + # PORTME fill in a description of your system's linker (not GNU ld)
  8091. + case $host_os in
  8092. + aix3*)
  8093. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8094. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8095. + _LT_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  8096. + # Note: this linker hardcodes the directories in LIBPATH if there
  8097. + # are no directories specified by -L.
  8098. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8099. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8100. + # Neither direct hardcoding nor static linking is supported with a
  8101. + # broken collect2.
  8102. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8103. + fi
  8104. + ;;
  8105. -# The commands to extract the exported symbol list from a shared archive.
  8106. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  8107. + aix[[4-9]]*)
  8108. + if test "$host_cpu" = ia64; then
  8109. + # On IA64, the linker does run time linking by default, so we don't
  8110. + # have to do anything special.
  8111. + aix_use_runtimelinking=no
  8112. + exp_sym_flag='-Bexport'
  8113. + no_entry_flag=""
  8114. + else
  8115. + # If we're using GNU nm, then we don't want the "-C" option.
  8116. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8117. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8118. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8119. + else
  8120. + _LT_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && ([substr](\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8121. + fi
  8122. + aix_use_runtimelinking=no
  8123. -# Symbols that should not be listed in the preloaded symbols.
  8124. -exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  8125. + # Test if we are trying to use run time linking or normal
  8126. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8127. + # need to do runtime linking.
  8128. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  8129. + for ld_flag in $LDFLAGS; do
  8130. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8131. + aix_use_runtimelinking=yes
  8132. + break
  8133. + fi
  8134. + done
  8135. + ;;
  8136. + esac
  8137. -# Symbols that must always be exported.
  8138. -include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  8139. + exp_sym_flag='-bexport'
  8140. + no_entry_flag='-bnoentry'
  8141. + fi
  8142. -ifelse([$1],[],
  8143. -[# ### END LIBTOOL CONFIG],
  8144. -[# ### END LIBTOOL TAG CONFIG: $tagname])
  8145. + # When large executables or shared objects are built, AIX ld can
  8146. + # have problems creating the table of contents. If linking a library
  8147. + # or program results in "error TOC overflow" add -mminimal-toc to
  8148. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8149. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8150. -__EOF__
  8151. + _LT_TAGVAR(archive_cmds, $1)=''
  8152. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8153. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8154. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8155. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8156. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  8157. -ifelse([$1],[], [
  8158. - case $host_os in
  8159. - aix3*)
  8160. - cat <<\EOF >> "$cfgfile"
  8161. + if test "$GCC" = yes; then
  8162. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  8163. + # We only want to do this on AIX 4.2 and lower, the check
  8164. + # below for broken collect2 doesn't work under 4.3+
  8165. + collect2name=`${CC} -print-prog-name=collect2`
  8166. + if test -f "$collect2name" &&
  8167. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8168. + then
  8169. + # We have reworked collect2
  8170. + :
  8171. + else
  8172. + # We have old collect2
  8173. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  8174. + # It fails to find uninstalled libraries when the uninstalled
  8175. + # path is not listed in the libpath. Setting hardcode_minus_L
  8176. + # to unsupported forces relinking
  8177. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8178. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8179. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  8180. + fi
  8181. + ;;
  8182. + esac
  8183. + shared_flag='-shared'
  8184. + if test "$aix_use_runtimelinking" = yes; then
  8185. + shared_flag="$shared_flag "'${wl}-G'
  8186. + fi
  8187. + _LT_TAGVAR(link_all_deplibs, $1)=no
  8188. + else
  8189. + # not using gcc
  8190. + if test "$host_cpu" = ia64; then
  8191. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8192. + # chokes on -Wl,-G. The following line is correct:
  8193. + shared_flag='-G'
  8194. + else
  8195. + if test "$aix_use_runtimelinking" = yes; then
  8196. + shared_flag='${wl}-G'
  8197. + else
  8198. + shared_flag='${wl}-bM:SRE'
  8199. + fi
  8200. + fi
  8201. + fi
  8202. -# AIX sometimes has problems with the GCC collect2 program. For some
  8203. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  8204. -# vanish in a puff of smoke.
  8205. -if test "X${COLLECT_NAMES+set}" != Xset; then
  8206. - COLLECT_NAMES=
  8207. - export COLLECT_NAMES
  8208. -fi
  8209. -EOF
  8210. - ;;
  8211. - esac
  8212. -
  8213. - # We use sed instead of cat because bash on DJGPP gets confused if
  8214. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  8215. - # text mode, it properly converts lines to CR/LF. This bash problem
  8216. - # is reportedly fixed, but why not run on old versions too?
  8217. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  8218. -
  8219. - mv -f "$cfgfile" "$ofile" || \
  8220. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  8221. - chmod +x "$ofile"
  8222. -])
  8223. -else
  8224. - # If there is no Makefile yet, we rely on a make rule to execute
  8225. - # `config.status --recheck' to rerun these tests and create the
  8226. - # libtool script then.
  8227. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  8228. - if test -f "$ltmain_in"; then
  8229. - test -f Makefile && make "$ltmain"
  8230. - fi
  8231. -fi
  8232. -])# AC_LIBTOOL_CONFIG
  8233. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  8234. + # It seems that -bexpall does not export symbols beginning with
  8235. + # underscore (_), so it is better to generate a list of symbols to export.
  8236. + _LT_TAGVAR(always_export_symbols, $1)=yes
  8237. + if test "$aix_use_runtimelinking" = yes; then
  8238. + # Warning - without using the other runtime loading flags (-brtl),
  8239. + # -berok will link without error, but may produce a broken library.
  8240. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  8241. + # Determine the default libpath from the value encoded in an
  8242. + # empty executable.
  8243. + _LT_SYS_MODULE_PATH_AIX
  8244. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8245. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8246. + else
  8247. + if test "$host_cpu" = ia64; then
  8248. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  8249. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  8250. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8251. + else
  8252. + # Determine the default libpath from the value encoded in an
  8253. + # empty executable.
  8254. + _LT_SYS_MODULE_PATH_AIX
  8255. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  8256. + # Warning - without using the other run time loading flags,
  8257. + # -berok will link without error, but may produce a broken library.
  8258. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  8259. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  8260. + # Exported symbols can be pulled into shared objects from archives
  8261. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  8262. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8263. + # This is similar to how AIX traditionally builds its shared libraries.
  8264. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8265. + fi
  8266. + fi
  8267. + ;;
  8268. + amigaos*)
  8269. + case $host_cpu in
  8270. + powerpc)
  8271. + # see comment about AmigaOS4 .so support
  8272. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8273. + _LT_TAGVAR(archive_expsym_cmds, $1)=''
  8274. + ;;
  8275. + m68k)
  8276. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  8277. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8278. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8279. + ;;
  8280. + esac
  8281. + ;;
  8282. -# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  8283. -# -------------------------------------------
  8284. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  8285. -[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  8286. + bsdi[[45]]*)
  8287. + _LT_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8288. + ;;
  8289. -_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  8290. + cygwin* | mingw* | pw32* | cegcc*)
  8291. + # When not using gcc, we currently assume that we are using
  8292. + # Microsoft Visual C++.
  8293. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8294. + # no search path for DLLs.
  8295. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8296. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8297. + # Tell ltmain to make .lib files, not .a files.
  8298. + libext=lib
  8299. + # Tell ltmain to make .dll files, not .so files.
  8300. + shrext_cmds=".dll"
  8301. + # FIXME: Setting linknames here is a bad hack.
  8302. + _LT_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8303. + # The linker will automatically build a .lib file if we build a DLL.
  8304. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='true'
  8305. + # FIXME: Should let the user specify the lib program.
  8306. + _LT_TAGVAR(old_archive_cmds, $1)='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8307. + _LT_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  8308. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8309. + ;;
  8310. -if test "$GCC" = yes; then
  8311. - _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  8312. + darwin* | rhapsody*)
  8313. + _LT_DARWIN_LINKER_FEATURES($1)
  8314. + ;;
  8315. - AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  8316. - lt_cv_prog_compiler_rtti_exceptions,
  8317. - [-fno-rtti -fno-exceptions], [],
  8318. - [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  8319. -fi
  8320. -])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  8321. + dgux*)
  8322. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8323. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8324. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8325. + ;;
  8326. + freebsd1*)
  8327. + _LT_TAGVAR(ld_shlibs, $1)=no
  8328. + ;;
  8329. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8330. -# ---------------------------------
  8331. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  8332. -[AC_REQUIRE([AC_CANONICAL_HOST])
  8333. -AC_REQUIRE([AC_PROG_NM])
  8334. -AC_REQUIRE([AC_OBJEXT])
  8335. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  8336. -AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  8337. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  8338. -[
  8339. -# These are sane defaults that work on at least a few old systems.
  8340. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  8341. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8342. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8343. + # does not break anything, and helps significantly (at the cost of a little
  8344. + # extra space).
  8345. + freebsd2.2*)
  8346. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8347. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8348. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8349. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8350. + ;;
  8351. -# Character class describing NM global symbol codes.
  8352. -symcode='[[BCDEGRST]]'
  8353. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8354. + freebsd2*)
  8355. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8356. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8357. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8358. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8359. + ;;
  8360. -# Regexp to match symbols that can be accessed directly from C.
  8361. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  8362. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8363. + freebsd* | dragonfly*)
  8364. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8365. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8366. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8367. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8368. + ;;
  8369. -# Transform an extracted symbol line into a proper C declaration
  8370. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  8371. + hpux9*)
  8372. + if test "$GCC" = yes; then
  8373. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8374. + else
  8375. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8376. + fi
  8377. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8378. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8379. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8380. -# Transform an extracted symbol line into symbol name and symbol address
  8381. -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'"
  8382. + # hardcode_minus_L: Not really in the search PATH,
  8383. + # but as the default location of the library.
  8384. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8385. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8386. + ;;
  8387. -# Define system-specific variables.
  8388. -case $host_os in
  8389. -aix*)
  8390. - symcode='[[BCDT]]'
  8391. - ;;
  8392. -cygwin* | mingw* | pw32*)
  8393. - symcode='[[ABCDGISTW]]'
  8394. - ;;
  8395. -hpux*) # Its linker distinguishes data from code symbols
  8396. - if test "$host_cpu" = ia64; then
  8397. - symcode='[[ABCDEGRST]]'
  8398. - fi
  8399. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8400. - 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'"
  8401. - ;;
  8402. -linux*)
  8403. - if test "$host_cpu" = ia64; then
  8404. - symcode='[[ABCDGIRSTW]]'
  8405. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  8406. - 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'"
  8407. - fi
  8408. - ;;
  8409. -irix* | nonstopux*)
  8410. - symcode='[[BCDEGRST]]'
  8411. - ;;
  8412. -osf*)
  8413. - symcode='[[BCDEGQRST]]'
  8414. - ;;
  8415. -solaris* | sysv5*)
  8416. - symcode='[[BDRT]]'
  8417. - ;;
  8418. -sysv4)
  8419. - symcode='[[DFNSTU]]'
  8420. - ;;
  8421. -esac
  8422. + hpux10*)
  8423. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8424. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8425. + else
  8426. + _LT_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8427. + fi
  8428. + if test "$with_gnu_ld" = no; then
  8429. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8430. + _LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8431. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8432. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8433. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8434. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8435. + # hardcode_minus_L: Not really in the search PATH,
  8436. + # but as the default location of the library.
  8437. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8438. + fi
  8439. + ;;
  8440. -# Handle CRLF in mingw tool chain
  8441. -opt_cr=
  8442. -case $build_os in
  8443. -mingw*)
  8444. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  8445. - ;;
  8446. -esac
  8447. + hpux11*)
  8448. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8449. + case $host_cpu in
  8450. + hppa*64*)
  8451. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8452. + ;;
  8453. + ia64*)
  8454. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8455. + ;;
  8456. + *)
  8457. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8458. + ;;
  8459. + esac
  8460. + else
  8461. + case $host_cpu in
  8462. + hppa*64*)
  8463. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8464. + ;;
  8465. + ia64*)
  8466. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8467. + ;;
  8468. + *)
  8469. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8470. + ;;
  8471. + esac
  8472. + fi
  8473. + if test "$with_gnu_ld" = no; then
  8474. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8475. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8476. -# If we're using GNU nm, then use its standard symbol codes.
  8477. -case `$NM -V 2>&1` in
  8478. -*GNU* | *'with BFD'*)
  8479. - symcode='[[ABCDGIRSTW]]' ;;
  8480. -esac
  8481. + case $host_cpu in
  8482. + hppa*64*|ia64*)
  8483. + _LT_TAGVAR(hardcode_direct, $1)=no
  8484. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8485. + ;;
  8486. + *)
  8487. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8488. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8489. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8490. -# Try without a prefix undercore, then with it.
  8491. -for ac_symprfx in "" "_"; do
  8492. + # hardcode_minus_L: Not really in the search PATH,
  8493. + # but as the default location of the library.
  8494. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8495. + ;;
  8496. + esac
  8497. + fi
  8498. + ;;
  8499. - # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  8500. - symxfrm="\\1 $ac_symprfx\\2 \\2"
  8501. + irix5* | irix6* | nonstopux*)
  8502. + if test "$GCC" = yes; then
  8503. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8504. + # Try to use the -exported_symbol ld option, if it does not
  8505. + # work, assume that -exports_file does not work either and
  8506. + # implicitly export all symbols.
  8507. + save_LDFLAGS="$LDFLAGS"
  8508. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8509. + AC_LINK_IFELSE(int foo(void) {},
  8510. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8511. + )
  8512. + LDFLAGS="$save_LDFLAGS"
  8513. + else
  8514. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8515. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  8516. + fi
  8517. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8518. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8519. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8520. + _LT_TAGVAR(inherit_rpath, $1)=yes
  8521. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8522. + ;;
  8523. - # Write the raw and C identifiers.
  8524. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  8525. + netbsd* | netbsdelf*-gnu)
  8526. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8527. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8528. + else
  8529. + _LT_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8530. + fi
  8531. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8532. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8533. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8534. + ;;
  8535. - # Check to see that the pipe works correctly.
  8536. - pipe_works=no
  8537. + newsos6)
  8538. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8539. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8540. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8541. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8542. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8543. + ;;
  8544. - rm -f conftest*
  8545. - cat > conftest.$ac_ext <<EOF
  8546. -#ifdef __cplusplus
  8547. -extern "C" {
  8548. -#endif
  8549. -char nm_test_var;
  8550. -void nm_test_func(){}
  8551. -#ifdef __cplusplus
  8552. -}
  8553. -#endif
  8554. -int main(){nm_test_var='a';nm_test_func();return(0);}
  8555. -EOF
  8556. + *nto* | *qnx*)
  8557. + ;;
  8558. - if AC_TRY_EVAL(ac_compile); then
  8559. - # Now try to grab the symbols.
  8560. - nlist=conftest.nm
  8561. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  8562. - # Try sorting and uniquifying the output.
  8563. - if sort "$nlist" | uniq > "$nlist"T; then
  8564. - mv -f "$nlist"T "$nlist"
  8565. + openbsd*)
  8566. + if test -f /usr/libexec/ld.so; then
  8567. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8568. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8569. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  8570. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8571. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8572. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8573. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8574. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8575. + else
  8576. + case $host_os in
  8577. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8578. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8579. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8580. + ;;
  8581. + *)
  8582. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8583. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8584. + ;;
  8585. + esac
  8586. + fi
  8587. else
  8588. - rm -f "$nlist"T
  8589. + _LT_TAGVAR(ld_shlibs, $1)=no
  8590. fi
  8591. + ;;
  8592. - # Make sure that we snagged all the symbols we need.
  8593. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  8594. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  8595. - cat <<EOF > conftest.$ac_ext
  8596. -#ifdef __cplusplus
  8597. -extern "C" {
  8598. -#endif
  8599. + os2*)
  8600. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8601. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8602. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  8603. + _LT_TAGVAR(archive_cmds, $1)='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$ECHO DATA >> $output_objdir/$libname.def~$ECHO " SINGLE NONSHARED" >> $output_objdir/$libname.def~$ECHO EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  8604. + _LT_TAGVAR(old_archive_from_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8605. + ;;
  8606. -EOF
  8607. - # Now generate the symbol file.
  8608. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  8609. + osf3*)
  8610. + if test "$GCC" = yes; then
  8611. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8612. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8613. + else
  8614. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8615. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8616. + fi
  8617. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8618. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8619. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8620. + ;;
  8621. - cat <<EOF >> conftest.$ac_ext
  8622. -#if defined (__STDC__) && __STDC__
  8623. -# define lt_ptr_t void *
  8624. -#else
  8625. -# define lt_ptr_t char *
  8626. -# define const
  8627. -#endif
  8628. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8629. + if test "$GCC" = yes; then
  8630. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8631. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8632. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8633. + else
  8634. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8635. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  8636. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  8637. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  8638. -/* The mapping between symbol names and symbols. */
  8639. -const struct {
  8640. - const char *name;
  8641. - lt_ptr_t address;
  8642. -}
  8643. -lt_preloaded_symbols[[]] =
  8644. -{
  8645. -EOF
  8646. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  8647. - cat <<\EOF >> conftest.$ac_ext
  8648. - {0, (lt_ptr_t) 0}
  8649. -};
  8650. + # Both c and cxx compiler support -rpath directly
  8651. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8652. + fi
  8653. + _LT_TAGVAR(archive_cmds_need_lc, $1)='no'
  8654. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  8655. + ;;
  8656. -#ifdef __cplusplus
  8657. -}
  8658. -#endif
  8659. -EOF
  8660. - # Now try linking the two files.
  8661. - mv conftest.$ac_objext conftstm.$ac_objext
  8662. - lt_save_LIBS="$LIBS"
  8663. - lt_save_CFLAGS="$CFLAGS"
  8664. - LIBS="conftstm.$ac_objext"
  8665. - CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  8666. - if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  8667. - pipe_works=yes
  8668. - fi
  8669. - LIBS="$lt_save_LIBS"
  8670. - CFLAGS="$lt_save_CFLAGS"
  8671. - else
  8672. - echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  8673. - fi
  8674. + solaris*)
  8675. + _LT_TAGVAR(no_undefined_flag, $1)=' -z defs'
  8676. + if test "$GCC" = yes; then
  8677. + wlarc='${wl}'
  8678. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8679. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8680. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8681. else
  8682. - echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  8683. + case `$CC -V 2>&1` in
  8684. + *"Compilers 5.0"*)
  8685. + wlarc=''
  8686. + _LT_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8687. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8688. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8689. + ;;
  8690. + *)
  8691. + wlarc='${wl}'
  8692. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8693. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8694. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8695. + ;;
  8696. + esac
  8697. fi
  8698. - else
  8699. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  8700. - fi
  8701. - else
  8702. - echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  8703. - cat conftest.$ac_ext >&5
  8704. - fi
  8705. - rm -f conftest* conftst*
  8706. -
  8707. - # Do not use the global_symbol_pipe unless it works.
  8708. - if test "$pipe_works" = yes; then
  8709. - break
  8710. - else
  8711. - lt_cv_sys_global_symbol_pipe=
  8712. - fi
  8713. -done
  8714. -])
  8715. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  8716. - lt_cv_sys_global_symbol_to_cdecl=
  8717. -fi
  8718. -if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  8719. - AC_MSG_RESULT(failed)
  8720. -else
  8721. - AC_MSG_RESULT(ok)
  8722. -fi
  8723. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  8724. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8725. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8726. + case $host_os in
  8727. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8728. + *)
  8729. + # The compiler driver will combine and reorder linker options,
  8730. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  8731. + # but is careful enough not to reorder.
  8732. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  8733. + if test "$GCC" = yes; then
  8734. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8735. + else
  8736. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  8737. + fi
  8738. + ;;
  8739. + esac
  8740. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8741. + ;;
  8742. + sunos4*)
  8743. + if test "x$host_vendor" = xsequent; then
  8744. + # Use $CC to link under sequent, because it throws in some extra .o
  8745. + # files that make .init and .fini sections work.
  8746. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8747. + else
  8748. + _LT_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8749. + fi
  8750. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8751. + _LT_TAGVAR(hardcode_direct, $1)=yes
  8752. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  8753. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8754. + ;;
  8755. -# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  8756. -# ---------------------------------------
  8757. -AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  8758. -[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  8759. -_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8760. -_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  8761. + sysv4)
  8762. + case $host_vendor in
  8763. + sni)
  8764. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8765. + _LT_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8766. + ;;
  8767. + siemens)
  8768. + ## LD is ld it makes a PLAMLIB
  8769. + ## CC just makes a GrossModule.
  8770. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8771. + _LT_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8772. + _LT_TAGVAR(hardcode_direct, $1)=no
  8773. + ;;
  8774. + motorola)
  8775. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8776. + _LT_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8777. + ;;
  8778. + esac
  8779. + runpath_var='LD_RUN_PATH'
  8780. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8781. + ;;
  8782. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  8783. - ifelse([$1],[CXX],[
  8784. - # C++ specific cases for pic, static, wl, etc.
  8785. - if test "$GXX" = yes; then
  8786. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  8787. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  8788. + sysv4.3*)
  8789. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8790. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8791. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8792. + ;;
  8793. - case $host_os in
  8794. - aix*)
  8795. - # All AIX code is PIC.
  8796. - if test "$host_cpu" = ia64; then
  8797. - # AIX 5 now supports IA64 processor
  8798. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  8799. + sysv4*MP*)
  8800. + if test -d /usr/nec; then
  8801. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8802. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8803. + runpath_var=LD_RUN_PATH
  8804. + hardcode_runpath_var=yes
  8805. + _LT_TAGVAR(ld_shlibs, $1)=yes
  8806. fi
  8807. ;;
  8808. - amigaos*)
  8809. - # FIXME: we need at least 68020 code to build shared libraries, but
  8810. - # adding the `-m68020' flag to GCC prevents building anything better,
  8811. - # like `-m68040'.
  8812. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  8813. - ;;
  8814. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8815. - # PIC is the default for these OSes.
  8816. - ;;
  8817. - mingw* | os2* | pw32*)
  8818. - # This hack is so that the source file can tell whether it is being
  8819. - # built for inclusion in a dll (and should export symbols for example).
  8820. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  8821. +
  8822. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  8823. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8824. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8825. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8826. + runpath_var='LD_RUN_PATH'
  8827. +
  8828. + if test "$GCC" = yes; then
  8829. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8830. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8831. + else
  8832. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8833. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8834. + fi
  8835. ;;
  8836. - darwin* | rhapsody*)
  8837. - # PIC is the default on this platform
  8838. - # Common symbols not allowed in MH_DYLIB files
  8839. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  8840. +
  8841. + sysv5* | sco3.2v5* | sco5v6*)
  8842. + # Note: We can NOT use -z defs as we might desire, because we do not
  8843. + # link with -lc, and that would cause any symbols used from libc to
  8844. + # always be unresolved, which means just about no library would
  8845. + # ever link correctly. If we're not using GNU ld we use -z text
  8846. + # though, which does catch some bad symbols but isn't as heavy-handed
  8847. + # as -z defs.
  8848. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  8849. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  8850. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8851. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8852. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  8853. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  8854. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  8855. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8856. + runpath_var='LD_RUN_PATH'
  8857. +
  8858. + if test "$GCC" = yes; then
  8859. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8860. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8861. + else
  8862. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8863. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8864. + fi
  8865. ;;
  8866. - *djgpp*)
  8867. - # DJGPP does not support shared libraries at all
  8868. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  8869. +
  8870. + uts4*)
  8871. + _LT_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8872. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8873. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  8874. ;;
  8875. - sysv4*MP*)
  8876. - if test -d /usr/nec; then
  8877. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  8878. - fi
  8879. +
  8880. + *)
  8881. + _LT_TAGVAR(ld_shlibs, $1)=no
  8882. ;;
  8883. - hpux*)
  8884. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8885. - # not for PA HP-UX.
  8886. - case "$host_cpu" in
  8887. - hppa*64*|ia64*)
  8888. - ;;
  8889. - *)
  8890. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8891. + esac
  8892. +
  8893. + if test x$host_vendor = xsni; then
  8894. + case $host in
  8895. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8896. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Blargedynsym'
  8897. ;;
  8898. esac
  8899. + fi
  8900. + fi
  8901. +])
  8902. +AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  8903. +test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8904. +
  8905. +_LT_TAGVAR(with_gnu_ld, $1)=$with_gnu_ld
  8906. +
  8907. +_LT_DECL([], [libext], [0], [Old archive suffix (normally "a")])dnl
  8908. +_LT_DECL([], [shrext_cmds], [1], [Shared library suffix (normally ".so")])dnl
  8909. +_LT_DECL([], [extract_expsyms_cmds], [2],
  8910. + [The commands to extract the exported symbol list from a shared archive])
  8911. +
  8912. +#
  8913. +# Do we need to explicitly link libc?
  8914. +#
  8915. +case "x$_LT_TAGVAR(archive_cmds_need_lc, $1)" in
  8916. +x|xyes)
  8917. + # Assume -lc should be added
  8918. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8919. +
  8920. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8921. + case $_LT_TAGVAR(archive_cmds, $1) in
  8922. + *'~'*)
  8923. + # FIXME: we may have to deal with multi-command sequences.
  8924. ;;
  8925. - *)
  8926. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  8927. + '$CC '*)
  8928. + # Test whether the compiler implicitly links with -lc since on some
  8929. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8930. + # to ld, don't add -lc before -lgcc.
  8931. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8932. + $RM conftest*
  8933. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8934. +
  8935. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8936. + soname=conftest
  8937. + lib=conftest
  8938. + libobjs=conftest.$ac_objext
  8939. + deplibs=
  8940. + wl=$_LT_TAGVAR(lt_prog_compiler_wl, $1)
  8941. + pic_flag=$_LT_TAGVAR(lt_prog_compiler_pic, $1)
  8942. + compiler_flags=-v
  8943. + linker_flags=-v
  8944. + verstring=
  8945. + output_objdir=.
  8946. + libname=conftest
  8947. + lt_save_allow_undefined_flag=$_LT_TAGVAR(allow_undefined_flag, $1)
  8948. + _LT_TAGVAR(allow_undefined_flag, $1)=
  8949. + if AC_TRY_EVAL(_LT_TAGVAR(archive_cmds, $1) 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1)
  8950. + then
  8951. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  8952. + else
  8953. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  8954. + fi
  8955. + _LT_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8956. + else
  8957. + cat conftest.err 1>&5
  8958. + fi
  8959. + $RM conftest*
  8960. + AC_MSG_RESULT([$_LT_TAGVAR(archive_cmds_need_lc, $1)])
  8961. ;;
  8962. esac
  8963. + fi
  8964. + ;;
  8965. +esac
  8966. +
  8967. +_LT_TAGDECL([build_libtool_need_lc], [archive_cmds_need_lc], [0],
  8968. + [Whether or not to add -lc for building shared libraries])
  8969. +_LT_TAGDECL([allow_libtool_libs_with_static_runtimes],
  8970. + [enable_shared_with_static_runtimes], [0],
  8971. + [Whether or not to disallow shared libs when runtime libs are static])
  8972. +_LT_TAGDECL([], [export_dynamic_flag_spec], [1],
  8973. + [Compiler flag to allow reflexive dlopens])
  8974. +_LT_TAGDECL([], [whole_archive_flag_spec], [1],
  8975. + [Compiler flag to generate shared objects directly from archives])
  8976. +_LT_TAGDECL([], [compiler_needs_object], [1],
  8977. + [Whether the compiler copes with passing no objects directly])
  8978. +_LT_TAGDECL([], [old_archive_from_new_cmds], [2],
  8979. + [Create an old-style archive from a shared archive])
  8980. +_LT_TAGDECL([], [old_archive_from_expsyms_cmds], [2],
  8981. + [Create a temporary old-style archive to link instead of a shared archive])
  8982. +_LT_TAGDECL([], [archive_cmds], [2], [Commands used to build a shared archive])
  8983. +_LT_TAGDECL([], [archive_expsym_cmds], [2])
  8984. +_LT_TAGDECL([], [module_cmds], [2],
  8985. + [Commands used to build a loadable module if different from building
  8986. + a shared archive.])
  8987. +_LT_TAGDECL([], [module_expsym_cmds], [2])
  8988. +_LT_TAGDECL([], [with_gnu_ld], [1],
  8989. + [Whether we are building with GNU ld or not])
  8990. +_LT_TAGDECL([], [allow_undefined_flag], [1],
  8991. + [Flag that allows shared libraries with undefined symbols to be built])
  8992. +_LT_TAGDECL([], [no_undefined_flag], [1],
  8993. + [Flag that enforces no undefined symbols])
  8994. +_LT_TAGDECL([], [hardcode_libdir_flag_spec], [1],
  8995. + [Flag to hardcode $libdir into a binary during linking.
  8996. + This must work even if $libdir does not exist])
  8997. +_LT_TAGDECL([], [hardcode_libdir_flag_spec_ld], [1],
  8998. + [[If ld is used when linking, flag to hardcode $libdir into a binary
  8999. + during linking. This must work even if $libdir does not exist]])
  9000. +_LT_TAGDECL([], [hardcode_libdir_separator], [1],
  9001. + [Whether we need a single "-rpath" flag with a separated argument])
  9002. +_LT_TAGDECL([], [hardcode_direct], [0],
  9003. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9004. + DIR into the resulting binary])
  9005. +_LT_TAGDECL([], [hardcode_direct_absolute], [0],
  9006. + [Set to "yes" if using DIR/libNAME${shared_ext} during linking hardcodes
  9007. + DIR into the resulting binary and the resulting library dependency is
  9008. + "absolute", i.e impossible to change by setting ${shlibpath_var} if the
  9009. + library is relocated])
  9010. +_LT_TAGDECL([], [hardcode_minus_L], [0],
  9011. + [Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  9012. + into the resulting binary])
  9013. +_LT_TAGDECL([], [hardcode_shlibpath_var], [0],
  9014. + [Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  9015. + into the resulting binary])
  9016. +_LT_TAGDECL([], [hardcode_automatic], [0],
  9017. + [Set to "yes" if building a shared library automatically hardcodes DIR
  9018. + into the library and all subsequent libraries and executables linked
  9019. + against it])
  9020. +_LT_TAGDECL([], [inherit_rpath], [0],
  9021. + [Set to yes if linker adds runtime paths of dependent libraries
  9022. + to runtime path list])
  9023. +_LT_TAGDECL([], [link_all_deplibs], [0],
  9024. + [Whether libtool must link a program against all its dependency libraries])
  9025. +_LT_TAGDECL([], [fix_srcfile_path], [1],
  9026. + [Fix the shell variable $srcfile for the compiler])
  9027. +_LT_TAGDECL([], [always_export_symbols], [0],
  9028. + [Set to "yes" if exported symbols are required])
  9029. +_LT_TAGDECL([], [export_symbols_cmds], [2],
  9030. + [The commands to list exported symbols])
  9031. +_LT_TAGDECL([], [exclude_expsyms], [1],
  9032. + [Symbols that should not be listed in the preloaded symbols])
  9033. +_LT_TAGDECL([], [include_expsyms], [1],
  9034. + [Symbols that must always be exported])
  9035. +_LT_TAGDECL([], [prelink_cmds], [2],
  9036. + [Commands necessary for linking programs (against libraries) with templates])
  9037. +_LT_TAGDECL([], [file_list_spec], [1],
  9038. + [Specify filename containing input files])
  9039. +dnl FIXME: Not yet implemented
  9040. +dnl _LT_TAGDECL([], [thread_safe_flag_spec], [1],
  9041. +dnl [Compiler flag to generate thread safe objects])
  9042. +])# _LT_LINKER_SHLIBS
  9043. +
  9044. +
  9045. +# _LT_LANG_C_CONFIG([TAG])
  9046. +# ------------------------
  9047. +# Ensure that the configuration variables for a C compiler are suitably
  9048. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9049. +# the compiler configuration to `libtool'.
  9050. +m4_defun([_LT_LANG_C_CONFIG],
  9051. +[m4_require([_LT_DECL_EGREP])dnl
  9052. +lt_save_CC="$CC"
  9053. +AC_LANG_PUSH(C)
  9054. +
  9055. +# Source file extension for C test sources.
  9056. +ac_ext=c
  9057. +
  9058. +# Object file extension for compiled C test sources.
  9059. +objext=o
  9060. +_LT_TAGVAR(objext, $1)=$objext
  9061. +
  9062. +# Code to be used in simple compile tests
  9063. +lt_simple_compile_test_code="int some_variable = 0;"
  9064. +
  9065. +# Code to be used in simple link tests
  9066. +lt_simple_link_test_code='int main(){return(0);}'
  9067. +
  9068. +_LT_TAG_COMPILER
  9069. +# Save the default compiler, since it gets overwritten when the other
  9070. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  9071. +compiler_DEFAULT=$CC
  9072. +
  9073. +# save warnings/boilerplate of simple test code
  9074. +_LT_COMPILER_BOILERPLATE
  9075. +_LT_LINKER_BOILERPLATE
  9076. +
  9077. +if test -n "$compiler"; then
  9078. + _LT_COMPILER_NO_RTTI($1)
  9079. + _LT_COMPILER_PIC($1)
  9080. + _LT_COMPILER_C_O($1)
  9081. + _LT_COMPILER_FILE_LOCKS($1)
  9082. + _LT_LINKER_SHLIBS($1)
  9083. + _LT_SYS_DYNAMIC_LINKER($1)
  9084. + _LT_LINKER_HARDCODE_LIBPATH($1)
  9085. + LT_SYS_DLOPEN_SELF
  9086. + _LT_CMD_STRIPLIB
  9087. +
  9088. + # Report which library types will actually be built
  9089. + AC_MSG_CHECKING([if libtool supports shared libraries])
  9090. + AC_MSG_RESULT([$can_build_shared])
  9091. +
  9092. + AC_MSG_CHECKING([whether to build shared libraries])
  9093. + test "$can_build_shared" = "no" && enable_shared=no
  9094. +
  9095. + # On AIX, shared libraries and static libraries use the same namespace, and
  9096. + # are all built from PIC.
  9097. + case $host_os in
  9098. + aix3*)
  9099. + test "$enable_shared" = yes && enable_static=no
  9100. + if test -n "$RANLIB"; then
  9101. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9102. + postinstall_cmds='$RANLIB $lib'
  9103. + fi
  9104. + ;;
  9105. +
  9106. + aix[[4-9]]*)
  9107. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9108. + test "$enable_shared" = yes && enable_static=no
  9109. + fi
  9110. + ;;
  9111. + esac
  9112. + AC_MSG_RESULT([$enable_shared])
  9113. +
  9114. + AC_MSG_CHECKING([whether to build static libraries])
  9115. + # Make sure either enable_shared or enable_static is yes.
  9116. + test "$enable_shared" = yes || enable_static=yes
  9117. + AC_MSG_RESULT([$enable_static])
  9118. +
  9119. + _LT_CONFIG($1)
  9120. +fi
  9121. +AC_LANG_POP
  9122. +CC="$lt_save_CC"
  9123. +])# _LT_LANG_C_CONFIG
  9124. +
  9125. +
  9126. +# _LT_PROG_CXX
  9127. +# ------------
  9128. +# Since AC_PROG_CXX is broken, in that it returns g++ if there is no c++
  9129. +# compiler, we have our own version here.
  9130. +m4_defun([_LT_PROG_CXX],
  9131. +[
  9132. +pushdef([AC_MSG_ERROR], [_lt_caught_CXX_error=yes])
  9133. +AC_PROG_CXX
  9134. +if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  9135. + ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  9136. + (test "X$CXX" != "Xg++"))) ; then
  9137. + AC_PROG_CXXCPP
  9138. +else
  9139. + _lt_caught_CXX_error=yes
  9140. +fi
  9141. +popdef([AC_MSG_ERROR])
  9142. +])# _LT_PROG_CXX
  9143. +
  9144. +dnl aclocal-1.4 backwards compatibility:
  9145. +dnl AC_DEFUN([_LT_PROG_CXX], [])
  9146. +
  9147. +
  9148. +# _LT_LANG_CXX_CONFIG([TAG])
  9149. +# --------------------------
  9150. +# Ensure that the configuration variables for a C++ compiler are suitably
  9151. +# defined. These variables are subsequently used by _LT_CONFIG to write
  9152. +# the compiler configuration to `libtool'.
  9153. +m4_defun([_LT_LANG_CXX_CONFIG],
  9154. +[AC_REQUIRE([_LT_PROG_CXX])dnl
  9155. +m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  9156. +m4_require([_LT_DECL_EGREP])dnl
  9157. +
  9158. +AC_LANG_PUSH(C++)
  9159. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9160. +_LT_TAGVAR(allow_undefined_flag, $1)=
  9161. +_LT_TAGVAR(always_export_symbols, $1)=no
  9162. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  9163. +_LT_TAGVAR(compiler_needs_object, $1)=no
  9164. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  9165. +_LT_TAGVAR(hardcode_direct, $1)=no
  9166. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  9167. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  9168. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  9169. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  9170. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  9171. +_LT_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  9172. +_LT_TAGVAR(hardcode_automatic, $1)=no
  9173. +_LT_TAGVAR(inherit_rpath, $1)=no
  9174. +_LT_TAGVAR(module_cmds, $1)=
  9175. +_LT_TAGVAR(module_expsym_cmds, $1)=
  9176. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  9177. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  9178. +_LT_TAGVAR(no_undefined_flag, $1)=
  9179. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  9180. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  9181. +
  9182. +# Source file extension for C++ test sources.
  9183. +ac_ext=cpp
  9184. +
  9185. +# Object file extension for compiled C++ test sources.
  9186. +objext=o
  9187. +_LT_TAGVAR(objext, $1)=$objext
  9188. +
  9189. +# No sense in running all these tests if we already determined that
  9190. +# the CXX compiler isn't working. Some variables (like enable_shared)
  9191. +# are currently assumed to apply to all compilers on this platform,
  9192. +# and will be corrupted by setting them based on a non-working compiler.
  9193. +if test "$_lt_caught_CXX_error" != yes; then
  9194. + # Code to be used in simple compile tests
  9195. + lt_simple_compile_test_code="int some_variable = 0;"
  9196. +
  9197. + # Code to be used in simple link tests
  9198. + lt_simple_link_test_code='int main(int, char *[[]]) { return(0); }'
  9199. +
  9200. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  9201. + _LT_TAG_COMPILER
  9202. +
  9203. + # save warnings/boilerplate of simple test code
  9204. + _LT_COMPILER_BOILERPLATE
  9205. + _LT_LINKER_BOILERPLATE
  9206. +
  9207. + # Allow CC to be a program name with arguments.
  9208. + lt_save_CC=$CC
  9209. + lt_save_LD=$LD
  9210. + lt_save_GCC=$GCC
  9211. + GCC=$GXX
  9212. + lt_save_with_gnu_ld=$with_gnu_ld
  9213. + lt_save_path_LD=$lt_cv_path_LD
  9214. + if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  9215. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  9216. else
  9217. + $as_unset lt_cv_prog_gnu_ld
  9218. + fi
  9219. + if test -n "${lt_cv_path_LDCXX+set}"; then
  9220. + lt_cv_path_LD=$lt_cv_path_LDCXX
  9221. + else
  9222. + $as_unset lt_cv_path_LD
  9223. + fi
  9224. + test -z "${LDCXX+set}" || LD=$LDCXX
  9225. + CC=${CXX-"c++"}
  9226. + compiler=$CC
  9227. + _LT_TAGVAR(compiler, $1)=$CC
  9228. + _LT_CC_BASENAME([$compiler])
  9229. +
  9230. + if test -n "$compiler"; then
  9231. + # We don't want -fno-exception when compiling C++ code, so set the
  9232. + # no_builtin_flag separately
  9233. + if test "$GXX" = yes; then
  9234. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  9235. + else
  9236. + _LT_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  9237. + fi
  9238. +
  9239. + if test "$GXX" = yes; then
  9240. + # Set up default GNU C++ configuration
  9241. +
  9242. + LT_PATH_LD
  9243. +
  9244. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  9245. + # archiving commands below assume that GNU ld is being used.
  9246. + if test "$with_gnu_ld" = yes; then
  9247. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9248. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9249. +
  9250. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9251. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9252. +
  9253. + # If archive_cmds runs LD, not CC, wlarc should be empty
  9254. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  9255. + # investigate it a little bit more. (MM)
  9256. + wlarc='${wl}'
  9257. +
  9258. + # ancient GNU ld didn't support --whole-archive et. al.
  9259. + if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  9260. + $GREP 'no-whole-archive' > /dev/null; then
  9261. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9262. + else
  9263. + _LT_TAGVAR(whole_archive_flag_spec, $1)=
  9264. + fi
  9265. + else
  9266. + with_gnu_ld=no
  9267. + wlarc=
  9268. +
  9269. + # A generic and very simple default shared library creation
  9270. + # command for GNU C++ for the case where it uses the native
  9271. + # linker, instead of GNU ld. If possible, this setting should
  9272. + # overridden to take advantage of the native linker features on
  9273. + # the platform it is being used on.
  9274. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9275. + fi
  9276. +
  9277. + # Commands to make compiler produce verbose output that lists
  9278. + # what "hidden" libraries, object files and flags are used when
  9279. + # linking a shared library.
  9280. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  9281. +
  9282. + else
  9283. + GXX=no
  9284. + with_gnu_ld=no
  9285. + wlarc=
  9286. + fi
  9287. +
  9288. + # PORTME: fill in a description of your system's C++ link characteristics
  9289. + AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  9290. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9291. case $host_os in
  9292. - aix4* | aix5*)
  9293. - # All AIX code is PIC.
  9294. - if test "$host_cpu" = ia64; then
  9295. - # AIX 5 now supports IA64 processor
  9296. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  9297. - else
  9298. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  9299. - fi
  9300. - ;;
  9301. - chorus*)
  9302. - case $cc_basename in
  9303. - cxch68*)
  9304. - # Green Hills C++ Compiler
  9305. - # _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"
  9306. - ;;
  9307. - esac
  9308. - ;;
  9309. - darwin*)
  9310. - # PIC is the default on this platform
  9311. - # Common symbols not allowed in MH_DYLIB files
  9312. - case $cc_basename in
  9313. - xlc*)
  9314. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  9315. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9316. - ;;
  9317. - esac
  9318. - ;;
  9319. - dgux*)
  9320. - case $cc_basename in
  9321. - ec++*)
  9322. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9323. - ;;
  9324. - ghcx*)
  9325. - # Green Hills C++ Compiler
  9326. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9327. + aix3*)
  9328. + # FIXME: insert proper C++ library support
  9329. + _LT_TAGVAR(ld_shlibs, $1)=no
  9330. + ;;
  9331. + aix[[4-9]]*)
  9332. + if test "$host_cpu" = ia64; then
  9333. + # On IA64, the linker does run time linking by default, so we don't
  9334. + # have to do anything special.
  9335. + aix_use_runtimelinking=no
  9336. + exp_sym_flag='-Bexport'
  9337. + no_entry_flag=""
  9338. + else
  9339. + aix_use_runtimelinking=no
  9340. +
  9341. + # Test if we are trying to use run time linking or normal
  9342. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  9343. + # need to do runtime linking.
  9344. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix[[5-9]]*)
  9345. + for ld_flag in $LDFLAGS; do
  9346. + case $ld_flag in
  9347. + *-brtl*)
  9348. + aix_use_runtimelinking=yes
  9349. + break
  9350. + ;;
  9351. + esac
  9352. + done
  9353. ;;
  9354. - *)
  9355. - ;;
  9356. - esac
  9357. + esac
  9358. +
  9359. + exp_sym_flag='-bexport'
  9360. + no_entry_flag='-bnoentry'
  9361. + fi
  9362. +
  9363. + # When large executables or shared objects are built, AIX ld can
  9364. + # have problems creating the table of contents. If linking a library
  9365. + # or program results in "error TOC overflow" add -mminimal-toc to
  9366. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  9367. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  9368. +
  9369. + _LT_TAGVAR(archive_cmds, $1)=''
  9370. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9371. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9372. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  9373. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9374. + _LT_TAGVAR(file_list_spec, $1)='${wl}-f,'
  9375. +
  9376. + if test "$GXX" = yes; then
  9377. + case $host_os in aix4.[[012]]|aix4.[[012]].*)
  9378. + # We only want to do this on AIX 4.2 and lower, the check
  9379. + # below for broken collect2 doesn't work under 4.3+
  9380. + collect2name=`${CC} -print-prog-name=collect2`
  9381. + if test -f "$collect2name" &&
  9382. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  9383. + then
  9384. + # We have reworked collect2
  9385. + :
  9386. + else
  9387. + # We have old collect2
  9388. + _LT_TAGVAR(hardcode_direct, $1)=unsupported
  9389. + # It fails to find uninstalled libraries when the uninstalled
  9390. + # path is not listed in the libpath. Setting hardcode_minus_L
  9391. + # to unsupported forces relinking
  9392. + _LT_TAGVAR(hardcode_minus_L, $1)=yes
  9393. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9394. + _LT_TAGVAR(hardcode_libdir_separator, $1)=
  9395. + fi
  9396. + esac
  9397. + shared_flag='-shared'
  9398. + if test "$aix_use_runtimelinking" = yes; then
  9399. + shared_flag="$shared_flag "'${wl}-G'
  9400. + fi
  9401. + else
  9402. + # not using gcc
  9403. + if test "$host_cpu" = ia64; then
  9404. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  9405. + # chokes on -Wl,-G. The following line is correct:
  9406. + shared_flag='-G'
  9407. + else
  9408. + if test "$aix_use_runtimelinking" = yes; then
  9409. + shared_flag='${wl}-G'
  9410. + else
  9411. + shared_flag='${wl}-bM:SRE'
  9412. + fi
  9413. + fi
  9414. + fi
  9415. +
  9416. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-bexpall'
  9417. + # It seems that -bexpall does not export symbols beginning with
  9418. + # underscore (_), so it is better to generate a list of symbols to
  9419. + # export.
  9420. + _LT_TAGVAR(always_export_symbols, $1)=yes
  9421. + if test "$aix_use_runtimelinking" = yes; then
  9422. + # Warning - without using the other runtime loading flags (-brtl),
  9423. + # -berok will link without error, but may produce a broken library.
  9424. + _LT_TAGVAR(allow_undefined_flag, $1)='-berok'
  9425. + # Determine the default libpath from the value encoded in an empty
  9426. + # executable.
  9427. + _LT_SYS_MODULE_PATH_AIX
  9428. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9429. +
  9430. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  9431. + else
  9432. + if test "$host_cpu" = ia64; then
  9433. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  9434. + _LT_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  9435. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  9436. + else
  9437. + # Determine the default libpath from the value encoded in an
  9438. + # empty executable.
  9439. + _LT_SYS_MODULE_PATH_AIX
  9440. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  9441. + # Warning - without using the other run time loading flags,
  9442. + # -berok will link without error, but may produce a broken library.
  9443. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  9444. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  9445. + # Exported symbols can be pulled into shared objects from archives
  9446. + _LT_TAGVAR(whole_archive_flag_spec, $1)='$convenience'
  9447. + _LT_TAGVAR(archive_cmds_need_lc, $1)=yes
  9448. + # This is similar to how AIX traditionally builds its shared
  9449. + # libraries.
  9450. + _LT_TAGVAR(archive_expsym_cmds, $1)="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  9451. + fi
  9452. + fi
  9453. + ;;
  9454. +
  9455. + beos*)
  9456. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  9457. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9458. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  9459. + # support --undefined. This deserves some investigation. FIXME
  9460. + _LT_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9461. + else
  9462. + _LT_TAGVAR(ld_shlibs, $1)=no
  9463. + fi
  9464. ;;
  9465. - freebsd* | kfreebsd*-gnu | dragonfly*)
  9466. - # FreeBSD uses GNU C++
  9467. +
  9468. + chorus*)
  9469. + case $cc_basename in
  9470. + *)
  9471. + # FIXME: insert proper C++ library support
  9472. + _LT_TAGVAR(ld_shlibs, $1)=no
  9473. + ;;
  9474. + esac
  9475. + ;;
  9476. +
  9477. + cygwin* | mingw* | pw32* | cegcc*)
  9478. + # _LT_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  9479. + # as there is no search path for DLLs.
  9480. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  9481. + _LT_TAGVAR(allow_undefined_flag, $1)=unsupported
  9482. + _LT_TAGVAR(always_export_symbols, $1)=no
  9483. + _LT_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  9484. +
  9485. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  9486. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  9487. + # If the export-symbols file already is a .def file (1st line
  9488. + # is EXPORTS), use it as is; otherwise, prepend...
  9489. + _LT_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  9490. + cp $export_symbols $output_objdir/$soname.def;
  9491. + else
  9492. + echo EXPORTS > $output_objdir/$soname.def;
  9493. + cat $export_symbols >> $output_objdir/$soname.def;
  9494. + fi~
  9495. + $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'
  9496. + else
  9497. + _LT_TAGVAR(ld_shlibs, $1)=no
  9498. + fi
  9499. + ;;
  9500. + darwin* | rhapsody*)
  9501. + _LT_DARWIN_LINKER_FEATURES($1)
  9502. ;;
  9503. - hpux9* | hpux10* | hpux11*)
  9504. - case $cc_basename in
  9505. - CC*)
  9506. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9507. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9508. - if test "$host_cpu" != ia64; then
  9509. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9510. - fi
  9511. +
  9512. + dgux*)
  9513. + case $cc_basename in
  9514. + ec++*)
  9515. + # FIXME: insert proper C++ library support
  9516. + _LT_TAGVAR(ld_shlibs, $1)=no
  9517. ;;
  9518. - aCC*)
  9519. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9520. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  9521. - case "$host_cpu" in
  9522. - hppa*64*|ia64*)
  9523. - # +Z the default
  9524. - ;;
  9525. - *)
  9526. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  9527. - ;;
  9528. + ghcx*)
  9529. + # Green Hills C++ Compiler
  9530. + # FIXME: insert proper C++ library support
  9531. + _LT_TAGVAR(ld_shlibs, $1)=no
  9532. + ;;
  9533. + *)
  9534. + # FIXME: insert proper C++ library support
  9535. + _LT_TAGVAR(ld_shlibs, $1)=no
  9536. + ;;
  9537. + esac
  9538. + ;;
  9539. +
  9540. + freebsd[[12]]*)
  9541. + # C++ shared libraries reported to be fairly broken before
  9542. + # switch to ELF
  9543. + _LT_TAGVAR(ld_shlibs, $1)=no
  9544. + ;;
  9545. +
  9546. + freebsd-elf*)
  9547. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9548. + ;;
  9549. +
  9550. + freebsd* | dragonfly*)
  9551. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  9552. + # conventions
  9553. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9554. + ;;
  9555. +
  9556. + gnu*)
  9557. + ;;
  9558. +
  9559. + hpux9*)
  9560. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9561. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9562. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9563. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9564. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9565. + # but as the default
  9566. + # location of the library.
  9567. +
  9568. + case $cc_basename in
  9569. + CC*)
  9570. + # FIXME: insert proper C++ library support
  9571. + _LT_TAGVAR(ld_shlibs, $1)=no
  9572. + ;;
  9573. + aCC*)
  9574. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9575. + # Commands to make compiler produce verbose output that lists
  9576. + # what "hidden" libraries, object files and flags are used when
  9577. + # linking a shared library.
  9578. + #
  9579. + # There doesn't appear to be a way to prevent this compiler from
  9580. + # explicitly linking system object files so we need to strip them
  9581. + # from the output so that they don't get included in the library
  9582. + # dependencies.
  9583. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9584. + ;;
  9585. + *)
  9586. + if test "$GXX" = yes; then
  9587. + _LT_TAGVAR(archive_cmds, $1)='$RM $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9588. + else
  9589. + # FIXME: insert proper C++ library support
  9590. + _LT_TAGVAR(ld_shlibs, $1)=no
  9591. + fi
  9592. + ;;
  9593. + esac
  9594. + ;;
  9595. +
  9596. + hpux10*|hpux11*)
  9597. + if test $with_gnu_ld = no; then
  9598. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  9599. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9600. +
  9601. + case $host_cpu in
  9602. + hppa*64*|ia64*)
  9603. + ;;
  9604. + *)
  9605. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9606. + ;;
  9607. + esac
  9608. + fi
  9609. + case $host_cpu in
  9610. + hppa*64*|ia64*)
  9611. + _LT_TAGVAR(hardcode_direct, $1)=no
  9612. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9613. + ;;
  9614. + *)
  9615. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9616. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9617. + _LT_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  9618. + # but as the default
  9619. + # location of the library.
  9620. + ;;
  9621. + esac
  9622. +
  9623. + case $cc_basename in
  9624. + CC*)
  9625. + # FIXME: insert proper C++ library support
  9626. + _LT_TAGVAR(ld_shlibs, $1)=no
  9627. + ;;
  9628. + aCC*)
  9629. + case $host_cpu in
  9630. + hppa*64*)
  9631. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9632. + ;;
  9633. + ia64*)
  9634. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9635. + ;;
  9636. + *)
  9637. + _LT_TAGVAR(archive_cmds, $1)='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9638. + ;;
  9639. esac
  9640. + # Commands to make compiler produce verbose output that lists
  9641. + # what "hidden" libraries, object files and flags are used when
  9642. + # linking a shared library.
  9643. + #
  9644. + # There doesn't appear to be a way to prevent this compiler from
  9645. + # explicitly linking system object files so we need to strip them
  9646. + # from the output so that they don't get included in the library
  9647. + # dependencies.
  9648. + output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9649. ;;
  9650. - *)
  9651. + *)
  9652. + if test "$GXX" = yes; then
  9653. + if test $with_gnu_ld = no; then
  9654. + case $host_cpu in
  9655. + hppa*64*)
  9656. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9657. + ;;
  9658. + ia64*)
  9659. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9660. + ;;
  9661. + *)
  9662. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9663. + ;;
  9664. + esac
  9665. + fi
  9666. + else
  9667. + # FIXME: insert proper C++ library support
  9668. + _LT_TAGVAR(ld_shlibs, $1)=no
  9669. + fi
  9670. ;;
  9671. - esac
  9672. - ;;
  9673. - irix5* | irix6* | nonstopux*)
  9674. - case $cc_basename in
  9675. - CC*)
  9676. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9677. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9678. - # CC pic flag -KPIC is the default.
  9679. + esac
  9680. + ;;
  9681. +
  9682. + interix[[3-9]]*)
  9683. + _LT_TAGVAR(hardcode_direct, $1)=no
  9684. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9685. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9686. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9687. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  9688. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  9689. + # default) and relocated if they conflict, which is a slow very memory
  9690. + # consuming and fragmenting process. To avoid this, we pick a random,
  9691. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  9692. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  9693. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9694. + _LT_TAGVAR(archive_expsym_cmds, $1)='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  9695. + ;;
  9696. + irix5* | irix6*)
  9697. + case $cc_basename in
  9698. + CC*)
  9699. + # SGI C++
  9700. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9701. +
  9702. + # Archives containing C++ object files must be created using
  9703. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  9704. + # necessary to make sure instantiated templates are included
  9705. + # in the archive.
  9706. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  9707. ;;
  9708. - *)
  9709. + *)
  9710. + if test "$GXX" = yes; then
  9711. + if test "$with_gnu_ld" = no; then
  9712. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9713. + else
  9714. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` -o $lib'
  9715. + fi
  9716. + fi
  9717. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  9718. ;;
  9719. - esac
  9720. - ;;
  9721. - linux*)
  9722. - case $cc_basename in
  9723. - KCC*)
  9724. - # KAI C++ Compiler
  9725. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9726. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  9727. + esac
  9728. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9729. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9730. + _LT_TAGVAR(inherit_rpath, $1)=yes
  9731. + ;;
  9732. +
  9733. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9734. + case $cc_basename in
  9735. + KCC*)
  9736. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9737. +
  9738. + # KCC will only create a shared library if the output file
  9739. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9740. + # to its proper name (with version) after linking.
  9741. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9742. + _LT_TAGVAR(archive_expsym_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  9743. + # Commands to make compiler produce verbose output that lists
  9744. + # what "hidden" libraries, object files and flags are used when
  9745. + # linking a shared library.
  9746. + #
  9747. + # There doesn't appear to be a way to prevent this compiler from
  9748. + # explicitly linking system object files so we need to strip them
  9749. + # from the output so that they don't get included in the library
  9750. + # dependencies.
  9751. + output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9752. +
  9753. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9754. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9755. +
  9756. + # Archives containing C++ object files must be created using
  9757. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  9758. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  9759. ;;
  9760. - icpc* | ecpc*)
  9761. + icpc* | ecpc* )
  9762. # Intel C++
  9763. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9764. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  9765. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9766. - ;;
  9767. - pgCC*)
  9768. - # Portland Group C++ compiler.
  9769. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9770. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  9771. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  9772. + with_gnu_ld=yes
  9773. + # version 8.0 and above of icpc choke on multiply defined symbols
  9774. + # if we add $predep_objects and $postdep_objects, however 7.1 and
  9775. + # earlier do not add the objects themselves.
  9776. + case `$CC -V 2>&1` in
  9777. + *"Version 7."*)
  9778. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9779. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9780. + ;;
  9781. + *) # Version 8.0 or newer
  9782. + tmp_idyn=
  9783. + case $host_cpu in
  9784. + ia64*) tmp_idyn=' -i_dynamic';;
  9785. + esac
  9786. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9787. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  9788. + ;;
  9789. + esac
  9790. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  9791. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9792. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9793. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  9794. ;;
  9795. + pgCC* | pgcpp*)
  9796. + # Portland Group C++ compiler
  9797. + case `$CC -V` in
  9798. + *pgCC\ [[1-5]]* | *pgcpp\ [[1-5]]*)
  9799. + _LT_TAGVAR(prelink_cmds, $1)='tpldir=Template.dir~
  9800. + rm -rf $tpldir~
  9801. + $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  9802. + compile_command="$compile_command `find $tpldir -name \*.o | $NL2SP`"'
  9803. + _LT_TAGVAR(old_archive_cmds, $1)='tpldir=Template.dir~
  9804. + rm -rf $tpldir~
  9805. + $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  9806. + $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | $NL2SP`~
  9807. + $RANLIB $oldlib'
  9808. + _LT_TAGVAR(archive_cmds, $1)='tpldir=Template.dir~
  9809. + rm -rf $tpldir~
  9810. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9811. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9812. + _LT_TAGVAR(archive_expsym_cmds, $1)='tpldir=Template.dir~
  9813. + rm -rf $tpldir~
  9814. + $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  9815. + $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  9816. + ;;
  9817. + *) # Version 6 will use weak symbols
  9818. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  9819. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  9820. + ;;
  9821. + esac
  9822. +
  9823. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  9824. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9825. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  9826. + ;;
  9827. cxx*)
  9828. # Compaq C++
  9829. - # Make sure the PIC flag is empty. It appears that all Alpha
  9830. - # Linux and Compaq Tru64 Unix objects are PIC.
  9831. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9832. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9833. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9834. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  9835. +
  9836. + runpath_var=LD_RUN_PATH
  9837. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  9838. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9839. +
  9840. + # Commands to make compiler produce verbose output that lists
  9841. + # what "hidden" libraries, object files and flags are used when
  9842. + # linking a shared library.
  9843. + #
  9844. + # There doesn't appear to be a way to prevent this compiler from
  9845. + # explicitly linking system object files so we need to strip them
  9846. + # from the output so that they don't get included in the library
  9847. + # dependencies.
  9848. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  9849. + ;;
  9850. + xl*)
  9851. + # IBM XL 8.0 on PPC, with GNU ld
  9852. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9853. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  9854. + _LT_TAGVAR(archive_cmds, $1)='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  9855. + if test "x$supports_anon_versioning" = xyes; then
  9856. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $output_objdir/$libname.ver~
  9857. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  9858. + echo "local: *; };" >> $output_objdir/$libname.ver~
  9859. + $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  9860. + fi
  9861. ;;
  9862. *)
  9863. + case `$CC -V 2>&1 | sed 5q` in
  9864. + *Sun\ C*)
  9865. + # Sun C++ 5.9
  9866. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  9867. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  9868. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  9869. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9870. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  9871. + _LT_TAGVAR(compiler_needs_object, $1)=yes
  9872. +
  9873. + # Not sure whether something based on
  9874. + # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  9875. + # would be better.
  9876. + output_verbose_link_cmd='echo'
  9877. +
  9878. + # Archives containing C++ object files must be created using
  9879. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  9880. + # necessary to make sure instantiated templates are included
  9881. + # in the archive.
  9882. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  9883. + ;;
  9884. + esac
  9885. ;;
  9886. esac
  9887. ;;
  9888. +
  9889. lynxos*)
  9890. + # FIXME: insert proper C++ library support
  9891. + _LT_TAGVAR(ld_shlibs, $1)=no
  9892. ;;
  9893. +
  9894. m88k*)
  9895. + # FIXME: insert proper C++ library support
  9896. + _LT_TAGVAR(ld_shlibs, $1)=no
  9897. ;;
  9898. +
  9899. mvs*)
  9900. - case $cc_basename in
  9901. - cxx*)
  9902. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  9903. + case $cc_basename in
  9904. + cxx*)
  9905. + # FIXME: insert proper C++ library support
  9906. + _LT_TAGVAR(ld_shlibs, $1)=no
  9907. ;;
  9908. *)
  9909. + # FIXME: insert proper C++ library support
  9910. + _LT_TAGVAR(ld_shlibs, $1)=no
  9911. ;;
  9912. esac
  9913. ;;
  9914. +
  9915. netbsd*)
  9916. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9917. + _LT_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  9918. + wlarc=
  9919. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  9920. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9921. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9922. + fi
  9923. + # Workaround some broken pre-1.5 toolchains
  9924. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  9925. + ;;
  9926. +
  9927. + *nto* | *qnx*)
  9928. + _LT_TAGVAR(ld_shlibs, $1)=yes
  9929. ;;
  9930. +
  9931. + openbsd2*)
  9932. + # C++ shared libraries are fairly broken
  9933. + _LT_TAGVAR(ld_shlibs, $1)=no
  9934. + ;;
  9935. +
  9936. + openbsd*)
  9937. + if test -f /usr/libexec/ld.so; then
  9938. + _LT_TAGVAR(hardcode_direct, $1)=yes
  9939. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  9940. + _LT_TAGVAR(hardcode_direct_absolute, $1)=yes
  9941. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  9942. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9943. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9944. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  9945. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  9946. + _LT_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  9947. + fi
  9948. + output_verbose_link_cmd=echo
  9949. + else
  9950. + _LT_TAGVAR(ld_shlibs, $1)=no
  9951. + fi
  9952. + ;;
  9953. +
  9954. osf3* | osf4* | osf5*)
  9955. - case $cc_basename in
  9956. - KCC*)
  9957. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  9958. + case $cc_basename in
  9959. + KCC*)
  9960. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  9961. +
  9962. + # KCC will only create a shared library if the output file
  9963. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  9964. + # to its proper name (with version) after linking.
  9965. + _LT_TAGVAR(archive_cmds, $1)='tempext=`echo $shared_ext | $SED -e '\''s/\([[^()0-9A-Za-z{}]]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  9966. +
  9967. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  9968. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  9969. +
  9970. + # Archives containing C++ object files must be created using
  9971. + # the KAI C++ compiler.
  9972. + case $host in
  9973. + osf3*) _LT_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs' ;;
  9974. + *) _LT_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs' ;;
  9975. + esac
  9976. ;;
  9977. - RCC*)
  9978. + RCC*)
  9979. # Rational C++ 2.4.1
  9980. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  9981. + # FIXME: insert proper C++ library support
  9982. + _LT_TAGVAR(ld_shlibs, $1)=no
  9983. ;;
  9984. - cxx*)
  9985. - # Digital/Compaq C++
  9986. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  9987. - # Make sure the PIC flag is empty. It appears that all Alpha
  9988. - # Linux and Compaq Tru64 Unix objects are PIC.
  9989. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  9990. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  9991. + cxx*)
  9992. + case $host in
  9993. + osf3*)
  9994. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  9995. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && $ECHO "X${wl}-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  9996. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  9997. + ;;
  9998. + *)
  9999. + _LT_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  10000. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  10001. + _LT_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  10002. + echo "-hidden">> $lib.exp~
  10003. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~
  10004. + $RM $lib.exp'
  10005. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  10006. + ;;
  10007. + esac
  10008. +
  10009. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10010. +
  10011. + # Commands to make compiler produce verbose output that lists
  10012. + # what "hidden" libraries, object files and flags are used when
  10013. + # linking a shared library.
  10014. + #
  10015. + # There doesn't appear to be a way to prevent this compiler from
  10016. + # explicitly linking system object files so we need to strip them
  10017. + # from the output so that they don't get included in the library
  10018. + # dependencies.
  10019. + output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`$ECHO "X$templist" | $Xsed -e "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; $ECHO "X$list" | $Xsed'
  10020. ;;
  10021. *)
  10022. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10023. + _LT_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  10024. + case $host in
  10025. + osf3*)
  10026. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10027. + ;;
  10028. + *)
  10029. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  10030. + ;;
  10031. + esac
  10032. +
  10033. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  10034. + _LT_TAGVAR(hardcode_libdir_separator, $1)=:
  10035. +
  10036. + # Commands to make compiler produce verbose output that lists
  10037. + # what "hidden" libraries, object files and flags are used when
  10038. + # linking a shared library.
  10039. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10040. +
  10041. + else
  10042. + # FIXME: insert proper C++ library support
  10043. + _LT_TAGVAR(ld_shlibs, $1)=no
  10044. + fi
  10045. ;;
  10046. - esac
  10047. - ;;
  10048. + esac
  10049. + ;;
  10050. +
  10051. psos*)
  10052. - ;;
  10053. - sco*)
  10054. - case $cc_basename in
  10055. - CC*)
  10056. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  10057. + # FIXME: insert proper C++ library support
  10058. + _LT_TAGVAR(ld_shlibs, $1)=no
  10059. + ;;
  10060. +
  10061. + sunos4*)
  10062. + case $cc_basename in
  10063. + CC*)
  10064. + # Sun C++ 4.x
  10065. + # FIXME: insert proper C++ library support
  10066. + _LT_TAGVAR(ld_shlibs, $1)=no
  10067. ;;
  10068. - *)
  10069. + lcc*)
  10070. + # Lucid
  10071. + # FIXME: insert proper C++ library support
  10072. + _LT_TAGVAR(ld_shlibs, $1)=no
  10073. ;;
  10074. - esac
  10075. - ;;
  10076. + *)
  10077. + # FIXME: insert proper C++ library support
  10078. + _LT_TAGVAR(ld_shlibs, $1)=no
  10079. + ;;
  10080. + esac
  10081. + ;;
  10082. +
  10083. solaris*)
  10084. - case $cc_basename in
  10085. - CC*)
  10086. + case $cc_basename in
  10087. + CC*)
  10088. # Sun C++ 4.2, 5.x and Centerline C++
  10089. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10090. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10091. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  10092. + _LT_TAGVAR(archive_cmds_need_lc,$1)=yes
  10093. + _LT_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  10094. + _LT_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  10095. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10096. + $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'
  10097. +
  10098. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  10099. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10100. + case $host_os in
  10101. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10102. + *)
  10103. + # The compiler driver will combine and reorder linker options,
  10104. + # but understands `-z linker_flag'.
  10105. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  10106. + _LT_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract'
  10107. + ;;
  10108. + esac
  10109. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10110. +
  10111. + output_verbose_link_cmd='echo'
  10112. +
  10113. + # Archives containing C++ object files must be created using
  10114. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  10115. + # necessary to make sure instantiated templates are included
  10116. + # in the archive.
  10117. + _LT_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  10118. ;;
  10119. - gcx*)
  10120. + gcx*)
  10121. # Green Hills C++ Compiler
  10122. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  10123. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10124. +
  10125. + # The C++ compiler must be used to create the archive.
  10126. + _LT_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  10127. ;;
  10128. - *)
  10129. + *)
  10130. + # GNU C++ compiler with Solaris linker
  10131. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  10132. + _LT_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  10133. + if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  10134. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10135. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10136. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10137. +
  10138. + # Commands to make compiler produce verbose output that lists
  10139. + # what "hidden" libraries, object files and flags are used when
  10140. + # linking a shared library.
  10141. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10142. + else
  10143. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  10144. + # platform.
  10145. + _LT_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  10146. + _LT_TAGVAR(archive_expsym_cmds, $1)='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  10147. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  10148. +
  10149. + # Commands to make compiler produce verbose output that lists
  10150. + # what "hidden" libraries, object files and flags are used when
  10151. + # linking a shared library.
  10152. + output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP "\-L"'
  10153. + fi
  10154. +
  10155. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  10156. + case $host_os in
  10157. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  10158. + *)
  10159. + _LT_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  10160. + ;;
  10161. + esac
  10162. + fi
  10163. ;;
  10164. - esac
  10165. - ;;
  10166. - sunos4*)
  10167. + esac
  10168. + ;;
  10169. +
  10170. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[[01]].[[10]]* | unixware7* | sco3.2v5.0.[[024]]*)
  10171. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10172. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10173. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10174. + runpath_var='LD_RUN_PATH'
  10175. +
  10176. + case $cc_basename in
  10177. + CC*)
  10178. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10179. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10180. + ;;
  10181. + *)
  10182. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10183. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10184. + ;;
  10185. + esac
  10186. + ;;
  10187. +
  10188. + sysv5* | sco3.2v5* | sco5v6*)
  10189. + # Note: We can NOT use -z defs as we might desire, because we do not
  10190. + # link with -lc, and that would cause any symbols used from libc to
  10191. + # always be unresolved, which means just about no library would
  10192. + # ever link correctly. If we're not using GNU ld we use -z text
  10193. + # though, which does catch some bad symbols but isn't as heavy-handed
  10194. + # as -z defs.
  10195. + _LT_TAGVAR(no_undefined_flag, $1)='${wl}-z,text'
  10196. + _LT_TAGVAR(allow_undefined_flag, $1)='${wl}-z,nodefs'
  10197. + _LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10198. + _LT_TAGVAR(hardcode_shlibpath_var, $1)=no
  10199. + _LT_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R,$libdir'
  10200. + _LT_TAGVAR(hardcode_libdir_separator, $1)=':'
  10201. + _LT_TAGVAR(link_all_deplibs, $1)=yes
  10202. + _LT_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  10203. + runpath_var='LD_RUN_PATH'
  10204. +
  10205. case $cc_basename in
  10206. - CC*)
  10207. - # Sun C++ 4.x
  10208. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10209. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10210. - ;;
  10211. - lcc*)
  10212. - # Lucid
  10213. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  10214. + CC*)
  10215. + _LT_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10216. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10217. ;;
  10218. *)
  10219. + _LT_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10220. + _LT_TAGVAR(archive_expsym_cmds, $1)='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  10221. ;;
  10222. esac
  10223. - ;;
  10224. + ;;
  10225. +
  10226. tandem*)
  10227. - case $cc_basename in
  10228. - NCC*)
  10229. + case $cc_basename in
  10230. + NCC*)
  10231. # NonStop-UX NCC 3.20
  10232. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  10233. + # FIXME: insert proper C++ library support
  10234. + _LT_TAGVAR(ld_shlibs, $1)=no
  10235. ;;
  10236. - *)
  10237. + *)
  10238. + # FIXME: insert proper C++ library support
  10239. + _LT_TAGVAR(ld_shlibs, $1)=no
  10240. ;;
  10241. - esac
  10242. - ;;
  10243. - unixware*)
  10244. - ;;
  10245. + esac
  10246. + ;;
  10247. +
  10248. vxworks*)
  10249. - ;;
  10250. + # FIXME: insert proper C++ library support
  10251. + _LT_TAGVAR(ld_shlibs, $1)=no
  10252. + ;;
  10253. +
  10254. *)
  10255. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10256. - ;;
  10257. + # FIXME: insert proper C++ library support
  10258. + _LT_TAGVAR(ld_shlibs, $1)=no
  10259. + ;;
  10260. esac
  10261. - fi
  10262. -],
  10263. -[
  10264. - if test "$GCC" = yes; then
  10265. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  10266. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  10267. - case $host_os in
  10268. - aix*)
  10269. - # All AIX code is PIC.
  10270. - if test "$host_cpu" = ia64; then
  10271. - # AIX 5 now supports IA64 processor
  10272. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  10273. - fi
  10274. - ;;
  10275. + AC_MSG_RESULT([$_LT_TAGVAR(ld_shlibs, $1)])
  10276. + test "$_LT_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  10277. - amigaos*)
  10278. - # FIXME: we need at least 68020 code to build shared libraries, but
  10279. - # adding the `-m68020' flag to GCC prevents building anything better,
  10280. - # like `-m68040'.
  10281. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  10282. - ;;
  10283. + _LT_TAGVAR(GCC, $1)="$GXX"
  10284. + _LT_TAGVAR(LD, $1)="$LD"
  10285. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  10286. - # PIC is the default for these OSes.
  10287. - ;;
  10288. + ## CAVEAT EMPTOR:
  10289. + ## There is no encapsulation within the following macros, do not change
  10290. + ## the running order or otherwise move them around unless you know exactly
  10291. + ## what you are doing...
  10292. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10293. + _LT_COMPILER_PIC($1)
  10294. + _LT_COMPILER_C_O($1)
  10295. + _LT_COMPILER_FILE_LOCKS($1)
  10296. + _LT_LINKER_SHLIBS($1)
  10297. + _LT_SYS_DYNAMIC_LINKER($1)
  10298. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10299. +
  10300. + _LT_CONFIG($1)
  10301. + fi # test -n "$compiler"
  10302. +
  10303. + CC=$lt_save_CC
  10304. + LDCXX=$LD
  10305. + LD=$lt_save_LD
  10306. + GCC=$lt_save_GCC
  10307. + with_gnu_ld=$lt_save_with_gnu_ld
  10308. + lt_cv_path_LDCXX=$lt_cv_path_LD
  10309. + lt_cv_path_LD=$lt_save_path_LD
  10310. + lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  10311. + lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  10312. +fi # test "$_lt_caught_CXX_error" != yes
  10313. - mingw* | pw32* | os2*)
  10314. - # This hack is so that the source file can tell whether it is being
  10315. - # built for inclusion in a dll (and should export symbols for example).
  10316. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  10317. - ;;
  10318. +AC_LANG_POP
  10319. +])# _LT_LANG_CXX_CONFIG
  10320. - darwin* | rhapsody*)
  10321. - # PIC is the default on this platform
  10322. - # Common symbols not allowed in MH_DYLIB files
  10323. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  10324. - ;;
  10325. - msdosdjgpp*)
  10326. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  10327. - # on systems that don't support them.
  10328. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  10329. - enable_shared=no
  10330. - ;;
  10331. +# _LT_SYS_HIDDEN_LIBDEPS([TAGNAME])
  10332. +# ---------------------------------
  10333. +# Figure out "hidden" library dependencies from verbose
  10334. +# compiler output when linking a shared library.
  10335. +# Parse the compiler output and extract the necessary
  10336. +# objects, libraries and library flags.
  10337. +m4_defun([_LT_SYS_HIDDEN_LIBDEPS],
  10338. +[m4_require([_LT_FILEUTILS_DEFAULTS])dnl
  10339. +# Dependencies to place before and after the object being linked:
  10340. +_LT_TAGVAR(predep_objects, $1)=
  10341. +_LT_TAGVAR(postdep_objects, $1)=
  10342. +_LT_TAGVAR(predeps, $1)=
  10343. +_LT_TAGVAR(postdeps, $1)=
  10344. +_LT_TAGVAR(compiler_lib_search_path, $1)=
  10345. +
  10346. +dnl we can't use the lt_simple_compile_test_code here,
  10347. +dnl because it contains code intended for an executable,
  10348. +dnl not a library. It's possible we should let each
  10349. +dnl tag define a new lt_????_link_test_code variable,
  10350. +dnl but it's only used here...
  10351. +m4_if([$1], [], [cat > conftest.$ac_ext <<_LT_EOF
  10352. +int a;
  10353. +void foo (void) { a = 0; }
  10354. +_LT_EOF
  10355. +], [$1], [CXX], [cat > conftest.$ac_ext <<_LT_EOF
  10356. +class Foo
  10357. +{
  10358. +public:
  10359. + Foo (void) { a = 0; }
  10360. +private:
  10361. + int a;
  10362. +};
  10363. +_LT_EOF
  10364. +], [$1], [F77], [cat > conftest.$ac_ext <<_LT_EOF
  10365. + subroutine foo
  10366. + implicit none
  10367. + integer*4 a
  10368. + a=0
  10369. + return
  10370. + end
  10371. +_LT_EOF
  10372. +], [$1], [FC], [cat > conftest.$ac_ext <<_LT_EOF
  10373. + subroutine foo
  10374. + implicit none
  10375. + integer a
  10376. + a=0
  10377. + return
  10378. + end
  10379. +_LT_EOF
  10380. +], [$1], [GCJ], [cat > conftest.$ac_ext <<_LT_EOF
  10381. +public class foo {
  10382. + private int a;
  10383. + public void bar (void) {
  10384. + a = 0;
  10385. + }
  10386. +};
  10387. +_LT_EOF
  10388. +])
  10389. +dnl Parse the compiler output and extract the necessary
  10390. +dnl objects, libraries and library flags.
  10391. +if AC_TRY_EVAL(ac_compile); then
  10392. + # Parse the compiler output and extract the necessary
  10393. + # objects, libraries and library flags.
  10394. +
  10395. + # Sentinel used to keep track of whether or not we are before
  10396. + # the conftest object file.
  10397. + pre_test_object_deps_done=no
  10398. +
  10399. + for p in `eval "$output_verbose_link_cmd"`; do
  10400. + case $p in
  10401. +
  10402. + -L* | -R* | -l*)
  10403. + # Some compilers place space between "-{L,R}" and the path.
  10404. + # Remove the space.
  10405. + if test $p = "-L" ||
  10406. + test $p = "-R"; then
  10407. + prev=$p
  10408. + continue
  10409. + else
  10410. + prev=
  10411. + fi
  10412. +
  10413. + if test "$pre_test_object_deps_done" = no; then
  10414. + case $p in
  10415. + -L* | -R*)
  10416. + # Internal compiler library paths should come after those
  10417. + # provided the user. The postdeps already come after the
  10418. + # user supplied libs so there is no need to process them.
  10419. + if test -z "$_LT_TAGVAR(compiler_lib_search_path, $1)"; then
  10420. + _LT_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  10421. + else
  10422. + _LT_TAGVAR(compiler_lib_search_path, $1)="${_LT_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  10423. + fi
  10424. + ;;
  10425. + # The "-l" case would never come before the object being
  10426. + # linked, so don't bother handling this case.
  10427. + esac
  10428. + else
  10429. + if test -z "$_LT_TAGVAR(postdeps, $1)"; then
  10430. + _LT_TAGVAR(postdeps, $1)="${prev}${p}"
  10431. + else
  10432. + _LT_TAGVAR(postdeps, $1)="${_LT_TAGVAR(postdeps, $1)} ${prev}${p}"
  10433. + fi
  10434. + fi
  10435. + ;;
  10436. +
  10437. + *.$objext)
  10438. + # This assumes that the test object file only shows up
  10439. + # once in the compiler output.
  10440. + if test "$p" = "conftest.$objext"; then
  10441. + pre_test_object_deps_done=yes
  10442. + continue
  10443. + fi
  10444. +
  10445. + if test "$pre_test_object_deps_done" = no; then
  10446. + if test -z "$_LT_TAGVAR(predep_objects, $1)"; then
  10447. + _LT_TAGVAR(predep_objects, $1)="$p"
  10448. + else
  10449. + _LT_TAGVAR(predep_objects, $1)="$_LT_TAGVAR(predep_objects, $1) $p"
  10450. + fi
  10451. + else
  10452. + if test -z "$_LT_TAGVAR(postdep_objects, $1)"; then
  10453. + _LT_TAGVAR(postdep_objects, $1)="$p"
  10454. + else
  10455. + _LT_TAGVAR(postdep_objects, $1)="$_LT_TAGVAR(postdep_objects, $1) $p"
  10456. + fi
  10457. + fi
  10458. + ;;
  10459. +
  10460. + *) ;; # Ignore the rest.
  10461. +
  10462. + esac
  10463. + done
  10464. +
  10465. + # Clean up.
  10466. + rm -f a.out a.exe
  10467. +else
  10468. + echo "libtool.m4: error: problem compiling $1 test program"
  10469. +fi
  10470. +
  10471. +$RM -f confest.$objext
  10472. +
  10473. +# PORTME: override above test on systems where it is broken
  10474. +m4_if([$1], [CXX],
  10475. +[case $host_os in
  10476. +interix[[3-9]]*)
  10477. + # Interix 3.5 installs completely hosed .la files for C++, so rather than
  10478. + # hack all around it, let's just trust "g++" to DTRT.
  10479. + _LT_TAGVAR(predep_objects,$1)=
  10480. + _LT_TAGVAR(postdep_objects,$1)=
  10481. + _LT_TAGVAR(postdeps,$1)=
  10482. + ;;
  10483. +
  10484. +linux*)
  10485. + case `$CC -V 2>&1 | sed 5q` in
  10486. + *Sun\ C*)
  10487. + # Sun C++ 5.9
  10488. +
  10489. + # The more standards-conforming stlport4 library is
  10490. + # incompatible with the Cstd library. Avoid specifying
  10491. + # it if it's in CXXFLAGS. Ignore libCrun as
  10492. + # -library=stlport4 depends on it.
  10493. + case " $CXX $CXXFLAGS " in
  10494. + *" -library=stlport4 "*)
  10495. + solaris_use_stlport4=yes
  10496. + ;;
  10497. + esac
  10498. +
  10499. + if test "$solaris_use_stlport4" != yes; then
  10500. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10501. + fi
  10502. + ;;
  10503. + esac
  10504. + ;;
  10505. +
  10506. +solaris*)
  10507. + case $cc_basename in
  10508. + CC*)
  10509. + # The more standards-conforming stlport4 library is
  10510. + # incompatible with the Cstd library. Avoid specifying
  10511. + # it if it's in CXXFLAGS. Ignore libCrun as
  10512. + # -library=stlport4 depends on it.
  10513. + case " $CXX $CXXFLAGS " in
  10514. + *" -library=stlport4 "*)
  10515. + solaris_use_stlport4=yes
  10516. + ;;
  10517. + esac
  10518. +
  10519. + # Adding this requires a known-good setup of shared libraries for
  10520. + # Sun compiler versions before 5.6, else PIC objects from an old
  10521. + # archive will be linked into the output, leading to subtle bugs.
  10522. + if test "$solaris_use_stlport4" != yes; then
  10523. + _LT_TAGVAR(postdeps,$1)='-library=Cstd -library=Crun'
  10524. + fi
  10525. + ;;
  10526. + esac
  10527. + ;;
  10528. +esac
  10529. +])
  10530. +
  10531. +case " $_LT_TAGVAR(postdeps, $1) " in
  10532. +*" -lc "*) _LT_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  10533. +esac
  10534. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=
  10535. +if test -n "${_LT_TAGVAR(compiler_lib_search_path, $1)}"; then
  10536. + _LT_TAGVAR(compiler_lib_search_dirs, $1)=`echo " ${_LT_TAGVAR(compiler_lib_search_path, $1)}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  10537. +fi
  10538. +_LT_TAGDECL([], [compiler_lib_search_dirs], [1],
  10539. + [The directories searched by this compiler when creating a shared library])
  10540. +_LT_TAGDECL([], [predep_objects], [1],
  10541. + [Dependencies to place before and after the objects being linked to
  10542. + create a shared library])
  10543. +_LT_TAGDECL([], [postdep_objects], [1])
  10544. +_LT_TAGDECL([], [predeps], [1])
  10545. +_LT_TAGDECL([], [postdeps], [1])
  10546. +_LT_TAGDECL([], [compiler_lib_search_path], [1],
  10547. + [The library search path used internally by the compiler when linking
  10548. + a shared library])
  10549. +])# _LT_SYS_HIDDEN_LIBDEPS
  10550. +
  10551. +
  10552. +# _LT_PROG_F77
  10553. +# ------------
  10554. +# Since AC_PROG_F77 is broken, in that it returns the empty string
  10555. +# if there is no fortran compiler, we have our own version here.
  10556. +m4_defun([_LT_PROG_F77],
  10557. +[
  10558. +pushdef([AC_MSG_ERROR], [_lt_disable_F77=yes])
  10559. +AC_PROG_F77
  10560. +if test -z "$F77" || test "X$F77" = "Xno"; then
  10561. + _lt_disable_F77=yes
  10562. +fi
  10563. +popdef([AC_MSG_ERROR])
  10564. +])# _LT_PROG_F77
  10565. +
  10566. +dnl aclocal-1.4 backwards compatibility:
  10567. +dnl AC_DEFUN([_LT_PROG_F77], [])
  10568. +
  10569. +
  10570. +# _LT_LANG_F77_CONFIG([TAG])
  10571. +# --------------------------
  10572. +# Ensure that the configuration variables for a Fortran 77 compiler are
  10573. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10574. +# to write the compiler configuration to `libtool'.
  10575. +m4_defun([_LT_LANG_F77_CONFIG],
  10576. +[AC_REQUIRE([_LT_PROG_F77])dnl
  10577. +AC_LANG_PUSH(Fortran 77)
  10578. +
  10579. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10580. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10581. +_LT_TAGVAR(always_export_symbols, $1)=no
  10582. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10583. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10584. +_LT_TAGVAR(hardcode_direct, $1)=no
  10585. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10586. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10587. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10588. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10589. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10590. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10591. +_LT_TAGVAR(inherit_rpath, $1)=no
  10592. +_LT_TAGVAR(module_cmds, $1)=
  10593. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10594. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10595. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10596. +_LT_TAGVAR(no_undefined_flag, $1)=
  10597. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10598. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10599. +
  10600. +# Source file extension for f77 test sources.
  10601. +ac_ext=f
  10602. +
  10603. +# Object file extension for compiled f77 test sources.
  10604. +objext=o
  10605. +_LT_TAGVAR(objext, $1)=$objext
  10606. +
  10607. +# No sense in running all these tests if we already determined that
  10608. +# the F77 compiler isn't working. Some variables (like enable_shared)
  10609. +# are currently assumed to apply to all compilers on this platform,
  10610. +# and will be corrupted by setting them based on a non-working compiler.
  10611. +if test "$_lt_disable_F77" != yes; then
  10612. + # Code to be used in simple compile tests
  10613. + lt_simple_compile_test_code="\
  10614. + subroutine t
  10615. + return
  10616. + end
  10617. +"
  10618. +
  10619. + # Code to be used in simple link tests
  10620. + lt_simple_link_test_code="\
  10621. + program t
  10622. + end
  10623. +"
  10624. +
  10625. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10626. + _LT_TAG_COMPILER
  10627. +
  10628. + # save warnings/boilerplate of simple test code
  10629. + _LT_COMPILER_BOILERPLATE
  10630. + _LT_LINKER_BOILERPLATE
  10631. +
  10632. + # Allow CC to be a program name with arguments.
  10633. + lt_save_CC="$CC"
  10634. + lt_save_GCC=$GCC
  10635. + CC=${F77-"f77"}
  10636. + compiler=$CC
  10637. + _LT_TAGVAR(compiler, $1)=$CC
  10638. + _LT_CC_BASENAME([$compiler])
  10639. + GCC=$G77
  10640. + if test -n "$compiler"; then
  10641. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10642. + AC_MSG_RESULT([$can_build_shared])
  10643. +
  10644. + AC_MSG_CHECKING([whether to build shared libraries])
  10645. + test "$can_build_shared" = "no" && enable_shared=no
  10646. +
  10647. + # On AIX, shared libraries and static libraries use the same namespace, and
  10648. + # are all built from PIC.
  10649. + case $host_os in
  10650. + aix3*)
  10651. + test "$enable_shared" = yes && enable_static=no
  10652. + if test -n "$RANLIB"; then
  10653. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10654. + postinstall_cmds='$RANLIB $lib'
  10655. + fi
  10656. + ;;
  10657. + aix[[4-9]]*)
  10658. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10659. + test "$enable_shared" = yes && enable_static=no
  10660. + fi
  10661. + ;;
  10662. + esac
  10663. + AC_MSG_RESULT([$enable_shared])
  10664. +
  10665. + AC_MSG_CHECKING([whether to build static libraries])
  10666. + # Make sure either enable_shared or enable_static is yes.
  10667. + test "$enable_shared" = yes || enable_static=yes
  10668. + AC_MSG_RESULT([$enable_static])
  10669. +
  10670. + _LT_TAGVAR(GCC, $1)="$G77"
  10671. + _LT_TAGVAR(LD, $1)="$LD"
  10672. +
  10673. + ## CAVEAT EMPTOR:
  10674. + ## There is no encapsulation within the following macros, do not change
  10675. + ## the running order or otherwise move them around unless you know exactly
  10676. + ## what you are doing...
  10677. + _LT_COMPILER_PIC($1)
  10678. + _LT_COMPILER_C_O($1)
  10679. + _LT_COMPILER_FILE_LOCKS($1)
  10680. + _LT_LINKER_SHLIBS($1)
  10681. + _LT_SYS_DYNAMIC_LINKER($1)
  10682. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10683. +
  10684. + _LT_CONFIG($1)
  10685. + fi # test -n "$compiler"
  10686. +
  10687. + GCC=$lt_save_GCC
  10688. + CC="$lt_save_CC"
  10689. +fi # test "$_lt_disable_F77" != yes
  10690. +
  10691. +AC_LANG_POP
  10692. +])# _LT_LANG_F77_CONFIG
  10693. +
  10694. +
  10695. +# _LT_PROG_FC
  10696. +# -----------
  10697. +# Since AC_PROG_FC is broken, in that it returns the empty string
  10698. +# if there is no fortran compiler, we have our own version here.
  10699. +m4_defun([_LT_PROG_FC],
  10700. +[
  10701. +pushdef([AC_MSG_ERROR], [_lt_disable_FC=yes])
  10702. +AC_PROG_FC
  10703. +if test -z "$FC" || test "X$FC" = "Xno"; then
  10704. + _lt_disable_FC=yes
  10705. +fi
  10706. +popdef([AC_MSG_ERROR])
  10707. +])# _LT_PROG_FC
  10708. +
  10709. +dnl aclocal-1.4 backwards compatibility:
  10710. +dnl AC_DEFUN([_LT_PROG_FC], [])
  10711. +
  10712. +
  10713. +# _LT_LANG_FC_CONFIG([TAG])
  10714. +# -------------------------
  10715. +# Ensure that the configuration variables for a Fortran compiler are
  10716. +# suitably defined. These variables are subsequently used by _LT_CONFIG
  10717. +# to write the compiler configuration to `libtool'.
  10718. +m4_defun([_LT_LANG_FC_CONFIG],
  10719. +[AC_REQUIRE([_LT_PROG_FC])dnl
  10720. +AC_LANG_PUSH(Fortran)
  10721. +
  10722. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10723. +_LT_TAGVAR(allow_undefined_flag, $1)=
  10724. +_LT_TAGVAR(always_export_symbols, $1)=no
  10725. +_LT_TAGVAR(archive_expsym_cmds, $1)=
  10726. +_LT_TAGVAR(export_dynamic_flag_spec, $1)=
  10727. +_LT_TAGVAR(hardcode_direct, $1)=no
  10728. +_LT_TAGVAR(hardcode_direct_absolute, $1)=no
  10729. +_LT_TAGVAR(hardcode_libdir_flag_spec, $1)=
  10730. +_LT_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  10731. +_LT_TAGVAR(hardcode_libdir_separator, $1)=
  10732. +_LT_TAGVAR(hardcode_minus_L, $1)=no
  10733. +_LT_TAGVAR(hardcode_automatic, $1)=no
  10734. +_LT_TAGVAR(inherit_rpath, $1)=no
  10735. +_LT_TAGVAR(module_cmds, $1)=
  10736. +_LT_TAGVAR(module_expsym_cmds, $1)=
  10737. +_LT_TAGVAR(link_all_deplibs, $1)=unknown
  10738. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10739. +_LT_TAGVAR(no_undefined_flag, $1)=
  10740. +_LT_TAGVAR(whole_archive_flag_spec, $1)=
  10741. +_LT_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  10742. +
  10743. +# Source file extension for fc test sources.
  10744. +ac_ext=${ac_fc_srcext-f}
  10745. +
  10746. +# Object file extension for compiled fc test sources.
  10747. +objext=o
  10748. +_LT_TAGVAR(objext, $1)=$objext
  10749. +
  10750. +# No sense in running all these tests if we already determined that
  10751. +# the FC compiler isn't working. Some variables (like enable_shared)
  10752. +# are currently assumed to apply to all compilers on this platform,
  10753. +# and will be corrupted by setting them based on a non-working compiler.
  10754. +if test "$_lt_disable_FC" != yes; then
  10755. + # Code to be used in simple compile tests
  10756. + lt_simple_compile_test_code="\
  10757. + subroutine t
  10758. + return
  10759. + end
  10760. +"
  10761. +
  10762. + # Code to be used in simple link tests
  10763. + lt_simple_link_test_code="\
  10764. + program t
  10765. + end
  10766. +"
  10767. +
  10768. + # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10769. + _LT_TAG_COMPILER
  10770. +
  10771. + # save warnings/boilerplate of simple test code
  10772. + _LT_COMPILER_BOILERPLATE
  10773. + _LT_LINKER_BOILERPLATE
  10774. +
  10775. + # Allow CC to be a program name with arguments.
  10776. + lt_save_CC="$CC"
  10777. + lt_save_GCC=$GCC
  10778. + CC=${FC-"f95"}
  10779. + compiler=$CC
  10780. + GCC=$ac_cv_fc_compiler_gnu
  10781. +
  10782. + _LT_TAGVAR(compiler, $1)=$CC
  10783. + _LT_CC_BASENAME([$compiler])
  10784. +
  10785. + if test -n "$compiler"; then
  10786. + AC_MSG_CHECKING([if libtool supports shared libraries])
  10787. + AC_MSG_RESULT([$can_build_shared])
  10788. +
  10789. + AC_MSG_CHECKING([whether to build shared libraries])
  10790. + test "$can_build_shared" = "no" && enable_shared=no
  10791. +
  10792. + # On AIX, shared libraries and static libraries use the same namespace, and
  10793. + # are all built from PIC.
  10794. + case $host_os in
  10795. + aix3*)
  10796. + test "$enable_shared" = yes && enable_static=no
  10797. + if test -n "$RANLIB"; then
  10798. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10799. + postinstall_cmds='$RANLIB $lib'
  10800. + fi
  10801. + ;;
  10802. + aix[[4-9]]*)
  10803. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10804. + test "$enable_shared" = yes && enable_static=no
  10805. + fi
  10806. + ;;
  10807. + esac
  10808. + AC_MSG_RESULT([$enable_shared])
  10809. +
  10810. + AC_MSG_CHECKING([whether to build static libraries])
  10811. + # Make sure either enable_shared or enable_static is yes.
  10812. + test "$enable_shared" = yes || enable_static=yes
  10813. + AC_MSG_RESULT([$enable_static])
  10814. +
  10815. + _LT_TAGVAR(GCC, $1)="$ac_cv_fc_compiler_gnu"
  10816. + _LT_TAGVAR(LD, $1)="$LD"
  10817. +
  10818. + ## CAVEAT EMPTOR:
  10819. + ## There is no encapsulation within the following macros, do not change
  10820. + ## the running order or otherwise move them around unless you know exactly
  10821. + ## what you are doing...
  10822. + _LT_SYS_HIDDEN_LIBDEPS($1)
  10823. + _LT_COMPILER_PIC($1)
  10824. + _LT_COMPILER_C_O($1)
  10825. + _LT_COMPILER_FILE_LOCKS($1)
  10826. + _LT_LINKER_SHLIBS($1)
  10827. + _LT_SYS_DYNAMIC_LINKER($1)
  10828. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10829. +
  10830. + _LT_CONFIG($1)
  10831. + fi # test -n "$compiler"
  10832. +
  10833. + GCC=$lt_save_GCC
  10834. + CC="$lt_save_CC"
  10835. +fi # test "$_lt_disable_FC" != yes
  10836. +
  10837. +AC_LANG_POP
  10838. +])# _LT_LANG_FC_CONFIG
  10839. +
  10840. +
  10841. +# _LT_LANG_GCJ_CONFIG([TAG])
  10842. +# --------------------------
  10843. +# Ensure that the configuration variables for the GNU Java Compiler compiler
  10844. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10845. +# to write the compiler configuration to `libtool'.
  10846. +m4_defun([_LT_LANG_GCJ_CONFIG],
  10847. +[AC_REQUIRE([LT_PROG_GCJ])dnl
  10848. +AC_LANG_SAVE
  10849. +
  10850. +# Source file extension for Java test sources.
  10851. +ac_ext=java
  10852. +
  10853. +# Object file extension for compiled Java test sources.
  10854. +objext=o
  10855. +_LT_TAGVAR(objext, $1)=$objext
  10856. +
  10857. +# Code to be used in simple compile tests
  10858. +lt_simple_compile_test_code="class foo {}"
  10859. +
  10860. +# Code to be used in simple link tests
  10861. +lt_simple_link_test_code='public class conftest { public static void main(String[[]] argv) {}; }'
  10862. +
  10863. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10864. +_LT_TAG_COMPILER
  10865. +
  10866. +# save warnings/boilerplate of simple test code
  10867. +_LT_COMPILER_BOILERPLATE
  10868. +_LT_LINKER_BOILERPLATE
  10869. +
  10870. +# Allow CC to be a program name with arguments.
  10871. +lt_save_CC="$CC"
  10872. +lt_save_GCC=$GCC
  10873. +GCC=yes
  10874. +CC=${GCJ-"gcj"}
  10875. +compiler=$CC
  10876. +_LT_TAGVAR(compiler, $1)=$CC
  10877. +_LT_TAGVAR(LD, $1)="$LD"
  10878. +_LT_CC_BASENAME([$compiler])
  10879. +
  10880. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  10881. +_LT_TAGVAR(archive_cmds_need_lc, $1)=no
  10882. +
  10883. +_LT_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  10884. +
  10885. +if test -n "$compiler"; then
  10886. + _LT_COMPILER_NO_RTTI($1)
  10887. + _LT_COMPILER_PIC($1)
  10888. + _LT_COMPILER_C_O($1)
  10889. + _LT_COMPILER_FILE_LOCKS($1)
  10890. + _LT_LINKER_SHLIBS($1)
  10891. + _LT_LINKER_HARDCODE_LIBPATH($1)
  10892. +
  10893. + _LT_CONFIG($1)
  10894. +fi
  10895. +
  10896. +AC_LANG_RESTORE
  10897. +
  10898. +GCC=$lt_save_GCC
  10899. +CC="$lt_save_CC"
  10900. +])# _LT_LANG_GCJ_CONFIG
  10901. +
  10902. +
  10903. +# _LT_LANG_RC_CONFIG([TAG])
  10904. +# -------------------------
  10905. +# Ensure that the configuration variables for the Windows resource compiler
  10906. +# are suitably defined. These variables are subsequently used by _LT_CONFIG
  10907. +# to write the compiler configuration to `libtool'.
  10908. +m4_defun([_LT_LANG_RC_CONFIG],
  10909. +[AC_REQUIRE([LT_PROG_RC])dnl
  10910. +AC_LANG_SAVE
  10911. +
  10912. +# Source file extension for RC test sources.
  10913. +ac_ext=rc
  10914. +
  10915. +# Object file extension for compiled RC test sources.
  10916. +objext=o
  10917. +_LT_TAGVAR(objext, $1)=$objext
  10918. +
  10919. +# Code to be used in simple compile tests
  10920. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }'
  10921. +
  10922. +# Code to be used in simple link tests
  10923. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  10924. +
  10925. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10926. +_LT_TAG_COMPILER
  10927. +
  10928. +# save warnings/boilerplate of simple test code
  10929. +_LT_COMPILER_BOILERPLATE
  10930. +_LT_LINKER_BOILERPLATE
  10931. +
  10932. +# Allow CC to be a program name with arguments.
  10933. +lt_save_CC="$CC"
  10934. +lt_save_GCC=$GCC
  10935. +GCC=
  10936. +CC=${RC-"windres"}
  10937. +compiler=$CC
  10938. +_LT_TAGVAR(compiler, $1)=$CC
  10939. +_LT_CC_BASENAME([$compiler])
  10940. +_LT_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  10941. +
  10942. +if test -n "$compiler"; then
  10943. + :
  10944. + _LT_CONFIG($1)
  10945. +fi
  10946. +
  10947. +GCC=$lt_save_GCC
  10948. +AC_LANG_RESTORE
  10949. +CC="$lt_save_CC"
  10950. +])# _LT_LANG_RC_CONFIG
  10951. +
  10952. +
  10953. +# LT_PROG_GCJ
  10954. +# -----------
  10955. +AC_DEFUN([LT_PROG_GCJ],
  10956. +[m4_ifdef([AC_PROG_GCJ], [AC_PROG_GCJ],
  10957. + [m4_ifdef([A][M_PROG_GCJ], [A][M_PROG_GCJ],
  10958. + [AC_CHECK_TOOL(GCJ, gcj,)
  10959. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  10960. + AC_SUBST(GCJFLAGS)])])[]dnl
  10961. +])
  10962. +
  10963. +# Old name:
  10964. +AU_ALIAS([LT_AC_PROG_GCJ], [LT_PROG_GCJ])
  10965. +dnl aclocal-1.4 backwards compatibility:
  10966. +dnl AC_DEFUN([LT_AC_PROG_GCJ], [])
  10967. +
  10968. +
  10969. +# LT_PROG_RC
  10970. +# ----------
  10971. +AC_DEFUN([LT_PROG_RC],
  10972. +[AC_CHECK_TOOL(RC, windres,)
  10973. +])
  10974. +
  10975. +# Old name:
  10976. +AU_ALIAS([LT_AC_PROG_RC], [LT_PROG_RC])
  10977. +dnl aclocal-1.4 backwards compatibility:
  10978. +dnl AC_DEFUN([LT_AC_PROG_RC], [])
  10979. +
  10980. +
  10981. +# _LT_DECL_EGREP
  10982. +# --------------
  10983. +# If we don't have a new enough Autoconf to choose the best grep
  10984. +# available, choose the one first in the user's PATH.
  10985. +m4_defun([_LT_DECL_EGREP],
  10986. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  10987. +AC_REQUIRE([AC_PROG_FGREP])dnl
  10988. +test -z "$GREP" && GREP=grep
  10989. +_LT_DECL([], [GREP], [1], [A grep program that handles long lines])
  10990. +_LT_DECL([], [EGREP], [1], [An ERE matcher])
  10991. +_LT_DECL([], [FGREP], [1], [A literal string matcher])
  10992. +dnl Non-bleeding-edge autoconf doesn't subst GREP, so do it here too
  10993. +AC_SUBST([GREP])
  10994. +])
  10995. +
  10996. +
  10997. +# _LT_DECL_OBJDUMP
  10998. +# --------------
  10999. +# If we don't have a new enough Autoconf to choose the best objdump
  11000. +# available, choose the one first in the user's PATH.
  11001. +m4_defun([_LT_DECL_OBJDUMP],
  11002. +[AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11003. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11004. +_LT_DECL([], [OBJDUMP], [1], [An object symbol dumper])
  11005. +AC_SUBST([OBJDUMP])
  11006. +])
  11007. +
  11008. +
  11009. +# _LT_DECL_SED
  11010. +# ------------
  11011. +# Check for a fully-functional sed program, that truncates
  11012. +# as few characters as possible. Prefer GNU sed if found.
  11013. +m4_defun([_LT_DECL_SED],
  11014. +[AC_PROG_SED
  11015. +test -z "$SED" && SED=sed
  11016. +Xsed="$SED -e 1s/^X//"
  11017. +_LT_DECL([], [SED], [1], [A sed program that does not truncate output])
  11018. +_LT_DECL([], [Xsed], ["\$SED -e 1s/^X//"],
  11019. + [Sed that helps us avoid accidentally triggering echo(1) options like -n])
  11020. +])# _LT_DECL_SED
  11021. +
  11022. +m4_ifndef([AC_PROG_SED], [
  11023. +# NOTE: This macro has been submitted for inclusion into #
  11024. +# GNU Autoconf as AC_PROG_SED. When it is available in #
  11025. +# a released version of Autoconf we should remove this #
  11026. +# macro and use it instead. #
  11027. +
  11028. +m4_defun([AC_PROG_SED],
  11029. +[AC_MSG_CHECKING([for a sed that does not truncate output])
  11030. +AC_CACHE_VAL(lt_cv_path_SED,
  11031. +[# Loop through the user's path and test for sed and gsed.
  11032. +# Then use that list of sed's as ones to test for truncation.
  11033. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11034. +for as_dir in $PATH
  11035. +do
  11036. + IFS=$as_save_IFS
  11037. + test -z "$as_dir" && as_dir=.
  11038. + for lt_ac_prog in sed gsed; do
  11039. + for ac_exec_ext in '' $ac_executable_extensions; do
  11040. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  11041. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  11042. + fi
  11043. + done
  11044. + done
  11045. +done
  11046. +IFS=$as_save_IFS
  11047. +lt_ac_max=0
  11048. +lt_ac_count=0
  11049. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  11050. +# along with /bin/sed that truncates output.
  11051. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  11052. + test ! -f $lt_ac_sed && continue
  11053. + cat /dev/null > conftest.in
  11054. + lt_ac_count=0
  11055. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  11056. + # Check for GNU sed and select it if it is found.
  11057. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  11058. + lt_cv_path_SED=$lt_ac_sed
  11059. + break
  11060. + fi
  11061. + while true; do
  11062. + cat conftest.in conftest.in >conftest.tmp
  11063. + mv conftest.tmp conftest.in
  11064. + cp conftest.in conftest.nl
  11065. + echo >>conftest.nl
  11066. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  11067. + cmp -s conftest.out conftest.nl || break
  11068. + # 10000 chars as input seems more than enough
  11069. + test $lt_ac_count -gt 10 && break
  11070. + lt_ac_count=`expr $lt_ac_count + 1`
  11071. + if test $lt_ac_count -gt $lt_ac_max; then
  11072. + lt_ac_max=$lt_ac_count
  11073. + lt_cv_path_SED=$lt_ac_sed
  11074. + fi
  11075. + done
  11076. +done
  11077. +])
  11078. +SED=$lt_cv_path_SED
  11079. +AC_SUBST([SED])
  11080. +AC_MSG_RESULT([$SED])
  11081. +])#AC_PROG_SED
  11082. +])#m4_ifndef
  11083. +
  11084. +# Old name:
  11085. +AU_ALIAS([LT_AC_PROG_SED], [AC_PROG_SED])
  11086. +dnl aclocal-1.4 backwards compatibility:
  11087. +dnl AC_DEFUN([LT_AC_PROG_SED], [])
  11088. +
  11089. +
  11090. +# _LT_CHECK_SHELL_FEATURES
  11091. +# ------------------------
  11092. +# Find out whether the shell is Bourne or XSI compatible,
  11093. +# or has some other useful features.
  11094. +m4_defun([_LT_CHECK_SHELL_FEATURES],
  11095. +[AC_MSG_CHECKING([whether the shell understands some XSI constructs])
  11096. +# Try some XSI features
  11097. +xsi_shell=no
  11098. +( _lt_dummy="a/b/c"
  11099. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  11100. + = c,a/b,, \
  11101. + && eval 'test $(( 1 + 1 )) -eq 2 \
  11102. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  11103. + && xsi_shell=yes
  11104. +AC_MSG_RESULT([$xsi_shell])
  11105. +_LT_CONFIG_LIBTOOL_INIT([xsi_shell='$xsi_shell'])
  11106. +
  11107. +AC_MSG_CHECKING([whether the shell understands "+="])
  11108. +lt_shell_append=no
  11109. +( foo=bar; set foo baz; eval "$[1]+=\$[2]" && test "$foo" = barbaz ) \
  11110. + >/dev/null 2>&1 \
  11111. + && lt_shell_append=yes
  11112. +AC_MSG_RESULT([$lt_shell_append])
  11113. +_LT_CONFIG_LIBTOOL_INIT([lt_shell_append='$lt_shell_append'])
  11114. +
  11115. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  11116. + lt_unset=unset
  11117. +else
  11118. + lt_unset=false
  11119. +fi
  11120. +_LT_DECL([], [lt_unset], [0], [whether the shell understands "unset"])dnl
  11121. +
  11122. +# test EBCDIC or ASCII
  11123. +case `echo X|tr X '\101'` in
  11124. + A) # ASCII based system
  11125. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  11126. + lt_SP2NL='tr \040 \012'
  11127. + lt_NL2SP='tr \015\012 \040\040'
  11128. + ;;
  11129. + *) # EBCDIC based system
  11130. + lt_SP2NL='tr \100 \n'
  11131. + lt_NL2SP='tr \r\n \100\100'
  11132. + ;;
  11133. +esac
  11134. +_LT_DECL([SP2NL], [lt_SP2NL], [1], [turn spaces into newlines])dnl
  11135. +_LT_DECL([NL2SP], [lt_NL2SP], [1], [turn newlines into spaces])dnl
  11136. +])# _LT_CHECK_SHELL_FEATURES
  11137. +
  11138. +
  11139. +# _LT_PROG_XSI_SHELLFNS
  11140. +# ---------------------
  11141. +# Bourne and XSI compatible variants of some useful shell functions.
  11142. +m4_defun([_LT_PROG_XSI_SHELLFNS],
  11143. +[case $xsi_shell in
  11144. + yes)
  11145. + cat << \_LT_EOF >> "$cfgfile"
  11146. +
  11147. +# func_dirname file append nondir_replacement
  11148. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11149. +# otherwise set result to NONDIR_REPLACEMENT.
  11150. +func_dirname ()
  11151. +{
  11152. + case ${1} in
  11153. + */*) func_dirname_result="${1%/*}${2}" ;;
  11154. + * ) func_dirname_result="${3}" ;;
  11155. + esac
  11156. +}
  11157. +
  11158. +# func_basename file
  11159. +func_basename ()
  11160. +{
  11161. + func_basename_result="${1##*/}"
  11162. +}
  11163. +
  11164. +# func_dirname_and_basename file append nondir_replacement
  11165. +# perform func_basename and func_dirname in a single function
  11166. +# call:
  11167. +# dirname: Compute the dirname of FILE. If nonempty,
  11168. +# add APPEND to the result, otherwise set result
  11169. +# to NONDIR_REPLACEMENT.
  11170. +# value returned in "$func_dirname_result"
  11171. +# basename: Compute filename of FILE.
  11172. +# value retuned in "$func_basename_result"
  11173. +# Implementation must be kept synchronized with func_dirname
  11174. +# and func_basename. For efficiency, we do not delegate to
  11175. +# those functions but instead duplicate the functionality here.
  11176. +func_dirname_and_basename ()
  11177. +{
  11178. + case ${1} in
  11179. + */*) func_dirname_result="${1%/*}${2}" ;;
  11180. + * ) func_dirname_result="${3}" ;;
  11181. + esac
  11182. + func_basename_result="${1##*/}"
  11183. +}
  11184. - sysv4*MP*)
  11185. - if test -d /usr/nec; then
  11186. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  11187. - fi
  11188. - ;;
  11189. +# func_stripname prefix suffix name
  11190. +# strip PREFIX and SUFFIX off of NAME.
  11191. +# PREFIX and SUFFIX must not contain globbing or regex special
  11192. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11193. +# dot (in which case that matches only a dot).
  11194. +func_stripname ()
  11195. +{
  11196. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  11197. + # positional parameters, so assign one to ordinary parameter first.
  11198. + func_stripname_result=${3}
  11199. + func_stripname_result=${func_stripname_result#"${1}"}
  11200. + func_stripname_result=${func_stripname_result%"${2}"}
  11201. +}
  11202. - hpux*)
  11203. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11204. - # not for PA HP-UX.
  11205. - case "$host_cpu" in
  11206. - hppa*64*|ia64*)
  11207. - # +Z the default
  11208. - ;;
  11209. - *)
  11210. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  11211. - ;;
  11212. - esac
  11213. - ;;
  11214. +# func_opt_split
  11215. +func_opt_split ()
  11216. +{
  11217. + func_opt_split_opt=${1%%=*}
  11218. + func_opt_split_arg=${1#*=}
  11219. +}
  11220. - *)
  11221. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  11222. - ;;
  11223. - esac
  11224. - else
  11225. - # PORTME Check for flag to pass linker flags through the system compiler.
  11226. - case $host_os in
  11227. - aix*)
  11228. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11229. - if test "$host_cpu" = ia64; then
  11230. - # AIX 5 now supports IA64 processor
  11231. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11232. - else
  11233. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  11234. - fi
  11235. - ;;
  11236. - darwin*)
  11237. - # PIC is the default on this platform
  11238. - # Common symbols not allowed in MH_DYLIB files
  11239. - case $cc_basename in
  11240. - xlc*)
  11241. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-qnocommon'
  11242. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11243. - ;;
  11244. - esac
  11245. - ;;
  11246. +# func_lo2o object
  11247. +func_lo2o ()
  11248. +{
  11249. + case ${1} in
  11250. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  11251. + *) func_lo2o_result=${1} ;;
  11252. + esac
  11253. +}
  11254. - mingw* | pw32* | os2*)
  11255. - # This hack is so that the source file can tell whether it is being
  11256. - # built for inclusion in a dll (and should export symbols for example).
  11257. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  11258. - ;;
  11259. +# func_xform libobj-or-source
  11260. +func_xform ()
  11261. +{
  11262. + func_xform_result=${1%.*}.lo
  11263. +}
  11264. - hpux9* | hpux10* | hpux11*)
  11265. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11266. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  11267. - # not for PA HP-UX.
  11268. - case "$host_cpu" in
  11269. - hppa*64*|ia64*)
  11270. - # +Z the default
  11271. - ;;
  11272. - *)
  11273. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  11274. - ;;
  11275. - esac
  11276. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  11277. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  11278. - ;;
  11279. +# func_arith arithmetic-term...
  11280. +func_arith ()
  11281. +{
  11282. + func_arith_result=$(( $[*] ))
  11283. +}
  11284. - irix5* | irix6* | nonstopux*)
  11285. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11286. - # PIC (with -KPIC) is the default.
  11287. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11288. - ;;
  11289. +# func_len string
  11290. +# STRING may not start with a hyphen.
  11291. +func_len ()
  11292. +{
  11293. + func_len_result=${#1}
  11294. +}
  11295. - newsos6)
  11296. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11297. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11298. - ;;
  11299. +_LT_EOF
  11300. + ;;
  11301. + *) # Bourne compatible functions.
  11302. + cat << \_LT_EOF >> "$cfgfile"
  11303. - linux*)
  11304. - case $cc_basename in
  11305. - icc* | ecc*)
  11306. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11307. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11308. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11309. - ;;
  11310. - pgcc* | pgf77* | pgf90*)
  11311. - # Portland Group compilers (*not* the Pentium gcc compiler,
  11312. - # which looks to be a dead project)
  11313. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11314. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fpic'
  11315. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  11316. - ;;
  11317. - ccc*)
  11318. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11319. - # All Alpha code is PIC.
  11320. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11321. - ;;
  11322. - esac
  11323. - ;;
  11324. +# func_dirname file append nondir_replacement
  11325. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  11326. +# otherwise set result to NONDIR_REPLACEMENT.
  11327. +func_dirname ()
  11328. +{
  11329. + # Extract subdirectory from the argument.
  11330. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  11331. + if test "X$func_dirname_result" = "X${1}"; then
  11332. + func_dirname_result="${3}"
  11333. + else
  11334. + func_dirname_result="$func_dirname_result${2}"
  11335. + fi
  11336. +}
  11337. - osf3* | osf4* | osf5*)
  11338. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11339. - # All OSF/1 code is PIC.
  11340. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  11341. - ;;
  11342. +# func_basename file
  11343. +func_basename ()
  11344. +{
  11345. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  11346. +}
  11347. - sco3.2v5*)
  11348. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  11349. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  11350. - ;;
  11351. +dnl func_dirname_and_basename
  11352. +dnl A portable version of this function is already defined in general.m4sh
  11353. +dnl so there is no need for it here.
  11354. +
  11355. +# func_stripname prefix suffix name
  11356. +# strip PREFIX and SUFFIX off of NAME.
  11357. +# PREFIX and SUFFIX must not contain globbing or regex special
  11358. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  11359. +# dot (in which case that matches only a dot).
  11360. +# func_strip_suffix prefix name
  11361. +func_stripname ()
  11362. +{
  11363. + case ${2} in
  11364. + .*) func_stripname_result=`$ECHO "X${3}" \
  11365. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  11366. + *) func_stripname_result=`$ECHO "X${3}" \
  11367. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  11368. + esac
  11369. +}
  11370. - solaris*)
  11371. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11372. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11373. - case $cc_basename in
  11374. - f77* | f90* | f95*)
  11375. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld ';;
  11376. - *)
  11377. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,';;
  11378. - esac
  11379. - ;;
  11380. +# sed scripts:
  11381. +my_sed_long_opt='1s/^\(-[[^=]]*\)=.*/\1/;q'
  11382. +my_sed_long_arg='1s/^-[[^=]]*=//'
  11383. - sunos4*)
  11384. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  11385. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  11386. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11387. - ;;
  11388. +# func_opt_split
  11389. +func_opt_split ()
  11390. +{
  11391. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  11392. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  11393. +}
  11394. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  11395. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11396. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  11397. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11398. - ;;
  11399. +# func_lo2o object
  11400. +func_lo2o ()
  11401. +{
  11402. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  11403. +}
  11404. - sysv4*MP*)
  11405. - if test -d /usr/nec ;then
  11406. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  11407. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11408. - fi
  11409. - ;;
  11410. +# func_xform libobj-or-source
  11411. +func_xform ()
  11412. +{
  11413. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[[^.]]*$/.lo/'`
  11414. +}
  11415. - unicos*)
  11416. - _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  11417. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11418. - ;;
  11419. +# func_arith arithmetic-term...
  11420. +func_arith ()
  11421. +{
  11422. + func_arith_result=`expr "$[@]"`
  11423. +}
  11424. - uts4*)
  11425. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  11426. - _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  11427. - ;;
  11428. +# func_len string
  11429. +# STRING may not start with a hyphen.
  11430. +func_len ()
  11431. +{
  11432. + func_len_result=`expr "$[1]" : ".*" 2>/dev/null || echo $max_cmd_len`
  11433. +}
  11434. - *)
  11435. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  11436. - ;;
  11437. - esac
  11438. - fi
  11439. -])
  11440. -AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  11441. +_LT_EOF
  11442. +esac
  11443. -#
  11444. -# Check to make sure the PIC flag actually works.
  11445. -#
  11446. -if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  11447. - AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  11448. - _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  11449. - [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  11450. - [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  11451. - "" | " "*) ;;
  11452. - *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  11453. - esac],
  11454. - [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11455. - _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  11456. -fi
  11457. -case "$host_os" in
  11458. - # For platforms which do not support PIC, -DPIC is meaningless:
  11459. - *djgpp*)
  11460. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  11461. +case $lt_shell_append in
  11462. + yes)
  11463. + cat << \_LT_EOF >> "$cfgfile"
  11464. +
  11465. +# func_append var value
  11466. +# Append VALUE to the end of shell variable VAR.
  11467. +func_append ()
  11468. +{
  11469. + eval "$[1]+=\$[2]"
  11470. +}
  11471. +_LT_EOF
  11472. ;;
  11473. *)
  11474. - _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  11475. - ;;
  11476. -esac
  11477. -])
  11478. + cat << \_LT_EOF >> "$cfgfile"
  11479. +# func_append var value
  11480. +# Append VALUE to the end of shell variable VAR.
  11481. +func_append ()
  11482. +{
  11483. + eval "$[1]=\$$[1]\$[2]"
  11484. +}
  11485. -# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  11486. -# ------------------------------------
  11487. -# See if the linker supports building shared libraries.
  11488. -AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  11489. -[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  11490. -ifelse([$1],[CXX],[
  11491. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11492. - case $host_os in
  11493. - aix4* | aix5*)
  11494. - # If we're using GNU nm, then we don't want the "-C" option.
  11495. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11496. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11497. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11498. - else
  11499. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11500. - fi
  11501. - ;;
  11502. - pw32*)
  11503. - _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  11504. - ;;
  11505. - cygwin* | mingw*)
  11506. - _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'
  11507. - ;;
  11508. - *)
  11509. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11510. - ;;
  11511. - esac
  11512. -],[
  11513. - runpath_var=
  11514. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  11515. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  11516. - _LT_AC_TAGVAR(archive_cmds, $1)=
  11517. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  11518. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  11519. - _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  11520. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11521. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11522. - _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  11523. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11524. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  11525. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11526. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  11527. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  11528. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  11529. - _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  11530. - _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  11531. - _LT_AC_TAGVAR(module_cmds, $1)=
  11532. - _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  11533. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11534. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  11535. - # include_expsyms should be a list of space-separated symbols to be *always*
  11536. - # included in the symbol list
  11537. - _LT_AC_TAGVAR(include_expsyms, $1)=
  11538. - # exclude_expsyms can be an extended regexp of symbols to exclude
  11539. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  11540. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  11541. - # as well as any symbol that contains `d'.
  11542. - _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  11543. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  11544. - # platforms (ab)use it in PIC code, but their linkers get confused if
  11545. - # the symbol is explicitly referenced. Since portable code cannot
  11546. - # rely on this symbol name, it's probably fine to never include it in
  11547. - # preloaded symbol tables.
  11548. - extract_expsyms_cmds=
  11549. - # Just being paranoid about ensuring that cc_basename is set.
  11550. - _LT_CC_BASENAME([$compiler])
  11551. - case $host_os in
  11552. - cygwin* | mingw* | pw32*)
  11553. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  11554. - # When not using gcc, we currently assume that we are using
  11555. - # Microsoft Visual C++.
  11556. - if test "$GCC" != yes; then
  11557. - with_gnu_ld=no
  11558. - fi
  11559. - ;;
  11560. - openbsd*)
  11561. - with_gnu_ld=no
  11562. +_LT_EOF
  11563. ;;
  11564. esac
  11565. +])
  11566. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  11567. - if test "$with_gnu_ld" = yes; then
  11568. - # If archive_cmds runs LD, not CC, wlarc should be empty
  11569. - wlarc='${wl}'
  11570. -
  11571. - # Set some defaults for GNU ld with shared library support. These
  11572. - # are reset later if shared libraries are not supported. Putting them
  11573. - # here allows them to be overridden if necessary.
  11574. - runpath_var=LD_RUN_PATH
  11575. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  11576. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  11577. - # ancient GNU ld didn't support --whole-archive et. al.
  11578. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  11579. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11580. - else
  11581. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11582. - fi
  11583. - supports_anon_versioning=no
  11584. - case `$LD -v 2>/dev/null` in
  11585. - *\ [[01]].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  11586. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  11587. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  11588. - *\ 2.11.*) ;; # other 2.11 versions
  11589. - *) supports_anon_versioning=yes ;;
  11590. - esac
  11591. -
  11592. - # See if GNU ld supports shared libraries.
  11593. - case $host_os in
  11594. - aix3* | aix4* | aix5*)
  11595. - # On AIX/PPC, the GNU linker is very broken
  11596. - if test "$host_cpu" != ia64; then
  11597. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11598. - cat <<EOF 1>&2
  11599. +# Helper functions for option handling. -*- Autoconf -*-
  11600. +#
  11601. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  11602. +# Written by Gary V. Vaughan, 2004
  11603. +#
  11604. +# This file is free software; the Free Software Foundation gives
  11605. +# unlimited permission to copy and/or distribute it, with or without
  11606. +# modifications, as long as this notice is preserved.
  11607. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  11608. -*** to be unable to reliably create shared libraries on AIX.
  11609. -*** Therefore, libtool is disabling shared libraries support. If you
  11610. -*** really care for shared libraries, you may want to modify your PATH
  11611. -*** so that a non-GNU linker is found, and then restart.
  11612. +# serial 6 ltoptions.m4
  11613. -EOF
  11614. - fi
  11615. - ;;
  11616. +# This is to help aclocal find these macros, as it can't see m4_define.
  11617. +AC_DEFUN([LTOPTIONS_VERSION], [m4_if([1])])
  11618. - amigaos*)
  11619. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11620. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11621. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11622. -
  11623. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  11624. - # that the semantics of dynamic libraries on AmigaOS, at least up
  11625. - # to version 4, is to share data among multiple programs linked
  11626. - # with the same dynamic library. Since this doesn't match the
  11627. - # behavior of shared libraries on other platforms, we can't use
  11628. - # them.
  11629. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11630. - ;;
  11631. - beos*)
  11632. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11633. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11634. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  11635. - # support --undefined. This deserves some investigation. FIXME
  11636. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11637. - else
  11638. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11639. - fi
  11640. - ;;
  11641. +# _LT_MANGLE_OPTION(MACRO-NAME, OPTION-NAME)
  11642. +# ------------------------------------------
  11643. +m4_define([_LT_MANGLE_OPTION],
  11644. +[[_LT_OPTION_]m4_bpatsubst($1__$2, [[^a-zA-Z0-9_]], [_])])
  11645. - cygwin* | mingw* | pw32*)
  11646. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  11647. - # as there is no search path for DLLs.
  11648. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11649. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11650. - _LT_AC_TAGVAR(always_export_symbols, $1)=no
  11651. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  11652. - _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'
  11653. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  11654. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11655. - # If the export-symbols file already is a .def file (1st line
  11656. - # is EXPORTS), use it as is; otherwise, prepend...
  11657. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11658. - cp $export_symbols $output_objdir/$soname.def;
  11659. - else
  11660. - echo EXPORTS > $output_objdir/$soname.def;
  11661. - cat $export_symbols >> $output_objdir/$soname.def;
  11662. - fi~
  11663. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  11664. - else
  11665. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11666. - fi
  11667. - ;;
  11668. +# _LT_SET_OPTION(MACRO-NAME, OPTION-NAME)
  11669. +# ---------------------------------------
  11670. +# Set option OPTION-NAME for macro MACRO-NAME, and if there is a
  11671. +# matching handler defined, dispatch to it. Other OPTION-NAMEs are
  11672. +# saved as a flag.
  11673. +m4_define([_LT_SET_OPTION],
  11674. +[m4_define(_LT_MANGLE_OPTION([$1], [$2]))dnl
  11675. +m4_ifdef(_LT_MANGLE_DEFUN([$1], [$2]),
  11676. + _LT_MANGLE_DEFUN([$1], [$2]),
  11677. + [m4_warning([Unknown $1 option `$2'])])[]dnl
  11678. +])
  11679. - linux*)
  11680. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11681. - tmp_addflag=
  11682. - case $cc_basename,$host_cpu in
  11683. - pgcc*) # Portland Group C compiler
  11684. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11685. - ;;
  11686. - pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  11687. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11688. - tmp_addflag=' -fpic -Mnomain' ;;
  11689. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  11690. - tmp_addflag=' -i_dynamic' ;;
  11691. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  11692. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  11693. - ifc* | ifort*) # Intel Fortran compiler
  11694. - tmp_addflag=' -nofor_main' ;;
  11695. - esac
  11696. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11697. - if test $supports_anon_versioning = yes; then
  11698. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  11699. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11700. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  11701. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11702. - fi
  11703. - else
  11704. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11705. - fi
  11706. - ;;
  11707. +# _LT_IF_OPTION(MACRO-NAME, OPTION-NAME, IF-SET, [IF-NOT-SET])
  11708. +# ------------------------------------------------------------
  11709. +# Execute IF-SET if OPTION is set, IF-NOT-SET otherwise.
  11710. +m4_define([_LT_IF_OPTION],
  11711. +[m4_ifdef(_LT_MANGLE_OPTION([$1], [$2]), [$3], [$4])])
  11712. - netbsd*)
  11713. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  11714. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  11715. - wlarc=
  11716. - else
  11717. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11718. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11719. - fi
  11720. - ;;
  11721. - solaris* | sysv5*)
  11722. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  11723. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11724. - cat <<EOF 1>&2
  11725. +# _LT_UNLESS_OPTIONS(MACRO-NAME, OPTION-LIST, IF-NOT-SET)
  11726. +# -------------------------------------------------------
  11727. +# Execute IF-NOT-SET unless all options in OPTION-LIST for MACRO-NAME
  11728. +# are set.
  11729. +m4_define([_LT_UNLESS_OPTIONS],
  11730. +[m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11731. + [m4_ifdef(_LT_MANGLE_OPTION([$1], _LT_Option),
  11732. + [m4_define([$0_found])])])[]dnl
  11733. +m4_ifdef([$0_found], [m4_undefine([$0_found])], [$3
  11734. +])[]dnl
  11735. +])
  11736. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  11737. -*** create shared libraries on Solaris systems. Therefore, libtool
  11738. -*** is disabling shared libraries support. We urge you to upgrade GNU
  11739. -*** binutils to release 2.9.1 or newer. Another option is to modify
  11740. -*** your PATH or compiler configuration so that the native linker is
  11741. -*** used, and then restart.
  11742. -EOF
  11743. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11744. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11745. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11746. - else
  11747. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11748. - fi
  11749. - ;;
  11750. +# _LT_SET_OPTIONS(MACRO-NAME, OPTION-LIST)
  11751. +# ----------------------------------------
  11752. +# OPTION-LIST is a space-separated list of Libtool options associated
  11753. +# with MACRO-NAME. If any OPTION has a matching handler declared with
  11754. +# LT_OPTION_DEFINE, dispatch to that macro; otherwise complain about
  11755. +# the unknown option and exit.
  11756. +m4_defun([_LT_SET_OPTIONS],
  11757. +[# Set options
  11758. +m4_foreach([_LT_Option], m4_split(m4_normalize([$2])),
  11759. + [_LT_SET_OPTION([$1], _LT_Option)])
  11760. +
  11761. +m4_if([$1],[LT_INIT],[
  11762. + dnl
  11763. + dnl Simply set some default values (i.e off) if boolean options were not
  11764. + dnl specified:
  11765. + _LT_UNLESS_OPTIONS([LT_INIT], [dlopen], [enable_dlopen=no
  11766. + ])
  11767. + _LT_UNLESS_OPTIONS([LT_INIT], [win32-dll], [enable_win32_dll=no
  11768. + ])
  11769. + dnl
  11770. + dnl If no reference was made to various pairs of opposing options, then
  11771. + dnl we run the default mode handler for the pair. For example, if neither
  11772. + dnl `shared' nor `disable-shared' was passed, we enable building of shared
  11773. + dnl archives by default:
  11774. + _LT_UNLESS_OPTIONS([LT_INIT], [shared disable-shared], [_LT_ENABLE_SHARED])
  11775. + _LT_UNLESS_OPTIONS([LT_INIT], [static disable-static], [_LT_ENABLE_STATIC])
  11776. + _LT_UNLESS_OPTIONS([LT_INIT], [pic-only no-pic], [_LT_WITH_PIC])
  11777. + _LT_UNLESS_OPTIONS([LT_INIT], [fast-install disable-fast-install],
  11778. + [_LT_ENABLE_FAST_INSTALL])
  11779. + ])
  11780. +])# _LT_SET_OPTIONS
  11781. +
  11782. +
  11783. +
  11784. +# _LT_MANGLE_DEFUN(MACRO-NAME, OPTION-NAME)
  11785. +# -----------------------------------------
  11786. +m4_define([_LT_MANGLE_DEFUN],
  11787. +[[_LT_OPTION_DEFUN_]m4_bpatsubst(m4_toupper([$1__$2]), [[^A-Z0-9_]], [_])])
  11788. +
  11789. - sunos4*)
  11790. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  11791. - wlarc=
  11792. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11793. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  11794. - ;;
  11795. +# LT_OPTION_DEFINE(MACRO-NAME, OPTION-NAME, CODE)
  11796. +# -----------------------------------------------
  11797. +m4_define([LT_OPTION_DEFINE],
  11798. +[m4_define(_LT_MANGLE_DEFUN([$1], [$2]), [$3])[]dnl
  11799. +])# LT_OPTION_DEFINE
  11800. - *)
  11801. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  11802. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11803. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11804. - else
  11805. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11806. - fi
  11807. - ;;
  11808. - esac
  11809. - if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no; then
  11810. - runpath_var=
  11811. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  11812. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  11813. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  11814. - fi
  11815. - else
  11816. - # PORTME fill in a description of your system's linker (not GNU ld)
  11817. - case $host_os in
  11818. - aix3*)
  11819. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11820. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11821. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
  11822. - # Note: this linker hardcodes the directories in LIBPATH if there
  11823. - # are no directories specified by -L.
  11824. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11825. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  11826. - # Neither direct hardcoding nor static linking is supported with a
  11827. - # broken collect2.
  11828. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11829. - fi
  11830. - ;;
  11831. +# dlopen
  11832. +# ------
  11833. +LT_OPTION_DEFINE([LT_INIT], [dlopen], [enable_dlopen=yes
  11834. +])
  11835. - aix4* | aix5*)
  11836. - if test "$host_cpu" = ia64; then
  11837. - # On IA64, the linker does run time linking by default, so we don't
  11838. - # have to do anything special.
  11839. - aix_use_runtimelinking=no
  11840. - exp_sym_flag='-Bexport'
  11841. - no_entry_flag=""
  11842. - else
  11843. - # If we're using GNU nm, then we don't want the "-C" option.
  11844. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  11845. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  11846. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11847. - else
  11848. - _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\[$]2 == "T") || (\[$]2 == "D") || (\[$]2 == "B")) && ([substr](\[$]3,1,1) != ".")) { print \[$]3 } }'\'' | sort -u > $export_symbols'
  11849. - fi
  11850. - aix_use_runtimelinking=no
  11851. +AU_DEFUN([AC_LIBTOOL_DLOPEN],
  11852. +[_LT_SET_OPTION([LT_INIT], [dlopen])
  11853. +AC_DIAGNOSE([obsolete],
  11854. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  11855. +put the `dlopen' option into LT_INIT's first parameter.])
  11856. +])
  11857. - # Test if we are trying to use run time linking or normal
  11858. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  11859. - # need to do runtime linking.
  11860. - case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  11861. - for ld_flag in $LDFLAGS; do
  11862. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  11863. - aix_use_runtimelinking=yes
  11864. - break
  11865. - fi
  11866. - done
  11867. - esac
  11868. +dnl aclocal-1.4 backwards compatibility:
  11869. +dnl AC_DEFUN([AC_LIBTOOL_DLOPEN], [])
  11870. - exp_sym_flag='-bexport'
  11871. - no_entry_flag='-bnoentry'
  11872. - fi
  11873. - # When large executables or shared objects are built, AIX ld can
  11874. - # have problems creating the table of contents. If linking a library
  11875. - # or program results in "error TOC overflow" add -mminimal-toc to
  11876. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  11877. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  11878. +# win32-dll
  11879. +# ---------
  11880. +# Declare package support for building win32 dll's.
  11881. +LT_OPTION_DEFINE([LT_INIT], [win32-dll],
  11882. +[enable_win32_dll=yes
  11883. - _LT_AC_TAGVAR(archive_cmds, $1)=''
  11884. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11885. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  11886. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  11887. +case $host in
  11888. +*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-cegcc*)
  11889. + AC_CHECK_TOOL(AS, as, false)
  11890. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  11891. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  11892. + ;;
  11893. +esac
  11894. - if test "$GCC" = yes; then
  11895. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  11896. - # We only want to do this on AIX 4.2 and lower, the check
  11897. - # below for broken collect2 doesn't work under 4.3+
  11898. - collect2name=`${CC} -print-prog-name=collect2`
  11899. - if test -f "$collect2name" && \
  11900. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  11901. - then
  11902. - # We have reworked collect2
  11903. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  11904. - else
  11905. - # We have old collect2
  11906. - _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  11907. - # It fails to find uninstalled libraries when the uninstalled
  11908. - # path is not listed in the libpath. Setting hardcode_minus_L
  11909. - # to unsupported forces relinking
  11910. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11911. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11912. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  11913. - fi
  11914. - esac
  11915. - shared_flag='-shared'
  11916. - if test "$aix_use_runtimelinking" = yes; then
  11917. - shared_flag="$shared_flag "'${wl}-G'
  11918. - fi
  11919. - else
  11920. - # not using gcc
  11921. - if test "$host_cpu" = ia64; then
  11922. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  11923. - # chokes on -Wl,-G. The following line is correct:
  11924. - shared_flag='-G'
  11925. - else
  11926. - if test "$aix_use_runtimelinking" = yes; then
  11927. - shared_flag='${wl}-G'
  11928. - else
  11929. - shared_flag='${wl}-bM:SRE'
  11930. - fi
  11931. - fi
  11932. - fi
  11933. +test -z "$AS" && AS=as
  11934. +_LT_DECL([], [AS], [0], [Assembler program])dnl
  11935. - # It seems that -bexpall does not export symbols beginning with
  11936. - # underscore (_), so it is better to generate a list of symbols to export.
  11937. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11938. - if test "$aix_use_runtimelinking" = yes; then
  11939. - # Warning - without using the other runtime loading flags (-brtl),
  11940. - # -berok will link without error, but may produce a broken library.
  11941. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  11942. - # Determine the default libpath from the value encoded in an empty executable.
  11943. - _LT_AC_SYS_LIBPATH_AIX
  11944. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11945. - _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"
  11946. - else
  11947. - if test "$host_cpu" = ia64; then
  11948. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  11949. - _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  11950. - _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"
  11951. - else
  11952. - # Determine the default libpath from the value encoded in an empty executable.
  11953. - _LT_AC_SYS_LIBPATH_AIX
  11954. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  11955. - # Warning - without using the other run time loading flags,
  11956. - # -berok will link without error, but may produce a broken library.
  11957. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  11958. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  11959. - # -bexpall does not export symbols beginning with underscore (_)
  11960. - _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  11961. - # Exported symbols can be pulled into shared objects from archives
  11962. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  11963. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  11964. - # This is similar to how AIX traditionally builds it's shared libraries.
  11965. - _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'
  11966. - fi
  11967. - fi
  11968. - ;;
  11969. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  11970. +_LT_DECL([], [DLLTOOL], [0], [DLL creation program])dnl
  11971. - amigaos*)
  11972. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/a2ixlibrary.data~$echo "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$echo "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$echo "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$echo "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
  11973. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  11974. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  11975. - # see comment about different semantics on the GNU ld section
  11976. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  11977. - ;;
  11978. +test -z "$OBJDUMP" && OBJDUMP=objdump
  11979. +_LT_DECL([], [OBJDUMP], [0], [Object dumper program])dnl
  11980. +])# win32-dll
  11981. - bsdi[[45]]*)
  11982. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  11983. - ;;
  11984. +AU_DEFUN([AC_LIBTOOL_WIN32_DLL],
  11985. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  11986. +_LT_SET_OPTION([LT_INIT], [win32-dll])
  11987. +AC_DIAGNOSE([obsolete],
  11988. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  11989. +put the `win32-dll' option into LT_INIT's first parameter.])
  11990. +])
  11991. - cygwin* | mingw* | pw32*)
  11992. - # When not using gcc, we currently assume that we are using
  11993. - # Microsoft Visual C++.
  11994. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  11995. - # no search path for DLLs.
  11996. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  11997. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  11998. - # Tell ltmain to make .lib files, not .a files.
  11999. - libext=lib
  12000. - # Tell ltmain to make .dll files, not .so files.
  12001. - shrext_cmds=".dll"
  12002. - # FIXME: Setting linknames here is a bad hack.
  12003. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  12004. - # The linker will automatically build a .lib file if we build a DLL.
  12005. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  12006. - # FIXME: Should let the user specify the lib program.
  12007. - _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  12008. - _LT_AC_TAGVAR(fix_srcfile_path, $1)='`cygpath -w "$srcfile"`'
  12009. - _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  12010. - ;;
  12011. +dnl aclocal-1.4 backwards compatibility:
  12012. +dnl AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [])
  12013. - darwin* | rhapsody*)
  12014. - case "$host_os" in
  12015. - rhapsody* | darwin1.[[012]])
  12016. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}suppress'
  12017. - ;;
  12018. - *) # Darwin 1.3 on
  12019. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  12020. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12021. - else
  12022. - case ${MACOSX_DEPLOYMENT_TARGET} in
  12023. - 10.[[012]])
  12024. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  12025. - ;;
  12026. - 10.*)
  12027. - _LT_AC_TAGVAR(allow_undefined_flag, $1)='${wl}-undefined ${wl}dynamic_lookup'
  12028. - ;;
  12029. - esac
  12030. - fi
  12031. - ;;
  12032. - esac
  12033. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12034. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12035. - _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  12036. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  12037. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=''
  12038. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12039. - if test "$GCC" = yes ; then
  12040. - output_verbose_link_cmd='echo'
  12041. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  12042. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12043. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12044. - _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}'
  12045. - _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}'
  12046. - else
  12047. - case $cc_basename in
  12048. - xlc*)
  12049. - output_verbose_link_cmd='echo'
  12050. - _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'
  12051. - _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  12052. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  12053. - _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}'
  12054. - _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}'
  12055. - ;;
  12056. - *)
  12057. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12058. - ;;
  12059. - esac
  12060. - fi
  12061. - ;;
  12062. - dgux*)
  12063. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12064. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12065. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12066. +# _LT_ENABLE_SHARED([DEFAULT])
  12067. +# ----------------------------
  12068. +# implement the --enable-shared flag, and supports the `shared' and
  12069. +# `disable-shared' LT_INIT options.
  12070. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12071. +m4_define([_LT_ENABLE_SHARED],
  12072. +[m4_define([_LT_ENABLE_SHARED_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12073. +AC_ARG_ENABLE([shared],
  12074. + [AS_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  12075. + [build shared libraries @<:@default=]_LT_ENABLE_SHARED_DEFAULT[@:>@])],
  12076. + [p=${PACKAGE-default}
  12077. + case $enableval in
  12078. + yes) enable_shared=yes ;;
  12079. + no) enable_shared=no ;;
  12080. + *)
  12081. + enable_shared=no
  12082. + # Look at the argument we got. We use all the common list separators.
  12083. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12084. + for pkg in $enableval; do
  12085. + IFS="$lt_save_ifs"
  12086. + if test "X$pkg" = "X$p"; then
  12087. + enable_shared=yes
  12088. + fi
  12089. + done
  12090. + IFS="$lt_save_ifs"
  12091. ;;
  12092. + esac],
  12093. + [enable_shared=]_LT_ENABLE_SHARED_DEFAULT)
  12094. - freebsd1*)
  12095. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12096. - ;;
  12097. + _LT_DECL([build_libtool_libs], [enable_shared], [0],
  12098. + [Whether or not to build shared libraries])
  12099. +])# _LT_ENABLE_SHARED
  12100. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  12101. - # support. Future versions do this automatically, but an explicit c++rt0.o
  12102. - # does not break anything, and helps significantly (at the cost of a little
  12103. - # extra space).
  12104. - freebsd2.2*)
  12105. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  12106. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12107. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12108. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12109. - ;;
  12110. +LT_OPTION_DEFINE([LT_INIT], [shared], [_LT_ENABLE_SHARED([yes])])
  12111. +LT_OPTION_DEFINE([LT_INIT], [disable-shared], [_LT_ENABLE_SHARED([no])])
  12112. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  12113. - freebsd2*)
  12114. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12115. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12116. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12117. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12118. - ;;
  12119. +# Old names:
  12120. +AC_DEFUN([AC_ENABLE_SHARED],
  12121. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[shared])
  12122. +])
  12123. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  12124. - freebsd* | kfreebsd*-gnu | dragonfly*)
  12125. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  12126. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12127. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12128. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12129. - ;;
  12130. +AC_DEFUN([AC_DISABLE_SHARED],
  12131. +[_LT_SET_OPTION([LT_INIT], [disable-shared])
  12132. +])
  12133. - hpux9*)
  12134. - if test "$GCC" = yes; then
  12135. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12136. - else
  12137. - _LT_AC_TAGVAR(archive_cmds, $1)='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  12138. - fi
  12139. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12140. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12141. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12142. +AU_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12143. +AU_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12144. - # hardcode_minus_L: Not really in the search PATH,
  12145. - # but as the default location of the library.
  12146. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12147. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12148. - ;;
  12149. +dnl aclocal-1.4 backwards compatibility:
  12150. +dnl AC_DEFUN([AM_ENABLE_SHARED], [])
  12151. +dnl AC_DEFUN([AM_DISABLE_SHARED], [])
  12152. - hpux10* | hpux11*)
  12153. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  12154. - case "$host_cpu" in
  12155. - hppa*64*|ia64*)
  12156. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12157. - ;;
  12158. - *)
  12159. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  12160. - ;;
  12161. - esac
  12162. - else
  12163. - case "$host_cpu" in
  12164. - hppa*64*|ia64*)
  12165. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  12166. - ;;
  12167. - *)
  12168. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  12169. - ;;
  12170. - esac
  12171. - fi
  12172. - if test "$with_gnu_ld" = no; then
  12173. - case "$host_cpu" in
  12174. - hppa*64*)
  12175. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12176. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  12177. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12178. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12179. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12180. - ;;
  12181. - ia64*)
  12182. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12183. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12184. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12185. - # hardcode_minus_L: Not really in the search PATH,
  12186. - # but as the default location of the library.
  12187. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12188. - ;;
  12189. - *)
  12190. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  12191. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12192. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12193. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12194. - # hardcode_minus_L: Not really in the search PATH,
  12195. - # but as the default location of the library.
  12196. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12197. - ;;
  12198. - esac
  12199. - fi
  12200. +# _LT_ENABLE_STATIC([DEFAULT])
  12201. +# ----------------------------
  12202. +# implement the --enable-static flag, and support the `static' and
  12203. +# `disable-static' LT_INIT options.
  12204. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12205. +m4_define([_LT_ENABLE_STATIC],
  12206. +[m4_define([_LT_ENABLE_STATIC_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12207. +AC_ARG_ENABLE([static],
  12208. + [AS_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  12209. + [build static libraries @<:@default=]_LT_ENABLE_STATIC_DEFAULT[@:>@])],
  12210. + [p=${PACKAGE-default}
  12211. + case $enableval in
  12212. + yes) enable_static=yes ;;
  12213. + no) enable_static=no ;;
  12214. + *)
  12215. + enable_static=no
  12216. + # Look at the argument we got. We use all the common list separators.
  12217. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12218. + for pkg in $enableval; do
  12219. + IFS="$lt_save_ifs"
  12220. + if test "X$pkg" = "X$p"; then
  12221. + enable_static=yes
  12222. + fi
  12223. + done
  12224. + IFS="$lt_save_ifs"
  12225. ;;
  12226. + esac],
  12227. + [enable_static=]_LT_ENABLE_STATIC_DEFAULT)
  12228. - irix5* | irix6* | nonstopux*)
  12229. - if test "$GCC" = yes; then
  12230. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12231. - else
  12232. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12233. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  12234. - fi
  12235. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12236. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12237. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12238. - ;;
  12239. + _LT_DECL([build_old_libs], [enable_static], [0],
  12240. + [Whether or not to build static libraries])
  12241. +])# _LT_ENABLE_STATIC
  12242. - netbsd*)
  12243. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  12244. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  12245. - else
  12246. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  12247. - fi
  12248. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12249. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12250. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12251. - ;;
  12252. +LT_OPTION_DEFINE([LT_INIT], [static], [_LT_ENABLE_STATIC([yes])])
  12253. +LT_OPTION_DEFINE([LT_INIT], [disable-static], [_LT_ENABLE_STATIC([no])])
  12254. - newsos6)
  12255. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12256. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12257. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12258. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12259. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12260. - ;;
  12261. +# Old names:
  12262. +AC_DEFUN([AC_ENABLE_STATIC],
  12263. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[static])
  12264. +])
  12265. - openbsd*)
  12266. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12267. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12268. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  12269. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12270. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  12271. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12272. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  12273. - else
  12274. - case $host_os in
  12275. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  12276. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  12277. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12278. - ;;
  12279. - *)
  12280. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  12281. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  12282. - ;;
  12283. - esac
  12284. - fi
  12285. - ;;
  12286. +AC_DEFUN([AC_DISABLE_STATIC],
  12287. +[_LT_SET_OPTION([LT_INIT], [disable-static])
  12288. +])
  12289. - os2*)
  12290. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12291. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12292. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  12293. - _LT_AC_TAGVAR(archive_cmds, $1)='$echo "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$echo "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~$echo DATA >> $output_objdir/$libname.def~$echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~$echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
  12294. - _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  12295. - ;;
  12296. +AU_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12297. +AU_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12298. - osf3*)
  12299. - if test "$GCC" = yes; then
  12300. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12301. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12302. - else
  12303. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12304. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib'
  12305. - fi
  12306. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12307. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12308. +dnl aclocal-1.4 backwards compatibility:
  12309. +dnl AC_DEFUN([AM_ENABLE_STATIC], [])
  12310. +dnl AC_DEFUN([AM_DISABLE_STATIC], [])
  12311. +
  12312. +
  12313. +
  12314. +# _LT_ENABLE_FAST_INSTALL([DEFAULT])
  12315. +# ----------------------------------
  12316. +# implement the --enable-fast-install flag, and support the `fast-install'
  12317. +# and `disable-fast-install' LT_INIT options.
  12318. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  12319. +m4_define([_LT_ENABLE_FAST_INSTALL],
  12320. +[m4_define([_LT_ENABLE_FAST_INSTALL_DEFAULT], [m4_if($1, no, no, yes)])dnl
  12321. +AC_ARG_ENABLE([fast-install],
  12322. + [AS_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  12323. + [optimize for fast installation @<:@default=]_LT_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  12324. + [p=${PACKAGE-default}
  12325. + case $enableval in
  12326. + yes) enable_fast_install=yes ;;
  12327. + no) enable_fast_install=no ;;
  12328. + *)
  12329. + enable_fast_install=no
  12330. + # Look at the argument we got. We use all the common list separators.
  12331. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  12332. + for pkg in $enableval; do
  12333. + IFS="$lt_save_ifs"
  12334. + if test "X$pkg" = "X$p"; then
  12335. + enable_fast_install=yes
  12336. + fi
  12337. + done
  12338. + IFS="$lt_save_ifs"
  12339. ;;
  12340. + esac],
  12341. + [enable_fast_install=]_LT_ENABLE_FAST_INSTALL_DEFAULT)
  12342. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  12343. - if test "$GCC" = yes; then
  12344. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  12345. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  12346. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  12347. - else
  12348. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  12349. - _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'
  12350. - _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~
  12351. - $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'
  12352. -
  12353. - # Both c and cxx compiler support -rpath directly
  12354. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  12355. - fi
  12356. - _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  12357. - ;;
  12358. +_LT_DECL([fast_install], [enable_fast_install], [0],
  12359. + [Whether or not to optimize for fast installation])dnl
  12360. +])# _LT_ENABLE_FAST_INSTALL
  12361. +
  12362. +LT_OPTION_DEFINE([LT_INIT], [fast-install], [_LT_ENABLE_FAST_INSTALL([yes])])
  12363. +LT_OPTION_DEFINE([LT_INIT], [disable-fast-install], [_LT_ENABLE_FAST_INSTALL([no])])
  12364. +
  12365. +# Old names:
  12366. +AU_DEFUN([AC_ENABLE_FAST_INSTALL],
  12367. +[_LT_SET_OPTION([LT_INIT], m4_if([$1], [no], [disable-])[fast-install])
  12368. +AC_DIAGNOSE([obsolete],
  12369. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12370. +the `fast-install' option into LT_INIT's first parameter.])
  12371. +])
  12372. - sco3.2v5*)
  12373. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12374. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12375. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  12376. - runpath_var=LD_RUN_PATH
  12377. - hardcode_runpath_var=yes
  12378. - ;;
  12379. +AU_DEFUN([AC_DISABLE_FAST_INSTALL],
  12380. +[_LT_SET_OPTION([LT_INIT], [disable-fast-install])
  12381. +AC_DIAGNOSE([obsolete],
  12382. +[$0: Remove this warning and the call to _LT_SET_OPTION when you put
  12383. +the `disable-fast-install' option into LT_INIT's first parameter.])
  12384. +])
  12385. - solaris*)
  12386. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12387. - if test "$GCC" = yes; then
  12388. - wlarc='${wl}'
  12389. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12390. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12391. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  12392. - else
  12393. - wlarc=''
  12394. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12395. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12396. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12397. - fi
  12398. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  12399. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12400. - case $host_os in
  12401. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  12402. - *)
  12403. - # The compiler driver will combine linker options so we
  12404. - # cannot just pass the convience library names through
  12405. - # without $wl, iff we do not link with $LD.
  12406. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  12407. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  12408. - case $wlarc in
  12409. - '')
  12410. - _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  12411. - *)
  12412. - _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' ;;
  12413. - esac ;;
  12414. - esac
  12415. - _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  12416. - ;;
  12417. +dnl aclocal-1.4 backwards compatibility:
  12418. +dnl AC_DEFUN([AC_ENABLE_FAST_INSTALL], [])
  12419. +dnl AC_DEFUN([AM_DISABLE_FAST_INSTALL], [])
  12420. - sunos4*)
  12421. - if test "x$host_vendor" = xsequent; then
  12422. - # Use $CC to link under sequent, because it throws in some extra .o
  12423. - # files that make .init and .fini sections work.
  12424. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  12425. - else
  12426. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  12427. - fi
  12428. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12429. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12430. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  12431. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12432. - ;;
  12433. - sysv4)
  12434. - case $host_vendor in
  12435. - sni)
  12436. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12437. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  12438. - ;;
  12439. - siemens)
  12440. - ## LD is ld it makes a PLAMLIB
  12441. - ## CC just makes a GrossModule.
  12442. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12443. - _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  12444. - _LT_AC_TAGVAR(hardcode_direct, $1)=no
  12445. - ;;
  12446. - motorola)
  12447. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12448. - _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  12449. - ;;
  12450. - esac
  12451. - runpath_var='LD_RUN_PATH'
  12452. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12453. - ;;
  12454. +# _LT_WITH_PIC([MODE])
  12455. +# --------------------
  12456. +# implement the --with-pic flag, and support the `pic-only' and `no-pic'
  12457. +# LT_INIT options.
  12458. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  12459. +m4_define([_LT_WITH_PIC],
  12460. +[AC_ARG_WITH([pic],
  12461. + [AS_HELP_STRING([--with-pic],
  12462. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  12463. + [pic_mode="$withval"],
  12464. + [pic_mode=default])
  12465. - sysv4.3*)
  12466. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12467. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12468. - _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  12469. - ;;
  12470. +test -z "$pic_mode" && pic_mode=m4_default([$1], [default])
  12471. - sysv4*MP*)
  12472. - if test -d /usr/nec; then
  12473. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12474. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12475. - runpath_var=LD_RUN_PATH
  12476. - hardcode_runpath_var=yes
  12477. - _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  12478. - fi
  12479. - ;;
  12480. +_LT_DECL([], [pic_mode], [0], [What type of objects to build])dnl
  12481. +])# _LT_WITH_PIC
  12482. - sysv4.2uw2*)
  12483. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  12484. - _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  12485. - _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  12486. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12487. - hardcode_runpath_var=yes
  12488. - runpath_var=LD_RUN_PATH
  12489. - ;;
  12490. +LT_OPTION_DEFINE([LT_INIT], [pic-only], [_LT_WITH_PIC([yes])])
  12491. +LT_OPTION_DEFINE([LT_INIT], [no-pic], [_LT_WITH_PIC([no])])
  12492. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  12493. - _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  12494. - if test "$GCC" = yes; then
  12495. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12496. - else
  12497. - _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  12498. - fi
  12499. - runpath_var='LD_RUN_PATH'
  12500. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12501. - ;;
  12502. +# Old name:
  12503. +AU_DEFUN([AC_LIBTOOL_PICMODE],
  12504. +[_LT_SET_OPTION([LT_INIT], [pic-only])
  12505. +AC_DIAGNOSE([obsolete],
  12506. +[$0: Remove this warning and the call to _LT_SET_OPTION when you
  12507. +put the `pic-only' option into LT_INIT's first parameter.])
  12508. +])
  12509. - sysv5*)
  12510. - _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  12511. - # $CC -shared without GNU ld will not create a library from C++
  12512. - # object files and a static libstdc++, better avoid it by now
  12513. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12514. - _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  12515. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  12516. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  12517. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12518. - runpath_var='LD_RUN_PATH'
  12519. - ;;
  12520. +dnl aclocal-1.4 backwards compatibility:
  12521. +dnl AC_DEFUN([AC_LIBTOOL_PICMODE], [])
  12522. - uts4*)
  12523. - _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  12524. - _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  12525. - _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  12526. - ;;
  12527. - *)
  12528. - _LT_AC_TAGVAR(ld_shlibs, $1)=no
  12529. - ;;
  12530. - esac
  12531. - fi
  12532. -])
  12533. -AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  12534. -test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  12535. +m4_define([_LTDL_MODE], [])
  12536. +LT_OPTION_DEFINE([LTDL_INIT], [nonrecursive],
  12537. + [m4_define([_LTDL_MODE], [nonrecursive])])
  12538. +LT_OPTION_DEFINE([LTDL_INIT], [recursive],
  12539. + [m4_define([_LTDL_MODE], [recursive])])
  12540. +LT_OPTION_DEFINE([LTDL_INIT], [subproject],
  12541. + [m4_define([_LTDL_MODE], [subproject])])
  12542. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  12543. -if test "$GCC" = yes; then
  12544. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  12545. -fi
  12546. +m4_define([_LTDL_TYPE], [])
  12547. +LT_OPTION_DEFINE([LTDL_INIT], [installable],
  12548. + [m4_define([_LTDL_TYPE], [installable])])
  12549. +LT_OPTION_DEFINE([LTDL_INIT], [convenience],
  12550. + [m4_define([_LTDL_TYPE], [convenience])])
  12551. +# ltsugar.m4 -- libtool m4 base layer. -*-Autoconf-*-
  12552. #
  12553. -# Do we need to explicitly link libc?
  12554. +# Copyright (C) 2004, 2005, 2007, 2008 Free Software Foundation, Inc.
  12555. +# Written by Gary V. Vaughan, 2004
  12556. #
  12557. -case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  12558. -x|xyes)
  12559. - # Assume -lc should be added
  12560. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12561. +# This file is free software; the Free Software Foundation gives
  12562. +# unlimited permission to copy and/or distribute it, with or without
  12563. +# modifications, as long as this notice is preserved.
  12564. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  12565. - case $_LT_AC_TAGVAR(archive_cmds, $1) in
  12566. - *'~'*)
  12567. - # FIXME: we may have to deal with multi-command sequences.
  12568. - ;;
  12569. - '$CC '*)
  12570. - # Test whether the compiler implicitly links with -lc since on some
  12571. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12572. - # to ld, don't add -lc before -lgcc.
  12573. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  12574. - $rm conftest*
  12575. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  12576. +# serial 6 ltsugar.m4
  12577. - if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  12578. - soname=conftest
  12579. - lib=conftest
  12580. - libobjs=conftest.$ac_objext
  12581. - deplibs=
  12582. - wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  12583. - compiler_flags=-v
  12584. - linker_flags=-v
  12585. - verstring=
  12586. - output_objdir=.
  12587. - libname=conftest
  12588. - lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  12589. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  12590. - if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  12591. - then
  12592. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  12593. - else
  12594. - _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  12595. - fi
  12596. - _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  12597. - else
  12598. - cat conftest.err 1>&5
  12599. - fi
  12600. - $rm conftest*
  12601. - AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  12602. - ;;
  12603. - esac
  12604. - fi
  12605. - ;;
  12606. -esac
  12607. -])# AC_LIBTOOL_PROG_LD_SHLIBS
  12608. +# This is to help aclocal find these macros, as it can't see m4_define.
  12609. +AC_DEFUN([LTSUGAR_VERSION], [m4_if([0.1])])
  12610. -# _LT_AC_FILE_LTDLL_C
  12611. -# -------------------
  12612. -# Be careful that the start marker always follows a newline.
  12613. -AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  12614. -# /* ltdll.c starts here */
  12615. -# #define WIN32_LEAN_AND_MEAN
  12616. -# #include <windows.h>
  12617. -# #undef WIN32_LEAN_AND_MEAN
  12618. -# #include <stdio.h>
  12619. -#
  12620. -# #ifndef __CYGWIN__
  12621. -# # ifdef __CYGWIN32__
  12622. -# # define __CYGWIN__ __CYGWIN32__
  12623. -# # endif
  12624. -# #endif
  12625. -#
  12626. -# #ifdef __cplusplus
  12627. -# extern "C" {
  12628. -# #endif
  12629. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  12630. -# #ifdef __cplusplus
  12631. -# }
  12632. -# #endif
  12633. -#
  12634. -# #ifdef __CYGWIN__
  12635. -# #include <cygwin/cygwin_dll.h>
  12636. -# DECLARE_CYGWIN_DLL( DllMain );
  12637. -# #endif
  12638. -# HINSTANCE __hDllInstance_base;
  12639. -#
  12640. -# BOOL APIENTRY
  12641. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  12642. -# {
  12643. -# __hDllInstance_base = hInst;
  12644. -# return TRUE;
  12645. -# }
  12646. -# /* ltdll.c ends here */
  12647. -])# _LT_AC_FILE_LTDLL_C
  12648. +# lt_join(SEP, ARG1, [ARG2...])
  12649. +# -----------------------------
  12650. +# Produce ARG1SEPARG2...SEPARGn, omitting [] arguments and their
  12651. +# associated separator.
  12652. +# Needed until we can rely on m4_join from Autoconf 2.62, since all earlier
  12653. +# versions in m4sugar had bugs.
  12654. +m4_define([lt_join],
  12655. +[m4_if([$#], [1], [],
  12656. + [$#], [2], [[$2]],
  12657. + [m4_if([$2], [], [], [[$2]_])$0([$1], m4_shift(m4_shift($@)))])])
  12658. +m4_define([_lt_join],
  12659. +[m4_if([$#$2], [2], [],
  12660. + [m4_if([$2], [], [], [[$1$2]])$0([$1], m4_shift(m4_shift($@)))])])
  12661. -# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  12662. -# ---------------------------------
  12663. -AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  12664. +# lt_car(LIST)
  12665. +# lt_cdr(LIST)
  12666. +# ------------
  12667. +# Manipulate m4 lists.
  12668. +# These macros are necessary as long as will still need to support
  12669. +# Autoconf-2.59 which quotes differently.
  12670. +m4_define([lt_car], [[$1]])
  12671. +m4_define([lt_cdr],
  12672. +[m4_if([$#], 0, [m4_fatal([$0: cannot be called without arguments])],
  12673. + [$#], 1, [],
  12674. + [m4_dquote(m4_shift($@))])])
  12675. +m4_define([lt_unquote], $1)
  12676. +
  12677. +
  12678. +# lt_append(MACRO-NAME, STRING, [SEPARATOR])
  12679. +# ------------------------------------------
  12680. +# Redefine MACRO-NAME to hold its former content plus `SEPARATOR'`STRING'.
  12681. +# Note that neither SEPARATOR nor STRING are expanded; they are appended
  12682. +# to MACRO-NAME as is (leaving the expansion for when MACRO-NAME is invoked).
  12683. +# No SEPARATOR is output if MACRO-NAME was previously undefined (different
  12684. +# than defined and empty).
  12685. +#
  12686. +# This macro is needed until we can rely on Autoconf 2.62, since earlier
  12687. +# versions of m4sugar mistakenly expanded SEPARATOR but not STRING.
  12688. +m4_define([lt_append],
  12689. +[m4_define([$1],
  12690. + m4_ifdef([$1], [m4_defn([$1])[$3]])[$2])])
  12691. -# old names
  12692. -AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  12693. -AC_DEFUN([AM_ENABLE_SHARED], [AC_ENABLE_SHARED($@)])
  12694. -AC_DEFUN([AM_ENABLE_STATIC], [AC_ENABLE_STATIC($@)])
  12695. -AC_DEFUN([AM_DISABLE_SHARED], [AC_DISABLE_SHARED($@)])
  12696. -AC_DEFUN([AM_DISABLE_STATIC], [AC_DISABLE_STATIC($@)])
  12697. -AC_DEFUN([AM_PROG_LD], [AC_PROG_LD])
  12698. -AC_DEFUN([AM_PROG_NM], [AC_PROG_NM])
  12699. -# This is just to silence aclocal about the macro not being used
  12700. -ifelse([AC_DISABLE_FAST_INSTALL])
  12701. +# lt_combine(SEP, PREFIX-LIST, INFIX, SUFFIX1, [SUFFIX2...])
  12702. +# ----------------------------------------------------------
  12703. +# Produce a SEP delimited list of all paired combinations of elements of
  12704. +# PREFIX-LIST with SUFFIX1 through SUFFIXn. Each element of the list
  12705. +# has the form PREFIXmINFIXSUFFIXn.
  12706. +# Needed until we can rely on m4_combine added in Autoconf 2.62.
  12707. +m4_define([lt_combine],
  12708. +[m4_if(m4_eval([$# > 3]), [1],
  12709. + [m4_pushdef([_Lt_sep], [m4_define([_Lt_sep], m4_defn([lt_car]))])]]dnl
  12710. +[[m4_foreach([_Lt_prefix], [$2],
  12711. + [m4_foreach([_Lt_suffix],
  12712. + ]m4_dquote(m4_dquote(m4_shift(m4_shift(m4_shift($@)))))[,
  12713. + [_Lt_sep([$1])[]m4_defn([_Lt_prefix])[$3]m4_defn([_Lt_suffix])])])])])
  12714. +
  12715. +
  12716. +# lt_if_append_uniq(MACRO-NAME, VARNAME, [SEPARATOR], [UNIQ], [NOT-UNIQ])
  12717. +# -----------------------------------------------------------------------
  12718. +# Iff MACRO-NAME does not yet contain VARNAME, then append it (delimited
  12719. +# by SEPARATOR if supplied) and expand UNIQ, else NOT-UNIQ.
  12720. +m4_define([lt_if_append_uniq],
  12721. +[m4_ifdef([$1],
  12722. + [m4_if(m4_index([$3]m4_defn([$1])[$3], [$3$2$3]), [-1],
  12723. + [lt_append([$1], [$2], [$3])$4],
  12724. + [$5])],
  12725. + [lt_append([$1], [$2], [$3])$4])])
  12726. -AC_DEFUN([LT_AC_PROG_GCJ],
  12727. -[AC_CHECK_TOOL(GCJ, gcj, no)
  12728. - test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  12729. - AC_SUBST(GCJFLAGS)
  12730. -])
  12731. -AC_DEFUN([LT_AC_PROG_RC],
  12732. -[AC_CHECK_TOOL(RC, windres, no)
  12733. -])
  12734. +# lt_dict_add(DICT, KEY, VALUE)
  12735. +# -----------------------------
  12736. +m4_define([lt_dict_add],
  12737. +[m4_define([$1($2)], [$3])])
  12738. -# NOTE: This macro has been submitted for inclusion into #
  12739. -# GNU Autoconf as AC_PROG_SED. When it is available in #
  12740. -# a released version of Autoconf we should remove this #
  12741. -# macro and use it instead. #
  12742. -# LT_AC_PROG_SED
  12743. -# --------------
  12744. -# Check for a fully-functional sed program, that truncates
  12745. -# as few characters as possible. Prefer GNU sed if found.
  12746. -AC_DEFUN([LT_AC_PROG_SED],
  12747. -[AC_MSG_CHECKING([for a sed that does not truncate output])
  12748. -AC_CACHE_VAL(lt_cv_path_SED,
  12749. -[# Loop through the user's path and test for sed and gsed.
  12750. -# Then use that list of sed's as ones to test for truncation.
  12751. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  12752. -for as_dir in $PATH
  12753. -do
  12754. - IFS=$as_save_IFS
  12755. - test -z "$as_dir" && as_dir=.
  12756. - for lt_ac_prog in sed gsed; do
  12757. - for ac_exec_ext in '' $ac_executable_extensions; do
  12758. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  12759. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  12760. - fi
  12761. - done
  12762. - done
  12763. -done
  12764. -lt_ac_max=0
  12765. -lt_ac_count=0
  12766. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  12767. -# along with /bin/sed that truncates output.
  12768. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  12769. - test ! -f $lt_ac_sed && continue
  12770. - cat /dev/null > conftest.in
  12771. - lt_ac_count=0
  12772. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  12773. - # Check for GNU sed and select it if it is found.
  12774. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  12775. - lt_cv_path_SED=$lt_ac_sed
  12776. - break
  12777. - fi
  12778. - while true; do
  12779. - cat conftest.in conftest.in >conftest.tmp
  12780. - mv conftest.tmp conftest.in
  12781. - cp conftest.in conftest.nl
  12782. - echo >>conftest.nl
  12783. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  12784. - cmp -s conftest.out conftest.nl || break
  12785. - # 10000 chars as input seems more than enough
  12786. - test $lt_ac_count -gt 10 && break
  12787. - lt_ac_count=`expr $lt_ac_count + 1`
  12788. - if test $lt_ac_count -gt $lt_ac_max; then
  12789. - lt_ac_max=$lt_ac_count
  12790. - lt_cv_path_SED=$lt_ac_sed
  12791. - fi
  12792. - done
  12793. -done
  12794. +
  12795. +# lt_dict_add_subkey(DICT, KEY, SUBKEY, VALUE)
  12796. +# --------------------------------------------
  12797. +m4_define([lt_dict_add_subkey],
  12798. +[m4_define([$1($2:$3)], [$4])])
  12799. +
  12800. +
  12801. +# lt_dict_fetch(DICT, KEY, [SUBKEY])
  12802. +# ----------------------------------
  12803. +m4_define([lt_dict_fetch],
  12804. +[m4_ifval([$3],
  12805. + m4_ifdef([$1($2:$3)], [m4_defn([$1($2:$3)])]),
  12806. + m4_ifdef([$1($2)], [m4_defn([$1($2)])]))])
  12807. +
  12808. +
  12809. +# lt_if_dict_fetch(DICT, KEY, [SUBKEY], VALUE, IF-TRUE, [IF-FALSE])
  12810. +# -----------------------------------------------------------------
  12811. +m4_define([lt_if_dict_fetch],
  12812. +[m4_if(lt_dict_fetch([$1], [$2], [$3]), [$4],
  12813. + [$5],
  12814. + [$6])])
  12815. +
  12816. +
  12817. +# lt_dict_filter(DICT, [SUBKEY], VALUE, [SEPARATOR], KEY, [...])
  12818. +# --------------------------------------------------------------
  12819. +m4_define([lt_dict_filter],
  12820. +[m4_if([$5], [], [],
  12821. + [lt_join(m4_quote(m4_default([$4], [[, ]])),
  12822. + lt_unquote(m4_split(m4_normalize(m4_foreach(_Lt_key, lt_car([m4_shiftn(4, $@)]),
  12823. + [lt_if_dict_fetch([$1], _Lt_key, [$2], [$3], [_Lt_key ])])))))])[]dnl
  12824. ])
  12825. -SED=$lt_cv_path_SED
  12826. -AC_MSG_RESULT([$SED])
  12827. +
  12828. +# ltversion.m4 -- version numbers -*- Autoconf -*-
  12829. +#
  12830. +# Copyright (C) 2004 Free Software Foundation, Inc.
  12831. +# Written by Scott James Remnant, 2004
  12832. +#
  12833. +# This file is free software; the Free Software Foundation gives
  12834. +# unlimited permission to copy and/or distribute it, with or without
  12835. +# modifications, as long as this notice is preserved.
  12836. +
  12837. +# Generated from ltversion.in.
  12838. +
  12839. +# serial 3017 ltversion.m4
  12840. +# This file is part of GNU Libtool
  12841. +
  12842. +m4_define([LT_PACKAGE_VERSION], [2.2.6b])
  12843. +m4_define([LT_PACKAGE_REVISION], [1.3017])
  12844. +
  12845. +AC_DEFUN([LTVERSION_VERSION],
  12846. +[macro_version='2.2.6b'
  12847. +macro_revision='1.3017'
  12848. +_LT_DECL(, macro_version, 0, [Which release of libtool.m4 was used?])
  12849. +_LT_DECL(, macro_revision, 0)
  12850. ])
  12851. -# Copyright (C) 2002, 2003, 2005 Free Software Foundation, Inc.
  12852. +# lt~obsolete.m4 -- aclocal satisfying obsolete definitions. -*-Autoconf-*-
  12853. +#
  12854. +# Copyright (C) 2004, 2005, 2007 Free Software Foundation, Inc.
  12855. +# Written by Scott James Remnant, 2004.
  12856. +#
  12857. +# This file is free software; the Free Software Foundation gives
  12858. +# unlimited permission to copy and/or distribute it, with or without
  12859. +# modifications, as long as this notice is preserved.
  12860. +
  12861. +# serial 4 lt~obsolete.m4
  12862. +
  12863. +# These exist entirely to fool aclocal when bootstrapping libtool.
  12864. +#
  12865. +# In the past libtool.m4 has provided macros via AC_DEFUN (or AU_DEFUN)
  12866. +# which have later been changed to m4_define as they aren't part of the
  12867. +# exported API, or moved to Autoconf or Automake where they belong.
  12868. +#
  12869. +# The trouble is, aclocal is a bit thick. It'll see the old AC_DEFUN
  12870. +# in /usr/share/aclocal/libtool.m4 and remember it, then when it sees us
  12871. +# using a macro with the same name in our local m4/libtool.m4 it'll
  12872. +# pull the old libtool.m4 in (it doesn't see our shiny new m4_define
  12873. +# and doesn't know about Autoconf macros at all.)
  12874. +#
  12875. +# So we provide this file, which has a silly filename so it's always
  12876. +# included after everything else. This provides aclocal with the
  12877. +# AC_DEFUNs it wants, but when m4 processes it, it doesn't do anything
  12878. +# because those macros already exist, or will be overwritten later.
  12879. +# We use AC_DEFUN over AU_DEFUN for compatibility with aclocal-1.6.
  12880. +#
  12881. +# Anytime we withdraw an AC_DEFUN or AU_DEFUN, remember to add it here.
  12882. +# Yes, that means every name once taken will need to remain here until
  12883. +# we give up compatibility with versions before 1.7, at which point
  12884. +# we need to keep only those names which we still refer to.
  12885. +
  12886. +# This is to help aclocal find these macros, as it can't see m4_define.
  12887. +AC_DEFUN([LTOBSOLETE_VERSION], [m4_if([1])])
  12888. +
  12889. +m4_ifndef([AC_LIBTOOL_LINKER_OPTION], [AC_DEFUN([AC_LIBTOOL_LINKER_OPTION])])
  12890. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP])])
  12891. +m4_ifndef([_LT_AC_PROG_ECHO_BACKSLASH], [AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH])])
  12892. +m4_ifndef([_LT_AC_SHELL_INIT], [AC_DEFUN([_LT_AC_SHELL_INIT])])
  12893. +m4_ifndef([_LT_AC_SYS_LIBPATH_AIX], [AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX])])
  12894. +m4_ifndef([_LT_PROG_LTMAIN], [AC_DEFUN([_LT_PROG_LTMAIN])])
  12895. +m4_ifndef([_LT_AC_TAGVAR], [AC_DEFUN([_LT_AC_TAGVAR])])
  12896. +m4_ifndef([AC_LTDL_ENABLE_INSTALL], [AC_DEFUN([AC_LTDL_ENABLE_INSTALL])])
  12897. +m4_ifndef([AC_LTDL_PREOPEN], [AC_DEFUN([AC_LTDL_PREOPEN])])
  12898. +m4_ifndef([_LT_AC_SYS_COMPILER], [AC_DEFUN([_LT_AC_SYS_COMPILER])])
  12899. +m4_ifndef([_LT_AC_LOCK], [AC_DEFUN([_LT_AC_LOCK])])
  12900. +m4_ifndef([AC_LIBTOOL_SYS_OLD_ARCHIVE], [AC_DEFUN([AC_LIBTOOL_SYS_OLD_ARCHIVE])])
  12901. +m4_ifndef([_LT_AC_TRY_DLOPEN_SELF], [AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF])])
  12902. +m4_ifndef([AC_LIBTOOL_PROG_CC_C_O], [AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O])])
  12903. +m4_ifndef([AC_LIBTOOL_SYS_HARD_LINK_LOCKS], [AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS])])
  12904. +m4_ifndef([AC_LIBTOOL_OBJDIR], [AC_DEFUN([AC_LIBTOOL_OBJDIR])])
  12905. +m4_ifndef([AC_LTDL_OBJDIR], [AC_DEFUN([AC_LTDL_OBJDIR])])
  12906. +m4_ifndef([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH], [AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH])])
  12907. +m4_ifndef([AC_LIBTOOL_SYS_LIB_STRIP], [AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP])])
  12908. +m4_ifndef([AC_PATH_MAGIC], [AC_DEFUN([AC_PATH_MAGIC])])
  12909. +m4_ifndef([AC_PROG_LD_GNU], [AC_DEFUN([AC_PROG_LD_GNU])])
  12910. +m4_ifndef([AC_PROG_LD_RELOAD_FLAG], [AC_DEFUN([AC_PROG_LD_RELOAD_FLAG])])
  12911. +m4_ifndef([AC_DEPLIBS_CHECK_METHOD], [AC_DEFUN([AC_DEPLIBS_CHECK_METHOD])])
  12912. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_NO_RTTI], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI])])
  12913. +m4_ifndef([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE], [AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])])
  12914. +m4_ifndef([AC_LIBTOOL_PROG_COMPILER_PIC], [AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC])])
  12915. +m4_ifndef([AC_LIBTOOL_PROG_LD_SHLIBS], [AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS])])
  12916. +m4_ifndef([AC_LIBTOOL_POSTDEP_PREDEP], [AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP])])
  12917. +m4_ifndef([LT_AC_PROG_EGREP], [AC_DEFUN([LT_AC_PROG_EGREP])])
  12918. +m4_ifndef([LT_AC_PROG_SED], [AC_DEFUN([LT_AC_PROG_SED])])
  12919. +m4_ifndef([_LT_CC_BASENAME], [AC_DEFUN([_LT_CC_BASENAME])])
  12920. +m4_ifndef([_LT_COMPILER_BOILERPLATE], [AC_DEFUN([_LT_COMPILER_BOILERPLATE])])
  12921. +m4_ifndef([_LT_LINKER_BOILERPLATE], [AC_DEFUN([_LT_LINKER_BOILERPLATE])])
  12922. +m4_ifndef([_AC_PROG_LIBTOOL], [AC_DEFUN([_AC_PROG_LIBTOOL])])
  12923. +m4_ifndef([AC_LIBTOOL_SETUP], [AC_DEFUN([AC_LIBTOOL_SETUP])])
  12924. +m4_ifndef([_LT_AC_CHECK_DLFCN], [AC_DEFUN([_LT_AC_CHECK_DLFCN])])
  12925. +m4_ifndef([AC_LIBTOOL_SYS_DYNAMIC_LINKER], [AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER])])
  12926. +m4_ifndef([_LT_AC_TAGCONFIG], [AC_DEFUN([_LT_AC_TAGCONFIG])])
  12927. +m4_ifndef([AC_DISABLE_FAST_INSTALL], [AC_DEFUN([AC_DISABLE_FAST_INSTALL])])
  12928. +m4_ifndef([_LT_AC_LANG_CXX], [AC_DEFUN([_LT_AC_LANG_CXX])])
  12929. +m4_ifndef([_LT_AC_LANG_F77], [AC_DEFUN([_LT_AC_LANG_F77])])
  12930. +m4_ifndef([_LT_AC_LANG_GCJ], [AC_DEFUN([_LT_AC_LANG_GCJ])])
  12931. +m4_ifndef([AC_LIBTOOL_RC], [AC_DEFUN([AC_LIBTOOL_RC])])
  12932. +m4_ifndef([AC_LIBTOOL_LANG_C_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG])])
  12933. +m4_ifndef([_LT_AC_LANG_C_CONFIG], [AC_DEFUN([_LT_AC_LANG_C_CONFIG])])
  12934. +m4_ifndef([AC_LIBTOOL_LANG_CXX_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG])])
  12935. +m4_ifndef([_LT_AC_LANG_CXX_CONFIG], [AC_DEFUN([_LT_AC_LANG_CXX_CONFIG])])
  12936. +m4_ifndef([AC_LIBTOOL_LANG_F77_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG])])
  12937. +m4_ifndef([_LT_AC_LANG_F77_CONFIG], [AC_DEFUN([_LT_AC_LANG_F77_CONFIG])])
  12938. +m4_ifndef([AC_LIBTOOL_LANG_GCJ_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG])])
  12939. +m4_ifndef([_LT_AC_LANG_GCJ_CONFIG], [AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG])])
  12940. +m4_ifndef([AC_LIBTOOL_LANG_RC_CONFIG], [AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG])])
  12941. +m4_ifndef([_LT_AC_LANG_RC_CONFIG], [AC_DEFUN([_LT_AC_LANG_RC_CONFIG])])
  12942. +m4_ifndef([AC_LIBTOOL_CONFIG], [AC_DEFUN([AC_LIBTOOL_CONFIG])])
  12943. +m4_ifndef([_LT_AC_FILE_LTDLL_C], [AC_DEFUN([_LT_AC_FILE_LTDLL_C])])
  12944. +
  12945. +# Copyright (C) 2002, 2003, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  12946. #
  12947. # This file is free software; the Free Software Foundation
  12948. # gives unlimited permission to copy and/or distribute it,
  12949. @@ -6181,14 +7995,31 @@
  12950. # ----------------------------
  12951. # Automake X.Y traces this macro to ensure aclocal.m4 has been
  12952. # generated from the m4 files accompanying Automake X.Y.
  12953. -AC_DEFUN([AM_AUTOMAKE_VERSION], [am__api_version="1.9"])
  12954. +# (This private macro should not be called outside this file.)
  12955. +AC_DEFUN([AM_AUTOMAKE_VERSION],
  12956. +[am__api_version='1.11'
  12957. +dnl Some users find AM_AUTOMAKE_VERSION and mistake it for a way to
  12958. +dnl require some minimum version. Point them to the right macro.
  12959. +m4_if([$1], [1.11.1], [],
  12960. + [AC_FATAL([Do not call $0, use AM_INIT_AUTOMAKE([$1]).])])dnl
  12961. +])
  12962. +
  12963. +# _AM_AUTOCONF_VERSION(VERSION)
  12964. +# -----------------------------
  12965. +# aclocal traces this macro to find the Autoconf version.
  12966. +# This is a private macro too. Using m4_define simplifies
  12967. +# the logic in aclocal, which can simply ignore this definition.
  12968. +m4_define([_AM_AUTOCONF_VERSION], [])
  12969. # AM_SET_CURRENT_AUTOMAKE_VERSION
  12970. # -------------------------------
  12971. -# Call AM_AUTOMAKE_VERSION so it can be traced.
  12972. -# This function is AC_REQUIREd by AC_INIT_AUTOMAKE.
  12973. +# Call AM_AUTOMAKE_VERSION and AM_AUTOMAKE_VERSION so they can be traced.
  12974. +# This function is AC_REQUIREd by AM_INIT_AUTOMAKE.
  12975. AC_DEFUN([AM_SET_CURRENT_AUTOMAKE_VERSION],
  12976. - [AM_AUTOMAKE_VERSION([1.9.5])])
  12977. +[AM_AUTOMAKE_VERSION([1.11.1])dnl
  12978. +m4_ifndef([AC_AUTOCONF_VERSION],
  12979. + [m4_copy([m4_PACKAGE_VERSION], [AC_AUTOCONF_VERSION])])dnl
  12980. +_AM_AUTOCONF_VERSION(m4_defn([AC_AUTOCONF_VERSION]))])
  12981. # AM_AUX_DIR_EXPAND -*- Autoconf -*-
  12982. @@ -6245,14 +8076,14 @@
  12983. # AM_CONDITIONAL -*- Autoconf -*-
  12984. -# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005
  12985. +# Copyright (C) 1997, 2000, 2001, 2003, 2004, 2005, 2006, 2008
  12986. # Free Software Foundation, Inc.
  12987. #
  12988. # This file is free software; the Free Software Foundation
  12989. # gives unlimited permission to copy and/or distribute it,
  12990. # with or without modifications, as long as this notice is preserved.
  12991. -# serial 7
  12992. +# serial 9
  12993. # AM_CONDITIONAL(NAME, SHELL-CONDITION)
  12994. # -------------------------------------
  12995. @@ -6261,8 +8092,11 @@
  12996. [AC_PREREQ(2.52)dnl
  12997. ifelse([$1], [TRUE], [AC_FATAL([$0: invalid condition: $1])],
  12998. [$1], [FALSE], [AC_FATAL([$0: invalid condition: $1])])dnl
  12999. -AC_SUBST([$1_TRUE])
  13000. -AC_SUBST([$1_FALSE])
  13001. +AC_SUBST([$1_TRUE])dnl
  13002. +AC_SUBST([$1_FALSE])dnl
  13003. +_AM_SUBST_NOTMAKE([$1_TRUE])dnl
  13004. +_AM_SUBST_NOTMAKE([$1_FALSE])dnl
  13005. +m4_define([_AM_COND_VALUE_$1], [$2])dnl
  13006. if $2; then
  13007. $1_TRUE=
  13008. $1_FALSE='#'
  13009. @@ -6276,15 +8110,14 @@
  13010. Usually this means the macro was only invoked conditionally.]])
  13011. fi])])
  13012. -
  13013. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13014. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2009
  13015. # Free Software Foundation, Inc.
  13016. #
  13017. # This file is free software; the Free Software Foundation
  13018. # gives unlimited permission to copy and/or distribute it,
  13019. # with or without modifications, as long as this notice is preserved.
  13020. -# serial 8
  13021. +# serial 10
  13022. # There are a few dirty hacks below to avoid letting `AC_PROG_CC' be
  13023. # written in clear, in which case automake, when reading aclocal.m4,
  13024. @@ -6312,6 +8145,7 @@
  13025. ifelse([$1], CC, [depcc="$CC" am_compiler_list=],
  13026. [$1], CXX, [depcc="$CXX" am_compiler_list=],
  13027. [$1], OBJC, [depcc="$OBJC" am_compiler_list='gcc3 gcc'],
  13028. + [$1], UPC, [depcc="$UPC" am_compiler_list=],
  13029. [$1], GCJ, [depcc="$GCJ" am_compiler_list='gcc3 gcc'],
  13030. [depcc="$$1" am_compiler_list=])
  13031. @@ -6340,6 +8174,16 @@
  13032. if test "$am_compiler_list" = ""; then
  13033. am_compiler_list=`sed -n ['s/^#*\([a-zA-Z0-9]*\))$/\1/p'] < ./depcomp`
  13034. fi
  13035. + am__universal=false
  13036. + m4_case([$1], [CC],
  13037. + [case " $depcc " in #(
  13038. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13039. + esac],
  13040. + [CXX],
  13041. + [case " $depcc " in #(
  13042. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13043. + esac])
  13044. +
  13045. for depmode in $am_compiler_list; do
  13046. # Setup a source with many dependencies, because some compilers
  13047. # like to wrap large dependency lists on column 80 (with \), and
  13048. @@ -6357,7 +8201,17 @@
  13049. done
  13050. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13051. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13052. + # mode. It turns out that the SunPro C++ compiler does not properly
  13053. + # handle `-M -o', and we need to detect this. Also, some Intel
  13054. + # versions had trouble with output in subdirs
  13055. + am__obj=sub/conftest.${OBJEXT-o}
  13056. + am__minus_obj="-o $am__obj"
  13057. case $depmode in
  13058. + gcc)
  13059. + # This depmode causes a compiler race in universal mode.
  13060. + test "$am__universal" = false || continue
  13061. + ;;
  13062. nosideeffect)
  13063. # after this tag, mechanisms are not by side-effect, so they'll
  13064. # only be used when explicitly requested
  13065. @@ -6367,18 +8221,23 @@
  13066. break
  13067. fi
  13068. ;;
  13069. + msvisualcpp | msvcmsys)
  13070. + # This compiler won't grok `-c -o', but also, the minuso test has
  13071. + # not run yet. These depmodes are late enough in the game, and
  13072. + # so weak that their functioning should not be impacted.
  13073. + am__obj=conftest.${OBJEXT-o}
  13074. + am__minus_obj=
  13075. + ;;
  13076. none) break ;;
  13077. esac
  13078. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  13079. - # mode. It turns out that the SunPro C++ compiler does not properly
  13080. - # handle `-M -o', and we need to detect this.
  13081. if depmode=$depmode \
  13082. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  13083. + source=sub/conftest.c object=$am__obj \
  13084. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13085. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  13086. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13087. >/dev/null 2>conftest.err &&
  13088. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13089. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13090. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  13091. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13092. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13093. # icc doesn't choke on unknown options, it will just issue warnings
  13094. # or remarks (even with -Werror). So we grep stderr for any message
  13095. @@ -6429,61 +8288,74 @@
  13096. AMDEPBACKSLASH='\'
  13097. fi
  13098. AM_CONDITIONAL([AMDEP], [test "x$enable_dependency_tracking" != xno])
  13099. -AC_SUBST([AMDEPBACKSLASH])
  13100. +AC_SUBST([AMDEPBACKSLASH])dnl
  13101. +_AM_SUBST_NOTMAKE([AMDEPBACKSLASH])dnl
  13102. ])
  13103. # Generate code to set up dependency tracking. -*- Autoconf -*-
  13104. -# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13105. +# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004, 2005, 2008
  13106. # Free Software Foundation, Inc.
  13107. #
  13108. # This file is free software; the Free Software Foundation
  13109. # gives unlimited permission to copy and/or distribute it,
  13110. # with or without modifications, as long as this notice is preserved.
  13111. -#serial 3
  13112. +#serial 5
  13113. # _AM_OUTPUT_DEPENDENCY_COMMANDS
  13114. # ------------------------------
  13115. AC_DEFUN([_AM_OUTPUT_DEPENDENCY_COMMANDS],
  13116. -[for mf in $CONFIG_FILES; do
  13117. - # Strip MF so we end up with the name of the file.
  13118. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  13119. - # Check whether this is an Automake generated Makefile or not.
  13120. - # We used to match only the files named `Makefile.in', but
  13121. - # some people rename them; so instead we look at the file content.
  13122. - # Grep'ing the first line is not enough: some people post-process
  13123. - # each Makefile.in and add a new line on top of each file to say so.
  13124. - # So let's grep whole file.
  13125. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  13126. - dirpart=`AS_DIRNAME("$mf")`
  13127. - else
  13128. - continue
  13129. - fi
  13130. - # Extract the definition of DEPDIR, am__include, and am__quote
  13131. - # from the Makefile without running `make'.
  13132. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13133. - test -z "$DEPDIR" && continue
  13134. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13135. - test -z "am__include" && continue
  13136. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13137. - # When using ansi2knr, U may be empty or an underscore; expand it
  13138. - U=`sed -n 's/^U = //p' < "$mf"`
  13139. - # Find all dependency output files, they are included files with
  13140. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  13141. - # simplest approach to changing $(DEPDIR) to its actual value in the
  13142. - # expansion.
  13143. - for file in `sed -n "
  13144. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13145. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13146. - # Make sure the directory exists.
  13147. - test -f "$dirpart/$file" && continue
  13148. - fdir=`AS_DIRNAME(["$file"])`
  13149. - AS_MKDIR_P([$dirpart/$fdir])
  13150. - # echo "creating $dirpart/$file"
  13151. - echo '# dummy' > "$dirpart/$file"
  13152. +[{
  13153. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  13154. + # are listed without --file. Let's play safe and only enable the eval
  13155. + # if we detect the quoting.
  13156. + case $CONFIG_FILES in
  13157. + *\'*) eval set x "$CONFIG_FILES" ;;
  13158. + *) set x $CONFIG_FILES ;;
  13159. + esac
  13160. + shift
  13161. + for mf
  13162. + do
  13163. + # Strip MF so we end up with the name of the file.
  13164. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  13165. + # Check whether this is an Automake generated Makefile or not.
  13166. + # We used to match only the files named `Makefile.in', but
  13167. + # some people rename them; so instead we look at the file content.
  13168. + # Grep'ing the first line is not enough: some people post-process
  13169. + # each Makefile.in and add a new line on top of each file to say so.
  13170. + # Grep'ing the whole file is not good either: AIX grep has a line
  13171. + # limit of 2048, but all sed's we know have understand at least 4000.
  13172. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  13173. + dirpart=`AS_DIRNAME("$mf")`
  13174. + else
  13175. + continue
  13176. + fi
  13177. + # Extract the definition of DEPDIR, am__include, and am__quote
  13178. + # from the Makefile without running `make'.
  13179. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  13180. + test -z "$DEPDIR" && continue
  13181. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  13182. + test -z "am__include" && continue
  13183. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  13184. + # When using ansi2knr, U may be empty or an underscore; expand it
  13185. + U=`sed -n 's/^U = //p' < "$mf"`
  13186. + # Find all dependency output files, they are included files with
  13187. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  13188. + # simplest approach to changing $(DEPDIR) to its actual value in the
  13189. + # expansion.
  13190. + for file in `sed -n "
  13191. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  13192. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  13193. + # Make sure the directory exists.
  13194. + test -f "$dirpart/$file" && continue
  13195. + fdir=`AS_DIRNAME(["$file"])`
  13196. + AS_MKDIR_P([$dirpart/$fdir])
  13197. + # echo "creating $dirpart/$file"
  13198. + echo '# dummy' > "$dirpart/$file"
  13199. + done
  13200. done
  13201. -done
  13202. +}
  13203. ])# _AM_OUTPUT_DEPENDENCY_COMMANDS
  13204. @@ -6514,14 +8386,14 @@
  13205. # Do all the work for Automake. -*- Autoconf -*-
  13206. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004, 2005
  13207. -# Free Software Foundation, Inc.
  13208. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2004,
  13209. +# 2005, 2006, 2008, 2009 Free Software Foundation, Inc.
  13210. #
  13211. # This file is free software; the Free Software Foundation
  13212. # gives unlimited permission to copy and/or distribute it,
  13213. # with or without modifications, as long as this notice is preserved.
  13214. -# serial 12
  13215. +# serial 16
  13216. # This macro actually does too much. Some checks are only needed if
  13217. # your package does certain things. But this isn't really a big deal.
  13218. @@ -6538,16 +8410,20 @@
  13219. # arguments mandatory, and then we can depend on a new Autoconf
  13220. # release and drop the old call support.
  13221. AC_DEFUN([AM_INIT_AUTOMAKE],
  13222. -[AC_PREREQ([2.58])dnl
  13223. +[AC_PREREQ([2.62])dnl
  13224. dnl Autoconf wants to disallow AM_ names. We explicitly allow
  13225. dnl the ones we care about.
  13226. m4_pattern_allow([^AM_[A-Z]+FLAGS$])dnl
  13227. AC_REQUIRE([AM_SET_CURRENT_AUTOMAKE_VERSION])dnl
  13228. AC_REQUIRE([AC_PROG_INSTALL])dnl
  13229. -# test to see if srcdir already configured
  13230. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  13231. - test -f $srcdir/config.status; then
  13232. - AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13233. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13234. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13235. + # is not polluted with repeated "-I."
  13236. + AC_SUBST([am__isrc], [' -I$(srcdir)'])_AM_SUBST_NOTMAKE([am__isrc])dnl
  13237. + # test to see if srcdir already configured
  13238. + if test -f $srcdir/config.status; then
  13239. + AC_MSG_ERROR([source directory already configured; run "make distclean" there first])
  13240. + fi
  13241. fi
  13242. # test whether we have cygpath
  13243. @@ -6567,6 +8443,9 @@
  13244. AC_SUBST([PACKAGE], [$1])dnl
  13245. AC_SUBST([VERSION], [$2])],
  13246. [_AM_SET_OPTIONS([$1])dnl
  13247. +dnl Diagnose old-style AC_INIT with new-style AM_AUTOMAKE_INIT.
  13248. +m4_if(m4_ifdef([AC_PACKAGE_NAME], 1)m4_ifdef([AC_PACKAGE_VERSION], 1), 11,,
  13249. + [m4_fatal([AC_INIT should be called with package and version arguments])])dnl
  13250. AC_SUBST([PACKAGE], ['AC_PACKAGE_TARNAME'])dnl
  13251. AC_SUBST([VERSION], ['AC_PACKAGE_VERSION'])])dnl
  13252. @@ -6582,8 +8461,8 @@
  13253. AM_MISSING_PROG(AUTOMAKE, automake-${am__api_version})
  13254. AM_MISSING_PROG(AUTOHEADER, autoheader)
  13255. AM_MISSING_PROG(MAKEINFO, makeinfo)
  13256. -AM_PROG_INSTALL_SH
  13257. -AM_PROG_INSTALL_STRIP
  13258. +AC_REQUIRE([AM_PROG_INSTALL_SH])dnl
  13259. +AC_REQUIRE([AM_PROG_INSTALL_STRIP])dnl
  13260. AC_REQUIRE([AM_PROG_MKDIR_P])dnl
  13261. # We need awk for the "check" target. The system "awk" is bad on
  13262. # some platforms.
  13263. @@ -6591,20 +8470,37 @@
  13264. AC_REQUIRE([AC_PROG_MAKE_SET])dnl
  13265. AC_REQUIRE([AM_SET_LEADING_DOT])dnl
  13266. _AM_IF_OPTION([tar-ustar], [_AM_PROG_TAR([ustar])],
  13267. - [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13268. - [_AM_PROG_TAR([v7])])])
  13269. + [_AM_IF_OPTION([tar-pax], [_AM_PROG_TAR([pax])],
  13270. + [_AM_PROG_TAR([v7])])])
  13271. _AM_IF_OPTION([no-dependencies],,
  13272. [AC_PROVIDE_IFELSE([AC_PROG_CC],
  13273. - [_AM_DEPENDENCIES(CC)],
  13274. - [define([AC_PROG_CC],
  13275. - defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13276. + [_AM_DEPENDENCIES(CC)],
  13277. + [define([AC_PROG_CC],
  13278. + defn([AC_PROG_CC])[_AM_DEPENDENCIES(CC)])])dnl
  13279. AC_PROVIDE_IFELSE([AC_PROG_CXX],
  13280. - [_AM_DEPENDENCIES(CXX)],
  13281. - [define([AC_PROG_CXX],
  13282. - defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13283. + [_AM_DEPENDENCIES(CXX)],
  13284. + [define([AC_PROG_CXX],
  13285. + defn([AC_PROG_CXX])[_AM_DEPENDENCIES(CXX)])])dnl
  13286. +AC_PROVIDE_IFELSE([AC_PROG_OBJC],
  13287. + [_AM_DEPENDENCIES(OBJC)],
  13288. + [define([AC_PROG_OBJC],
  13289. + defn([AC_PROG_OBJC])[_AM_DEPENDENCIES(OBJC)])])dnl
  13290. ])
  13291. +_AM_IF_OPTION([silent-rules], [AC_REQUIRE([AM_SILENT_RULES])])dnl
  13292. +dnl The `parallel-tests' driver may need to know about EXEEXT, so add the
  13293. +dnl `am__EXEEXT' conditional if _AM_COMPILER_EXEEXT was seen. This macro
  13294. +dnl is hooked onto _AC_COMPILER_EXEEXT early, see below.
  13295. +AC_CONFIG_COMMANDS_PRE(dnl
  13296. +[m4_provide_if([_AM_COMPILER_EXEEXT],
  13297. + [AM_CONDITIONAL([am__EXEEXT], [test -n "$EXEEXT"])])])dnl
  13298. ])
  13299. +dnl Hook into `_AC_COMPILER_EXEEXT' early to learn its expansion. Do not
  13300. +dnl add the conditional right here, as _AC_COMPILER_EXEEXT may be further
  13301. +dnl mangled by Autoconf and run in a shell conditional statement.
  13302. +m4_define([_AC_COMPILER_EXEEXT],
  13303. +m4_defn([_AC_COMPILER_EXEEXT])[m4_provide([_AM_COMPILER_EXEEXT])])
  13304. +
  13305. # When config.status generates a header, we must update the stamp-h file.
  13306. # This file resides in the same directory as the config header
  13307. @@ -6615,18 +8511,19 @@
  13308. # our stamp files there.
  13309. AC_DEFUN([_AC_AM_CONFIG_HEADER_HOOK],
  13310. [# Compute $1's index in $config_headers.
  13311. +_am_arg=$1
  13312. _am_stamp_count=1
  13313. for _am_header in $config_headers :; do
  13314. case $_am_header in
  13315. - $1 | $1:* )
  13316. + $_am_arg | $_am_arg:* )
  13317. break ;;
  13318. * )
  13319. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  13320. esac
  13321. done
  13322. -echo "timestamp for $1" >`AS_DIRNAME([$1])`/stamp-h[]$_am_stamp_count])
  13323. +echo "timestamp for $_am_arg" >`AS_DIRNAME(["$_am_arg"])`/stamp-h[]$_am_stamp_count])
  13324. -# Copyright (C) 2001, 2003, 2005 Free Software Foundation, Inc.
  13325. +# Copyright (C) 2001, 2003, 2005, 2008 Free Software Foundation, Inc.
  13326. #
  13327. # This file is free software; the Free Software Foundation
  13328. # gives unlimited permission to copy and/or distribute it,
  13329. @@ -6637,7 +8534,14 @@
  13330. # Define $install_sh.
  13331. AC_DEFUN([AM_PROG_INSTALL_SH],
  13332. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13333. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  13334. +if test x"${install_sh}" != xset; then
  13335. + case $am_aux_dir in
  13336. + *\ * | *\ *)
  13337. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13338. + *)
  13339. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  13340. + esac
  13341. +fi
  13342. AC_SUBST(install_sh)])
  13343. # Copyright (C) 2003, 2005 Free Software Foundation, Inc.
  13344. @@ -6663,13 +8567,13 @@
  13345. # Check to see how 'make' treats includes. -*- Autoconf -*-
  13346. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13347. +# Copyright (C) 2001, 2002, 2003, 2005, 2009 Free Software Foundation, Inc.
  13348. #
  13349. # This file is free software; the Free Software Foundation
  13350. # gives unlimited permission to copy and/or distribute it,
  13351. # with or without modifications, as long as this notice is preserved.
  13352. -# serial 3
  13353. +# serial 4
  13354. # AM_MAKE_INCLUDE()
  13355. # -----------------
  13356. @@ -6678,7 +8582,7 @@
  13357. [am_make=${MAKE-make}
  13358. cat > confinc << 'END'
  13359. am__doit:
  13360. - @echo done
  13361. + @echo this is the am__doit target
  13362. .PHONY: am__doit
  13363. END
  13364. # If we don't find an include directive, just comment out the code.
  13365. @@ -6688,24 +8592,24 @@
  13366. _am_result=none
  13367. # First try GNU make style include.
  13368. echo "include confinc" > confmf
  13369. -# We grep out `Entering directory' and `Leaving directory'
  13370. -# messages which can occur if `w' ends up in MAKEFLAGS.
  13371. -# In particular we don't look at `^make:' because GNU make might
  13372. -# be invoked under some other name (usually "gmake"), in which
  13373. -# case it prints its new name instead of `make'.
  13374. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  13375. - am__include=include
  13376. - am__quote=
  13377. - _am_result=GNU
  13378. -fi
  13379. +# Ignore all kinds of additional output from `make'.
  13380. +case `$am_make -s -f confmf 2> /dev/null` in #(
  13381. +*the\ am__doit\ target*)
  13382. + am__include=include
  13383. + am__quote=
  13384. + _am_result=GNU
  13385. + ;;
  13386. +esac
  13387. # Now try BSD make style include.
  13388. if test "$am__include" = "#"; then
  13389. echo '.include "confinc"' > confmf
  13390. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  13391. - am__include=.include
  13392. - am__quote="\""
  13393. - _am_result=BSD
  13394. - fi
  13395. + case `$am_make -s -f confmf 2> /dev/null` in #(
  13396. + *the\ am__doit\ target*)
  13397. + am__include=.include
  13398. + am__quote="\""
  13399. + _am_result=BSD
  13400. + ;;
  13401. + esac
  13402. fi
  13403. AC_SUBST([am__include])
  13404. AC_SUBST([am__quote])
  13405. @@ -6715,14 +8619,14 @@
  13406. # Fake the existence of programs that GNU maintainers use. -*- Autoconf -*-
  13407. -# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2005
  13408. +# Copyright (C) 1997, 1999, 2000, 2001, 2003, 2004, 2005, 2008
  13409. # Free Software Foundation, Inc.
  13410. #
  13411. # This file is free software; the Free Software Foundation
  13412. # gives unlimited permission to copy and/or distribute it,
  13413. # with or without modifications, as long as this notice is preserved.
  13414. -# serial 4
  13415. +# serial 6
  13416. # AM_MISSING_PROG(NAME, PROGRAM)
  13417. # ------------------------------
  13418. @@ -6738,7 +8642,15 @@
  13419. # If it does, set am_missing_run to use it, otherwise, to nothing.
  13420. AC_DEFUN([AM_MISSING_HAS_RUN],
  13421. [AC_REQUIRE([AM_AUX_DIR_EXPAND])dnl
  13422. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  13423. +AC_REQUIRE_AUX_FILE([missing])dnl
  13424. +if test x"${MISSING+set}" != xset; then
  13425. + case $am_aux_dir in
  13426. + *\ * | *\ *)
  13427. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13428. + *)
  13429. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13430. + esac
  13431. +fi
  13432. # Use eval to expand $SHELL
  13433. if eval "$MISSING --run true"; then
  13434. am_missing_run="$MISSING --run "
  13435. @@ -6748,7 +8660,7 @@
  13436. fi
  13437. ])
  13438. -# Copyright (C) 2003, 2004, 2005 Free Software Foundation, Inc.
  13439. +# Copyright (C) 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
  13440. #
  13441. # This file is free software; the Free Software Foundation
  13442. # gives unlimited permission to copy and/or distribute it,
  13443. @@ -6756,70 +8668,33 @@
  13444. # AM_PROG_MKDIR_P
  13445. # ---------------
  13446. -# Check whether `mkdir -p' is supported, fallback to mkinstalldirs otherwise.
  13447. -#
  13448. -# Automake 1.8 used `mkdir -m 0755 -p --' to ensure that directories
  13449. -# created by `make install' are always world readable, even if the
  13450. -# installer happens to have an overly restrictive umask (e.g. 077).
  13451. -# This was a mistake. There are at least two reasons why we must not
  13452. -# use `-m 0755':
  13453. -# - it causes special bits like SGID to be ignored,
  13454. -# - it may be too restrictive (some setups expect 775 directories).
  13455. -#
  13456. -# Do not use -m 0755 and let people choose whatever they expect by
  13457. -# setting umask.
  13458. -#
  13459. -# We cannot accept any implementation of `mkdir' that recognizes `-p'.
  13460. -# Some implementations (such as Solaris 8's) are not thread-safe: if a
  13461. -# parallel make tries to run `mkdir -p a/b' and `mkdir -p a/c'
  13462. -# concurrently, both version can detect that a/ is missing, but only
  13463. -# one can create it and the other will error out. Consequently we
  13464. -# restrict ourselves to GNU make (using the --version option ensures
  13465. -# this.)
  13466. +# Check for `mkdir -p'.
  13467. AC_DEFUN([AM_PROG_MKDIR_P],
  13468. -[if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  13469. - # We used to keeping the `.' as first argument, in order to
  13470. - # allow $(mkdir_p) to be used without argument. As in
  13471. - # $(mkdir_p) $(somedir)
  13472. - # where $(somedir) is conditionally defined. However this is wrong
  13473. - # for two reasons:
  13474. - # 1. if the package is installed by a user who cannot write `.'
  13475. - # make install will fail,
  13476. - # 2. the above comment should most certainly read
  13477. - # $(mkdir_p) $(DESTDIR)$(somedir)
  13478. - # so it does not work when $(somedir) is undefined and
  13479. - # $(DESTDIR) is not.
  13480. - # To support the latter case, we have to write
  13481. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  13482. - # so the `.' trick is pointless.
  13483. - mkdir_p='mkdir -p --'
  13484. -else
  13485. - # On NextStep and OpenStep, the `mkdir' command does not
  13486. - # recognize any option. It will interpret all options as
  13487. - # directories to create, and then abort because `.' already
  13488. - # exists.
  13489. - for d in ./-p ./--version;
  13490. - do
  13491. - test -d $d && rmdir $d
  13492. - done
  13493. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  13494. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  13495. - mkdir_p='$(mkinstalldirs)'
  13496. - else
  13497. - mkdir_p='$(install_sh) -d'
  13498. - fi
  13499. -fi
  13500. -AC_SUBST([mkdir_p])])
  13501. +[AC_PREREQ([2.60])dnl
  13502. +AC_REQUIRE([AC_PROG_MKDIR_P])dnl
  13503. +dnl Automake 1.8 to 1.9.6 used to define mkdir_p. We now use MKDIR_P,
  13504. +dnl while keeping a definition of mkdir_p for backward compatibility.
  13505. +dnl @MKDIR_P@ is magic: AC_OUTPUT adjusts its value for each Makefile.
  13506. +dnl However we cannot define mkdir_p as $(MKDIR_P) for the sake of
  13507. +dnl Makefile.ins that do not define MKDIR_P, so we do our own
  13508. +dnl adjustment using top_builddir (which is defined more often than
  13509. +dnl MKDIR_P).
  13510. +AC_SUBST([mkdir_p], ["$MKDIR_P"])dnl
  13511. +case $mkdir_p in
  13512. + [[\\/$]]* | ?:[[\\/]]*) ;;
  13513. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  13514. +esac
  13515. +])
  13516. # Helper functions for option handling. -*- Autoconf -*-
  13517. -# Copyright (C) 2001, 2002, 2003, 2005 Free Software Foundation, Inc.
  13518. +# Copyright (C) 2001, 2002, 2003, 2005, 2008 Free Software Foundation, Inc.
  13519. #
  13520. # This file is free software; the Free Software Foundation
  13521. # gives unlimited permission to copy and/or distribute it,
  13522. # with or without modifications, as long as this notice is preserved.
  13523. -# serial 3
  13524. +# serial 4
  13525. # _AM_MANGLE_OPTION(NAME)
  13526. # -----------------------
  13527. @@ -6836,7 +8711,7 @@
  13528. # ----------------------------------
  13529. # OPTIONS is a space-separated list of Automake options.
  13530. AC_DEFUN([_AM_SET_OPTIONS],
  13531. -[AC_FOREACH([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13532. +[m4_foreach_w([_AM_Option], [$1], [_AM_SET_OPTION(_AM_Option)])])
  13533. # _AM_IF_OPTION(OPTION, IF-SET, [IF-NOT-SET])
  13534. # -------------------------------------------
  13535. @@ -6846,14 +8721,14 @@
  13536. # Check to make sure that the build environment is sane. -*- Autoconf -*-
  13537. -# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005
  13538. +# Copyright (C) 1996, 1997, 2000, 2001, 2003, 2005, 2008
  13539. # Free Software Foundation, Inc.
  13540. #
  13541. # This file is free software; the Free Software Foundation
  13542. # gives unlimited permission to copy and/or distribute it,
  13543. # with or without modifications, as long as this notice is preserved.
  13544. -# serial 4
  13545. +# serial 5
  13546. # AM_SANITY_CHECK
  13547. # ---------------
  13548. @@ -6862,16 +8737,29 @@
  13549. # Just in case
  13550. sleep 1
  13551. echo timestamp > conftest.file
  13552. +# Reject unsafe characters in $srcdir or the absolute working directory
  13553. +# name. Accept space and tab only in the latter.
  13554. +am_lf='
  13555. +'
  13556. +case `pwd` in
  13557. + *[[\\\"\#\$\&\'\`$am_lf]]*)
  13558. + AC_MSG_ERROR([unsafe absolute working directory name]);;
  13559. +esac
  13560. +case $srcdir in
  13561. + *[[\\\"\#\$\&\'\`$am_lf\ \ ]]*)
  13562. + AC_MSG_ERROR([unsafe srcdir value: `$srcdir']);;
  13563. +esac
  13564. +
  13565. # Do `set' in a subshell so we don't clobber the current shell's
  13566. # arguments. Must try -L first in case configure is actually a
  13567. # symlink; some systems play weird games with the mod time of symlinks
  13568. # (eg FreeBSD returns the mod time of the symlink's containing
  13569. # directory).
  13570. if (
  13571. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  13572. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13573. if test "$[*]" = "X"; then
  13574. # -L didn't work.
  13575. - set X `ls -t $srcdir/configure conftest.file`
  13576. + set X `ls -t "$srcdir/configure" conftest.file`
  13577. fi
  13578. rm -f conftest.file
  13579. if test "$[*]" != "X $srcdir/configure conftest.file" \
  13580. @@ -6921,9 +8809,28 @@
  13581. if test "$cross_compiling" != no; then
  13582. AC_CHECK_TOOL([STRIP], [strip], :)
  13583. fi
  13584. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  13585. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13586. AC_SUBST([INSTALL_STRIP_PROGRAM])])
  13587. +# Copyright (C) 2006, 2008 Free Software Foundation, Inc.
  13588. +#
  13589. +# This file is free software; the Free Software Foundation
  13590. +# gives unlimited permission to copy and/or distribute it,
  13591. +# with or without modifications, as long as this notice is preserved.
  13592. +
  13593. +# serial 2
  13594. +
  13595. +# _AM_SUBST_NOTMAKE(VARIABLE)
  13596. +# ---------------------------
  13597. +# Prevent Automake from outputting VARIABLE = @VARIABLE@ in Makefile.in.
  13598. +# This macro is traced by Automake.
  13599. +AC_DEFUN([_AM_SUBST_NOTMAKE])
  13600. +
  13601. +# AM_SUBST_NOTMAKE(VARIABLE)
  13602. +# ---------------------------
  13603. +# Public sister of _AM_SUBST_NOTMAKE.
  13604. +AC_DEFUN([AM_SUBST_NOTMAKE], [_AM_SUBST_NOTMAKE($@)])
  13605. +
  13606. # Check how to create a tarball. -*- Autoconf -*-
  13607. # Copyright (C) 2004, 2005 Free Software Foundation, Inc.
  13608. diff -Nur chillispot-1.1.0.orig/config.guess chillispot-1.1.0/config.guess
  13609. --- chillispot-1.1.0.orig/config.guess 2004-10-28 15:44:58.000000000 +0200
  13610. +++ chillispot-1.1.0/config.guess 2011-02-21 17:56:53.434807956 +0100
  13611. @@ -1,9 +1,10 @@
  13612. #! /bin/sh
  13613. # Attempt to guess a canonical system name.
  13614. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  13615. -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  13616. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  13617. +# Free Software Foundation, Inc.
  13618. -timestamp='2004-06-11'
  13619. +timestamp='2009-06-10'
  13620. # This file is free software; you can redistribute it and/or modify it
  13621. # under the terms of the GNU General Public License as published by
  13622. @@ -17,13 +18,15 @@
  13623. #
  13624. # You should have received a copy of the GNU General Public License
  13625. # along with this program; if not, write to the Free Software
  13626. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  13627. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  13628. +# 02110-1301, USA.
  13629. #
  13630. # As a special exception to the GNU General Public License, if you
  13631. # distribute this file as part of a program that contains a
  13632. # configuration script generated by Autoconf, you may include it under
  13633. # the same distribution terms that you use for the rest of that program.
  13634. +
  13635. # Originally written by Per Bothner <per@bothner.com>.
  13636. # Please send patches to <config-patches@gnu.org>. Submit a context
  13637. # diff and a properly formatted ChangeLog entry.
  13638. @@ -53,8 +56,8 @@
  13639. GNU config.guess ($timestamp)
  13640. Originally written by Per Bothner.
  13641. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  13642. -Free Software Foundation, Inc.
  13643. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  13644. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  13645. This is free software; see the source for copying conditions. There is NO
  13646. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  13647. @@ -66,11 +69,11 @@
  13648. while test $# -gt 0 ; do
  13649. case $1 in
  13650. --time-stamp | --time* | -t )
  13651. - echo "$timestamp" ; exit 0 ;;
  13652. + echo "$timestamp" ; exit ;;
  13653. --version | -v )
  13654. - echo "$version" ; exit 0 ;;
  13655. + echo "$version" ; exit ;;
  13656. --help | --h* | -h )
  13657. - echo "$usage"; exit 0 ;;
  13658. + echo "$usage"; exit ;;
  13659. -- ) # Stop option processing
  13660. shift; break ;;
  13661. - ) # Use stdin as input.
  13662. @@ -104,7 +107,7 @@
  13663. trap "exitcode=\$?; (rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null) && exit \$exitcode" 0 ;
  13664. trap "rm -f \$tmpfiles 2>/dev/null; rmdir \$tmp 2>/dev/null; exit 1" 1 2 13 15 ;
  13665. : ${TMPDIR=/tmp} ;
  13666. - { tmp=`(umask 077 && mktemp -d -q "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13667. + { tmp=`(umask 077 && mktemp -d "$TMPDIR/cgXXXXXX") 2>/dev/null` && test -n "$tmp" && test -d "$tmp" ; } ||
  13668. { test -n "$RANDOM" && tmp=$TMPDIR/cg$$-$RANDOM && (umask 077 && mkdir $tmp) ; } ||
  13669. { tmp=$TMPDIR/cg-$$ && (umask 077 && mkdir $tmp) && echo "Warning: creating insecure temp directory" >&2 ; } ||
  13670. { echo "$me: cannot create a temporary directory in $TMPDIR" >&2 ; exit 1 ; } ;
  13671. @@ -123,7 +126,7 @@
  13672. ;;
  13673. ,,*) CC_FOR_BUILD=$CC ;;
  13674. ,*,*) CC_FOR_BUILD=$HOST_CC ;;
  13675. -esac ;'
  13676. +esac ; set_cc_for_build= ;'
  13677. # This is needed to find uname on a Pyramid OSx when run in the BSD universe.
  13678. # (ghazi@noc.rutgers.edu 1994-08-24)
  13679. @@ -158,6 +161,7 @@
  13680. arm*) machine=arm-unknown ;;
  13681. sh3el) machine=shl-unknown ;;
  13682. sh3eb) machine=sh-unknown ;;
  13683. + sh5el) machine=sh5le-unknown ;;
  13684. *) machine=${UNAME_MACHINE_ARCH}-unknown ;;
  13685. esac
  13686. # The Operating System including object format, if it has switched
  13687. @@ -166,7 +170,7 @@
  13688. arm*|i386|m68k|ns32k|sh3*|sparc|vax)
  13689. eval $set_cc_for_build
  13690. if echo __ELF__ | $CC_FOR_BUILD -E - 2>/dev/null \
  13691. - | grep __ELF__ >/dev/null
  13692. + | grep -q __ELF__
  13693. then
  13694. # Once all utilities can be ECOFF (netbsdecoff) or a.out (netbsdaout).
  13695. # Return netbsd for either. FIX?
  13696. @@ -196,64 +200,23 @@
  13697. # contains redundant information, the shorter form:
  13698. # CPU_TYPE-MANUFACTURER-OPERATING_SYSTEM is used.
  13699. echo "${machine}-${os}${release}"
  13700. - exit 0 ;;
  13701. - amd64:OpenBSD:*:*)
  13702. - echo x86_64-unknown-openbsd${UNAME_RELEASE}
  13703. - exit 0 ;;
  13704. - amiga:OpenBSD:*:*)
  13705. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13706. - exit 0 ;;
  13707. - arc:OpenBSD:*:*)
  13708. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  13709. - exit 0 ;;
  13710. - cats:OpenBSD:*:*)
  13711. - echo arm-unknown-openbsd${UNAME_RELEASE}
  13712. - exit 0 ;;
  13713. - hp300:OpenBSD:*:*)
  13714. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13715. - exit 0 ;;
  13716. - luna88k:OpenBSD:*:*)
  13717. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  13718. - exit 0 ;;
  13719. - mac68k:OpenBSD:*:*)
  13720. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13721. - exit 0 ;;
  13722. - macppc:OpenBSD:*:*)
  13723. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13724. - exit 0 ;;
  13725. - mvme68k:OpenBSD:*:*)
  13726. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13727. - exit 0 ;;
  13728. - mvme88k:OpenBSD:*:*)
  13729. - echo m88k-unknown-openbsd${UNAME_RELEASE}
  13730. - exit 0 ;;
  13731. - mvmeppc:OpenBSD:*:*)
  13732. - echo powerpc-unknown-openbsd${UNAME_RELEASE}
  13733. - exit 0 ;;
  13734. - pmax:OpenBSD:*:*)
  13735. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  13736. - exit 0 ;;
  13737. - sgi:OpenBSD:*:*)
  13738. - echo mipseb-unknown-openbsd${UNAME_RELEASE}
  13739. - exit 0 ;;
  13740. - sun3:OpenBSD:*:*)
  13741. - echo m68k-unknown-openbsd${UNAME_RELEASE}
  13742. - exit 0 ;;
  13743. - wgrisc:OpenBSD:*:*)
  13744. - echo mipsel-unknown-openbsd${UNAME_RELEASE}
  13745. - exit 0 ;;
  13746. + exit ;;
  13747. *:OpenBSD:*:*)
  13748. - echo ${UNAME_MACHINE}-unknown-openbsd${UNAME_RELEASE}
  13749. - exit 0 ;;
  13750. + UNAME_MACHINE_ARCH=`arch | sed 's/OpenBSD.//'`
  13751. + echo ${UNAME_MACHINE_ARCH}-unknown-openbsd${UNAME_RELEASE}
  13752. + exit ;;
  13753. *:ekkoBSD:*:*)
  13754. echo ${UNAME_MACHINE}-unknown-ekkobsd${UNAME_RELEASE}
  13755. - exit 0 ;;
  13756. + exit ;;
  13757. + *:SolidBSD:*:*)
  13758. + echo ${UNAME_MACHINE}-unknown-solidbsd${UNAME_RELEASE}
  13759. + exit ;;
  13760. macppc:MirBSD:*:*)
  13761. - echo powerppc-unknown-mirbsd${UNAME_RELEASE}
  13762. - exit 0 ;;
  13763. + echo powerpc-unknown-mirbsd${UNAME_RELEASE}
  13764. + exit ;;
  13765. *:MirBSD:*:*)
  13766. echo ${UNAME_MACHINE}-unknown-mirbsd${UNAME_RELEASE}
  13767. - exit 0 ;;
  13768. + exit ;;
  13769. alpha:OSF1:*:*)
  13770. case $UNAME_RELEASE in
  13771. *4.0)
  13772. @@ -306,40 +269,43 @@
  13773. # A Xn.n version is an unreleased experimental baselevel.
  13774. # 1.2 uses "1.2" for uname -r.
  13775. echo ${UNAME_MACHINE}-dec-osf`echo ${UNAME_RELEASE} | sed -e 's/^[PVTX]//' | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  13776. - exit 0 ;;
  13777. - Alpha*:OpenVMS:*:*)
  13778. - echo alpha-hp-vms
  13779. - exit 0 ;;
  13780. + exit ;;
  13781. Alpha\ *:Windows_NT*:*)
  13782. # How do we know it's Interix rather than the generic POSIX subsystem?
  13783. # Should we change UNAME_MACHINE based on the output of uname instead
  13784. # of the specific Alpha model?
  13785. echo alpha-pc-interix
  13786. - exit 0 ;;
  13787. + exit ;;
  13788. 21064:Windows_NT:50:3)
  13789. echo alpha-dec-winnt3.5
  13790. - exit 0 ;;
  13791. + exit ;;
  13792. Amiga*:UNIX_System_V:4.0:*)
  13793. echo m68k-unknown-sysv4
  13794. - exit 0;;
  13795. + exit ;;
  13796. *:[Aa]miga[Oo][Ss]:*:*)
  13797. echo ${UNAME_MACHINE}-unknown-amigaos
  13798. - exit 0 ;;
  13799. + exit ;;
  13800. *:[Mm]orph[Oo][Ss]:*:*)
  13801. echo ${UNAME_MACHINE}-unknown-morphos
  13802. - exit 0 ;;
  13803. + exit ;;
  13804. *:OS/390:*:*)
  13805. echo i370-ibm-openedition
  13806. - exit 0 ;;
  13807. + exit ;;
  13808. + *:z/VM:*:*)
  13809. + echo s390-ibm-zvmoe
  13810. + exit ;;
  13811. *:OS400:*:*)
  13812. echo powerpc-ibm-os400
  13813. - exit 0 ;;
  13814. + exit ;;
  13815. arm:RISC*:1.[012]*:*|arm:riscix:1.[012]*:*)
  13816. echo arm-acorn-riscix${UNAME_RELEASE}
  13817. - exit 0;;
  13818. + exit ;;
  13819. + arm:riscos:*:*|arm:RISCOS:*:*)
  13820. + echo arm-unknown-riscos
  13821. + exit ;;
  13822. SR2?01:HI-UX/MPP:*:* | SR8000:HI-UX/MPP:*:*)
  13823. echo hppa1.1-hitachi-hiuxmpp
  13824. - exit 0;;
  13825. + exit ;;
  13826. Pyramid*:OSx*:*:* | MIS*:OSx*:*:* | MIS*:SMP_DC-OSx*:*:*)
  13827. # akee@wpdis03.wpafb.af.mil (Earle F. Ake) contributed MIS and NILE.
  13828. if test "`(/bin/universe) 2>/dev/null`" = att ; then
  13829. @@ -347,32 +313,48 @@
  13830. else
  13831. echo pyramid-pyramid-bsd
  13832. fi
  13833. - exit 0 ;;
  13834. + exit ;;
  13835. NILE*:*:*:dcosx)
  13836. echo pyramid-pyramid-svr4
  13837. - exit 0 ;;
  13838. + exit ;;
  13839. DRS?6000:unix:4.0:6*)
  13840. echo sparc-icl-nx6
  13841. - exit 0 ;;
  13842. - DRS?6000:UNIX_SV:4.2*:7*)
  13843. + exit ;;
  13844. + DRS?6000:UNIX_SV:4.2*:7* | DRS?6000:isis:4.2*:7*)
  13845. case `/usr/bin/uname -p` in
  13846. - sparc) echo sparc-icl-nx7 && exit 0 ;;
  13847. + sparc) echo sparc-icl-nx7; exit ;;
  13848. esac ;;
  13849. + s390x:SunOS:*:*)
  13850. + echo ${UNAME_MACHINE}-ibm-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13851. + exit ;;
  13852. sun4H:SunOS:5.*:*)
  13853. echo sparc-hal-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13854. - exit 0 ;;
  13855. + exit ;;
  13856. sun4*:SunOS:5.*:* | tadpole*:SunOS:5.*:*)
  13857. echo sparc-sun-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13858. - exit 0 ;;
  13859. - i86pc:SunOS:5.*:*)
  13860. - echo i386-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13861. - exit 0 ;;
  13862. + exit ;;
  13863. + i86pc:SunOS:5.*:* | i86xen:SunOS:5.*:*)
  13864. + eval $set_cc_for_build
  13865. + SUN_ARCH="i386"
  13866. + # If there is a compiler, see if it is configured for 64-bit objects.
  13867. + # Note that the Sun cc does not turn __LP64__ into 1 like gcc does.
  13868. + # This test works for both compilers.
  13869. + if [ "$CC_FOR_BUILD" != 'no_compiler_found' ]; then
  13870. + if (echo '#ifdef __amd64'; echo IS_64BIT_ARCH; echo '#endif') | \
  13871. + (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) | \
  13872. + grep IS_64BIT_ARCH >/dev/null
  13873. + then
  13874. + SUN_ARCH="x86_64"
  13875. + fi
  13876. + fi
  13877. + echo ${SUN_ARCH}-pc-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13878. + exit ;;
  13879. sun4*:SunOS:6*:*)
  13880. # According to config.sub, this is the proper way to canonicalize
  13881. # SunOS6. Hard to guess exactly what SunOS6 will be like, but
  13882. # it's likely to be more like Solaris than SunOS4.
  13883. echo sparc-sun-solaris3`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  13884. - exit 0 ;;
  13885. + exit ;;
  13886. sun4*:SunOS:*:*)
  13887. case "`/usr/bin/arch -k`" in
  13888. Series*|S4*)
  13889. @@ -381,10 +363,10 @@
  13890. esac
  13891. # Japanese Language versions have a version number like `4.1.3-JL'.
  13892. echo sparc-sun-sunos`echo ${UNAME_RELEASE}|sed -e 's/-/_/'`
  13893. - exit 0 ;;
  13894. + exit ;;
  13895. sun3*:SunOS:*:*)
  13896. echo m68k-sun-sunos${UNAME_RELEASE}
  13897. - exit 0 ;;
  13898. + exit ;;
  13899. sun*:*:4.2BSD:*)
  13900. UNAME_RELEASE=`(sed 1q /etc/motd | awk '{print substr($5,1,3)}') 2>/dev/null`
  13901. test "x${UNAME_RELEASE}" = "x" && UNAME_RELEASE=3
  13902. @@ -396,10 +378,10 @@
  13903. echo sparc-sun-sunos${UNAME_RELEASE}
  13904. ;;
  13905. esac
  13906. - exit 0 ;;
  13907. + exit ;;
  13908. aushp:SunOS:*:*)
  13909. echo sparc-auspex-sunos${UNAME_RELEASE}
  13910. - exit 0 ;;
  13911. + exit ;;
  13912. # The situation for MiNT is a little confusing. The machine name
  13913. # can be virtually everything (everything which is not
  13914. # "atarist" or "atariste" at least should have a processor
  13915. @@ -410,40 +392,40 @@
  13916. # be no problem.
  13917. atarist[e]:*MiNT:*:* | atarist[e]:*mint:*:* | atarist[e]:*TOS:*:*)
  13918. echo m68k-atari-mint${UNAME_RELEASE}
  13919. - exit 0 ;;
  13920. + exit ;;
  13921. atari*:*MiNT:*:* | atari*:*mint:*:* | atarist[e]:*TOS:*:*)
  13922. echo m68k-atari-mint${UNAME_RELEASE}
  13923. - exit 0 ;;
  13924. + exit ;;
  13925. *falcon*:*MiNT:*:* | *falcon*:*mint:*:* | *falcon*:*TOS:*:*)
  13926. echo m68k-atari-mint${UNAME_RELEASE}
  13927. - exit 0 ;;
  13928. + exit ;;
  13929. milan*:*MiNT:*:* | milan*:*mint:*:* | *milan*:*TOS:*:*)
  13930. echo m68k-milan-mint${UNAME_RELEASE}
  13931. - exit 0 ;;
  13932. + exit ;;
  13933. hades*:*MiNT:*:* | hades*:*mint:*:* | *hades*:*TOS:*:*)
  13934. echo m68k-hades-mint${UNAME_RELEASE}
  13935. - exit 0 ;;
  13936. + exit ;;
  13937. *:*MiNT:*:* | *:*mint:*:* | *:*TOS:*:*)
  13938. echo m68k-unknown-mint${UNAME_RELEASE}
  13939. - exit 0 ;;
  13940. + exit ;;
  13941. m68k:machten:*:*)
  13942. echo m68k-apple-machten${UNAME_RELEASE}
  13943. - exit 0 ;;
  13944. + exit ;;
  13945. powerpc:machten:*:*)
  13946. echo powerpc-apple-machten${UNAME_RELEASE}
  13947. - exit 0 ;;
  13948. + exit ;;
  13949. RISC*:Mach:*:*)
  13950. echo mips-dec-mach_bsd4.3
  13951. - exit 0 ;;
  13952. + exit ;;
  13953. RISC*:ULTRIX:*:*)
  13954. echo mips-dec-ultrix${UNAME_RELEASE}
  13955. - exit 0 ;;
  13956. + exit ;;
  13957. VAX*:ULTRIX*:*:*)
  13958. echo vax-dec-ultrix${UNAME_RELEASE}
  13959. - exit 0 ;;
  13960. + exit ;;
  13961. 2020:CLIX:*:* | 2430:CLIX:*:*)
  13962. echo clipper-intergraph-clix${UNAME_RELEASE}
  13963. - exit 0 ;;
  13964. + exit ;;
  13965. mips:*:*:UMIPS | mips:*:*:RISCos)
  13966. eval $set_cc_for_build
  13967. sed 's/^ //' << EOF >$dummy.c
  13968. @@ -467,32 +449,33 @@
  13969. exit (-1);
  13970. }
  13971. EOF
  13972. - $CC_FOR_BUILD -o $dummy $dummy.c \
  13973. - && $dummy `echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` \
  13974. - && exit 0
  13975. + $CC_FOR_BUILD -o $dummy $dummy.c &&
  13976. + dummyarg=`echo "${UNAME_RELEASE}" | sed -n 's/\([0-9]*\).*/\1/p'` &&
  13977. + SYSTEM_NAME=`$dummy $dummyarg` &&
  13978. + { echo "$SYSTEM_NAME"; exit; }
  13979. echo mips-mips-riscos${UNAME_RELEASE}
  13980. - exit 0 ;;
  13981. + exit ;;
  13982. Motorola:PowerMAX_OS:*:*)
  13983. echo powerpc-motorola-powermax
  13984. - exit 0 ;;
  13985. + exit ;;
  13986. Motorola:*:4.3:PL8-*)
  13987. echo powerpc-harris-powermax
  13988. - exit 0 ;;
  13989. + exit ;;
  13990. Night_Hawk:*:*:PowerMAX_OS | Synergy:PowerMAX_OS:*:*)
  13991. echo powerpc-harris-powermax
  13992. - exit 0 ;;
  13993. + exit ;;
  13994. Night_Hawk:Power_UNIX:*:*)
  13995. echo powerpc-harris-powerunix
  13996. - exit 0 ;;
  13997. + exit ;;
  13998. m88k:CX/UX:7*:*)
  13999. echo m88k-harris-cxux7
  14000. - exit 0 ;;
  14001. + exit ;;
  14002. m88k:*:4*:R4*)
  14003. echo m88k-motorola-sysv4
  14004. - exit 0 ;;
  14005. + exit ;;
  14006. m88k:*:3*:R3*)
  14007. echo m88k-motorola-sysv3
  14008. - exit 0 ;;
  14009. + exit ;;
  14010. AViiON:dgux:*:*)
  14011. # DG/UX returns AViiON for all architectures
  14012. UNAME_PROCESSOR=`/usr/bin/uname -p`
  14013. @@ -508,29 +491,29 @@
  14014. else
  14015. echo i586-dg-dgux${UNAME_RELEASE}
  14016. fi
  14017. - exit 0 ;;
  14018. + exit ;;
  14019. M88*:DolphinOS:*:*) # DolphinOS (SVR3)
  14020. echo m88k-dolphin-sysv3
  14021. - exit 0 ;;
  14022. + exit ;;
  14023. M88*:*:R3*:*)
  14024. # Delta 88k system running SVR3
  14025. echo m88k-motorola-sysv3
  14026. - exit 0 ;;
  14027. + exit ;;
  14028. XD88*:*:*:*) # Tektronix XD88 system running UTekV (SVR3)
  14029. echo m88k-tektronix-sysv3
  14030. - exit 0 ;;
  14031. + exit ;;
  14032. Tek43[0-9][0-9]:UTek:*:*) # Tektronix 4300 system running UTek (BSD)
  14033. echo m68k-tektronix-bsd
  14034. - exit 0 ;;
  14035. + exit ;;
  14036. *:IRIX*:*:*)
  14037. echo mips-sgi-irix`echo ${UNAME_RELEASE}|sed -e 's/-/_/g'`
  14038. - exit 0 ;;
  14039. + exit ;;
  14040. ????????:AIX?:[12].1:2) # AIX 2.2.1 or AIX 2.1.1 is RT/PC AIX.
  14041. - echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  14042. - exit 0 ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  14043. + echo romp-ibm-aix # uname -m gives an 8 hex-code CPU id
  14044. + exit ;; # Note that: echo "'`uname -s`'" gives 'AIX '
  14045. i*86:AIX:*:*)
  14046. echo i386-ibm-aix
  14047. - exit 0 ;;
  14048. + exit ;;
  14049. ia64:AIX:*:*)
  14050. if [ -x /usr/bin/oslevel ] ; then
  14051. IBM_REV=`/usr/bin/oslevel`
  14052. @@ -538,7 +521,7 @@
  14053. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  14054. fi
  14055. echo ${UNAME_MACHINE}-ibm-aix${IBM_REV}
  14056. - exit 0 ;;
  14057. + exit ;;
  14058. *:AIX:2:3)
  14059. if grep bos325 /usr/include/stdio.h >/dev/null 2>&1; then
  14060. eval $set_cc_for_build
  14061. @@ -553,15 +536,19 @@
  14062. exit(0);
  14063. }
  14064. EOF
  14065. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  14066. - echo rs6000-ibm-aix3.2.5
  14067. + if $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy`
  14068. + then
  14069. + echo "$SYSTEM_NAME"
  14070. + else
  14071. + echo rs6000-ibm-aix3.2.5
  14072. + fi
  14073. elif grep bos324 /usr/include/stdio.h >/dev/null 2>&1; then
  14074. echo rs6000-ibm-aix3.2.4
  14075. else
  14076. echo rs6000-ibm-aix3.2
  14077. fi
  14078. - exit 0 ;;
  14079. - *:AIX:*:[45])
  14080. + exit ;;
  14081. + *:AIX:*:[456])
  14082. IBM_CPU_ID=`/usr/sbin/lsdev -C -c processor -S available | sed 1q | awk '{ print $1 }'`
  14083. if /usr/sbin/lsattr -El ${IBM_CPU_ID} | grep ' POWER' >/dev/null 2>&1; then
  14084. IBM_ARCH=rs6000
  14085. @@ -574,28 +561,28 @@
  14086. IBM_REV=${UNAME_VERSION}.${UNAME_RELEASE}
  14087. fi
  14088. echo ${IBM_ARCH}-ibm-aix${IBM_REV}
  14089. - exit 0 ;;
  14090. + exit ;;
  14091. *:AIX:*:*)
  14092. echo rs6000-ibm-aix
  14093. - exit 0 ;;
  14094. + exit ;;
  14095. ibmrt:4.4BSD:*|romp-ibm:BSD:*)
  14096. echo romp-ibm-bsd4.4
  14097. - exit 0 ;;
  14098. + exit ;;
  14099. ibmrt:*BSD:*|romp-ibm:BSD:*) # covers RT/PC BSD and
  14100. echo romp-ibm-bsd${UNAME_RELEASE} # 4.3 with uname added to
  14101. - exit 0 ;; # report: romp-ibm BSD 4.3
  14102. + exit ;; # report: romp-ibm BSD 4.3
  14103. *:BOSX:*:*)
  14104. echo rs6000-bull-bosx
  14105. - exit 0 ;;
  14106. + exit ;;
  14107. DPX/2?00:B.O.S.:*:*)
  14108. echo m68k-bull-sysv3
  14109. - exit 0 ;;
  14110. + exit ;;
  14111. 9000/[34]??:4.3bsd:1.*:*)
  14112. echo m68k-hp-bsd
  14113. - exit 0 ;;
  14114. + exit ;;
  14115. hp300:4.4BSD:*:* | 9000/[34]??:4.3bsd:2.*:*)
  14116. echo m68k-hp-bsd4.4
  14117. - exit 0 ;;
  14118. + exit ;;
  14119. 9000/[34678]??:HP-UX:*:*)
  14120. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  14121. case "${UNAME_MACHINE}" in
  14122. @@ -657,9 +644,19 @@
  14123. esac
  14124. if [ ${HP_ARCH} = "hppa2.0w" ]
  14125. then
  14126. - # avoid double evaluation of $set_cc_for_build
  14127. - test -n "$CC_FOR_BUILD" || eval $set_cc_for_build
  14128. - if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E -) | grep __LP64__ >/dev/null
  14129. + eval $set_cc_for_build
  14130. +
  14131. + # hppa2.0w-hp-hpux* has a 64-bit kernel and a compiler generating
  14132. + # 32-bit code. hppa64-hp-hpux* has the same kernel and a compiler
  14133. + # generating 64-bit code. GNU and HP use different nomenclature:
  14134. + #
  14135. + # $ CC_FOR_BUILD=cc ./config.guess
  14136. + # => hppa2.0w-hp-hpux11.23
  14137. + # $ CC_FOR_BUILD="cc +DA2.0w" ./config.guess
  14138. + # => hppa64-hp-hpux11.23
  14139. +
  14140. + if echo __LP64__ | (CCOPTS= $CC_FOR_BUILD -E - 2>/dev/null) |
  14141. + grep -q __LP64__
  14142. then
  14143. HP_ARCH="hppa2.0w"
  14144. else
  14145. @@ -667,11 +664,11 @@
  14146. fi
  14147. fi
  14148. echo ${HP_ARCH}-hp-hpux${HPUX_REV}
  14149. - exit 0 ;;
  14150. + exit ;;
  14151. ia64:HP-UX:*:*)
  14152. HPUX_REV=`echo ${UNAME_RELEASE}|sed -e 's/[^.]*.[0B]*//'`
  14153. echo ia64-hp-hpux${HPUX_REV}
  14154. - exit 0 ;;
  14155. + exit ;;
  14156. 3050*:HI-UX:*:*)
  14157. eval $set_cc_for_build
  14158. sed 's/^ //' << EOF >$dummy.c
  14159. @@ -699,210 +696,227 @@
  14160. exit (0);
  14161. }
  14162. EOF
  14163. - $CC_FOR_BUILD -o $dummy $dummy.c && $dummy && exit 0
  14164. + $CC_FOR_BUILD -o $dummy $dummy.c && SYSTEM_NAME=`$dummy` &&
  14165. + { echo "$SYSTEM_NAME"; exit; }
  14166. echo unknown-hitachi-hiuxwe2
  14167. - exit 0 ;;
  14168. + exit ;;
  14169. 9000/7??:4.3bsd:*:* | 9000/8?[79]:4.3bsd:*:* )
  14170. echo hppa1.1-hp-bsd
  14171. - exit 0 ;;
  14172. + exit ;;
  14173. 9000/8??:4.3bsd:*:*)
  14174. echo hppa1.0-hp-bsd
  14175. - exit 0 ;;
  14176. + exit ;;
  14177. *9??*:MPE/iX:*:* | *3000*:MPE/iX:*:*)
  14178. echo hppa1.0-hp-mpeix
  14179. - exit 0 ;;
  14180. + exit ;;
  14181. hp7??:OSF1:*:* | hp8?[79]:OSF1:*:* )
  14182. echo hppa1.1-hp-osf
  14183. - exit 0 ;;
  14184. + exit ;;
  14185. hp8??:OSF1:*:*)
  14186. echo hppa1.0-hp-osf
  14187. - exit 0 ;;
  14188. + exit ;;
  14189. i*86:OSF1:*:*)
  14190. if [ -x /usr/sbin/sysversion ] ; then
  14191. echo ${UNAME_MACHINE}-unknown-osf1mk
  14192. else
  14193. echo ${UNAME_MACHINE}-unknown-osf1
  14194. fi
  14195. - exit 0 ;;
  14196. + exit ;;
  14197. parisc*:Lites*:*:*)
  14198. echo hppa1.1-hp-lites
  14199. - exit 0 ;;
  14200. + exit ;;
  14201. C1*:ConvexOS:*:* | convex:ConvexOS:C1*:*)
  14202. echo c1-convex-bsd
  14203. - exit 0 ;;
  14204. + exit ;;
  14205. C2*:ConvexOS:*:* | convex:ConvexOS:C2*:*)
  14206. if getsysinfo -f scalar_acc
  14207. then echo c32-convex-bsd
  14208. else echo c2-convex-bsd
  14209. fi
  14210. - exit 0 ;;
  14211. + exit ;;
  14212. C34*:ConvexOS:*:* | convex:ConvexOS:C34*:*)
  14213. echo c34-convex-bsd
  14214. - exit 0 ;;
  14215. + exit ;;
  14216. C38*:ConvexOS:*:* | convex:ConvexOS:C38*:*)
  14217. echo c38-convex-bsd
  14218. - exit 0 ;;
  14219. + exit ;;
  14220. C4*:ConvexOS:*:* | convex:ConvexOS:C4*:*)
  14221. echo c4-convex-bsd
  14222. - exit 0 ;;
  14223. + exit ;;
  14224. CRAY*Y-MP:*:*:*)
  14225. echo ymp-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14226. - exit 0 ;;
  14227. + exit ;;
  14228. CRAY*[A-Z]90:*:*:*)
  14229. echo ${UNAME_MACHINE}-cray-unicos${UNAME_RELEASE} \
  14230. | sed -e 's/CRAY.*\([A-Z]90\)/\1/' \
  14231. -e y/ABCDEFGHIJKLMNOPQRSTUVWXYZ/abcdefghijklmnopqrstuvwxyz/ \
  14232. -e 's/\.[^.]*$/.X/'
  14233. - exit 0 ;;
  14234. + exit ;;
  14235. CRAY*TS:*:*:*)
  14236. echo t90-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14237. - exit 0 ;;
  14238. + exit ;;
  14239. CRAY*T3E:*:*:*)
  14240. echo alphaev5-cray-unicosmk${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14241. - exit 0 ;;
  14242. + exit ;;
  14243. CRAY*SV1:*:*:*)
  14244. echo sv1-cray-unicos${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14245. - exit 0 ;;
  14246. + exit ;;
  14247. *:UNICOS/mp:*:*)
  14248. - echo nv1-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14249. - exit 0 ;;
  14250. + echo craynv-cray-unicosmp${UNAME_RELEASE} | sed -e 's/\.[^.]*$/.X/'
  14251. + exit ;;
  14252. F30[01]:UNIX_System_V:*:* | F700:UNIX_System_V:*:*)
  14253. FUJITSU_PROC=`uname -m | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz'`
  14254. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14255. FUJITSU_REL=`echo ${UNAME_RELEASE} | sed -e 's/ /_/'`
  14256. echo "${FUJITSU_PROC}-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14257. - exit 0 ;;
  14258. + exit ;;
  14259. 5000:UNIX_System_V:4.*:*)
  14260. FUJITSU_SYS=`uname -p | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/\///'`
  14261. FUJITSU_REL=`echo ${UNAME_RELEASE} | tr 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' 'abcdefghijklmnopqrstuvwxyz' | sed -e 's/ /_/'`
  14262. echo "sparc-fujitsu-${FUJITSU_SYS}${FUJITSU_REL}"
  14263. - exit 0 ;;
  14264. + exit ;;
  14265. i*86:BSD/386:*:* | i*86:BSD/OS:*:* | *:Ascend\ Embedded/OS:*:*)
  14266. echo ${UNAME_MACHINE}-pc-bsdi${UNAME_RELEASE}
  14267. - exit 0 ;;
  14268. + exit ;;
  14269. sparc*:BSD/OS:*:*)
  14270. echo sparc-unknown-bsdi${UNAME_RELEASE}
  14271. - exit 0 ;;
  14272. + exit ;;
  14273. *:BSD/OS:*:*)
  14274. echo ${UNAME_MACHINE}-unknown-bsdi${UNAME_RELEASE}
  14275. - exit 0 ;;
  14276. + exit ;;
  14277. *:FreeBSD:*:*)
  14278. - # Determine whether the default compiler uses glibc.
  14279. - eval $set_cc_for_build
  14280. - sed 's/^ //' << EOF >$dummy.c
  14281. - #include <features.h>
  14282. - #if __GLIBC__ >= 2
  14283. - LIBC=gnu
  14284. - #else
  14285. - LIBC=
  14286. - #endif
  14287. -EOF
  14288. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  14289. - # GNU/KFreeBSD systems have a "k" prefix to indicate we are using
  14290. - # FreeBSD's kernel, but not the complete OS.
  14291. - case ${LIBC} in gnu) kernel_only='k' ;; esac
  14292. - echo ${UNAME_MACHINE}-unknown-${kernel_only}freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`${LIBC:+-$LIBC}
  14293. - exit 0 ;;
  14294. + case ${UNAME_MACHINE} in
  14295. + pc98)
  14296. + echo i386-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14297. + amd64)
  14298. + echo x86_64-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14299. + *)
  14300. + echo ${UNAME_MACHINE}-unknown-freebsd`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'` ;;
  14301. + esac
  14302. + exit ;;
  14303. i*:CYGWIN*:*)
  14304. echo ${UNAME_MACHINE}-pc-cygwin
  14305. - exit 0 ;;
  14306. - i*:MINGW*:*)
  14307. + exit ;;
  14308. + *:MINGW*:*)
  14309. echo ${UNAME_MACHINE}-pc-mingw32
  14310. - exit 0 ;;
  14311. + exit ;;
  14312. + i*:windows32*:*)
  14313. + # uname -m includes "-pc" on this system.
  14314. + echo ${UNAME_MACHINE}-mingw32
  14315. + exit ;;
  14316. i*:PW*:*)
  14317. echo ${UNAME_MACHINE}-pc-pw32
  14318. - exit 0 ;;
  14319. - x86:Interix*:[34]*)
  14320. - echo i586-pc-interix${UNAME_RELEASE}|sed -e 's/\..*//'
  14321. - exit 0 ;;
  14322. + exit ;;
  14323. + *:Interix*:[3456]*)
  14324. + case ${UNAME_MACHINE} in
  14325. + x86)
  14326. + echo i586-pc-interix${UNAME_RELEASE}
  14327. + exit ;;
  14328. + EM64T | authenticamd | genuineintel)
  14329. + echo x86_64-unknown-interix${UNAME_RELEASE}
  14330. + exit ;;
  14331. + IA64)
  14332. + echo ia64-unknown-interix${UNAME_RELEASE}
  14333. + exit ;;
  14334. + esac ;;
  14335. [345]86:Windows_95:* | [345]86:Windows_98:* | [345]86:Windows_NT:*)
  14336. echo i${UNAME_MACHINE}-pc-mks
  14337. - exit 0 ;;
  14338. + exit ;;
  14339. + 8664:Windows_NT:*)
  14340. + echo x86_64-pc-mks
  14341. + exit ;;
  14342. i*:Windows_NT*:* | Pentium*:Windows_NT*:*)
  14343. # How do we know it's Interix rather than the generic POSIX subsystem?
  14344. # It also conflicts with pre-2.0 versions of AT&T UWIN. Should we
  14345. # UNAME_MACHINE based on the output of uname instead of i386?
  14346. echo i586-pc-interix
  14347. - exit 0 ;;
  14348. + exit ;;
  14349. i*:UWIN*:*)
  14350. echo ${UNAME_MACHINE}-pc-uwin
  14351. - exit 0 ;;
  14352. + exit ;;
  14353. + amd64:CYGWIN*:*:* | x86_64:CYGWIN*:*:*)
  14354. + echo x86_64-unknown-cygwin
  14355. + exit ;;
  14356. p*:CYGWIN*:*)
  14357. echo powerpcle-unknown-cygwin
  14358. - exit 0 ;;
  14359. + exit ;;
  14360. prep*:SunOS:5.*:*)
  14361. echo powerpcle-unknown-solaris2`echo ${UNAME_RELEASE}|sed -e 's/[^.]*//'`
  14362. - exit 0 ;;
  14363. + exit ;;
  14364. *:GNU:*:*)
  14365. # the GNU system
  14366. echo `echo ${UNAME_MACHINE}|sed -e 's,[-/].*$,,'`-unknown-gnu`echo ${UNAME_RELEASE}|sed -e 's,/.*$,,'`
  14367. - exit 0 ;;
  14368. + exit ;;
  14369. *:GNU/*:*:*)
  14370. # other systems with GNU libc and userland
  14371. echo ${UNAME_MACHINE}-unknown-`echo ${UNAME_SYSTEM} | sed 's,^[^/]*/,,' | tr '[A-Z]' '[a-z]'``echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`-gnu
  14372. - exit 0 ;;
  14373. + exit ;;
  14374. i*86:Minix:*:*)
  14375. echo ${UNAME_MACHINE}-pc-minix
  14376. - exit 0 ;;
  14377. + exit ;;
  14378. arm*:Linux:*:*)
  14379. + eval $set_cc_for_build
  14380. + if echo __ARM_EABI__ | $CC_FOR_BUILD -E - 2>/dev/null \
  14381. + | grep -q __ARM_EABI__
  14382. + then
  14383. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14384. + else
  14385. + echo ${UNAME_MACHINE}-unknown-linux-gnueabi
  14386. + fi
  14387. + exit ;;
  14388. + avr32*:Linux:*:*)
  14389. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14390. - exit 0 ;;
  14391. + exit ;;
  14392. cris:Linux:*:*)
  14393. echo cris-axis-linux-gnu
  14394. - exit 0 ;;
  14395. + exit ;;
  14396. + crisv32:Linux:*:*)
  14397. + echo crisv32-axis-linux-gnu
  14398. + exit ;;
  14399. + frv:Linux:*:*)
  14400. + echo frv-unknown-linux-gnu
  14401. + exit ;;
  14402. ia64:Linux:*:*)
  14403. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14404. - exit 0 ;;
  14405. + exit ;;
  14406. m32r*:Linux:*:*)
  14407. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14408. - exit 0 ;;
  14409. + exit ;;
  14410. m68*:Linux:*:*)
  14411. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14412. - exit 0 ;;
  14413. - mips:Linux:*:*)
  14414. - eval $set_cc_for_build
  14415. - sed 's/^ //' << EOF >$dummy.c
  14416. - #undef CPU
  14417. - #undef mips
  14418. - #undef mipsel
  14419. - #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14420. - CPU=mipsel
  14421. - #else
  14422. - #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14423. - CPU=mips
  14424. - #else
  14425. - CPU=
  14426. - #endif
  14427. - #endif
  14428. -EOF
  14429. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14430. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  14431. - ;;
  14432. - mips64:Linux:*:*)
  14433. + exit ;;
  14434. + mips:Linux:*:* | mips64:Linux:*:*)
  14435. eval $set_cc_for_build
  14436. sed 's/^ //' << EOF >$dummy.c
  14437. #undef CPU
  14438. - #undef mips64
  14439. - #undef mips64el
  14440. + #undef ${UNAME_MACHINE}
  14441. + #undef ${UNAME_MACHINE}el
  14442. #if defined(__MIPSEL__) || defined(__MIPSEL) || defined(_MIPSEL) || defined(MIPSEL)
  14443. - CPU=mips64el
  14444. + CPU=${UNAME_MACHINE}el
  14445. #else
  14446. #if defined(__MIPSEB__) || defined(__MIPSEB) || defined(_MIPSEB) || defined(MIPSEB)
  14447. - CPU=mips64
  14448. + CPU=${UNAME_MACHINE}
  14449. #else
  14450. CPU=
  14451. #endif
  14452. #endif
  14453. EOF
  14454. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^CPU=`
  14455. - test x"${CPU}" != x && echo "${CPU}-unknown-linux-gnu" && exit 0
  14456. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14457. + /^CPU/{
  14458. + s: ::g
  14459. + p
  14460. + }'`"
  14461. + test x"${CPU}" != x && { echo "${CPU}-unknown-linux-gnu"; exit; }
  14462. ;;
  14463. + or32:Linux:*:*)
  14464. + echo or32-unknown-linux-gnu
  14465. + exit ;;
  14466. ppc:Linux:*:*)
  14467. echo powerpc-unknown-linux-gnu
  14468. - exit 0 ;;
  14469. + exit ;;
  14470. ppc64:Linux:*:*)
  14471. echo powerpc64-unknown-linux-gnu
  14472. - exit 0 ;;
  14473. + exit ;;
  14474. alpha:Linux:*:*)
  14475. case `sed -n '/^cpu model/s/^.*: \(.*\)/\1/p' < /proc/cpuinfo` in
  14476. EV5) UNAME_MACHINE=alphaev5 ;;
  14477. @@ -913,10 +927,13 @@
  14478. EV67) UNAME_MACHINE=alphaev67 ;;
  14479. EV68*) UNAME_MACHINE=alphaev68 ;;
  14480. esac
  14481. - objdump --private-headers /bin/sh | grep ld.so.1 >/dev/null
  14482. + objdump --private-headers /bin/sh | grep -q ld.so.1
  14483. if test "$?" = 0 ; then LIBC="libc1" ; else LIBC="" ; fi
  14484. echo ${UNAME_MACHINE}-unknown-linux-gnu${LIBC}
  14485. - exit 0 ;;
  14486. + exit ;;
  14487. + padre:Linux:*:*)
  14488. + echo sparc-unknown-linux-gnu
  14489. + exit ;;
  14490. parisc:Linux:*:* | hppa:Linux:*:*)
  14491. # Look for CPU level
  14492. case `grep '^cpu[^a-z]*:' /proc/cpuinfo 2>/dev/null | cut -d' ' -f2` in
  14493. @@ -924,25 +941,31 @@
  14494. PA8*) echo hppa2.0-unknown-linux-gnu ;;
  14495. *) echo hppa-unknown-linux-gnu ;;
  14496. esac
  14497. - exit 0 ;;
  14498. + exit ;;
  14499. parisc64:Linux:*:* | hppa64:Linux:*:*)
  14500. echo hppa64-unknown-linux-gnu
  14501. - exit 0 ;;
  14502. + exit ;;
  14503. s390:Linux:*:* | s390x:Linux:*:*)
  14504. echo ${UNAME_MACHINE}-ibm-linux
  14505. - exit 0 ;;
  14506. + exit ;;
  14507. sh64*:Linux:*:*)
  14508. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14509. - exit 0 ;;
  14510. + exit ;;
  14511. sh*:Linux:*:*)
  14512. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14513. - exit 0 ;;
  14514. + exit ;;
  14515. sparc:Linux:*:* | sparc64:Linux:*:*)
  14516. echo ${UNAME_MACHINE}-unknown-linux-gnu
  14517. - exit 0 ;;
  14518. + exit ;;
  14519. + vax:Linux:*:*)
  14520. + echo ${UNAME_MACHINE}-dec-linux-gnu
  14521. + exit ;;
  14522. x86_64:Linux:*:*)
  14523. echo x86_64-unknown-linux-gnu
  14524. - exit 0 ;;
  14525. + exit ;;
  14526. + xtensa*:Linux:*:*)
  14527. + echo ${UNAME_MACHINE}-unknown-linux-gnu
  14528. + exit ;;
  14529. i*86:Linux:*:*)
  14530. # The BFD linker knows what the default object file format is, so
  14531. # first see if it will tell us. cd to the root directory to prevent
  14532. @@ -958,17 +981,6 @@
  14533. elf32-i386)
  14534. TENTATIVE="${UNAME_MACHINE}-pc-linux-gnu"
  14535. ;;
  14536. - a.out-i386-linux)
  14537. - echo "${UNAME_MACHINE}-pc-linux-gnuaout"
  14538. - exit 0 ;;
  14539. - coff-i386)
  14540. - echo "${UNAME_MACHINE}-pc-linux-gnucoff"
  14541. - exit 0 ;;
  14542. - "")
  14543. - # Either a pre-BFD a.out linker (linux-gnuoldld) or
  14544. - # one that does not give us useful --help.
  14545. - echo "${UNAME_MACHINE}-pc-linux-gnuoldld"
  14546. - exit 0 ;;
  14547. esac
  14548. # Determine whether the default compiler is a.out or elf
  14549. eval $set_cc_for_build
  14550. @@ -985,7 +997,7 @@
  14551. LIBC=gnulibc1
  14552. # endif
  14553. #else
  14554. - #ifdef __INTEL_COMPILER
  14555. + #if defined(__INTEL_COMPILER) || defined(__PGI) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
  14556. LIBC=gnu
  14557. #else
  14558. LIBC=gnuaout
  14559. @@ -995,16 +1007,23 @@
  14560. LIBC=dietlibc
  14561. #endif
  14562. EOF
  14563. - eval `$CC_FOR_BUILD -E $dummy.c 2>/dev/null | grep ^LIBC=`
  14564. - test x"${LIBC}" != x && echo "${UNAME_MACHINE}-pc-linux-${LIBC}" && exit 0
  14565. - test x"${TENTATIVE}" != x && echo "${TENTATIVE}" && exit 0
  14566. + eval "`$CC_FOR_BUILD -E $dummy.c 2>/dev/null | sed -n '
  14567. + /^LIBC/{
  14568. + s: ::g
  14569. + p
  14570. + }'`"
  14571. + test x"${LIBC}" != x && {
  14572. + echo "${UNAME_MACHINE}-pc-linux-${LIBC}"
  14573. + exit
  14574. + }
  14575. + test x"${TENTATIVE}" != x && { echo "${TENTATIVE}"; exit; }
  14576. ;;
  14577. i*86:DYNIX/ptx:4*:*)
  14578. # ptx 4.0 does uname -s correctly, with DYNIX/ptx in there.
  14579. # earlier versions are messed up and put the nodename in both
  14580. # sysname and nodename.
  14581. echo i386-sequent-sysv4
  14582. - exit 0 ;;
  14583. + exit ;;
  14584. i*86:UNIX_SV:4.2MP:2.*)
  14585. # Unixware is an offshoot of SVR4, but it has its own version
  14586. # number series starting with 2...
  14587. @@ -1012,27 +1031,27 @@
  14588. # I just have to hope. -- rms.
  14589. # Use sysv4.2uw... so that sysv4* matches it.
  14590. echo ${UNAME_MACHINE}-pc-sysv4.2uw${UNAME_VERSION}
  14591. - exit 0 ;;
  14592. + exit ;;
  14593. i*86:OS/2:*:*)
  14594. # If we were able to find `uname', then EMX Unix compatibility
  14595. # is probably installed.
  14596. echo ${UNAME_MACHINE}-pc-os2-emx
  14597. - exit 0 ;;
  14598. + exit ;;
  14599. i*86:XTS-300:*:STOP)
  14600. echo ${UNAME_MACHINE}-unknown-stop
  14601. - exit 0 ;;
  14602. + exit ;;
  14603. i*86:atheos:*:*)
  14604. echo ${UNAME_MACHINE}-unknown-atheos
  14605. - exit 0 ;;
  14606. - i*86:syllable:*:*)
  14607. + exit ;;
  14608. + i*86:syllable:*:*)
  14609. echo ${UNAME_MACHINE}-pc-syllable
  14610. - exit 0 ;;
  14611. - i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.0*:*)
  14612. + exit ;;
  14613. + i*86:LynxOS:2.*:* | i*86:LynxOS:3.[01]*:* | i*86:LynxOS:4.[02]*:*)
  14614. echo i386-unknown-lynxos${UNAME_RELEASE}
  14615. - exit 0 ;;
  14616. + exit ;;
  14617. i*86:*DOS:*:*)
  14618. echo ${UNAME_MACHINE}-pc-msdosdjgpp
  14619. - exit 0 ;;
  14620. + exit ;;
  14621. i*86:*:4.*:* | i*86:SYSTEM_V:4.*:*)
  14622. UNAME_REL=`echo ${UNAME_RELEASE} | sed 's/\/MP$//'`
  14623. if grep Novell /usr/include/link.h >/dev/null 2>/dev/null; then
  14624. @@ -1040,15 +1059,16 @@
  14625. else
  14626. echo ${UNAME_MACHINE}-pc-sysv${UNAME_REL}
  14627. fi
  14628. - exit 0 ;;
  14629. - i*86:*:5:[78]*)
  14630. + exit ;;
  14631. + i*86:*:5:[678]*)
  14632. + # UnixWare 7.x, OpenUNIX and OpenServer 6.
  14633. case `/bin/uname -X | grep "^Machine"` in
  14634. *486*) UNAME_MACHINE=i486 ;;
  14635. *Pentium) UNAME_MACHINE=i586 ;;
  14636. *Pent*|*Celeron) UNAME_MACHINE=i686 ;;
  14637. esac
  14638. echo ${UNAME_MACHINE}-unknown-sysv${UNAME_RELEASE}${UNAME_SYSTEM}${UNAME_VERSION}
  14639. - exit 0 ;;
  14640. + exit ;;
  14641. i*86:*:3.2:*)
  14642. if test -f /usr/options/cb.name; then
  14643. UNAME_REL=`sed -n 's/.*Version //p' </usr/options/cb.name`
  14644. @@ -1066,73 +1086,86 @@
  14645. else
  14646. echo ${UNAME_MACHINE}-pc-sysv32
  14647. fi
  14648. - exit 0 ;;
  14649. + exit ;;
  14650. pc:*:*:*)
  14651. # Left here for compatibility:
  14652. # uname -m prints for DJGPP always 'pc', but it prints nothing about
  14653. - # the processor, so we play safe by assuming i386.
  14654. - echo i386-pc-msdosdjgpp
  14655. - exit 0 ;;
  14656. + # the processor, so we play safe by assuming i586.
  14657. + # Note: whatever this is, it MUST be the same as what config.sub
  14658. + # prints for the "djgpp" host, or else GDB configury will decide that
  14659. + # this is a cross-build.
  14660. + echo i586-pc-msdosdjgpp
  14661. + exit ;;
  14662. Intel:Mach:3*:*)
  14663. echo i386-pc-mach3
  14664. - exit 0 ;;
  14665. + exit ;;
  14666. paragon:*:*:*)
  14667. echo i860-intel-osf1
  14668. - exit 0 ;;
  14669. + exit ;;
  14670. i860:*:4.*:*) # i860-SVR4
  14671. if grep Stardent /usr/include/sys/uadmin.h >/dev/null 2>&1 ; then
  14672. echo i860-stardent-sysv${UNAME_RELEASE} # Stardent Vistra i860-SVR4
  14673. else # Add other i860-SVR4 vendors below as they are discovered.
  14674. echo i860-unknown-sysv${UNAME_RELEASE} # Unknown i860-SVR4
  14675. fi
  14676. - exit 0 ;;
  14677. + exit ;;
  14678. mini*:CTIX:SYS*5:*)
  14679. # "miniframe"
  14680. echo m68010-convergent-sysv
  14681. - exit 0 ;;
  14682. + exit ;;
  14683. mc68k:UNIX:SYSTEM5:3.51m)
  14684. echo m68k-convergent-sysv
  14685. - exit 0 ;;
  14686. + exit ;;
  14687. M680?0:D-NIX:5.3:*)
  14688. echo m68k-diab-dnix
  14689. - exit 0 ;;
  14690. + exit ;;
  14691. M68*:*:R3V[5678]*:*)
  14692. - test -r /sysV68 && echo 'm68k-motorola-sysv' && exit 0 ;;
  14693. - 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0)
  14694. + test -r /sysV68 && { echo 'm68k-motorola-sysv'; exit; } ;;
  14695. + 3[345]??:*:4.0:3.0 | 3[34]??A:*:4.0:3.0 | 3[34]??,*:*:4.0:3.0 | 3[34]??/*:*:4.0:3.0 | 4400:*:4.0:3.0 | 4850:*:4.0:3.0 | SKA40:*:4.0:3.0 | SDS2:*:4.0:3.0 | SHG2:*:4.0:3.0 | S7501*:*:4.0:3.0)
  14696. OS_REL=''
  14697. test -r /etc/.relid \
  14698. && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14699. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14700. - && echo i486-ncr-sysv4.3${OS_REL} && exit 0
  14701. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14702. /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14703. - && echo i586-ncr-sysv4.3${OS_REL} && exit 0 ;;
  14704. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14705. 3[34]??:*:4.0:* | 3[34]??,*:*:4.0:*)
  14706. /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14707. - && echo i486-ncr-sysv4 && exit 0 ;;
  14708. + && { echo i486-ncr-sysv4; exit; } ;;
  14709. + NCR*:*:4.2:* | MPRAS*:*:4.2:*)
  14710. + OS_REL='.3'
  14711. + test -r /etc/.relid \
  14712. + && OS_REL=.`sed -n 's/[^ ]* [^ ]* \([0-9][0-9]\).*/\1/p' < /etc/.relid`
  14713. + /bin/uname -p 2>/dev/null | grep 86 >/dev/null \
  14714. + && { echo i486-ncr-sysv4.3${OS_REL}; exit; }
  14715. + /bin/uname -p 2>/dev/null | /bin/grep entium >/dev/null \
  14716. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; }
  14717. + /bin/uname -p 2>/dev/null | /bin/grep pteron >/dev/null \
  14718. + && { echo i586-ncr-sysv4.3${OS_REL}; exit; } ;;
  14719. m68*:LynxOS:2.*:* | m68*:LynxOS:3.0*:*)
  14720. echo m68k-unknown-lynxos${UNAME_RELEASE}
  14721. - exit 0 ;;
  14722. + exit ;;
  14723. mc68030:UNIX_System_V:4.*:*)
  14724. echo m68k-atari-sysv4
  14725. - exit 0 ;;
  14726. + exit ;;
  14727. TSUNAMI:LynxOS:2.*:*)
  14728. echo sparc-unknown-lynxos${UNAME_RELEASE}
  14729. - exit 0 ;;
  14730. + exit ;;
  14731. rs6000:LynxOS:2.*:*)
  14732. echo rs6000-unknown-lynxos${UNAME_RELEASE}
  14733. - exit 0 ;;
  14734. - PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.0*:*)
  14735. + exit ;;
  14736. + PowerPC:LynxOS:2.*:* | PowerPC:LynxOS:3.[01]*:* | PowerPC:LynxOS:4.[02]*:*)
  14737. echo powerpc-unknown-lynxos${UNAME_RELEASE}
  14738. - exit 0 ;;
  14739. + exit ;;
  14740. SM[BE]S:UNIX_SV:*:*)
  14741. echo mips-dde-sysv${UNAME_RELEASE}
  14742. - exit 0 ;;
  14743. + exit ;;
  14744. RM*:ReliantUNIX-*:*:*)
  14745. echo mips-sni-sysv4
  14746. - exit 0 ;;
  14747. + exit ;;
  14748. RM*:SINIX-*:*:*)
  14749. echo mips-sni-sysv4
  14750. - exit 0 ;;
  14751. + exit ;;
  14752. *:SINIX-*:*:*)
  14753. if uname -p 2>/dev/null >/dev/null ; then
  14754. UNAME_MACHINE=`(uname -p) 2>/dev/null`
  14755. @@ -1140,68 +1173,84 @@
  14756. else
  14757. echo ns32k-sni-sysv
  14758. fi
  14759. - exit 0 ;;
  14760. + exit ;;
  14761. PENTIUM:*:4.0*:*) # Unisys `ClearPath HMP IX 4000' SVR4/MP effort
  14762. # says <Richard.M.Bartel@ccMail.Census.GOV>
  14763. echo i586-unisys-sysv4
  14764. - exit 0 ;;
  14765. + exit ;;
  14766. *:UNIX_System_V:4*:FTX*)
  14767. # From Gerald Hewes <hewes@openmarket.com>.
  14768. # How about differentiating between stratus architectures? -djm
  14769. echo hppa1.1-stratus-sysv4
  14770. - exit 0 ;;
  14771. + exit ;;
  14772. *:*:*:FTX*)
  14773. # From seanf@swdc.stratus.com.
  14774. echo i860-stratus-sysv4
  14775. - exit 0 ;;
  14776. + exit ;;
  14777. + i*86:VOS:*:*)
  14778. + # From Paul.Green@stratus.com.
  14779. + echo ${UNAME_MACHINE}-stratus-vos
  14780. + exit ;;
  14781. *:VOS:*:*)
  14782. # From Paul.Green@stratus.com.
  14783. echo hppa1.1-stratus-vos
  14784. - exit 0 ;;
  14785. + exit ;;
  14786. mc68*:A/UX:*:*)
  14787. echo m68k-apple-aux${UNAME_RELEASE}
  14788. - exit 0 ;;
  14789. + exit ;;
  14790. news*:NEWS-OS:6*:*)
  14791. echo mips-sony-newsos6
  14792. - exit 0 ;;
  14793. + exit ;;
  14794. R[34]000:*System_V*:*:* | R4000:UNIX_SYSV:*:* | R*000:UNIX_SV:*:*)
  14795. if [ -d /usr/nec ]; then
  14796. echo mips-nec-sysv${UNAME_RELEASE}
  14797. else
  14798. echo mips-unknown-sysv${UNAME_RELEASE}
  14799. fi
  14800. - exit 0 ;;
  14801. + exit ;;
  14802. BeBox:BeOS:*:*) # BeOS running on hardware made by Be, PPC only.
  14803. echo powerpc-be-beos
  14804. - exit 0 ;;
  14805. + exit ;;
  14806. BeMac:BeOS:*:*) # BeOS running on Mac or Mac clone, PPC only.
  14807. echo powerpc-apple-beos
  14808. - exit 0 ;;
  14809. + exit ;;
  14810. BePC:BeOS:*:*) # BeOS running on Intel PC compatible.
  14811. echo i586-pc-beos
  14812. - exit 0 ;;
  14813. + exit ;;
  14814. + BePC:Haiku:*:*) # Haiku running on Intel PC compatible.
  14815. + echo i586-pc-haiku
  14816. + exit ;;
  14817. SX-4:SUPER-UX:*:*)
  14818. echo sx4-nec-superux${UNAME_RELEASE}
  14819. - exit 0 ;;
  14820. + exit ;;
  14821. SX-5:SUPER-UX:*:*)
  14822. echo sx5-nec-superux${UNAME_RELEASE}
  14823. - exit 0 ;;
  14824. + exit ;;
  14825. SX-6:SUPER-UX:*:*)
  14826. echo sx6-nec-superux${UNAME_RELEASE}
  14827. - exit 0 ;;
  14828. + exit ;;
  14829. + SX-7:SUPER-UX:*:*)
  14830. + echo sx7-nec-superux${UNAME_RELEASE}
  14831. + exit ;;
  14832. + SX-8:SUPER-UX:*:*)
  14833. + echo sx8-nec-superux${UNAME_RELEASE}
  14834. + exit ;;
  14835. + SX-8R:SUPER-UX:*:*)
  14836. + echo sx8r-nec-superux${UNAME_RELEASE}
  14837. + exit ;;
  14838. Power*:Rhapsody:*:*)
  14839. echo powerpc-apple-rhapsody${UNAME_RELEASE}
  14840. - exit 0 ;;
  14841. + exit ;;
  14842. *:Rhapsody:*:*)
  14843. echo ${UNAME_MACHINE}-apple-rhapsody${UNAME_RELEASE}
  14844. - exit 0 ;;
  14845. + exit ;;
  14846. *:Darwin:*:*)
  14847. - case `uname -p` in
  14848. - *86) UNAME_PROCESSOR=i686 ;;
  14849. - powerpc) UNAME_PROCESSOR=powerpc ;;
  14850. + UNAME_PROCESSOR=`uname -p` || UNAME_PROCESSOR=unknown
  14851. + case $UNAME_PROCESSOR in
  14852. + unknown) UNAME_PROCESSOR=powerpc ;;
  14853. esac
  14854. echo ${UNAME_PROCESSOR}-apple-darwin${UNAME_RELEASE}
  14855. - exit 0 ;;
  14856. + exit ;;
  14857. *:procnto*:*:* | *:QNX:[0123456789]*:*)
  14858. UNAME_PROCESSOR=`uname -p`
  14859. if test "$UNAME_PROCESSOR" = "x86"; then
  14860. @@ -1209,22 +1258,25 @@
  14861. UNAME_MACHINE=pc
  14862. fi
  14863. echo ${UNAME_PROCESSOR}-${UNAME_MACHINE}-nto-qnx${UNAME_RELEASE}
  14864. - exit 0 ;;
  14865. + exit ;;
  14866. *:QNX:*:4*)
  14867. echo i386-pc-qnx
  14868. - exit 0 ;;
  14869. + exit ;;
  14870. + NSE-?:NONSTOP_KERNEL:*:*)
  14871. + echo nse-tandem-nsk${UNAME_RELEASE}
  14872. + exit ;;
  14873. NSR-?:NONSTOP_KERNEL:*:*)
  14874. echo nsr-tandem-nsk${UNAME_RELEASE}
  14875. - exit 0 ;;
  14876. + exit ;;
  14877. *:NonStop-UX:*:*)
  14878. echo mips-compaq-nonstopux
  14879. - exit 0 ;;
  14880. + exit ;;
  14881. BS2000:POSIX*:*:*)
  14882. echo bs2000-siemens-sysv
  14883. - exit 0 ;;
  14884. + exit ;;
  14885. DS/*:UNIX_System_V:*:*)
  14886. echo ${UNAME_MACHINE}-${UNAME_SYSTEM}-${UNAME_RELEASE}
  14887. - exit 0 ;;
  14888. + exit ;;
  14889. *:Plan9:*:*)
  14890. # "uname -m" is not consistent, so use $cputype instead. 386
  14891. # is converted to i386 for consistency with other x86
  14892. @@ -1235,31 +1287,50 @@
  14893. UNAME_MACHINE="$cputype"
  14894. fi
  14895. echo ${UNAME_MACHINE}-unknown-plan9
  14896. - exit 0 ;;
  14897. + exit ;;
  14898. *:TOPS-10:*:*)
  14899. echo pdp10-unknown-tops10
  14900. - exit 0 ;;
  14901. + exit ;;
  14902. *:TENEX:*:*)
  14903. echo pdp10-unknown-tenex
  14904. - exit 0 ;;
  14905. + exit ;;
  14906. KS10:TOPS-20:*:* | KL10:TOPS-20:*:* | TYPE4:TOPS-20:*:*)
  14907. echo pdp10-dec-tops20
  14908. - exit 0 ;;
  14909. + exit ;;
  14910. XKL-1:TOPS-20:*:* | TYPE5:TOPS-20:*:*)
  14911. echo pdp10-xkl-tops20
  14912. - exit 0 ;;
  14913. + exit ;;
  14914. *:TOPS-20:*:*)
  14915. echo pdp10-unknown-tops20
  14916. - exit 0 ;;
  14917. + exit ;;
  14918. *:ITS:*:*)
  14919. echo pdp10-unknown-its
  14920. - exit 0 ;;
  14921. + exit ;;
  14922. SEI:*:*:SEIUX)
  14923. echo mips-sei-seiux${UNAME_RELEASE}
  14924. - exit 0 ;;
  14925. + exit ;;
  14926. *:DragonFly:*:*)
  14927. echo ${UNAME_MACHINE}-unknown-dragonfly`echo ${UNAME_RELEASE}|sed -e 's/[-(].*//'`
  14928. - exit 0 ;;
  14929. + exit ;;
  14930. + *:*VMS:*:*)
  14931. + UNAME_MACHINE=`(uname -p) 2>/dev/null`
  14932. + case "${UNAME_MACHINE}" in
  14933. + A*) echo alpha-dec-vms ; exit ;;
  14934. + I*) echo ia64-dec-vms ; exit ;;
  14935. + V*) echo vax-dec-vms ; exit ;;
  14936. + esac ;;
  14937. + *:XENIX:*:SysV)
  14938. + echo i386-pc-xenix
  14939. + exit ;;
  14940. + i*86:skyos:*:*)
  14941. + echo ${UNAME_MACHINE}-pc-skyos`echo ${UNAME_RELEASE}` | sed -e 's/ .*$//'
  14942. + exit ;;
  14943. + i*86:rdos:*:*)
  14944. + echo ${UNAME_MACHINE}-pc-rdos
  14945. + exit ;;
  14946. + i*86:AROS:*:*)
  14947. + echo ${UNAME_MACHINE}-pc-aros
  14948. + exit ;;
  14949. esac
  14950. #echo '(No uname command or uname output not recognized.)' 1>&2
  14951. @@ -1291,7 +1362,7 @@
  14952. #endif
  14953. #if defined (__arm) && defined (__acorn) && defined (__unix)
  14954. - printf ("arm-acorn-riscix"); exit (0);
  14955. + printf ("arm-acorn-riscix\n"); exit (0);
  14956. #endif
  14957. #if defined (hp300) && !defined (hpux)
  14958. @@ -1380,11 +1451,12 @@
  14959. }
  14960. EOF
  14961. -$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && $dummy && exit 0
  14962. +$CC_FOR_BUILD -o $dummy $dummy.c 2>/dev/null && SYSTEM_NAME=`$dummy` &&
  14963. + { echo "$SYSTEM_NAME"; exit; }
  14964. # Apollos put the system type in the environment.
  14965. -test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit 0; }
  14966. +test -d /usr/apollo && { echo ${ISP}-apollo-${SYSTYPE}; exit; }
  14967. # Convex versions that predate uname can use getsysinfo(1)
  14968. @@ -1393,22 +1465,22 @@
  14969. case `getsysinfo -f cpu_type` in
  14970. c1*)
  14971. echo c1-convex-bsd
  14972. - exit 0 ;;
  14973. + exit ;;
  14974. c2*)
  14975. if getsysinfo -f scalar_acc
  14976. then echo c32-convex-bsd
  14977. else echo c2-convex-bsd
  14978. fi
  14979. - exit 0 ;;
  14980. + exit ;;
  14981. c34*)
  14982. echo c34-convex-bsd
  14983. - exit 0 ;;
  14984. + exit ;;
  14985. c38*)
  14986. echo c38-convex-bsd
  14987. - exit 0 ;;
  14988. + exit ;;
  14989. c4*)
  14990. echo c4-convex-bsd
  14991. - exit 0 ;;
  14992. + exit ;;
  14993. esac
  14994. fi
  14995. @@ -1419,7 +1491,9 @@
  14996. the operating system you are using. It is advised that you
  14997. download the most up to date version of the config scripts from
  14998. - ftp://ftp.gnu.org/pub/gnu/config/
  14999. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.guess;hb=HEAD
  15000. +and
  15001. + http://git.savannah.gnu.org/gitweb/?p=config.git;a=blob_plain;f=config.sub;hb=HEAD
  15002. If the version you run ($0) is already up to date, please
  15003. send the following data and any information you think might be
  15004. diff -Nur chillispot-1.1.0.orig/config.h.in chillispot-1.1.0/config.h.in
  15005. --- chillispot-1.1.0.orig/config.h.in 2006-09-24 21:34:53.000000000 +0200
  15006. +++ chillispot-1.1.0/config.h.in 2011-02-21 17:56:52.000000000 +0100
  15007. @@ -106,6 +106,10 @@
  15008. /* Define to 1 if `vfork' works. */
  15009. #undef HAVE_WORKING_VFORK
  15010. +/* Define to the sub-directory in which libtool stores uninstalled libraries.
  15011. + */
  15012. +#undef LT_OBJDIR
  15013. +
  15014. /* Name of package */
  15015. #undef PACKAGE
  15016. @@ -121,6 +125,9 @@
  15017. /* Define to the one symbol short name of this package. */
  15018. #undef PACKAGE_TARNAME
  15019. +/* Define to the home page for this package. */
  15020. +#undef PACKAGE_URL
  15021. +
  15022. /* Define to the version of this package. */
  15023. #undef PACKAGE_VERSION
  15024. diff -Nur chillispot-1.1.0.orig/config.h.in~ chillispot-1.1.0/config.h.in~
  15025. --- chillispot-1.1.0.orig/config.h.in~ 1970-01-01 01:00:00.000000000 +0100
  15026. +++ chillispot-1.1.0/config.h.in~ 2006-09-24 21:34:53.000000000 +0200
  15027. @@ -0,0 +1,158 @@
  15028. +/* config.h.in. Generated from configure.in by autoheader. */
  15029. +
  15030. +/* Define to 1 if you have the <arpa/inet.h> header file. */
  15031. +#undef HAVE_ARPA_INET_H
  15032. +
  15033. +/* Define to 1 if you have the <dlfcn.h> header file. */
  15034. +#undef HAVE_DLFCN_H
  15035. +
  15036. +/* Define to 1 if you have the <fcntl.h> header file. */
  15037. +#undef HAVE_FCNTL_H
  15038. +
  15039. +/* Define to 1 if you have the `fork' function. */
  15040. +#undef HAVE_FORK
  15041. +
  15042. +/* Define to 1 if you have the `gethostbyname' function. */
  15043. +#undef HAVE_GETHOSTBYNAME
  15044. +
  15045. +/* Define to 1 if you have the `gettimeofday' function. */
  15046. +#undef HAVE_GETTIMEOFDAY
  15047. +
  15048. +/* Define to 1 if you have the `inet_ntoa' function. */
  15049. +#undef HAVE_INET_NTOA
  15050. +
  15051. +/* Define to 1 if you have the <inttypes.h> header file. */
  15052. +#undef HAVE_INTTYPES_H
  15053. +
  15054. +/* Define to 1 if your system has a GNU libc compatible `malloc' function, and
  15055. + to 0 otherwise. */
  15056. +#undef HAVE_MALLOC
  15057. +
  15058. +/* Define to 1 if you have the <memory.h> header file. */
  15059. +#undef HAVE_MEMORY_H
  15060. +
  15061. +/* Define to 1 if you have the `memset' function. */
  15062. +#undef HAVE_MEMSET
  15063. +
  15064. +/* Define to 1 if you have the <netdb.h> header file. */
  15065. +#undef HAVE_NETDB_H
  15066. +
  15067. +/* Define to 1 if you have the <netinet/in.h> header file. */
  15068. +#undef HAVE_NETINET_IN_H
  15069. +
  15070. +/* Define to 1 if you have the `select' function. */
  15071. +#undef HAVE_SELECT
  15072. +
  15073. +/* Define to 1 if you have the `socket' function. */
  15074. +#undef HAVE_SOCKET
  15075. +
  15076. +/* Define to 1 if you have the <stdint.h> header file. */
  15077. +#undef HAVE_STDINT_H
  15078. +
  15079. +/* Define to 1 if you have the <stdlib.h> header file. */
  15080. +#undef HAVE_STDLIB_H
  15081. +
  15082. +/* Define to 1 if you have the `strdup' function. */
  15083. +#undef HAVE_STRDUP
  15084. +
  15085. +/* Define to 1 if you have the `strerror' function. */
  15086. +#undef HAVE_STRERROR
  15087. +
  15088. +/* Define to 1 if you have the <strings.h> header file. */
  15089. +#undef HAVE_STRINGS_H
  15090. +
  15091. +/* Define to 1 if you have the <string.h> header file. */
  15092. +#undef HAVE_STRING_H
  15093. +
  15094. +/* Define to 1 if you have the `strstr' function. */
  15095. +#undef HAVE_STRSTR
  15096. +
  15097. +/* Define to 1 if you have the `strtol' function. */
  15098. +#undef HAVE_STRTOL
  15099. +
  15100. +/* Define to 1 if you have the <syslog.h> header file. */
  15101. +#undef HAVE_SYSLOG_H
  15102. +
  15103. +/* Define to 1 if you have the <sys/ioctl.h> header file. */
  15104. +#undef HAVE_SYS_IOCTL_H
  15105. +
  15106. +/* Define to 1 if you have the <sys/select.h> header file. */
  15107. +#undef HAVE_SYS_SELECT_H
  15108. +
  15109. +/* Define to 1 if you have the <sys/socket.h> header file. */
  15110. +#undef HAVE_SYS_SOCKET_H
  15111. +
  15112. +/* Define to 1 if you have the <sys/stat.h> header file. */
  15113. +#undef HAVE_SYS_STAT_H
  15114. +
  15115. +/* Define to 1 if you have the <sys/time.h> header file. */
  15116. +#undef HAVE_SYS_TIME_H
  15117. +
  15118. +/* Define to 1 if you have the <sys/types.h> header file. */
  15119. +#undef HAVE_SYS_TYPES_H
  15120. +
  15121. +/* Define to 1 if you have the <unistd.h> header file. */
  15122. +#undef HAVE_UNISTD_H
  15123. +
  15124. +/* Define to 1 if you have the `vfork' function. */
  15125. +#undef HAVE_VFORK
  15126. +
  15127. +/* Define to 1 if you have the <vfork.h> header file. */
  15128. +#undef HAVE_VFORK_H
  15129. +
  15130. +/* Define to 1 if `fork' works. */
  15131. +#undef HAVE_WORKING_FORK
  15132. +
  15133. +/* Define to 1 if `vfork' works. */
  15134. +#undef HAVE_WORKING_VFORK
  15135. +
  15136. +/* Name of package */
  15137. +#undef PACKAGE
  15138. +
  15139. +/* Define to the address where bug reports for this package should be sent. */
  15140. +#undef PACKAGE_BUGREPORT
  15141. +
  15142. +/* Define to the full name of this package. */
  15143. +#undef PACKAGE_NAME
  15144. +
  15145. +/* Define to the full name and version of this package. */
  15146. +#undef PACKAGE_STRING
  15147. +
  15148. +/* Define to the one symbol short name of this package. */
  15149. +#undef PACKAGE_TARNAME
  15150. +
  15151. +/* Define to the version of this package. */
  15152. +#undef PACKAGE_VERSION
  15153. +
  15154. +/* Define to the type of arg 1 for `select'. */
  15155. +#undef SELECT_TYPE_ARG1
  15156. +
  15157. +/* Define to the type of args 2, 3 and 4 for `select'. */
  15158. +#undef SELECT_TYPE_ARG234
  15159. +
  15160. +/* Define to the type of arg 5 for `select'. */
  15161. +#undef SELECT_TYPE_ARG5
  15162. +
  15163. +/* Define to 1 if you have the ANSI C header files. */
  15164. +#undef STDC_HEADERS
  15165. +
  15166. +/* Define to 1 if you can safely include both <sys/time.h> and <time.h>. */
  15167. +#undef TIME_WITH_SYS_TIME
  15168. +
  15169. +/* Version number of package */
  15170. +#undef VERSION
  15171. +
  15172. +/* Define to empty if `const' does not conform to ANSI C. */
  15173. +#undef const
  15174. +
  15175. +/* Define to rpl_malloc if the replacement function should be used. */
  15176. +#undef malloc
  15177. +
  15178. +/* Define to `int' if <sys/types.h> does not define. */
  15179. +#undef mode_t
  15180. +
  15181. +/* Define to `int' if <sys/types.h> does not define. */
  15182. +#undef pid_t
  15183. +
  15184. +/* Define as `fork' if `vfork' does not work. */
  15185. +#undef vfork
  15186. diff -Nur chillispot-1.1.0.orig/config.sub chillispot-1.1.0/config.sub
  15187. --- chillispot-1.1.0.orig/config.sub 2004-10-28 15:44:58.000000000 +0200
  15188. +++ chillispot-1.1.0/config.sub 2011-02-21 17:56:53.444800587 +0100
  15189. @@ -1,9 +1,10 @@
  15190. #! /bin/sh
  15191. # Configuration validation subroutine script.
  15192. # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999,
  15193. -# 2000, 2001, 2002, 2003 Free Software Foundation, Inc.
  15194. +# 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009
  15195. +# Free Software Foundation, Inc.
  15196. -timestamp='2004-03-12'
  15197. +timestamp='2009-06-11'
  15198. # This file is (in principle) common to ALL GNU software.
  15199. # The presence of a machine in this file suggests that SOME GNU software
  15200. @@ -21,14 +22,15 @@
  15201. #
  15202. # You should have received a copy of the GNU General Public License
  15203. # along with this program; if not, write to the Free Software
  15204. -# Foundation, Inc., 59 Temple Place - Suite 330,
  15205. -# Boston, MA 02111-1307, USA.
  15206. -
  15207. +# Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
  15208. +# 02110-1301, USA.
  15209. +#
  15210. # As a special exception to the GNU General Public License, if you
  15211. # distribute this file as part of a program that contains a
  15212. # configuration script generated by Autoconf, you may include it under
  15213. # the same distribution terms that you use for the rest of that program.
  15214. +
  15215. # Please send patches to <config-patches@gnu.org>. Submit a context
  15216. # diff and a properly formatted ChangeLog entry.
  15217. #
  15218. @@ -70,8 +72,8 @@
  15219. version="\
  15220. GNU config.sub ($timestamp)
  15221. -Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001
  15222. -Free Software Foundation, Inc.
  15223. +Copyright (C) 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
  15224. +2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
  15225. This is free software; see the source for copying conditions. There is NO
  15226. warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  15227. @@ -83,11 +85,11 @@
  15228. while test $# -gt 0 ; do
  15229. case $1 in
  15230. --time-stamp | --time* | -t )
  15231. - echo "$timestamp" ; exit 0 ;;
  15232. + echo "$timestamp" ; exit ;;
  15233. --version | -v )
  15234. - echo "$version" ; exit 0 ;;
  15235. + echo "$version" ; exit ;;
  15236. --help | --h* | -h )
  15237. - echo "$usage"; exit 0 ;;
  15238. + echo "$usage"; exit ;;
  15239. -- ) # Stop option processing
  15240. shift; break ;;
  15241. - ) # Use stdin as input.
  15242. @@ -99,7 +101,7 @@
  15243. *local*)
  15244. # First pass through any local machine types.
  15245. echo $1
  15246. - exit 0;;
  15247. + exit ;;
  15248. * )
  15249. break ;;
  15250. @@ -118,8 +120,10 @@
  15251. # Here we must recognize all the valid KERNEL-OS combinations.
  15252. maybe_os=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\2/'`
  15253. case $maybe_os in
  15254. - nto-qnx* | linux-gnu* | linux-dietlibc | linux-uclibc* | uclinux-uclibc* | uclinux-gnu* | \
  15255. - kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | storm-chaos* | os2-emx* | rtmk-nova*)
  15256. + nto-qnx* | linux-gnu* | linux-dietlibc | linux-newlib* | linux-uclibc* | \
  15257. + uclinux-uclibc* | uclinux-gnu* | kfreebsd*-gnu* | knetbsd*-gnu* | netbsd*-gnu* | \
  15258. + kopensolaris*-gnu* | \
  15259. + storm-chaos* | os2-emx* | rtmk-nova*)
  15260. os=-$maybe_os
  15261. basic_machine=`echo $1 | sed 's/^\(.*\)-\([^-]*-[^-]*\)$/\1/'`
  15262. ;;
  15263. @@ -145,10 +149,13 @@
  15264. -convergent* | -ncr* | -news | -32* | -3600* | -3100* | -hitachi* |\
  15265. -c[123]* | -convex* | -sun | -crds | -omron* | -dg | -ultra | -tti* | \
  15266. -harris | -dolphin | -highlevel | -gould | -cbm | -ns | -masscomp | \
  15267. - -apple | -axis)
  15268. + -apple | -axis | -knuth | -cray)
  15269. os=
  15270. basic_machine=$1
  15271. ;;
  15272. + -bluegene*)
  15273. + os=-cnk
  15274. + ;;
  15275. -sim | -cisco | -oki | -wec | -winbond)
  15276. os=
  15277. basic_machine=$1
  15278. @@ -170,6 +177,10 @@
  15279. -hiux*)
  15280. os=-hiuxwe2
  15281. ;;
  15282. + -sco6)
  15283. + os=-sco5v6
  15284. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15285. + ;;
  15286. -sco5)
  15287. os=-sco3.2v5
  15288. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15289. @@ -186,6 +197,10 @@
  15290. # Don't forget version if it is 3.2v4 or newer.
  15291. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15292. ;;
  15293. + -sco5v6*)
  15294. + # Don't forget version if it is 3.2v4 or newer.
  15295. + basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15296. + ;;
  15297. -sco*)
  15298. os=-sco3.2v2
  15299. basic_machine=`echo $1 | sed -e 's/86-.*/86-pc/'`
  15300. @@ -230,22 +245,28 @@
  15301. | alpha | alphaev[4-8] | alphaev56 | alphaev6[78] | alphapca5[67] \
  15302. | alpha64 | alpha64ev[4-8] | alpha64ev56 | alpha64ev6[78] | alpha64pca5[67] \
  15303. | am33_2.0 \
  15304. - | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr \
  15305. + | arc | arm | arm[bl]e | arme[lb] | armv[2345] | armv[345][lb] | avr | avr32 \
  15306. + | bfin \
  15307. | c4x | clipper \
  15308. | d10v | d30v | dlx | dsp16xx \
  15309. - | fr30 | frv \
  15310. + | fido | fr30 | frv \
  15311. | h8300 | h8500 | hppa | hppa1.[01] | hppa2.0 | hppa2.0[nw] | hppa64 \
  15312. | i370 | i860 | i960 | ia64 \
  15313. | ip2k | iq2000 \
  15314. - | m32r | m32rle | m68000 | m68k | m88k | mcore \
  15315. + | lm32 \
  15316. + | m32c | m32r | m32rle | m68000 | m68k | m88k \
  15317. + | maxq | mb | microblaze | mcore | mep | metag \
  15318. | mips | mipsbe | mipseb | mipsel | mipsle \
  15319. | mips16 \
  15320. | mips64 | mips64el \
  15321. - | mips64vr | mips64vrel \
  15322. + | mips64octeon | mips64octeonel \
  15323. | mips64orion | mips64orionel \
  15324. + | mips64r5900 | mips64r5900el \
  15325. + | mips64vr | mips64vrel \
  15326. | mips64vr4100 | mips64vr4100el \
  15327. | mips64vr4300 | mips64vr4300el \
  15328. | mips64vr5000 | mips64vr5000el \
  15329. + | mips64vr5900 | mips64vr5900el \
  15330. | mipsisa32 | mipsisa32el \
  15331. | mipsisa32r2 | mipsisa32r2el \
  15332. | mipsisa64 | mipsisa64el \
  15333. @@ -254,21 +275,26 @@
  15334. | mipsisa64sr71k | mipsisa64sr71kel \
  15335. | mipstx39 | mipstx39el \
  15336. | mn10200 | mn10300 \
  15337. + | moxie \
  15338. + | mt \
  15339. | msp430 \
  15340. + | nios | nios2 \
  15341. | ns16k | ns32k \
  15342. - | openrisc | or32 \
  15343. + | or32 \
  15344. | pdp10 | pdp11 | pj | pjl \
  15345. | powerpc | powerpc64 | powerpc64le | powerpcle | ppcbe \
  15346. | pyramid \
  15347. - | sh | sh[1234] | sh[23]e | sh[34]eb | shbe | shle | sh[1234]le | sh3ele \
  15348. + | score \
  15349. + | sh | sh[1234] | sh[24]a | sh[24]aeb | sh[23]e | sh[34]eb | sheb | shbe | shle | sh[1234]le | sh3ele \
  15350. | sh64 | sh64le \
  15351. - | sparc | sparc64 | sparc86x | sparclet | sparclite | sparcv8 | sparcv9 | sparcv9b \
  15352. - | strongarm \
  15353. + | sparc | sparc64 | sparc64b | sparc64v | sparc86x | sparclet | sparclite \
  15354. + | sparcv8 | sparcv9 | sparcv9b | sparcv9v \
  15355. + | spu | strongarm \
  15356. | tahoe | thumb | tic4x | tic80 | tron \
  15357. | v850 | v850e \
  15358. | we32k \
  15359. - | x86 | xscale | xstormy16 | xtensa \
  15360. - | z8k)
  15361. + | x86 | xc16x | xscale | xscalee[bl] | xstormy16 | xtensa \
  15362. + | z8k | z80)
  15363. basic_machine=$basic_machine-unknown
  15364. ;;
  15365. m6811 | m68hc11 | m6812 | m68hc12)
  15366. @@ -278,6 +304,9 @@
  15367. ;;
  15368. m88110 | m680[12346]0 | m683?2 | m68360 | m5200 | v70 | w65 | z8k)
  15369. ;;
  15370. + ms1)
  15371. + basic_machine=mt-unknown
  15372. + ;;
  15373. # We use `pc' rather than `unknown'
  15374. # because (1) that's what they normally are, and
  15375. @@ -297,28 +326,32 @@
  15376. | alpha64-* | alpha64ev[4-8]-* | alpha64ev56-* | alpha64ev6[78]-* \
  15377. | alphapca5[67]-* | alpha64pca5[67]-* | arc-* \
  15378. | arm-* | armbe-* | armle-* | armeb-* | armv*-* \
  15379. - | avr-* \
  15380. - | bs2000-* \
  15381. + | avr-* | avr32-* \
  15382. + | bfin-* | bs2000-* \
  15383. | c[123]* | c30-* | [cjt]90-* | c4x-* | c54x-* | c55x-* | c6x-* \
  15384. - | clipper-* | cydra-* \
  15385. + | clipper-* | craynv-* | cydra-* \
  15386. | d10v-* | d30v-* | dlx-* \
  15387. | elxsi-* \
  15388. - | f30[01]-* | f700-* | fr30-* | frv-* | fx80-* \
  15389. + | f30[01]-* | f700-* | fido-* | fr30-* | frv-* | fx80-* \
  15390. | h8300-* | h8500-* \
  15391. | hppa-* | hppa1.[01]-* | hppa2.0-* | hppa2.0[nw]-* | hppa64-* \
  15392. | i*86-* | i860-* | i960-* | ia64-* \
  15393. | ip2k-* | iq2000-* \
  15394. - | m32r-* | m32rle-* \
  15395. + | lm32-* \
  15396. + | m32c-* | m32r-* | m32rle-* \
  15397. | m68000-* | m680[012346]0-* | m68360-* | m683?2-* | m68k-* \
  15398. - | m88110-* | m88k-* | mcore-* \
  15399. + | m88110-* | m88k-* | maxq-* | mcore-* | metag-* \
  15400. | mips-* | mipsbe-* | mipseb-* | mipsel-* | mipsle-* \
  15401. | mips16-* \
  15402. | mips64-* | mips64el-* \
  15403. - | mips64vr-* | mips64vrel-* \
  15404. + | mips64octeon-* | mips64octeonel-* \
  15405. | mips64orion-* | mips64orionel-* \
  15406. + | mips64r5900-* | mips64r5900el-* \
  15407. + | mips64vr-* | mips64vrel-* \
  15408. | mips64vr4100-* | mips64vr4100el-* \
  15409. | mips64vr4300-* | mips64vr4300el-* \
  15410. | mips64vr5000-* | mips64vr5000el-* \
  15411. + | mips64vr5900-* | mips64vr5900el-* \
  15412. | mipsisa32-* | mipsisa32el-* \
  15413. | mipsisa32r2-* | mipsisa32r2el-* \
  15414. | mipsisa64-* | mipsisa64el-* \
  15415. @@ -326,26 +359,34 @@
  15416. | mipsisa64sb1-* | mipsisa64sb1el-* \
  15417. | mipsisa64sr71k-* | mipsisa64sr71kel-* \
  15418. | mipstx39-* | mipstx39el-* \
  15419. + | mmix-* \
  15420. + | mt-* \
  15421. | msp430-* \
  15422. - | none-* | np1-* | nv1-* | ns16k-* | ns32k-* \
  15423. + | nios-* | nios2-* \
  15424. + | none-* | np1-* | ns16k-* | ns32k-* \
  15425. | orion-* \
  15426. | pdp10-* | pdp11-* | pj-* | pjl-* | pn-* | power-* \
  15427. | powerpc-* | powerpc64-* | powerpc64le-* | powerpcle-* | ppcbe-* \
  15428. | pyramid-* \
  15429. | romp-* | rs6000-* \
  15430. - | sh-* | sh[1234]-* | sh[23]e-* | sh[34]eb-* | shbe-* \
  15431. + | sh-* | sh[1234]-* | sh[24]a-* | sh[24]aeb-* | sh[23]e-* | sh[34]eb-* | sheb-* | shbe-* \
  15432. | shle-* | sh[1234]le-* | sh3ele-* | sh64-* | sh64le-* \
  15433. - | sparc-* | sparc64-* | sparc86x-* | sparclet-* | sparclite-* \
  15434. - | sparcv8-* | sparcv9-* | sparcv9b-* | strongarm-* | sv1-* | sx?-* \
  15435. + | sparc-* | sparc64-* | sparc64b-* | sparc64v-* | sparc86x-* | sparclet-* \
  15436. + | sparclite-* \
  15437. + | sparcv8-* | sparcv9-* | sparcv9b-* | sparcv9v-* | strongarm-* | sv1-* | sx?-* \
  15438. | tahoe-* | thumb-* \
  15439. - | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* \
  15440. + | tic30-* | tic4x-* | tic54x-* | tic55x-* | tic6x-* | tic80-* | tile-* \
  15441. | tron-* \
  15442. | v850-* | v850e-* | vax-* \
  15443. | we32k-* \
  15444. - | x86-* | x86_64-* | xps100-* | xscale-* | xstormy16-* \
  15445. - | xtensa-* \
  15446. + | x86-* | x86_64-* | xc16x-* | xps100-* | xscale-* | xscalee[bl]-* \
  15447. + | xstormy16-* | xtensa*-* \
  15448. | ymp-* \
  15449. - | z8k-*)
  15450. + | z8k-* | z80-*)
  15451. + ;;
  15452. + # Recognize the basic CPU types without company name, with glob match.
  15453. + xtensa*)
  15454. + basic_machine=$basic_machine-unknown
  15455. ;;
  15456. # Recognize the various machine names and aliases which stand
  15457. # for a CPU type and a company and sometimes even an OS.
  15458. @@ -409,6 +450,10 @@
  15459. basic_machine=m68k-apollo
  15460. os=-bsd
  15461. ;;
  15462. + aros)
  15463. + basic_machine=i386-pc
  15464. + os=-aros
  15465. + ;;
  15466. aux)
  15467. basic_machine=m68k-apple
  15468. os=-aux
  15469. @@ -417,10 +462,26 @@
  15470. basic_machine=ns32k-sequent
  15471. os=-dynix
  15472. ;;
  15473. + blackfin)
  15474. + basic_machine=bfin-unknown
  15475. + os=-linux
  15476. + ;;
  15477. + blackfin-*)
  15478. + basic_machine=bfin-`echo $basic_machine | sed 's/^[^-]*-//'`
  15479. + os=-linux
  15480. + ;;
  15481. + bluegene*)
  15482. + basic_machine=powerpc-ibm
  15483. + os=-cnk
  15484. + ;;
  15485. c90)
  15486. basic_machine=c90-cray
  15487. os=-unicos
  15488. ;;
  15489. + cegcc)
  15490. + basic_machine=arm-unknown
  15491. + os=-cegcc
  15492. + ;;
  15493. convex-c1)
  15494. basic_machine=c1-convex
  15495. os=-bsd
  15496. @@ -445,13 +506,20 @@
  15497. basic_machine=j90-cray
  15498. os=-unicos
  15499. ;;
  15500. - cr16c)
  15501. - basic_machine=cr16c-unknown
  15502. + craynv)
  15503. + basic_machine=craynv-cray
  15504. + os=-unicosmp
  15505. + ;;
  15506. + cr16)
  15507. + basic_machine=cr16-unknown
  15508. os=-elf
  15509. ;;
  15510. crds | unos)
  15511. basic_machine=m68k-crds
  15512. ;;
  15513. + crisv32 | crisv32-* | etraxfs*)
  15514. + basic_machine=crisv32-axis
  15515. + ;;
  15516. cris | cris-* | etrax*)
  15517. basic_machine=cris-axis
  15518. ;;
  15519. @@ -481,6 +549,14 @@
  15520. basic_machine=m88k-motorola
  15521. os=-sysv3
  15522. ;;
  15523. + dicos)
  15524. + basic_machine=i686-pc
  15525. + os=-dicos
  15526. + ;;
  15527. + djgpp)
  15528. + basic_machine=i586-pc
  15529. + os=-msdosdjgpp
  15530. + ;;
  15531. dpx20 | dpx20-*)
  15532. basic_machine=rs6000-bull
  15533. os=-bosx
  15534. @@ -631,6 +707,14 @@
  15535. basic_machine=m68k-isi
  15536. os=-sysv
  15537. ;;
  15538. + m68knommu)
  15539. + basic_machine=m68k-unknown
  15540. + os=-linux
  15541. + ;;
  15542. + m68knommu-*)
  15543. + basic_machine=m68k-`echo $basic_machine | sed 's/^[^-]*-//'`
  15544. + os=-linux
  15545. + ;;
  15546. m88k-omron*)
  15547. basic_machine=m88k-omron
  15548. ;;
  15549. @@ -646,6 +730,10 @@
  15550. basic_machine=i386-pc
  15551. os=-mingw32
  15552. ;;
  15553. + mingw32ce)
  15554. + basic_machine=arm-unknown
  15555. + os=-mingw32ce
  15556. + ;;
  15557. miniframe)
  15558. basic_machine=m68000-convergent
  15559. ;;
  15560. @@ -659,10 +747,6 @@
  15561. mips3*)
  15562. basic_machine=`echo $basic_machine | sed -e 's/mips3/mips64/'`-unknown
  15563. ;;
  15564. - mmix*)
  15565. - basic_machine=mmix-knuth
  15566. - os=-mmixware
  15567. - ;;
  15568. monitor)
  15569. basic_machine=m68k-rom68k
  15570. os=-coff
  15571. @@ -675,6 +759,9 @@
  15572. basic_machine=i386-pc
  15573. os=-msdos
  15574. ;;
  15575. + ms1-*)
  15576. + basic_machine=`echo $basic_machine | sed -e 's/ms1-/mt-/'`
  15577. + ;;
  15578. mvs)
  15579. basic_machine=i370-ibm
  15580. os=-mvs
  15581. @@ -743,10 +830,6 @@
  15582. np1)
  15583. basic_machine=np1-gould
  15584. ;;
  15585. - nv1)
  15586. - basic_machine=nv1-cray
  15587. - os=-unicosmp
  15588. - ;;
  15589. nsr-tandem)
  15590. basic_machine=nsr-tandem
  15591. ;;
  15592. @@ -754,9 +837,8 @@
  15593. basic_machine=hppa1.1-oki
  15594. os=-proelf
  15595. ;;
  15596. - or32 | or32-*)
  15597. + openrisc | openrisc-*)
  15598. basic_machine=or32-unknown
  15599. - os=-coff
  15600. ;;
  15601. os400)
  15602. basic_machine=powerpc-ibm
  15603. @@ -778,6 +860,14 @@
  15604. basic_machine=i860-intel
  15605. os=-osf
  15606. ;;
  15607. + parisc)
  15608. + basic_machine=hppa-unknown
  15609. + os=-linux
  15610. + ;;
  15611. + parisc-*)
  15612. + basic_machine=hppa-`echo $basic_machine | sed 's/^[^-]*-//'`
  15613. + os=-linux
  15614. + ;;
  15615. pbd)
  15616. basic_machine=sparc-tti
  15617. ;;
  15618. @@ -787,6 +877,12 @@
  15619. pc532 | pc532-*)
  15620. basic_machine=ns32k-pc532
  15621. ;;
  15622. + pc98)
  15623. + basic_machine=i386-pc
  15624. + ;;
  15625. + pc98-*)
  15626. + basic_machine=i386-`echo $basic_machine | sed 's/^[^-]*-//'`
  15627. + ;;
  15628. pentium | p5 | k5 | k6 | nexgen | viac3)
  15629. basic_machine=i586-pc
  15630. ;;
  15631. @@ -843,6 +939,10 @@
  15632. basic_machine=i586-unknown
  15633. os=-pw32
  15634. ;;
  15635. + rdos)
  15636. + basic_machine=i386-pc
  15637. + os=-rdos
  15638. + ;;
  15639. rom68k)
  15640. basic_machine=m68k-rom68k
  15641. os=-coff
  15642. @@ -869,6 +969,10 @@
  15643. sb1el)
  15644. basic_machine=mipsisa64sb1el-unknown
  15645. ;;
  15646. + sde)
  15647. + basic_machine=mipsisa32-sde
  15648. + os=-elf
  15649. + ;;
  15650. sei)
  15651. basic_machine=mips-sei
  15652. os=-seiux
  15653. @@ -880,6 +984,9 @@
  15654. basic_machine=sh-hitachi
  15655. os=-hms
  15656. ;;
  15657. + sh5el)
  15658. + basic_machine=sh5le-unknown
  15659. + ;;
  15660. sh64)
  15661. basic_machine=sh64-unknown
  15662. ;;
  15663. @@ -969,6 +1076,10 @@
  15664. basic_machine=tic6x-unknown
  15665. os=-coff
  15666. ;;
  15667. + tile*)
  15668. + basic_machine=tile-unknown
  15669. + os=-linux-gnu
  15670. + ;;
  15671. tx39)
  15672. basic_machine=mipstx39-unknown
  15673. ;;
  15674. @@ -1029,6 +1140,10 @@
  15675. basic_machine=hppa1.1-winbond
  15676. os=-proelf
  15677. ;;
  15678. + xbox)
  15679. + basic_machine=i686-pc
  15680. + os=-mingw32
  15681. + ;;
  15682. xps | xps100)
  15683. basic_machine=xps100-honeywell
  15684. ;;
  15685. @@ -1040,6 +1155,10 @@
  15686. basic_machine=z8k-unknown
  15687. os=-sim
  15688. ;;
  15689. + z80-*-coff)
  15690. + basic_machine=z80-unknown
  15691. + os=-sim
  15692. + ;;
  15693. none)
  15694. basic_machine=none-none
  15695. os=-none
  15696. @@ -1059,6 +1178,9 @@
  15697. romp)
  15698. basic_machine=romp-ibm
  15699. ;;
  15700. + mmix)
  15701. + basic_machine=mmix-knuth
  15702. + ;;
  15703. rs6000)
  15704. basic_machine=rs6000-ibm
  15705. ;;
  15706. @@ -1075,13 +1197,10 @@
  15707. we32k)
  15708. basic_machine=we32k-att
  15709. ;;
  15710. - sh3 | sh4 | sh[34]eb | sh[1234]le | sh[23]ele)
  15711. + sh[1234] | sh[24]a | sh[24]aeb | sh[34]eb | sh[1234]le | sh[23]ele)
  15712. basic_machine=sh-unknown
  15713. ;;
  15714. - sh64)
  15715. - basic_machine=sh64-unknown
  15716. - ;;
  15717. - sparc | sparcv8 | sparcv9 | sparcv9b)
  15718. + sparc | sparcv8 | sparcv9 | sparcv9b | sparcv9v)
  15719. basic_machine=sparc-sun
  15720. ;;
  15721. cydra)
  15722. @@ -1148,26 +1267,30 @@
  15723. # Each alternative MUST END IN A *, to match a version number.
  15724. # -sysv* is not here because it comes later, after sysvr4.
  15725. -gnu* | -bsd* | -mach* | -minix* | -genix* | -ultrix* | -irix* \
  15726. - | -*vms* | -sco* | -esix* | -isc* | -aix* | -sunos | -sunos[34]*\
  15727. + | -*vms* | -sco* | -esix* | -isc* | -aix* | -cnk* | -sunos | -sunos[34]*\
  15728. | -hpux* | -unos* | -osf* | -luna* | -dgux* | -solaris* | -sym* \
  15729. + | -kopensolaris* \
  15730. | -amigaos* | -amigados* | -msdos* | -newsos* | -unicos* | -aof* \
  15731. - | -aos* \
  15732. + | -aos* | -aros* \
  15733. | -nindy* | -vxsim* | -vxworks* | -ebmon* | -hms* | -mvs* \
  15734. | -clix* | -riscos* | -uniplus* | -iris* | -rtu* | -xenix* \
  15735. - | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* | -openbsd* \
  15736. + | -hiux* | -386bsd* | -knetbsd* | -mirbsd* | -netbsd* \
  15737. + | -openbsd* | -solidbsd* \
  15738. | -ekkobsd* | -kfreebsd* | -freebsd* | -riscix* | -lynxos* \
  15739. | -bosx* | -nextstep* | -cxux* | -aout* | -elf* | -oabi* \
  15740. | -ptx* | -coff* | -ecoff* | -winnt* | -domain* | -vsta* \
  15741. | -udi* | -eabi* | -lites* | -ieee* | -go32* | -aux* \
  15742. - | -chorusos* | -chorusrdb* \
  15743. + | -chorusos* | -chorusrdb* | -cegcc* \
  15744. | -cygwin* | -pe* | -psos* | -moss* | -proelf* | -rtems* \
  15745. - | -mingw32* | -linux-gnu* | -linux-uclibc* | -uxpv* | -beos* | -mpeix* | -udk* \
  15746. + | -mingw32* | -linux-gnu* | -linux-newlib* | -linux-uclibc* \
  15747. + | -uxpv* | -beos* | -mpeix* | -udk* \
  15748. | -interix* | -uwin* | -mks* | -rhapsody* | -darwin* | -opened* \
  15749. | -openstep* | -oskit* | -conix* | -pw32* | -nonstopux* \
  15750. | -storm-chaos* | -tops10* | -tenex* | -tops20* | -its* \
  15751. | -os2* | -vos* | -palmos* | -uclinux* | -nucleus* \
  15752. | -morphos* | -superux* | -rtmk* | -rtmk-nova* | -windiss* \
  15753. - | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly*)
  15754. + | -powermax* | -dnix* | -nx6 | -nx7 | -sei* | -dragonfly* \
  15755. + | -skyos* | -haiku* | -rdos* | -toppers* | -drops*)
  15756. # Remember, each alternative MUST END IN *, to match a version number.
  15757. ;;
  15758. -qnx*)
  15759. @@ -1185,7 +1308,7 @@
  15760. os=`echo $os | sed -e 's|nto|nto-qnx|'`
  15761. ;;
  15762. -sim | -es1800* | -hms* | -xray | -os68k* | -none* | -v88r* \
  15763. - | -windows* | -osx | -abug | -netware* | -os9* | -beos* \
  15764. + | -windows* | -osx | -abug | -netware* | -os9* | -beos* | -haiku* \
  15765. | -macos* | -mpw* | -magic* | -mmixware* | -mon960* | -lnews*)
  15766. ;;
  15767. -mac*)
  15768. @@ -1294,6 +1417,12 @@
  15769. -kaos*)
  15770. os=-kaos
  15771. ;;
  15772. + -zvmoe)
  15773. + os=-zvmoe
  15774. + ;;
  15775. + -dicos*)
  15776. + os=-dicos
  15777. + ;;
  15778. -none)
  15779. ;;
  15780. *)
  15781. @@ -1316,6 +1445,12 @@
  15782. # system, and we'll never get to this point.
  15783. case $basic_machine in
  15784. + score-*)
  15785. + os=-elf
  15786. + ;;
  15787. + spu-*)
  15788. + os=-elf
  15789. + ;;
  15790. *-acorn)
  15791. os=-riscix1.2
  15792. ;;
  15793. @@ -1325,9 +1460,9 @@
  15794. arm*-semi)
  15795. os=-aout
  15796. ;;
  15797. - c4x-* | tic4x-*)
  15798. - os=-coff
  15799. - ;;
  15800. + c4x-* | tic4x-*)
  15801. + os=-coff
  15802. + ;;
  15803. # This must come before the *-dec entry.
  15804. pdp10-*)
  15805. os=-tops20
  15806. @@ -1353,6 +1488,9 @@
  15807. m68*-cisco)
  15808. os=-aout
  15809. ;;
  15810. + mep-*)
  15811. + os=-elf
  15812. + ;;
  15813. mips*-cisco)
  15814. os=-elf
  15815. ;;
  15816. @@ -1371,9 +1509,15 @@
  15817. *-be)
  15818. os=-beos
  15819. ;;
  15820. + *-haiku)
  15821. + os=-haiku
  15822. + ;;
  15823. *-ibm)
  15824. os=-aix
  15825. ;;
  15826. + *-knuth)
  15827. + os=-mmixware
  15828. + ;;
  15829. *-wec)
  15830. os=-proelf
  15831. ;;
  15832. @@ -1476,7 +1620,7 @@
  15833. -sunos*)
  15834. vendor=sun
  15835. ;;
  15836. - -aix*)
  15837. + -cnk*|-aix*)
  15838. vendor=ibm
  15839. ;;
  15840. -beos*)
  15841. @@ -1539,7 +1683,7 @@
  15842. esac
  15843. echo $basic_machine$os
  15844. -exit 0
  15845. +exit
  15846. # Local variables:
  15847. # eval: (add-hook 'write-file-hooks 'time-stamp)
  15848. diff -Nur chillispot-1.1.0.orig/configure chillispot-1.1.0/configure
  15849. --- chillispot-1.1.0.orig/configure 2006-09-24 21:34:59.000000000 +0200
  15850. +++ chillispot-1.1.0/configure 2011-02-21 17:56:52.424803249 +0100
  15851. @@ -1,83 +1,418 @@
  15852. #! /bin/sh
  15853. # Guess values for system-dependent variables and create Makefiles.
  15854. -# Generated by GNU Autoconf 2.59 for chillispot 1.1.0.
  15855. +# Generated by GNU Autoconf 2.65 for chillispot 1.1.0.
  15856. #
  15857. # Report bugs to <bugs@chillispot.org>.
  15858. #
  15859. -# Copyright (C) 2003 Free Software Foundation, Inc.
  15860. +#
  15861. +# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
  15862. +# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  15863. +# Inc.
  15864. +#
  15865. +#
  15866. # This configure script is free software; the Free Software Foundation
  15867. # gives unlimited permission to copy, distribute and modify it.
  15868. -## --------------------- ##
  15869. -## M4sh Initialization. ##
  15870. -## --------------------- ##
  15871. +## -------------------- ##
  15872. +## M4sh Initialization. ##
  15873. +## -------------------- ##
  15874. -# Be Bourne compatible
  15875. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  15876. +# Be more Bourne compatible
  15877. +DUALCASE=1; export DUALCASE # for MKS sh
  15878. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  15879. emulate sh
  15880. NULLCMD=:
  15881. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  15882. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  15883. # is contrary to our usage. Disable this feature.
  15884. alias -g '${1+"$@"}'='"$@"'
  15885. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  15886. - set -o posix
  15887. + setopt NO_GLOB_SUBST
  15888. +else
  15889. + case `(set -o) 2>/dev/null` in #(
  15890. + *posix*) :
  15891. + set -o posix ;; #(
  15892. + *) :
  15893. + ;;
  15894. +esac
  15895. fi
  15896. -DUALCASE=1; export DUALCASE # for MKS sh
  15897. -# Support unset when possible.
  15898. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  15899. - as_unset=unset
  15900. -else
  15901. - as_unset=false
  15902. +
  15903. +as_nl='
  15904. +'
  15905. +export as_nl
  15906. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  15907. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  15908. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  15909. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  15910. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  15911. +# but without wasting forks for bash or zsh.
  15912. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  15913. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  15914. + as_echo='print -r --'
  15915. + as_echo_n='print -rn --'
  15916. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  15917. + as_echo='printf %s\n'
  15918. + as_echo_n='printf %s'
  15919. +else
  15920. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  15921. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  15922. + as_echo_n='/usr/ucb/echo -n'
  15923. + else
  15924. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  15925. + as_echo_n_body='eval
  15926. + arg=$1;
  15927. + case $arg in #(
  15928. + *"$as_nl"*)
  15929. + expr "X$arg" : "X\\(.*\\)$as_nl";
  15930. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  15931. + esac;
  15932. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  15933. + '
  15934. + export as_echo_n_body
  15935. + as_echo_n='sh -c $as_echo_n_body as_echo'
  15936. + fi
  15937. + export as_echo_body
  15938. + as_echo='sh -c $as_echo_body as_echo'
  15939. fi
  15940. +# The user is always right.
  15941. +if test "${PATH_SEPARATOR+set}" != set; then
  15942. + PATH_SEPARATOR=:
  15943. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  15944. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  15945. + PATH_SEPARATOR=';'
  15946. + }
  15947. +fi
  15948. +
  15949. +
  15950. +# IFS
  15951. +# We need space, tab and new line, in precisely that order. Quoting is
  15952. +# there to prevent editors from complaining about space-tab.
  15953. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  15954. +# splitting by setting IFS to empty value.)
  15955. +IFS=" "" $as_nl"
  15956. +
  15957. +# Find who we are. Look in the path if we contain no directory separator.
  15958. +case $0 in #((
  15959. + *[\\/]* ) as_myself=$0 ;;
  15960. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  15961. +for as_dir in $PATH
  15962. +do
  15963. + IFS=$as_save_IFS
  15964. + test -z "$as_dir" && as_dir=.
  15965. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  15966. + done
  15967. +IFS=$as_save_IFS
  15968. -# Work around bugs in pre-3.0 UWIN ksh.
  15969. -$as_unset ENV MAIL MAILPATH
  15970. + ;;
  15971. +esac
  15972. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  15973. +# in which case we are not to be found in the path.
  15974. +if test "x$as_myself" = x; then
  15975. + as_myself=$0
  15976. +fi
  15977. +if test ! -f "$as_myself"; then
  15978. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  15979. + exit 1
  15980. +fi
  15981. +
  15982. +# Unset variables that we do not need and which cause bugs (e.g. in
  15983. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  15984. +# suppresses any "Segmentation fault" message there. '((' could
  15985. +# trigger a bug in pdksh 5.2.14.
  15986. +for as_var in BASH_ENV ENV MAIL MAILPATH
  15987. +do eval test x\${$as_var+set} = xset \
  15988. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  15989. +done
  15990. PS1='$ '
  15991. PS2='> '
  15992. PS4='+ '
  15993. # NLS nuisances.
  15994. -for as_var in \
  15995. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  15996. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  15997. - LC_TELEPHONE LC_TIME
  15998. +LC_ALL=C
  15999. +export LC_ALL
  16000. +LANGUAGE=C
  16001. +export LANGUAGE
  16002. +
  16003. +# CDPATH.
  16004. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16005. +
  16006. +if test "x$CONFIG_SHELL" = x; then
  16007. + as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  16008. + emulate sh
  16009. + NULLCMD=:
  16010. + # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  16011. + # is contrary to our usage. Disable this feature.
  16012. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  16013. + setopt NO_GLOB_SUBST
  16014. +else
  16015. + case \`(set -o) 2>/dev/null\` in #(
  16016. + *posix*) :
  16017. + set -o posix ;; #(
  16018. + *) :
  16019. + ;;
  16020. +esac
  16021. +fi
  16022. +"
  16023. + as_required="as_fn_return () { (exit \$1); }
  16024. +as_fn_success () { as_fn_return 0; }
  16025. +as_fn_failure () { as_fn_return 1; }
  16026. +as_fn_ret_success () { return 0; }
  16027. +as_fn_ret_failure () { return 1; }
  16028. +
  16029. +exitcode=0
  16030. +as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  16031. +as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  16032. +as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  16033. +as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  16034. +if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  16035. +
  16036. +else
  16037. + exitcode=1; echo positional parameters were not saved.
  16038. +fi
  16039. +test x\$exitcode = x0 || exit 1"
  16040. + as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  16041. + as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  16042. + eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  16043. + test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  16044. +test \$(( 1 + 1 )) = 2 || exit 1"
  16045. + if (eval "$as_required") 2>/dev/null; then :
  16046. + as_have_required=yes
  16047. +else
  16048. + as_have_required=no
  16049. +fi
  16050. + if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  16051. +
  16052. +else
  16053. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16054. +as_found=false
  16055. +for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16056. do
  16057. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  16058. - eval $as_var=C; export $as_var
  16059. - else
  16060. - $as_unset $as_var
  16061. - fi
  16062. + IFS=$as_save_IFS
  16063. + test -z "$as_dir" && as_dir=.
  16064. + as_found=:
  16065. + case $as_dir in #(
  16066. + /*)
  16067. + for as_base in sh bash ksh sh5; do
  16068. + # Try only shells that exist, to save several forks.
  16069. + as_shell=$as_dir/$as_base
  16070. + if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  16071. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  16072. + CONFIG_SHELL=$as_shell as_have_required=yes
  16073. + if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  16074. + break 2
  16075. +fi
  16076. +fi
  16077. + done;;
  16078. + esac
  16079. + as_found=false
  16080. done
  16081. +$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  16082. + { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  16083. + CONFIG_SHELL=$SHELL as_have_required=yes
  16084. +fi; }
  16085. +IFS=$as_save_IFS
  16086. +
  16087. +
  16088. + if test "x$CONFIG_SHELL" != x; then :
  16089. + # We cannot yet assume a decent shell, so we have to provide a
  16090. + # neutralization value for shells without unset; and this also
  16091. + # works around shells that cannot unset nonexistent variables.
  16092. + BASH_ENV=/dev/null
  16093. + ENV=/dev/null
  16094. + (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  16095. + export CONFIG_SHELL
  16096. + exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
  16097. +fi
  16098. +
  16099. + if test x$as_have_required = xno; then :
  16100. + $as_echo "$0: This script requires a shell more modern than all"
  16101. + $as_echo "$0: the shells that I found on your system."
  16102. + if test x${ZSH_VERSION+set} = xset ; then
  16103. + $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  16104. + $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  16105. + else
  16106. + $as_echo "$0: Please tell bug-autoconf@gnu.org and
  16107. +$0: bugs@chillispot.org about your system, including any
  16108. +$0: error possibly output before this message. Then install
  16109. +$0: a modern shell, or manually run the script under such a
  16110. +$0: shell if you do have one."
  16111. + fi
  16112. + exit 1
  16113. +fi
  16114. +fi
  16115. +fi
  16116. +SHELL=${CONFIG_SHELL-/bin/sh}
  16117. +export SHELL
  16118. +# Unset more variables known to interfere with behavior of common tools.
  16119. +CLICOLOR_FORCE= GREP_OPTIONS=
  16120. +unset CLICOLOR_FORCE GREP_OPTIONS
  16121. -# Required to use basename.
  16122. -if expr a : '\(a\)' >/dev/null 2>&1; then
  16123. +## --------------------- ##
  16124. +## M4sh Shell Functions. ##
  16125. +## --------------------- ##
  16126. +# as_fn_unset VAR
  16127. +# ---------------
  16128. +# Portably unset VAR.
  16129. +as_fn_unset ()
  16130. +{
  16131. + { eval $1=; unset $1;}
  16132. +}
  16133. +as_unset=as_fn_unset
  16134. +
  16135. +# as_fn_set_status STATUS
  16136. +# -----------------------
  16137. +# Set $? to STATUS, without forking.
  16138. +as_fn_set_status ()
  16139. +{
  16140. + return $1
  16141. +} # as_fn_set_status
  16142. +
  16143. +# as_fn_exit STATUS
  16144. +# -----------------
  16145. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  16146. +as_fn_exit ()
  16147. +{
  16148. + set +e
  16149. + as_fn_set_status $1
  16150. + exit $1
  16151. +} # as_fn_exit
  16152. +
  16153. +# as_fn_mkdir_p
  16154. +# -------------
  16155. +# Create "$as_dir" as a directory, including parents if necessary.
  16156. +as_fn_mkdir_p ()
  16157. +{
  16158. +
  16159. + case $as_dir in #(
  16160. + -*) as_dir=./$as_dir;;
  16161. + esac
  16162. + test -d "$as_dir" || eval $as_mkdir_p || {
  16163. + as_dirs=
  16164. + while :; do
  16165. + case $as_dir in #(
  16166. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  16167. + *) as_qdir=$as_dir;;
  16168. + esac
  16169. + as_dirs="'$as_qdir' $as_dirs"
  16170. + as_dir=`$as_dirname -- "$as_dir" ||
  16171. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16172. + X"$as_dir" : 'X\(//\)[^/]' \| \
  16173. + X"$as_dir" : 'X\(//\)$' \| \
  16174. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  16175. +$as_echo X"$as_dir" |
  16176. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16177. + s//\1/
  16178. + q
  16179. + }
  16180. + /^X\(\/\/\)[^/].*/{
  16181. + s//\1/
  16182. + q
  16183. + }
  16184. + /^X\(\/\/\)$/{
  16185. + s//\1/
  16186. + q
  16187. + }
  16188. + /^X\(\/\).*/{
  16189. + s//\1/
  16190. + q
  16191. + }
  16192. + s/.*/./; q'`
  16193. + test -d "$as_dir" && break
  16194. + done
  16195. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  16196. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  16197. +
  16198. +
  16199. +} # as_fn_mkdir_p
  16200. +# as_fn_append VAR VALUE
  16201. +# ----------------------
  16202. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  16203. +# advantage of any shell optimizations that allow amortized linear growth over
  16204. +# repeated appends, instead of the typical quadratic growth present in naive
  16205. +# implementations.
  16206. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  16207. + eval 'as_fn_append ()
  16208. + {
  16209. + eval $1+=\$2
  16210. + }'
  16211. +else
  16212. + as_fn_append ()
  16213. + {
  16214. + eval $1=\$$1\$2
  16215. + }
  16216. +fi # as_fn_append
  16217. +
  16218. +# as_fn_arith ARG...
  16219. +# ------------------
  16220. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  16221. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  16222. +# must be portable across $(()) and expr.
  16223. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  16224. + eval 'as_fn_arith ()
  16225. + {
  16226. + as_val=$(( $* ))
  16227. + }'
  16228. +else
  16229. + as_fn_arith ()
  16230. + {
  16231. + as_val=`expr "$@" || test $? -eq 1`
  16232. + }
  16233. +fi # as_fn_arith
  16234. +
  16235. +
  16236. +# as_fn_error ERROR [LINENO LOG_FD]
  16237. +# ---------------------------------
  16238. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  16239. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  16240. +# script with status $?, using 1 if that was 0.
  16241. +as_fn_error ()
  16242. +{
  16243. + as_status=$?; test $as_status -eq 0 && as_status=1
  16244. + if test "$3"; then
  16245. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  16246. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  16247. + fi
  16248. + $as_echo "$as_me: error: $1" >&2
  16249. + as_fn_exit $as_status
  16250. +} # as_fn_error
  16251. +
  16252. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  16253. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  16254. as_expr=expr
  16255. else
  16256. as_expr=false
  16257. fi
  16258. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  16259. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  16260. as_basename=basename
  16261. else
  16262. as_basename=false
  16263. fi
  16264. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  16265. + as_dirname=dirname
  16266. +else
  16267. + as_dirname=false
  16268. +fi
  16269. -# Name of the executable.
  16270. -as_me=`$as_basename "$0" ||
  16271. +as_me=`$as_basename -- "$0" ||
  16272. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  16273. X"$0" : 'X\(//\)$' \| \
  16274. - X"$0" : 'X\(/\)$' \| \
  16275. - . : '\(.\)' 2>/dev/null ||
  16276. -echo X/"$0" |
  16277. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  16278. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  16279. - /^X\/\(\/\).*/{ s//\1/; q; }
  16280. - s/.*/./; q'`
  16281. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  16282. +$as_echo X/"$0" |
  16283. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  16284. + s//\1/
  16285. + q
  16286. + }
  16287. + /^X\/\(\/\/\)$/{
  16288. + s//\1/
  16289. + q
  16290. + }
  16291. + /^X\/\(\/\).*/{
  16292. + s//\1/
  16293. + q
  16294. + }
  16295. + s/.*/./; q'`
  16296. -
  16297. -# PATH needs CR, and LINENO needs CR and PATH.
  16298. # Avoid depending upon Character Ranges.
  16299. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  16300. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  16301. @@ -85,146 +420,107 @@
  16302. as_cr_digits='0123456789'
  16303. as_cr_alnum=$as_cr_Letters$as_cr_digits
  16304. -# The user is always right.
  16305. -if test "${PATH_SEPARATOR+set}" != set; then
  16306. - echo "#! /bin/sh" >conf$$.sh
  16307. - echo "exit 0" >>conf$$.sh
  16308. - chmod +x conf$$.sh
  16309. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  16310. - PATH_SEPARATOR=';'
  16311. - else
  16312. - PATH_SEPARATOR=:
  16313. - fi
  16314. - rm -f conf$$.sh
  16315. -fi
  16316. -
  16317. -
  16318. - as_lineno_1=$LINENO
  16319. - as_lineno_2=$LINENO
  16320. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  16321. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16322. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  16323. - # Find who we are. Look in the path if we contain no path at all
  16324. - # relative or not.
  16325. - case $0 in
  16326. - *[\\/]* ) as_myself=$0 ;;
  16327. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16328. -for as_dir in $PATH
  16329. -do
  16330. - IFS=$as_save_IFS
  16331. - test -z "$as_dir" && as_dir=.
  16332. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  16333. -done
  16334. -
  16335. - ;;
  16336. - esac
  16337. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  16338. - # in which case we are not to be found in the path.
  16339. - if test "x$as_myself" = x; then
  16340. - as_myself=$0
  16341. - fi
  16342. - if test ! -f "$as_myself"; then
  16343. - { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
  16344. - { (exit 1); exit 1; }; }
  16345. - fi
  16346. - case $CONFIG_SHELL in
  16347. - '')
  16348. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  16349. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  16350. -do
  16351. - IFS=$as_save_IFS
  16352. - test -z "$as_dir" && as_dir=.
  16353. - for as_base in sh bash ksh sh5; do
  16354. - case $as_dir in
  16355. - /*)
  16356. - if ("$as_dir/$as_base" -c '
  16357. - as_lineno_1=$LINENO
  16358. - as_lineno_2=$LINENO
  16359. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  16360. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  16361. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  16362. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  16363. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  16364. - CONFIG_SHELL=$as_dir/$as_base
  16365. - export CONFIG_SHELL
  16366. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  16367. - fi;;
  16368. - esac
  16369. - done
  16370. -done
  16371. -;;
  16372. - esac
  16373. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  16374. - # uniformly replaced by the line number. The first 'sed' inserts a
  16375. - # line-number line before each line; the second 'sed' does the real
  16376. - # work. The second script uses 'N' to pair each line-number line
  16377. - # with the numbered line, and appends trailing '-' during
  16378. - # substitution so that $LINENO is not a special case at line end.
  16379. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  16380. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  16381. - sed '=' <$as_myself |
  16382. + as_lineno_1=$LINENO as_lineno_1a=$LINENO
  16383. + as_lineno_2=$LINENO as_lineno_2a=$LINENO
  16384. + eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  16385. + test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  16386. + # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  16387. + sed -n '
  16388. + p
  16389. + /[$]LINENO/=
  16390. + ' <$as_myself |
  16391. sed '
  16392. + s/[$]LINENO.*/&-/
  16393. + t lineno
  16394. + b
  16395. + :lineno
  16396. N
  16397. - s,$,-,
  16398. - : loop
  16399. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  16400. + :loop
  16401. + s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  16402. t loop
  16403. - s,-$,,
  16404. - s,^['$as_cr_digits']*\n,,
  16405. + s/-\n.*//
  16406. ' >$as_me.lineno &&
  16407. - chmod +x $as_me.lineno ||
  16408. - { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
  16409. - { (exit 1); exit 1; }; }
  16410. + chmod +x "$as_me.lineno" ||
  16411. + { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  16412. # Don't try to exec as it changes $[0], causing all sort of problems
  16413. # (the dirname of $[0] is not the place where we might find the
  16414. - # original and so on. Autoconf is especially sensible to this).
  16415. - . ./$as_me.lineno
  16416. + # original and so on. Autoconf is especially sensitive to this).
  16417. + . "./$as_me.lineno"
  16418. # Exit status is that of the last command.
  16419. exit
  16420. }
  16421. -
  16422. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  16423. - *c*,-n*) ECHO_N= ECHO_C='
  16424. -' ECHO_T=' ' ;;
  16425. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  16426. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  16427. +ECHO_C= ECHO_N= ECHO_T=
  16428. +case `echo -n x` in #(((((
  16429. +-n*)
  16430. + case `echo 'xy\c'` in
  16431. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  16432. + xy) ECHO_C='\c';;
  16433. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  16434. + ECHO_T=' ';;
  16435. + esac;;
  16436. +*)
  16437. + ECHO_N='-n';;
  16438. esac
  16439. -if expr a : '\(a\)' >/dev/null 2>&1; then
  16440. - as_expr=expr
  16441. +rm -f conf$$ conf$$.exe conf$$.file
  16442. +if test -d conf$$.dir; then
  16443. + rm -f conf$$.dir/conf$$.file
  16444. else
  16445. - as_expr=false
  16446. + rm -f conf$$.dir
  16447. + mkdir conf$$.dir 2>/dev/null
  16448. fi
  16449. -
  16450. -rm -f conf$$ conf$$.exe conf$$.file
  16451. -echo >conf$$.file
  16452. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  16453. - # We could just check for DJGPP; but this test a) works b) is more generic
  16454. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  16455. - if test -f conf$$.exe; then
  16456. - # Don't use ln at all; we don't have any links
  16457. - as_ln_s='cp -p'
  16458. - else
  16459. +if (echo >conf$$.file) 2>/dev/null; then
  16460. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  16461. as_ln_s='ln -s'
  16462. + # ... but there are two gotchas:
  16463. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  16464. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  16465. + # In both cases, we have to default to `cp -p'.
  16466. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  16467. + as_ln_s='cp -p'
  16468. + elif ln conf$$.file conf$$ 2>/dev/null; then
  16469. + as_ln_s=ln
  16470. + else
  16471. + as_ln_s='cp -p'
  16472. fi
  16473. -elif ln conf$$.file conf$$ 2>/dev/null; then
  16474. - as_ln_s=ln
  16475. else
  16476. as_ln_s='cp -p'
  16477. fi
  16478. -rm -f conf$$ conf$$.exe conf$$.file
  16479. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  16480. +rmdir conf$$.dir 2>/dev/null
  16481. if mkdir -p . 2>/dev/null; then
  16482. - as_mkdir_p=:
  16483. + as_mkdir_p='mkdir -p "$as_dir"'
  16484. else
  16485. test -d ./-p && rmdir ./-p
  16486. as_mkdir_p=false
  16487. fi
  16488. -as_executable_p="test -f"
  16489. +if test -x / >/dev/null 2>&1; then
  16490. + as_test_x='test -x'
  16491. +else
  16492. + if ls -dL / >/dev/null 2>&1; then
  16493. + as_ls_L_option=L
  16494. + else
  16495. + as_ls_L_option=
  16496. + fi
  16497. + as_test_x='
  16498. + eval sh -c '\''
  16499. + if test -d "$1"; then
  16500. + test -d "$1/.";
  16501. + else
  16502. + case $1 in #(
  16503. + -*)set "./$1";;
  16504. + esac;
  16505. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  16506. + ???[sx]*):;;*)false;;esac;fi
  16507. + '\'' sh
  16508. + '
  16509. +fi
  16510. +as_executable_p=$as_test_x
  16511. # Sed expression to map a string onto a valid CPP name.
  16512. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  16513. @@ -233,36 +529,26 @@
  16514. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  16515. -# IFS
  16516. -# We need space, tab and new line, in precisely that order.
  16517. -as_nl='
  16518. -'
  16519. -IFS=" $as_nl"
  16520. -
  16521. -# CDPATH.
  16522. -$as_unset CDPATH
  16523. -
  16524. -
  16525. # Check that we are running under the correct shell.
  16526. SHELL=${CONFIG_SHELL-/bin/sh}
  16527. -case X$ECHO in
  16528. +case X$lt_ECHO in
  16529. X*--fallback-echo)
  16530. # Remove one level of quotation (which was required for Make).
  16531. - ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16532. + ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','`
  16533. ;;
  16534. esac
  16535. -echo=${ECHO-echo}
  16536. +ECHO=${lt_ECHO-echo}
  16537. if test "X$1" = X--no-reexec; then
  16538. # Discard the --no-reexec flag, and continue.
  16539. shift
  16540. elif test "X$1" = X--fallback-echo; then
  16541. # Avoid inline document here, it may be left over
  16542. :
  16543. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  16544. - # Yippee, $echo works!
  16545. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' ; then
  16546. + # Yippee, $ECHO works!
  16547. :
  16548. else
  16549. # Restart under the correct shell.
  16550. @@ -272,9 +558,9 @@
  16551. if test "X$1" = X--fallback-echo; then
  16552. # used as fallback echo
  16553. shift
  16554. - cat <<EOF
  16555. + cat <<_LT_EOF
  16556. $*
  16557. -EOF
  16558. +_LT_EOF
  16559. exit 0
  16560. fi
  16561. @@ -282,143 +568,135 @@
  16562. # if CDPATH is set.
  16563. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  16564. -if test -z "$ECHO"; then
  16565. -if test "X${echo_test_string+set}" != Xset; then
  16566. -# find a string as large as possible, as long as the shell can cope with it
  16567. - for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16568. - # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16569. - if (echo_test_string="`eval $cmd`") 2>/dev/null &&
  16570. - echo_test_string="`eval $cmd`" &&
  16571. - (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null
  16572. - then
  16573. - break
  16574. - fi
  16575. - done
  16576. -fi
  16577. +if test -z "$lt_ECHO"; then
  16578. + if test "X${echo_test_string+set}" != Xset; then
  16579. + # find a string as large as possible, as long as the shell can cope with it
  16580. + for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do
  16581. + # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ...
  16582. + if { echo_test_string=`eval $cmd`; } 2>/dev/null &&
  16583. + { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null
  16584. + then
  16585. + break
  16586. + fi
  16587. + done
  16588. + fi
  16589. -if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16590. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16591. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16592. - :
  16593. -else
  16594. - # The Solaris, AIX, and Digital Unix default echo programs unquote
  16595. - # backslashes. This makes it impossible to quote backslashes using
  16596. - # echo "$something" | sed 's/\\/\\\\/g'
  16597. - #
  16598. - # So, first we look for a working echo in the user's PATH.
  16599. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16600. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16601. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16602. + :
  16603. + else
  16604. + # The Solaris, AIX, and Digital Unix default echo programs unquote
  16605. + # backslashes. This makes it impossible to quote backslashes using
  16606. + # echo "$something" | sed 's/\\/\\\\/g'
  16607. + #
  16608. + # So, first we look for a working echo in the user's PATH.
  16609. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16610. - for dir in $PATH /usr/ucb; do
  16611. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  16612. + for dir in $PATH /usr/ucb; do
  16613. + IFS="$lt_save_ifs"
  16614. + if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16615. + test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16616. + echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16617. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16618. + ECHO="$dir/echo"
  16619. + break
  16620. + fi
  16621. + done
  16622. IFS="$lt_save_ifs"
  16623. - if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  16624. - test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  16625. - echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  16626. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16627. - echo="$dir/echo"
  16628. - break
  16629. - fi
  16630. - done
  16631. - IFS="$lt_save_ifs"
  16632. - if test "X$echo" = Xecho; then
  16633. - # We didn't find a better echo, so look for alternatives.
  16634. - if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' &&
  16635. - echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` &&
  16636. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16637. - # This shell has a builtin print -r that does the trick.
  16638. - echo='print -r'
  16639. - elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) &&
  16640. - test "X$CONFIG_SHELL" != X/bin/ksh; then
  16641. - # If we have ksh, try running configure again with it.
  16642. - ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16643. - export ORIGINAL_CONFIG_SHELL
  16644. - CONFIG_SHELL=/bin/ksh
  16645. - export CONFIG_SHELL
  16646. - exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16647. - else
  16648. - # Try using printf.
  16649. - echo='printf %s\n'
  16650. - if test "X`($echo '\t') 2>/dev/null`" = 'X\t' &&
  16651. - echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` &&
  16652. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16653. - # Cool, printf works
  16654. - :
  16655. - elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16656. - test "X$echo_testing_string" = 'X\t' &&
  16657. - echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16658. - test "X$echo_testing_string" = "X$echo_test_string"; then
  16659. - CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16660. - export CONFIG_SHELL
  16661. - SHELL="$CONFIG_SHELL"
  16662. - export SHELL
  16663. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16664. - elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16665. - test "X$echo_testing_string" = 'X\t' &&
  16666. - echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16667. + if test "X$ECHO" = Xecho; then
  16668. + # We didn't find a better echo, so look for alternatives.
  16669. + if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' &&
  16670. + echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` &&
  16671. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16672. + # This shell has a builtin print -r that does the trick.
  16673. + ECHO='print -r'
  16674. + elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } &&
  16675. + test "X$CONFIG_SHELL" != X/bin/ksh; then
  16676. + # If we have ksh, try running configure again with it.
  16677. + ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh}
  16678. + export ORIGINAL_CONFIG_SHELL
  16679. + CONFIG_SHELL=/bin/ksh
  16680. + export CONFIG_SHELL
  16681. + exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"}
  16682. + else
  16683. + # Try using printf.
  16684. + ECHO='printf %s\n'
  16685. + if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' &&
  16686. + echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` &&
  16687. test "X$echo_testing_string" = "X$echo_test_string"; then
  16688. - echo="$CONFIG_SHELL $0 --fallback-echo"
  16689. - else
  16690. - # maybe with a smaller string...
  16691. - prev=:
  16692. + # Cool, printf works
  16693. + :
  16694. + elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16695. + test "X$echo_testing_string" = 'X\t' &&
  16696. + echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16697. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16698. + CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL
  16699. + export CONFIG_SHELL
  16700. + SHELL="$CONFIG_SHELL"
  16701. + export SHELL
  16702. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16703. + elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` &&
  16704. + test "X$echo_testing_string" = 'X\t' &&
  16705. + echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` &&
  16706. + test "X$echo_testing_string" = "X$echo_test_string"; then
  16707. + ECHO="$CONFIG_SHELL $0 --fallback-echo"
  16708. + else
  16709. + # maybe with a smaller string...
  16710. + prev=:
  16711. - for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16712. - if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null
  16713. - then
  16714. - break
  16715. - fi
  16716. - prev="$cmd"
  16717. - done
  16718. + for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do
  16719. + if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null
  16720. + then
  16721. + break
  16722. + fi
  16723. + prev="$cmd"
  16724. + done
  16725. - if test "$prev" != 'sed 50q "$0"'; then
  16726. - echo_test_string=`eval $prev`
  16727. - export echo_test_string
  16728. - exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16729. - else
  16730. - # Oops. We lost completely, so just stick with echo.
  16731. - echo=echo
  16732. - fi
  16733. + if test "$prev" != 'sed 50q "$0"'; then
  16734. + echo_test_string=`eval $prev`
  16735. + export echo_test_string
  16736. + exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"}
  16737. + else
  16738. + # Oops. We lost completely, so just stick with echo.
  16739. + ECHO=echo
  16740. + fi
  16741. + fi
  16742. fi
  16743. fi
  16744. fi
  16745. fi
  16746. -fi
  16747. # Copy echo and quote the copy suitably for passing to libtool from
  16748. # the Makefile, instead of quoting the original, which is used later.
  16749. -ECHO=$echo
  16750. -if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16751. - ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16752. +lt_ECHO=$ECHO
  16753. +if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then
  16754. + lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo"
  16755. fi
  16756. -tagnames=${tagnames+${tagnames},}CXX
  16757. -
  16758. -tagnames=${tagnames+${tagnames},}F77
  16759. +test -n "$DJDIR" || exec 7<&0 </dev/null
  16760. +exec 6>&1
  16761. # Name of the host.
  16762. # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
  16763. # so uname gets run too.
  16764. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  16765. -exec 6>&1
  16766. -
  16767. #
  16768. # Initializations.
  16769. #
  16770. ac_default_prefix=/usr/local
  16771. +ac_clean_files=
  16772. ac_config_libobj_dir=.
  16773. +LIBOBJS=
  16774. cross_compiling=no
  16775. subdirs=
  16776. MFLAGS=
  16777. MAKEFLAGS=
  16778. -SHELL=${CONFIG_SHELL-/bin/sh}
  16779. -
  16780. -# Maximum number of lines to put in a shell here document.
  16781. -# This variable seems obsolete. It should probably be removed, and
  16782. -# only ac_max_sed_lines should be used.
  16783. -: ${ac_max_here_lines=38}
  16784. # Identity of this package.
  16785. PACKAGE_NAME='chillispot'
  16786. @@ -426,51 +704,181 @@
  16787. PACKAGE_VERSION='1.1.0'
  16788. PACKAGE_STRING='chillispot 1.1.0'
  16789. PACKAGE_BUGREPORT='bugs@chillispot.org'
  16790. +PACKAGE_URL=''
  16791. ac_unique_file="src/cmdline.c"
  16792. # Factoring default headers for most tests.
  16793. ac_includes_default="\
  16794. #include <stdio.h>
  16795. -#if HAVE_SYS_TYPES_H
  16796. +#ifdef HAVE_SYS_TYPES_H
  16797. # include <sys/types.h>
  16798. #endif
  16799. -#if HAVE_SYS_STAT_H
  16800. +#ifdef HAVE_SYS_STAT_H
  16801. # include <sys/stat.h>
  16802. #endif
  16803. -#if STDC_HEADERS
  16804. +#ifdef STDC_HEADERS
  16805. # include <stdlib.h>
  16806. # include <stddef.h>
  16807. #else
  16808. -# if HAVE_STDLIB_H
  16809. +# ifdef HAVE_STDLIB_H
  16810. # include <stdlib.h>
  16811. # endif
  16812. #endif
  16813. -#if HAVE_STRING_H
  16814. -# if !STDC_HEADERS && HAVE_MEMORY_H
  16815. +#ifdef HAVE_STRING_H
  16816. +# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  16817. # include <memory.h>
  16818. # endif
  16819. # include <string.h>
  16820. #endif
  16821. -#if HAVE_STRINGS_H
  16822. +#ifdef HAVE_STRINGS_H
  16823. # include <strings.h>
  16824. #endif
  16825. -#if HAVE_INTTYPES_H
  16826. +#ifdef HAVE_INTTYPES_H
  16827. # include <inttypes.h>
  16828. -#else
  16829. -# if HAVE_STDINT_H
  16830. -# include <stdint.h>
  16831. -# endif
  16832. #endif
  16833. -#if HAVE_UNISTD_H
  16834. +#ifdef HAVE_STDINT_H
  16835. +# include <stdint.h>
  16836. +#endif
  16837. +#ifdef HAVE_UNISTD_H
  16838. # include <unistd.h>
  16839. #endif"
  16840. -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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os EGREP LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB CPP CXX CXXFLAGS ac_ct_CXX CXXDEPMODE am__fastdepCXX_TRUE am__fastdepCXX_FALSE CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL LIBOBJS LTLIBOBJS'
  16841. +ac_subst_vars='am__EXEEXT_FALSE
  16842. +am__EXEEXT_TRUE
  16843. +LTLIBOBJS
  16844. +LIBOBJS
  16845. +CPP
  16846. +OTOOL64
  16847. +OTOOL
  16848. +LIPO
  16849. +NMEDIT
  16850. +DSYMUTIL
  16851. +lt_ECHO
  16852. +RANLIB
  16853. +AR
  16854. +OBJDUMP
  16855. +LN_S
  16856. +NM
  16857. +ac_ct_DUMPBIN
  16858. +DUMPBIN
  16859. +LD
  16860. +FGREP
  16861. +EGREP
  16862. +GREP
  16863. +SED
  16864. +host_os
  16865. +host_vendor
  16866. +host_cpu
  16867. +host
  16868. +build_os
  16869. +build_vendor
  16870. +build_cpu
  16871. +build
  16872. +LIBTOOL
  16873. +am__fastdepCC_FALSE
  16874. +am__fastdepCC_TRUE
  16875. +CCDEPMODE
  16876. +AMDEPBACKSLASH
  16877. +AMDEP_FALSE
  16878. +AMDEP_TRUE
  16879. +am__quote
  16880. +am__include
  16881. +DEPDIR
  16882. +OBJEXT
  16883. +EXEEXT
  16884. +ac_ct_CC
  16885. +CPPFLAGS
  16886. +LDFLAGS
  16887. +CFLAGS
  16888. +CC
  16889. +am__untar
  16890. +am__tar
  16891. +AMTAR
  16892. +am__leading_dot
  16893. +SET_MAKE
  16894. +AWK
  16895. +mkdir_p
  16896. +MKDIR_P
  16897. +INSTALL_STRIP_PROGRAM
  16898. +STRIP
  16899. +install_sh
  16900. +MAKEINFO
  16901. +AUTOHEADER
  16902. +AUTOMAKE
  16903. +AUTOCONF
  16904. +ACLOCAL
  16905. +VERSION
  16906. +PACKAGE
  16907. +CYGPATH_W
  16908. +am__isrc
  16909. +INSTALL_DATA
  16910. +INSTALL_SCRIPT
  16911. +INSTALL_PROGRAM
  16912. +target_alias
  16913. +host_alias
  16914. +build_alias
  16915. +LIBS
  16916. +ECHO_T
  16917. +ECHO_N
  16918. +ECHO_C
  16919. +DEFS
  16920. +mandir
  16921. +localedir
  16922. +libdir
  16923. +psdir
  16924. +pdfdir
  16925. +dvidir
  16926. +htmldir
  16927. +infodir
  16928. +docdir
  16929. +oldincludedir
  16930. +includedir
  16931. +localstatedir
  16932. +sharedstatedir
  16933. +sysconfdir
  16934. +datadir
  16935. +datarootdir
  16936. +libexecdir
  16937. +sbindir
  16938. +bindir
  16939. +program_transform_name
  16940. +prefix
  16941. +exec_prefix
  16942. +PACKAGE_URL
  16943. +PACKAGE_BUGREPORT
  16944. +PACKAGE_STRING
  16945. +PACKAGE_VERSION
  16946. +PACKAGE_TARNAME
  16947. +PACKAGE_NAME
  16948. +PATH_SEPARATOR
  16949. +SHELL'
  16950. ac_subst_files=''
  16951. +ac_user_opts='
  16952. +enable_option_checking
  16953. +enable_dependency_tracking
  16954. +enable_shared
  16955. +enable_static
  16956. +with_pic
  16957. +enable_fast_install
  16958. +with_gnu_ld
  16959. +enable_libtool_lock
  16960. +'
  16961. + ac_precious_vars='build_alias
  16962. +host_alias
  16963. +target_alias
  16964. +CC
  16965. +CFLAGS
  16966. +LDFLAGS
  16967. +LIBS
  16968. +CPPFLAGS
  16969. +CPP'
  16970. +
  16971. # Initialize some variables set by options.
  16972. ac_init_help=
  16973. ac_init_version=false
  16974. +ac_unrecognized_opts=
  16975. +ac_unrecognized_sep=
  16976. # The variables have the same names as the options, with
  16977. # dashes changed to underlines.
  16978. cache_file=/dev/null
  16979. @@ -493,34 +901,48 @@
  16980. # and all the variables that are supposed to be based on exec_prefix
  16981. # by default will actually change.
  16982. # Use braces instead of parens because sh, perl, etc. also accept them.
  16983. +# (The list follows the same order as the GNU Coding Standards.)
  16984. bindir='${exec_prefix}/bin'
  16985. sbindir='${exec_prefix}/sbin'
  16986. libexecdir='${exec_prefix}/libexec'
  16987. -datadir='${prefix}/share'
  16988. +datarootdir='${prefix}/share'
  16989. +datadir='${datarootdir}'
  16990. sysconfdir='${prefix}/etc'
  16991. sharedstatedir='${prefix}/com'
  16992. localstatedir='${prefix}/var'
  16993. -libdir='${exec_prefix}/lib'
  16994. includedir='${prefix}/include'
  16995. oldincludedir='/usr/include'
  16996. -infodir='${prefix}/info'
  16997. -mandir='${prefix}/man'
  16998. +docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  16999. +infodir='${datarootdir}/info'
  17000. +htmldir='${docdir}'
  17001. +dvidir='${docdir}'
  17002. +pdfdir='${docdir}'
  17003. +psdir='${docdir}'
  17004. +libdir='${exec_prefix}/lib'
  17005. +localedir='${datarootdir}/locale'
  17006. +mandir='${datarootdir}/man'
  17007. ac_prev=
  17008. +ac_dashdash=
  17009. for ac_option
  17010. do
  17011. # If the previous option needs an argument, assign it.
  17012. if test -n "$ac_prev"; then
  17013. - eval "$ac_prev=\$ac_option"
  17014. + eval $ac_prev=\$ac_option
  17015. ac_prev=
  17016. continue
  17017. fi
  17018. - ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
  17019. + case $ac_option in
  17020. + *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  17021. + *) ac_optarg=yes ;;
  17022. + esac
  17023. # Accept the important Cygnus configure options, so we can diagnose typos.
  17024. - case $ac_option in
  17025. + case $ac_dashdash$ac_option in
  17026. + --)
  17027. + ac_dashdash=yes ;;
  17028. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  17029. ac_prev=bindir ;;
  17030. @@ -542,33 +964,59 @@
  17031. --config-cache | -C)
  17032. cache_file=config.cache ;;
  17033. - -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
  17034. + -datadir | --datadir | --datadi | --datad)
  17035. ac_prev=datadir ;;
  17036. - -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
  17037. - | --da=*)
  17038. + -datadir=* | --datadir=* | --datadi=* | --datad=*)
  17039. datadir=$ac_optarg ;;
  17040. + -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  17041. + | --dataroo | --dataro | --datar)
  17042. + ac_prev=datarootdir ;;
  17043. + -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  17044. + | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  17045. + datarootdir=$ac_optarg ;;
  17046. +
  17047. -disable-* | --disable-*)
  17048. - ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17049. + ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  17050. # Reject names that are not valid shell variable names.
  17051. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17052. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17053. - { (exit 1); exit 1; }; }
  17054. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  17055. - eval "enable_$ac_feature=no" ;;
  17056. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17057. + as_fn_error "invalid feature name: $ac_useropt"
  17058. + ac_useropt_orig=$ac_useropt
  17059. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17060. + case $ac_user_opts in
  17061. + *"
  17062. +"enable_$ac_useropt"
  17063. +"*) ;;
  17064. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  17065. + ac_unrecognized_sep=', ';;
  17066. + esac
  17067. + eval enable_$ac_useropt=no ;;
  17068. +
  17069. + -docdir | --docdir | --docdi | --doc | --do)
  17070. + ac_prev=docdir ;;
  17071. + -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  17072. + docdir=$ac_optarg ;;
  17073. +
  17074. + -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  17075. + ac_prev=dvidir ;;
  17076. + -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  17077. + dvidir=$ac_optarg ;;
  17078. -enable-* | --enable-*)
  17079. - ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17080. + ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  17081. # Reject names that are not valid shell variable names.
  17082. - expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17083. - { echo "$as_me: error: invalid feature name: $ac_feature" >&2
  17084. - { (exit 1); exit 1; }; }
  17085. - ac_feature=`echo $ac_feature | sed 's/-/_/g'`
  17086. - case $ac_option in
  17087. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  17088. - *) ac_optarg=yes ;;
  17089. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17090. + as_fn_error "invalid feature name: $ac_useropt"
  17091. + ac_useropt_orig=$ac_useropt
  17092. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17093. + case $ac_user_opts in
  17094. + *"
  17095. +"enable_$ac_useropt"
  17096. +"*) ;;
  17097. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  17098. + ac_unrecognized_sep=', ';;
  17099. esac
  17100. - eval "enable_$ac_feature='$ac_optarg'" ;;
  17101. + eval enable_$ac_useropt=\$ac_optarg ;;
  17102. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  17103. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  17104. @@ -595,6 +1043,12 @@
  17105. -host=* | --host=* | --hos=* | --ho=*)
  17106. host_alias=$ac_optarg ;;
  17107. + -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  17108. + ac_prev=htmldir ;;
  17109. + -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  17110. + | --ht=*)
  17111. + htmldir=$ac_optarg ;;
  17112. +
  17113. -includedir | --includedir | --includedi | --included | --include \
  17114. | --includ | --inclu | --incl | --inc)
  17115. ac_prev=includedir ;;
  17116. @@ -619,13 +1073,16 @@
  17117. | --libexe=* | --libex=* | --libe=*)
  17118. libexecdir=$ac_optarg ;;
  17119. + -localedir | --localedir | --localedi | --localed | --locale)
  17120. + ac_prev=localedir ;;
  17121. + -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  17122. + localedir=$ac_optarg ;;
  17123. +
  17124. -localstatedir | --localstatedir | --localstatedi | --localstated \
  17125. - | --localstate | --localstat | --localsta | --localst \
  17126. - | --locals | --local | --loca | --loc | --lo)
  17127. + | --localstate | --localstat | --localsta | --localst | --locals)
  17128. ac_prev=localstatedir ;;
  17129. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  17130. - | --localstate=* | --localstat=* | --localsta=* | --localst=* \
  17131. - | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
  17132. + | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  17133. localstatedir=$ac_optarg ;;
  17134. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  17135. @@ -690,6 +1147,16 @@
  17136. | --progr-tra=* | --program-tr=* | --program-t=*)
  17137. program_transform_name=$ac_optarg ;;
  17138. + -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  17139. + ac_prev=pdfdir ;;
  17140. + -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  17141. + pdfdir=$ac_optarg ;;
  17142. +
  17143. + -psdir | --psdir | --psdi | --psd | --ps)
  17144. + ac_prev=psdir ;;
  17145. + -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  17146. + psdir=$ac_optarg ;;
  17147. +
  17148. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  17149. | -silent | --silent | --silen | --sile | --sil)
  17150. silent=yes ;;
  17151. @@ -740,26 +1207,36 @@
  17152. ac_init_version=: ;;
  17153. -with-* | --with-*)
  17154. - ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17155. + ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  17156. # Reject names that are not valid shell variable names.
  17157. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17158. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17159. - { (exit 1); exit 1; }; }
  17160. - ac_package=`echo $ac_package| sed 's/-/_/g'`
  17161. - case $ac_option in
  17162. - *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
  17163. - *) ac_optarg=yes ;;
  17164. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17165. + as_fn_error "invalid package name: $ac_useropt"
  17166. + ac_useropt_orig=$ac_useropt
  17167. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17168. + case $ac_user_opts in
  17169. + *"
  17170. +"with_$ac_useropt"
  17171. +"*) ;;
  17172. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  17173. + ac_unrecognized_sep=', ';;
  17174. esac
  17175. - eval "with_$ac_package='$ac_optarg'" ;;
  17176. + eval with_$ac_useropt=\$ac_optarg ;;
  17177. -without-* | --without-*)
  17178. - ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17179. + ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  17180. # Reject names that are not valid shell variable names.
  17181. - expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
  17182. - { echo "$as_me: error: invalid package name: $ac_package" >&2
  17183. - { (exit 1); exit 1; }; }
  17184. - ac_package=`echo $ac_package | sed 's/-/_/g'`
  17185. - eval "with_$ac_package=no" ;;
  17186. + expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  17187. + as_fn_error "invalid package name: $ac_useropt"
  17188. + ac_useropt_orig=$ac_useropt
  17189. + ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  17190. + case $ac_user_opts in
  17191. + *"
  17192. +"with_$ac_useropt"
  17193. +"*) ;;
  17194. + *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  17195. + ac_unrecognized_sep=', ';;
  17196. + esac
  17197. + eval with_$ac_useropt=no ;;
  17198. --x)
  17199. # Obsolete; use --with-x.
  17200. @@ -779,26 +1256,25 @@
  17201. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  17202. x_libraries=$ac_optarg ;;
  17203. - -*) { echo "$as_me: error: unrecognized option: $ac_option
  17204. -Try \`$0 --help' for more information." >&2
  17205. - { (exit 1); exit 1; }; }
  17206. + -*) as_fn_error "unrecognized option: \`$ac_option'
  17207. +Try \`$0 --help' for more information."
  17208. ;;
  17209. *=*)
  17210. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  17211. # Reject names that are not valid shell variable names.
  17212. - expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
  17213. - { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
  17214. - { (exit 1); exit 1; }; }
  17215. - ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
  17216. - eval "$ac_envvar='$ac_optarg'"
  17217. + case $ac_envvar in #(
  17218. + '' | [0-9]* | *[!_$as_cr_alnum]* )
  17219. + as_fn_error "invalid variable name: \`$ac_envvar'" ;;
  17220. + esac
  17221. + eval $ac_envvar=\$ac_optarg
  17222. export $ac_envvar ;;
  17223. *)
  17224. # FIXME: should be removed in autoconf 3.0.
  17225. - echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17226. + $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  17227. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  17228. - echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17229. + $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  17230. : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
  17231. ;;
  17232. @@ -807,31 +1283,36 @@
  17233. if test -n "$ac_prev"; then
  17234. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  17235. - { echo "$as_me: error: missing argument to $ac_option" >&2
  17236. - { (exit 1); exit 1; }; }
  17237. + as_fn_error "missing argument to $ac_option"
  17238. fi
  17239. -# Be sure to have absolute paths.
  17240. -for ac_var in exec_prefix prefix
  17241. -do
  17242. - eval ac_val=$`echo $ac_var`
  17243. - case $ac_val in
  17244. - [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
  17245. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  17246. - { (exit 1); exit 1; }; };;
  17247. +if test -n "$ac_unrecognized_opts"; then
  17248. + case $enable_option_checking in
  17249. + no) ;;
  17250. + fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;;
  17251. + *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  17252. esac
  17253. -done
  17254. +fi
  17255. -# Be sure to have absolute paths.
  17256. -for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  17257. - localstatedir libdir includedir oldincludedir infodir mandir
  17258. +# Check all directory arguments for consistency.
  17259. +for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  17260. + datadir sysconfdir sharedstatedir localstatedir includedir \
  17261. + oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  17262. + libdir localedir mandir
  17263. do
  17264. - eval ac_val=$`echo $ac_var`
  17265. + eval ac_val=\$$ac_var
  17266. + # Remove trailing slashes.
  17267. + case $ac_val in
  17268. + */ )
  17269. + ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  17270. + eval $ac_var=\$ac_val;;
  17271. + esac
  17272. + # Be sure to have absolute directory names.
  17273. case $ac_val in
  17274. - [\\/$]* | ?:[\\/]* ) ;;
  17275. - *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
  17276. - { (exit 1); exit 1; }; };;
  17277. + [\\/$]* | ?:[\\/]* ) continue;;
  17278. + NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  17279. esac
  17280. + as_fn_error "expected an absolute directory name for --$ac_var: $ac_val"
  17281. done
  17282. # There might be people who depend on the old broken behavior: `$host'
  17283. @@ -845,7 +1326,7 @@
  17284. if test "x$host_alias" != x; then
  17285. if test "x$build_alias" = x; then
  17286. cross_compiling=maybe
  17287. - echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17288. + $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
  17289. If a cross compiler is detected then cross compile mode will be used." >&2
  17290. elif test "x$build_alias" != "x$host_alias"; then
  17291. cross_compiling=yes
  17292. @@ -858,94 +1339,72 @@
  17293. test "$silent" = yes && exec 6>/dev/null
  17294. +ac_pwd=`pwd` && test -n "$ac_pwd" &&
  17295. +ac_ls_di=`ls -di .` &&
  17296. +ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  17297. + as_fn_error "working directory cannot be determined"
  17298. +test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  17299. + as_fn_error "pwd does not report name of working directory"
  17300. +
  17301. +
  17302. # Find the source files, if location was not specified.
  17303. if test -z "$srcdir"; then
  17304. ac_srcdir_defaulted=yes
  17305. - # Try the directory containing this script, then its parent.
  17306. - ac_confdir=`(dirname "$0") 2>/dev/null ||
  17307. -$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17308. - X"$0" : 'X\(//\)[^/]' \| \
  17309. - X"$0" : 'X\(//\)$' \| \
  17310. - X"$0" : 'X\(/\)' \| \
  17311. - . : '\(.\)' 2>/dev/null ||
  17312. -echo X"$0" |
  17313. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  17314. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  17315. - /^X\(\/\/\)$/{ s//\1/; q; }
  17316. - /^X\(\/\).*/{ s//\1/; q; }
  17317. - s/.*/./; q'`
  17318. + # Try the directory containing this script, then the parent directory.
  17319. + ac_confdir=`$as_dirname -- "$as_myself" ||
  17320. +$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  17321. + X"$as_myself" : 'X\(//\)[^/]' \| \
  17322. + X"$as_myself" : 'X\(//\)$' \| \
  17323. + X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  17324. +$as_echo X"$as_myself" |
  17325. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  17326. + s//\1/
  17327. + q
  17328. + }
  17329. + /^X\(\/\/\)[^/].*/{
  17330. + s//\1/
  17331. + q
  17332. + }
  17333. + /^X\(\/\/\)$/{
  17334. + s//\1/
  17335. + q
  17336. + }
  17337. + /^X\(\/\).*/{
  17338. + s//\1/
  17339. + q
  17340. + }
  17341. + s/.*/./; q'`
  17342. srcdir=$ac_confdir
  17343. - if test ! -r $srcdir/$ac_unique_file; then
  17344. + if test ! -r "$srcdir/$ac_unique_file"; then
  17345. srcdir=..
  17346. fi
  17347. else
  17348. ac_srcdir_defaulted=no
  17349. fi
  17350. -if test ! -r $srcdir/$ac_unique_file; then
  17351. - if test "$ac_srcdir_defaulted" = yes; then
  17352. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
  17353. - { (exit 1); exit 1; }; }
  17354. - else
  17355. - { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
  17356. - { (exit 1); exit 1; }; }
  17357. - fi
  17358. -fi
  17359. -(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
  17360. - { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
  17361. - { (exit 1); exit 1; }; }
  17362. -srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
  17363. -ac_env_build_alias_set=${build_alias+set}
  17364. -ac_env_build_alias_value=$build_alias
  17365. -ac_cv_env_build_alias_set=${build_alias+set}
  17366. -ac_cv_env_build_alias_value=$build_alias
  17367. -ac_env_host_alias_set=${host_alias+set}
  17368. -ac_env_host_alias_value=$host_alias
  17369. -ac_cv_env_host_alias_set=${host_alias+set}
  17370. -ac_cv_env_host_alias_value=$host_alias
  17371. -ac_env_target_alias_set=${target_alias+set}
  17372. -ac_env_target_alias_value=$target_alias
  17373. -ac_cv_env_target_alias_set=${target_alias+set}
  17374. -ac_cv_env_target_alias_value=$target_alias
  17375. -ac_env_CC_set=${CC+set}
  17376. -ac_env_CC_value=$CC
  17377. -ac_cv_env_CC_set=${CC+set}
  17378. -ac_cv_env_CC_value=$CC
  17379. -ac_env_CFLAGS_set=${CFLAGS+set}
  17380. -ac_env_CFLAGS_value=$CFLAGS
  17381. -ac_cv_env_CFLAGS_set=${CFLAGS+set}
  17382. -ac_cv_env_CFLAGS_value=$CFLAGS
  17383. -ac_env_LDFLAGS_set=${LDFLAGS+set}
  17384. -ac_env_LDFLAGS_value=$LDFLAGS
  17385. -ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
  17386. -ac_cv_env_LDFLAGS_value=$LDFLAGS
  17387. -ac_env_CPPFLAGS_set=${CPPFLAGS+set}
  17388. -ac_env_CPPFLAGS_value=$CPPFLAGS
  17389. -ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
  17390. -ac_cv_env_CPPFLAGS_value=$CPPFLAGS
  17391. -ac_env_CPP_set=${CPP+set}
  17392. -ac_env_CPP_value=$CPP
  17393. -ac_cv_env_CPP_set=${CPP+set}
  17394. -ac_cv_env_CPP_value=$CPP
  17395. -ac_env_CXX_set=${CXX+set}
  17396. -ac_env_CXX_value=$CXX
  17397. -ac_cv_env_CXX_set=${CXX+set}
  17398. -ac_cv_env_CXX_value=$CXX
  17399. -ac_env_CXXFLAGS_set=${CXXFLAGS+set}
  17400. -ac_env_CXXFLAGS_value=$CXXFLAGS
  17401. -ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set}
  17402. -ac_cv_env_CXXFLAGS_value=$CXXFLAGS
  17403. -ac_env_CXXCPP_set=${CXXCPP+set}
  17404. -ac_env_CXXCPP_value=$CXXCPP
  17405. -ac_cv_env_CXXCPP_set=${CXXCPP+set}
  17406. -ac_cv_env_CXXCPP_value=$CXXCPP
  17407. -ac_env_F77_set=${F77+set}
  17408. -ac_env_F77_value=$F77
  17409. -ac_cv_env_F77_set=${F77+set}
  17410. -ac_cv_env_F77_value=$F77
  17411. -ac_env_FFLAGS_set=${FFLAGS+set}
  17412. -ac_env_FFLAGS_value=$FFLAGS
  17413. -ac_cv_env_FFLAGS_set=${FFLAGS+set}
  17414. -ac_cv_env_FFLAGS_value=$FFLAGS
  17415. +if test ! -r "$srcdir/$ac_unique_file"; then
  17416. + test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  17417. + as_fn_error "cannot find sources ($ac_unique_file) in $srcdir"
  17418. +fi
  17419. +ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  17420. +ac_abs_confdir=`(
  17421. + cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
  17422. + pwd)`
  17423. +# When building in place, set srcdir=.
  17424. +if test "$ac_abs_confdir" = "$ac_pwd"; then
  17425. + srcdir=.
  17426. +fi
  17427. +# Remove unnecessary trailing slashes from srcdir.
  17428. +# Double slashes in file names in object file debugging info
  17429. +# mess up M-x gdb in Emacs.
  17430. +case $srcdir in
  17431. +*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  17432. +esac
  17433. +for ac_var in $ac_precious_vars; do
  17434. + eval ac_env_${ac_var}_set=\${${ac_var}+set}
  17435. + eval ac_env_${ac_var}_value=\$${ac_var}
  17436. + eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  17437. + eval ac_cv_env_${ac_var}_value=\$${ac_var}
  17438. +done
  17439. #
  17440. # Report the --help message.
  17441. @@ -974,14 +1433,11 @@
  17442. -n, --no-create do not create output files
  17443. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  17444. -_ACEOF
  17445. -
  17446. - cat <<_ACEOF
  17447. Installation directories:
  17448. --prefix=PREFIX install architecture-independent files in PREFIX
  17449. - [$ac_default_prefix]
  17450. + [$ac_default_prefix]
  17451. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  17452. - [PREFIX]
  17453. + [PREFIX]
  17454. By default, \`make install' will install all the files in
  17455. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  17456. @@ -991,18 +1447,25 @@
  17457. For better control, use the options below.
  17458. Fine tuning of the installation directories:
  17459. - --bindir=DIR user executables [EPREFIX/bin]
  17460. - --sbindir=DIR system admin executables [EPREFIX/sbin]
  17461. - --libexecdir=DIR program executables [EPREFIX/libexec]
  17462. - --datadir=DIR read-only architecture-independent data [PREFIX/share]
  17463. - --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17464. - --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17465. - --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17466. - --libdir=DIR object code libraries [EPREFIX/lib]
  17467. - --includedir=DIR C header files [PREFIX/include]
  17468. - --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17469. - --infodir=DIR info documentation [PREFIX/info]
  17470. - --mandir=DIR man documentation [PREFIX/man]
  17471. + --bindir=DIR user executables [EPREFIX/bin]
  17472. + --sbindir=DIR system admin executables [EPREFIX/sbin]
  17473. + --libexecdir=DIR program executables [EPREFIX/libexec]
  17474. + --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  17475. + --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  17476. + --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  17477. + --libdir=DIR object code libraries [EPREFIX/lib]
  17478. + --includedir=DIR C header files [PREFIX/include]
  17479. + --oldincludedir=DIR C header files for non-gcc [/usr/include]
  17480. + --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  17481. + --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  17482. + --infodir=DIR info documentation [DATAROOTDIR/info]
  17483. + --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  17484. + --mandir=DIR man documentation [DATAROOTDIR/man]
  17485. + --docdir=DIR documentation root [DATAROOTDIR/doc/chillispot]
  17486. + --htmldir=DIR html documentation [DOCDIR]
  17487. + --dvidir=DIR dvi documentation [DOCDIR]
  17488. + --pdfdir=DIR pdf documentation [DOCDIR]
  17489. + --psdir=DIR ps documentation [DOCDIR]
  17490. _ACEOF
  17491. cat <<\_ACEOF
  17492. @@ -1025,14 +1488,13 @@
  17493. cat <<\_ACEOF
  17494. Optional Features:
  17495. + --disable-option-checking ignore unrecognized --enable/--with options
  17496. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  17497. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  17498. --disable-dependency-tracking speeds up one-time build
  17499. --enable-dependency-tracking do not reject slow dependency extractors
  17500. - --enable-shared[=PKGS]
  17501. - build shared libraries [default=yes]
  17502. - --enable-static[=PKGS]
  17503. - build static libraries [default=yes]
  17504. + --enable-shared[=PKGS] build shared libraries [default=yes]
  17505. + --enable-static[=PKGS] build static libraries [default=yes]
  17506. --enable-fast-install[=PKGS]
  17507. optimize for fast installation [default=yes]
  17508. --disable-libtool-lock avoid locking (might break parallel builds)
  17509. @@ -1040,145 +1502,518 @@
  17510. Optional Packages:
  17511. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  17512. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  17513. - --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17514. --with-pic try to use only PIC/non-PIC objects [default=use
  17515. both]
  17516. - --with-tags[=TAGS]
  17517. - include additional configurations [automatic]
  17518. + --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  17519. Some influential environment variables:
  17520. CC C compiler command
  17521. CFLAGS C compiler flags
  17522. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  17523. nonstandard directory <lib dir>
  17524. - CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have
  17525. - headers in a nonstandard directory <include dir>
  17526. + LIBS libraries to pass to the linker, e.g. -l<library>
  17527. + CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  17528. + you have headers in a nonstandard directory <include dir>
  17529. CPP C preprocessor
  17530. - CXX C++ compiler command
  17531. - CXXFLAGS C++ compiler flags
  17532. - CXXCPP C++ preprocessor
  17533. - F77 Fortran 77 compiler command
  17534. - FFLAGS Fortran 77 compiler flags
  17535. Use these variables to override the choices made by `configure' or to help
  17536. it to find libraries and programs with nonstandard names/locations.
  17537. Report bugs to <bugs@chillispot.org>.
  17538. _ACEOF
  17539. +ac_status=$?
  17540. fi
  17541. if test "$ac_init_help" = "recursive"; then
  17542. # If there are subdirs, report their specific --help.
  17543. - ac_popdir=`pwd`
  17544. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  17545. - test -d $ac_dir || continue
  17546. + test -d "$ac_dir" ||
  17547. + { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  17548. + continue
  17549. ac_builddir=.
  17550. -if test "$ac_dir" != .; then
  17551. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  17552. - # A "../" for each directory in $ac_dir_suffix.
  17553. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  17554. -else
  17555. - ac_dir_suffix= ac_top_builddir=
  17556. -fi
  17557. +case "$ac_dir" in
  17558. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17559. +*)
  17560. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  17561. + # A ".." for each directory in $ac_dir_suffix.
  17562. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  17563. + case $ac_top_builddir_sub in
  17564. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  17565. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  17566. + esac ;;
  17567. +esac
  17568. +ac_abs_top_builddir=$ac_pwd
  17569. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  17570. +# for backward compatibility:
  17571. +ac_top_builddir=$ac_top_build_prefix
  17572. case $srcdir in
  17573. - .) # No --srcdir option. We are building in place.
  17574. + .) # We are building in place.
  17575. ac_srcdir=.
  17576. - if test -z "$ac_top_builddir"; then
  17577. - ac_top_srcdir=.
  17578. - else
  17579. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  17580. - fi ;;
  17581. - [\\/]* | ?:[\\/]* ) # Absolute path.
  17582. + ac_top_srcdir=$ac_top_builddir_sub
  17583. + ac_abs_top_srcdir=$ac_pwd ;;
  17584. + [\\/]* | ?:[\\/]* ) # Absolute name.
  17585. ac_srcdir=$srcdir$ac_dir_suffix;
  17586. - ac_top_srcdir=$srcdir ;;
  17587. - *) # Relative path.
  17588. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  17589. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  17590. -esac
  17591. -
  17592. -# Do not use `cd foo && pwd` to compute absolute paths, because
  17593. -# the directories may not exist.
  17594. -case `pwd` in
  17595. -.) ac_abs_builddir="$ac_dir";;
  17596. -*)
  17597. - case "$ac_dir" in
  17598. - .) ac_abs_builddir=`pwd`;;
  17599. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  17600. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  17601. - esac;;
  17602. -esac
  17603. -case $ac_abs_builddir in
  17604. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  17605. -*)
  17606. - case ${ac_top_builddir}. in
  17607. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  17608. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  17609. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  17610. - esac;;
  17611. -esac
  17612. -case $ac_abs_builddir in
  17613. -.) ac_abs_srcdir=$ac_srcdir;;
  17614. -*)
  17615. - case $ac_srcdir in
  17616. - .) ac_abs_srcdir=$ac_abs_builddir;;
  17617. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  17618. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  17619. - esac;;
  17620. -esac
  17621. -case $ac_abs_builddir in
  17622. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  17623. -*)
  17624. - case $ac_top_srcdir in
  17625. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  17626. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  17627. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  17628. - esac;;
  17629. -esac
  17630. -
  17631. - cd $ac_dir
  17632. - # Check for guested configure; otherwise get Cygnus style configure.
  17633. - if test -f $ac_srcdir/configure.gnu; then
  17634. - echo
  17635. - $SHELL $ac_srcdir/configure.gnu --help=recursive
  17636. - elif test -f $ac_srcdir/configure; then
  17637. - echo
  17638. - $SHELL $ac_srcdir/configure --help=recursive
  17639. - elif test -f $ac_srcdir/configure.ac ||
  17640. - test -f $ac_srcdir/configure.in; then
  17641. - echo
  17642. - $ac_configure --help
  17643. + ac_top_srcdir=$srcdir
  17644. + ac_abs_top_srcdir=$srcdir ;;
  17645. + *) # Relative name.
  17646. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  17647. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  17648. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  17649. +esac
  17650. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  17651. +
  17652. + cd "$ac_dir" || { ac_status=$?; continue; }
  17653. + # Check for guested configure.
  17654. + if test -f "$ac_srcdir/configure.gnu"; then
  17655. + echo &&
  17656. + $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  17657. + elif test -f "$ac_srcdir/configure"; then
  17658. + echo &&
  17659. + $SHELL "$ac_srcdir/configure" --help=recursive
  17660. else
  17661. - echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17662. - fi
  17663. - cd $ac_popdir
  17664. + $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  17665. + fi || ac_status=$?
  17666. + cd "$ac_pwd" || { ac_status=$?; break; }
  17667. done
  17668. fi
  17669. -test -n "$ac_init_help" && exit 0
  17670. +test -n "$ac_init_help" && exit $ac_status
  17671. if $ac_init_version; then
  17672. cat <<\_ACEOF
  17673. chillispot configure 1.1.0
  17674. -generated by GNU Autoconf 2.59
  17675. +generated by GNU Autoconf 2.65
  17676. -Copyright (C) 2003 Free Software Foundation, Inc.
  17677. +Copyright (C) 2009 Free Software Foundation, Inc.
  17678. This configure script is free software; the Free Software Foundation
  17679. gives unlimited permission to copy, distribute and modify it.
  17680. _ACEOF
  17681. - exit 0
  17682. + exit
  17683. fi
  17684. -exec 5>config.log
  17685. -cat >&5 <<_ACEOF
  17686. -This file contains any messages produced by compilers while
  17687. -running configure, to aid debugging if configure makes a mistake.
  17688. +
  17689. +## ------------------------ ##
  17690. +## Autoconf initialization. ##
  17691. +## ------------------------ ##
  17692. +
  17693. +# ac_fn_c_try_compile LINENO
  17694. +# --------------------------
  17695. +# Try to compile conftest.$ac_ext, and return whether this succeeded.
  17696. +ac_fn_c_try_compile ()
  17697. +{
  17698. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17699. + rm -f conftest.$ac_objext
  17700. + if { { ac_try="$ac_compile"
  17701. +case "(($ac_try" in
  17702. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17703. + *) ac_try_echo=$ac_try;;
  17704. +esac
  17705. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17706. +$as_echo "$ac_try_echo"; } >&5
  17707. + (eval "$ac_compile") 2>conftest.err
  17708. + ac_status=$?
  17709. + if test -s conftest.err; then
  17710. + grep -v '^ *+' conftest.err >conftest.er1
  17711. + cat conftest.er1 >&5
  17712. + mv -f conftest.er1 conftest.err
  17713. + fi
  17714. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17715. + test $ac_status = 0; } && {
  17716. + test -z "$ac_c_werror_flag" ||
  17717. + test ! -s conftest.err
  17718. + } && test -s conftest.$ac_objext; then :
  17719. + ac_retval=0
  17720. +else
  17721. + $as_echo "$as_me: failed program was:" >&5
  17722. +sed 's/^/| /' conftest.$ac_ext >&5
  17723. +
  17724. + ac_retval=1
  17725. +fi
  17726. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17727. + as_fn_set_status $ac_retval
  17728. +
  17729. +} # ac_fn_c_try_compile
  17730. +
  17731. +# ac_fn_c_try_link LINENO
  17732. +# -----------------------
  17733. +# Try to link conftest.$ac_ext, and return whether this succeeded.
  17734. +ac_fn_c_try_link ()
  17735. +{
  17736. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17737. + rm -f conftest.$ac_objext conftest$ac_exeext
  17738. + if { { ac_try="$ac_link"
  17739. +case "(($ac_try" in
  17740. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17741. + *) ac_try_echo=$ac_try;;
  17742. +esac
  17743. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17744. +$as_echo "$ac_try_echo"; } >&5
  17745. + (eval "$ac_link") 2>conftest.err
  17746. + ac_status=$?
  17747. + if test -s conftest.err; then
  17748. + grep -v '^ *+' conftest.err >conftest.er1
  17749. + cat conftest.er1 >&5
  17750. + mv -f conftest.er1 conftest.err
  17751. + fi
  17752. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17753. + test $ac_status = 0; } && {
  17754. + test -z "$ac_c_werror_flag" ||
  17755. + test ! -s conftest.err
  17756. + } && test -s conftest$ac_exeext && {
  17757. + test "$cross_compiling" = yes ||
  17758. + $as_test_x conftest$ac_exeext
  17759. + }; then :
  17760. + ac_retval=0
  17761. +else
  17762. + $as_echo "$as_me: failed program was:" >&5
  17763. +sed 's/^/| /' conftest.$ac_ext >&5
  17764. +
  17765. + ac_retval=1
  17766. +fi
  17767. + # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  17768. + # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  17769. + # interfere with the next link command; also delete a directory that is
  17770. + # left behind by Apple's compiler. We do this before executing the actions.
  17771. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17772. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17773. + as_fn_set_status $ac_retval
  17774. +
  17775. +} # ac_fn_c_try_link
  17776. +
  17777. +# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  17778. +# -------------------------------------------------------
  17779. +# Tests whether HEADER exists and can be compiled using the include files in
  17780. +# INCLUDES, setting the cache variable VAR accordingly.
  17781. +ac_fn_c_check_header_compile ()
  17782. +{
  17783. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17784. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17785. +$as_echo_n "checking for $2... " >&6; }
  17786. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17787. + $as_echo_n "(cached) " >&6
  17788. +else
  17789. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17790. +/* end confdefs.h. */
  17791. +$4
  17792. +#include <$2>
  17793. +_ACEOF
  17794. +if ac_fn_c_try_compile "$LINENO"; then :
  17795. + eval "$3=yes"
  17796. +else
  17797. + eval "$3=no"
  17798. +fi
  17799. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17800. +fi
  17801. +eval ac_res=\$$3
  17802. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17803. +$as_echo "$ac_res" >&6; }
  17804. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17805. +
  17806. +} # ac_fn_c_check_header_compile
  17807. +
  17808. +# ac_fn_c_try_cpp LINENO
  17809. +# ----------------------
  17810. +# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  17811. +ac_fn_c_try_cpp ()
  17812. +{
  17813. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17814. + if { { ac_try="$ac_cpp conftest.$ac_ext"
  17815. +case "(($ac_try" in
  17816. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17817. + *) ac_try_echo=$ac_try;;
  17818. +esac
  17819. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17820. +$as_echo "$ac_try_echo"; } >&5
  17821. + (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  17822. + ac_status=$?
  17823. + if test -s conftest.err; then
  17824. + grep -v '^ *+' conftest.err >conftest.er1
  17825. + cat conftest.er1 >&5
  17826. + mv -f conftest.er1 conftest.err
  17827. + fi
  17828. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17829. + test $ac_status = 0; } >/dev/null && {
  17830. + test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  17831. + test ! -s conftest.err
  17832. + }; then :
  17833. + ac_retval=0
  17834. +else
  17835. + $as_echo "$as_me: failed program was:" >&5
  17836. +sed 's/^/| /' conftest.$ac_ext >&5
  17837. +
  17838. + ac_retval=1
  17839. +fi
  17840. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17841. + as_fn_set_status $ac_retval
  17842. +
  17843. +} # ac_fn_c_try_cpp
  17844. +
  17845. +# ac_fn_c_try_run LINENO
  17846. +# ----------------------
  17847. +# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  17848. +# that executables *can* be run.
  17849. +ac_fn_c_try_run ()
  17850. +{
  17851. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17852. + if { { ac_try="$ac_link"
  17853. +case "(($ac_try" in
  17854. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17855. + *) ac_try_echo=$ac_try;;
  17856. +esac
  17857. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17858. +$as_echo "$ac_try_echo"; } >&5
  17859. + (eval "$ac_link") 2>&5
  17860. + ac_status=$?
  17861. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17862. + test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  17863. + { { case "(($ac_try" in
  17864. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  17865. + *) ac_try_echo=$ac_try;;
  17866. +esac
  17867. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  17868. +$as_echo "$ac_try_echo"; } >&5
  17869. + (eval "$ac_try") 2>&5
  17870. + ac_status=$?
  17871. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  17872. + test $ac_status = 0; }; }; then :
  17873. + ac_retval=0
  17874. +else
  17875. + $as_echo "$as_me: program exited with status $ac_status" >&5
  17876. + $as_echo "$as_me: failed program was:" >&5
  17877. +sed 's/^/| /' conftest.$ac_ext >&5
  17878. +
  17879. + ac_retval=$ac_status
  17880. +fi
  17881. + rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  17882. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17883. + as_fn_set_status $ac_retval
  17884. +
  17885. +} # ac_fn_c_try_run
  17886. +
  17887. +# ac_fn_c_check_func LINENO FUNC VAR
  17888. +# ----------------------------------
  17889. +# Tests whether FUNC exists, setting the cache variable VAR accordingly
  17890. +ac_fn_c_check_func ()
  17891. +{
  17892. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17893. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17894. +$as_echo_n "checking for $2... " >&6; }
  17895. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17896. + $as_echo_n "(cached) " >&6
  17897. +else
  17898. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17899. +/* end confdefs.h. */
  17900. +/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  17901. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  17902. +#define $2 innocuous_$2
  17903. +
  17904. +/* System header to define __stub macros and hopefully few prototypes,
  17905. + which can conflict with char $2 (); below.
  17906. + Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  17907. + <limits.h> exists even on freestanding compilers. */
  17908. +
  17909. +#ifdef __STDC__
  17910. +# include <limits.h>
  17911. +#else
  17912. +# include <assert.h>
  17913. +#endif
  17914. +
  17915. +#undef $2
  17916. +
  17917. +/* Override any GCC internal prototype to avoid an error.
  17918. + Use char because int might match the return type of a GCC
  17919. + builtin and then its argument prototype would still apply. */
  17920. +#ifdef __cplusplus
  17921. +extern "C"
  17922. +#endif
  17923. +char $2 ();
  17924. +/* The GNU C library defines this for functions which it implements
  17925. + to always fail with ENOSYS. Some functions are actually named
  17926. + something starting with __ and the normal name is an alias. */
  17927. +#if defined __stub_$2 || defined __stub___$2
  17928. +choke me
  17929. +#endif
  17930. +
  17931. +int
  17932. +main ()
  17933. +{
  17934. +return $2 ();
  17935. + ;
  17936. + return 0;
  17937. +}
  17938. +_ACEOF
  17939. +if ac_fn_c_try_link "$LINENO"; then :
  17940. + eval "$3=yes"
  17941. +else
  17942. + eval "$3=no"
  17943. +fi
  17944. +rm -f core conftest.err conftest.$ac_objext \
  17945. + conftest$ac_exeext conftest.$ac_ext
  17946. +fi
  17947. +eval ac_res=\$$3
  17948. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17949. +$as_echo "$ac_res" >&6; }
  17950. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  17951. +
  17952. +} # ac_fn_c_check_func
  17953. +
  17954. +# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  17955. +# -------------------------------------------------------
  17956. +# Tests whether HEADER exists, giving a warning if it cannot be compiled using
  17957. +# the include files in INCLUDES and setting the cache variable VAR
  17958. +# accordingly.
  17959. +ac_fn_c_check_header_mongrel ()
  17960. +{
  17961. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  17962. + if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17963. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  17964. +$as_echo_n "checking for $2... " >&6; }
  17965. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  17966. + $as_echo_n "(cached) " >&6
  17967. +fi
  17968. +eval ac_res=\$$3
  17969. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  17970. +$as_echo "$ac_res" >&6; }
  17971. +else
  17972. + # Is the header compilable?
  17973. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  17974. +$as_echo_n "checking $2 usability... " >&6; }
  17975. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17976. +/* end confdefs.h. */
  17977. +$4
  17978. +#include <$2>
  17979. +_ACEOF
  17980. +if ac_fn_c_try_compile "$LINENO"; then :
  17981. + ac_header_compiler=yes
  17982. +else
  17983. + ac_header_compiler=no
  17984. +fi
  17985. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  17986. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  17987. +$as_echo "$ac_header_compiler" >&6; }
  17988. +
  17989. +# Is the header present?
  17990. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  17991. +$as_echo_n "checking $2 presence... " >&6; }
  17992. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  17993. +/* end confdefs.h. */
  17994. +#include <$2>
  17995. +_ACEOF
  17996. +if ac_fn_c_try_cpp "$LINENO"; then :
  17997. + ac_header_preproc=yes
  17998. +else
  17999. + ac_header_preproc=no
  18000. +fi
  18001. +rm -f conftest.err conftest.$ac_ext
  18002. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  18003. +$as_echo "$ac_header_preproc" >&6; }
  18004. +
  18005. +# So? What about this header?
  18006. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  18007. + yes:no: )
  18008. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  18009. +$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  18010. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18011. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18012. + ;;
  18013. + no:yes:* )
  18014. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  18015. +$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  18016. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  18017. +$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  18018. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  18019. +$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  18020. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  18021. +$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  18022. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  18023. +$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  18024. +( cat <<\_ASBOX
  18025. +## ---------------------------------- ##
  18026. +## Report this to bugs@chillispot.org ##
  18027. +## ---------------------------------- ##
  18028. +_ASBOX
  18029. + ) | sed "s/^/$as_me: WARNING: /" >&2
  18030. + ;;
  18031. +esac
  18032. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18033. +$as_echo_n "checking for $2... " >&6; }
  18034. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18035. + $as_echo_n "(cached) " >&6
  18036. +else
  18037. + eval "$3=\$ac_header_compiler"
  18038. +fi
  18039. +eval ac_res=\$$3
  18040. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18041. +$as_echo "$ac_res" >&6; }
  18042. +fi
  18043. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18044. +
  18045. +} # ac_fn_c_check_header_mongrel
  18046. +
  18047. +# ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  18048. +# -------------------------------------------
  18049. +# Tests whether TYPE exists after having included INCLUDES, setting cache
  18050. +# variable VAR accordingly.
  18051. +ac_fn_c_check_type ()
  18052. +{
  18053. + as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  18054. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  18055. +$as_echo_n "checking for $2... " >&6; }
  18056. +if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
  18057. + $as_echo_n "(cached) " >&6
  18058. +else
  18059. + eval "$3=no"
  18060. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18061. +/* end confdefs.h. */
  18062. +$4
  18063. +int
  18064. +main ()
  18065. +{
  18066. +if (sizeof ($2))
  18067. + return 0;
  18068. + ;
  18069. + return 0;
  18070. +}
  18071. +_ACEOF
  18072. +if ac_fn_c_try_compile "$LINENO"; then :
  18073. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  18074. +/* end confdefs.h. */
  18075. +$4
  18076. +int
  18077. +main ()
  18078. +{
  18079. +if (sizeof (($2)))
  18080. + return 0;
  18081. + ;
  18082. + return 0;
  18083. +}
  18084. +_ACEOF
  18085. +if ac_fn_c_try_compile "$LINENO"; then :
  18086. +
  18087. +else
  18088. + eval "$3=yes"
  18089. +fi
  18090. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18091. +fi
  18092. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  18093. +fi
  18094. +eval ac_res=\$$3
  18095. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  18096. +$as_echo "$ac_res" >&6; }
  18097. + eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
  18098. +
  18099. +} # ac_fn_c_check_type
  18100. +cat >config.log <<_ACEOF
  18101. +This file contains any messages produced by compilers while
  18102. +running configure, to aid debugging if configure makes a mistake.
  18103. It was created by chillispot $as_me 1.1.0, which was
  18104. -generated by GNU Autoconf 2.59. Invocation command line was
  18105. +generated by GNU Autoconf 2.65. Invocation command line was
  18106. $ $0 $@
  18107. _ACEOF
  18108. +exec 5>>config.log
  18109. {
  18110. cat <<_ASUNAME
  18111. ## --------- ##
  18112. @@ -1197,7 +2032,7 @@
  18113. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  18114. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  18115. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  18116. -hostinfo = `(hostinfo) 2>/dev/null || echo unknown`
  18117. +/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  18118. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  18119. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  18120. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  18121. @@ -1209,8 +2044,9 @@
  18122. do
  18123. IFS=$as_save_IFS
  18124. test -z "$as_dir" && as_dir=.
  18125. - echo "PATH: $as_dir"
  18126. -done
  18127. + $as_echo "PATH: $as_dir"
  18128. + done
  18129. +IFS=$as_save_IFS
  18130. } >&5
  18131. @@ -1232,7 +2068,6 @@
  18132. ac_configure_args=
  18133. ac_configure_args0=
  18134. ac_configure_args1=
  18135. -ac_sep=
  18136. ac_must_keep_next=false
  18137. for ac_pass in 1 2
  18138. do
  18139. @@ -1243,13 +2078,13 @@
  18140. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  18141. | -silent | --silent | --silen | --sile | --sil)
  18142. continue ;;
  18143. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  18144. - ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18145. + *\'*)
  18146. + ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  18147. esac
  18148. case $ac_pass in
  18149. - 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
  18150. + 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  18151. 2)
  18152. - ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  18153. + as_fn_append ac_configure_args1 " '$ac_arg'"
  18154. if test $ac_must_keep_next = true; then
  18155. ac_must_keep_next=false # Got value, back to normal.
  18156. else
  18157. @@ -1265,21 +2100,19 @@
  18158. -* ) ac_must_keep_next=true ;;
  18159. esac
  18160. fi
  18161. - ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  18162. - # Get rid of the leading space.
  18163. - ac_sep=" "
  18164. + as_fn_append ac_configure_args " '$ac_arg'"
  18165. ;;
  18166. esac
  18167. done
  18168. done
  18169. -$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
  18170. -$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
  18171. +{ ac_configure_args0=; unset ac_configure_args0;}
  18172. +{ ac_configure_args1=; unset ac_configure_args1;}
  18173. # When interrupted or exit'd, cleanup temporary files, and complete
  18174. # config.log. We remove comments because anyway the quotes in there
  18175. # would cause problems or look ugly.
  18176. -# WARNING: Be sure not to use single quotes in there, as some shells,
  18177. -# such as our DU 5.0 friend, will then `close' the trap.
  18178. +# WARNING: Use '\'' to represent an apostrophe within the trap.
  18179. +# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  18180. trap 'exit_status=$?
  18181. # Save into config.log some information that might help in debugging.
  18182. {
  18183. @@ -1292,20 +2125,35 @@
  18184. _ASBOX
  18185. echo
  18186. # The following way of writing the cache mishandles newlines in values,
  18187. -{
  18188. +(
  18189. + for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  18190. + eval ac_val=\$$ac_var
  18191. + case $ac_val in #(
  18192. + *${as_nl}*)
  18193. + case $ac_var in #(
  18194. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  18195. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  18196. + esac
  18197. + case $ac_var in #(
  18198. + _ | IFS | as_nl) ;; #(
  18199. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  18200. + *) { eval $ac_var=; unset $ac_var;} ;;
  18201. + esac ;;
  18202. + esac
  18203. + done
  18204. (set) 2>&1 |
  18205. - case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  18206. - *ac_space=\ *)
  18207. + case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  18208. + *${as_nl}ac_space=\ *)
  18209. sed -n \
  18210. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  18211. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  18212. - ;;
  18213. + "s/'\''/'\''\\\\'\'''\''/g;
  18214. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  18215. + ;; #(
  18216. *)
  18217. - sed -n \
  18218. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  18219. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  18220. ;;
  18221. - esac;
  18222. -}
  18223. + esac |
  18224. + sort
  18225. +)
  18226. echo
  18227. cat <<\_ASBOX
  18228. @@ -1316,22 +2164,28 @@
  18229. echo
  18230. for ac_var in $ac_subst_vars
  18231. do
  18232. - eval ac_val=$`echo $ac_var`
  18233. - echo "$ac_var='"'"'$ac_val'"'"'"
  18234. + eval ac_val=\$$ac_var
  18235. + case $ac_val in
  18236. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18237. + esac
  18238. + $as_echo "$ac_var='\''$ac_val'\''"
  18239. done | sort
  18240. echo
  18241. if test -n "$ac_subst_files"; then
  18242. cat <<\_ASBOX
  18243. -## ------------- ##
  18244. -## Output files. ##
  18245. -## ------------- ##
  18246. +## ------------------- ##
  18247. +## File substitutions. ##
  18248. +## ------------------- ##
  18249. _ASBOX
  18250. echo
  18251. for ac_var in $ac_subst_files
  18252. do
  18253. - eval ac_val=$`echo $ac_var`
  18254. - echo "$ac_var='"'"'$ac_val'"'"'"
  18255. + eval ac_val=\$$ac_var
  18256. + case $ac_val in
  18257. + *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  18258. + esac
  18259. + $as_echo "$ac_var='\''$ac_val'\''"
  18260. done | sort
  18261. echo
  18262. fi
  18263. @@ -1343,26 +2197,26 @@
  18264. ## ----------- ##
  18265. _ASBOX
  18266. echo
  18267. - sed "/^$/d" confdefs.h | sort
  18268. + cat confdefs.h
  18269. echo
  18270. fi
  18271. test "$ac_signal" != 0 &&
  18272. - echo "$as_me: caught signal $ac_signal"
  18273. - echo "$as_me: exit $exit_status"
  18274. + $as_echo "$as_me: caught signal $ac_signal"
  18275. + $as_echo "$as_me: exit $exit_status"
  18276. } >&5
  18277. - rm -f core *.core &&
  18278. - rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
  18279. + rm -f core *.core core.conftest.* &&
  18280. + rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  18281. exit $exit_status
  18282. - ' 0
  18283. +' 0
  18284. for ac_signal in 1 2 13 15; do
  18285. - trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
  18286. + trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  18287. done
  18288. ac_signal=0
  18289. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  18290. -rm -rf conftest* confdefs.h
  18291. -# AIX cpp loses on an empty file, so make sure it contains at least a newline.
  18292. -echo >confdefs.h
  18293. +rm -f -r conftest* confdefs.h
  18294. +
  18295. +$as_echo "/* confdefs.h */" > confdefs.h
  18296. # Predefined preprocessor variables.
  18297. @@ -1370,112 +2224,128 @@
  18298. #define PACKAGE_NAME "$PACKAGE_NAME"
  18299. _ACEOF
  18300. -
  18301. cat >>confdefs.h <<_ACEOF
  18302. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  18303. _ACEOF
  18304. -
  18305. cat >>confdefs.h <<_ACEOF
  18306. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  18307. _ACEOF
  18308. -
  18309. cat >>confdefs.h <<_ACEOF
  18310. #define PACKAGE_STRING "$PACKAGE_STRING"
  18311. _ACEOF
  18312. -
  18313. cat >>confdefs.h <<_ACEOF
  18314. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  18315. _ACEOF
  18316. +cat >>confdefs.h <<_ACEOF
  18317. +#define PACKAGE_URL "$PACKAGE_URL"
  18318. +_ACEOF
  18319. +
  18320. # Let the site file select an alternate cache file if it wants to.
  18321. -# Prefer explicitly selected file to automatically selected ones.
  18322. -if test -z "$CONFIG_SITE"; then
  18323. - if test "x$prefix" != xNONE; then
  18324. - CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
  18325. - else
  18326. - CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
  18327. - fi
  18328. -fi
  18329. -for ac_site_file in $CONFIG_SITE; do
  18330. - if test -r "$ac_site_file"; then
  18331. - { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
  18332. -echo "$as_me: loading site script $ac_site_file" >&6;}
  18333. +# Prefer an explicitly selected file to automatically selected ones.
  18334. +ac_site_file1=NONE
  18335. +ac_site_file2=NONE
  18336. +if test -n "$CONFIG_SITE"; then
  18337. + ac_site_file1=$CONFIG_SITE
  18338. +elif test "x$prefix" != xNONE; then
  18339. + ac_site_file1=$prefix/share/config.site
  18340. + ac_site_file2=$prefix/etc/config.site
  18341. +else
  18342. + ac_site_file1=$ac_default_prefix/share/config.site
  18343. + ac_site_file2=$ac_default_prefix/etc/config.site
  18344. +fi
  18345. +for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  18346. +do
  18347. + test "x$ac_site_file" = xNONE && continue
  18348. + if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  18349. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  18350. +$as_echo "$as_me: loading site script $ac_site_file" >&6;}
  18351. sed 's/^/| /' "$ac_site_file" >&5
  18352. . "$ac_site_file"
  18353. fi
  18354. done
  18355. if test -r "$cache_file"; then
  18356. - # Some versions of bash will fail to source /dev/null (special
  18357. - # files actually), so we avoid doing that.
  18358. - if test -f "$cache_file"; then
  18359. - { echo "$as_me:$LINENO: loading cache $cache_file" >&5
  18360. -echo "$as_me: loading cache $cache_file" >&6;}
  18361. + # Some versions of bash will fail to source /dev/null (special files
  18362. + # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  18363. + if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  18364. + { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  18365. +$as_echo "$as_me: loading cache $cache_file" >&6;}
  18366. case $cache_file in
  18367. - [\\/]* | ?:[\\/]* ) . $cache_file;;
  18368. - *) . ./$cache_file;;
  18369. + [\\/]* | ?:[\\/]* ) . "$cache_file";;
  18370. + *) . "./$cache_file";;
  18371. esac
  18372. fi
  18373. else
  18374. - { echo "$as_me:$LINENO: creating cache $cache_file" >&5
  18375. -echo "$as_me: creating cache $cache_file" >&6;}
  18376. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  18377. +$as_echo "$as_me: creating cache $cache_file" >&6;}
  18378. >$cache_file
  18379. fi
  18380. # Check that the precious variables saved in the cache have kept the same
  18381. # value.
  18382. ac_cache_corrupted=false
  18383. -for ac_var in `(set) 2>&1 |
  18384. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  18385. +for ac_var in $ac_precious_vars; do
  18386. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  18387. eval ac_new_set=\$ac_env_${ac_var}_set
  18388. - eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  18389. - eval ac_new_val="\$ac_env_${ac_var}_value"
  18390. + eval ac_old_val=\$ac_cv_env_${ac_var}_value
  18391. + eval ac_new_val=\$ac_env_${ac_var}_value
  18392. case $ac_old_set,$ac_new_set in
  18393. set,)
  18394. - { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18395. -echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18396. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  18397. +$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  18398. ac_cache_corrupted=: ;;
  18399. ,set)
  18400. - { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
  18401. -echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18402. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  18403. +$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  18404. ac_cache_corrupted=: ;;
  18405. ,);;
  18406. *)
  18407. if test "x$ac_old_val" != "x$ac_new_val"; then
  18408. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  18409. -echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18410. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  18411. -echo "$as_me: former value: $ac_old_val" >&2;}
  18412. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  18413. -echo "$as_me: current value: $ac_new_val" >&2;}
  18414. - ac_cache_corrupted=:
  18415. + # differences in whitespace do not lead to failure.
  18416. + ac_old_val_w=`echo x $ac_old_val`
  18417. + ac_new_val_w=`echo x $ac_new_val`
  18418. + if test "$ac_old_val_w" != "$ac_new_val_w"; then
  18419. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  18420. +$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  18421. + ac_cache_corrupted=:
  18422. + else
  18423. + { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  18424. +$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  18425. + eval $ac_var=\$ac_old_val
  18426. + fi
  18427. + { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  18428. +$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  18429. + { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  18430. +$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  18431. fi;;
  18432. esac
  18433. # Pass precious variables to config.status.
  18434. if test "$ac_new_set" = set; then
  18435. case $ac_new_val in
  18436. - *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
  18437. - ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18438. + *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  18439. *) ac_arg=$ac_var=$ac_new_val ;;
  18440. esac
  18441. case " $ac_configure_args " in
  18442. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  18443. - *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
  18444. + *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  18445. esac
  18446. fi
  18447. done
  18448. if $ac_cache_corrupted; then
  18449. - { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
  18450. -echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18451. - { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
  18452. -echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
  18453. - { (exit 1); exit 1; }; }
  18454. -fi
  18455. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  18456. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  18457. + { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  18458. +$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  18459. + as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  18460. +fi
  18461. +## -------------------- ##
  18462. +## Main body of script. ##
  18463. +## -------------------- ##
  18464. ac_ext=c
  18465. ac_cpp='$CPP $CPPFLAGS'
  18466. @@ -1486,56 +2356,30 @@
  18467. +am__api_version='1.11'
  18468. -
  18469. -
  18470. -
  18471. -
  18472. -
  18473. -
  18474. -
  18475. -
  18476. -
  18477. -
  18478. -
  18479. -
  18480. -
  18481. -
  18482. -
  18483. -
  18484. -
  18485. -
  18486. -
  18487. -
  18488. -
  18489. -
  18490. -
  18491. -
  18492. -am__api_version="1.9"
  18493. ac_aux_dir=
  18494. -for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
  18495. - if test -f $ac_dir/install-sh; then
  18496. - ac_aux_dir=$ac_dir
  18497. - ac_install_sh="$ac_aux_dir/install-sh -c"
  18498. - break
  18499. - elif test -f $ac_dir/install.sh; then
  18500. - ac_aux_dir=$ac_dir
  18501. - ac_install_sh="$ac_aux_dir/install.sh -c"
  18502. - break
  18503. - elif test -f $ac_dir/shtool; then
  18504. - ac_aux_dir=$ac_dir
  18505. - ac_install_sh="$ac_aux_dir/shtool install -c"
  18506. - break
  18507. - fi
  18508. +for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  18509. + for ac_t in install-sh install.sh shtool; do
  18510. + if test -f "$ac_dir/$ac_t"; then
  18511. + ac_aux_dir=$ac_dir
  18512. + ac_install_sh="$ac_aux_dir/$ac_t -c"
  18513. + break 2
  18514. + fi
  18515. + done
  18516. done
  18517. if test -z "$ac_aux_dir"; then
  18518. - { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
  18519. -echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
  18520. - { (exit 1); exit 1; }; }
  18521. -fi
  18522. -ac_config_guess="$SHELL $ac_aux_dir/config.guess"
  18523. -ac_config_sub="$SHELL $ac_aux_dir/config.sub"
  18524. -ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
  18525. + as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  18526. +fi
  18527. +
  18528. +# These three variables are undocumented and unsupported,
  18529. +# and are intended to be withdrawn in a future Autoconf release.
  18530. +# They can cause serious problems if a builder's source tree is in a directory
  18531. +# whose full name contains unusual characters.
  18532. +ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  18533. +ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  18534. +ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  18535. +
  18536. # Find a good install program. We prefer a C program (faster),
  18537. # so one script is as good as another. But avoid the broken or
  18538. @@ -1550,22 +2394,23 @@
  18539. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  18540. # OS/2's system install, which has a completely different semantic
  18541. # ./install, which can be erroneously created by make from ./install.sh.
  18542. -echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  18543. -echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  18544. +# Reject install programs that cannot install multiple files.
  18545. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  18546. +$as_echo_n "checking for a BSD-compatible install... " >&6; }
  18547. if test -z "$INSTALL"; then
  18548. -if test "${ac_cv_path_install+set}" = set; then
  18549. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18550. +if test "${ac_cv_path_install+set}" = set; then :
  18551. + $as_echo_n "(cached) " >&6
  18552. else
  18553. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18554. for as_dir in $PATH
  18555. do
  18556. IFS=$as_save_IFS
  18557. test -z "$as_dir" && as_dir=.
  18558. - # Account for people who put trailing slashes in PATH elements.
  18559. -case $as_dir/ in
  18560. - ./ | .// | /cC/* | \
  18561. + # Account for people who put trailing slashes in PATH elements.
  18562. +case $as_dir/ in #((
  18563. + ./ | .// | /[cC]/* | \
  18564. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  18565. - ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  18566. + ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  18567. /usr/ucb/* ) ;;
  18568. *)
  18569. # OSF1 and SCO ODT 3.0 have their own names for install.
  18570. @@ -1573,7 +2418,7 @@
  18571. # by default.
  18572. for ac_prog in ginstall scoinst install; do
  18573. for ac_exec_ext in '' $ac_executable_extensions; do
  18574. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  18575. + if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
  18576. if test $ac_prog = install &&
  18577. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  18578. # AIX install. It has an incompatible calling convention.
  18579. @@ -1583,30 +2428,43 @@
  18580. # program-specific install script used by HP pwplus--don't use.
  18581. :
  18582. else
  18583. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  18584. - break 3
  18585. + rm -rf conftest.one conftest.two conftest.dir
  18586. + echo one > conftest.one
  18587. + echo two > conftest.two
  18588. + mkdir conftest.dir
  18589. + if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  18590. + test -s conftest.one && test -s conftest.two &&
  18591. + test -s conftest.dir/conftest.one &&
  18592. + test -s conftest.dir/conftest.two
  18593. + then
  18594. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  18595. + break 3
  18596. + fi
  18597. fi
  18598. fi
  18599. done
  18600. done
  18601. ;;
  18602. esac
  18603. -done
  18604. + done
  18605. +IFS=$as_save_IFS
  18606. +
  18607. +rm -rf conftest.one conftest.two conftest.dir
  18608. fi
  18609. if test "${ac_cv_path_install+set}" = set; then
  18610. INSTALL=$ac_cv_path_install
  18611. else
  18612. - # As a last resort, use the slow shell script. We don't cache a
  18613. - # path for INSTALL within a source directory, because that will
  18614. + # As a last resort, use the slow shell script. Don't cache a
  18615. + # value for INSTALL within a source directory, because that will
  18616. # break other packages using the cache if that directory is
  18617. - # removed, or if the path is relative.
  18618. + # removed, or if the value is a relative name.
  18619. INSTALL=$ac_install_sh
  18620. fi
  18621. fi
  18622. -echo "$as_me:$LINENO: result: $INSTALL" >&5
  18623. -echo "${ECHO_T}$INSTALL" >&6
  18624. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  18625. +$as_echo "$INSTALL" >&6; }
  18626. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  18627. # It thinks the first close brace ends the variable substitution.
  18628. @@ -1616,21 +2474,34 @@
  18629. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  18630. -echo "$as_me:$LINENO: checking whether build environment is sane" >&5
  18631. -echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6
  18632. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  18633. +$as_echo_n "checking whether build environment is sane... " >&6; }
  18634. # Just in case
  18635. sleep 1
  18636. echo timestamp > conftest.file
  18637. +# Reject unsafe characters in $srcdir or the absolute working directory
  18638. +# name. Accept space and tab only in the latter.
  18639. +am_lf='
  18640. +'
  18641. +case `pwd` in
  18642. + *[\\\"\#\$\&\'\`$am_lf]*)
  18643. + as_fn_error "unsafe absolute working directory name" "$LINENO" 5;;
  18644. +esac
  18645. +case $srcdir in
  18646. + *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  18647. + as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  18648. +esac
  18649. +
  18650. # Do `set' in a subshell so we don't clobber the current shell's
  18651. # arguments. Must try -L first in case configure is actually a
  18652. # symlink; some systems play weird games with the mod time of symlinks
  18653. # (eg FreeBSD returns the mod time of the symlink's containing
  18654. # directory).
  18655. if (
  18656. - set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
  18657. + set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  18658. if test "$*" = "X"; then
  18659. # -L didn't work.
  18660. - set X `ls -t $srcdir/configure conftest.file`
  18661. + set X `ls -t "$srcdir/configure" conftest.file`
  18662. fi
  18663. rm -f conftest.file
  18664. if test "$*" != "X $srcdir/configure conftest.file" \
  18665. @@ -1640,11 +2511,8 @@
  18666. # if, for instance, CONFIG_SHELL is bash and it inherits a
  18667. # broken ls alias from the environment. This has actually
  18668. # happened. Such a system could not be considered "sane".
  18669. - { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
  18670. -alias in your environment" >&5
  18671. -echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
  18672. -alias in your environment" >&2;}
  18673. - { (exit 1); exit 1; }; }
  18674. + as_fn_error "ls -t appears to fail. Make sure there is not a broken
  18675. +alias in your environment" "$LINENO" 5
  18676. fi
  18677. test "$2" = conftest.file
  18678. @@ -1653,139 +2521,268 @@
  18679. # Ok.
  18680. :
  18681. else
  18682. - { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
  18683. -Check your system clock" >&5
  18684. -echo "$as_me: error: newly created file is older than distributed files!
  18685. -Check your system clock" >&2;}
  18686. - { (exit 1); exit 1; }; }
  18687. + as_fn_error "newly created file is older than distributed files!
  18688. +Check your system clock" "$LINENO" 5
  18689. fi
  18690. -echo "$as_me:$LINENO: result: yes" >&5
  18691. -echo "${ECHO_T}yes" >&6
  18692. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  18693. +$as_echo "yes" >&6; }
  18694. test "$program_prefix" != NONE &&
  18695. - program_transform_name="s,^,$program_prefix,;$program_transform_name"
  18696. + program_transform_name="s&^&$program_prefix&;$program_transform_name"
  18697. # Use a double $ so make ignores it.
  18698. test "$program_suffix" != NONE &&
  18699. - program_transform_name="s,\$,$program_suffix,;$program_transform_name"
  18700. -# Double any \ or $. echo might interpret backslashes.
  18701. + program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  18702. +# Double any \ or $.
  18703. # By default was `s,x,x', remove it if useless.
  18704. -cat <<\_ACEOF >conftest.sed
  18705. -s/[\\$]/&&/g;s/;s,x,x,$//
  18706. -_ACEOF
  18707. -program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
  18708. -rm conftest.sed
  18709. +ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  18710. +program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  18711. # expand $ac_aux_dir to an absolute path
  18712. am_aux_dir=`cd $ac_aux_dir && pwd`
  18713. -test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
  18714. +if test x"${MISSING+set}" != xset; then
  18715. + case $am_aux_dir in
  18716. + *\ * | *\ *)
  18717. + MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  18718. + *)
  18719. + MISSING="\${SHELL} $am_aux_dir/missing" ;;
  18720. + esac
  18721. +fi
  18722. # Use eval to expand $SHELL
  18723. if eval "$MISSING --run true"; then
  18724. am_missing_run="$MISSING --run "
  18725. else
  18726. am_missing_run=
  18727. - { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
  18728. -echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  18729. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  18730. +$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  18731. fi
  18732. -if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  18733. - # We used to keeping the `.' as first argument, in order to
  18734. - # allow $(mkdir_p) to be used without argument. As in
  18735. - # $(mkdir_p) $(somedir)
  18736. - # where $(somedir) is conditionally defined. However this is wrong
  18737. - # for two reasons:
  18738. - # 1. if the package is installed by a user who cannot write `.'
  18739. - # make install will fail,
  18740. - # 2. the above comment should most certainly read
  18741. - # $(mkdir_p) $(DESTDIR)$(somedir)
  18742. - # so it does not work when $(somedir) is undefined and
  18743. - # $(DESTDIR) is not.
  18744. - # To support the latter case, we have to write
  18745. - # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
  18746. - # so the `.' trick is pointless.
  18747. - mkdir_p='mkdir -p --'
  18748. -else
  18749. - # On NextStep and OpenStep, the `mkdir' command does not
  18750. - # recognize any option. It will interpret all options as
  18751. - # directories to create, and then abort because `.' already
  18752. - # exists.
  18753. - for d in ./-p ./--version;
  18754. - do
  18755. - test -d $d && rmdir $d
  18756. - done
  18757. - # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
  18758. - if test -f "$ac_aux_dir/mkinstalldirs"; then
  18759. - mkdir_p='$(mkinstalldirs)'
  18760. - else
  18761. - mkdir_p='$(install_sh) -d'
  18762. - fi
  18763. +if test x"${install_sh}" != xset; then
  18764. + case $am_aux_dir in
  18765. + *\ * | *\ *)
  18766. + install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  18767. + *)
  18768. + install_sh="\${SHELL} $am_aux_dir/install-sh"
  18769. + esac
  18770. fi
  18771. -for ac_prog in gawk mawk nawk awk
  18772. -do
  18773. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  18774. -set dummy $ac_prog; ac_word=$2
  18775. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  18776. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  18777. -if test "${ac_cv_prog_AWK+set}" = set; then
  18778. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18779. +# Installed binaries are usually stripped using `strip' when the user
  18780. +# run `make install-strip'. However `strip' might not be the right
  18781. +# tool to use in cross-compilation environments, therefore Automake
  18782. +# will honor the `STRIP' environment variable to overrule this program.
  18783. +if test "$cross_compiling" != no; then
  18784. + if test -n "$ac_tool_prefix"; then
  18785. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  18786. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  18787. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18788. +$as_echo_n "checking for $ac_word... " >&6; }
  18789. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  18790. + $as_echo_n "(cached) " >&6
  18791. else
  18792. - if test -n "$AWK"; then
  18793. - ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18794. + if test -n "$STRIP"; then
  18795. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  18796. else
  18797. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18798. for as_dir in $PATH
  18799. do
  18800. IFS=$as_save_IFS
  18801. test -z "$as_dir" && as_dir=.
  18802. - for ac_exec_ext in '' $ac_executable_extensions; do
  18803. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  18804. - ac_cv_prog_AWK="$ac_prog"
  18805. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  18806. + for ac_exec_ext in '' $ac_executable_extensions; do
  18807. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18808. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  18809. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18810. break 2
  18811. fi
  18812. done
  18813. -done
  18814. + done
  18815. +IFS=$as_save_IFS
  18816. fi
  18817. fi
  18818. -AWK=$ac_cv_prog_AWK
  18819. -if test -n "$AWK"; then
  18820. - echo "$as_me:$LINENO: result: $AWK" >&5
  18821. -echo "${ECHO_T}$AWK" >&6
  18822. +STRIP=$ac_cv_prog_STRIP
  18823. +if test -n "$STRIP"; then
  18824. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  18825. +$as_echo "$STRIP" >&6; }
  18826. else
  18827. - echo "$as_me:$LINENO: result: no" >&5
  18828. -echo "${ECHO_T}no" >&6
  18829. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18830. +$as_echo "no" >&6; }
  18831. fi
  18832. - test -n "$AWK" && break
  18833. -done
  18834. -echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  18835. -echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  18836. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  18837. -if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  18838. - echo $ECHO_N "(cached) $ECHO_C" >&6
  18839. +fi
  18840. +if test -z "$ac_cv_prog_STRIP"; then
  18841. + ac_ct_STRIP=$STRIP
  18842. + # Extract the first word of "strip", so it can be a program name with args.
  18843. +set dummy strip; ac_word=$2
  18844. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18845. +$as_echo_n "checking for $ac_word... " >&6; }
  18846. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  18847. + $as_echo_n "(cached) " >&6
  18848. else
  18849. - cat >conftest.make <<\_ACEOF
  18850. -all:
  18851. - @echo 'ac_maketemp="$(MAKE)"'
  18852. -_ACEOF
  18853. -# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  18854. -eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
  18855. -if test -n "$ac_maketemp"; then
  18856. - eval ac_cv_prog_make_${ac_make}_set=yes
  18857. + if test -n "$ac_ct_STRIP"; then
  18858. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  18859. else
  18860. - eval ac_cv_prog_make_${ac_make}_set=no
  18861. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18862. +for as_dir in $PATH
  18863. +do
  18864. + IFS=$as_save_IFS
  18865. + test -z "$as_dir" && as_dir=.
  18866. + for ac_exec_ext in '' $ac_executable_extensions; do
  18867. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18868. + ac_cv_prog_ac_ct_STRIP="strip"
  18869. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18870. + break 2
  18871. + fi
  18872. +done
  18873. + done
  18874. +IFS=$as_save_IFS
  18875. +
  18876. fi
  18877. -rm -f conftest.make
  18878. fi
  18879. -if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
  18880. - echo "$as_me:$LINENO: result: yes" >&5
  18881. -echo "${ECHO_T}yes" >&6
  18882. - SET_MAKE=
  18883. -else
  18884. - echo "$as_me:$LINENO: result: no" >&5
  18885. -echo "${ECHO_T}no" >&6
  18886. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  18887. +if test -n "$ac_ct_STRIP"; then
  18888. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  18889. +$as_echo "$ac_ct_STRIP" >&6; }
  18890. +else
  18891. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18892. +$as_echo "no" >&6; }
  18893. +fi
  18894. +
  18895. + if test "x$ac_ct_STRIP" = x; then
  18896. + STRIP=":"
  18897. + else
  18898. + case $cross_compiling:$ac_tool_warned in
  18899. +yes:)
  18900. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  18901. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  18902. +ac_tool_warned=yes ;;
  18903. +esac
  18904. + STRIP=$ac_ct_STRIP
  18905. + fi
  18906. +else
  18907. + STRIP="$ac_cv_prog_STRIP"
  18908. +fi
  18909. +
  18910. +fi
  18911. +INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  18912. +
  18913. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  18914. +$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  18915. +if test -z "$MKDIR_P"; then
  18916. + if test "${ac_cv_path_mkdir+set}" = set; then :
  18917. + $as_echo_n "(cached) " >&6
  18918. +else
  18919. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18920. +for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  18921. +do
  18922. + IFS=$as_save_IFS
  18923. + test -z "$as_dir" && as_dir=.
  18924. + for ac_prog in mkdir gmkdir; do
  18925. + for ac_exec_ext in '' $ac_executable_extensions; do
  18926. + { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue
  18927. + case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  18928. + 'mkdir (GNU coreutils) '* | \
  18929. + 'mkdir (coreutils) '* | \
  18930. + 'mkdir (fileutils) '4.1*)
  18931. + ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  18932. + break 3;;
  18933. + esac
  18934. + done
  18935. + done
  18936. + done
  18937. +IFS=$as_save_IFS
  18938. +
  18939. +fi
  18940. +
  18941. + test -d ./--version && rmdir ./--version
  18942. + if test "${ac_cv_path_mkdir+set}" = set; then
  18943. + MKDIR_P="$ac_cv_path_mkdir -p"
  18944. + else
  18945. + # As a last resort, use the slow shell script. Don't cache a
  18946. + # value for MKDIR_P within a source directory, because that will
  18947. + # break other packages using the cache if that directory is
  18948. + # removed, or if the value is a relative name.
  18949. + MKDIR_P="$ac_install_sh -d"
  18950. + fi
  18951. +fi
  18952. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  18953. +$as_echo "$MKDIR_P" >&6; }
  18954. +
  18955. +mkdir_p="$MKDIR_P"
  18956. +case $mkdir_p in
  18957. + [\\/$]* | ?:[\\/]*) ;;
  18958. + */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  18959. +esac
  18960. +
  18961. +for ac_prog in gawk mawk nawk awk
  18962. +do
  18963. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  18964. +set dummy $ac_prog; ac_word=$2
  18965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  18966. +$as_echo_n "checking for $ac_word... " >&6; }
  18967. +if test "${ac_cv_prog_AWK+set}" = set; then :
  18968. + $as_echo_n "(cached) " >&6
  18969. +else
  18970. + if test -n "$AWK"; then
  18971. + ac_cv_prog_AWK="$AWK" # Let the user override the test.
  18972. +else
  18973. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  18974. +for as_dir in $PATH
  18975. +do
  18976. + IFS=$as_save_IFS
  18977. + test -z "$as_dir" && as_dir=.
  18978. + for ac_exec_ext in '' $ac_executable_extensions; do
  18979. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  18980. + ac_cv_prog_AWK="$ac_prog"
  18981. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  18982. + break 2
  18983. + fi
  18984. +done
  18985. + done
  18986. +IFS=$as_save_IFS
  18987. +
  18988. +fi
  18989. +fi
  18990. +AWK=$ac_cv_prog_AWK
  18991. +if test -n "$AWK"; then
  18992. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  18993. +$as_echo "$AWK" >&6; }
  18994. +else
  18995. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  18996. +$as_echo "no" >&6; }
  18997. +fi
  18998. +
  18999. +
  19000. + test -n "$AWK" && break
  19001. +done
  19002. +
  19003. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  19004. +$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  19005. +set x ${MAKE-make}
  19006. +ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  19007. +if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
  19008. + $as_echo_n "(cached) " >&6
  19009. +else
  19010. + cat >conftest.make <<\_ACEOF
  19011. +SHELL = /bin/sh
  19012. +all:
  19013. + @echo '@@@%%%=$(MAKE)=@@@%%%'
  19014. +_ACEOF
  19015. +# GNU make sometimes prints "make[1]: Entering...", which would confuse us.
  19016. +case `${MAKE-make} -f conftest.make 2>/dev/null` in
  19017. + *@@@%%%=?*=@@@%%%*)
  19018. + eval ac_cv_prog_make_${ac_make}_set=yes;;
  19019. + *)
  19020. + eval ac_cv_prog_make_${ac_make}_set=no;;
  19021. +esac
  19022. +rm -f conftest.make
  19023. +fi
  19024. +if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  19025. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19026. +$as_echo "yes" >&6; }
  19027. + SET_MAKE=
  19028. +else
  19029. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19030. +$as_echo "no" >&6; }
  19031. SET_MAKE="MAKE=${MAKE-make}"
  19032. fi
  19033. @@ -1798,12 +2795,14 @@
  19034. fi
  19035. rmdir .tst 2>/dev/null
  19036. -# test to see if srcdir already configured
  19037. -if test "`cd $srcdir && pwd`" != "`pwd`" &&
  19038. - test -f $srcdir/config.status; then
  19039. - { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
  19040. -echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
  19041. - { (exit 1); exit 1; }; }
  19042. +if test "`cd $srcdir && pwd`" != "`pwd`"; then
  19043. + # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  19044. + # is not polluted with repeated "-I."
  19045. + am__isrc=' -I$(srcdir)'
  19046. + # test to see if srcdir already configured
  19047. + if test -f $srcdir/config.status; then
  19048. + as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  19049. + fi
  19050. fi
  19051. # test whether we have cygpath
  19052. @@ -1846,96 +2845,6 @@
  19053. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  19054. -install_sh=${install_sh-"$am_aux_dir/install-sh"}
  19055. -
  19056. -# Installed binaries are usually stripped using `strip' when the user
  19057. -# run `make install-strip'. However `strip' might not be the right
  19058. -# tool to use in cross-compilation environments, therefore Automake
  19059. -# will honor the `STRIP' environment variable to overrule this program.
  19060. -if test "$cross_compiling" != no; then
  19061. - if test -n "$ac_tool_prefix"; then
  19062. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  19063. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  19064. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19065. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19066. -if test "${ac_cv_prog_STRIP+set}" = set; then
  19067. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19068. -else
  19069. - if test -n "$STRIP"; then
  19070. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  19071. -else
  19072. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19073. -for as_dir in $PATH
  19074. -do
  19075. - IFS=$as_save_IFS
  19076. - test -z "$as_dir" && as_dir=.
  19077. - for ac_exec_ext in '' $ac_executable_extensions; do
  19078. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19079. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  19080. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19081. - break 2
  19082. - fi
  19083. -done
  19084. -done
  19085. -
  19086. -fi
  19087. -fi
  19088. -STRIP=$ac_cv_prog_STRIP
  19089. -if test -n "$STRIP"; then
  19090. - echo "$as_me:$LINENO: result: $STRIP" >&5
  19091. -echo "${ECHO_T}$STRIP" >&6
  19092. -else
  19093. - echo "$as_me:$LINENO: result: no" >&5
  19094. -echo "${ECHO_T}no" >&6
  19095. -fi
  19096. -
  19097. -fi
  19098. -if test -z "$ac_cv_prog_STRIP"; then
  19099. - ac_ct_STRIP=$STRIP
  19100. - # Extract the first word of "strip", so it can be a program name with args.
  19101. -set dummy strip; ac_word=$2
  19102. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19103. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19104. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  19105. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19106. -else
  19107. - if test -n "$ac_ct_STRIP"; then
  19108. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  19109. -else
  19110. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19111. -for as_dir in $PATH
  19112. -do
  19113. - IFS=$as_save_IFS
  19114. - test -z "$as_dir" && as_dir=.
  19115. - for ac_exec_ext in '' $ac_executable_extensions; do
  19116. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19117. - ac_cv_prog_ac_ct_STRIP="strip"
  19118. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19119. - break 2
  19120. - fi
  19121. -done
  19122. -done
  19123. -
  19124. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  19125. -fi
  19126. -fi
  19127. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  19128. -if test -n "$ac_ct_STRIP"; then
  19129. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  19130. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  19131. -else
  19132. - echo "$as_me:$LINENO: result: no" >&5
  19133. -echo "${ECHO_T}no" >&6
  19134. -fi
  19135. -
  19136. - STRIP=$ac_ct_STRIP
  19137. -else
  19138. - STRIP="$ac_cv_prog_STRIP"
  19139. -fi
  19140. -
  19141. -fi
  19142. -INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
  19143. -
  19144. # We need awk for the "check" target. The system "awk" is bad on
  19145. # some platforms.
  19146. # Always define AMTAR for backward compatibility.
  19147. @@ -1949,7 +2858,7 @@
  19148. - ac_config_headers="$ac_config_headers config.h"
  19149. +ac_config_headers="$ac_config_headers config.h"
  19150. # Checks for programs.
  19151. @@ -1961,10 +2870,10 @@
  19152. if test -n "$ac_tool_prefix"; then
  19153. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  19154. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  19155. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19156. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19157. -if test "${ac_cv_prog_CC+set}" = set; then
  19158. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19159. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19160. +$as_echo_n "checking for $ac_word... " >&6; }
  19161. +if test "${ac_cv_prog_CC+set}" = set; then :
  19162. + $as_echo_n "(cached) " >&6
  19163. else
  19164. if test -n "$CC"; then
  19165. ac_cv_prog_CC="$CC" # Let the user override the test.
  19166. @@ -1974,35 +2883,37 @@
  19167. do
  19168. IFS=$as_save_IFS
  19169. test -z "$as_dir" && as_dir=.
  19170. - for ac_exec_ext in '' $ac_executable_extensions; do
  19171. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19172. + for ac_exec_ext in '' $ac_executable_extensions; do
  19173. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19174. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  19175. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19176. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19177. break 2
  19178. fi
  19179. done
  19180. -done
  19181. + done
  19182. +IFS=$as_save_IFS
  19183. fi
  19184. fi
  19185. CC=$ac_cv_prog_CC
  19186. if test -n "$CC"; then
  19187. - echo "$as_me:$LINENO: result: $CC" >&5
  19188. -echo "${ECHO_T}$CC" >&6
  19189. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19190. +$as_echo "$CC" >&6; }
  19191. else
  19192. - echo "$as_me:$LINENO: result: no" >&5
  19193. -echo "${ECHO_T}no" >&6
  19194. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19195. +$as_echo "no" >&6; }
  19196. fi
  19197. +
  19198. fi
  19199. if test -z "$ac_cv_prog_CC"; then
  19200. ac_ct_CC=$CC
  19201. # Extract the first word of "gcc", so it can be a program name with args.
  19202. set dummy gcc; ac_word=$2
  19203. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19204. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19205. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19206. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19207. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19208. +$as_echo_n "checking for $ac_word... " >&6; }
  19209. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19210. + $as_echo_n "(cached) " >&6
  19211. else
  19212. if test -n "$ac_ct_CC"; then
  19213. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19214. @@ -2012,39 +2923,50 @@
  19215. do
  19216. IFS=$as_save_IFS
  19217. test -z "$as_dir" && as_dir=.
  19218. - for ac_exec_ext in '' $ac_executable_extensions; do
  19219. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19220. + for ac_exec_ext in '' $ac_executable_extensions; do
  19221. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19222. ac_cv_prog_ac_ct_CC="gcc"
  19223. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19224. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19225. break 2
  19226. fi
  19227. done
  19228. -done
  19229. + done
  19230. +IFS=$as_save_IFS
  19231. fi
  19232. fi
  19233. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19234. if test -n "$ac_ct_CC"; then
  19235. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19236. -echo "${ECHO_T}$ac_ct_CC" >&6
  19237. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19238. +$as_echo "$ac_ct_CC" >&6; }
  19239. else
  19240. - echo "$as_me:$LINENO: result: no" >&5
  19241. -echo "${ECHO_T}no" >&6
  19242. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19243. +$as_echo "no" >&6; }
  19244. fi
  19245. - CC=$ac_ct_CC
  19246. + if test "x$ac_ct_CC" = x; then
  19247. + CC=""
  19248. + else
  19249. + case $cross_compiling:$ac_tool_warned in
  19250. +yes:)
  19251. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19252. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19253. +ac_tool_warned=yes ;;
  19254. +esac
  19255. + CC=$ac_ct_CC
  19256. + fi
  19257. else
  19258. CC="$ac_cv_prog_CC"
  19259. fi
  19260. if test -z "$CC"; then
  19261. - if test -n "$ac_tool_prefix"; then
  19262. - # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  19263. + if test -n "$ac_tool_prefix"; then
  19264. + # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  19265. set dummy ${ac_tool_prefix}cc; ac_word=$2
  19266. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19267. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19268. -if test "${ac_cv_prog_CC+set}" = set; then
  19269. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19270. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19271. +$as_echo_n "checking for $ac_word... " >&6; }
  19272. +if test "${ac_cv_prog_CC+set}" = set; then :
  19273. + $as_echo_n "(cached) " >&6
  19274. else
  19275. if test -n "$CC"; then
  19276. ac_cv_prog_CC="$CC" # Let the user override the test.
  19277. @@ -2054,77 +2976,37 @@
  19278. do
  19279. IFS=$as_save_IFS
  19280. test -z "$as_dir" && as_dir=.
  19281. - for ac_exec_ext in '' $ac_executable_extensions; do
  19282. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19283. + for ac_exec_ext in '' $ac_executable_extensions; do
  19284. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19285. ac_cv_prog_CC="${ac_tool_prefix}cc"
  19286. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19287. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19288. break 2
  19289. fi
  19290. done
  19291. -done
  19292. + done
  19293. +IFS=$as_save_IFS
  19294. fi
  19295. fi
  19296. CC=$ac_cv_prog_CC
  19297. if test -n "$CC"; then
  19298. - echo "$as_me:$LINENO: result: $CC" >&5
  19299. -echo "${ECHO_T}$CC" >&6
  19300. -else
  19301. - echo "$as_me:$LINENO: result: no" >&5
  19302. -echo "${ECHO_T}no" >&6
  19303. -fi
  19304. -
  19305. -fi
  19306. -if test -z "$ac_cv_prog_CC"; then
  19307. - ac_ct_CC=$CC
  19308. - # Extract the first word of "cc", so it can be a program name with args.
  19309. -set dummy cc; ac_word=$2
  19310. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19311. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19312. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19313. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19314. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19315. +$as_echo "$CC" >&6; }
  19316. else
  19317. - if test -n "$ac_ct_CC"; then
  19318. - ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19319. -else
  19320. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  19321. -for as_dir in $PATH
  19322. -do
  19323. - IFS=$as_save_IFS
  19324. - test -z "$as_dir" && as_dir=.
  19325. - for ac_exec_ext in '' $ac_executable_extensions; do
  19326. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19327. - ac_cv_prog_ac_ct_CC="cc"
  19328. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19329. - break 2
  19330. - fi
  19331. -done
  19332. -done
  19333. -
  19334. -fi
  19335. -fi
  19336. -ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19337. -if test -n "$ac_ct_CC"; then
  19338. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19339. -echo "${ECHO_T}$ac_ct_CC" >&6
  19340. -else
  19341. - echo "$as_me:$LINENO: result: no" >&5
  19342. -echo "${ECHO_T}no" >&6
  19343. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19344. +$as_echo "no" >&6; }
  19345. fi
  19346. - CC=$ac_ct_CC
  19347. -else
  19348. - CC="$ac_cv_prog_CC"
  19349. -fi
  19350. + fi
  19351. fi
  19352. if test -z "$CC"; then
  19353. # Extract the first word of "cc", so it can be a program name with args.
  19354. set dummy cc; ac_word=$2
  19355. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19356. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19357. -if test "${ac_cv_prog_CC+set}" = set; then
  19358. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19359. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19360. +$as_echo_n "checking for $ac_word... " >&6; }
  19361. +if test "${ac_cv_prog_CC+set}" = set; then :
  19362. + $as_echo_n "(cached) " >&6
  19363. else
  19364. if test -n "$CC"; then
  19365. ac_cv_prog_CC="$CC" # Let the user override the test.
  19366. @@ -2135,18 +3017,19 @@
  19367. do
  19368. IFS=$as_save_IFS
  19369. test -z "$as_dir" && as_dir=.
  19370. - for ac_exec_ext in '' $ac_executable_extensions; do
  19371. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19372. + for ac_exec_ext in '' $ac_executable_extensions; do
  19373. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19374. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  19375. ac_prog_rejected=yes
  19376. continue
  19377. fi
  19378. ac_cv_prog_CC="cc"
  19379. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19380. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19381. break 2
  19382. fi
  19383. done
  19384. -done
  19385. + done
  19386. +IFS=$as_save_IFS
  19387. if test $ac_prog_rejected = yes; then
  19388. # We found a bogon in the path, so make sure we never use it.
  19389. @@ -2164,24 +3047,25 @@
  19390. fi
  19391. CC=$ac_cv_prog_CC
  19392. if test -n "$CC"; then
  19393. - echo "$as_me:$LINENO: result: $CC" >&5
  19394. -echo "${ECHO_T}$CC" >&6
  19395. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19396. +$as_echo "$CC" >&6; }
  19397. else
  19398. - echo "$as_me:$LINENO: result: no" >&5
  19399. -echo "${ECHO_T}no" >&6
  19400. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19401. +$as_echo "no" >&6; }
  19402. fi
  19403. +
  19404. fi
  19405. if test -z "$CC"; then
  19406. if test -n "$ac_tool_prefix"; then
  19407. - for ac_prog in cl
  19408. + for ac_prog in cl.exe
  19409. do
  19410. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  19411. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  19412. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19413. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19414. -if test "${ac_cv_prog_CC+set}" = set; then
  19415. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19416. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19417. +$as_echo_n "checking for $ac_word... " >&6; }
  19418. +if test "${ac_cv_prog_CC+set}" = set; then :
  19419. + $as_echo_n "(cached) " >&6
  19420. else
  19421. if test -n "$CC"; then
  19422. ac_cv_prog_CC="$CC" # Let the user override the test.
  19423. @@ -2191,39 +3075,41 @@
  19424. do
  19425. IFS=$as_save_IFS
  19426. test -z "$as_dir" && as_dir=.
  19427. - for ac_exec_ext in '' $ac_executable_extensions; do
  19428. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19429. + for ac_exec_ext in '' $ac_executable_extensions; do
  19430. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19431. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  19432. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19433. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19434. break 2
  19435. fi
  19436. done
  19437. -done
  19438. + done
  19439. +IFS=$as_save_IFS
  19440. fi
  19441. fi
  19442. CC=$ac_cv_prog_CC
  19443. if test -n "$CC"; then
  19444. - echo "$as_me:$LINENO: result: $CC" >&5
  19445. -echo "${ECHO_T}$CC" >&6
  19446. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  19447. +$as_echo "$CC" >&6; }
  19448. else
  19449. - echo "$as_me:$LINENO: result: no" >&5
  19450. -echo "${ECHO_T}no" >&6
  19451. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19452. +$as_echo "no" >&6; }
  19453. fi
  19454. +
  19455. test -n "$CC" && break
  19456. done
  19457. fi
  19458. if test -z "$CC"; then
  19459. ac_ct_CC=$CC
  19460. - for ac_prog in cl
  19461. + for ac_prog in cl.exe
  19462. do
  19463. # Extract the first word of "$ac_prog", so it can be a program name with args.
  19464. set dummy $ac_prog; ac_word=$2
  19465. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  19466. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  19467. -if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
  19468. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19469. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  19470. +$as_echo_n "checking for $ac_word... " >&6; }
  19471. +if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
  19472. + $as_echo_n "(cached) " >&6
  19473. else
  19474. if test -n "$ac_ct_CC"; then
  19475. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  19476. @@ -2233,66 +3119,78 @@
  19477. do
  19478. IFS=$as_save_IFS
  19479. test -z "$as_dir" && as_dir=.
  19480. - for ac_exec_ext in '' $ac_executable_extensions; do
  19481. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  19482. + for ac_exec_ext in '' $ac_executable_extensions; do
  19483. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  19484. ac_cv_prog_ac_ct_CC="$ac_prog"
  19485. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  19486. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  19487. break 2
  19488. fi
  19489. done
  19490. -done
  19491. + done
  19492. +IFS=$as_save_IFS
  19493. fi
  19494. fi
  19495. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  19496. if test -n "$ac_ct_CC"; then
  19497. - echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
  19498. -echo "${ECHO_T}$ac_ct_CC" >&6
  19499. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  19500. +$as_echo "$ac_ct_CC" >&6; }
  19501. else
  19502. - echo "$as_me:$LINENO: result: no" >&5
  19503. -echo "${ECHO_T}no" >&6
  19504. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19505. +$as_echo "no" >&6; }
  19506. fi
  19507. +
  19508. test -n "$ac_ct_CC" && break
  19509. done
  19510. - CC=$ac_ct_CC
  19511. + if test "x$ac_ct_CC" = x; then
  19512. + CC=""
  19513. + else
  19514. + case $cross_compiling:$ac_tool_warned in
  19515. +yes:)
  19516. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  19517. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  19518. +ac_tool_warned=yes ;;
  19519. +esac
  19520. + CC=$ac_ct_CC
  19521. + fi
  19522. fi
  19523. fi
  19524. -test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
  19525. -See \`config.log' for more details." >&5
  19526. -echo "$as_me: error: no acceptable C compiler found in \$PATH
  19527. -See \`config.log' for more details." >&2;}
  19528. - { (exit 1); exit 1; }; }
  19529. +test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19530. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19531. +as_fn_error "no acceptable C compiler found in \$PATH
  19532. +See \`config.log' for more details." "$LINENO" 5; }
  19533. # Provide some information about the compiler.
  19534. -echo "$as_me:$LINENO:" \
  19535. - "checking for C compiler version" >&5
  19536. -ac_compiler=`set X $ac_compile; echo $2`
  19537. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  19538. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  19539. - ac_status=$?
  19540. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19541. - (exit $ac_status); }
  19542. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  19543. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  19544. +$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  19545. +set X $ac_compile
  19546. +ac_compiler=$2
  19547. +for ac_option in --version -v -V -qversion; do
  19548. + { { ac_try="$ac_compiler $ac_option >&5"
  19549. +case "(($ac_try" in
  19550. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19551. + *) ac_try_echo=$ac_try;;
  19552. +esac
  19553. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19554. +$as_echo "$ac_try_echo"; } >&5
  19555. + (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  19556. ac_status=$?
  19557. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19558. - (exit $ac_status); }
  19559. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  19560. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  19561. - ac_status=$?
  19562. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19563. - (exit $ac_status); }
  19564. + if test -s conftest.err; then
  19565. + sed '10a\
  19566. +... rest of stderr output deleted ...
  19567. + 10q' conftest.err >conftest.er1
  19568. + cat conftest.er1 >&5
  19569. + fi
  19570. + rm -f conftest.er1 conftest.err
  19571. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19572. + test $ac_status = 0; }
  19573. +done
  19574. -cat >conftest.$ac_ext <<_ACEOF
  19575. -/* confdefs.h. */
  19576. -_ACEOF
  19577. -cat confdefs.h >>conftest.$ac_ext
  19578. -cat >>conftest.$ac_ext <<_ACEOF
  19579. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19580. /* end confdefs.h. */
  19581. int
  19582. @@ -2304,112 +3202,109 @@
  19583. }
  19584. _ACEOF
  19585. ac_clean_files_save=$ac_clean_files
  19586. -ac_clean_files="$ac_clean_files a.out a.exe b.out"
  19587. +ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  19588. # Try to create an executable without -o first, disregard a.out.
  19589. # It will help us diagnose broken compilers, and finding out an intuition
  19590. # of exeext.
  19591. -echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  19592. -echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  19593. -ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19594. -if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  19595. - (eval $ac_link_default) 2>&5
  19596. - ac_status=$?
  19597. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19598. - (exit $ac_status); }; then
  19599. - # Find the output, starting from the most likely. This scheme is
  19600. -# not robust to junk in `.', hence go to wildcards (a.*) only as a last
  19601. -# resort.
  19602. -
  19603. -# Be careful to initialize this variable, since it used to be cached.
  19604. -# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
  19605. -ac_cv_exeext=
  19606. -# b.out is created by i960 compilers.
  19607. -for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
  19608. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  19609. +$as_echo_n "checking whether the C compiler works... " >&6; }
  19610. +ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  19611. +
  19612. +# The possible output files:
  19613. +ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  19614. +
  19615. +ac_rmfiles=
  19616. +for ac_file in $ac_files
  19617. +do
  19618. + case $ac_file in
  19619. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  19620. + * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  19621. + esac
  19622. +done
  19623. +rm -f $ac_rmfiles
  19624. +
  19625. +if { { ac_try="$ac_link_default"
  19626. +case "(($ac_try" in
  19627. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19628. + *) ac_try_echo=$ac_try;;
  19629. +esac
  19630. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19631. +$as_echo "$ac_try_echo"; } >&5
  19632. + (eval "$ac_link_default") 2>&5
  19633. + ac_status=$?
  19634. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19635. + test $ac_status = 0; }; then :
  19636. + # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  19637. +# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  19638. +# in a Makefile. We should not override ac_cv_exeext if it was cached,
  19639. +# so that the user can short-circuit this test for compilers unknown to
  19640. +# Autoconf.
  19641. +for ac_file in $ac_files ''
  19642. do
  19643. test -f "$ac_file" || continue
  19644. case $ac_file in
  19645. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  19646. - ;;
  19647. - conftest.$ac_ext )
  19648. - # This is the source file.
  19649. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  19650. ;;
  19651. [ab].out )
  19652. # We found the default executable, but exeext='' is most
  19653. # certainly right.
  19654. break;;
  19655. *.* )
  19656. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19657. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  19658. - # but it would be cool to find out if it's true. Does anybody
  19659. - # maintain Libtool? --akim.
  19660. - export ac_cv_exeext
  19661. + if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  19662. + then :; else
  19663. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19664. + fi
  19665. + # We set ac_cv_exeext here because the later test for it is not
  19666. + # safe: cross compilers may not add the suffix if given an `-o'
  19667. + # argument, so we may need to know it at that point already.
  19668. + # Even if this section looks crufty: it has the advantage of
  19669. + # actually working.
  19670. break;;
  19671. * )
  19672. break;;
  19673. esac
  19674. done
  19675. +test "$ac_cv_exeext" = no && ac_cv_exeext=
  19676. +
  19677. else
  19678. - echo "$as_me: failed program was:" >&5
  19679. + ac_file=''
  19680. +fi
  19681. +if test -z "$ac_file"; then :
  19682. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  19683. +$as_echo "no" >&6; }
  19684. +$as_echo "$as_me: failed program was:" >&5
  19685. sed 's/^/| /' conftest.$ac_ext >&5
  19686. -{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
  19687. -See \`config.log' for more details." >&5
  19688. -echo "$as_me: error: C compiler cannot create executables
  19689. -See \`config.log' for more details." >&2;}
  19690. - { (exit 77); exit 77; }; }
  19691. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19692. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19693. +{ as_fn_set_status 77
  19694. +as_fn_error "C compiler cannot create executables
  19695. +See \`config.log' for more details." "$LINENO" 5; }; }
  19696. +else
  19697. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  19698. +$as_echo "yes" >&6; }
  19699. fi
  19700. -
  19701. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  19702. +$as_echo_n "checking for C compiler default output file name... " >&6; }
  19703. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  19704. +$as_echo "$ac_file" >&6; }
  19705. ac_exeext=$ac_cv_exeext
  19706. -echo "$as_me:$LINENO: result: $ac_file" >&5
  19707. -echo "${ECHO_T}$ac_file" >&6
  19708. -
  19709. -# Check the compiler produces executables we can run. If not, either
  19710. -# the compiler is broken, or we cross compile.
  19711. -echo "$as_me:$LINENO: checking whether the C compiler works" >&5
  19712. -echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
  19713. -# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
  19714. -# If not cross compiling, check that we can run a simple program.
  19715. -if test "$cross_compiling" != yes; then
  19716. - if { ac_try='./$ac_file'
  19717. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19718. - (eval $ac_try) 2>&5
  19719. - ac_status=$?
  19720. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19721. - (exit $ac_status); }; }; then
  19722. - cross_compiling=no
  19723. - else
  19724. - if test "$cross_compiling" = maybe; then
  19725. - cross_compiling=yes
  19726. - else
  19727. - { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
  19728. -If you meant to cross compile, use \`--host'.
  19729. -See \`config.log' for more details." >&5
  19730. -echo "$as_me: error: cannot run C compiled programs.
  19731. -If you meant to cross compile, use \`--host'.
  19732. -See \`config.log' for more details." >&2;}
  19733. - { (exit 1); exit 1; }; }
  19734. - fi
  19735. - fi
  19736. -fi
  19737. -echo "$as_me:$LINENO: result: yes" >&5
  19738. -echo "${ECHO_T}yes" >&6
  19739. -rm -f a.out a.exe conftest$ac_cv_exeext b.out
  19740. +rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  19741. ac_clean_files=$ac_clean_files_save
  19742. -# Check the compiler produces executables we can run. If not, either
  19743. -# the compiler is broken, or we cross compile.
  19744. -echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
  19745. -echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
  19746. -echo "$as_me:$LINENO: result: $cross_compiling" >&5
  19747. -echo "${ECHO_T}$cross_compiling" >&6
  19748. -
  19749. -echo "$as_me:$LINENO: checking for suffix of executables" >&5
  19750. -echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
  19751. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  19752. - (eval $ac_link) 2>&5
  19753. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  19754. +$as_echo_n "checking for suffix of executables... " >&6; }
  19755. +if { { ac_try="$ac_link"
  19756. +case "(($ac_try" in
  19757. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19758. + *) ac_try_echo=$ac_try;;
  19759. +esac
  19760. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19761. +$as_echo "$ac_try_echo"; } >&5
  19762. + (eval "$ac_link") 2>&5
  19763. ac_status=$?
  19764. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19765. - (exit $ac_status); }; then
  19766. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19767. + test $ac_status = 0; }; then :
  19768. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  19769. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  19770. # work properly (i.e., refer to `conftest.exe'), while it won't with
  19771. @@ -2417,88 +3312,141 @@
  19772. for ac_file in conftest.exe conftest conftest.*; do
  19773. test -f "$ac_file" || continue
  19774. case $ac_file in
  19775. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  19776. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  19777. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  19778. - export ac_cv_exeext
  19779. break;;
  19780. * ) break;;
  19781. esac
  19782. done
  19783. else
  19784. - { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
  19785. -See \`config.log' for more details." >&5
  19786. -echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
  19787. -See \`config.log' for more details." >&2;}
  19788. - { (exit 1); exit 1; }; }
  19789. -fi
  19790. -
  19791. -rm -f conftest$ac_cv_exeext
  19792. -echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
  19793. -echo "${ECHO_T}$ac_cv_exeext" >&6
  19794. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19795. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19796. +as_fn_error "cannot compute suffix of executables: cannot compile and link
  19797. +See \`config.log' for more details." "$LINENO" 5; }
  19798. +fi
  19799. +rm -f conftest conftest$ac_cv_exeext
  19800. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  19801. +$as_echo "$ac_cv_exeext" >&6; }
  19802. rm -f conftest.$ac_ext
  19803. EXEEXT=$ac_cv_exeext
  19804. ac_exeext=$EXEEXT
  19805. -echo "$as_me:$LINENO: checking for suffix of object files" >&5
  19806. -echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
  19807. -if test "${ac_cv_objext+set}" = set; then
  19808. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19809. -else
  19810. - cat >conftest.$ac_ext <<_ACEOF
  19811. -/* confdefs.h. */
  19812. -_ACEOF
  19813. -cat confdefs.h >>conftest.$ac_ext
  19814. -cat >>conftest.$ac_ext <<_ACEOF
  19815. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19816. /* end confdefs.h. */
  19817. -
  19818. +#include <stdio.h>
  19819. int
  19820. main ()
  19821. {
  19822. +FILE *f = fopen ("conftest.out", "w");
  19823. + return ferror (f) || fclose (f) != 0;
  19824. ;
  19825. return 0;
  19826. }
  19827. _ACEOF
  19828. -rm -f conftest.o conftest.obj
  19829. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19830. - (eval $ac_compile) 2>&5
  19831. +ac_clean_files="$ac_clean_files conftest.out"
  19832. +# Check that the compiler produces executables we can run. If not, either
  19833. +# the compiler is broken, or we cross compile.
  19834. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  19835. +$as_echo_n "checking whether we are cross compiling... " >&6; }
  19836. +if test "$cross_compiling" != yes; then
  19837. + { { ac_try="$ac_link"
  19838. +case "(($ac_try" in
  19839. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19840. + *) ac_try_echo=$ac_try;;
  19841. +esac
  19842. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19843. +$as_echo "$ac_try_echo"; } >&5
  19844. + (eval "$ac_link") 2>&5
  19845. + ac_status=$?
  19846. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19847. + test $ac_status = 0; }
  19848. + if { ac_try='./conftest$ac_cv_exeext'
  19849. + { { case "(($ac_try" in
  19850. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19851. + *) ac_try_echo=$ac_try;;
  19852. +esac
  19853. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19854. +$as_echo "$ac_try_echo"; } >&5
  19855. + (eval "$ac_try") 2>&5
  19856. ac_status=$?
  19857. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19858. - (exit $ac_status); }; then
  19859. - for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
  19860. - case $ac_file in
  19861. - *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
  19862. - *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  19863. - break;;
  19864. - esac
  19865. -done
  19866. -else
  19867. - echo "$as_me: failed program was:" >&5
  19868. -sed 's/^/| /' conftest.$ac_ext >&5
  19869. -
  19870. -{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
  19871. -See \`config.log' for more details." >&5
  19872. -echo "$as_me: error: cannot compute suffix of object files: cannot compile
  19873. -See \`config.log' for more details." >&2;}
  19874. - { (exit 1); exit 1; }; }
  19875. -fi
  19876. -
  19877. -rm -f conftest.$ac_cv_objext conftest.$ac_ext
  19878. -fi
  19879. -echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
  19880. -echo "${ECHO_T}$ac_cv_objext" >&6
  19881. -OBJEXT=$ac_cv_objext
  19882. -ac_objext=$OBJEXT
  19883. -echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
  19884. -echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
  19885. -if test "${ac_cv_c_compiler_gnu+set}" = set; then
  19886. - echo $ECHO_N "(cached) $ECHO_C" >&6
  19887. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19888. + test $ac_status = 0; }; }; then
  19889. + cross_compiling=no
  19890. + else
  19891. + if test "$cross_compiling" = maybe; then
  19892. + cross_compiling=yes
  19893. + else
  19894. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19895. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19896. +as_fn_error "cannot run C compiled programs.
  19897. +If you meant to cross compile, use \`--host'.
  19898. +See \`config.log' for more details." "$LINENO" 5; }
  19899. + fi
  19900. + fi
  19901. +fi
  19902. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  19903. +$as_echo "$cross_compiling" >&6; }
  19904. +
  19905. +rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  19906. +ac_clean_files=$ac_clean_files_save
  19907. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  19908. +$as_echo_n "checking for suffix of object files... " >&6; }
  19909. +if test "${ac_cv_objext+set}" = set; then :
  19910. + $as_echo_n "(cached) " >&6
  19911. else
  19912. - cat >conftest.$ac_ext <<_ACEOF
  19913. -/* confdefs.h. */
  19914. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19915. +/* end confdefs.h. */
  19916. +
  19917. +int
  19918. +main ()
  19919. +{
  19920. +
  19921. + ;
  19922. + return 0;
  19923. +}
  19924. _ACEOF
  19925. -cat confdefs.h >>conftest.$ac_ext
  19926. -cat >>conftest.$ac_ext <<_ACEOF
  19927. +rm -f conftest.o conftest.obj
  19928. +if { { ac_try="$ac_compile"
  19929. +case "(($ac_try" in
  19930. + *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  19931. + *) ac_try_echo=$ac_try;;
  19932. +esac
  19933. +eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  19934. +$as_echo "$ac_try_echo"; } >&5
  19935. + (eval "$ac_compile") 2>&5
  19936. + ac_status=$?
  19937. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  19938. + test $ac_status = 0; }; then :
  19939. + for ac_file in conftest.o conftest.obj conftest.*; do
  19940. + test -f "$ac_file" || continue;
  19941. + case $ac_file in
  19942. + *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  19943. + *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  19944. + break;;
  19945. + esac
  19946. +done
  19947. +else
  19948. + $as_echo "$as_me: failed program was:" >&5
  19949. +sed 's/^/| /' conftest.$ac_ext >&5
  19950. +
  19951. +{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  19952. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  19953. +as_fn_error "cannot compute suffix of object files: cannot compile
  19954. +See \`config.log' for more details." "$LINENO" 5; }
  19955. +fi
  19956. +rm -f conftest.$ac_cv_objext conftest.$ac_ext
  19957. +fi
  19958. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  19959. +$as_echo "$ac_cv_objext" >&6; }
  19960. +OBJEXT=$ac_cv_objext
  19961. +ac_objext=$OBJEXT
  19962. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  19963. +$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  19964. +if test "${ac_cv_c_compiler_gnu+set}" = set; then :
  19965. + $as_echo_n "(cached) " >&6
  19966. +else
  19967. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  19968. /* end confdefs.h. */
  19969. int
  19970. @@ -2512,55 +3460,34 @@
  19971. return 0;
  19972. }
  19973. _ACEOF
  19974. -rm -f conftest.$ac_objext
  19975. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  19976. - (eval $ac_compile) 2>conftest.er1
  19977. - ac_status=$?
  19978. - grep -v '^ *+' conftest.er1 >conftest.err
  19979. - rm -f conftest.er1
  19980. - cat conftest.err >&5
  19981. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19982. - (exit $ac_status); } &&
  19983. - { ac_try='test -z "$ac_c_werror_flag"
  19984. - || test ! -s conftest.err'
  19985. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19986. - (eval $ac_try) 2>&5
  19987. - ac_status=$?
  19988. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19989. - (exit $ac_status); }; } &&
  19990. - { ac_try='test -s conftest.$ac_objext'
  19991. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  19992. - (eval $ac_try) 2>&5
  19993. - ac_status=$?
  19994. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  19995. - (exit $ac_status); }; }; then
  19996. +if ac_fn_c_try_compile "$LINENO"; then :
  19997. ac_compiler_gnu=yes
  19998. else
  19999. - echo "$as_me: failed program was:" >&5
  20000. -sed 's/^/| /' conftest.$ac_ext >&5
  20001. -
  20002. -ac_compiler_gnu=no
  20003. + ac_compiler_gnu=no
  20004. fi
  20005. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20006. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20007. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  20008. fi
  20009. -echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
  20010. -echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
  20011. -GCC=`test $ac_compiler_gnu = yes && echo yes`
  20012. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  20013. +$as_echo "$ac_cv_c_compiler_gnu" >&6; }
  20014. +if test $ac_compiler_gnu = yes; then
  20015. + GCC=yes
  20016. +else
  20017. + GCC=
  20018. +fi
  20019. ac_test_CFLAGS=${CFLAGS+set}
  20020. ac_save_CFLAGS=$CFLAGS
  20021. -CFLAGS="-g"
  20022. -echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
  20023. -echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
  20024. -if test "${ac_cv_prog_cc_g+set}" = set; then
  20025. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20026. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  20027. +$as_echo_n "checking whether $CC accepts -g... " >&6; }
  20028. +if test "${ac_cv_prog_cc_g+set}" = set; then :
  20029. + $as_echo_n "(cached) " >&6
  20030. else
  20031. - cat >conftest.$ac_ext <<_ACEOF
  20032. -/* confdefs.h. */
  20033. -_ACEOF
  20034. -cat confdefs.h >>conftest.$ac_ext
  20035. -cat >>conftest.$ac_ext <<_ACEOF
  20036. + ac_save_c_werror_flag=$ac_c_werror_flag
  20037. + ac_c_werror_flag=yes
  20038. + ac_cv_prog_cc_g=no
  20039. + CFLAGS="-g"
  20040. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20041. /* end confdefs.h. */
  20042. int
  20043. @@ -2571,39 +3498,49 @@
  20044. return 0;
  20045. }
  20046. _ACEOF
  20047. -rm -f conftest.$ac_objext
  20048. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20049. - (eval $ac_compile) 2>conftest.er1
  20050. - ac_status=$?
  20051. - grep -v '^ *+' conftest.er1 >conftest.err
  20052. - rm -f conftest.er1
  20053. - cat conftest.err >&5
  20054. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20055. - (exit $ac_status); } &&
  20056. - { ac_try='test -z "$ac_c_werror_flag"
  20057. - || test ! -s conftest.err'
  20058. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20059. - (eval $ac_try) 2>&5
  20060. - ac_status=$?
  20061. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20062. - (exit $ac_status); }; } &&
  20063. - { ac_try='test -s conftest.$ac_objext'
  20064. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20065. - (eval $ac_try) 2>&5
  20066. - ac_status=$?
  20067. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20068. - (exit $ac_status); }; }; then
  20069. +if ac_fn_c_try_compile "$LINENO"; then :
  20070. ac_cv_prog_cc_g=yes
  20071. else
  20072. - echo "$as_me: failed program was:" >&5
  20073. -sed 's/^/| /' conftest.$ac_ext >&5
  20074. + CFLAGS=""
  20075. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20076. +/* end confdefs.h. */
  20077. +
  20078. +int
  20079. +main ()
  20080. +{
  20081. +
  20082. + ;
  20083. + return 0;
  20084. +}
  20085. +_ACEOF
  20086. +if ac_fn_c_try_compile "$LINENO"; then :
  20087. +
  20088. +else
  20089. + ac_c_werror_flag=$ac_save_c_werror_flag
  20090. + CFLAGS="-g"
  20091. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20092. +/* end confdefs.h. */
  20093. +
  20094. +int
  20095. +main ()
  20096. +{
  20097. -ac_cv_prog_cc_g=no
  20098. + ;
  20099. + return 0;
  20100. +}
  20101. +_ACEOF
  20102. +if ac_fn_c_try_compile "$LINENO"; then :
  20103. + ac_cv_prog_cc_g=yes
  20104. fi
  20105. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20106. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20107. fi
  20108. -echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  20109. -echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  20110. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20111. +fi
  20112. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  20113. + ac_c_werror_flag=$ac_save_c_werror_flag
  20114. +fi
  20115. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  20116. +$as_echo "$ac_cv_prog_cc_g" >&6; }
  20117. if test "$ac_test_CFLAGS" = set; then
  20118. CFLAGS=$ac_save_CFLAGS
  20119. elif test $ac_cv_prog_cc_g = yes; then
  20120. @@ -2619,18 +3556,14 @@
  20121. CFLAGS=
  20122. fi
  20123. fi
  20124. -echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
  20125. -echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
  20126. -if test "${ac_cv_prog_cc_stdc+set}" = set; then
  20127. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20128. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  20129. +$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  20130. +if test "${ac_cv_prog_cc_c89+set}" = set; then :
  20131. + $as_echo_n "(cached) " >&6
  20132. else
  20133. - ac_cv_prog_cc_stdc=no
  20134. + ac_cv_prog_cc_c89=no
  20135. ac_save_CC=$CC
  20136. -cat >conftest.$ac_ext <<_ACEOF
  20137. -/* confdefs.h. */
  20138. -_ACEOF
  20139. -cat confdefs.h >>conftest.$ac_ext
  20140. -cat >>conftest.$ac_ext <<_ACEOF
  20141. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  20142. /* end confdefs.h. */
  20143. #include <stdarg.h>
  20144. #include <stdio.h>
  20145. @@ -2658,12 +3591,17 @@
  20146. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  20147. function prototypes and stuff, but not '\xHH' hex character constants.
  20148. These don't provoke an error unfortunately, instead are silently treated
  20149. - as 'x'. The following induces an error, until -std1 is added to get
  20150. + as 'x'. The following induces an error, until -std is added to get
  20151. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  20152. array size at least. It's necessary to write '\x00'==0 to get something
  20153. - that's true only with -std1. */
  20154. + that's true only with -std. */
  20155. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  20156. +/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  20157. + inside strings and character constants. */
  20158. +#define FOO(x) 'x'
  20159. +int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  20160. +
  20161. int test (int i, double x);
  20162. struct s1 {int (*f) (int a);};
  20163. struct s2 {int (*f) (double a);};
  20164. @@ -2678,205 +3616,37 @@
  20165. return 0;
  20166. }
  20167. _ACEOF
  20168. -# Don't try gcc -ansi; that turns off useful extensions and
  20169. -# breaks some systems' header files.
  20170. -# AIX -qlanglvl=ansi
  20171. -# Ultrix and OSF/1 -std1
  20172. -# HP-UX 10.20 and later -Ae
  20173. -# HP-UX older versions -Aa -D_HPUX_SOURCE
  20174. -# SVR4 -Xc -D__EXTENSIONS__
  20175. -for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  20176. +for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  20177. + -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  20178. do
  20179. CC="$ac_save_CC $ac_arg"
  20180. - rm -f conftest.$ac_objext
  20181. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20182. - (eval $ac_compile) 2>conftest.er1
  20183. - ac_status=$?
  20184. - grep -v '^ *+' conftest.er1 >conftest.err
  20185. - rm -f conftest.er1
  20186. - cat conftest.err >&5
  20187. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20188. - (exit $ac_status); } &&
  20189. - { ac_try='test -z "$ac_c_werror_flag"
  20190. - || test ! -s conftest.err'
  20191. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20192. - (eval $ac_try) 2>&5
  20193. - ac_status=$?
  20194. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20195. - (exit $ac_status); }; } &&
  20196. - { ac_try='test -s conftest.$ac_objext'
  20197. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20198. - (eval $ac_try) 2>&5
  20199. - ac_status=$?
  20200. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20201. - (exit $ac_status); }; }; then
  20202. - ac_cv_prog_cc_stdc=$ac_arg
  20203. -break
  20204. -else
  20205. - echo "$as_me: failed program was:" >&5
  20206. -sed 's/^/| /' conftest.$ac_ext >&5
  20207. -
  20208. + if ac_fn_c_try_compile "$LINENO"; then :
  20209. + ac_cv_prog_cc_c89=$ac_arg
  20210. fi
  20211. -rm -f conftest.err conftest.$ac_objext
  20212. +rm -f core conftest.err conftest.$ac_objext
  20213. + test "x$ac_cv_prog_cc_c89" != "xno" && break
  20214. done
  20215. -rm -f conftest.$ac_ext conftest.$ac_objext
  20216. +rm -f conftest.$ac_ext
  20217. CC=$ac_save_CC
  20218. fi
  20219. -
  20220. -case "x$ac_cv_prog_cc_stdc" in
  20221. - x|xno)
  20222. - echo "$as_me:$LINENO: result: none needed" >&5
  20223. -echo "${ECHO_T}none needed" >&6 ;;
  20224. +# AC_CACHE_VAL
  20225. +case "x$ac_cv_prog_cc_c89" in
  20226. + x)
  20227. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  20228. +$as_echo "none needed" >&6; } ;;
  20229. + xno)
  20230. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  20231. +$as_echo "unsupported" >&6; } ;;
  20232. *)
  20233. - echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
  20234. -echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
  20235. - CC="$CC $ac_cv_prog_cc_stdc" ;;
  20236. + CC="$CC $ac_cv_prog_cc_c89"
  20237. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  20238. +$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  20239. esac
  20240. -
  20241. -# Some people use a C++ compiler to compile C. Since we use `exit',
  20242. -# in C++ we need to declare it. In case someone uses the same compiler
  20243. -# for both compiling C and C++ we need to have the C++ compiler decide
  20244. -# the declaration of exit, since it's the most demanding environment.
  20245. -cat >conftest.$ac_ext <<_ACEOF
  20246. -#ifndef __cplusplus
  20247. - choke me
  20248. -#endif
  20249. -_ACEOF
  20250. -rm -f conftest.$ac_objext
  20251. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20252. - (eval $ac_compile) 2>conftest.er1
  20253. - ac_status=$?
  20254. - grep -v '^ *+' conftest.er1 >conftest.err
  20255. - rm -f conftest.er1
  20256. - cat conftest.err >&5
  20257. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20258. - (exit $ac_status); } &&
  20259. - { ac_try='test -z "$ac_c_werror_flag"
  20260. - || test ! -s conftest.err'
  20261. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20262. - (eval $ac_try) 2>&5
  20263. - ac_status=$?
  20264. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20265. - (exit $ac_status); }; } &&
  20266. - { ac_try='test -s conftest.$ac_objext'
  20267. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20268. - (eval $ac_try) 2>&5
  20269. - ac_status=$?
  20270. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20271. - (exit $ac_status); }; }; then
  20272. - for ac_declaration in \
  20273. - '' \
  20274. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  20275. - 'extern "C" void std::exit (int); using std::exit;' \
  20276. - 'extern "C" void exit (int) throw ();' \
  20277. - 'extern "C" void exit (int);' \
  20278. - 'void exit (int);'
  20279. -do
  20280. - cat >conftest.$ac_ext <<_ACEOF
  20281. -/* confdefs.h. */
  20282. -_ACEOF
  20283. -cat confdefs.h >>conftest.$ac_ext
  20284. -cat >>conftest.$ac_ext <<_ACEOF
  20285. -/* end confdefs.h. */
  20286. -$ac_declaration
  20287. -#include <stdlib.h>
  20288. -int
  20289. -main ()
  20290. -{
  20291. -exit (42);
  20292. - ;
  20293. - return 0;
  20294. -}
  20295. -_ACEOF
  20296. -rm -f conftest.$ac_objext
  20297. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20298. - (eval $ac_compile) 2>conftest.er1
  20299. - ac_status=$?
  20300. - grep -v '^ *+' conftest.er1 >conftest.err
  20301. - rm -f conftest.er1
  20302. - cat conftest.err >&5
  20303. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20304. - (exit $ac_status); } &&
  20305. - { ac_try='test -z "$ac_c_werror_flag"
  20306. - || test ! -s conftest.err'
  20307. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20308. - (eval $ac_try) 2>&5
  20309. - ac_status=$?
  20310. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20311. - (exit $ac_status); }; } &&
  20312. - { ac_try='test -s conftest.$ac_objext'
  20313. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20314. - (eval $ac_try) 2>&5
  20315. - ac_status=$?
  20316. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20317. - (exit $ac_status); }; }; then
  20318. - :
  20319. -else
  20320. - echo "$as_me: failed program was:" >&5
  20321. -sed 's/^/| /' conftest.$ac_ext >&5
  20322. -
  20323. -continue
  20324. -fi
  20325. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20326. - cat >conftest.$ac_ext <<_ACEOF
  20327. -/* confdefs.h. */
  20328. -_ACEOF
  20329. -cat confdefs.h >>conftest.$ac_ext
  20330. -cat >>conftest.$ac_ext <<_ACEOF
  20331. -/* end confdefs.h. */
  20332. -$ac_declaration
  20333. -int
  20334. -main ()
  20335. -{
  20336. -exit (42);
  20337. - ;
  20338. - return 0;
  20339. -}
  20340. -_ACEOF
  20341. -rm -f conftest.$ac_objext
  20342. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  20343. - (eval $ac_compile) 2>conftest.er1
  20344. - ac_status=$?
  20345. - grep -v '^ *+' conftest.er1 >conftest.err
  20346. - rm -f conftest.er1
  20347. - cat conftest.err >&5
  20348. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20349. - (exit $ac_status); } &&
  20350. - { ac_try='test -z "$ac_c_werror_flag"
  20351. - || test ! -s conftest.err'
  20352. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20353. - (eval $ac_try) 2>&5
  20354. - ac_status=$?
  20355. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20356. - (exit $ac_status); }; } &&
  20357. - { ac_try='test -s conftest.$ac_objext'
  20358. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  20359. - (eval $ac_try) 2>&5
  20360. - ac_status=$?
  20361. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  20362. - (exit $ac_status); }; }; then
  20363. - break
  20364. -else
  20365. - echo "$as_me: failed program was:" >&5
  20366. -sed 's/^/| /' conftest.$ac_ext >&5
  20367. +if test "x$ac_cv_prog_cc_c89" != xno; then :
  20368. fi
  20369. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20370. -done
  20371. -rm -f conftest*
  20372. -if test -n "$ac_declaration"; then
  20373. - echo '#ifdef __cplusplus' >>confdefs.h
  20374. - echo $ac_declaration >>confdefs.h
  20375. - echo '#endif' >>confdefs.h
  20376. -fi
  20377. -
  20378. -else
  20379. - echo "$as_me: failed program was:" >&5
  20380. -sed 's/^/| /' conftest.$ac_ext >&5
  20381. -fi
  20382. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  20383. ac_ext=c
  20384. ac_cpp='$CPP $CPPFLAGS'
  20385. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  20386. @@ -2884,60 +3654,58 @@
  20387. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  20388. DEPDIR="${am__leading_dot}deps"
  20389. - ac_config_commands="$ac_config_commands depfiles"
  20390. +ac_config_commands="$ac_config_commands depfiles"
  20391. am_make=${MAKE-make}
  20392. cat > confinc << 'END'
  20393. am__doit:
  20394. - @echo done
  20395. + @echo this is the am__doit target
  20396. .PHONY: am__doit
  20397. END
  20398. # If we don't find an include directive, just comment out the code.
  20399. -echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
  20400. -echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6
  20401. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  20402. +$as_echo_n "checking for style of include used by $am_make... " >&6; }
  20403. am__include="#"
  20404. am__quote=
  20405. _am_result=none
  20406. # First try GNU make style include.
  20407. echo "include confinc" > confmf
  20408. -# We grep out `Entering directory' and `Leaving directory'
  20409. -# messages which can occur if `w' ends up in MAKEFLAGS.
  20410. -# In particular we don't look at `^make:' because GNU make might
  20411. -# be invoked under some other name (usually "gmake"), in which
  20412. -# case it prints its new name instead of `make'.
  20413. -if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
  20414. - am__include=include
  20415. - am__quote=
  20416. - _am_result=GNU
  20417. -fi
  20418. +# Ignore all kinds of additional output from `make'.
  20419. +case `$am_make -s -f confmf 2> /dev/null` in #(
  20420. +*the\ am__doit\ target*)
  20421. + am__include=include
  20422. + am__quote=
  20423. + _am_result=GNU
  20424. + ;;
  20425. +esac
  20426. # Now try BSD make style include.
  20427. if test "$am__include" = "#"; then
  20428. echo '.include "confinc"' > confmf
  20429. - if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
  20430. - am__include=.include
  20431. - am__quote="\""
  20432. - _am_result=BSD
  20433. - fi
  20434. + case `$am_make -s -f confmf 2> /dev/null` in #(
  20435. + *the\ am__doit\ target*)
  20436. + am__include=.include
  20437. + am__quote="\""
  20438. + _am_result=BSD
  20439. + ;;
  20440. + esac
  20441. fi
  20442. -echo "$as_me:$LINENO: result: $_am_result" >&5
  20443. -echo "${ECHO_T}$_am_result" >&6
  20444. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  20445. +$as_echo "$_am_result" >&6; }
  20446. rm -f confinc confmf
  20447. -# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given.
  20448. -if test "${enable_dependency_tracking+set}" = set; then
  20449. - enableval="$enable_dependency_tracking"
  20450. +# Check whether --enable-dependency-tracking was given.
  20451. +if test "${enable_dependency_tracking+set}" = set; then :
  20452. + enableval=$enable_dependency_tracking;
  20453. +fi
  20454. -fi;
  20455. if test "x$enable_dependency_tracking" != xno; then
  20456. am_depcomp="$ac_aux_dir/depcomp"
  20457. AMDEPBACKSLASH='\'
  20458. fi
  20459. -
  20460. -
  20461. -if test "x$enable_dependency_tracking" != xno; then
  20462. + if test "x$enable_dependency_tracking" != xno; then
  20463. AMDEP_TRUE=
  20464. AMDEP_FALSE='#'
  20465. else
  20466. @@ -2947,13 +3715,12 @@
  20467. -
  20468. depcc="$CC" am_compiler_list=
  20469. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  20470. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  20471. -if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
  20472. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20473. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  20474. +$as_echo_n "checking dependency style of $depcc... " >&6; }
  20475. +if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
  20476. + $as_echo_n "(cached) " >&6
  20477. else
  20478. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  20479. # We make a subdir and do the tests there. Otherwise we can end up
  20480. @@ -2978,6 +3745,11 @@
  20481. if test "$am_compiler_list" = ""; then
  20482. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  20483. fi
  20484. + am__universal=false
  20485. + case " $depcc " in #(
  20486. + *\ -arch\ *\ -arch\ *) am__universal=true ;;
  20487. + esac
  20488. +
  20489. for depmode in $am_compiler_list; do
  20490. # Setup a source with many dependencies, because some compilers
  20491. # like to wrap large dependency lists on column 80 (with \), and
  20492. @@ -2995,7 +3767,17 @@
  20493. done
  20494. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  20495. + # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20496. + # mode. It turns out that the SunPro C++ compiler does not properly
  20497. + # handle `-M -o', and we need to detect this. Also, some Intel
  20498. + # versions had trouble with output in subdirs
  20499. + am__obj=sub/conftest.${OBJEXT-o}
  20500. + am__minus_obj="-o $am__obj"
  20501. case $depmode in
  20502. + gcc)
  20503. + # This depmode causes a compiler race in universal mode.
  20504. + test "$am__universal" = false || continue
  20505. + ;;
  20506. nosideeffect)
  20507. # after this tag, mechanisms are not by side-effect, so they'll
  20508. # only be used when explicitly requested
  20509. @@ -3005,18 +3787,23 @@
  20510. break
  20511. fi
  20512. ;;
  20513. + msvisualcpp | msvcmsys)
  20514. + # This compiler won't grok `-c -o', but also, the minuso test has
  20515. + # not run yet. These depmodes are late enough in the game, and
  20516. + # so weak that their functioning should not be impacted.
  20517. + am__obj=conftest.${OBJEXT-o}
  20518. + am__minus_obj=
  20519. + ;;
  20520. none) break ;;
  20521. esac
  20522. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  20523. - # mode. It turns out that the SunPro C++ compiler does not properly
  20524. - # handle `-M -o', and we need to detect this.
  20525. if depmode=$depmode \
  20526. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  20527. + source=sub/conftest.c object=$am__obj \
  20528. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  20529. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  20530. + $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  20531. >/dev/null 2>conftest.err &&
  20532. + grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  20533. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  20534. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  20535. + grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  20536. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  20537. # icc doesn't choke on unknown options, it will just issue warnings
  20538. # or remarks (even with -Werror). So we grep stderr for any message
  20539. @@ -3040,13 +3827,11 @@
  20540. fi
  20541. fi
  20542. -echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
  20543. -echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6
  20544. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  20545. +$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  20546. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  20547. -
  20548. -
  20549. -if
  20550. + if
  20551. test "x$enable_dependency_tracking" != xno \
  20552. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  20553. am__fastdepCC_TRUE=
  20554. @@ -3059,217 +3844,413 @@
  20555. #JJAKO Check for libtool
  20556. -# Check whether --enable-shared or --disable-shared was given.
  20557. -if test "${enable_shared+set}" = set; then
  20558. - enableval="$enable_shared"
  20559. - p=${PACKAGE-default}
  20560. - case $enableval in
  20561. - yes) enable_shared=yes ;;
  20562. - no) enable_shared=no ;;
  20563. - *)
  20564. - enable_shared=no
  20565. - # Look at the argument we got. We use all the common list separators.
  20566. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20567. - for pkg in $enableval; do
  20568. - IFS="$lt_save_ifs"
  20569. - if test "X$pkg" = "X$p"; then
  20570. - enable_shared=yes
  20571. - fi
  20572. - done
  20573. - IFS="$lt_save_ifs"
  20574. - ;;
  20575. - esac
  20576. -else
  20577. - enable_shared=yes
  20578. -fi;
  20579. +case `pwd` in
  20580. + *\ * | *\ *)
  20581. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  20582. +$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  20583. +esac
  20584. +
  20585. +
  20586. +
  20587. +macro_version='2.2.6b'
  20588. +macro_revision='1.3017'
  20589. +
  20590. -# Check whether --enable-static or --disable-static was given.
  20591. -if test "${enable_static+set}" = set; then
  20592. - enableval="$enable_static"
  20593. - p=${PACKAGE-default}
  20594. - case $enableval in
  20595. - yes) enable_static=yes ;;
  20596. - no) enable_static=no ;;
  20597. - *)
  20598. - enable_static=no
  20599. - # Look at the argument we got. We use all the common list separators.
  20600. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20601. - for pkg in $enableval; do
  20602. - IFS="$lt_save_ifs"
  20603. - if test "X$pkg" = "X$p"; then
  20604. - enable_static=yes
  20605. - fi
  20606. - done
  20607. - IFS="$lt_save_ifs"
  20608. - ;;
  20609. - esac
  20610. -else
  20611. - enable_static=yes
  20612. -fi;
  20613. -# Check whether --enable-fast-install or --disable-fast-install was given.
  20614. -if test "${enable_fast_install+set}" = set; then
  20615. - enableval="$enable_fast_install"
  20616. - p=${PACKAGE-default}
  20617. - case $enableval in
  20618. - yes) enable_fast_install=yes ;;
  20619. - no) enable_fast_install=no ;;
  20620. - *)
  20621. - enable_fast_install=no
  20622. - # Look at the argument we got. We use all the common list separators.
  20623. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  20624. - for pkg in $enableval; do
  20625. - IFS="$lt_save_ifs"
  20626. - if test "X$pkg" = "X$p"; then
  20627. - enable_fast_install=yes
  20628. - fi
  20629. - done
  20630. - IFS="$lt_save_ifs"
  20631. - ;;
  20632. - esac
  20633. -else
  20634. - enable_fast_install=yes
  20635. -fi;
  20636. +
  20637. +
  20638. +
  20639. +
  20640. +
  20641. +
  20642. +
  20643. +
  20644. +
  20645. +
  20646. +ltmain="$ac_aux_dir/ltmain.sh"
  20647. # Make sure we can run config.sub.
  20648. -$ac_config_sub sun4 >/dev/null 2>&1 ||
  20649. - { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
  20650. -echo "$as_me: error: cannot run $ac_config_sub" >&2;}
  20651. - { (exit 1); exit 1; }; }
  20652. -
  20653. -echo "$as_me:$LINENO: checking build system type" >&5
  20654. -echo $ECHO_N "checking build system type... $ECHO_C" >&6
  20655. -if test "${ac_cv_build+set}" = set; then
  20656. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20657. -else
  20658. - ac_cv_build_alias=$build_alias
  20659. -test -z "$ac_cv_build_alias" &&
  20660. - ac_cv_build_alias=`$ac_config_guess`
  20661. -test -z "$ac_cv_build_alias" &&
  20662. - { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
  20663. -echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
  20664. - { (exit 1); exit 1; }; }
  20665. -ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
  20666. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
  20667. -echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
  20668. - { (exit 1); exit 1; }; }
  20669. +$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  20670. + as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  20671. -fi
  20672. -echo "$as_me:$LINENO: result: $ac_cv_build" >&5
  20673. -echo "${ECHO_T}$ac_cv_build" >&6
  20674. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  20675. +$as_echo_n "checking build system type... " >&6; }
  20676. +if test "${ac_cv_build+set}" = set; then :
  20677. + $as_echo_n "(cached) " >&6
  20678. +else
  20679. + ac_build_alias=$build_alias
  20680. +test "x$ac_build_alias" = x &&
  20681. + ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  20682. +test "x$ac_build_alias" = x &&
  20683. + as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5
  20684. +ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  20685. + as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  20686. +
  20687. +fi
  20688. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  20689. +$as_echo "$ac_cv_build" >&6; }
  20690. +case $ac_cv_build in
  20691. +*-*-*) ;;
  20692. +*) as_fn_error "invalid value of canonical build" "$LINENO" 5;;
  20693. +esac
  20694. build=$ac_cv_build
  20695. -build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  20696. -build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  20697. -build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  20698. -
  20699. -
  20700. -echo "$as_me:$LINENO: checking host system type" >&5
  20701. -echo $ECHO_N "checking host system type... $ECHO_C" >&6
  20702. -if test "${ac_cv_host+set}" = set; then
  20703. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20704. -else
  20705. - ac_cv_host_alias=$host_alias
  20706. -test -z "$ac_cv_host_alias" &&
  20707. - ac_cv_host_alias=$ac_cv_build_alias
  20708. -ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
  20709. - { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
  20710. -echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
  20711. - { (exit 1); exit 1; }; }
  20712. +ac_save_IFS=$IFS; IFS='-'
  20713. +set x $ac_cv_build
  20714. +shift
  20715. +build_cpu=$1
  20716. +build_vendor=$2
  20717. +shift; shift
  20718. +# Remember, the first character of IFS is used to create $*,
  20719. +# except with old shells:
  20720. +build_os=$*
  20721. +IFS=$ac_save_IFS
  20722. +case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  20723. +
  20724. +
  20725. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  20726. +$as_echo_n "checking host system type... " >&6; }
  20727. +if test "${ac_cv_host+set}" = set; then :
  20728. + $as_echo_n "(cached) " >&6
  20729. +else
  20730. + if test "x$host_alias" = x; then
  20731. + ac_cv_host=$ac_cv_build
  20732. +else
  20733. + ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  20734. + as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  20735. +fi
  20736. fi
  20737. -echo "$as_me:$LINENO: result: $ac_cv_host" >&5
  20738. -echo "${ECHO_T}$ac_cv_host" >&6
  20739. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  20740. +$as_echo "$ac_cv_host" >&6; }
  20741. +case $ac_cv_host in
  20742. +*-*-*) ;;
  20743. +*) as_fn_error "invalid value of canonical host" "$LINENO" 5;;
  20744. +esac
  20745. host=$ac_cv_host
  20746. -host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
  20747. -host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
  20748. -host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
  20749. +ac_save_IFS=$IFS; IFS='-'
  20750. +set x $ac_cv_host
  20751. +shift
  20752. +host_cpu=$1
  20753. +host_vendor=$2
  20754. +shift; shift
  20755. +# Remember, the first character of IFS is used to create $*,
  20756. +# except with old shells:
  20757. +host_os=$*
  20758. +IFS=$ac_save_IFS
  20759. +case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  20760. -echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5
  20761. -echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6
  20762. -if test "${lt_cv_path_SED+set}" = set; then
  20763. - echo $ECHO_N "(cached) $ECHO_C" >&6
  20764. -else
  20765. - # Loop through the user's path and test for sed and gsed.
  20766. -# Then use that list of sed's as ones to test for truncation.
  20767. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20768. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  20769. +$as_echo_n "checking for a sed that does not truncate output... " >&6; }
  20770. +if test "${ac_cv_path_SED+set}" = set; then :
  20771. + $as_echo_n "(cached) " >&6
  20772. +else
  20773. + ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  20774. + for ac_i in 1 2 3 4 5 6 7; do
  20775. + ac_script="$ac_script$as_nl$ac_script"
  20776. + done
  20777. + echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  20778. + { ac_script=; unset ac_script;}
  20779. + if test -z "$SED"; then
  20780. + ac_path_SED_found=false
  20781. + # Loop through the user's path and test for each of PROGNAME-LIST
  20782. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20783. for as_dir in $PATH
  20784. do
  20785. IFS=$as_save_IFS
  20786. test -z "$as_dir" && as_dir=.
  20787. - for lt_ac_prog in sed gsed; do
  20788. + for ac_prog in sed gsed; do
  20789. for ac_exec_ext in '' $ac_executable_extensions; do
  20790. - if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  20791. - lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  20792. - fi
  20793. - done
  20794. + ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  20795. + { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue
  20796. +# Check for GNU ac_path_SED and select it if it is found.
  20797. + # Check for GNU $ac_path_SED
  20798. +case `"$ac_path_SED" --version 2>&1` in
  20799. +*GNU*)
  20800. + ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  20801. +*)
  20802. + ac_count=0
  20803. + $as_echo_n 0123456789 >"conftest.in"
  20804. + while :
  20805. + do
  20806. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20807. + mv "conftest.tmp" "conftest.in"
  20808. + cp "conftest.in" "conftest.nl"
  20809. + $as_echo '' >> "conftest.nl"
  20810. + "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20811. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20812. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20813. + if test $ac_count -gt ${ac_path_SED_max-0}; then
  20814. + # Best one so far, save it but keep looking for a better one
  20815. + ac_cv_path_SED="$ac_path_SED"
  20816. + ac_path_SED_max=$ac_count
  20817. + fi
  20818. + # 10*(2^10) chars as input seems more than enough
  20819. + test $ac_count -gt 10 && break
  20820. done
  20821. -done
  20822. -lt_ac_max=0
  20823. -lt_ac_count=0
  20824. -# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  20825. -# along with /bin/sed that truncates output.
  20826. -for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  20827. - test ! -f $lt_ac_sed && continue
  20828. - cat /dev/null > conftest.in
  20829. - lt_ac_count=0
  20830. - echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  20831. - # Check for GNU sed and select it if it is found.
  20832. - if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  20833. - lt_cv_path_SED=$lt_ac_sed
  20834. - break
  20835. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20836. +esac
  20837. +
  20838. + $ac_path_SED_found && break 3
  20839. + done
  20840. + done
  20841. + done
  20842. +IFS=$as_save_IFS
  20843. + if test -z "$ac_cv_path_SED"; then
  20844. + as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5
  20845. fi
  20846. - while true; do
  20847. - cat conftest.in conftest.in >conftest.tmp
  20848. - mv conftest.tmp conftest.in
  20849. - cp conftest.in conftest.nl
  20850. - echo >>conftest.nl
  20851. - $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  20852. - cmp -s conftest.out conftest.nl || break
  20853. - # 10000 chars as input seems more than enough
  20854. - test $lt_ac_count -gt 10 && break
  20855. - lt_ac_count=`expr $lt_ac_count + 1`
  20856. - if test $lt_ac_count -gt $lt_ac_max; then
  20857. - lt_ac_max=$lt_ac_count
  20858. - lt_cv_path_SED=$lt_ac_sed
  20859. +else
  20860. + ac_cv_path_SED=$SED
  20861. +fi
  20862. +
  20863. +fi
  20864. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  20865. +$as_echo "$ac_cv_path_SED" >&6; }
  20866. + SED="$ac_cv_path_SED"
  20867. + rm -f conftest.sed
  20868. +
  20869. +test -z "$SED" && SED=sed
  20870. +Xsed="$SED -e 1s/^X//"
  20871. +
  20872. +
  20873. +
  20874. +
  20875. +
  20876. +
  20877. +
  20878. +
  20879. +
  20880. +
  20881. +
  20882. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  20883. +$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  20884. +if test "${ac_cv_path_GREP+set}" = set; then :
  20885. + $as_echo_n "(cached) " >&6
  20886. +else
  20887. + if test -z "$GREP"; then
  20888. + ac_path_GREP_found=false
  20889. + # Loop through the user's path and test for each of PROGNAME-LIST
  20890. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20891. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20892. +do
  20893. + IFS=$as_save_IFS
  20894. + test -z "$as_dir" && as_dir=.
  20895. + for ac_prog in grep ggrep; do
  20896. + for ac_exec_ext in '' $ac_executable_extensions; do
  20897. + ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  20898. + { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
  20899. +# Check for GNU ac_path_GREP and select it if it is found.
  20900. + # Check for GNU $ac_path_GREP
  20901. +case `"$ac_path_GREP" --version 2>&1` in
  20902. +*GNU*)
  20903. + ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  20904. +*)
  20905. + ac_count=0
  20906. + $as_echo_n 0123456789 >"conftest.in"
  20907. + while :
  20908. + do
  20909. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20910. + mv "conftest.tmp" "conftest.in"
  20911. + cp "conftest.in" "conftest.nl"
  20912. + $as_echo 'GREP' >> "conftest.nl"
  20913. + "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20914. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20915. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20916. + if test $ac_count -gt ${ac_path_GREP_max-0}; then
  20917. + # Best one so far, save it but keep looking for a better one
  20918. + ac_cv_path_GREP="$ac_path_GREP"
  20919. + ac_path_GREP_max=$ac_count
  20920. fi
  20921. + # 10*(2^10) chars as input seems more than enough
  20922. + test $ac_count -gt 10 && break
  20923. done
  20924. -done
  20925. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20926. +esac
  20927. +
  20928. + $ac_path_GREP_found && break 3
  20929. + done
  20930. + done
  20931. + done
  20932. +IFS=$as_save_IFS
  20933. + if test -z "$ac_cv_path_GREP"; then
  20934. + as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  20935. + fi
  20936. +else
  20937. + ac_cv_path_GREP=$GREP
  20938. +fi
  20939. +
  20940. +fi
  20941. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  20942. +$as_echo "$ac_cv_path_GREP" >&6; }
  20943. + GREP="$ac_cv_path_GREP"
  20944. +
  20945. +
  20946. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  20947. +$as_echo_n "checking for egrep... " >&6; }
  20948. +if test "${ac_cv_path_EGREP+set}" = set; then :
  20949. + $as_echo_n "(cached) " >&6
  20950. +else
  20951. + if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  20952. + then ac_cv_path_EGREP="$GREP -E"
  20953. + else
  20954. + if test -z "$EGREP"; then
  20955. + ac_path_EGREP_found=false
  20956. + # Loop through the user's path and test for each of PROGNAME-LIST
  20957. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  20958. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  20959. +do
  20960. + IFS=$as_save_IFS
  20961. + test -z "$as_dir" && as_dir=.
  20962. + for ac_prog in egrep; do
  20963. + for ac_exec_ext in '' $ac_executable_extensions; do
  20964. + ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  20965. + { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
  20966. +# Check for GNU ac_path_EGREP and select it if it is found.
  20967. + # Check for GNU $ac_path_EGREP
  20968. +case `"$ac_path_EGREP" --version 2>&1` in
  20969. +*GNU*)
  20970. + ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  20971. +*)
  20972. + ac_count=0
  20973. + $as_echo_n 0123456789 >"conftest.in"
  20974. + while :
  20975. + do
  20976. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  20977. + mv "conftest.tmp" "conftest.in"
  20978. + cp "conftest.in" "conftest.nl"
  20979. + $as_echo 'EGREP' >> "conftest.nl"
  20980. + "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  20981. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  20982. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  20983. + if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  20984. + # Best one so far, save it but keep looking for a better one
  20985. + ac_cv_path_EGREP="$ac_path_EGREP"
  20986. + ac_path_EGREP_max=$ac_count
  20987. + fi
  20988. + # 10*(2^10) chars as input seems more than enough
  20989. + test $ac_count -gt 10 && break
  20990. + done
  20991. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  20992. +esac
  20993. + $ac_path_EGREP_found && break 3
  20994. + done
  20995. + done
  20996. + done
  20997. +IFS=$as_save_IFS
  20998. + if test -z "$ac_cv_path_EGREP"; then
  20999. + as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  21000. + fi
  21001. +else
  21002. + ac_cv_path_EGREP=$EGREP
  21003. +fi
  21004. +
  21005. + fi
  21006. fi
  21007. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  21008. +$as_echo "$ac_cv_path_EGREP" >&6; }
  21009. + EGREP="$ac_cv_path_EGREP"
  21010. -SED=$lt_cv_path_SED
  21011. -echo "$as_me:$LINENO: result: $SED" >&5
  21012. -echo "${ECHO_T}$SED" >&6
  21013. -
  21014. -echo "$as_me:$LINENO: checking for egrep" >&5
  21015. -echo $ECHO_N "checking for egrep... $ECHO_C" >&6
  21016. -if test "${ac_cv_prog_egrep+set}" = set; then
  21017. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21018. -else
  21019. - if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  21020. - then ac_cv_prog_egrep='grep -E'
  21021. - else ac_cv_prog_egrep='egrep'
  21022. +
  21023. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  21024. +$as_echo_n "checking for fgrep... " >&6; }
  21025. +if test "${ac_cv_path_FGREP+set}" = set; then :
  21026. + $as_echo_n "(cached) " >&6
  21027. +else
  21028. + if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  21029. + then ac_cv_path_FGREP="$GREP -F"
  21030. + else
  21031. + if test -z "$FGREP"; then
  21032. + ac_path_FGREP_found=false
  21033. + # Loop through the user's path and test for each of PROGNAME-LIST
  21034. + as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21035. +for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  21036. +do
  21037. + IFS=$as_save_IFS
  21038. + test -z "$as_dir" && as_dir=.
  21039. + for ac_prog in fgrep; do
  21040. + for ac_exec_ext in '' $ac_executable_extensions; do
  21041. + ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  21042. + { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue
  21043. +# Check for GNU ac_path_FGREP and select it if it is found.
  21044. + # Check for GNU $ac_path_FGREP
  21045. +case `"$ac_path_FGREP" --version 2>&1` in
  21046. +*GNU*)
  21047. + ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  21048. +*)
  21049. + ac_count=0
  21050. + $as_echo_n 0123456789 >"conftest.in"
  21051. + while :
  21052. + do
  21053. + cat "conftest.in" "conftest.in" >"conftest.tmp"
  21054. + mv "conftest.tmp" "conftest.in"
  21055. + cp "conftest.in" "conftest.nl"
  21056. + $as_echo 'FGREP' >> "conftest.nl"
  21057. + "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  21058. + diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  21059. + as_fn_arith $ac_count + 1 && ac_count=$as_val
  21060. + if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  21061. + # Best one so far, save it but keep looking for a better one
  21062. + ac_cv_path_FGREP="$ac_path_FGREP"
  21063. + ac_path_FGREP_max=$ac_count
  21064. fi
  21065. + # 10*(2^10) chars as input seems more than enough
  21066. + test $ac_count -gt 10 && break
  21067. + done
  21068. + rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  21069. +esac
  21070. +
  21071. + $ac_path_FGREP_found && break 3
  21072. + done
  21073. + done
  21074. + done
  21075. +IFS=$as_save_IFS
  21076. + if test -z "$ac_cv_path_FGREP"; then
  21077. + as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  21078. + fi
  21079. +else
  21080. + ac_cv_path_FGREP=$FGREP
  21081. +fi
  21082. +
  21083. + fi
  21084. fi
  21085. -echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
  21086. -echo "${ECHO_T}$ac_cv_prog_egrep" >&6
  21087. - EGREP=$ac_cv_prog_egrep
  21088. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  21089. +$as_echo "$ac_cv_path_FGREP" >&6; }
  21090. + FGREP="$ac_cv_path_FGREP"
  21091. +
  21092. +
  21093. +test -z "$GREP" && GREP=grep
  21094. +
  21095. +
  21096. +
  21097. +
  21098. +
  21099. +
  21100. +
  21101. +
  21102. +
  21103. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  21104. -if test "${with_gnu_ld+set}" = set; then
  21105. - withval="$with_gnu_ld"
  21106. - test "$withval" = no || with_gnu_ld=yes
  21107. +
  21108. +
  21109. +
  21110. +
  21111. +
  21112. +
  21113. +
  21114. +# Check whether --with-gnu-ld was given.
  21115. +if test "${with_gnu_ld+set}" = set; then :
  21116. + withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  21117. else
  21118. with_gnu_ld=no
  21119. -fi;
  21120. +fi
  21121. +
  21122. ac_prog=ld
  21123. if test "$GCC" = yes; then
  21124. # Check if gcc -print-prog-name=ld gives a path.
  21125. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  21126. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  21127. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  21128. +$as_echo_n "checking for ld used by $CC... " >&6; }
  21129. case $host in
  21130. *-*-mingw*)
  21131. # gcc leaves a trailing carriage return which upsets mingw
  21132. @@ -3282,9 +4263,9 @@
  21133. [\\/]* | ?:[\\/]*)
  21134. re_direlt='/[^/][^/]*/\.\./'
  21135. # Canonicalize the pathname of ld
  21136. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  21137. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  21138. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  21139. + ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  21140. + while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  21141. + ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  21142. done
  21143. test -z "$LD" && LD="$ac_prog"
  21144. ;;
  21145. @@ -3298,14 +4279,14 @@
  21146. ;;
  21147. esac
  21148. elif test "$with_gnu_ld" = yes; then
  21149. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  21150. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  21151. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  21152. +$as_echo_n "checking for GNU ld... " >&6; }
  21153. else
  21154. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  21155. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  21156. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  21157. +$as_echo_n "checking for non-GNU ld... " >&6; }
  21158. fi
  21159. -if test "${lt_cv_path_LD+set}" = set; then
  21160. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21161. +if test "${lt_cv_path_LD+set}" = set; then :
  21162. + $as_echo_n "(cached) " >&6
  21163. else
  21164. if test -z "$LD"; then
  21165. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21166. @@ -3315,7 +4296,7 @@
  21167. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  21168. lt_cv_path_LD="$ac_dir/$ac_prog"
  21169. # Check to see if the program is GNU ld. I'd rather use --version,
  21170. - # but apparently some GNU ld's only accept -v.
  21171. + # but apparently some variants of GNU ld only accept -v.
  21172. # Break only if it was the GNU/non-GNU ld that we prefer.
  21173. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  21174. *GNU* | *'with BFD'*)
  21175. @@ -3335,21 +4316,19 @@
  21176. LD="$lt_cv_path_LD"
  21177. if test -n "$LD"; then
  21178. - echo "$as_me:$LINENO: result: $LD" >&5
  21179. -echo "${ECHO_T}$LD" >&6
  21180. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  21181. +$as_echo "$LD" >&6; }
  21182. else
  21183. - echo "$as_me:$LINENO: result: no" >&5
  21184. -echo "${ECHO_T}no" >&6
  21185. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21186. +$as_echo "no" >&6; }
  21187. fi
  21188. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  21189. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  21190. - { (exit 1); exit 1; }; }
  21191. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  21192. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  21193. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  21194. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21195. +test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5
  21196. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  21197. +$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  21198. +if test "${lt_cv_prog_gnu_ld+set}" = set; then :
  21199. + $as_echo_n "(cached) " >&6
  21200. else
  21201. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  21202. + # I'd rather use --version here, but apparently some GNU lds only accept -v.
  21203. case `$LD -v 2>&1 </dev/null` in
  21204. *GNU* | *'with BFD'*)
  21205. lt_cv_prog_gnu_ld=yes
  21206. @@ -3359,2185 +4338,1151 @@
  21207. ;;
  21208. esac
  21209. fi
  21210. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  21211. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  21212. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  21213. +$as_echo "$lt_cv_prog_gnu_ld" >&6; }
  21214. with_gnu_ld=$lt_cv_prog_gnu_ld
  21215. -echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5
  21216. -echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6
  21217. -if test "${lt_cv_ld_reload_flag+set}" = set; then
  21218. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21219. -else
  21220. - lt_cv_ld_reload_flag='-r'
  21221. -fi
  21222. -echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5
  21223. -echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6
  21224. -reload_flag=$lt_cv_ld_reload_flag
  21225. -case $reload_flag in
  21226. -"" | " "*) ;;
  21227. -*) reload_flag=" $reload_flag" ;;
  21228. -esac
  21229. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21230. -case $host_os in
  21231. - darwin*)
  21232. - if test "$GCC" = yes; then
  21233. - reload_cmds='$CC -nostdlib ${wl}-r -o $output$reload_objs'
  21234. - else
  21235. - reload_cmds='$LD$reload_flag -o $output$reload_objs'
  21236. - fi
  21237. - ;;
  21238. -esac
  21239. -echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5
  21240. -echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6
  21241. -if test "${lt_cv_path_NM+set}" = set; then
  21242. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21243. +
  21244. +
  21245. +
  21246. +
  21247. +
  21248. +
  21249. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  21250. +$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  21251. +if test "${lt_cv_path_NM+set}" = set; then :
  21252. + $as_echo_n "(cached) " >&6
  21253. else
  21254. if test -n "$NM"; then
  21255. # Let the user override the test.
  21256. lt_cv_path_NM="$NM"
  21257. else
  21258. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21259. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  21260. - IFS="$lt_save_ifs"
  21261. - test -z "$ac_dir" && ac_dir=.
  21262. - tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  21263. - if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  21264. - # Check to see if the nm accepts a BSD-compat flag.
  21265. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  21266. - # nm: unknown option "B" ignored
  21267. - # Tru64's nm complains that /dev/null is an invalid object file
  21268. - case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  21269. - */dev/null* | *'Invalid file or object type'*)
  21270. - lt_cv_path_NM="$tmp_nm -B"
  21271. - break
  21272. - ;;
  21273. - *)
  21274. - case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  21275. - */dev/null*)
  21276. - lt_cv_path_NM="$tmp_nm -p"
  21277. + lt_nm_to_check="${ac_tool_prefix}nm"
  21278. + if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  21279. + lt_nm_to_check="$lt_nm_to_check nm"
  21280. + fi
  21281. + for lt_tmp_nm in $lt_nm_to_check; do
  21282. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  21283. + for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  21284. + IFS="$lt_save_ifs"
  21285. + test -z "$ac_dir" && ac_dir=.
  21286. + tmp_nm="$ac_dir/$lt_tmp_nm"
  21287. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  21288. + # Check to see if the nm accepts a BSD-compat flag.
  21289. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  21290. + # nm: unknown option "B" ignored
  21291. + # Tru64's nm complains that /dev/null is an invalid object file
  21292. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  21293. + */dev/null* | *'Invalid file or object type'*)
  21294. + lt_cv_path_NM="$tmp_nm -B"
  21295. break
  21296. ;;
  21297. *)
  21298. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  21299. - continue # so that we can try to find one that supports BSD flags
  21300. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  21301. + */dev/null*)
  21302. + lt_cv_path_NM="$tmp_nm -p"
  21303. + break
  21304. + ;;
  21305. + *)
  21306. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  21307. + continue # so that we can try to find one that supports BSD flags
  21308. + ;;
  21309. + esac
  21310. ;;
  21311. esac
  21312. - esac
  21313. - fi
  21314. + fi
  21315. + done
  21316. + IFS="$lt_save_ifs"
  21317. done
  21318. - IFS="$lt_save_ifs"
  21319. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  21320. + : ${lt_cv_path_NM=no}
  21321. fi
  21322. fi
  21323. -echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5
  21324. -echo "${ECHO_T}$lt_cv_path_NM" >&6
  21325. -NM="$lt_cv_path_NM"
  21326. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  21327. +$as_echo "$lt_cv_path_NM" >&6; }
  21328. +if test "$lt_cv_path_NM" != "no"; then
  21329. + NM="$lt_cv_path_NM"
  21330. +else
  21331. + # Didn't find any BSD compatible name lister, look for dumpbin.
  21332. + if test -n "$ac_tool_prefix"; then
  21333. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  21334. + do
  21335. + # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  21336. +set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  21337. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21338. +$as_echo_n "checking for $ac_word... " >&6; }
  21339. +if test "${ac_cv_prog_DUMPBIN+set}" = set; then :
  21340. + $as_echo_n "(cached) " >&6
  21341. +else
  21342. + if test -n "$DUMPBIN"; then
  21343. + ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  21344. +else
  21345. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21346. +for as_dir in $PATH
  21347. +do
  21348. + IFS=$as_save_IFS
  21349. + test -z "$as_dir" && as_dir=.
  21350. + for ac_exec_ext in '' $ac_executable_extensions; do
  21351. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21352. + ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  21353. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21354. + break 2
  21355. + fi
  21356. +done
  21357. + done
  21358. +IFS=$as_save_IFS
  21359. -echo "$as_me:$LINENO: checking whether ln -s works" >&5
  21360. -echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6
  21361. -LN_S=$as_ln_s
  21362. -if test "$LN_S" = "ln -s"; then
  21363. - echo "$as_me:$LINENO: result: yes" >&5
  21364. -echo "${ECHO_T}yes" >&6
  21365. +fi
  21366. +fi
  21367. +DUMPBIN=$ac_cv_prog_DUMPBIN
  21368. +if test -n "$DUMPBIN"; then
  21369. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  21370. +$as_echo "$DUMPBIN" >&6; }
  21371. else
  21372. - echo "$as_me:$LINENO: result: no, using $LN_S" >&5
  21373. -echo "${ECHO_T}no, using $LN_S" >&6
  21374. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21375. +$as_echo "no" >&6; }
  21376. fi
  21377. -echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5
  21378. -echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6
  21379. -if test "${lt_cv_deplibs_check_method+set}" = set; then
  21380. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21381. -else
  21382. - lt_cv_file_magic_cmd='$MAGIC_CMD'
  21383. -lt_cv_file_magic_test_file=
  21384. -lt_cv_deplibs_check_method='unknown'
  21385. -# Need to set the preceding variable on all platforms that support
  21386. -# interlibrary dependencies.
  21387. -# 'none' -- dependencies not supported.
  21388. -# `unknown' -- same as none, but documents that we really don't know.
  21389. -# 'pass_all' -- all dependencies passed with no checks.
  21390. -# 'test_compile' -- check by making test program.
  21391. -# 'file_magic [[regex]]' -- check by looking for files in library path
  21392. -# which responds to the $file_magic_cmd with a given extended regex.
  21393. -# If you have `file' or equivalent on your system and you're not sure
  21394. -# whether `pass_all' will *always* work, you probably want this one.
  21395. -case $host_os in
  21396. -aix4* | aix5*)
  21397. - lt_cv_deplibs_check_method=pass_all
  21398. - ;;
  21399. + test -n "$DUMPBIN" && break
  21400. + done
  21401. +fi
  21402. +if test -z "$DUMPBIN"; then
  21403. + ac_ct_DUMPBIN=$DUMPBIN
  21404. + for ac_prog in "dumpbin -symbols" "link -dump -symbols"
  21405. +do
  21406. + # Extract the first word of "$ac_prog", so it can be a program name with args.
  21407. +set dummy $ac_prog; ac_word=$2
  21408. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  21409. +$as_echo_n "checking for $ac_word... " >&6; }
  21410. +if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then :
  21411. + $as_echo_n "(cached) " >&6
  21412. +else
  21413. + if test -n "$ac_ct_DUMPBIN"; then
  21414. + ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  21415. +else
  21416. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  21417. +for as_dir in $PATH
  21418. +do
  21419. + IFS=$as_save_IFS
  21420. + test -z "$as_dir" && as_dir=.
  21421. + for ac_exec_ext in '' $ac_executable_extensions; do
  21422. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  21423. + ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  21424. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  21425. + break 2
  21426. + fi
  21427. +done
  21428. + done
  21429. +IFS=$as_save_IFS
  21430. -beos*)
  21431. - lt_cv_deplibs_check_method=pass_all
  21432. - ;;
  21433. +fi
  21434. +fi
  21435. +ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  21436. +if test -n "$ac_ct_DUMPBIN"; then
  21437. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  21438. +$as_echo "$ac_ct_DUMPBIN" >&6; }
  21439. +else
  21440. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  21441. +$as_echo "no" >&6; }
  21442. +fi
  21443. -bsdi[45]*)
  21444. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  21445. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  21446. - lt_cv_file_magic_test_file=/shlib/libc.so
  21447. - ;;
  21448. -cygwin*)
  21449. - # func_win32_libid is a shell function defined in ltmain.sh
  21450. - lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  21451. - lt_cv_file_magic_cmd='func_win32_libid'
  21452. - ;;
  21453. + test -n "$ac_ct_DUMPBIN" && break
  21454. +done
  21455. -mingw* | pw32*)
  21456. - # Base MSYS/MinGW do not provide the 'file' command needed by
  21457. - # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  21458. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  21459. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  21460. - ;;
  21461. + if test "x$ac_ct_DUMPBIN" = x; then
  21462. + DUMPBIN=":"
  21463. + else
  21464. + case $cross_compiling:$ac_tool_warned in
  21465. +yes:)
  21466. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  21467. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  21468. +ac_tool_warned=yes ;;
  21469. +esac
  21470. + DUMPBIN=$ac_ct_DUMPBIN
  21471. + fi
  21472. +fi
  21473. -darwin* | rhapsody*)
  21474. - lt_cv_deplibs_check_method=pass_all
  21475. - ;;
  21476. -freebsd* | kfreebsd*-gnu | dragonfly*)
  21477. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  21478. - case $host_cpu in
  21479. - i*86 )
  21480. - # Not sure whether the presence of OpenBSD here was a mistake.
  21481. - # Let's accept both of them until this is cleared up.
  21482. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  21483. - lt_cv_file_magic_cmd=/usr/bin/file
  21484. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  21485. - ;;
  21486. - esac
  21487. - else
  21488. - lt_cv_deplibs_check_method=pass_all
  21489. + if test "$DUMPBIN" != ":"; then
  21490. + NM="$DUMPBIN"
  21491. fi
  21492. - ;;
  21493. +fi
  21494. +test -z "$NM" && NM=nm
  21495. -gnu*)
  21496. - lt_cv_deplibs_check_method=pass_all
  21497. - ;;
  21498. -hpux10.20* | hpux11*)
  21499. - lt_cv_file_magic_cmd=/usr/bin/file
  21500. - case "$host_cpu" in
  21501. - ia64*)
  21502. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  21503. - lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  21504. - ;;
  21505. - hppa*64*)
  21506. - 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]'
  21507. - lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  21508. - ;;
  21509. - *)
  21510. - lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  21511. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  21512. - ;;
  21513. - esac
  21514. - ;;
  21515. -irix5* | irix6* | nonstopux*)
  21516. - case $LD in
  21517. - *-32|*"-32 ") libmagic=32-bit;;
  21518. - *-n32|*"-n32 ") libmagic=N32;;
  21519. - *-64|*"-64 ") libmagic=64-bit;;
  21520. - *) libmagic=never-match;;
  21521. - esac
  21522. - lt_cv_deplibs_check_method=pass_all
  21523. - ;;
  21524. -# This must be Linux ELF.
  21525. -linux*)
  21526. - lt_cv_deplibs_check_method=pass_all
  21527. - ;;
  21528. -netbsd*)
  21529. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  21530. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21531. - else
  21532. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  21533. +
  21534. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  21535. +$as_echo_n "checking the name lister ($NM) interface... " >&6; }
  21536. +if test "${lt_cv_nm_interface+set}" = set; then :
  21537. + $as_echo_n "(cached) " >&6
  21538. +else
  21539. + lt_cv_nm_interface="BSD nm"
  21540. + echo "int some_variable = 0;" > conftest.$ac_ext
  21541. + (eval echo "\"\$as_me:4527: $ac_compile\"" >&5)
  21542. + (eval "$ac_compile" 2>conftest.err)
  21543. + cat conftest.err >&5
  21544. + (eval echo "\"\$as_me:4530: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  21545. + (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  21546. + cat conftest.err >&5
  21547. + (eval echo "\"\$as_me:4533: output\"" >&5)
  21548. + cat conftest.out >&5
  21549. + if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  21550. + lt_cv_nm_interface="MS dumpbin"
  21551. fi
  21552. - ;;
  21553. + rm -f conftest*
  21554. +fi
  21555. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  21556. +$as_echo "$lt_cv_nm_interface" >&6; }
  21557. -newos6*)
  21558. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  21559. - lt_cv_file_magic_cmd=/usr/bin/file
  21560. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  21561. - ;;
  21562. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  21563. +$as_echo_n "checking whether ln -s works... " >&6; }
  21564. +LN_S=$as_ln_s
  21565. +if test "$LN_S" = "ln -s"; then
  21566. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  21567. +$as_echo "yes" >&6; }
  21568. +else
  21569. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  21570. +$as_echo "no, using $LN_S" >&6; }
  21571. +fi
  21572. -nto-qnx*)
  21573. - lt_cv_deplibs_check_method=unknown
  21574. - ;;
  21575. +# find the maximum length of command line arguments
  21576. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  21577. +$as_echo_n "checking the maximum length of command line arguments... " >&6; }
  21578. +if test "${lt_cv_sys_max_cmd_len+set}" = set; then :
  21579. + $as_echo_n "(cached) " >&6
  21580. +else
  21581. + i=0
  21582. + teststring="ABCD"
  21583. -openbsd*)
  21584. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  21585. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  21586. - else
  21587. - lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  21588. - fi
  21589. - ;;
  21590. + case $build_os in
  21591. + msdosdjgpp*)
  21592. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  21593. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  21594. + # during glob expansion). Even if it were fixed, the result of this
  21595. + # check would be larger than it should be.
  21596. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  21597. + ;;
  21598. -osf3* | osf4* | osf5*)
  21599. - lt_cv_deplibs_check_method=pass_all
  21600. - ;;
  21601. + gnu*)
  21602. + # Under GNU Hurd, this test is not required because there is
  21603. + # no limit to the length of command line arguments.
  21604. + # Libtool will interpret -1 as no limit whatsoever
  21605. + lt_cv_sys_max_cmd_len=-1;
  21606. + ;;
  21607. -sco3.2v5*)
  21608. - lt_cv_deplibs_check_method=pass_all
  21609. - ;;
  21610. + cygwin* | mingw* | cegcc*)
  21611. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  21612. + # about 5 minutes as the teststring grows exponentially.
  21613. + # Worse, since 9x/ME are not pre-emptively multitasking,
  21614. + # you end up with a "frozen" computer, even though with patience
  21615. + # the test eventually succeeds (with a max line length of 256k).
  21616. + # Instead, let's just punt: use the minimum linelength reported by
  21617. + # all of the supported platforms: 8192 (on NT/2K/XP).
  21618. + lt_cv_sys_max_cmd_len=8192;
  21619. + ;;
  21620. -solaris*)
  21621. - lt_cv_deplibs_check_method=pass_all
  21622. - ;;
  21623. + amigaos*)
  21624. + # On AmigaOS with pdksh, this test takes hours, literally.
  21625. + # So we just punt and use a minimum line length of 8192.
  21626. + lt_cv_sys_max_cmd_len=8192;
  21627. + ;;
  21628. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  21629. - case $host_vendor in
  21630. - motorola)
  21631. - 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]'
  21632. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  21633. + netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  21634. + # This has been around since 386BSD, at least. Likely further.
  21635. + if test -x /sbin/sysctl; then
  21636. + lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  21637. + elif test -x /usr/sbin/sysctl; then
  21638. + lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  21639. + else
  21640. + lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  21641. + fi
  21642. + # And add a safety zone
  21643. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  21644. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  21645. ;;
  21646. - ncr)
  21647. - lt_cv_deplibs_check_method=pass_all
  21648. +
  21649. + interix*)
  21650. + # We know the value 262144 and hardcode it with a safety zone (like BSD)
  21651. + lt_cv_sys_max_cmd_len=196608
  21652. ;;
  21653. - sequent)
  21654. - lt_cv_file_magic_cmd='/bin/file'
  21655. - lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  21656. +
  21657. + osf*)
  21658. + # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  21659. + # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  21660. + # nice to cause kernel panics so lets avoid the loop below.
  21661. + # First set a reasonable default.
  21662. + lt_cv_sys_max_cmd_len=16384
  21663. + #
  21664. + if test -x /sbin/sysconfig; then
  21665. + case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  21666. + *1*) lt_cv_sys_max_cmd_len=-1 ;;
  21667. + esac
  21668. + fi
  21669. ;;
  21670. - sni)
  21671. - lt_cv_file_magic_cmd='/bin/file'
  21672. - lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  21673. - lt_cv_file_magic_test_file=/lib/libc.so
  21674. + sco3.2v5*)
  21675. + lt_cv_sys_max_cmd_len=102400
  21676. ;;
  21677. - siemens)
  21678. - lt_cv_deplibs_check_method=pass_all
  21679. + sysv5* | sco5v6* | sysv4.2uw2*)
  21680. + kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  21681. + if test -n "$kargmax"; then
  21682. + lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  21683. + else
  21684. + lt_cv_sys_max_cmd_len=32768
  21685. + fi
  21686. + ;;
  21687. + *)
  21688. + lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  21689. + if test -n "$lt_cv_sys_max_cmd_len"; then
  21690. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  21691. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  21692. + else
  21693. + # Make teststring a little bigger before we do anything with it.
  21694. + # a 1K string should be a reasonable start.
  21695. + for i in 1 2 3 4 5 6 7 8 ; do
  21696. + teststring=$teststring$teststring
  21697. + done
  21698. + SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  21699. + # If test is not a shell built-in, we'll probably end up computing a
  21700. + # maximum length that is only half of the actual maximum length, but
  21701. + # we can't tell.
  21702. + while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \
  21703. + = "XX$teststring$teststring"; } >/dev/null 2>&1 &&
  21704. + test $i != 17 # 1/2 MB should be enough
  21705. + do
  21706. + i=`expr $i + 1`
  21707. + teststring=$teststring$teststring
  21708. + done
  21709. + # Only check the string length outside the loop.
  21710. + lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  21711. + teststring=
  21712. + # Add a significant safety factor because C++ compilers can tack on
  21713. + # massive amounts of additional arguments before passing them to the
  21714. + # linker. It appears as though 1/2 is a usable value.
  21715. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  21716. + fi
  21717. ;;
  21718. esac
  21719. - ;;
  21720. -sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*)
  21721. - lt_cv_deplibs_check_method=pass_all
  21722. - ;;
  21723. -esac
  21724. +fi
  21725. +if test -n $lt_cv_sys_max_cmd_len ; then
  21726. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  21727. +$as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  21728. +else
  21729. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  21730. +$as_echo "none" >&6; }
  21731. fi
  21732. -echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5
  21733. -echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6
  21734. -file_magic_cmd=$lt_cv_file_magic_cmd
  21735. -deplibs_check_method=$lt_cv_deplibs_check_method
  21736. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  21737. +max_cmd_len=$lt_cv_sys_max_cmd_len
  21738. -# If no C compiler was specified, use CC.
  21739. -LTCC=${LTCC-"$CC"}
  21740. -# Allow CC to be a program name with arguments.
  21741. -compiler=$CC
  21742. +: ${CP="cp -f"}
  21743. +: ${MV="mv -f"}
  21744. +: ${RM="rm -f"}
  21745. +
  21746. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  21747. +$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  21748. +# Try some XSI features
  21749. +xsi_shell=no
  21750. +( _lt_dummy="a/b/c"
  21751. + test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  21752. + = c,a/b,, \
  21753. + && eval 'test $(( 1 + 1 )) -eq 2 \
  21754. + && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  21755. + && xsi_shell=yes
  21756. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  21757. +$as_echo "$xsi_shell" >&6; }
  21758. +
  21759. +
  21760. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  21761. +$as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  21762. +lt_shell_append=no
  21763. +( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  21764. + >/dev/null 2>&1 \
  21765. + && lt_shell_append=yes
  21766. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  21767. +$as_echo "$lt_shell_append" >&6; }
  21768. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  21769. -if test "${enable_libtool_lock+set}" = set; then
  21770. - enableval="$enable_libtool_lock"
  21771. -fi;
  21772. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  21773. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  21774. + lt_unset=unset
  21775. +else
  21776. + lt_unset=false
  21777. +fi
  21778. -# Some flags need to be propagated to the compiler or linker for good
  21779. -# libtool support.
  21780. -case $host in
  21781. -ia64-*-hpux*)
  21782. - # Find out which ABI we are using.
  21783. - echo 'int i;' > conftest.$ac_ext
  21784. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21785. - (eval $ac_compile) 2>&5
  21786. - ac_status=$?
  21787. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21788. - (exit $ac_status); }; then
  21789. - case `/usr/bin/file conftest.$ac_objext` in
  21790. - *ELF-32*)
  21791. - HPUX_IA64_MODE="32"
  21792. - ;;
  21793. - *ELF-64*)
  21794. - HPUX_IA64_MODE="64"
  21795. - ;;
  21796. - esac
  21797. - fi
  21798. - rm -rf conftest*
  21799. - ;;
  21800. -*-*-irix6*)
  21801. - # Find out which ABI we are using.
  21802. - echo '#line 3668 "configure"' > conftest.$ac_ext
  21803. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21804. - (eval $ac_compile) 2>&5
  21805. - ac_status=$?
  21806. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21807. - (exit $ac_status); }; then
  21808. - if test "$lt_cv_prog_gnu_ld" = yes; then
  21809. - case `/usr/bin/file conftest.$ac_objext` in
  21810. - *32-bit*)
  21811. - LD="${LD-ld} -melf32bsmip"
  21812. - ;;
  21813. - *N32*)
  21814. - LD="${LD-ld} -melf32bmipn32"
  21815. - ;;
  21816. - *64-bit*)
  21817. - LD="${LD-ld} -melf64bmip"
  21818. - ;;
  21819. - esac
  21820. - else
  21821. - case `/usr/bin/file conftest.$ac_objext` in
  21822. - *32-bit*)
  21823. - LD="${LD-ld} -32"
  21824. - ;;
  21825. - *N32*)
  21826. - LD="${LD-ld} -n32"
  21827. - ;;
  21828. - *64-bit*)
  21829. - LD="${LD-ld} -64"
  21830. - ;;
  21831. - esac
  21832. - fi
  21833. - fi
  21834. - rm -rf conftest*
  21835. - ;;
  21836. -x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  21837. - # Find out which ABI we are using.
  21838. - echo 'int i;' > conftest.$ac_ext
  21839. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  21840. - (eval $ac_compile) 2>&5
  21841. - ac_status=$?
  21842. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21843. - (exit $ac_status); }; then
  21844. - case "`/usr/bin/file conftest.o`" in
  21845. - *32-bit*)
  21846. - case $host in
  21847. - x86_64-*linux*)
  21848. - LD="${LD-ld} -m elf_i386"
  21849. - ;;
  21850. - ppc64-*linux*|powerpc64-*linux*)
  21851. - LD="${LD-ld} -m elf32ppclinux"
  21852. - ;;
  21853. - s390x-*linux*)
  21854. - LD="${LD-ld} -m elf_s390"
  21855. - ;;
  21856. - sparc64-*linux*)
  21857. - LD="${LD-ld} -m elf32_sparc"
  21858. - ;;
  21859. - esac
  21860. - ;;
  21861. - *64-bit*)
  21862. - case $host in
  21863. - x86_64-*linux*)
  21864. - LD="${LD-ld} -m elf_x86_64"
  21865. - ;;
  21866. - ppc*-*linux*|powerpc*-*linux*)
  21867. - LD="${LD-ld} -m elf64ppc"
  21868. - ;;
  21869. - s390*-*linux*)
  21870. - LD="${LD-ld} -m elf64_s390"
  21871. - ;;
  21872. - sparc*-*linux*)
  21873. - LD="${LD-ld} -m elf64_sparc"
  21874. - ;;
  21875. - esac
  21876. - ;;
  21877. - esac
  21878. - fi
  21879. - rm -rf conftest*
  21880. - ;;
  21881. -*-*-sco3.2v5*)
  21882. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  21883. - SAVE_CFLAGS="$CFLAGS"
  21884. - CFLAGS="$CFLAGS -belf"
  21885. - echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5
  21886. -echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6
  21887. -if test "${lt_cv_cc_needs_belf+set}" = set; then
  21888. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21889. -else
  21890. - ac_ext=c
  21891. -ac_cpp='$CPP $CPPFLAGS'
  21892. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21893. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21894. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21895. - cat >conftest.$ac_ext <<_ACEOF
  21896. -/* confdefs.h. */
  21897. -_ACEOF
  21898. -cat confdefs.h >>conftest.$ac_ext
  21899. -cat >>conftest.$ac_ext <<_ACEOF
  21900. -/* end confdefs.h. */
  21901. -int
  21902. -main ()
  21903. -{
  21904. +# test EBCDIC or ASCII
  21905. +case `echo X|tr X '\101'` in
  21906. + A) # ASCII based system
  21907. + # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  21908. + lt_SP2NL='tr \040 \012'
  21909. + lt_NL2SP='tr \015\012 \040\040'
  21910. + ;;
  21911. + *) # EBCDIC based system
  21912. + lt_SP2NL='tr \100 \n'
  21913. + lt_NL2SP='tr \r\n \100\100'
  21914. + ;;
  21915. +esac
  21916. - ;
  21917. - return 0;
  21918. -}
  21919. -_ACEOF
  21920. -rm -f conftest.$ac_objext conftest$ac_exeext
  21921. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  21922. - (eval $ac_link) 2>conftest.er1
  21923. - ac_status=$?
  21924. - grep -v '^ *+' conftest.er1 >conftest.err
  21925. - rm -f conftest.er1
  21926. - cat conftest.err >&5
  21927. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21928. - (exit $ac_status); } &&
  21929. - { ac_try='test -z "$ac_c_werror_flag"
  21930. - || test ! -s conftest.err'
  21931. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21932. - (eval $ac_try) 2>&5
  21933. - ac_status=$?
  21934. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21935. - (exit $ac_status); }; } &&
  21936. - { ac_try='test -s conftest$ac_exeext'
  21937. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  21938. - (eval $ac_try) 2>&5
  21939. - ac_status=$?
  21940. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  21941. - (exit $ac_status); }; }; then
  21942. - lt_cv_cc_needs_belf=yes
  21943. -else
  21944. - echo "$as_me: failed program was:" >&5
  21945. -sed 's/^/| /' conftest.$ac_ext >&5
  21946. -lt_cv_cc_needs_belf=no
  21947. -fi
  21948. -rm -f conftest.err conftest.$ac_objext \
  21949. - conftest$ac_exeext conftest.$ac_ext
  21950. - ac_ext=c
  21951. -ac_cpp='$CPP $CPPFLAGS'
  21952. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21953. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21954. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21955. -fi
  21956. -echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5
  21957. -echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6
  21958. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  21959. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  21960. - CFLAGS="$SAVE_CFLAGS"
  21961. - fi
  21962. - ;;
  21963. -esac
  21964. -need_locks="$enable_libtool_lock"
  21965. -ac_ext=c
  21966. -ac_cpp='$CPP $CPPFLAGS'
  21967. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  21968. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  21969. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  21970. -echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
  21971. -echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
  21972. -# On Suns, sometimes $CPP names a directory.
  21973. -if test -n "$CPP" && test -d "$CPP"; then
  21974. - CPP=
  21975. -fi
  21976. -if test -z "$CPP"; then
  21977. - if test "${ac_cv_prog_CPP+set}" = set; then
  21978. - echo $ECHO_N "(cached) $ECHO_C" >&6
  21979. -else
  21980. - # Double quotes because CPP needs to be expanded
  21981. - for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  21982. - do
  21983. - ac_preproc_ok=false
  21984. -for ac_c_preproc_warn_flag in '' yes
  21985. -do
  21986. - # Use a header file that comes with gcc, so configuring glibc
  21987. - # with a fresh cross-compiler works.
  21988. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  21989. - # <limits.h> exists even on freestanding compilers.
  21990. - # On the NeXT, cc -E runs the code through the compiler's parser,
  21991. - # not just through cpp. "Syntax error" is here to catch this case.
  21992. - cat >conftest.$ac_ext <<_ACEOF
  21993. -/* confdefs.h. */
  21994. -_ACEOF
  21995. -cat confdefs.h >>conftest.$ac_ext
  21996. -cat >>conftest.$ac_ext <<_ACEOF
  21997. -/* end confdefs.h. */
  21998. -#ifdef __STDC__
  21999. -# include <limits.h>
  22000. -#else
  22001. -# include <assert.h>
  22002. -#endif
  22003. - Syntax error
  22004. -_ACEOF
  22005. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22006. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22007. - ac_status=$?
  22008. - grep -v '^ *+' conftest.er1 >conftest.err
  22009. - rm -f conftest.er1
  22010. - cat conftest.err >&5
  22011. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22012. - (exit $ac_status); } >/dev/null; then
  22013. - if test -s conftest.err; then
  22014. - ac_cpp_err=$ac_c_preproc_warn_flag
  22015. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22016. - else
  22017. - ac_cpp_err=
  22018. - fi
  22019. +
  22020. +
  22021. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  22022. +$as_echo_n "checking for $LD option to reload object files... " >&6; }
  22023. +if test "${lt_cv_ld_reload_flag+set}" = set; then :
  22024. + $as_echo_n "(cached) " >&6
  22025. else
  22026. - ac_cpp_err=yes
  22027. + lt_cv_ld_reload_flag='-r'
  22028. fi
  22029. -if test -z "$ac_cpp_err"; then
  22030. - :
  22031. -else
  22032. - echo "$as_me: failed program was:" >&5
  22033. -sed 's/^/| /' conftest.$ac_ext >&5
  22034. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  22035. +$as_echo "$lt_cv_ld_reload_flag" >&6; }
  22036. +reload_flag=$lt_cv_ld_reload_flag
  22037. +case $reload_flag in
  22038. +"" | " "*) ;;
  22039. +*) reload_flag=" $reload_flag" ;;
  22040. +esac
  22041. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  22042. +case $host_os in
  22043. + darwin*)
  22044. + if test "$GCC" = yes; then
  22045. + reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  22046. + else
  22047. + reload_cmds='$LD$reload_flag -o $output$reload_objs'
  22048. + fi
  22049. + ;;
  22050. +esac
  22051. - # Broken: fails on valid input.
  22052. -continue
  22053. -fi
  22054. -rm -f conftest.err conftest.$ac_ext
  22055. - # OK, works on sane cases. Now check whether non-existent headers
  22056. - # can be detected and how.
  22057. - cat >conftest.$ac_ext <<_ACEOF
  22058. -/* confdefs.h. */
  22059. -_ACEOF
  22060. -cat confdefs.h >>conftest.$ac_ext
  22061. -cat >>conftest.$ac_ext <<_ACEOF
  22062. -/* end confdefs.h. */
  22063. -#include <ac_nonexistent.h>
  22064. -_ACEOF
  22065. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22066. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22067. - ac_status=$?
  22068. - grep -v '^ *+' conftest.er1 >conftest.err
  22069. - rm -f conftest.er1
  22070. - cat conftest.err >&5
  22071. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22072. - (exit $ac_status); } >/dev/null; then
  22073. - if test -s conftest.err; then
  22074. - ac_cpp_err=$ac_c_preproc_warn_flag
  22075. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22076. - else
  22077. - ac_cpp_err=
  22078. - fi
  22079. +
  22080. +
  22081. +
  22082. +
  22083. +
  22084. +
  22085. +
  22086. +if test -n "$ac_tool_prefix"; then
  22087. + # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  22088. +set dummy ${ac_tool_prefix}objdump; ac_word=$2
  22089. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22090. +$as_echo_n "checking for $ac_word... " >&6; }
  22091. +if test "${ac_cv_prog_OBJDUMP+set}" = set; then :
  22092. + $as_echo_n "(cached) " >&6
  22093. else
  22094. - ac_cpp_err=yes
  22095. -fi
  22096. -if test -z "$ac_cpp_err"; then
  22097. - # Broken: success on invalid input.
  22098. -continue
  22099. + if test -n "$OBJDUMP"; then
  22100. + ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  22101. else
  22102. - echo "$as_me: failed program was:" >&5
  22103. -sed 's/^/| /' conftest.$ac_ext >&5
  22104. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22105. +for as_dir in $PATH
  22106. +do
  22107. + IFS=$as_save_IFS
  22108. + test -z "$as_dir" && as_dir=.
  22109. + for ac_exec_ext in '' $ac_executable_extensions; do
  22110. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22111. + ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  22112. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22113. + break 2
  22114. + fi
  22115. +done
  22116. + done
  22117. +IFS=$as_save_IFS
  22118. - # Passes both tests.
  22119. -ac_preproc_ok=:
  22120. -break
  22121. fi
  22122. -rm -f conftest.err conftest.$ac_ext
  22123. -
  22124. -done
  22125. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22126. -rm -f conftest.err conftest.$ac_ext
  22127. -if $ac_preproc_ok; then
  22128. - break
  22129. +fi
  22130. +OBJDUMP=$ac_cv_prog_OBJDUMP
  22131. +if test -n "$OBJDUMP"; then
  22132. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  22133. +$as_echo "$OBJDUMP" >&6; }
  22134. +else
  22135. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22136. +$as_echo "no" >&6; }
  22137. fi
  22138. - done
  22139. - ac_cv_prog_CPP=$CPP
  22140. fi
  22141. - CPP=$ac_cv_prog_CPP
  22142. +if test -z "$ac_cv_prog_OBJDUMP"; then
  22143. + ac_ct_OBJDUMP=$OBJDUMP
  22144. + # Extract the first word of "objdump", so it can be a program name with args.
  22145. +set dummy objdump; ac_word=$2
  22146. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22147. +$as_echo_n "checking for $ac_word... " >&6; }
  22148. +if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then :
  22149. + $as_echo_n "(cached) " >&6
  22150. else
  22151. - ac_cv_prog_CPP=$CPP
  22152. -fi
  22153. -echo "$as_me:$LINENO: result: $CPP" >&5
  22154. -echo "${ECHO_T}$CPP" >&6
  22155. -ac_preproc_ok=false
  22156. -for ac_c_preproc_warn_flag in '' yes
  22157. + if test -n "$ac_ct_OBJDUMP"; then
  22158. + ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  22159. +else
  22160. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22161. +for as_dir in $PATH
  22162. do
  22163. - # Use a header file that comes with gcc, so configuring glibc
  22164. - # with a fresh cross-compiler works.
  22165. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  22166. - # <limits.h> exists even on freestanding compilers.
  22167. - # On the NeXT, cc -E runs the code through the compiler's parser,
  22168. - # not just through cpp. "Syntax error" is here to catch this case.
  22169. - cat >conftest.$ac_ext <<_ACEOF
  22170. -/* confdefs.h. */
  22171. -_ACEOF
  22172. -cat confdefs.h >>conftest.$ac_ext
  22173. -cat >>conftest.$ac_ext <<_ACEOF
  22174. -/* end confdefs.h. */
  22175. -#ifdef __STDC__
  22176. -# include <limits.h>
  22177. -#else
  22178. -# include <assert.h>
  22179. -#endif
  22180. - Syntax error
  22181. -_ACEOF
  22182. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22183. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22184. - ac_status=$?
  22185. - grep -v '^ *+' conftest.er1 >conftest.err
  22186. - rm -f conftest.er1
  22187. - cat conftest.err >&5
  22188. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22189. - (exit $ac_status); } >/dev/null; then
  22190. - if test -s conftest.err; then
  22191. - ac_cpp_err=$ac_c_preproc_warn_flag
  22192. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22193. - else
  22194. - ac_cpp_err=
  22195. + IFS=$as_save_IFS
  22196. + test -z "$as_dir" && as_dir=.
  22197. + for ac_exec_ext in '' $ac_executable_extensions; do
  22198. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22199. + ac_cv_prog_ac_ct_OBJDUMP="objdump"
  22200. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22201. + break 2
  22202. fi
  22203. -else
  22204. - ac_cpp_err=yes
  22205. +done
  22206. + done
  22207. +IFS=$as_save_IFS
  22208. +
  22209. fi
  22210. -if test -z "$ac_cpp_err"; then
  22211. - :
  22212. +fi
  22213. +ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  22214. +if test -n "$ac_ct_OBJDUMP"; then
  22215. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  22216. +$as_echo "$ac_ct_OBJDUMP" >&6; }
  22217. else
  22218. - echo "$as_me: failed program was:" >&5
  22219. -sed 's/^/| /' conftest.$ac_ext >&5
  22220. -
  22221. - # Broken: fails on valid input.
  22222. -continue
  22223. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22224. +$as_echo "no" >&6; }
  22225. fi
  22226. -rm -f conftest.err conftest.$ac_ext
  22227. - # OK, works on sane cases. Now check whether non-existent headers
  22228. - # can be detected and how.
  22229. - cat >conftest.$ac_ext <<_ACEOF
  22230. -/* confdefs.h. */
  22231. -_ACEOF
  22232. -cat confdefs.h >>conftest.$ac_ext
  22233. -cat >>conftest.$ac_ext <<_ACEOF
  22234. -/* end confdefs.h. */
  22235. -#include <ac_nonexistent.h>
  22236. -_ACEOF
  22237. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22238. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22239. - ac_status=$?
  22240. - grep -v '^ *+' conftest.er1 >conftest.err
  22241. - rm -f conftest.er1
  22242. - cat conftest.err >&5
  22243. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22244. - (exit $ac_status); } >/dev/null; then
  22245. - if test -s conftest.err; then
  22246. - ac_cpp_err=$ac_c_preproc_warn_flag
  22247. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22248. + if test "x$ac_ct_OBJDUMP" = x; then
  22249. + OBJDUMP="false"
  22250. else
  22251. - ac_cpp_err=
  22252. + case $cross_compiling:$ac_tool_warned in
  22253. +yes:)
  22254. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22255. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22256. +ac_tool_warned=yes ;;
  22257. +esac
  22258. + OBJDUMP=$ac_ct_OBJDUMP
  22259. fi
  22260. else
  22261. - ac_cpp_err=yes
  22262. + OBJDUMP="$ac_cv_prog_OBJDUMP"
  22263. fi
  22264. -if test -z "$ac_cpp_err"; then
  22265. - # Broken: success on invalid input.
  22266. -continue
  22267. -else
  22268. - echo "$as_me: failed program was:" >&5
  22269. -sed 's/^/| /' conftest.$ac_ext >&5
  22270. - # Passes both tests.
  22271. -ac_preproc_ok=:
  22272. -break
  22273. -fi
  22274. -rm -f conftest.err conftest.$ac_ext
  22275. +test -z "$OBJDUMP" && OBJDUMP=objdump
  22276. -done
  22277. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  22278. -rm -f conftest.err conftest.$ac_ext
  22279. -if $ac_preproc_ok; then
  22280. - :
  22281. -else
  22282. - { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
  22283. -See \`config.log' for more details." >&5
  22284. -echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
  22285. -See \`config.log' for more details." >&2;}
  22286. - { (exit 1); exit 1; }; }
  22287. -fi
  22288. -ac_ext=c
  22289. -ac_cpp='$CPP $CPPFLAGS'
  22290. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22291. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22292. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  22293. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  22294. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  22295. -if test "${ac_cv_header_stdc+set}" = set; then
  22296. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22297. -else
  22298. - cat >conftest.$ac_ext <<_ACEOF
  22299. -/* confdefs.h. */
  22300. -_ACEOF
  22301. -cat confdefs.h >>conftest.$ac_ext
  22302. -cat >>conftest.$ac_ext <<_ACEOF
  22303. -/* end confdefs.h. */
  22304. -#include <stdlib.h>
  22305. -#include <stdarg.h>
  22306. -#include <string.h>
  22307. -#include <float.h>
  22308. -int
  22309. -main ()
  22310. -{
  22311. - ;
  22312. - return 0;
  22313. -}
  22314. -_ACEOF
  22315. -rm -f conftest.$ac_objext
  22316. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22317. - (eval $ac_compile) 2>conftest.er1
  22318. - ac_status=$?
  22319. - grep -v '^ *+' conftest.er1 >conftest.err
  22320. - rm -f conftest.er1
  22321. - cat conftest.err >&5
  22322. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22323. - (exit $ac_status); } &&
  22324. - { ac_try='test -z "$ac_c_werror_flag"
  22325. - || test ! -s conftest.err'
  22326. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22327. - (eval $ac_try) 2>&5
  22328. - ac_status=$?
  22329. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22330. - (exit $ac_status); }; } &&
  22331. - { ac_try='test -s conftest.$ac_objext'
  22332. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22333. - (eval $ac_try) 2>&5
  22334. - ac_status=$?
  22335. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22336. - (exit $ac_status); }; }; then
  22337. - ac_cv_header_stdc=yes
  22338. -else
  22339. - echo "$as_me: failed program was:" >&5
  22340. -sed 's/^/| /' conftest.$ac_ext >&5
  22341. -ac_cv_header_stdc=no
  22342. -fi
  22343. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22344. -if test $ac_cv_header_stdc = yes; then
  22345. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  22346. - cat >conftest.$ac_ext <<_ACEOF
  22347. -/* confdefs.h. */
  22348. -_ACEOF
  22349. -cat confdefs.h >>conftest.$ac_ext
  22350. -cat >>conftest.$ac_ext <<_ACEOF
  22351. -/* end confdefs.h. */
  22352. -#include <string.h>
  22353. -_ACEOF
  22354. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22355. - $EGREP "memchr" >/dev/null 2>&1; then
  22356. - :
  22357. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  22358. +$as_echo_n "checking how to recognize dependent libraries... " >&6; }
  22359. +if test "${lt_cv_deplibs_check_method+set}" = set; then :
  22360. + $as_echo_n "(cached) " >&6
  22361. else
  22362. - ac_cv_header_stdc=no
  22363. -fi
  22364. -rm -f conftest*
  22365. + lt_cv_file_magic_cmd='$MAGIC_CMD'
  22366. +lt_cv_file_magic_test_file=
  22367. +lt_cv_deplibs_check_method='unknown'
  22368. +# Need to set the preceding variable on all platforms that support
  22369. +# interlibrary dependencies.
  22370. +# 'none' -- dependencies not supported.
  22371. +# `unknown' -- same as none, but documents that we really don't know.
  22372. +# 'pass_all' -- all dependencies passed with no checks.
  22373. +# 'test_compile' -- check by making test program.
  22374. +# 'file_magic [[regex]]' -- check by looking for files in library path
  22375. +# which responds to the $file_magic_cmd with a given extended regex.
  22376. +# If you have `file' or equivalent on your system and you're not sure
  22377. +# whether `pass_all' will *always* work, you probably want this one.
  22378. -fi
  22379. +case $host_os in
  22380. +aix[4-9]*)
  22381. + lt_cv_deplibs_check_method=pass_all
  22382. + ;;
  22383. -if test $ac_cv_header_stdc = yes; then
  22384. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  22385. - cat >conftest.$ac_ext <<_ACEOF
  22386. -/* confdefs.h. */
  22387. -_ACEOF
  22388. -cat confdefs.h >>conftest.$ac_ext
  22389. -cat >>conftest.$ac_ext <<_ACEOF
  22390. -/* end confdefs.h. */
  22391. -#include <stdlib.h>
  22392. +beos*)
  22393. + lt_cv_deplibs_check_method=pass_all
  22394. + ;;
  22395. -_ACEOF
  22396. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  22397. - $EGREP "free" >/dev/null 2>&1; then
  22398. - :
  22399. -else
  22400. - ac_cv_header_stdc=no
  22401. -fi
  22402. -rm -f conftest*
  22403. +bsdi[45]*)
  22404. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  22405. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  22406. + lt_cv_file_magic_test_file=/shlib/libc.so
  22407. + ;;
  22408. -fi
  22409. +cygwin*)
  22410. + # func_win32_libid is a shell function defined in ltmain.sh
  22411. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  22412. + lt_cv_file_magic_cmd='func_win32_libid'
  22413. + ;;
  22414. -if test $ac_cv_header_stdc = yes; then
  22415. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  22416. - if test "$cross_compiling" = yes; then
  22417. - :
  22418. -else
  22419. - cat >conftest.$ac_ext <<_ACEOF
  22420. -/* confdefs.h. */
  22421. -_ACEOF
  22422. -cat confdefs.h >>conftest.$ac_ext
  22423. -cat >>conftest.$ac_ext <<_ACEOF
  22424. -/* end confdefs.h. */
  22425. -#include <ctype.h>
  22426. -#if ((' ' & 0x0FF) == 0x020)
  22427. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  22428. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  22429. -#else
  22430. -# define ISLOWER(c) \
  22431. - (('a' <= (c) && (c) <= 'i') \
  22432. - || ('j' <= (c) && (c) <= 'r') \
  22433. - || ('s' <= (c) && (c) <= 'z'))
  22434. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  22435. -#endif
  22436. +mingw* | pw32*)
  22437. + # Base MSYS/MinGW do not provide the 'file' command needed by
  22438. + # func_win32_libid shell function, so use a weaker test based on 'objdump',
  22439. + # unless we find 'file', for example because we are cross-compiling.
  22440. + if ( file / ) >/dev/null 2>&1; then
  22441. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  22442. + lt_cv_file_magic_cmd='func_win32_libid'
  22443. + else
  22444. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  22445. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  22446. + fi
  22447. + ;;
  22448. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  22449. -int
  22450. -main ()
  22451. -{
  22452. - int i;
  22453. - for (i = 0; i < 256; i++)
  22454. - if (XOR (islower (i), ISLOWER (i))
  22455. - || toupper (i) != TOUPPER (i))
  22456. - exit(2);
  22457. - exit (0);
  22458. -}
  22459. -_ACEOF
  22460. -rm -f conftest$ac_exeext
  22461. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  22462. - (eval $ac_link) 2>&5
  22463. - ac_status=$?
  22464. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22465. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  22466. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22467. - (eval $ac_try) 2>&5
  22468. - ac_status=$?
  22469. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22470. - (exit $ac_status); }; }; then
  22471. - :
  22472. -else
  22473. - echo "$as_me: program exited with status $ac_status" >&5
  22474. -echo "$as_me: failed program was:" >&5
  22475. -sed 's/^/| /' conftest.$ac_ext >&5
  22476. +cegcc)
  22477. + # use the weaker test based on 'objdump'. See mingw*.
  22478. + lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  22479. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  22480. + ;;
  22481. -( exit $ac_status )
  22482. -ac_cv_header_stdc=no
  22483. -fi
  22484. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  22485. -fi
  22486. -fi
  22487. -fi
  22488. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  22489. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  22490. -if test $ac_cv_header_stdc = yes; then
  22491. +darwin* | rhapsody*)
  22492. + lt_cv_deplibs_check_method=pass_all
  22493. + ;;
  22494. -cat >>confdefs.h <<\_ACEOF
  22495. -#define STDC_HEADERS 1
  22496. -_ACEOF
  22497. +freebsd* | dragonfly*)
  22498. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22499. + case $host_cpu in
  22500. + i*86 )
  22501. + # Not sure whether the presence of OpenBSD here was a mistake.
  22502. + # Let's accept both of them until this is cleared up.
  22503. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  22504. + lt_cv_file_magic_cmd=/usr/bin/file
  22505. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  22506. + ;;
  22507. + esac
  22508. + else
  22509. + lt_cv_deplibs_check_method=pass_all
  22510. + fi
  22511. + ;;
  22512. -fi
  22513. +gnu*)
  22514. + lt_cv_deplibs_check_method=pass_all
  22515. + ;;
  22516. -# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  22517. +hpux10.20* | hpux11*)
  22518. + lt_cv_file_magic_cmd=/usr/bin/file
  22519. + case $host_cpu in
  22520. + ia64*)
  22521. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  22522. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  22523. + ;;
  22524. + hppa*64*)
  22525. + 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]'
  22526. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  22527. + ;;
  22528. + *)
  22529. + lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library'
  22530. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  22531. + ;;
  22532. + esac
  22533. + ;;
  22534. +interix[3-9]*)
  22535. + # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  22536. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  22537. + ;;
  22538. +irix5* | irix6* | nonstopux*)
  22539. + case $LD in
  22540. + *-32|*"-32 ") libmagic=32-bit;;
  22541. + *-n32|*"-n32 ") libmagic=N32;;
  22542. + *-64|*"-64 ") libmagic=64-bit;;
  22543. + *) libmagic=never-match;;
  22544. + esac
  22545. + lt_cv_deplibs_check_method=pass_all
  22546. + ;;
  22547. +# This must be Linux ELF.
  22548. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  22549. + lt_cv_deplibs_check_method=pass_all
  22550. + ;;
  22551. +netbsd* | netbsdelf*-gnu)
  22552. + if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  22553. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22554. + else
  22555. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  22556. + fi
  22557. + ;;
  22558. +newos6*)
  22559. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  22560. + lt_cv_file_magic_cmd=/usr/bin/file
  22561. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  22562. + ;;
  22563. +*nto* | *qnx*)
  22564. + lt_cv_deplibs_check_method=pass_all
  22565. + ;;
  22566. +openbsd*)
  22567. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  22568. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  22569. + else
  22570. + lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  22571. + fi
  22572. + ;;
  22573. +osf3* | osf4* | osf5*)
  22574. + lt_cv_deplibs_check_method=pass_all
  22575. + ;;
  22576. -for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  22577. - inttypes.h stdint.h unistd.h
  22578. -do
  22579. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22580. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  22581. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22582. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22583. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22584. -else
  22585. - cat >conftest.$ac_ext <<_ACEOF
  22586. -/* confdefs.h. */
  22587. -_ACEOF
  22588. -cat confdefs.h >>conftest.$ac_ext
  22589. -cat >>conftest.$ac_ext <<_ACEOF
  22590. -/* end confdefs.h. */
  22591. -$ac_includes_default
  22592. +rdos*)
  22593. + lt_cv_deplibs_check_method=pass_all
  22594. + ;;
  22595. -#include <$ac_header>
  22596. -_ACEOF
  22597. -rm -f conftest.$ac_objext
  22598. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22599. - (eval $ac_compile) 2>conftest.er1
  22600. - ac_status=$?
  22601. - grep -v '^ *+' conftest.er1 >conftest.err
  22602. - rm -f conftest.er1
  22603. - cat conftest.err >&5
  22604. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22605. - (exit $ac_status); } &&
  22606. - { ac_try='test -z "$ac_c_werror_flag"
  22607. - || test ! -s conftest.err'
  22608. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22609. - (eval $ac_try) 2>&5
  22610. - ac_status=$?
  22611. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22612. - (exit $ac_status); }; } &&
  22613. - { ac_try='test -s conftest.$ac_objext'
  22614. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22615. - (eval $ac_try) 2>&5
  22616. - ac_status=$?
  22617. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22618. - (exit $ac_status); }; }; then
  22619. - eval "$as_ac_Header=yes"
  22620. -else
  22621. - echo "$as_me: failed program was:" >&5
  22622. -sed 's/^/| /' conftest.$ac_ext >&5
  22623. +solaris*)
  22624. + lt_cv_deplibs_check_method=pass_all
  22625. + ;;
  22626. -eval "$as_ac_Header=no"
  22627. -fi
  22628. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22629. -fi
  22630. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22631. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22632. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22633. - cat >>confdefs.h <<_ACEOF
  22634. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22635. -_ACEOF
  22636. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  22637. + lt_cv_deplibs_check_method=pass_all
  22638. + ;;
  22639. +
  22640. +sysv4 | sysv4.3*)
  22641. + case $host_vendor in
  22642. + motorola)
  22643. + 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]'
  22644. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  22645. + ;;
  22646. + ncr)
  22647. + lt_cv_deplibs_check_method=pass_all
  22648. + ;;
  22649. + sequent)
  22650. + lt_cv_file_magic_cmd='/bin/file'
  22651. + lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  22652. + ;;
  22653. + sni)
  22654. + lt_cv_file_magic_cmd='/bin/file'
  22655. + lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  22656. + lt_cv_file_magic_test_file=/lib/libc.so
  22657. + ;;
  22658. + siemens)
  22659. + lt_cv_deplibs_check_method=pass_all
  22660. + ;;
  22661. + pc)
  22662. + lt_cv_deplibs_check_method=pass_all
  22663. + ;;
  22664. + esac
  22665. + ;;
  22666. +
  22667. +tpf*)
  22668. + lt_cv_deplibs_check_method=pass_all
  22669. + ;;
  22670. +esac
  22671. fi
  22672. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  22673. +$as_echo "$lt_cv_deplibs_check_method" >&6; }
  22674. +file_magic_cmd=$lt_cv_file_magic_cmd
  22675. +deplibs_check_method=$lt_cv_deplibs_check_method
  22676. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  22677. -done
  22678. -for ac_header in dlfcn.h
  22679. -do
  22680. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  22681. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22682. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  22683. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22684. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22685. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22686. -fi
  22687. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22688. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22689. -else
  22690. - # Is the header compilable?
  22691. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  22692. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  22693. -cat >conftest.$ac_ext <<_ACEOF
  22694. -/* confdefs.h. */
  22695. -_ACEOF
  22696. -cat confdefs.h >>conftest.$ac_ext
  22697. -cat >>conftest.$ac_ext <<_ACEOF
  22698. -/* end confdefs.h. */
  22699. -$ac_includes_default
  22700. -#include <$ac_header>
  22701. -_ACEOF
  22702. -rm -f conftest.$ac_objext
  22703. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  22704. - (eval $ac_compile) 2>conftest.er1
  22705. - ac_status=$?
  22706. - grep -v '^ *+' conftest.er1 >conftest.err
  22707. - rm -f conftest.er1
  22708. - cat conftest.err >&5
  22709. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22710. - (exit $ac_status); } &&
  22711. - { ac_try='test -z "$ac_c_werror_flag"
  22712. - || test ! -s conftest.err'
  22713. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22714. - (eval $ac_try) 2>&5
  22715. - ac_status=$?
  22716. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22717. - (exit $ac_status); }; } &&
  22718. - { ac_try='test -s conftest.$ac_objext'
  22719. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  22720. - (eval $ac_try) 2>&5
  22721. - ac_status=$?
  22722. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22723. - (exit $ac_status); }; }; then
  22724. - ac_header_compiler=yes
  22725. -else
  22726. - echo "$as_me: failed program was:" >&5
  22727. -sed 's/^/| /' conftest.$ac_ext >&5
  22728. -ac_header_compiler=no
  22729. -fi
  22730. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  22731. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  22732. -echo "${ECHO_T}$ac_header_compiler" >&6
  22733. -# Is the header present?
  22734. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  22735. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  22736. -cat >conftest.$ac_ext <<_ACEOF
  22737. -/* confdefs.h. */
  22738. -_ACEOF
  22739. -cat confdefs.h >>conftest.$ac_ext
  22740. -cat >>conftest.$ac_ext <<_ACEOF
  22741. -/* end confdefs.h. */
  22742. -#include <$ac_header>
  22743. -_ACEOF
  22744. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  22745. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  22746. - ac_status=$?
  22747. - grep -v '^ *+' conftest.er1 >conftest.err
  22748. - rm -f conftest.er1
  22749. - cat conftest.err >&5
  22750. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22751. - (exit $ac_status); } >/dev/null; then
  22752. - if test -s conftest.err; then
  22753. - ac_cpp_err=$ac_c_preproc_warn_flag
  22754. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  22755. - else
  22756. - ac_cpp_err=
  22757. - fi
  22758. -else
  22759. - ac_cpp_err=yes
  22760. -fi
  22761. -if test -z "$ac_cpp_err"; then
  22762. - ac_header_preproc=yes
  22763. -else
  22764. - echo "$as_me: failed program was:" >&5
  22765. -sed 's/^/| /' conftest.$ac_ext >&5
  22766. - ac_header_preproc=no
  22767. -fi
  22768. -rm -f conftest.err conftest.$ac_ext
  22769. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  22770. -echo "${ECHO_T}$ac_header_preproc" >&6
  22771. -# So? What about this header?
  22772. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  22773. - yes:no: )
  22774. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  22775. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  22776. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  22777. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  22778. - ac_header_preproc=yes
  22779. - ;;
  22780. - no:yes:* )
  22781. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  22782. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  22783. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  22784. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  22785. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  22786. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  22787. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  22788. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  22789. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  22790. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  22791. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  22792. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  22793. - (
  22794. - cat <<\_ASBOX
  22795. -## ---------------------------------- ##
  22796. -## Report this to bugs@chillispot.org ##
  22797. -## ---------------------------------- ##
  22798. -_ASBOX
  22799. - ) |
  22800. - sed "s/^/$as_me: WARNING: /" >&2
  22801. - ;;
  22802. -esac
  22803. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  22804. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  22805. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  22806. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22807. -else
  22808. - eval "$as_ac_Header=\$ac_header_preproc"
  22809. -fi
  22810. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  22811. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  22812. -fi
  22813. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  22814. - cat >>confdefs.h <<_ACEOF
  22815. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  22816. -_ACEOF
  22817. -fi
  22818. -done
  22819. -ac_ext=cc
  22820. -ac_cpp='$CXXCPP $CPPFLAGS'
  22821. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  22822. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  22823. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  22824. if test -n "$ac_tool_prefix"; then
  22825. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  22826. - do
  22827. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  22828. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  22829. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22830. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22831. -if test "${ac_cv_prog_CXX+set}" = set; then
  22832. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22833. + # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  22834. +set dummy ${ac_tool_prefix}ar; ac_word=$2
  22835. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22836. +$as_echo_n "checking for $ac_word... " >&6; }
  22837. +if test "${ac_cv_prog_AR+set}" = set; then :
  22838. + $as_echo_n "(cached) " >&6
  22839. else
  22840. - if test -n "$CXX"; then
  22841. - ac_cv_prog_CXX="$CXX" # Let the user override the test.
  22842. + if test -n "$AR"; then
  22843. + ac_cv_prog_AR="$AR" # Let the user override the test.
  22844. else
  22845. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22846. for as_dir in $PATH
  22847. do
  22848. IFS=$as_save_IFS
  22849. test -z "$as_dir" && as_dir=.
  22850. - for ac_exec_ext in '' $ac_executable_extensions; do
  22851. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22852. - ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  22853. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22854. + for ac_exec_ext in '' $ac_executable_extensions; do
  22855. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22856. + ac_cv_prog_AR="${ac_tool_prefix}ar"
  22857. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22858. break 2
  22859. fi
  22860. done
  22861. -done
  22862. + done
  22863. +IFS=$as_save_IFS
  22864. fi
  22865. fi
  22866. -CXX=$ac_cv_prog_CXX
  22867. -if test -n "$CXX"; then
  22868. - echo "$as_me:$LINENO: result: $CXX" >&5
  22869. -echo "${ECHO_T}$CXX" >&6
  22870. +AR=$ac_cv_prog_AR
  22871. +if test -n "$AR"; then
  22872. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  22873. +$as_echo "$AR" >&6; }
  22874. else
  22875. - echo "$as_me:$LINENO: result: no" >&5
  22876. -echo "${ECHO_T}no" >&6
  22877. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22878. +$as_echo "no" >&6; }
  22879. fi
  22880. - test -n "$CXX" && break
  22881. - done
  22882. +
  22883. fi
  22884. -if test -z "$CXX"; then
  22885. - ac_ct_CXX=$CXX
  22886. - for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC
  22887. -do
  22888. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  22889. -set dummy $ac_prog; ac_word=$2
  22890. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  22891. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  22892. -if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
  22893. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22894. +if test -z "$ac_cv_prog_AR"; then
  22895. + ac_ct_AR=$AR
  22896. + # Extract the first word of "ar", so it can be a program name with args.
  22897. +set dummy ar; ac_word=$2
  22898. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  22899. +$as_echo_n "checking for $ac_word... " >&6; }
  22900. +if test "${ac_cv_prog_ac_ct_AR+set}" = set; then :
  22901. + $as_echo_n "(cached) " >&6
  22902. else
  22903. - if test -n "$ac_ct_CXX"; then
  22904. - ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  22905. + if test -n "$ac_ct_AR"; then
  22906. + ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  22907. else
  22908. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  22909. for as_dir in $PATH
  22910. do
  22911. IFS=$as_save_IFS
  22912. test -z "$as_dir" && as_dir=.
  22913. - for ac_exec_ext in '' $ac_executable_extensions; do
  22914. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  22915. - ac_cv_prog_ac_ct_CXX="$ac_prog"
  22916. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  22917. + for ac_exec_ext in '' $ac_executable_extensions; do
  22918. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  22919. + ac_cv_prog_ac_ct_AR="ar"
  22920. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  22921. break 2
  22922. fi
  22923. done
  22924. -done
  22925. + done
  22926. +IFS=$as_save_IFS
  22927. fi
  22928. fi
  22929. -ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  22930. -if test -n "$ac_ct_CXX"; then
  22931. - echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
  22932. -echo "${ECHO_T}$ac_ct_CXX" >&6
  22933. +ac_ct_AR=$ac_cv_prog_ac_ct_AR
  22934. +if test -n "$ac_ct_AR"; then
  22935. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  22936. +$as_echo "$ac_ct_AR" >&6; }
  22937. else
  22938. - echo "$as_me:$LINENO: result: no" >&5
  22939. -echo "${ECHO_T}no" >&6
  22940. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  22941. +$as_echo "no" >&6; }
  22942. fi
  22943. - test -n "$ac_ct_CXX" && break
  22944. -done
  22945. -test -n "$ac_ct_CXX" || ac_ct_CXX="g++"
  22946. -
  22947. - CXX=$ac_ct_CXX
  22948. + if test "x$ac_ct_AR" = x; then
  22949. + AR="false"
  22950. + else
  22951. + case $cross_compiling:$ac_tool_warned in
  22952. +yes:)
  22953. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  22954. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  22955. +ac_tool_warned=yes ;;
  22956. +esac
  22957. + AR=$ac_ct_AR
  22958. + fi
  22959. +else
  22960. + AR="$ac_cv_prog_AR"
  22961. fi
  22962. +test -z "$AR" && AR=ar
  22963. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  22964. -# Provide some information about the compiler.
  22965. -echo "$as_me:$LINENO:" \
  22966. - "checking for C++ compiler version" >&5
  22967. -ac_compiler=`set X $ac_compile; echo $2`
  22968. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  22969. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  22970. - ac_status=$?
  22971. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22972. - (exit $ac_status); }
  22973. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  22974. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  22975. - ac_status=$?
  22976. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22977. - (exit $ac_status); }
  22978. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  22979. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  22980. - ac_status=$?
  22981. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  22982. - (exit $ac_status); }
  22983. -echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
  22984. -echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6
  22985. -if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
  22986. - echo $ECHO_N "(cached) $ECHO_C" >&6
  22987. -else
  22988. - cat >conftest.$ac_ext <<_ACEOF
  22989. -/* confdefs.h. */
  22990. -_ACEOF
  22991. -cat confdefs.h >>conftest.$ac_ext
  22992. -cat >>conftest.$ac_ext <<_ACEOF
  22993. -/* end confdefs.h. */
  22994. -int
  22995. -main ()
  22996. -{
  22997. -#ifndef __GNUC__
  22998. - choke me
  22999. -#endif
  23000. - ;
  23001. - return 0;
  23002. -}
  23003. -_ACEOF
  23004. -rm -f conftest.$ac_objext
  23005. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23006. - (eval $ac_compile) 2>conftest.er1
  23007. - ac_status=$?
  23008. - grep -v '^ *+' conftest.er1 >conftest.err
  23009. - rm -f conftest.er1
  23010. - cat conftest.err >&5
  23011. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23012. - (exit $ac_status); } &&
  23013. - { ac_try='test -z "$ac_cxx_werror_flag"
  23014. - || test ! -s conftest.err'
  23015. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23016. - (eval $ac_try) 2>&5
  23017. - ac_status=$?
  23018. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23019. - (exit $ac_status); }; } &&
  23020. - { ac_try='test -s conftest.$ac_objext'
  23021. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23022. - (eval $ac_try) 2>&5
  23023. - ac_status=$?
  23024. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23025. - (exit $ac_status); }; }; then
  23026. - ac_compiler_gnu=yes
  23027. -else
  23028. - echo "$as_me: failed program was:" >&5
  23029. -sed 's/^/| /' conftest.$ac_ext >&5
  23030. -ac_compiler_gnu=no
  23031. -fi
  23032. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23033. -ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  23034. -fi
  23035. -echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
  23036. -echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6
  23037. -GXX=`test $ac_compiler_gnu = yes && echo yes`
  23038. -ac_test_CXXFLAGS=${CXXFLAGS+set}
  23039. -ac_save_CXXFLAGS=$CXXFLAGS
  23040. -CXXFLAGS="-g"
  23041. -echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
  23042. -echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6
  23043. -if test "${ac_cv_prog_cxx_g+set}" = set; then
  23044. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23045. -else
  23046. - cat >conftest.$ac_ext <<_ACEOF
  23047. -/* confdefs.h. */
  23048. -_ACEOF
  23049. -cat confdefs.h >>conftest.$ac_ext
  23050. -cat >>conftest.$ac_ext <<_ACEOF
  23051. -/* end confdefs.h. */
  23052. -int
  23053. -main ()
  23054. -{
  23055. - ;
  23056. - return 0;
  23057. -}
  23058. -_ACEOF
  23059. -rm -f conftest.$ac_objext
  23060. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23061. - (eval $ac_compile) 2>conftest.er1
  23062. - ac_status=$?
  23063. - grep -v '^ *+' conftest.er1 >conftest.err
  23064. - rm -f conftest.er1
  23065. - cat conftest.err >&5
  23066. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23067. - (exit $ac_status); } &&
  23068. - { ac_try='test -z "$ac_cxx_werror_flag"
  23069. - || test ! -s conftest.err'
  23070. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23071. - (eval $ac_try) 2>&5
  23072. - ac_status=$?
  23073. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23074. - (exit $ac_status); }; } &&
  23075. - { ac_try='test -s conftest.$ac_objext'
  23076. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23077. - (eval $ac_try) 2>&5
  23078. - ac_status=$?
  23079. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23080. - (exit $ac_status); }; }; then
  23081. - ac_cv_prog_cxx_g=yes
  23082. +
  23083. +
  23084. +
  23085. +if test -n "$ac_tool_prefix"; then
  23086. + # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  23087. +set dummy ${ac_tool_prefix}strip; ac_word=$2
  23088. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23089. +$as_echo_n "checking for $ac_word... " >&6; }
  23090. +if test "${ac_cv_prog_STRIP+set}" = set; then :
  23091. + $as_echo_n "(cached) " >&6
  23092. else
  23093. - echo "$as_me: failed program was:" >&5
  23094. -sed 's/^/| /' conftest.$ac_ext >&5
  23095. + if test -n "$STRIP"; then
  23096. + ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  23097. +else
  23098. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23099. +for as_dir in $PATH
  23100. +do
  23101. + IFS=$as_save_IFS
  23102. + test -z "$as_dir" && as_dir=.
  23103. + for ac_exec_ext in '' $ac_executable_extensions; do
  23104. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23105. + ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  23106. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23107. + break 2
  23108. + fi
  23109. +done
  23110. + done
  23111. +IFS=$as_save_IFS
  23112. -ac_cv_prog_cxx_g=no
  23113. fi
  23114. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23115. fi
  23116. -echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
  23117. -echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6
  23118. -if test "$ac_test_CXXFLAGS" = set; then
  23119. - CXXFLAGS=$ac_save_CXXFLAGS
  23120. -elif test $ac_cv_prog_cxx_g = yes; then
  23121. - if test "$GXX" = yes; then
  23122. - CXXFLAGS="-g -O2"
  23123. - else
  23124. - CXXFLAGS="-g"
  23125. - fi
  23126. +STRIP=$ac_cv_prog_STRIP
  23127. +if test -n "$STRIP"; then
  23128. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  23129. +$as_echo "$STRIP" >&6; }
  23130. else
  23131. - if test "$GXX" = yes; then
  23132. - CXXFLAGS="-O2"
  23133. - else
  23134. - CXXFLAGS=
  23135. - fi
  23136. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23137. +$as_echo "no" >&6; }
  23138. fi
  23139. -for ac_declaration in \
  23140. - '' \
  23141. - 'extern "C" void std::exit (int) throw (); using std::exit;' \
  23142. - 'extern "C" void std::exit (int); using std::exit;' \
  23143. - 'extern "C" void exit (int) throw ();' \
  23144. - 'extern "C" void exit (int);' \
  23145. - 'void exit (int);'
  23146. -do
  23147. - cat >conftest.$ac_ext <<_ACEOF
  23148. -/* confdefs.h. */
  23149. -_ACEOF
  23150. -cat confdefs.h >>conftest.$ac_ext
  23151. -cat >>conftest.$ac_ext <<_ACEOF
  23152. -/* end confdefs.h. */
  23153. -$ac_declaration
  23154. -#include <stdlib.h>
  23155. -int
  23156. -main ()
  23157. -{
  23158. -exit (42);
  23159. - ;
  23160. - return 0;
  23161. -}
  23162. -_ACEOF
  23163. -rm -f conftest.$ac_objext
  23164. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23165. - (eval $ac_compile) 2>conftest.er1
  23166. - ac_status=$?
  23167. - grep -v '^ *+' conftest.er1 >conftest.err
  23168. - rm -f conftest.er1
  23169. - cat conftest.err >&5
  23170. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23171. - (exit $ac_status); } &&
  23172. - { ac_try='test -z "$ac_cxx_werror_flag"
  23173. - || test ! -s conftest.err'
  23174. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23175. - (eval $ac_try) 2>&5
  23176. - ac_status=$?
  23177. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23178. - (exit $ac_status); }; } &&
  23179. - { ac_try='test -s conftest.$ac_objext'
  23180. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23181. - (eval $ac_try) 2>&5
  23182. - ac_status=$?
  23183. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23184. - (exit $ac_status); }; }; then
  23185. - :
  23186. -else
  23187. - echo "$as_me: failed program was:" >&5
  23188. -sed 's/^/| /' conftest.$ac_ext >&5
  23189. -continue
  23190. -fi
  23191. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23192. - cat >conftest.$ac_ext <<_ACEOF
  23193. -/* confdefs.h. */
  23194. -_ACEOF
  23195. -cat confdefs.h >>conftest.$ac_ext
  23196. -cat >>conftest.$ac_ext <<_ACEOF
  23197. -/* end confdefs.h. */
  23198. -$ac_declaration
  23199. -int
  23200. -main ()
  23201. -{
  23202. -exit (42);
  23203. - ;
  23204. - return 0;
  23205. -}
  23206. -_ACEOF
  23207. -rm -f conftest.$ac_objext
  23208. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23209. - (eval $ac_compile) 2>conftest.er1
  23210. - ac_status=$?
  23211. - grep -v '^ *+' conftest.er1 >conftest.err
  23212. - rm -f conftest.er1
  23213. - cat conftest.err >&5
  23214. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23215. - (exit $ac_status); } &&
  23216. - { ac_try='test -z "$ac_cxx_werror_flag"
  23217. - || test ! -s conftest.err'
  23218. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23219. - (eval $ac_try) 2>&5
  23220. - ac_status=$?
  23221. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23222. - (exit $ac_status); }; } &&
  23223. - { ac_try='test -s conftest.$ac_objext'
  23224. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23225. - (eval $ac_try) 2>&5
  23226. - ac_status=$?
  23227. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23228. - (exit $ac_status); }; }; then
  23229. - break
  23230. -else
  23231. - echo "$as_me: failed program was:" >&5
  23232. -sed 's/^/| /' conftest.$ac_ext >&5
  23233. fi
  23234. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23235. -done
  23236. -rm -f conftest*
  23237. -if test -n "$ac_declaration"; then
  23238. - echo '#ifdef __cplusplus' >>confdefs.h
  23239. - echo $ac_declaration >>confdefs.h
  23240. - echo '#endif' >>confdefs.h
  23241. -fi
  23242. -
  23243. -ac_ext=cc
  23244. -ac_cpp='$CXXCPP $CPPFLAGS'
  23245. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23246. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23247. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23248. -
  23249. -depcc="$CXX" am_compiler_list=
  23250. -
  23251. -echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
  23252. -echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6
  23253. -if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
  23254. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23255. +if test -z "$ac_cv_prog_STRIP"; then
  23256. + ac_ct_STRIP=$STRIP
  23257. + # Extract the first word of "strip", so it can be a program name with args.
  23258. +set dummy strip; ac_word=$2
  23259. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23260. +$as_echo_n "checking for $ac_word... " >&6; }
  23261. +if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
  23262. + $as_echo_n "(cached) " >&6
  23263. else
  23264. - if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  23265. - # We make a subdir and do the tests there. Otherwise we can end up
  23266. - # making bogus files that we don't know about and never remove. For
  23267. - # instance it was reported that on HP-UX the gcc test will end up
  23268. - # making a dummy file named `D' -- because `-MD' means `put the output
  23269. - # in D'.
  23270. - mkdir conftest.dir
  23271. - # Copy depcomp to subdir because otherwise we won't find it if we're
  23272. - # using a relative directory.
  23273. - cp "$am_depcomp" conftest.dir
  23274. - cd conftest.dir
  23275. - # We will build objects and dependencies in a subdirectory because
  23276. - # it helps to detect inapplicable dependency modes. For instance
  23277. - # both Tru64's cc and ICC support -MD to output dependencies as a
  23278. - # side effect of compilation, but ICC will put the dependencies in
  23279. - # the current directory while Tru64 will put them in the object
  23280. - # directory.
  23281. - mkdir sub
  23282. -
  23283. - am_cv_CXX_dependencies_compiler_type=none
  23284. - if test "$am_compiler_list" = ""; then
  23285. - am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  23286. + if test -n "$ac_ct_STRIP"; then
  23287. + ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  23288. +else
  23289. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23290. +for as_dir in $PATH
  23291. +do
  23292. + IFS=$as_save_IFS
  23293. + test -z "$as_dir" && as_dir=.
  23294. + for ac_exec_ext in '' $ac_executable_extensions; do
  23295. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23296. + ac_cv_prog_ac_ct_STRIP="strip"
  23297. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23298. + break 2
  23299. fi
  23300. - for depmode in $am_compiler_list; do
  23301. - # Setup a source with many dependencies, because some compilers
  23302. - # like to wrap large dependency lists on column 80 (with \), and
  23303. - # we should not choose a depcomp mode which is confused by this.
  23304. - #
  23305. - # We need to recreate these files for each test, as the compiler may
  23306. - # overwrite some of them when testing with obscure command lines.
  23307. - # This happens at least with the AIX C compiler.
  23308. - : > sub/conftest.c
  23309. - for i in 1 2 3 4 5 6; do
  23310. - echo '#include "conftst'$i'.h"' >> sub/conftest.c
  23311. - # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  23312. - # Solaris 8's {/usr,}/bin/sh.
  23313. - touch sub/conftst$i.h
  23314. - done
  23315. - echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  23316. -
  23317. - case $depmode in
  23318. - nosideeffect)
  23319. - # after this tag, mechanisms are not by side-effect, so they'll
  23320. - # only be used when explicitly requested
  23321. - if test "x$enable_dependency_tracking" = xyes; then
  23322. - continue
  23323. - else
  23324. - break
  23325. - fi
  23326. - ;;
  23327. - none) break ;;
  23328. - esac
  23329. - # We check with `-c' and `-o' for the sake of the "dashmstdout"
  23330. - # mode. It turns out that the SunPro C++ compiler does not properly
  23331. - # handle `-M -o', and we need to detect this.
  23332. - if depmode=$depmode \
  23333. - source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
  23334. - depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  23335. - $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
  23336. - >/dev/null 2>conftest.err &&
  23337. - grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  23338. - grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
  23339. - ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  23340. - # icc doesn't choke on unknown options, it will just issue warnings
  23341. - # or remarks (even with -Werror). So we grep stderr for any message
  23342. - # that says an option was ignored or not supported.
  23343. - # When given -MP, icc 7.0 and 7.1 complain thusly:
  23344. - # icc: Command line warning: ignoring option '-M'; no argument required
  23345. - # The diagnosis changed in icc 8.0:
  23346. - # icc: Command line remark: option '-MP' not supported
  23347. - if (grep 'ignoring option' conftest.err ||
  23348. - grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  23349. - am_cv_CXX_dependencies_compiler_type=$depmode
  23350. - break
  23351. - fi
  23352. - fi
  23353. +done
  23354. done
  23355. +IFS=$as_save_IFS
  23356. - cd ..
  23357. - rm -rf conftest.dir
  23358. +fi
  23359. +fi
  23360. +ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  23361. +if test -n "$ac_ct_STRIP"; then
  23362. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  23363. +$as_echo "$ac_ct_STRIP" >&6; }
  23364. else
  23365. - am_cv_CXX_dependencies_compiler_type=none
  23366. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23367. +$as_echo "no" >&6; }
  23368. fi
  23369. + if test "x$ac_ct_STRIP" = x; then
  23370. + STRIP=":"
  23371. + else
  23372. + case $cross_compiling:$ac_tool_warned in
  23373. +yes:)
  23374. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23375. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23376. +ac_tool_warned=yes ;;
  23377. +esac
  23378. + STRIP=$ac_ct_STRIP
  23379. + fi
  23380. +else
  23381. + STRIP="$ac_cv_prog_STRIP"
  23382. fi
  23383. -echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
  23384. -echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6
  23385. -CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  23386. +test -z "$STRIP" && STRIP=:
  23387. -if
  23388. - test "x$enable_dependency_tracking" != xno \
  23389. - && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  23390. - am__fastdepCXX_TRUE=
  23391. - am__fastdepCXX_FALSE='#'
  23392. -else
  23393. - am__fastdepCXX_TRUE='#'
  23394. - am__fastdepCXX_FALSE=
  23395. -fi
  23396. -if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  23397. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  23398. - (test "X$CXX" != "Xg++"))) ; then
  23399. - ac_ext=cc
  23400. -ac_cpp='$CXXCPP $CPPFLAGS'
  23401. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23402. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23403. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23404. -echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
  23405. -echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6
  23406. -if test -z "$CXXCPP"; then
  23407. - if test "${ac_cv_prog_CXXCPP+set}" = set; then
  23408. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23409. +if test -n "$ac_tool_prefix"; then
  23410. + # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  23411. +set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  23412. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23413. +$as_echo_n "checking for $ac_word... " >&6; }
  23414. +if test "${ac_cv_prog_RANLIB+set}" = set; then :
  23415. + $as_echo_n "(cached) " >&6
  23416. else
  23417. - # Double quotes because CXXCPP needs to be expanded
  23418. - for CXXCPP in "$CXX -E" "/lib/cpp"
  23419. - do
  23420. - ac_preproc_ok=false
  23421. -for ac_cxx_preproc_warn_flag in '' yes
  23422. + if test -n "$RANLIB"; then
  23423. + ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  23424. +else
  23425. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23426. +for as_dir in $PATH
  23427. do
  23428. - # Use a header file that comes with gcc, so configuring glibc
  23429. - # with a fresh cross-compiler works.
  23430. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23431. - # <limits.h> exists even on freestanding compilers.
  23432. - # On the NeXT, cc -E runs the code through the compiler's parser,
  23433. - # not just through cpp. "Syntax error" is here to catch this case.
  23434. - cat >conftest.$ac_ext <<_ACEOF
  23435. -/* confdefs.h. */
  23436. -_ACEOF
  23437. -cat confdefs.h >>conftest.$ac_ext
  23438. -cat >>conftest.$ac_ext <<_ACEOF
  23439. -/* end confdefs.h. */
  23440. -#ifdef __STDC__
  23441. -# include <limits.h>
  23442. -#else
  23443. -# include <assert.h>
  23444. -#endif
  23445. - Syntax error
  23446. -_ACEOF
  23447. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23448. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23449. - ac_status=$?
  23450. - grep -v '^ *+' conftest.er1 >conftest.err
  23451. - rm -f conftest.er1
  23452. - cat conftest.err >&5
  23453. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23454. - (exit $ac_status); } >/dev/null; then
  23455. - if test -s conftest.err; then
  23456. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  23457. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23458. - else
  23459. - ac_cpp_err=
  23460. + IFS=$as_save_IFS
  23461. + test -z "$as_dir" && as_dir=.
  23462. + for ac_exec_ext in '' $ac_executable_extensions; do
  23463. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23464. + ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  23465. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23466. + break 2
  23467. fi
  23468. -else
  23469. - ac_cpp_err=yes
  23470. +done
  23471. + done
  23472. +IFS=$as_save_IFS
  23473. +
  23474. fi
  23475. -if test -z "$ac_cpp_err"; then
  23476. - :
  23477. +fi
  23478. +RANLIB=$ac_cv_prog_RANLIB
  23479. +if test -n "$RANLIB"; then
  23480. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  23481. +$as_echo "$RANLIB" >&6; }
  23482. else
  23483. - echo "$as_me: failed program was:" >&5
  23484. -sed 's/^/| /' conftest.$ac_ext >&5
  23485. -
  23486. - # Broken: fails on valid input.
  23487. -continue
  23488. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23489. +$as_echo "no" >&6; }
  23490. fi
  23491. -rm -f conftest.err conftest.$ac_ext
  23492. - # OK, works on sane cases. Now check whether non-existent headers
  23493. - # can be detected and how.
  23494. - cat >conftest.$ac_ext <<_ACEOF
  23495. -/* confdefs.h. */
  23496. -_ACEOF
  23497. -cat confdefs.h >>conftest.$ac_ext
  23498. -cat >>conftest.$ac_ext <<_ACEOF
  23499. -/* end confdefs.h. */
  23500. -#include <ac_nonexistent.h>
  23501. -_ACEOF
  23502. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23503. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23504. - ac_status=$?
  23505. - grep -v '^ *+' conftest.er1 >conftest.err
  23506. - rm -f conftest.er1
  23507. - cat conftest.err >&5
  23508. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23509. - (exit $ac_status); } >/dev/null; then
  23510. - if test -s conftest.err; then
  23511. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  23512. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23513. - else
  23514. - ac_cpp_err=
  23515. - fi
  23516. -else
  23517. - ac_cpp_err=yes
  23518. -fi
  23519. -if test -z "$ac_cpp_err"; then
  23520. - # Broken: success on invalid input.
  23521. -continue
  23522. -else
  23523. - echo "$as_me: failed program was:" >&5
  23524. -sed 's/^/| /' conftest.$ac_ext >&5
  23525. -
  23526. - # Passes both tests.
  23527. -ac_preproc_ok=:
  23528. -break
  23529. -fi
  23530. -rm -f conftest.err conftest.$ac_ext
  23531. -
  23532. -done
  23533. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  23534. -rm -f conftest.err conftest.$ac_ext
  23535. -if $ac_preproc_ok; then
  23536. - break
  23537. -fi
  23538. -
  23539. - done
  23540. - ac_cv_prog_CXXCPP=$CXXCPP
  23541. -
  23542. -fi
  23543. - CXXCPP=$ac_cv_prog_CXXCPP
  23544. -else
  23545. - ac_cv_prog_CXXCPP=$CXXCPP
  23546. -fi
  23547. -echo "$as_me:$LINENO: result: $CXXCPP" >&5
  23548. -echo "${ECHO_T}$CXXCPP" >&6
  23549. -ac_preproc_ok=false
  23550. -for ac_cxx_preproc_warn_flag in '' yes
  23551. -do
  23552. - # Use a header file that comes with gcc, so configuring glibc
  23553. - # with a fresh cross-compiler works.
  23554. - # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  23555. - # <limits.h> exists even on freestanding compilers.
  23556. - # On the NeXT, cc -E runs the code through the compiler's parser,
  23557. - # not just through cpp. "Syntax error" is here to catch this case.
  23558. - cat >conftest.$ac_ext <<_ACEOF
  23559. -/* confdefs.h. */
  23560. -_ACEOF
  23561. -cat confdefs.h >>conftest.$ac_ext
  23562. -cat >>conftest.$ac_ext <<_ACEOF
  23563. -/* end confdefs.h. */
  23564. -#ifdef __STDC__
  23565. -# include <limits.h>
  23566. -#else
  23567. -# include <assert.h>
  23568. -#endif
  23569. - Syntax error
  23570. -_ACEOF
  23571. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23572. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23573. - ac_status=$?
  23574. - grep -v '^ *+' conftest.er1 >conftest.err
  23575. - rm -f conftest.er1
  23576. - cat conftest.err >&5
  23577. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23578. - (exit $ac_status); } >/dev/null; then
  23579. - if test -s conftest.err; then
  23580. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  23581. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23582. - else
  23583. - ac_cpp_err=
  23584. - fi
  23585. -else
  23586. - ac_cpp_err=yes
  23587. -fi
  23588. -if test -z "$ac_cpp_err"; then
  23589. - :
  23590. -else
  23591. - echo "$as_me: failed program was:" >&5
  23592. -sed 's/^/| /' conftest.$ac_ext >&5
  23593. -
  23594. - # Broken: fails on valid input.
  23595. -continue
  23596. -fi
  23597. -rm -f conftest.err conftest.$ac_ext
  23598. - # OK, works on sane cases. Now check whether non-existent headers
  23599. - # can be detected and how.
  23600. - cat >conftest.$ac_ext <<_ACEOF
  23601. -/* confdefs.h. */
  23602. -_ACEOF
  23603. -cat confdefs.h >>conftest.$ac_ext
  23604. -cat >>conftest.$ac_ext <<_ACEOF
  23605. -/* end confdefs.h. */
  23606. -#include <ac_nonexistent.h>
  23607. -_ACEOF
  23608. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  23609. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  23610. - ac_status=$?
  23611. - grep -v '^ *+' conftest.er1 >conftest.err
  23612. - rm -f conftest.er1
  23613. - cat conftest.err >&5
  23614. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23615. - (exit $ac_status); } >/dev/null; then
  23616. - if test -s conftest.err; then
  23617. - ac_cpp_err=$ac_cxx_preproc_warn_flag
  23618. - ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
  23619. - else
  23620. - ac_cpp_err=
  23621. - fi
  23622. -else
  23623. - ac_cpp_err=yes
  23624. -fi
  23625. -if test -z "$ac_cpp_err"; then
  23626. - # Broken: success on invalid input.
  23627. -continue
  23628. -else
  23629. - echo "$as_me: failed program was:" >&5
  23630. -sed 's/^/| /' conftest.$ac_ext >&5
  23631. -
  23632. - # Passes both tests.
  23633. -ac_preproc_ok=:
  23634. -break
  23635. -fi
  23636. -rm -f conftest.err conftest.$ac_ext
  23637. -
  23638. -done
  23639. -# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  23640. -rm -f conftest.err conftest.$ac_ext
  23641. -if $ac_preproc_ok; then
  23642. - :
  23643. -else
  23644. - { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  23645. -See \`config.log' for more details." >&5
  23646. -echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
  23647. -See \`config.log' for more details." >&2;}
  23648. - { (exit 1); exit 1; }; }
  23649. fi
  23650. -
  23651. -ac_ext=cc
  23652. -ac_cpp='$CXXCPP $CPPFLAGS'
  23653. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23654. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23655. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  23656. -
  23657. -fi
  23658. -
  23659. -
  23660. -ac_ext=f
  23661. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  23662. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23663. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  23664. -if test -n "$ac_tool_prefix"; then
  23665. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  23666. - do
  23667. - # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  23668. -set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  23669. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23670. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23671. -if test "${ac_cv_prog_F77+set}" = set; then
  23672. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23673. +if test -z "$ac_cv_prog_RANLIB"; then
  23674. + ac_ct_RANLIB=$RANLIB
  23675. + # Extract the first word of "ranlib", so it can be a program name with args.
  23676. +set dummy ranlib; ac_word=$2
  23677. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  23678. +$as_echo_n "checking for $ac_word... " >&6; }
  23679. +if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then :
  23680. + $as_echo_n "(cached) " >&6
  23681. else
  23682. - if test -n "$F77"; then
  23683. - ac_cv_prog_F77="$F77" # Let the user override the test.
  23684. + if test -n "$ac_ct_RANLIB"; then
  23685. + ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  23686. else
  23687. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23688. for as_dir in $PATH
  23689. do
  23690. IFS=$as_save_IFS
  23691. test -z "$as_dir" && as_dir=.
  23692. - for ac_exec_ext in '' $ac_executable_extensions; do
  23693. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23694. - ac_cv_prog_F77="$ac_tool_prefix$ac_prog"
  23695. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23696. + for ac_exec_ext in '' $ac_executable_extensions; do
  23697. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  23698. + ac_cv_prog_ac_ct_RANLIB="ranlib"
  23699. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  23700. break 2
  23701. fi
  23702. done
  23703. -done
  23704. + done
  23705. +IFS=$as_save_IFS
  23706. fi
  23707. fi
  23708. -F77=$ac_cv_prog_F77
  23709. -if test -n "$F77"; then
  23710. - echo "$as_me:$LINENO: result: $F77" >&5
  23711. -echo "${ECHO_T}$F77" >&6
  23712. +ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  23713. +if test -n "$ac_ct_RANLIB"; then
  23714. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  23715. +$as_echo "$ac_ct_RANLIB" >&6; }
  23716. else
  23717. - echo "$as_me:$LINENO: result: no" >&5
  23718. -echo "${ECHO_T}no" >&6
  23719. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  23720. +$as_echo "no" >&6; }
  23721. fi
  23722. - test -n "$F77" && break
  23723. - done
  23724. -fi
  23725. -if test -z "$F77"; then
  23726. - ac_ct_F77=$F77
  23727. - for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran
  23728. -do
  23729. - # Extract the first word of "$ac_prog", so it can be a program name with args.
  23730. -set dummy $ac_prog; ac_word=$2
  23731. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  23732. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  23733. -if test "${ac_cv_prog_ac_ct_F77+set}" = set; then
  23734. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23735. -else
  23736. - if test -n "$ac_ct_F77"; then
  23737. - ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test.
  23738. -else
  23739. -as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  23740. -for as_dir in $PATH
  23741. -do
  23742. - IFS=$as_save_IFS
  23743. - test -z "$as_dir" && as_dir=.
  23744. - for ac_exec_ext in '' $ac_executable_extensions; do
  23745. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  23746. - ac_cv_prog_ac_ct_F77="$ac_prog"
  23747. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  23748. - break 2
  23749. + if test "x$ac_ct_RANLIB" = x; then
  23750. + RANLIB=":"
  23751. + else
  23752. + case $cross_compiling:$ac_tool_warned in
  23753. +yes:)
  23754. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  23755. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  23756. +ac_tool_warned=yes ;;
  23757. +esac
  23758. + RANLIB=$ac_ct_RANLIB
  23759. fi
  23760. -done
  23761. -done
  23762. -
  23763. -fi
  23764. -fi
  23765. -ac_ct_F77=$ac_cv_prog_ac_ct_F77
  23766. -if test -n "$ac_ct_F77"; then
  23767. - echo "$as_me:$LINENO: result: $ac_ct_F77" >&5
  23768. -echo "${ECHO_T}$ac_ct_F77" >&6
  23769. else
  23770. - echo "$as_me:$LINENO: result: no" >&5
  23771. -echo "${ECHO_T}no" >&6
  23772. + RANLIB="$ac_cv_prog_RANLIB"
  23773. fi
  23774. - test -n "$ac_ct_F77" && break
  23775. -done
  23776. +test -z "$RANLIB" && RANLIB=:
  23777. - F77=$ac_ct_F77
  23778. -fi
  23779. -# Provide some information about the compiler.
  23780. -echo "$as_me:5247:" \
  23781. - "checking for Fortran 77 compiler version" >&5
  23782. -ac_compiler=`set X $ac_compile; echo $2`
  23783. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
  23784. - (eval $ac_compiler --version </dev/null >&5) 2>&5
  23785. - ac_status=$?
  23786. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23787. - (exit $ac_status); }
  23788. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
  23789. - (eval $ac_compiler -v </dev/null >&5) 2>&5
  23790. - ac_status=$?
  23791. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23792. - (exit $ac_status); }
  23793. -{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
  23794. - (eval $ac_compiler -V </dev/null >&5) 2>&5
  23795. - ac_status=$?
  23796. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23797. - (exit $ac_status); }
  23798. -rm -f a.out
  23799. -
  23800. -# If we don't use `.F' as extension, the preprocessor is not run on the
  23801. -# input file. (Note that this only needs to work for GNU compilers.)
  23802. -ac_save_ext=$ac_ext
  23803. -ac_ext=F
  23804. -echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5
  23805. -echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6
  23806. -if test "${ac_cv_f77_compiler_gnu+set}" = set; then
  23807. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23808. -else
  23809. - cat >conftest.$ac_ext <<_ACEOF
  23810. - program main
  23811. -#ifndef __GNUC__
  23812. - choke me
  23813. -#endif
  23814. - end
  23815. -_ACEOF
  23816. -rm -f conftest.$ac_objext
  23817. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23818. - (eval $ac_compile) 2>conftest.er1
  23819. - ac_status=$?
  23820. - grep -v '^ *+' conftest.er1 >conftest.err
  23821. - rm -f conftest.er1
  23822. - cat conftest.err >&5
  23823. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23824. - (exit $ac_status); } &&
  23825. - { ac_try='test -z "$ac_f77_werror_flag"
  23826. - || test ! -s conftest.err'
  23827. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23828. - (eval $ac_try) 2>&5
  23829. - ac_status=$?
  23830. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23831. - (exit $ac_status); }; } &&
  23832. - { ac_try='test -s conftest.$ac_objext'
  23833. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23834. - (eval $ac_try) 2>&5
  23835. - ac_status=$?
  23836. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23837. - (exit $ac_status); }; }; then
  23838. - ac_compiler_gnu=yes
  23839. -else
  23840. - echo "$as_me: failed program was:" >&5
  23841. -sed 's/^/| /' conftest.$ac_ext >&5
  23842. -ac_compiler_gnu=no
  23843. -fi
  23844. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23845. -ac_cv_f77_compiler_gnu=$ac_compiler_gnu
  23846. -fi
  23847. -echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5
  23848. -echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6
  23849. -ac_ext=$ac_save_ext
  23850. -ac_test_FFLAGS=${FFLAGS+set}
  23851. -ac_save_FFLAGS=$FFLAGS
  23852. -FFLAGS=
  23853. -echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5
  23854. -echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6
  23855. -if test "${ac_cv_prog_f77_g+set}" = set; then
  23856. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23857. -else
  23858. - FFLAGS=-g
  23859. -cat >conftest.$ac_ext <<_ACEOF
  23860. - program main
  23861. -
  23862. - end
  23863. -_ACEOF
  23864. -rm -f conftest.$ac_objext
  23865. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  23866. - (eval $ac_compile) 2>conftest.er1
  23867. - ac_status=$?
  23868. - grep -v '^ *+' conftest.er1 >conftest.err
  23869. - rm -f conftest.er1
  23870. - cat conftest.err >&5
  23871. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23872. - (exit $ac_status); } &&
  23873. - { ac_try='test -z "$ac_f77_werror_flag"
  23874. - || test ! -s conftest.err'
  23875. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23876. - (eval $ac_try) 2>&5
  23877. - ac_status=$?
  23878. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23879. - (exit $ac_status); }; } &&
  23880. - { ac_try='test -s conftest.$ac_objext'
  23881. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  23882. - (eval $ac_try) 2>&5
  23883. - ac_status=$?
  23884. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  23885. - (exit $ac_status); }; }; then
  23886. - ac_cv_prog_f77_g=yes
  23887. -else
  23888. - echo "$as_me: failed program was:" >&5
  23889. -sed 's/^/| /' conftest.$ac_ext >&5
  23890. +# Determine commands to create old-style static archives.
  23891. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  23892. +old_postinstall_cmds='chmod 644 $oldlib'
  23893. +old_postuninstall_cmds=
  23894. -ac_cv_prog_f77_g=no
  23895. +if test -n "$RANLIB"; then
  23896. + case $host_os in
  23897. + openbsd*)
  23898. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  23899. + ;;
  23900. + *)
  23901. + old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  23902. + ;;
  23903. + esac
  23904. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  23905. fi
  23906. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  23907. -fi
  23908. -echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5
  23909. -echo "${ECHO_T}$ac_cv_prog_f77_g" >&6
  23910. -if test "$ac_test_FFLAGS" = set; then
  23911. - FFLAGS=$ac_save_FFLAGS
  23912. -elif test $ac_cv_prog_f77_g = yes; then
  23913. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  23914. - FFLAGS="-g -O2"
  23915. - else
  23916. - FFLAGS="-g"
  23917. - fi
  23918. -else
  23919. - if test "x$ac_cv_f77_compiler_gnu" = xyes; then
  23920. - FFLAGS="-O2"
  23921. - else
  23922. - FFLAGS=
  23923. - fi
  23924. -fi
  23925. -G77=`test $ac_compiler_gnu = yes && echo yes`
  23926. -ac_ext=c
  23927. -ac_cpp='$CPP $CPPFLAGS'
  23928. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  23929. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  23930. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  23931. -# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  23932. -# find the maximum length of command line arguments
  23933. -echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5
  23934. -echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6
  23935. -if test "${lt_cv_sys_max_cmd_len+set}" = set; then
  23936. - echo $ECHO_N "(cached) $ECHO_C" >&6
  23937. -else
  23938. - i=0
  23939. - teststring="ABCD"
  23940. - case $build_os in
  23941. - msdosdjgpp*)
  23942. - # On DJGPP, this test can blow up pretty badly due to problems in libc
  23943. - # (any single argument exceeding 2000 bytes causes a buffer overrun
  23944. - # during glob expansion). Even if it were fixed, the result of this
  23945. - # check would be larger than it should be.
  23946. - lt_cv_sys_max_cmd_len=12288; # 12K is about right
  23947. - ;;
  23948. - gnu*)
  23949. - # Under GNU Hurd, this test is not required because there is
  23950. - # no limit to the length of command line arguments.
  23951. - # Libtool will interpret -1 as no limit whatsoever
  23952. - lt_cv_sys_max_cmd_len=-1;
  23953. - ;;
  23954. - cygwin* | mingw*)
  23955. - # On Win9x/ME, this test blows up -- it succeeds, but takes
  23956. - # about 5 minutes as the teststring grows exponentially.
  23957. - # Worse, since 9x/ME are not pre-emptively multitasking,
  23958. - # you end up with a "frozen" computer, even though with patience
  23959. - # the test eventually succeeds (with a max line length of 256k).
  23960. - # Instead, let's just punt: use the minimum linelength reported by
  23961. - # all of the supported platforms: 8192 (on NT/2K/XP).
  23962. - lt_cv_sys_max_cmd_len=8192;
  23963. - ;;
  23964. - amigaos*)
  23965. - # On AmigaOS with pdksh, this test takes hours, literally.
  23966. - # So we just punt and use a minimum line length of 8192.
  23967. - lt_cv_sys_max_cmd_len=8192;
  23968. - ;;
  23969. - netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  23970. - # This has been around since 386BSD, at least. Likely further.
  23971. - if test -x /sbin/sysctl; then
  23972. - lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  23973. - elif test -x /usr/sbin/sysctl; then
  23974. - lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  23975. - else
  23976. - lt_cv_sys_max_cmd_len=65536 # usable default for *BSD
  23977. - fi
  23978. - # And add a safety zone
  23979. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  23980. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  23981. - ;;
  23982. - osf*)
  23983. - # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  23984. - # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  23985. - # nice to cause kernel panics so lets avoid the loop below.
  23986. - # First set a reasonable default.
  23987. - lt_cv_sys_max_cmd_len=16384
  23988. - #
  23989. - if test -x /sbin/sysconfig; then
  23990. - case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  23991. - *1*) lt_cv_sys_max_cmd_len=-1 ;;
  23992. - esac
  23993. - fi
  23994. - ;;
  23995. - *)
  23996. - # If test is not a shell built-in, we'll probably end up computing a
  23997. - # maximum length that is only half of the actual maximum length, but
  23998. - # we can't tell.
  23999. - SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  24000. - while (test "X"`$SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \
  24001. - = "XX$teststring") >/dev/null 2>&1 &&
  24002. - new_result=`expr "X$teststring" : ".*" 2>&1` &&
  24003. - lt_cv_sys_max_cmd_len=$new_result &&
  24004. - test $i != 17 # 1/2 MB should be enough
  24005. - do
  24006. - i=`expr $i + 1`
  24007. - teststring=$teststring$teststring
  24008. - done
  24009. - teststring=
  24010. - # Add a significant safety factor because C++ compilers can tack on massive
  24011. - # amounts of additional arguments before passing them to the linker.
  24012. - # It appears as though 1/2 is a usable value.
  24013. - lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  24014. - ;;
  24015. - esac
  24016. -fi
  24017. -if test -n $lt_cv_sys_max_cmd_len ; then
  24018. - echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5
  24019. -echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6
  24020. -else
  24021. - echo "$as_me:$LINENO: result: none" >&5
  24022. -echo "${ECHO_T}none" >&6
  24023. -fi
  24024. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  24025. -echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5
  24026. -echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6
  24027. -if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then
  24028. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24029. -else
  24030. -# These are sane defaults that work on at least a few old systems.
  24031. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  24032. -# Character class describing NM global symbol codes.
  24033. -symcode='[BCDEGRST]'
  24034. -# Regexp to match symbols that can be accessed directly from C.
  24035. -sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  24036. -# Transform an extracted symbol line into a proper C declaration
  24037. -lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  24038. -# Transform an extracted symbol line into symbol name and symbol address
  24039. -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'"
  24040. +
  24041. +
  24042. +
  24043. +
  24044. +
  24045. +
  24046. +
  24047. +
  24048. +
  24049. +
  24050. +
  24051. +
  24052. +# If no C compiler was specified, use CC.
  24053. +LTCC=${LTCC-"$CC"}
  24054. +
  24055. +# If no C compiler flags were specified, use CFLAGS.
  24056. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  24057. +
  24058. +# Allow CC to be a program name with arguments.
  24059. +compiler=$CC
  24060. +
  24061. +
  24062. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  24063. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  24064. +$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  24065. +if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then :
  24066. + $as_echo_n "(cached) " >&6
  24067. +else
  24068. +
  24069. +# These are sane defaults that work on at least a few old systems.
  24070. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  24071. +
  24072. +# Character class describing NM global symbol codes.
  24073. +symcode='[BCDEGRST]'
  24074. +
  24075. +# Regexp to match symbols that can be accessed directly from C.
  24076. +sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  24077. # Define system-specific variables.
  24078. case $host_os in
  24079. aix*)
  24080. symcode='[BCDT]'
  24081. ;;
  24082. -cygwin* | mingw* | pw32*)
  24083. +cygwin* | mingw* | pw32* | cegcc*)
  24084. symcode='[ABCDGISTW]'
  24085. ;;
  24086. -hpux*) # Its linker distinguishes data from code symbols
  24087. +hpux*)
  24088. if test "$host_cpu" = ia64; then
  24089. symcode='[ABCDEGRST]'
  24090. fi
  24091. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  24092. - 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'"
  24093. - ;;
  24094. -linux*)
  24095. - if test "$host_cpu" = ia64; then
  24096. - symcode='[ABCDGIRSTW]'
  24097. - lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  24098. - 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'"
  24099. - fi
  24100. ;;
  24101. irix* | nonstopux*)
  24102. symcode='[BCDEGRST]'
  24103. @@ -5545,65 +5490,102 @@
  24104. osf*)
  24105. symcode='[BCDEGQRST]'
  24106. ;;
  24107. -solaris* | sysv5*)
  24108. +solaris*)
  24109. symcode='[BDRT]'
  24110. ;;
  24111. +sco3.2v5*)
  24112. + symcode='[DT]'
  24113. + ;;
  24114. +sysv4.2uw2*)
  24115. + symcode='[DT]'
  24116. + ;;
  24117. +sysv5* | sco5v6* | unixware* | OpenUNIX*)
  24118. + symcode='[ABDT]'
  24119. + ;;
  24120. sysv4)
  24121. symcode='[DFNSTU]'
  24122. ;;
  24123. esac
  24124. +# If we're using GNU nm, then use its standard symbol codes.
  24125. +case `$NM -V 2>&1` in
  24126. +*GNU* | *'with BFD'*)
  24127. + symcode='[ABCDGIRSTW]' ;;
  24128. +esac
  24129. +
  24130. +# Transform an extracted symbol line into a proper C declaration.
  24131. +# Some systems (esp. on ia64) link data and code symbols differently,
  24132. +# so use this general approach.
  24133. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  24134. +
  24135. +# Transform an extracted symbol line into symbol name and symbol address
  24136. +lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  24137. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  24138. +
  24139. # Handle CRLF in mingw tool chain
  24140. opt_cr=
  24141. case $build_os in
  24142. mingw*)
  24143. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  24144. + opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  24145. ;;
  24146. esac
  24147. -# If we're using GNU nm, then use its standard symbol codes.
  24148. -case `$NM -V 2>&1` in
  24149. -*GNU* | *'with BFD'*)
  24150. - symcode='[ABCDGIRSTW]' ;;
  24151. -esac
  24152. -
  24153. -# Try without a prefix undercore, then with it.
  24154. +# Try without a prefix underscore, then with it.
  24155. for ac_symprfx in "" "_"; do
  24156. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  24157. symxfrm="\\1 $ac_symprfx\\2 \\2"
  24158. # Write the raw and C identifiers.
  24159. - lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  24160. + if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  24161. + # Fake it for dumpbin and say T for any non-static function
  24162. + # and D for any global variable.
  24163. + # Also find C++ and __fastcall symbols from MSVC++,
  24164. + # which start with @ or ?.
  24165. + lt_cv_sys_global_symbol_pipe="$AWK '"\
  24166. +" {last_section=section; section=\$ 3};"\
  24167. +" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  24168. +" \$ 0!~/External *\|/{next};"\
  24169. +" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  24170. +" {if(hide[section]) next};"\
  24171. +" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  24172. +" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  24173. +" s[1]~/^[@?]/{print s[1], s[1]; next};"\
  24174. +" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  24175. +" ' prfx=^$ac_symprfx"
  24176. + else
  24177. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  24178. + fi
  24179. # Check to see that the pipe works correctly.
  24180. pipe_works=no
  24181. rm -f conftest*
  24182. - cat > conftest.$ac_ext <<EOF
  24183. + cat > conftest.$ac_ext <<_LT_EOF
  24184. #ifdef __cplusplus
  24185. extern "C" {
  24186. #endif
  24187. char nm_test_var;
  24188. -void nm_test_func(){}
  24189. +void nm_test_func(void);
  24190. +void nm_test_func(void){}
  24191. #ifdef __cplusplus
  24192. }
  24193. #endif
  24194. int main(){nm_test_var='a';nm_test_func();return(0);}
  24195. -EOF
  24196. +_LT_EOF
  24197. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  24198. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24199. (eval $ac_compile) 2>&5
  24200. ac_status=$?
  24201. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24202. - (exit $ac_status); }; then
  24203. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24204. + test $ac_status = 0; }; then
  24205. # Now try to grab the symbols.
  24206. nlist=conftest.nm
  24207. - if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5
  24208. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\""; } >&5
  24209. (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5
  24210. ac_status=$?
  24211. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24212. - (exit $ac_status); } && test -s "$nlist"; then
  24213. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24214. + test $ac_status = 0; } && test -s "$nlist"; then
  24215. # Try sorting and uniquifying the output.
  24216. if sort "$nlist" | uniq > "$nlist"T; then
  24217. mv -f "$nlist"T "$nlist"
  24218. @@ -5612,53 +5594,55 @@
  24219. fi
  24220. # Make sure that we snagged all the symbols we need.
  24221. - if grep ' nm_test_var$' "$nlist" >/dev/null; then
  24222. - if grep ' nm_test_func$' "$nlist" >/dev/null; then
  24223. - cat <<EOF > conftest.$ac_ext
  24224. + if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  24225. + if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  24226. + cat <<_LT_EOF > conftest.$ac_ext
  24227. #ifdef __cplusplus
  24228. extern "C" {
  24229. #endif
  24230. -EOF
  24231. +_LT_EOF
  24232. # Now generate the symbol file.
  24233. - eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  24234. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  24235. - cat <<EOF >> conftest.$ac_ext
  24236. -#if defined (__STDC__) && __STDC__
  24237. -# define lt_ptr_t void *
  24238. -#else
  24239. -# define lt_ptr_t char *
  24240. -# define const
  24241. -#endif
  24242. + cat <<_LT_EOF >> conftest.$ac_ext
  24243. -/* The mapping between symbol names and symbols. */
  24244. +/* The mapping between symbol names and symbols. */
  24245. const struct {
  24246. const char *name;
  24247. - lt_ptr_t address;
  24248. + void *address;
  24249. }
  24250. -lt_preloaded_symbols[] =
  24251. +lt__PROGRAM__LTX_preloaded_symbols[] =
  24252. {
  24253. -EOF
  24254. - $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  24255. - cat <<\EOF >> conftest.$ac_ext
  24256. - {0, (lt_ptr_t) 0}
  24257. + { "@PROGRAM@", (void *) 0 },
  24258. +_LT_EOF
  24259. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  24260. + cat <<\_LT_EOF >> conftest.$ac_ext
  24261. + {0, (void *) 0}
  24262. };
  24263. +/* This works around a problem in FreeBSD linker */
  24264. +#ifdef FREEBSD_WORKAROUND
  24265. +static const void *lt_preloaded_setup() {
  24266. + return lt__PROGRAM__LTX_preloaded_symbols;
  24267. +}
  24268. +#endif
  24269. +
  24270. #ifdef __cplusplus
  24271. }
  24272. #endif
  24273. -EOF
  24274. +_LT_EOF
  24275. # Now try linking the two files.
  24276. mv conftest.$ac_objext conftstm.$ac_objext
  24277. lt_save_LIBS="$LIBS"
  24278. lt_save_CFLAGS="$CFLAGS"
  24279. LIBS="conftstm.$ac_objext"
  24280. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  24281. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  24282. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  24283. (eval $ac_link) 2>&5
  24284. ac_status=$?
  24285. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  24286. - (exit $ac_status); } && test -s conftest${ac_exeext}; then
  24287. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24288. + test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  24289. pipe_works=yes
  24290. fi
  24291. LIBS="$lt_save_LIBS"
  24292. @@ -5676,7 +5660,7 @@
  24293. echo "$progname: failed program was:" >&5
  24294. cat conftest.$ac_ext >&5
  24295. fi
  24296. - rm -f conftest* conftst*
  24297. + rm -rf conftest* conftst*
  24298. # Do not use the global_symbol_pipe unless it works.
  24299. if test "$pipe_works" = yes; then
  24300. @@ -5692,11557 +5676,3434 @@
  24301. lt_cv_sys_global_symbol_to_cdecl=
  24302. fi
  24303. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  24304. - echo "$as_me:$LINENO: result: failed" >&5
  24305. -echo "${ECHO_T}failed" >&6
  24306. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  24307. +$as_echo "failed" >&6; }
  24308. else
  24309. - echo "$as_me:$LINENO: result: ok" >&5
  24310. -echo "${ECHO_T}ok" >&6
  24311. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  24312. +$as_echo "ok" >&6; }
  24313. fi
  24314. -echo "$as_me:$LINENO: checking for objdir" >&5
  24315. -echo $ECHO_N "checking for objdir... $ECHO_C" >&6
  24316. -if test "${lt_cv_objdir+set}" = set; then
  24317. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24318. -else
  24319. - rm -f .libs 2>/dev/null
  24320. -mkdir .libs 2>/dev/null
  24321. -if test -d .libs; then
  24322. - lt_cv_objdir=.libs
  24323. -else
  24324. - # MS-DOS does not allow filenames that begin with a dot.
  24325. - lt_cv_objdir=_libs
  24326. -fi
  24327. -rmdir .libs 2>/dev/null
  24328. -fi
  24329. -echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5
  24330. -echo "${ECHO_T}$lt_cv_objdir" >&6
  24331. -objdir=$lt_cv_objdir
  24332. -case $host_os in
  24333. -aix3*)
  24334. - # AIX sometimes has problems with the GCC collect2 program. For some
  24335. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  24336. - # vanish in a puff of smoke.
  24337. - if test "X${COLLECT_NAMES+set}" != Xset; then
  24338. - COLLECT_NAMES=
  24339. - export COLLECT_NAMES
  24340. +
  24341. +
  24342. +
  24343. +
  24344. +
  24345. +
  24346. +
  24347. +
  24348. +
  24349. +
  24350. +
  24351. +
  24352. +
  24353. +
  24354. +
  24355. +
  24356. +
  24357. +# Check whether --enable-libtool-lock was given.
  24358. +if test "${enable_libtool_lock+set}" = set; then :
  24359. + enableval=$enable_libtool_lock;
  24360. +fi
  24361. +
  24362. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  24363. +
  24364. +# Some flags need to be propagated to the compiler or linker for good
  24365. +# libtool support.
  24366. +case $host in
  24367. +ia64-*-hpux*)
  24368. + # Find out which ABI we are using.
  24369. + echo 'int i;' > conftest.$ac_ext
  24370. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24371. + (eval $ac_compile) 2>&5
  24372. + ac_status=$?
  24373. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24374. + test $ac_status = 0; }; then
  24375. + case `/usr/bin/file conftest.$ac_objext` in
  24376. + *ELF-32*)
  24377. + HPUX_IA64_MODE="32"
  24378. + ;;
  24379. + *ELF-64*)
  24380. + HPUX_IA64_MODE="64"
  24381. + ;;
  24382. + esac
  24383. fi
  24384. + rm -rf conftest*
  24385. + ;;
  24386. +*-*-irix6*)
  24387. + # Find out which ABI we are using.
  24388. + echo '#line 5739 "configure"' > conftest.$ac_ext
  24389. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24390. + (eval $ac_compile) 2>&5
  24391. + ac_status=$?
  24392. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24393. + test $ac_status = 0; }; then
  24394. + if test "$lt_cv_prog_gnu_ld" = yes; then
  24395. + case `/usr/bin/file conftest.$ac_objext` in
  24396. + *32-bit*)
  24397. + LD="${LD-ld} -melf32bsmip"
  24398. + ;;
  24399. + *N32*)
  24400. + LD="${LD-ld} -melf32bmipn32"
  24401. + ;;
  24402. + *64-bit*)
  24403. + LD="${LD-ld} -melf64bmip"
  24404. + ;;
  24405. + esac
  24406. + else
  24407. + case `/usr/bin/file conftest.$ac_objext` in
  24408. + *32-bit*)
  24409. + LD="${LD-ld} -32"
  24410. + ;;
  24411. + *N32*)
  24412. + LD="${LD-ld} -n32"
  24413. + ;;
  24414. + *64-bit*)
  24415. + LD="${LD-ld} -64"
  24416. + ;;
  24417. + esac
  24418. + fi
  24419. + fi
  24420. + rm -rf conftest*
  24421. ;;
  24422. -esac
  24423. -# Sed substitution that helps us do robust quoting. It backslashifies
  24424. -# metacharacters that are still active within double-quoted strings.
  24425. -Xsed='sed -e 1s/^X//'
  24426. -sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g'
  24427. +x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  24428. +s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  24429. + # Find out which ABI we are using.
  24430. + echo 'int i;' > conftest.$ac_ext
  24431. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24432. + (eval $ac_compile) 2>&5
  24433. + ac_status=$?
  24434. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24435. + test $ac_status = 0; }; then
  24436. + case `/usr/bin/file conftest.o` in
  24437. + *32-bit*)
  24438. + case $host in
  24439. + x86_64-*kfreebsd*-gnu)
  24440. + LD="${LD-ld} -m elf_i386_fbsd"
  24441. + ;;
  24442. + x86_64-*linux*)
  24443. + LD="${LD-ld} -m elf_i386"
  24444. + ;;
  24445. + ppc64-*linux*|powerpc64-*linux*)
  24446. + LD="${LD-ld} -m elf32ppclinux"
  24447. + ;;
  24448. + s390x-*linux*)
  24449. + LD="${LD-ld} -m elf_s390"
  24450. + ;;
  24451. + sparc64-*linux*)
  24452. + LD="${LD-ld} -m elf32_sparc"
  24453. + ;;
  24454. + esac
  24455. + ;;
  24456. + *64-bit*)
  24457. + case $host in
  24458. + x86_64-*kfreebsd*-gnu)
  24459. + LD="${LD-ld} -m elf_x86_64_fbsd"
  24460. + ;;
  24461. + x86_64-*linux*)
  24462. + LD="${LD-ld} -m elf_x86_64"
  24463. + ;;
  24464. + ppc*-*linux*|powerpc*-*linux*)
  24465. + LD="${LD-ld} -m elf64ppc"
  24466. + ;;
  24467. + s390*-*linux*|s390*-*tpf*)
  24468. + LD="${LD-ld} -m elf64_s390"
  24469. + ;;
  24470. + sparc*-*linux*)
  24471. + LD="${LD-ld} -m elf64_sparc"
  24472. + ;;
  24473. + esac
  24474. + ;;
  24475. + esac
  24476. + fi
  24477. + rm -rf conftest*
  24478. + ;;
  24479. -# Same as above, but do not quote variable references.
  24480. -double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g'
  24481. +*-*-sco3.2v5*)
  24482. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  24483. + SAVE_CFLAGS="$CFLAGS"
  24484. + CFLAGS="$CFLAGS -belf"
  24485. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  24486. +$as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  24487. +if test "${lt_cv_cc_needs_belf+set}" = set; then :
  24488. + $as_echo_n "(cached) " >&6
  24489. +else
  24490. + ac_ext=c
  24491. +ac_cpp='$CPP $CPPFLAGS'
  24492. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24493. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24494. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24495. -# Sed substitution to delay expansion of an escaped shell variable in a
  24496. -# double_quote_subst'ed string.
  24497. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  24498. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  24499. +/* end confdefs.h. */
  24500. -# Sed substitution to avoid accidental globbing in evaled expressions
  24501. -no_glob_subst='s/\*/\\\*/g'
  24502. +int
  24503. +main ()
  24504. +{
  24505. +
  24506. + ;
  24507. + return 0;
  24508. +}
  24509. +_ACEOF
  24510. +if ac_fn_c_try_link "$LINENO"; then :
  24511. + lt_cv_cc_needs_belf=yes
  24512. +else
  24513. + lt_cv_cc_needs_belf=no
  24514. +fi
  24515. +rm -f core conftest.err conftest.$ac_objext \
  24516. + conftest$ac_exeext conftest.$ac_ext
  24517. + ac_ext=c
  24518. +ac_cpp='$CPP $CPPFLAGS'
  24519. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  24520. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  24521. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  24522. -# Constants:
  24523. -rm="rm -f"
  24524. +fi
  24525. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  24526. +$as_echo "$lt_cv_cc_needs_belf" >&6; }
  24527. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  24528. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  24529. + CFLAGS="$SAVE_CFLAGS"
  24530. + fi
  24531. + ;;
  24532. +sparc*-*solaris*)
  24533. + # Find out which ABI we are using.
  24534. + echo 'int i;' > conftest.$ac_ext
  24535. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  24536. + (eval $ac_compile) 2>&5
  24537. + ac_status=$?
  24538. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  24539. + test $ac_status = 0; }; then
  24540. + case `/usr/bin/file conftest.o` in
  24541. + *64-bit*)
  24542. + case $lt_cv_prog_gnu_ld in
  24543. + yes*) LD="${LD-ld} -m elf64_sparc" ;;
  24544. + *)
  24545. + if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  24546. + LD="${LD-ld} -64"
  24547. + fi
  24548. + ;;
  24549. + esac
  24550. + ;;
  24551. + esac
  24552. + fi
  24553. + rm -rf conftest*
  24554. + ;;
  24555. +esac
  24556. -# Global variables:
  24557. -default_ofile=libtool
  24558. -can_build_shared=yes
  24559. +need_locks="$enable_libtool_lock"
  24560. -# All known linkers require a `.a' archive for static linking (except M$VC,
  24561. -# which needs '.lib').
  24562. -libext=a
  24563. -ltmain="$ac_aux_dir/ltmain.sh"
  24564. -ofile="$default_ofile"
  24565. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  24566. -if test -n "$ac_tool_prefix"; then
  24567. - # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  24568. -set dummy ${ac_tool_prefix}ar; ac_word=$2
  24569. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  24570. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24571. -if test "${ac_cv_prog_AR+set}" = set; then
  24572. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24573. + case $host_os in
  24574. + rhapsody* | darwin*)
  24575. + if test -n "$ac_tool_prefix"; then
  24576. + # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  24577. +set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  24578. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24579. +$as_echo_n "checking for $ac_word... " >&6; }
  24580. +if test "${ac_cv_prog_DSYMUTIL+set}" = set; then :
  24581. + $as_echo_n "(cached) " >&6
  24582. else
  24583. - if test -n "$AR"; then
  24584. - ac_cv_prog_AR="$AR" # Let the user override the test.
  24585. + if test -n "$DSYMUTIL"; then
  24586. + ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  24587. else
  24588. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24589. for as_dir in $PATH
  24590. do
  24591. IFS=$as_save_IFS
  24592. test -z "$as_dir" && as_dir=.
  24593. - for ac_exec_ext in '' $ac_executable_extensions; do
  24594. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24595. - ac_cv_prog_AR="${ac_tool_prefix}ar"
  24596. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24597. + for ac_exec_ext in '' $ac_executable_extensions; do
  24598. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24599. + ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  24600. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24601. break 2
  24602. fi
  24603. done
  24604. -done
  24605. + done
  24606. +IFS=$as_save_IFS
  24607. fi
  24608. fi
  24609. -AR=$ac_cv_prog_AR
  24610. -if test -n "$AR"; then
  24611. - echo "$as_me:$LINENO: result: $AR" >&5
  24612. -echo "${ECHO_T}$AR" >&6
  24613. +DSYMUTIL=$ac_cv_prog_DSYMUTIL
  24614. +if test -n "$DSYMUTIL"; then
  24615. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  24616. +$as_echo "$DSYMUTIL" >&6; }
  24617. else
  24618. - echo "$as_me:$LINENO: result: no" >&5
  24619. -echo "${ECHO_T}no" >&6
  24620. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24621. +$as_echo "no" >&6; }
  24622. fi
  24623. +
  24624. fi
  24625. -if test -z "$ac_cv_prog_AR"; then
  24626. - ac_ct_AR=$AR
  24627. - # Extract the first word of "ar", so it can be a program name with args.
  24628. -set dummy ar; ac_word=$2
  24629. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  24630. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24631. -if test "${ac_cv_prog_ac_ct_AR+set}" = set; then
  24632. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24633. +if test -z "$ac_cv_prog_DSYMUTIL"; then
  24634. + ac_ct_DSYMUTIL=$DSYMUTIL
  24635. + # Extract the first word of "dsymutil", so it can be a program name with args.
  24636. +set dummy dsymutil; ac_word=$2
  24637. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24638. +$as_echo_n "checking for $ac_word... " >&6; }
  24639. +if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then :
  24640. + $as_echo_n "(cached) " >&6
  24641. else
  24642. - if test -n "$ac_ct_AR"; then
  24643. - ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  24644. + if test -n "$ac_ct_DSYMUTIL"; then
  24645. + ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  24646. else
  24647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24648. for as_dir in $PATH
  24649. do
  24650. IFS=$as_save_IFS
  24651. test -z "$as_dir" && as_dir=.
  24652. - for ac_exec_ext in '' $ac_executable_extensions; do
  24653. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24654. - ac_cv_prog_ac_ct_AR="ar"
  24655. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24656. + for ac_exec_ext in '' $ac_executable_extensions; do
  24657. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24658. + ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  24659. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24660. break 2
  24661. fi
  24662. done
  24663. -done
  24664. + done
  24665. +IFS=$as_save_IFS
  24666. - test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false"
  24667. fi
  24668. fi
  24669. -ac_ct_AR=$ac_cv_prog_ac_ct_AR
  24670. -if test -n "$ac_ct_AR"; then
  24671. - echo "$as_me:$LINENO: result: $ac_ct_AR" >&5
  24672. -echo "${ECHO_T}$ac_ct_AR" >&6
  24673. +ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  24674. +if test -n "$ac_ct_DSYMUTIL"; then
  24675. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  24676. +$as_echo "$ac_ct_DSYMUTIL" >&6; }
  24677. else
  24678. - echo "$as_me:$LINENO: result: no" >&5
  24679. -echo "${ECHO_T}no" >&6
  24680. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24681. +$as_echo "no" >&6; }
  24682. fi
  24683. - AR=$ac_ct_AR
  24684. + if test "x$ac_ct_DSYMUTIL" = x; then
  24685. + DSYMUTIL=":"
  24686. + else
  24687. + case $cross_compiling:$ac_tool_warned in
  24688. +yes:)
  24689. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24690. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24691. +ac_tool_warned=yes ;;
  24692. +esac
  24693. + DSYMUTIL=$ac_ct_DSYMUTIL
  24694. + fi
  24695. else
  24696. - AR="$ac_cv_prog_AR"
  24697. + DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  24698. fi
  24699. -if test -n "$ac_tool_prefix"; then
  24700. - # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  24701. -set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  24702. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  24703. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24704. -if test "${ac_cv_prog_RANLIB+set}" = set; then
  24705. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24706. + if test -n "$ac_tool_prefix"; then
  24707. + # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  24708. +set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  24709. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24710. +$as_echo_n "checking for $ac_word... " >&6; }
  24711. +if test "${ac_cv_prog_NMEDIT+set}" = set; then :
  24712. + $as_echo_n "(cached) " >&6
  24713. else
  24714. - if test -n "$RANLIB"; then
  24715. - ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  24716. + if test -n "$NMEDIT"; then
  24717. + ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  24718. else
  24719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24720. for as_dir in $PATH
  24721. do
  24722. IFS=$as_save_IFS
  24723. test -z "$as_dir" && as_dir=.
  24724. - for ac_exec_ext in '' $ac_executable_extensions; do
  24725. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24726. - ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  24727. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24728. + for ac_exec_ext in '' $ac_executable_extensions; do
  24729. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24730. + ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  24731. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24732. break 2
  24733. fi
  24734. done
  24735. -done
  24736. + done
  24737. +IFS=$as_save_IFS
  24738. fi
  24739. fi
  24740. -RANLIB=$ac_cv_prog_RANLIB
  24741. -if test -n "$RANLIB"; then
  24742. - echo "$as_me:$LINENO: result: $RANLIB" >&5
  24743. -echo "${ECHO_T}$RANLIB" >&6
  24744. +NMEDIT=$ac_cv_prog_NMEDIT
  24745. +if test -n "$NMEDIT"; then
  24746. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  24747. +$as_echo "$NMEDIT" >&6; }
  24748. else
  24749. - echo "$as_me:$LINENO: result: no" >&5
  24750. -echo "${ECHO_T}no" >&6
  24751. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24752. +$as_echo "no" >&6; }
  24753. fi
  24754. +
  24755. fi
  24756. -if test -z "$ac_cv_prog_RANLIB"; then
  24757. - ac_ct_RANLIB=$RANLIB
  24758. - # Extract the first word of "ranlib", so it can be a program name with args.
  24759. -set dummy ranlib; ac_word=$2
  24760. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  24761. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24762. -if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then
  24763. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24764. +if test -z "$ac_cv_prog_NMEDIT"; then
  24765. + ac_ct_NMEDIT=$NMEDIT
  24766. + # Extract the first word of "nmedit", so it can be a program name with args.
  24767. +set dummy nmedit; ac_word=$2
  24768. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24769. +$as_echo_n "checking for $ac_word... " >&6; }
  24770. +if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then :
  24771. + $as_echo_n "(cached) " >&6
  24772. else
  24773. - if test -n "$ac_ct_RANLIB"; then
  24774. - ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  24775. + if test -n "$ac_ct_NMEDIT"; then
  24776. + ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  24777. else
  24778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24779. for as_dir in $PATH
  24780. do
  24781. IFS=$as_save_IFS
  24782. test -z "$as_dir" && as_dir=.
  24783. - for ac_exec_ext in '' $ac_executable_extensions; do
  24784. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24785. - ac_cv_prog_ac_ct_RANLIB="ranlib"
  24786. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24787. + for ac_exec_ext in '' $ac_executable_extensions; do
  24788. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24789. + ac_cv_prog_ac_ct_NMEDIT="nmedit"
  24790. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24791. break 2
  24792. fi
  24793. done
  24794. -done
  24795. + done
  24796. +IFS=$as_save_IFS
  24797. - test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":"
  24798. fi
  24799. fi
  24800. -ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  24801. -if test -n "$ac_ct_RANLIB"; then
  24802. - echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5
  24803. -echo "${ECHO_T}$ac_ct_RANLIB" >&6
  24804. +ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  24805. +if test -n "$ac_ct_NMEDIT"; then
  24806. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  24807. +$as_echo "$ac_ct_NMEDIT" >&6; }
  24808. else
  24809. - echo "$as_me:$LINENO: result: no" >&5
  24810. -echo "${ECHO_T}no" >&6
  24811. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24812. +$as_echo "no" >&6; }
  24813. fi
  24814. - RANLIB=$ac_ct_RANLIB
  24815. + if test "x$ac_ct_NMEDIT" = x; then
  24816. + NMEDIT=":"
  24817. + else
  24818. + case $cross_compiling:$ac_tool_warned in
  24819. +yes:)
  24820. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24821. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24822. +ac_tool_warned=yes ;;
  24823. +esac
  24824. + NMEDIT=$ac_ct_NMEDIT
  24825. + fi
  24826. else
  24827. - RANLIB="$ac_cv_prog_RANLIB"
  24828. + NMEDIT="$ac_cv_prog_NMEDIT"
  24829. fi
  24830. -if test -n "$ac_tool_prefix"; then
  24831. - # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  24832. -set dummy ${ac_tool_prefix}strip; ac_word=$2
  24833. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  24834. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24835. -if test "${ac_cv_prog_STRIP+set}" = set; then
  24836. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24837. + if test -n "$ac_tool_prefix"; then
  24838. + # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  24839. +set dummy ${ac_tool_prefix}lipo; ac_word=$2
  24840. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24841. +$as_echo_n "checking for $ac_word... " >&6; }
  24842. +if test "${ac_cv_prog_LIPO+set}" = set; then :
  24843. + $as_echo_n "(cached) " >&6
  24844. else
  24845. - if test -n "$STRIP"; then
  24846. - ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  24847. + if test -n "$LIPO"; then
  24848. + ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  24849. else
  24850. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24851. for as_dir in $PATH
  24852. do
  24853. IFS=$as_save_IFS
  24854. test -z "$as_dir" && as_dir=.
  24855. - for ac_exec_ext in '' $ac_executable_extensions; do
  24856. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24857. - ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  24858. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24859. + for ac_exec_ext in '' $ac_executable_extensions; do
  24860. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24861. + ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  24862. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24863. break 2
  24864. fi
  24865. done
  24866. -done
  24867. + done
  24868. +IFS=$as_save_IFS
  24869. fi
  24870. fi
  24871. -STRIP=$ac_cv_prog_STRIP
  24872. -if test -n "$STRIP"; then
  24873. - echo "$as_me:$LINENO: result: $STRIP" >&5
  24874. -echo "${ECHO_T}$STRIP" >&6
  24875. +LIPO=$ac_cv_prog_LIPO
  24876. +if test -n "$LIPO"; then
  24877. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  24878. +$as_echo "$LIPO" >&6; }
  24879. else
  24880. - echo "$as_me:$LINENO: result: no" >&5
  24881. -echo "${ECHO_T}no" >&6
  24882. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24883. +$as_echo "no" >&6; }
  24884. fi
  24885. +
  24886. fi
  24887. -if test -z "$ac_cv_prog_STRIP"; then
  24888. - ac_ct_STRIP=$STRIP
  24889. - # Extract the first word of "strip", so it can be a program name with args.
  24890. -set dummy strip; ac_word=$2
  24891. -echo "$as_me:$LINENO: checking for $ac_word" >&5
  24892. -echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
  24893. -if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
  24894. - echo $ECHO_N "(cached) $ECHO_C" >&6
  24895. +if test -z "$ac_cv_prog_LIPO"; then
  24896. + ac_ct_LIPO=$LIPO
  24897. + # Extract the first word of "lipo", so it can be a program name with args.
  24898. +set dummy lipo; ac_word=$2
  24899. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24900. +$as_echo_n "checking for $ac_word... " >&6; }
  24901. +if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then :
  24902. + $as_echo_n "(cached) " >&6
  24903. else
  24904. - if test -n "$ac_ct_STRIP"; then
  24905. - ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  24906. + if test -n "$ac_ct_LIPO"; then
  24907. + ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  24908. else
  24909. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24910. for as_dir in $PATH
  24911. do
  24912. IFS=$as_save_IFS
  24913. test -z "$as_dir" && as_dir=.
  24914. - for ac_exec_ext in '' $ac_executable_extensions; do
  24915. - if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  24916. - ac_cv_prog_ac_ct_STRIP="strip"
  24917. - echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
  24918. + for ac_exec_ext in '' $ac_executable_extensions; do
  24919. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24920. + ac_cv_prog_ac_ct_LIPO="lipo"
  24921. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24922. break 2
  24923. fi
  24924. done
  24925. -done
  24926. + done
  24927. +IFS=$as_save_IFS
  24928. - test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":"
  24929. fi
  24930. fi
  24931. -ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  24932. -if test -n "$ac_ct_STRIP"; then
  24933. - echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
  24934. -echo "${ECHO_T}$ac_ct_STRIP" >&6
  24935. +ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  24936. +if test -n "$ac_ct_LIPO"; then
  24937. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  24938. +$as_echo "$ac_ct_LIPO" >&6; }
  24939. else
  24940. - echo "$as_me:$LINENO: result: no" >&5
  24941. -echo "${ECHO_T}no" >&6
  24942. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  24943. +$as_echo "no" >&6; }
  24944. fi
  24945. - STRIP=$ac_ct_STRIP
  24946. + if test "x$ac_ct_LIPO" = x; then
  24947. + LIPO=":"
  24948. + else
  24949. + case $cross_compiling:$ac_tool_warned in
  24950. +yes:)
  24951. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  24952. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  24953. +ac_tool_warned=yes ;;
  24954. +esac
  24955. + LIPO=$ac_ct_LIPO
  24956. + fi
  24957. else
  24958. - STRIP="$ac_cv_prog_STRIP"
  24959. + LIPO="$ac_cv_prog_LIPO"
  24960. fi
  24961. + if test -n "$ac_tool_prefix"; then
  24962. + # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  24963. +set dummy ${ac_tool_prefix}otool; ac_word=$2
  24964. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  24965. +$as_echo_n "checking for $ac_word... " >&6; }
  24966. +if test "${ac_cv_prog_OTOOL+set}" = set; then :
  24967. + $as_echo_n "(cached) " >&6
  24968. +else
  24969. + if test -n "$OTOOL"; then
  24970. + ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  24971. +else
  24972. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  24973. +for as_dir in $PATH
  24974. +do
  24975. + IFS=$as_save_IFS
  24976. + test -z "$as_dir" && as_dir=.
  24977. + for ac_exec_ext in '' $ac_executable_extensions; do
  24978. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  24979. + ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  24980. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  24981. + break 2
  24982. + fi
  24983. +done
  24984. + done
  24985. +IFS=$as_save_IFS
  24986. -old_CC="$CC"
  24987. -old_CFLAGS="$CFLAGS"
  24988. -
  24989. -# Set sane defaults for various variables
  24990. -test -z "$AR" && AR=ar
  24991. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  24992. -test -z "$AS" && AS=as
  24993. -test -z "$CC" && CC=cc
  24994. -test -z "$LTCC" && LTCC=$CC
  24995. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  24996. -test -z "$LD" && LD=ld
  24997. -test -z "$LN_S" && LN_S="ln -s"
  24998. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  24999. -test -z "$NM" && NM=nm
  25000. -test -z "$SED" && SED=sed
  25001. -test -z "$OBJDUMP" && OBJDUMP=objdump
  25002. -test -z "$RANLIB" && RANLIB=:
  25003. -test -z "$STRIP" && STRIP=:
  25004. -test -z "$ac_objext" && ac_objext=o
  25005. +fi
  25006. +fi
  25007. +OTOOL=$ac_cv_prog_OTOOL
  25008. +if test -n "$OTOOL"; then
  25009. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  25010. +$as_echo "$OTOOL" >&6; }
  25011. +else
  25012. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25013. +$as_echo "no" >&6; }
  25014. +fi
  25015. -# Determine commands to create old-style static archives.
  25016. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  25017. -old_postinstall_cmds='chmod 644 $oldlib'
  25018. -old_postuninstall_cmds=
  25019. -if test -n "$RANLIB"; then
  25020. - case $host_os in
  25021. - openbsd*)
  25022. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  25023. - ;;
  25024. - *)
  25025. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  25026. - ;;
  25027. - esac
  25028. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  25029. fi
  25030. -
  25031. -for cc_temp in $compiler""; do
  25032. - case $cc_temp in
  25033. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  25034. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  25035. - \-*) ;;
  25036. - *) break;;
  25037. - esac
  25038. +if test -z "$ac_cv_prog_OTOOL"; then
  25039. + ac_ct_OTOOL=$OTOOL
  25040. + # Extract the first word of "otool", so it can be a program name with args.
  25041. +set dummy otool; ac_word=$2
  25042. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25043. +$as_echo_n "checking for $ac_word... " >&6; }
  25044. +if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then :
  25045. + $as_echo_n "(cached) " >&6
  25046. +else
  25047. + if test -n "$ac_ct_OTOOL"; then
  25048. + ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  25049. +else
  25050. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25051. +for as_dir in $PATH
  25052. +do
  25053. + IFS=$as_save_IFS
  25054. + test -z "$as_dir" && as_dir=.
  25055. + for ac_exec_ext in '' $ac_executable_extensions; do
  25056. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25057. + ac_cv_prog_ac_ct_OTOOL="otool"
  25058. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25059. + break 2
  25060. + fi
  25061. done
  25062. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  25063. -
  25064. + done
  25065. +IFS=$as_save_IFS
  25066. -# Only perform the check for file, if the check method requires it
  25067. -case $deplibs_check_method in
  25068. -file_magic*)
  25069. - if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  25070. - echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5
  25071. -echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6
  25072. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  25073. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25074. +fi
  25075. +fi
  25076. +ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  25077. +if test -n "$ac_ct_OTOOL"; then
  25078. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  25079. +$as_echo "$ac_ct_OTOOL" >&6; }
  25080. else
  25081. - case $MAGIC_CMD in
  25082. -[\\/*] | ?:[\\/]*)
  25083. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25084. - ;;
  25085. -*)
  25086. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  25087. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25088. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25089. - for ac_dir in $ac_dummy; do
  25090. - IFS="$lt_save_ifs"
  25091. - test -z "$ac_dir" && ac_dir=.
  25092. - if test -f $ac_dir/${ac_tool_prefix}file; then
  25093. - lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  25094. - if test -n "$file_magic_test_file"; then
  25095. - case $deplibs_check_method in
  25096. - "file_magic "*)
  25097. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  25098. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25099. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25100. - $EGREP "$file_magic_regex" > /dev/null; then
  25101. - :
  25102. - else
  25103. - cat <<EOF 1>&2
  25104. -
  25105. -*** Warning: the command libtool uses to detect shared libraries,
  25106. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  25107. -*** The result is that libtool may fail to recognize shared libraries
  25108. -*** as such. This will affect the creation of libtool libraries that
  25109. -*** depend on shared libraries, but programs linked with such libtool
  25110. -*** libraries will work regardless of this problem. Nevertheless, you
  25111. -*** may want to report the problem to your system manager and/or to
  25112. -*** bug-libtool@gnu.org
  25113. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25114. +$as_echo "no" >&6; }
  25115. +fi
  25116. -EOF
  25117. - fi ;;
  25118. - esac
  25119. - fi
  25120. - break
  25121. - fi
  25122. - done
  25123. - IFS="$lt_save_ifs"
  25124. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  25125. - ;;
  25126. + if test "x$ac_ct_OTOOL" = x; then
  25127. + OTOOL=":"
  25128. + else
  25129. + case $cross_compiling:$ac_tool_warned in
  25130. +yes:)
  25131. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25132. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25133. +ac_tool_warned=yes ;;
  25134. esac
  25135. + OTOOL=$ac_ct_OTOOL
  25136. + fi
  25137. +else
  25138. + OTOOL="$ac_cv_prog_OTOOL"
  25139. fi
  25140. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25141. -if test -n "$MAGIC_CMD"; then
  25142. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  25143. -echo "${ECHO_T}$MAGIC_CMD" >&6
  25144. + if test -n "$ac_tool_prefix"; then
  25145. + # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  25146. +set dummy ${ac_tool_prefix}otool64; ac_word=$2
  25147. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25148. +$as_echo_n "checking for $ac_word... " >&6; }
  25149. +if test "${ac_cv_prog_OTOOL64+set}" = set; then :
  25150. + $as_echo_n "(cached) " >&6
  25151. else
  25152. - echo "$as_me:$LINENO: result: no" >&5
  25153. -echo "${ECHO_T}no" >&6
  25154. -fi
  25155. + if test -n "$OTOOL64"; then
  25156. + ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  25157. +else
  25158. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25159. +for as_dir in $PATH
  25160. +do
  25161. + IFS=$as_save_IFS
  25162. + test -z "$as_dir" && as_dir=.
  25163. + for ac_exec_ext in '' $ac_executable_extensions; do
  25164. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25165. + ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  25166. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25167. + break 2
  25168. + fi
  25169. +done
  25170. + done
  25171. +IFS=$as_save_IFS
  25172. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  25173. - if test -n "$ac_tool_prefix"; then
  25174. - echo "$as_me:$LINENO: checking for file" >&5
  25175. -echo $ECHO_N "checking for file... $ECHO_C" >&6
  25176. -if test "${lt_cv_path_MAGIC_CMD+set}" = set; then
  25177. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25178. +fi
  25179. +fi
  25180. +OTOOL64=$ac_cv_prog_OTOOL64
  25181. +if test -n "$OTOOL64"; then
  25182. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  25183. +$as_echo "$OTOOL64" >&6; }
  25184. else
  25185. - case $MAGIC_CMD in
  25186. -[\\/*] | ?:[\\/]*)
  25187. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  25188. - ;;
  25189. -*)
  25190. - lt_save_MAGIC_CMD="$MAGIC_CMD"
  25191. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  25192. - ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  25193. - for ac_dir in $ac_dummy; do
  25194. - IFS="$lt_save_ifs"
  25195. - test -z "$ac_dir" && ac_dir=.
  25196. - if test -f $ac_dir/file; then
  25197. - lt_cv_path_MAGIC_CMD="$ac_dir/file"
  25198. - if test -n "$file_magic_test_file"; then
  25199. - case $deplibs_check_method in
  25200. - "file_magic "*)
  25201. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  25202. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25203. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  25204. - $EGREP "$file_magic_regex" > /dev/null; then
  25205. - :
  25206. - else
  25207. - cat <<EOF 1>&2
  25208. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25209. +$as_echo "no" >&6; }
  25210. +fi
  25211. -*** Warning: the command libtool uses to detect shared libraries,
  25212. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  25213. -*** The result is that libtool may fail to recognize shared libraries
  25214. -*** as such. This will affect the creation of libtool libraries that
  25215. -*** depend on shared libraries, but programs linked with such libtool
  25216. -*** libraries will work regardless of this problem. Nevertheless, you
  25217. -*** may want to report the problem to your system manager and/or to
  25218. -*** bug-libtool@gnu.org
  25219. -EOF
  25220. - fi ;;
  25221. - esac
  25222. - fi
  25223. - break
  25224. - fi
  25225. - done
  25226. - IFS="$lt_save_ifs"
  25227. - MAGIC_CMD="$lt_save_MAGIC_CMD"
  25228. - ;;
  25229. -esac
  25230. fi
  25231. +if test -z "$ac_cv_prog_OTOOL64"; then
  25232. + ac_ct_OTOOL64=$OTOOL64
  25233. + # Extract the first word of "otool64", so it can be a program name with args.
  25234. +set dummy otool64; ac_word=$2
  25235. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  25236. +$as_echo_n "checking for $ac_word... " >&6; }
  25237. +if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then :
  25238. + $as_echo_n "(cached) " >&6
  25239. +else
  25240. + if test -n "$ac_ct_OTOOL64"; then
  25241. + ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  25242. +else
  25243. +as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  25244. +for as_dir in $PATH
  25245. +do
  25246. + IFS=$as_save_IFS
  25247. + test -z "$as_dir" && as_dir=.
  25248. + for ac_exec_ext in '' $ac_executable_extensions; do
  25249. + if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
  25250. + ac_cv_prog_ac_ct_OTOOL64="otool64"
  25251. + $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  25252. + break 2
  25253. + fi
  25254. +done
  25255. + done
  25256. +IFS=$as_save_IFS
  25257. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  25258. -if test -n "$MAGIC_CMD"; then
  25259. - echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5
  25260. -echo "${ECHO_T}$MAGIC_CMD" >&6
  25261. +fi
  25262. +fi
  25263. +ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  25264. +if test -n "$ac_ct_OTOOL64"; then
  25265. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  25266. +$as_echo "$ac_ct_OTOOL64" >&6; }
  25267. else
  25268. - echo "$as_me:$LINENO: result: no" >&5
  25269. -echo "${ECHO_T}no" >&6
  25270. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  25271. +$as_echo "no" >&6; }
  25272. fi
  25273. + if test "x$ac_ct_OTOOL64" = x; then
  25274. + OTOOL64=":"
  25275. else
  25276. - MAGIC_CMD=:
  25277. + case $cross_compiling:$ac_tool_warned in
  25278. +yes:)
  25279. +{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  25280. +$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  25281. +ac_tool_warned=yes ;;
  25282. +esac
  25283. + OTOOL64=$ac_ct_OTOOL64
  25284. fi
  25285. +else
  25286. + OTOOL64="$ac_cv_prog_OTOOL64"
  25287. fi
  25288. - fi
  25289. - ;;
  25290. -esac
  25291. -enable_dlopen=no
  25292. -enable_win32_dll=no
  25293. -# Check whether --enable-libtool-lock or --disable-libtool-lock was given.
  25294. -if test "${enable_libtool_lock+set}" = set; then
  25295. - enableval="$enable_libtool_lock"
  25296. -fi;
  25297. -test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  25298. -# Check whether --with-pic or --without-pic was given.
  25299. -if test "${with_pic+set}" = set; then
  25300. - withval="$with_pic"
  25301. - pic_mode="$withval"
  25302. -else
  25303. - pic_mode=default
  25304. -fi;
  25305. -test -z "$pic_mode" && pic_mode=default
  25306. -# Use C for the default configuration in the libtool script
  25307. -tagname=
  25308. -lt_save_CC="$CC"
  25309. -ac_ext=c
  25310. -ac_cpp='$CPP $CPPFLAGS'
  25311. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25312. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25313. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25314. -# Source file extension for C test sources.
  25315. -ac_ext=c
  25316. -# Object file extension for compiled C test sources.
  25317. -objext=o
  25318. -objext=$objext
  25319. -# Code to be used in simple compile tests
  25320. -lt_simple_compile_test_code="int some_variable = 0;\n"
  25321. -# Code to be used in simple link tests
  25322. -lt_simple_link_test_code='int main(){return(0);}\n'
  25323. -# If no C compiler was specified, use CC.
  25324. -LTCC=${LTCC-"$CC"}
  25325. -# Allow CC to be a program name with arguments.
  25326. -compiler=$CC
  25327. -# save warnings/boilerplate of simple test code
  25328. -ac_outfile=conftest.$ac_objext
  25329. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  25330. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  25331. -_lt_compiler_boilerplate=`cat conftest.err`
  25332. -$rm conftest*
  25333. -ac_outfile=conftest.$ac_objext
  25334. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  25335. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  25336. -_lt_linker_boilerplate=`cat conftest.err`
  25337. -$rm conftest*
  25338. -#
  25339. -# Check for any special shared library compilation flags.
  25340. -#
  25341. -lt_prog_cc_shlib=
  25342. -if test "$GCC" = no; then
  25343. - case $host_os in
  25344. - sco3.2v5*)
  25345. - lt_prog_cc_shlib='-belf'
  25346. - ;;
  25347. - esac
  25348. -fi
  25349. -if test -n "$lt_prog_cc_shlib"; then
  25350. - { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5
  25351. -echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;}
  25352. - if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then :
  25353. - else
  25354. - { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5
  25355. -echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;}
  25356. - lt_cv_prog_cc_can_build_shared=no
  25357. - fi
  25358. -fi
  25359. -#
  25360. -# Check to make sure the static flag actually works.
  25361. -#
  25362. -echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5
  25363. -echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6
  25364. -if test "${lt_prog_compiler_static_works+set}" = set; then
  25365. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25366. -else
  25367. - lt_prog_compiler_static_works=no
  25368. - save_LDFLAGS="$LDFLAGS"
  25369. - LDFLAGS="$LDFLAGS $lt_prog_compiler_static"
  25370. - printf "$lt_simple_link_test_code" > conftest.$ac_ext
  25371. - if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  25372. - # The compiler can only warn and ignore the option if not recognized
  25373. - # So say no if there are warnings
  25374. - if test -s conftest.err; then
  25375. - # Append any errors to the config.log.
  25376. - cat conftest.err 1>&5
  25377. - $echo "X$_lt_linker_boilerplate" | $Xsed > conftest.exp
  25378. - $SED '/^$/d' conftest.err >conftest.er2
  25379. - if diff conftest.exp conftest.er2 >/dev/null; then
  25380. - lt_prog_compiler_static_works=yes
  25381. - fi
  25382. - else
  25383. - lt_prog_compiler_static_works=yes
  25384. - fi
  25385. - fi
  25386. - $rm conftest*
  25387. - LDFLAGS="$save_LDFLAGS"
  25388. +
  25389. +
  25390. +
  25391. +
  25392. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  25393. +$as_echo_n "checking for -single_module linker flag... " >&6; }
  25394. +if test "${lt_cv_apple_cc_single_mod+set}" = set; then :
  25395. + $as_echo_n "(cached) " >&6
  25396. +else
  25397. + lt_cv_apple_cc_single_mod=no
  25398. + if test -z "${LT_MULTI_MODULE}"; then
  25399. + # By default we will add the -single_module flag. You can override
  25400. + # by either setting the environment variable LT_MULTI_MODULE
  25401. + # non-empty at configure time, or by adding -multi_module to the
  25402. + # link flags.
  25403. + rm -rf libconftest.dylib*
  25404. + echo "int foo(void){return 1;}" > conftest.c
  25405. + echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  25406. +-dynamiclib -Wl,-single_module conftest.c" >&5
  25407. + $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  25408. + -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  25409. + _lt_result=$?
  25410. + if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  25411. + lt_cv_apple_cc_single_mod=yes
  25412. + else
  25413. + cat conftest.err >&5
  25414. + fi
  25415. + rm -rf libconftest.dylib*
  25416. + rm -f conftest.*
  25417. + fi
  25418. fi
  25419. -echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5
  25420. -echo "${ECHO_T}$lt_prog_compiler_static_works" >&6
  25421. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  25422. +$as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  25423. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  25424. +$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  25425. +if test "${lt_cv_ld_exported_symbols_list+set}" = set; then :
  25426. + $as_echo_n "(cached) " >&6
  25427. +else
  25428. + lt_cv_ld_exported_symbols_list=no
  25429. + save_LDFLAGS=$LDFLAGS
  25430. + echo "_main" > conftest.sym
  25431. + LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  25432. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25433. +/* end confdefs.h. */
  25434. -if test x"$lt_prog_compiler_static_works" = xyes; then
  25435. - :
  25436. +int
  25437. +main ()
  25438. +{
  25439. +
  25440. + ;
  25441. + return 0;
  25442. +}
  25443. +_ACEOF
  25444. +if ac_fn_c_try_link "$LINENO"; then :
  25445. + lt_cv_ld_exported_symbols_list=yes
  25446. else
  25447. - lt_prog_compiler_static=
  25448. + lt_cv_ld_exported_symbols_list=no
  25449. fi
  25450. +rm -f core conftest.err conftest.$ac_objext \
  25451. + conftest$ac_exeext conftest.$ac_ext
  25452. + LDFLAGS="$save_LDFLAGS"
  25453. +fi
  25454. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  25455. +$as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  25456. + case $host_os in
  25457. + rhapsody* | darwin1.[012])
  25458. + _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  25459. + darwin1.*)
  25460. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  25461. + darwin*) # darwin 5.x on
  25462. + # if running on 10.5 or later, the deployment target defaults
  25463. + # to the OS version, if on x86, and 10.4, the deployment
  25464. + # target defaults to 10.4. Don't you love it?
  25465. + case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  25466. + 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  25467. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  25468. + 10.[012]*)
  25469. + _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  25470. + 10.*)
  25471. + _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  25472. + esac
  25473. + ;;
  25474. + esac
  25475. + if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  25476. + _lt_dar_single_mod='$single_module'
  25477. + fi
  25478. + if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  25479. + _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  25480. + else
  25481. + _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  25482. + fi
  25483. + if test "$DSYMUTIL" != ":"; then
  25484. + _lt_dsymutil='~$DSYMUTIL $lib || :'
  25485. + else
  25486. + _lt_dsymutil=
  25487. + fi
  25488. + ;;
  25489. + esac
  25490. +ac_ext=c
  25491. +ac_cpp='$CPP $CPPFLAGS'
  25492. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25493. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25494. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25495. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  25496. +$as_echo_n "checking how to run the C preprocessor... " >&6; }
  25497. +# On Suns, sometimes $CPP names a directory.
  25498. +if test -n "$CPP" && test -d "$CPP"; then
  25499. + CPP=
  25500. +fi
  25501. +if test -z "$CPP"; then
  25502. + if test "${ac_cv_prog_CPP+set}" = set; then :
  25503. + $as_echo_n "(cached) " >&6
  25504. +else
  25505. + # Double quotes because CPP needs to be expanded
  25506. + for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  25507. + do
  25508. + ac_preproc_ok=false
  25509. +for ac_c_preproc_warn_flag in '' yes
  25510. +do
  25511. + # Use a header file that comes with gcc, so configuring glibc
  25512. + # with a fresh cross-compiler works.
  25513. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25514. + # <limits.h> exists even on freestanding compilers.
  25515. + # On the NeXT, cc -E runs the code through the compiler's parser,
  25516. + # not just through cpp. "Syntax error" is here to catch this case.
  25517. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25518. +/* end confdefs.h. */
  25519. +#ifdef __STDC__
  25520. +# include <limits.h>
  25521. +#else
  25522. +# include <assert.h>
  25523. +#endif
  25524. + Syntax error
  25525. +_ACEOF
  25526. +if ac_fn_c_try_cpp "$LINENO"; then :
  25527. +else
  25528. + # Broken: fails on valid input.
  25529. +continue
  25530. +fi
  25531. +rm -f conftest.err conftest.$ac_ext
  25532. -lt_prog_compiler_no_builtin_flag=
  25533. + # OK, works on sane cases. Now check whether nonexistent headers
  25534. + # can be detected and how.
  25535. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25536. +/* end confdefs.h. */
  25537. +#include <ac_nonexistent.h>
  25538. +_ACEOF
  25539. +if ac_fn_c_try_cpp "$LINENO"; then :
  25540. + # Broken: success on invalid input.
  25541. +continue
  25542. +else
  25543. + # Passes both tests.
  25544. +ac_preproc_ok=:
  25545. +break
  25546. +fi
  25547. +rm -f conftest.err conftest.$ac_ext
  25548. -if test "$GCC" = yes; then
  25549. - lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  25550. +done
  25551. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25552. +rm -f conftest.err conftest.$ac_ext
  25553. +if $ac_preproc_ok; then :
  25554. + break
  25555. +fi
  25556. + done
  25557. + ac_cv_prog_CPP=$CPP
  25558. -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  25559. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  25560. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  25561. - echo $ECHO_N "(cached) $ECHO_C" >&6
  25562. +fi
  25563. + CPP=$ac_cv_prog_CPP
  25564. else
  25565. - lt_cv_prog_compiler_rtti_exceptions=no
  25566. - ac_outfile=conftest.$ac_objext
  25567. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  25568. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  25569. - # Insert the option either (1) after the last *FLAGS variable, or
  25570. - # (2) before a word containing "conftest.", or (3) at the end.
  25571. - # Note that $ac_compile itself does not contain backslashes and begins
  25572. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  25573. - # The option is referenced via a variable to avoid confusing sed.
  25574. - lt_compile=`echo "$ac_compile" | $SED \
  25575. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  25576. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  25577. - -e 's:$: $lt_compiler_flag:'`
  25578. - (eval echo "\"\$as_me:6345: $lt_compile\"" >&5)
  25579. - (eval "$lt_compile" 2>conftest.err)
  25580. - ac_status=$?
  25581. - cat conftest.err >&5
  25582. - echo "$as_me:6349: \$? = $ac_status" >&5
  25583. - if (exit $ac_status) && test -s "$ac_outfile"; then
  25584. - # The compiler can only warn and ignore the option if not recognized
  25585. - # So say no if there are warnings other than the usual output.
  25586. - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  25587. - $SED '/^$/d' conftest.err >conftest.er2
  25588. - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  25589. - lt_cv_prog_compiler_rtti_exceptions=yes
  25590. - fi
  25591. - fi
  25592. - $rm conftest*
  25593. + ac_cv_prog_CPP=$CPP
  25594. +fi
  25595. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  25596. +$as_echo "$CPP" >&6; }
  25597. +ac_preproc_ok=false
  25598. +for ac_c_preproc_warn_flag in '' yes
  25599. +do
  25600. + # Use a header file that comes with gcc, so configuring glibc
  25601. + # with a fresh cross-compiler works.
  25602. + # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  25603. + # <limits.h> exists even on freestanding compilers.
  25604. + # On the NeXT, cc -E runs the code through the compiler's parser,
  25605. + # not just through cpp. "Syntax error" is here to catch this case.
  25606. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25607. +/* end confdefs.h. */
  25608. +#ifdef __STDC__
  25609. +# include <limits.h>
  25610. +#else
  25611. +# include <assert.h>
  25612. +#endif
  25613. + Syntax error
  25614. +_ACEOF
  25615. +if ac_fn_c_try_cpp "$LINENO"; then :
  25616. +else
  25617. + # Broken: fails on valid input.
  25618. +continue
  25619. fi
  25620. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  25621. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  25622. +rm -f conftest.err conftest.$ac_ext
  25623. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  25624. - lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  25625. + # OK, works on sane cases. Now check whether nonexistent headers
  25626. + # can be detected and how.
  25627. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25628. +/* end confdefs.h. */
  25629. +#include <ac_nonexistent.h>
  25630. +_ACEOF
  25631. +if ac_fn_c_try_cpp "$LINENO"; then :
  25632. + # Broken: success on invalid input.
  25633. +continue
  25634. else
  25635. - :
  25636. + # Passes both tests.
  25637. +ac_preproc_ok=:
  25638. +break
  25639. fi
  25640. +rm -f conftest.err conftest.$ac_ext
  25641. +
  25642. +done
  25643. +# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  25644. +rm -f conftest.err conftest.$ac_ext
  25645. +if $ac_preproc_ok; then :
  25646. +else
  25647. + { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  25648. +$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  25649. +as_fn_error "C preprocessor \"$CPP\" fails sanity check
  25650. +See \`config.log' for more details." "$LINENO" 5; }
  25651. fi
  25652. -lt_prog_compiler_wl=
  25653. -lt_prog_compiler_pic=
  25654. -lt_prog_compiler_static=
  25655. +ac_ext=c
  25656. +ac_cpp='$CPP $CPPFLAGS'
  25657. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  25658. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  25659. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  25660. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  25661. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  25662. - if test "$GCC" = yes; then
  25663. - lt_prog_compiler_wl='-Wl,'
  25664. - lt_prog_compiler_static='-static'
  25665. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  25666. +$as_echo_n "checking for ANSI C header files... " >&6; }
  25667. +if test "${ac_cv_header_stdc+set}" = set; then :
  25668. + $as_echo_n "(cached) " >&6
  25669. +else
  25670. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25671. +/* end confdefs.h. */
  25672. +#include <stdlib.h>
  25673. +#include <stdarg.h>
  25674. +#include <string.h>
  25675. +#include <float.h>
  25676. - case $host_os in
  25677. - aix*)
  25678. - # All AIX code is PIC.
  25679. - if test "$host_cpu" = ia64; then
  25680. - # AIX 5 now supports IA64 processor
  25681. - lt_prog_compiler_static='-Bstatic'
  25682. - fi
  25683. - ;;
  25684. +int
  25685. +main ()
  25686. +{
  25687. - amigaos*)
  25688. - # FIXME: we need at least 68020 code to build shared libraries, but
  25689. - # adding the `-m68020' flag to GCC prevents building anything better,
  25690. - # like `-m68040'.
  25691. - lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  25692. - ;;
  25693. + ;
  25694. + return 0;
  25695. +}
  25696. +_ACEOF
  25697. +if ac_fn_c_try_compile "$LINENO"; then :
  25698. + ac_cv_header_stdc=yes
  25699. +else
  25700. + ac_cv_header_stdc=no
  25701. +fi
  25702. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  25703. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  25704. - # PIC is the default for these OSes.
  25705. - ;;
  25706. +if test $ac_cv_header_stdc = yes; then
  25707. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  25708. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25709. +/* end confdefs.h. */
  25710. +#include <string.h>
  25711. - mingw* | pw32* | os2*)
  25712. - # This hack is so that the source file can tell whether it is being
  25713. - # built for inclusion in a dll (and should export symbols for example).
  25714. - lt_prog_compiler_pic='-DDLL_EXPORT'
  25715. - ;;
  25716. +_ACEOF
  25717. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25718. + $EGREP "memchr" >/dev/null 2>&1; then :
  25719. - darwin* | rhapsody*)
  25720. - # PIC is the default on this platform
  25721. - # Common symbols not allowed in MH_DYLIB files
  25722. - lt_prog_compiler_pic='-fno-common'
  25723. - ;;
  25724. +else
  25725. + ac_cv_header_stdc=no
  25726. +fi
  25727. +rm -f conftest*
  25728. - msdosdjgpp*)
  25729. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  25730. - # on systems that don't support them.
  25731. - lt_prog_compiler_can_build_shared=no
  25732. - enable_shared=no
  25733. - ;;
  25734. +fi
  25735. - sysv4*MP*)
  25736. - if test -d /usr/nec; then
  25737. - lt_prog_compiler_pic=-Kconform_pic
  25738. - fi
  25739. - ;;
  25740. +if test $ac_cv_header_stdc = yes; then
  25741. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  25742. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25743. +/* end confdefs.h. */
  25744. +#include <stdlib.h>
  25745. - hpux*)
  25746. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25747. - # not for PA HP-UX.
  25748. - case "$host_cpu" in
  25749. - hppa*64*|ia64*)
  25750. - # +Z the default
  25751. - ;;
  25752. - *)
  25753. - lt_prog_compiler_pic='-fPIC'
  25754. - ;;
  25755. - esac
  25756. - ;;
  25757. +_ACEOF
  25758. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  25759. + $EGREP "free" >/dev/null 2>&1; then :
  25760. - *)
  25761. - lt_prog_compiler_pic='-fPIC'
  25762. - ;;
  25763. - esac
  25764. - else
  25765. - # PORTME Check for flag to pass linker flags through the system compiler.
  25766. - case $host_os in
  25767. - aix*)
  25768. - lt_prog_compiler_wl='-Wl,'
  25769. - if test "$host_cpu" = ia64; then
  25770. - # AIX 5 now supports IA64 processor
  25771. - lt_prog_compiler_static='-Bstatic'
  25772. - else
  25773. - lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  25774. - fi
  25775. - ;;
  25776. - darwin*)
  25777. - # PIC is the default on this platform
  25778. - # Common symbols not allowed in MH_DYLIB files
  25779. - case $cc_basename in
  25780. - xlc*)
  25781. - lt_prog_compiler_pic='-qnocommon'
  25782. - lt_prog_compiler_wl='-Wl,'
  25783. - ;;
  25784. - esac
  25785. - ;;
  25786. +else
  25787. + ac_cv_header_stdc=no
  25788. +fi
  25789. +rm -f conftest*
  25790. - mingw* | pw32* | os2*)
  25791. - # This hack is so that the source file can tell whether it is being
  25792. - # built for inclusion in a dll (and should export symbols for example).
  25793. - lt_prog_compiler_pic='-DDLL_EXPORT'
  25794. - ;;
  25795. +fi
  25796. - hpux9* | hpux10* | hpux11*)
  25797. - lt_prog_compiler_wl='-Wl,'
  25798. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  25799. - # not for PA HP-UX.
  25800. - case "$host_cpu" in
  25801. - hppa*64*|ia64*)
  25802. - # +Z the default
  25803. - ;;
  25804. - *)
  25805. - lt_prog_compiler_pic='+Z'
  25806. - ;;
  25807. - esac
  25808. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  25809. - lt_prog_compiler_static='${wl}-a ${wl}archive'
  25810. - ;;
  25811. +if test $ac_cv_header_stdc = yes; then
  25812. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  25813. + if test "$cross_compiling" = yes; then :
  25814. + :
  25815. +else
  25816. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  25817. +/* end confdefs.h. */
  25818. +#include <ctype.h>
  25819. +#include <stdlib.h>
  25820. +#if ((' ' & 0x0FF) == 0x020)
  25821. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  25822. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  25823. +#else
  25824. +# define ISLOWER(c) \
  25825. + (('a' <= (c) && (c) <= 'i') \
  25826. + || ('j' <= (c) && (c) <= 'r') \
  25827. + || ('s' <= (c) && (c) <= 'z'))
  25828. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  25829. +#endif
  25830. - irix5* | irix6* | nonstopux*)
  25831. - lt_prog_compiler_wl='-Wl,'
  25832. - # PIC (with -KPIC) is the default.
  25833. - lt_prog_compiler_static='-non_shared'
  25834. - ;;
  25835. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  25836. +int
  25837. +main ()
  25838. +{
  25839. + int i;
  25840. + for (i = 0; i < 256; i++)
  25841. + if (XOR (islower (i), ISLOWER (i))
  25842. + || toupper (i) != TOUPPER (i))
  25843. + return 2;
  25844. + return 0;
  25845. +}
  25846. +_ACEOF
  25847. +if ac_fn_c_try_run "$LINENO"; then :
  25848. - newsos6)
  25849. - lt_prog_compiler_pic='-KPIC'
  25850. - lt_prog_compiler_static='-Bstatic'
  25851. - ;;
  25852. +else
  25853. + ac_cv_header_stdc=no
  25854. +fi
  25855. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  25856. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  25857. +fi
  25858. - linux*)
  25859. - case $cc_basename in
  25860. - icc* | ecc*)
  25861. - lt_prog_compiler_wl='-Wl,'
  25862. - lt_prog_compiler_pic='-KPIC'
  25863. - lt_prog_compiler_static='-static'
  25864. - ;;
  25865. - pgcc* | pgf77* | pgf90*)
  25866. - # Portland Group compilers (*not* the Pentium gcc compiler,
  25867. - # which looks to be a dead project)
  25868. - lt_prog_compiler_wl='-Wl,'
  25869. - lt_prog_compiler_pic='-fpic'
  25870. - lt_prog_compiler_static='-static'
  25871. - ;;
  25872. - ccc*)
  25873. - lt_prog_compiler_wl='-Wl,'
  25874. - # All Alpha code is PIC.
  25875. - lt_prog_compiler_static='-non_shared'
  25876. - ;;
  25877. - esac
  25878. - ;;
  25879. +fi
  25880. +fi
  25881. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  25882. +$as_echo "$ac_cv_header_stdc" >&6; }
  25883. +if test $ac_cv_header_stdc = yes; then
  25884. - osf3* | osf4* | osf5*)
  25885. - lt_prog_compiler_wl='-Wl,'
  25886. - # All OSF/1 code is PIC.
  25887. - lt_prog_compiler_static='-non_shared'
  25888. - ;;
  25889. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  25890. - sco3.2v5*)
  25891. - lt_prog_compiler_pic='-Kpic'
  25892. - lt_prog_compiler_static='-dn'
  25893. - ;;
  25894. +fi
  25895. - solaris*)
  25896. - lt_prog_compiler_pic='-KPIC'
  25897. - lt_prog_compiler_static='-Bstatic'
  25898. - case $cc_basename in
  25899. - f77* | f90* | f95*)
  25900. - lt_prog_compiler_wl='-Qoption ld ';;
  25901. - *)
  25902. - lt_prog_compiler_wl='-Wl,';;
  25903. - esac
  25904. - ;;
  25905. +# On IRIX 5.3, sys/types and inttypes.h are conflicting.
  25906. +for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  25907. + inttypes.h stdint.h unistd.h
  25908. +do :
  25909. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  25910. +ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  25911. +"
  25912. +eval as_val=\$$as_ac_Header
  25913. + if test "x$as_val" = x""yes; then :
  25914. + cat >>confdefs.h <<_ACEOF
  25915. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  25916. +_ACEOF
  25917. - sunos4*)
  25918. - lt_prog_compiler_wl='-Qoption ld '
  25919. - lt_prog_compiler_pic='-PIC'
  25920. - lt_prog_compiler_static='-Bstatic'
  25921. - ;;
  25922. +fi
  25923. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  25924. - lt_prog_compiler_wl='-Wl,'
  25925. - lt_prog_compiler_pic='-KPIC'
  25926. - lt_prog_compiler_static='-Bstatic'
  25927. - ;;
  25928. +done
  25929. - sysv4*MP*)
  25930. - if test -d /usr/nec ;then
  25931. - lt_prog_compiler_pic='-Kconform_pic'
  25932. - lt_prog_compiler_static='-Bstatic'
  25933. - fi
  25934. - ;;
  25935. - unicos*)
  25936. - lt_prog_compiler_wl='-Wl,'
  25937. - lt_prog_compiler_can_build_shared=no
  25938. - ;;
  25939. +for ac_header in dlfcn.h
  25940. +do :
  25941. + ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  25942. +"
  25943. +if test "x$ac_cv_header_dlfcn_h" = x""yes; then :
  25944. + cat >>confdefs.h <<_ACEOF
  25945. +#define HAVE_DLFCN_H 1
  25946. +_ACEOF
  25947. - uts4*)
  25948. - lt_prog_compiler_pic='-pic'
  25949. - lt_prog_compiler_static='-Bstatic'
  25950. - ;;
  25951. +fi
  25952. +
  25953. +done
  25954. +
  25955. +
  25956. +
  25957. +# Set options
  25958. +
  25959. +
  25960. +
  25961. + enable_dlopen=no
  25962. +
  25963. +
  25964. + enable_win32_dll=no
  25965. +
  25966. + # Check whether --enable-shared was given.
  25967. +if test "${enable_shared+set}" = set; then :
  25968. + enableval=$enable_shared; p=${PACKAGE-default}
  25969. + case $enableval in
  25970. + yes) enable_shared=yes ;;
  25971. + no) enable_shared=no ;;
  25972. *)
  25973. - lt_prog_compiler_can_build_shared=no
  25974. + enable_shared=no
  25975. + # Look at the argument we got. We use all the common list separators.
  25976. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  25977. + for pkg in $enableval; do
  25978. + IFS="$lt_save_ifs"
  25979. + if test "X$pkg" = "X$p"; then
  25980. + enable_shared=yes
  25981. + fi
  25982. + done
  25983. + IFS="$lt_save_ifs"
  25984. ;;
  25985. esac
  25986. - fi
  25987. +else
  25988. + enable_shared=yes
  25989. +fi
  25990. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5
  25991. -echo "${ECHO_T}$lt_prog_compiler_pic" >&6
  25992. -#
  25993. -# Check to make sure the PIC flag actually works.
  25994. -#
  25995. -if test -n "$lt_prog_compiler_pic"; then
  25996. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  25997. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6
  25998. -if test "${lt_prog_compiler_pic_works+set}" = set; then
  25999. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26000. -else
  26001. - lt_prog_compiler_pic_works=no
  26002. - ac_outfile=conftest.$ac_objext
  26003. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  26004. - lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  26005. - # Insert the option either (1) after the last *FLAGS variable, or
  26006. - # (2) before a word containing "conftest.", or (3) at the end.
  26007. - # Note that $ac_compile itself does not contain backslashes and begins
  26008. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  26009. - # The option is referenced via a variable to avoid confusing sed.
  26010. - lt_compile=`echo "$ac_compile" | $SED \
  26011. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  26012. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26013. - -e 's:$: $lt_compiler_flag:'`
  26014. - (eval echo "\"\$as_me:6607: $lt_compile\"" >&5)
  26015. - (eval "$lt_compile" 2>conftest.err)
  26016. - ac_status=$?
  26017. - cat conftest.err >&5
  26018. - echo "$as_me:6611: \$? = $ac_status" >&5
  26019. - if (exit $ac_status) && test -s "$ac_outfile"; then
  26020. - # The compiler can only warn and ignore the option if not recognized
  26021. - # So say no if there are warnings other than the usual output.
  26022. - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  26023. - $SED '/^$/d' conftest.err >conftest.er2
  26024. - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  26025. - lt_prog_compiler_pic_works=yes
  26026. - fi
  26027. - fi
  26028. - $rm conftest*
  26029. -fi
  26030. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5
  26031. -echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6
  26032. -if test x"$lt_prog_compiler_pic_works" = xyes; then
  26033. - case $lt_prog_compiler_pic in
  26034. - "" | " "*) ;;
  26035. - *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  26036. - esac
  26037. -else
  26038. - lt_prog_compiler_pic=
  26039. - lt_prog_compiler_can_build_shared=no
  26040. -fi
  26041. -fi
  26042. -case "$host_os" in
  26043. - # For platforms which do not support PIC, -DPIC is meaningless:
  26044. - *djgpp*)
  26045. - lt_prog_compiler_pic=
  26046. - ;;
  26047. - *)
  26048. - lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  26049. - ;;
  26050. -esac
  26051. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  26052. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  26053. -if test "${lt_cv_prog_compiler_c_o+set}" = set; then
  26054. - echo $ECHO_N "(cached) $ECHO_C" >&6
  26055. -else
  26056. - lt_cv_prog_compiler_c_o=no
  26057. - $rm -r conftest 2>/dev/null
  26058. - mkdir conftest
  26059. - cd conftest
  26060. - mkdir out
  26061. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  26062. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  26063. - # Insert the option either (1) after the last *FLAGS variable, or
  26064. - # (2) before a word containing "conftest.", or (3) at the end.
  26065. - # Note that $ac_compile itself does not contain backslashes and begins
  26066. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  26067. - lt_compile=`echo "$ac_compile" | $SED \
  26068. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  26069. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  26070. - -e 's:$: $lt_compiler_flag:'`
  26071. - (eval echo "\"\$as_me:6669: $lt_compile\"" >&5)
  26072. - (eval "$lt_compile" 2>out/conftest.err)
  26073. - ac_status=$?
  26074. - cat out/conftest.err >&5
  26075. - echo "$as_me:6673: \$? = $ac_status" >&5
  26076. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  26077. - then
  26078. - # The compiler can only warn and ignore the option if not recognized
  26079. - # So say no if there are warnings
  26080. - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  26081. - $SED '/^$/d' out/conftest.err >out/conftest.er2
  26082. - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  26083. - lt_cv_prog_compiler_c_o=yes
  26084. - fi
  26085. - fi
  26086. - chmod u+w .
  26087. - $rm conftest*
  26088. - # SGI C++ compiler will create directory out/ii_files/ for
  26089. - # template instantiation
  26090. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  26091. - $rm out/* && rmdir out
  26092. - cd ..
  26093. - rmdir conftest
  26094. - $rm conftest*
  26095. + # Check whether --enable-static was given.
  26096. +if test "${enable_static+set}" = set; then :
  26097. + enableval=$enable_static; p=${PACKAGE-default}
  26098. + case $enableval in
  26099. + yes) enable_static=yes ;;
  26100. + no) enable_static=no ;;
  26101. + *)
  26102. + enable_static=no
  26103. + # Look at the argument we got. We use all the common list separators.
  26104. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26105. + for pkg in $enableval; do
  26106. + IFS="$lt_save_ifs"
  26107. + if test "X$pkg" = "X$p"; then
  26108. + enable_static=yes
  26109. + fi
  26110. + done
  26111. + IFS="$lt_save_ifs"
  26112. + ;;
  26113. + esac
  26114. +else
  26115. + enable_static=yes
  26116. fi
  26117. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5
  26118. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6
  26119. -hard_links="nottested"
  26120. -if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  26121. - # do not overwrite the value of need_locks provided by the user
  26122. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  26123. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  26124. - hard_links=yes
  26125. - $rm conftest*
  26126. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  26127. - touch conftest.a
  26128. - ln conftest.a conftest.b 2>&5 || hard_links=no
  26129. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  26130. - echo "$as_me:$LINENO: result: $hard_links" >&5
  26131. -echo "${ECHO_T}$hard_links" >&6
  26132. - if test "$hard_links" = no; then
  26133. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  26134. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  26135. - need_locks=warn
  26136. - fi
  26137. +
  26138. +
  26139. +
  26140. +
  26141. +
  26142. +
  26143. +
  26144. +
  26145. +# Check whether --with-pic was given.
  26146. +if test "${with_pic+set}" = set; then :
  26147. + withval=$with_pic; pic_mode="$withval"
  26148. else
  26149. - need_locks=no
  26150. + pic_mode=default
  26151. fi
  26152. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  26153. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  26154. - runpath_var=
  26155. - allow_undefined_flag=
  26156. - enable_shared_with_static_runtimes=no
  26157. - archive_cmds=
  26158. - archive_expsym_cmds=
  26159. - old_archive_From_new_cmds=
  26160. - old_archive_from_expsyms_cmds=
  26161. - export_dynamic_flag_spec=
  26162. - whole_archive_flag_spec=
  26163. - thread_safe_flag_spec=
  26164. - hardcode_libdir_flag_spec=
  26165. - hardcode_libdir_flag_spec_ld=
  26166. - hardcode_libdir_separator=
  26167. - hardcode_direct=no
  26168. - hardcode_minus_L=no
  26169. - hardcode_shlibpath_var=unsupported
  26170. - link_all_deplibs=unknown
  26171. - hardcode_automatic=no
  26172. - module_cmds=
  26173. - module_expsym_cmds=
  26174. - always_export_symbols=no
  26175. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  26176. - # include_expsyms should be a list of space-separated symbols to be *always*
  26177. - # included in the symbol list
  26178. - include_expsyms=
  26179. - # exclude_expsyms can be an extended regexp of symbols to exclude
  26180. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  26181. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  26182. - # as well as any symbol that contains `d'.
  26183. - exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  26184. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  26185. - # platforms (ab)use it in PIC code, but their linkers get confused if
  26186. - # the symbol is explicitly referenced. Since portable code cannot
  26187. - # rely on this symbol name, it's probably fine to never include it in
  26188. - # preloaded symbol tables.
  26189. - extract_expsyms_cmds=
  26190. - # Just being paranoid about ensuring that cc_basename is set.
  26191. - for cc_temp in $compiler""; do
  26192. - case $cc_temp in
  26193. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  26194. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  26195. - \-*) ;;
  26196. - *) break;;
  26197. - esac
  26198. -done
  26199. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  26200. +test -z "$pic_mode" && pic_mode=default
  26201. - case $host_os in
  26202. - cygwin* | mingw* | pw32*)
  26203. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  26204. - # When not using gcc, we currently assume that we are using
  26205. - # Microsoft Visual C++.
  26206. - if test "$GCC" != yes; then
  26207. - with_gnu_ld=no
  26208. - fi
  26209. - ;;
  26210. - openbsd*)
  26211. - with_gnu_ld=no
  26212. - ;;
  26213. - esac
  26214. - ld_shlibs=yes
  26215. - if test "$with_gnu_ld" = yes; then
  26216. - # If archive_cmds runs LD, not CC, wlarc should be empty
  26217. - wlarc='${wl}'
  26218. - # Set some defaults for GNU ld with shared library support. These
  26219. - # are reset later if shared libraries are not supported. Putting them
  26220. - # here allows them to be overridden if necessary.
  26221. - runpath_var=LD_RUN_PATH
  26222. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  26223. - export_dynamic_flag_spec='${wl}--export-dynamic'
  26224. - # ancient GNU ld didn't support --whole-archive et. al.
  26225. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  26226. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  26227. - else
  26228. - whole_archive_flag_spec=
  26229. - fi
  26230. - supports_anon_versioning=no
  26231. - case `$LD -v 2>/dev/null` in
  26232. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  26233. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  26234. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  26235. - *\ 2.11.*) ;; # other 2.11 versions
  26236. - *) supports_anon_versioning=yes ;;
  26237. - esac
  26238. - # See if GNU ld supports shared libraries.
  26239. - case $host_os in
  26240. - aix3* | aix4* | aix5*)
  26241. - # On AIX/PPC, the GNU linker is very broken
  26242. - if test "$host_cpu" != ia64; then
  26243. - ld_shlibs=no
  26244. - cat <<EOF 1>&2
  26245. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  26246. -*** to be unable to reliably create shared libraries on AIX.
  26247. -*** Therefore, libtool is disabling shared libraries support. If you
  26248. -*** really care for shared libraries, you may want to modify your PATH
  26249. -*** so that a non-GNU linker is found, and then restart.
  26250. -EOF
  26251. - fi
  26252. +
  26253. + # Check whether --enable-fast-install was given.
  26254. +if test "${enable_fast_install+set}" = set; then :
  26255. + enableval=$enable_fast_install; p=${PACKAGE-default}
  26256. + case $enableval in
  26257. + yes) enable_fast_install=yes ;;
  26258. + no) enable_fast_install=no ;;
  26259. + *)
  26260. + enable_fast_install=no
  26261. + # Look at the argument we got. We use all the common list separators.
  26262. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  26263. + for pkg in $enableval; do
  26264. + IFS="$lt_save_ifs"
  26265. + if test "X$pkg" = "X$p"; then
  26266. + enable_fast_install=yes
  26267. + fi
  26268. + done
  26269. + IFS="$lt_save_ifs"
  26270. ;;
  26271. + esac
  26272. +else
  26273. + enable_fast_install=yes
  26274. +fi
  26275. - amigaos*)
  26276. - 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)'
  26277. - hardcode_libdir_flag_spec='-L$libdir'
  26278. - hardcode_minus_L=yes
  26279. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  26280. - # that the semantics of dynamic libraries on AmigaOS, at least up
  26281. - # to version 4, is to share data among multiple programs linked
  26282. - # with the same dynamic library. Since this doesn't match the
  26283. - # behavior of shared libraries on other platforms, we can't use
  26284. - # them.
  26285. - ld_shlibs=no
  26286. - ;;
  26287. - beos*)
  26288. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26289. - allow_undefined_flag=unsupported
  26290. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  26291. - # support --undefined. This deserves some investigation. FIXME
  26292. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26293. - else
  26294. - ld_shlibs=no
  26295. - fi
  26296. - ;;
  26297. - cygwin* | mingw* | pw32*)
  26298. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  26299. - # as there is no search path for DLLs.
  26300. - hardcode_libdir_flag_spec='-L$libdir'
  26301. - allow_undefined_flag=unsupported
  26302. - always_export_symbols=no
  26303. - enable_shared_with_static_runtimes=yes
  26304. - export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  26305. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  26306. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  26307. - # If the export-symbols file already is a .def file (1st line
  26308. - # is EXPORTS), use it as is; otherwise, prepend...
  26309. - archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  26310. - cp $export_symbols $output_objdir/$soname.def;
  26311. - else
  26312. - echo EXPORTS > $output_objdir/$soname.def;
  26313. - cat $export_symbols >> $output_objdir/$soname.def;
  26314. - fi~
  26315. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  26316. - else
  26317. - ld_shlibs=no
  26318. - fi
  26319. - ;;
  26320. - linux*)
  26321. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26322. - tmp_addflag=
  26323. - case $cc_basename,$host_cpu in
  26324. - pgcc*) # Portland Group C compiler
  26325. - whole_archive_flag_spec=
  26326. - ;;
  26327. - pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  26328. - whole_archive_flag_spec=
  26329. - tmp_addflag=' -fpic -Mnomain' ;;
  26330. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  26331. - tmp_addflag=' -i_dynamic' ;;
  26332. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  26333. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  26334. - ifc* | ifort*) # Intel Fortran compiler
  26335. - tmp_addflag=' -nofor_main' ;;
  26336. - esac
  26337. - archive_cmds='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26338. - if test $supports_anon_versioning = yes; then
  26339. - archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~
  26340. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  26341. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  26342. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  26343. - fi
  26344. - else
  26345. - ld_shlibs=no
  26346. - fi
  26347. - ;;
  26348. - netbsd*)
  26349. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26350. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  26351. - wlarc=
  26352. - else
  26353. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26354. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26355. - fi
  26356. - ;;
  26357. - solaris* | sysv5*)
  26358. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  26359. - ld_shlibs=no
  26360. - cat <<EOF 1>&2
  26361. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  26362. -*** create shared libraries on Solaris systems. Therefore, libtool
  26363. -*** is disabling shared libraries support. We urge you to upgrade GNU
  26364. -*** binutils to release 2.9.1 or newer. Another option is to modify
  26365. -*** your PATH or compiler configuration so that the native linker is
  26366. -*** used, and then restart.
  26367. -EOF
  26368. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26369. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26370. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26371. - else
  26372. - ld_shlibs=no
  26373. - fi
  26374. - ;;
  26375. +# This can be used to rebuild libtool when needed
  26376. +LIBTOOL_DEPS="$ltmain"
  26377. - sunos4*)
  26378. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26379. - wlarc=
  26380. - hardcode_direct=yes
  26381. - hardcode_shlibpath_var=no
  26382. - ;;
  26383. +# Always use our own libtool.
  26384. +LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  26385. - *)
  26386. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  26387. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  26388. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  26389. - else
  26390. - ld_shlibs=no
  26391. - fi
  26392. - ;;
  26393. - esac
  26394. - if test "$ld_shlibs" = no; then
  26395. - runpath_var=
  26396. - hardcode_libdir_flag_spec=
  26397. - export_dynamic_flag_spec=
  26398. - whole_archive_flag_spec=
  26399. - fi
  26400. - else
  26401. - # PORTME fill in a description of your system's linker (not GNU ld)
  26402. - case $host_os in
  26403. - aix3*)
  26404. - allow_undefined_flag=unsupported
  26405. - always_export_symbols=yes
  26406. - 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'
  26407. - # Note: this linker hardcodes the directories in LIBPATH if there
  26408. - # are no directories specified by -L.
  26409. - hardcode_minus_L=yes
  26410. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  26411. - # Neither direct hardcoding nor static linking is supported with a
  26412. - # broken collect2.
  26413. - hardcode_direct=unsupported
  26414. - fi
  26415. - ;;
  26416. - aix4* | aix5*)
  26417. - if test "$host_cpu" = ia64; then
  26418. - # On IA64, the linker does run time linking by default, so we don't
  26419. - # have to do anything special.
  26420. - aix_use_runtimelinking=no
  26421. - exp_sym_flag='-Bexport'
  26422. - no_entry_flag=""
  26423. - else
  26424. - # If we're using GNU nm, then we don't want the "-C" option.
  26425. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  26426. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  26427. - 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'
  26428. - else
  26429. - 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'
  26430. - fi
  26431. - aix_use_runtimelinking=no
  26432. - # Test if we are trying to use run time linking or normal
  26433. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  26434. - # need to do runtime linking.
  26435. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  26436. - for ld_flag in $LDFLAGS; do
  26437. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  26438. - aix_use_runtimelinking=yes
  26439. - break
  26440. - fi
  26441. - done
  26442. - esac
  26443. - exp_sym_flag='-bexport'
  26444. - no_entry_flag='-bnoentry'
  26445. - fi
  26446. - # When large executables or shared objects are built, AIX ld can
  26447. - # have problems creating the table of contents. If linking a library
  26448. - # or program results in "error TOC overflow" add -mminimal-toc to
  26449. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  26450. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  26451. - archive_cmds=''
  26452. - hardcode_direct=yes
  26453. - hardcode_libdir_separator=':'
  26454. - link_all_deplibs=yes
  26455. - if test "$GCC" = yes; then
  26456. - case $host_os in aix4.[012]|aix4.[012].*)
  26457. - # We only want to do this on AIX 4.2 and lower, the check
  26458. - # below for broken collect2 doesn't work under 4.3+
  26459. - collect2name=`${CC} -print-prog-name=collect2`
  26460. - if test -f "$collect2name" && \
  26461. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  26462. - then
  26463. - # We have reworked collect2
  26464. - hardcode_direct=yes
  26465. - else
  26466. - # We have old collect2
  26467. - hardcode_direct=unsupported
  26468. - # It fails to find uninstalled libraries when the uninstalled
  26469. - # path is not listed in the libpath. Setting hardcode_minus_L
  26470. - # to unsupported forces relinking
  26471. - hardcode_minus_L=yes
  26472. - hardcode_libdir_flag_spec='-L$libdir'
  26473. - hardcode_libdir_separator=
  26474. - fi
  26475. - esac
  26476. - shared_flag='-shared'
  26477. - if test "$aix_use_runtimelinking" = yes; then
  26478. - shared_flag="$shared_flag "'${wl}-G'
  26479. - fi
  26480. - else
  26481. - # not using gcc
  26482. - if test "$host_cpu" = ia64; then
  26483. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  26484. - # chokes on -Wl,-G. The following line is correct:
  26485. - shared_flag='-G'
  26486. - else
  26487. - if test "$aix_use_runtimelinking" = yes; then
  26488. - shared_flag='${wl}-G'
  26489. - else
  26490. - shared_flag='${wl}-bM:SRE'
  26491. - fi
  26492. - fi
  26493. - fi
  26494. - # It seems that -bexpall does not export symbols beginning with
  26495. - # underscore (_), so it is better to generate a list of symbols to export.
  26496. - always_export_symbols=yes
  26497. - if test "$aix_use_runtimelinking" = yes; then
  26498. - # Warning - without using the other runtime loading flags (-brtl),
  26499. - # -berok will link without error, but may produce a broken library.
  26500. - allow_undefined_flag='-berok'
  26501. - # Determine the default libpath from the value encoded in an empty executable.
  26502. - cat >conftest.$ac_ext <<_ACEOF
  26503. -/* confdefs.h. */
  26504. -_ACEOF
  26505. -cat confdefs.h >>conftest.$ac_ext
  26506. -cat >>conftest.$ac_ext <<_ACEOF
  26507. -/* end confdefs.h. */
  26508. -int
  26509. -main ()
  26510. -{
  26511. - ;
  26512. - return 0;
  26513. -}
  26514. -_ACEOF
  26515. -rm -f conftest.$ac_objext conftest$ac_exeext
  26516. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26517. - (eval $ac_link) 2>conftest.er1
  26518. - ac_status=$?
  26519. - grep -v '^ *+' conftest.er1 >conftest.err
  26520. - rm -f conftest.er1
  26521. - cat conftest.err >&5
  26522. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26523. - (exit $ac_status); } &&
  26524. - { ac_try='test -z "$ac_c_werror_flag"
  26525. - || test ! -s conftest.err'
  26526. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26527. - (eval $ac_try) 2>&5
  26528. - ac_status=$?
  26529. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26530. - (exit $ac_status); }; } &&
  26531. - { ac_try='test -s conftest$ac_exeext'
  26532. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26533. - (eval $ac_try) 2>&5
  26534. - ac_status=$?
  26535. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26536. - (exit $ac_status); }; }; then
  26537. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  26538. -}'`
  26539. -# Check for a 64-bit object if we didn't find anything.
  26540. -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; }
  26541. -}'`; fi
  26542. -else
  26543. - echo "$as_me: failed program was:" >&5
  26544. -sed 's/^/| /' conftest.$ac_ext >&5
  26545. -fi
  26546. -rm -f conftest.err conftest.$ac_objext \
  26547. - conftest$ac_exeext conftest.$ac_ext
  26548. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26549. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26550. - 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"
  26551. - else
  26552. - if test "$host_cpu" = ia64; then
  26553. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  26554. - allow_undefined_flag="-z nodefs"
  26555. - archive_expsym_cmds="\$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"
  26556. - else
  26557. - # Determine the default libpath from the value encoded in an empty executable.
  26558. - cat >conftest.$ac_ext <<_ACEOF
  26559. -/* confdefs.h. */
  26560. -_ACEOF
  26561. -cat confdefs.h >>conftest.$ac_ext
  26562. -cat >>conftest.$ac_ext <<_ACEOF
  26563. -/* end confdefs.h. */
  26564. -int
  26565. -main ()
  26566. -{
  26567. - ;
  26568. - return 0;
  26569. -}
  26570. -_ACEOF
  26571. -rm -f conftest.$ac_objext conftest$ac_exeext
  26572. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  26573. - (eval $ac_link) 2>conftest.er1
  26574. - ac_status=$?
  26575. - grep -v '^ *+' conftest.er1 >conftest.err
  26576. - rm -f conftest.er1
  26577. - cat conftest.err >&5
  26578. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26579. - (exit $ac_status); } &&
  26580. - { ac_try='test -z "$ac_c_werror_flag"
  26581. - || test ! -s conftest.err'
  26582. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26583. - (eval $ac_try) 2>&5
  26584. - ac_status=$?
  26585. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26586. - (exit $ac_status); }; } &&
  26587. - { ac_try='test -s conftest$ac_exeext'
  26588. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  26589. - (eval $ac_try) 2>&5
  26590. - ac_status=$?
  26591. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  26592. - (exit $ac_status); }; }; then
  26593. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  26594. -}'`
  26595. -# Check for a 64-bit object if we didn't find anything.
  26596. -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; }
  26597. -}'`; fi
  26598. -else
  26599. - echo "$as_me: failed program was:" >&5
  26600. -sed 's/^/| /' conftest.$ac_ext >&5
  26601. -fi
  26602. -rm -f conftest.err conftest.$ac_objext \
  26603. - conftest$ac_exeext conftest.$ac_ext
  26604. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  26605. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  26606. - # Warning - without using the other run time loading flags,
  26607. - # -berok will link without error, but may produce a broken library.
  26608. - no_undefined_flag=' ${wl}-bernotok'
  26609. - allow_undefined_flag=' ${wl}-berok'
  26610. - # -bexpall does not export symbols beginning with underscore (_)
  26611. - always_export_symbols=yes
  26612. - # Exported symbols can be pulled into shared objects from archives
  26613. - whole_archive_flag_spec=' '
  26614. - archive_cmds_need_lc=yes
  26615. - # This is similar to how AIX traditionally builds it's shared libraries.
  26616. - archive_expsym_cmds="\$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'
  26617. - fi
  26618. - fi
  26619. - ;;
  26620. - amigaos*)
  26621. - 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)'
  26622. - hardcode_libdir_flag_spec='-L$libdir'
  26623. - hardcode_minus_L=yes
  26624. - # see comment about different semantics on the GNU ld section
  26625. - ld_shlibs=no
  26626. - ;;
  26627. - bsdi[45]*)
  26628. - export_dynamic_flag_spec=-rdynamic
  26629. - ;;
  26630. - cygwin* | mingw* | pw32*)
  26631. - # When not using gcc, we currently assume that we are using
  26632. - # Microsoft Visual C++.
  26633. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  26634. - # no search path for DLLs.
  26635. - hardcode_libdir_flag_spec=' '
  26636. - allow_undefined_flag=unsupported
  26637. - # Tell ltmain to make .lib files, not .a files.
  26638. - libext=lib
  26639. - # Tell ltmain to make .dll files, not .so files.
  26640. - shrext_cmds=".dll"
  26641. - # FIXME: Setting linknames here is a bad hack.
  26642. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  26643. - # The linker will automatically build a .lib file if we build a DLL.
  26644. - old_archive_From_new_cmds='true'
  26645. - # FIXME: Should let the user specify the lib program.
  26646. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  26647. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  26648. - enable_shared_with_static_runtimes=yes
  26649. - ;;
  26650. - darwin* | rhapsody*)
  26651. - case "$host_os" in
  26652. - rhapsody* | darwin1.[012])
  26653. - allow_undefined_flag='${wl}-undefined ${wl}suppress'
  26654. - ;;
  26655. - *) # Darwin 1.3 on
  26656. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  26657. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  26658. - else
  26659. - case ${MACOSX_DEPLOYMENT_TARGET} in
  26660. - 10.[012])
  26661. - allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  26662. - ;;
  26663. - 10.*)
  26664. - allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup'
  26665. - ;;
  26666. - esac
  26667. - fi
  26668. - ;;
  26669. - esac
  26670. - archive_cmds_need_lc=no
  26671. - hardcode_direct=no
  26672. - hardcode_automatic=yes
  26673. - hardcode_shlibpath_var=unsupported
  26674. - whole_archive_flag_spec=''
  26675. - link_all_deplibs=yes
  26676. - if test "$GCC" = yes ; then
  26677. - output_verbose_link_cmd='echo'
  26678. - archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  26679. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  26680. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  26681. - 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}'
  26682. - 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}'
  26683. - else
  26684. - case $cc_basename in
  26685. - xlc*)
  26686. - output_verbose_link_cmd='echo'
  26687. - archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  26688. - module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  26689. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  26690. - 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}'
  26691. - 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}'
  26692. - ;;
  26693. - *)
  26694. - ld_shlibs=no
  26695. - ;;
  26696. - esac
  26697. - fi
  26698. - ;;
  26699. - dgux*)
  26700. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26701. - hardcode_libdir_flag_spec='-L$libdir'
  26702. - hardcode_shlibpath_var=no
  26703. - ;;
  26704. - freebsd1*)
  26705. - ld_shlibs=no
  26706. - ;;
  26707. +test -z "$LN_S" && LN_S="ln -s"
  26708. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  26709. - # support. Future versions do this automatically, but an explicit c++rt0.o
  26710. - # does not break anything, and helps significantly (at the cost of a little
  26711. - # extra space).
  26712. - freebsd2.2*)
  26713. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  26714. - hardcode_libdir_flag_spec='-R$libdir'
  26715. - hardcode_direct=yes
  26716. - hardcode_shlibpath_var=no
  26717. - ;;
  26718. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  26719. - freebsd2*)
  26720. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26721. - hardcode_direct=yes
  26722. - hardcode_minus_L=yes
  26723. - hardcode_shlibpath_var=no
  26724. - ;;
  26725. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  26726. - freebsd* | kfreebsd*-gnu | dragonfly*)
  26727. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  26728. - hardcode_libdir_flag_spec='-R$libdir'
  26729. - hardcode_direct=yes
  26730. - hardcode_shlibpath_var=no
  26731. - ;;
  26732. - hpux9*)
  26733. - if test "$GCC" = yes; then
  26734. - 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'
  26735. - else
  26736. - 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'
  26737. - fi
  26738. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26739. - hardcode_libdir_separator=:
  26740. - hardcode_direct=yes
  26741. - # hardcode_minus_L: Not really in the search PATH,
  26742. - # but as the default location of the library.
  26743. - hardcode_minus_L=yes
  26744. - export_dynamic_flag_spec='${wl}-E'
  26745. - ;;
  26746. - hpux10* | hpux11*)
  26747. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  26748. - case "$host_cpu" in
  26749. - hppa*64*|ia64*)
  26750. - archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26751. - ;;
  26752. - *)
  26753. - archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  26754. - ;;
  26755. - esac
  26756. - else
  26757. - case "$host_cpu" in
  26758. - hppa*64*|ia64*)
  26759. - archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  26760. - ;;
  26761. - *)
  26762. - archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  26763. - ;;
  26764. - esac
  26765. - fi
  26766. - if test "$with_gnu_ld" = no; then
  26767. - case "$host_cpu" in
  26768. - hppa*64*)
  26769. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26770. - hardcode_libdir_flag_spec_ld='+b $libdir'
  26771. - hardcode_libdir_separator=:
  26772. - hardcode_direct=no
  26773. - hardcode_shlibpath_var=no
  26774. - ;;
  26775. - ia64*)
  26776. - hardcode_libdir_flag_spec='-L$libdir'
  26777. - hardcode_direct=no
  26778. - hardcode_shlibpath_var=no
  26779. - # hardcode_minus_L: Not really in the search PATH,
  26780. - # but as the default location of the library.
  26781. - hardcode_minus_L=yes
  26782. - ;;
  26783. - *)
  26784. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  26785. - hardcode_libdir_separator=:
  26786. - hardcode_direct=yes
  26787. - export_dynamic_flag_spec='${wl}-E'
  26788. - # hardcode_minus_L: Not really in the search PATH,
  26789. - # but as the default location of the library.
  26790. - hardcode_minus_L=yes
  26791. - ;;
  26792. - esac
  26793. - fi
  26794. - ;;
  26795. - irix5* | irix6* | nonstopux*)
  26796. - if test "$GCC" = yes; then
  26797. - 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'
  26798. - else
  26799. - 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'
  26800. - hardcode_libdir_flag_spec_ld='-rpath $libdir'
  26801. - fi
  26802. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26803. - hardcode_libdir_separator=:
  26804. - link_all_deplibs=yes
  26805. - ;;
  26806. - netbsd*)
  26807. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  26808. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  26809. - else
  26810. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  26811. - fi
  26812. - hardcode_libdir_flag_spec='-R$libdir'
  26813. - hardcode_direct=yes
  26814. - hardcode_shlibpath_var=no
  26815. - ;;
  26816. - newsos6)
  26817. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26818. - hardcode_direct=yes
  26819. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26820. - hardcode_libdir_separator=:
  26821. - hardcode_shlibpath_var=no
  26822. - ;;
  26823. - openbsd*)
  26824. - hardcode_direct=yes
  26825. - hardcode_shlibpath_var=no
  26826. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  26827. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26828. - archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  26829. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26830. - export_dynamic_flag_spec='${wl}-E'
  26831. - else
  26832. - case $host_os in
  26833. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  26834. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  26835. - hardcode_libdir_flag_spec='-R$libdir'
  26836. - ;;
  26837. - *)
  26838. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  26839. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  26840. - ;;
  26841. - esac
  26842. - fi
  26843. - ;;
  26844. - os2*)
  26845. - hardcode_libdir_flag_spec='-L$libdir'
  26846. - hardcode_minus_L=yes
  26847. - allow_undefined_flag=unsupported
  26848. - 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'
  26849. - old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  26850. - ;;
  26851. - osf3*)
  26852. - if test "$GCC" = yes; then
  26853. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26854. - 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'
  26855. - else
  26856. - allow_undefined_flag=' -expect_unresolved \*'
  26857. - 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'
  26858. - fi
  26859. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26860. - hardcode_libdir_separator=:
  26861. - ;;
  26862. +if test -n "${ZSH_VERSION+set}" ; then
  26863. + setopt NO_GLOB_SUBST
  26864. +fi
  26865. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  26866. - if test "$GCC" = yes; then
  26867. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  26868. - 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'
  26869. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  26870. - else
  26871. - allow_undefined_flag=' -expect_unresolved \*'
  26872. - 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'
  26873. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  26874. - $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'
  26875. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  26876. +$as_echo_n "checking for objdir... " >&6; }
  26877. +if test "${lt_cv_objdir+set}" = set; then :
  26878. + $as_echo_n "(cached) " >&6
  26879. +else
  26880. + rm -f .libs 2>/dev/null
  26881. +mkdir .libs 2>/dev/null
  26882. +if test -d .libs; then
  26883. + lt_cv_objdir=.libs
  26884. +else
  26885. + # MS-DOS does not allow filenames that begin with a dot.
  26886. + lt_cv_objdir=_libs
  26887. +fi
  26888. +rmdir .libs 2>/dev/null
  26889. +fi
  26890. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  26891. +$as_echo "$lt_cv_objdir" >&6; }
  26892. +objdir=$lt_cv_objdir
  26893. - # Both c and cxx compiler support -rpath directly
  26894. - hardcode_libdir_flag_spec='-rpath $libdir'
  26895. - fi
  26896. - hardcode_libdir_separator=:
  26897. - ;;
  26898. - sco3.2v5*)
  26899. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26900. - hardcode_shlibpath_var=no
  26901. - export_dynamic_flag_spec='${wl}-Bexport'
  26902. - runpath_var=LD_RUN_PATH
  26903. - hardcode_runpath_var=yes
  26904. - ;;
  26905. - solaris*)
  26906. - no_undefined_flag=' -z text'
  26907. - if test "$GCC" = yes; then
  26908. - wlarc='${wl}'
  26909. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  26910. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26911. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  26912. - else
  26913. - wlarc=''
  26914. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26915. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  26916. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  26917. - fi
  26918. - hardcode_libdir_flag_spec='-R$libdir'
  26919. - hardcode_shlibpath_var=no
  26920. - case $host_os in
  26921. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  26922. - *)
  26923. - # The compiler driver will combine linker options so we
  26924. - # cannot just pass the convience library names through
  26925. - # without $wl, iff we do not link with $LD.
  26926. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  26927. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  26928. - case $wlarc in
  26929. - '')
  26930. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  26931. - *)
  26932. - 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' ;;
  26933. - esac ;;
  26934. - esac
  26935. - link_all_deplibs=yes
  26936. - ;;
  26937. - sunos4*)
  26938. - if test "x$host_vendor" = xsequent; then
  26939. - # Use $CC to link under sequent, because it throws in some extra .o
  26940. - # files that make .init and .fini sections work.
  26941. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  26942. - else
  26943. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  26944. - fi
  26945. - hardcode_libdir_flag_spec='-L$libdir'
  26946. - hardcode_direct=yes
  26947. - hardcode_minus_L=yes
  26948. - hardcode_shlibpath_var=no
  26949. - ;;
  26950. - sysv4)
  26951. - case $host_vendor in
  26952. - sni)
  26953. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26954. - hardcode_direct=yes # is this really true???
  26955. - ;;
  26956. - siemens)
  26957. - ## LD is ld it makes a PLAMLIB
  26958. - ## CC just makes a GrossModule.
  26959. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  26960. - reload_cmds='$CC -r -o $output$reload_objs'
  26961. - hardcode_direct=no
  26962. - ;;
  26963. - motorola)
  26964. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26965. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  26966. - ;;
  26967. - esac
  26968. - runpath_var='LD_RUN_PATH'
  26969. - hardcode_shlibpath_var=no
  26970. - ;;
  26971. +cat >>confdefs.h <<_ACEOF
  26972. +#define LT_OBJDIR "$lt_cv_objdir/"
  26973. +_ACEOF
  26974. - sysv4.3*)
  26975. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26976. - hardcode_shlibpath_var=no
  26977. - export_dynamic_flag_spec='-Bexport'
  26978. - ;;
  26979. - sysv4*MP*)
  26980. - if test -d /usr/nec; then
  26981. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  26982. - hardcode_shlibpath_var=no
  26983. - runpath_var=LD_RUN_PATH
  26984. - hardcode_runpath_var=yes
  26985. - ld_shlibs=yes
  26986. - fi
  26987. - ;;
  26988. - sysv4.2uw2*)
  26989. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  26990. - hardcode_direct=yes
  26991. - hardcode_minus_L=no
  26992. - hardcode_shlibpath_var=no
  26993. - hardcode_runpath_var=yes
  26994. - runpath_var=LD_RUN_PATH
  26995. - ;;
  26996. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  26997. - no_undefined_flag='${wl}-z ${wl}text'
  26998. - if test "$GCC" = yes; then
  26999. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27000. - else
  27001. - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  27002. - fi
  27003. - runpath_var='LD_RUN_PATH'
  27004. - hardcode_shlibpath_var=no
  27005. - ;;
  27006. - sysv5*)
  27007. - no_undefined_flag=' -z text'
  27008. - # $CC -shared without GNU ld will not create a library from C++
  27009. - # object files and a static libstdc++, better avoid it by now
  27010. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27011. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  27012. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  27013. - hardcode_libdir_flag_spec=
  27014. - hardcode_shlibpath_var=no
  27015. - runpath_var='LD_RUN_PATH'
  27016. - ;;
  27017. - uts4*)
  27018. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  27019. - hardcode_libdir_flag_spec='-L$libdir'
  27020. - hardcode_shlibpath_var=no
  27021. - ;;
  27022. - *)
  27023. - ld_shlibs=no
  27024. - ;;
  27025. - esac
  27026. - fi
  27027. -echo "$as_me:$LINENO: result: $ld_shlibs" >&5
  27028. -echo "${ECHO_T}$ld_shlibs" >&6
  27029. -test "$ld_shlibs" = no && can_build_shared=no
  27030. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  27031. -if test "$GCC" = yes; then
  27032. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  27033. -fi
  27034. -#
  27035. -# Do we need to explicitly link libc?
  27036. -#
  27037. -case "x$archive_cmds_need_lc" in
  27038. -x|xyes)
  27039. - # Assume -lc should be added
  27040. - archive_cmds_need_lc=yes
  27041. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  27042. - case $archive_cmds in
  27043. - *'~'*)
  27044. - # FIXME: we may have to deal with multi-command sequences.
  27045. - ;;
  27046. - '$CC '*)
  27047. - # Test whether the compiler implicitly links with -lc since on some
  27048. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  27049. - # to ld, don't add -lc before -lgcc.
  27050. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  27051. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  27052. - $rm conftest*
  27053. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  27054. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27055. - (eval $ac_compile) 2>&5
  27056. - ac_status=$?
  27057. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27058. - (exit $ac_status); } 2>conftest.err; then
  27059. - soname=conftest
  27060. - lib=conftest
  27061. - libobjs=conftest.$ac_objext
  27062. - deplibs=
  27063. - wl=$lt_prog_compiler_wl
  27064. - compiler_flags=-v
  27065. - linker_flags=-v
  27066. - verstring=
  27067. - output_objdir=.
  27068. - libname=conftest
  27069. - lt_save_allow_undefined_flag=$allow_undefined_flag
  27070. - allow_undefined_flag=
  27071. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  27072. - (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  27073. - ac_status=$?
  27074. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27075. - (exit $ac_status); }
  27076. - then
  27077. - archive_cmds_need_lc=no
  27078. - else
  27079. - archive_cmds_need_lc=yes
  27080. - fi
  27081. - allow_undefined_flag=$lt_save_allow_undefined_flag
  27082. - else
  27083. - cat conftest.err 1>&5
  27084. - fi
  27085. - $rm conftest*
  27086. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5
  27087. -echo "${ECHO_T}$archive_cmds_need_lc" >&6
  27088. - ;;
  27089. - esac
  27090. +
  27091. +
  27092. +
  27093. +
  27094. +
  27095. +case $host_os in
  27096. +aix3*)
  27097. + # AIX sometimes has problems with the GCC collect2 program. For some
  27098. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  27099. + # vanish in a puff of smoke.
  27100. + if test "X${COLLECT_NAMES+set}" != Xset; then
  27101. + COLLECT_NAMES=
  27102. + export COLLECT_NAMES
  27103. fi
  27104. ;;
  27105. esac
  27106. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  27107. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  27108. -library_names_spec=
  27109. -libname_spec='lib$name'
  27110. -soname_spec=
  27111. -shrext_cmds=".so"
  27112. -postinstall_cmds=
  27113. -postuninstall_cmds=
  27114. -finish_cmds=
  27115. -finish_eval=
  27116. -shlibpath_var=
  27117. -shlibpath_overrides_runpath=unknown
  27118. -version_type=none
  27119. -dynamic_linker="$host_os ld.so"
  27120. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  27121. -if test "$GCC" = yes; then
  27122. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  27123. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  27124. - # if the path contains ";" then we assume it to be the separator
  27125. - # otherwise default to the standard path separator (i.e. ":") - it is
  27126. - # assumed that no part of a normal pathname contains ";" but that should
  27127. - # okay in the real world where ";" in dirpaths is itself problematic.
  27128. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  27129. - else
  27130. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  27131. - fi
  27132. -else
  27133. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  27134. -fi
  27135. -need_lib_prefix=unknown
  27136. -hardcode_into_libs=no
  27137. +# Sed substitution that helps us do robust quoting. It backslashifies
  27138. +# metacharacters that are still active within double-quoted strings.
  27139. +sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  27140. -# when you set need_version to no, make sure it does not cause -set_version
  27141. -# flags to be left without arguments
  27142. -need_version=unknown
  27143. +# Same as above, but do not quote variable references.
  27144. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  27145. -case $host_os in
  27146. -aix3*)
  27147. - version_type=linux
  27148. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  27149. - shlibpath_var=LIBPATH
  27150. +# Sed substitution to delay expansion of an escaped shell variable in a
  27151. +# double_quote_subst'ed string.
  27152. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  27153. - # AIX 3 has no versioning support, so we append a major version to the name.
  27154. - soname_spec='${libname}${release}${shared_ext}$major'
  27155. - ;;
  27156. +# Sed substitution to delay expansion of an escaped single quote.
  27157. +delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  27158. -aix4* | aix5*)
  27159. - version_type=linux
  27160. - need_lib_prefix=no
  27161. - need_version=no
  27162. - hardcode_into_libs=yes
  27163. - if test "$host_cpu" = ia64; then
  27164. - # AIX 5 supports IA64
  27165. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  27166. - shlibpath_var=LD_LIBRARY_PATH
  27167. - else
  27168. - # With GCC up to 2.95.x, collect2 would create an import file
  27169. - # for dependence libraries. The import file would start with
  27170. - # the line `#! .'. This would cause the generated library to
  27171. - # depend on `.', always an invalid library. This was fixed in
  27172. - # development snapshots of GCC prior to 3.0.
  27173. - case $host_os in
  27174. - aix4 | aix4.[01] | aix4.[01].*)
  27175. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  27176. - echo ' yes '
  27177. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  27178. - :
  27179. - else
  27180. - can_build_shared=no
  27181. +# Sed substitution to avoid accidental globbing in evaled expressions
  27182. +no_glob_subst='s/\*/\\\*/g'
  27183. +
  27184. +# Global variables:
  27185. +ofile=libtool
  27186. +can_build_shared=yes
  27187. +
  27188. +# All known linkers require a `.a' archive for static linking (except MSVC,
  27189. +# which needs '.lib').
  27190. +libext=a
  27191. +
  27192. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  27193. +
  27194. +old_CC="$CC"
  27195. +old_CFLAGS="$CFLAGS"
  27196. +
  27197. +# Set sane defaults for various variables
  27198. +test -z "$CC" && CC=cc
  27199. +test -z "$LTCC" && LTCC=$CC
  27200. +test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  27201. +test -z "$LD" && LD=ld
  27202. +test -z "$ac_objext" && ac_objext=o
  27203. +
  27204. +for cc_temp in $compiler""; do
  27205. + case $cc_temp in
  27206. + compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  27207. + distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  27208. + \-*) ;;
  27209. + *) break;;
  27210. + esac
  27211. +done
  27212. +cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  27213. +
  27214. +
  27215. +# Only perform the check for file, if the check method requires it
  27216. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  27217. +case $deplibs_check_method in
  27218. +file_magic*)
  27219. + if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  27220. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  27221. +$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  27222. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  27223. + $as_echo_n "(cached) " >&6
  27224. +else
  27225. + case $MAGIC_CMD in
  27226. +[\\/*] | ?:[\\/]*)
  27227. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  27228. + ;;
  27229. +*)
  27230. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  27231. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27232. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  27233. + for ac_dir in $ac_dummy; do
  27234. + IFS="$lt_save_ifs"
  27235. + test -z "$ac_dir" && ac_dir=.
  27236. + if test -f $ac_dir/${ac_tool_prefix}file; then
  27237. + lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  27238. + if test -n "$file_magic_test_file"; then
  27239. + case $deplibs_check_method in
  27240. + "file_magic "*)
  27241. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  27242. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27243. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  27244. + $EGREP "$file_magic_regex" > /dev/null; then
  27245. + :
  27246. + else
  27247. + cat <<_LT_EOF 1>&2
  27248. +
  27249. +*** Warning: the command libtool uses to detect shared libraries,
  27250. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  27251. +*** The result is that libtool may fail to recognize shared libraries
  27252. +*** as such. This will affect the creation of libtool libraries that
  27253. +*** depend on shared libraries, but programs linked with such libtool
  27254. +*** libraries will work regardless of this problem. Nevertheless, you
  27255. +*** may want to report the problem to your system manager and/or to
  27256. +*** bug-libtool@gnu.org
  27257. +
  27258. +_LT_EOF
  27259. + fi ;;
  27260. + esac
  27261. fi
  27262. - ;;
  27263. - esac
  27264. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  27265. - # soname into executable. Probably we can add versioning support to
  27266. - # collect2, so additional links can be useful in future.
  27267. - if test "$aix_use_runtimelinking" = yes; then
  27268. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  27269. - # instead of lib<name>.a to let people know that these are not
  27270. - # typical AIX shared libraries.
  27271. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27272. - else
  27273. - # We preserve .a as extension for shared libraries through AIX4.2
  27274. - # and later when we are not doing run time linking.
  27275. - library_names_spec='${libname}${release}.a $libname.a'
  27276. - soname_spec='${libname}${release}${shared_ext}$major'
  27277. + break
  27278. fi
  27279. - shlibpath_var=LIBPATH
  27280. - fi
  27281. + done
  27282. + IFS="$lt_save_ifs"
  27283. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  27284. ;;
  27285. +esac
  27286. +fi
  27287. -amigaos*)
  27288. - library_names_spec='$libname.ixlibrary $libname.a'
  27289. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  27290. - 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'
  27291. - ;;
  27292. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27293. +if test -n "$MAGIC_CMD"; then
  27294. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  27295. +$as_echo "$MAGIC_CMD" >&6; }
  27296. +else
  27297. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27298. +$as_echo "no" >&6; }
  27299. +fi
  27300. -beos*)
  27301. - library_names_spec='${libname}${shared_ext}'
  27302. - dynamic_linker="$host_os ld.so"
  27303. - shlibpath_var=LIBRARY_PATH
  27304. - ;;
  27305. -bsdi[45]*)
  27306. - version_type=linux
  27307. - need_version=no
  27308. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27309. - soname_spec='${libname}${release}${shared_ext}$major'
  27310. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  27311. - shlibpath_var=LD_LIBRARY_PATH
  27312. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  27313. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  27314. - # the default ld.so.conf also contains /usr/contrib/lib and
  27315. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  27316. - # libtool to hard-code these into programs
  27317. - ;;
  27318. -cygwin* | mingw* | pw32*)
  27319. - version_type=windows
  27320. - shrext_cmds=".dll"
  27321. - need_version=no
  27322. - need_lib_prefix=no
  27323. - case $GCC,$host_os in
  27324. - yes,cygwin* | yes,mingw* | yes,pw32*)
  27325. - library_names_spec='$libname.dll.a'
  27326. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  27327. - postinstall_cmds='base_file=`basename \${file}`~
  27328. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  27329. - dldir=$destdir/`dirname \$dlpath`~
  27330. - test -d \$dldir || mkdir -p \$dldir~
  27331. - $install_prog $dir/$dlname \$dldir/$dlname'
  27332. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  27333. - dlpath=$dir/\$dldll~
  27334. - $rm \$dlpath'
  27335. - shlibpath_overrides_runpath=yes
  27336. - case $host_os in
  27337. - cygwin*)
  27338. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  27339. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27340. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  27341. - ;;
  27342. - mingw*)
  27343. - # MinGW DLLs use traditional 'lib' prefix
  27344. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27345. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  27346. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  27347. - # It is most probably a Windows format PATH printed by
  27348. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  27349. - # path with ; separators, and with drive letters. We can handle the
  27350. - # drive letters (cygwin fileutils understands them), so leave them,
  27351. - # especially as we might pass files found there to a mingw objdump,
  27352. - # which wouldn't understand a cygwinified path. Ahh.
  27353. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  27354. - else
  27355. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  27356. - fi
  27357. - ;;
  27358. - pw32*)
  27359. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  27360. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  27361. - ;;
  27362. - esac
  27363. - ;;
  27364. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  27365. + if test -n "$ac_tool_prefix"; then
  27366. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  27367. +$as_echo_n "checking for file... " >&6; }
  27368. +if test "${lt_cv_path_MAGIC_CMD+set}" = set; then :
  27369. + $as_echo_n "(cached) " >&6
  27370. +else
  27371. + case $MAGIC_CMD in
  27372. +[\\/*] | ?:[\\/]*)
  27373. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  27374. + ;;
  27375. +*)
  27376. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  27377. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  27378. + ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  27379. + for ac_dir in $ac_dummy; do
  27380. + IFS="$lt_save_ifs"
  27381. + test -z "$ac_dir" && ac_dir=.
  27382. + if test -f $ac_dir/file; then
  27383. + lt_cv_path_MAGIC_CMD="$ac_dir/file"
  27384. + if test -n "$file_magic_test_file"; then
  27385. + case $deplibs_check_method in
  27386. + "file_magic "*)
  27387. + file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  27388. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27389. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  27390. + $EGREP "$file_magic_regex" > /dev/null; then
  27391. + :
  27392. + else
  27393. + cat <<_LT_EOF 1>&2
  27394. - *)
  27395. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  27396. - ;;
  27397. - esac
  27398. - dynamic_linker='Win32 ld.exe'
  27399. - # FIXME: first we should search . and the directory the executable is in
  27400. - shlibpath_var=PATH
  27401. +*** Warning: the command libtool uses to detect shared libraries,
  27402. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  27403. +*** The result is that libtool may fail to recognize shared libraries
  27404. +*** as such. This will affect the creation of libtool libraries that
  27405. +*** depend on shared libraries, but programs linked with such libtool
  27406. +*** libraries will work regardless of this problem. Nevertheless, you
  27407. +*** may want to report the problem to your system manager and/or to
  27408. +*** bug-libtool@gnu.org
  27409. +
  27410. +_LT_EOF
  27411. + fi ;;
  27412. + esac
  27413. + fi
  27414. + break
  27415. + fi
  27416. + done
  27417. + IFS="$lt_save_ifs"
  27418. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  27419. ;;
  27420. +esac
  27421. +fi
  27422. +
  27423. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  27424. +if test -n "$MAGIC_CMD"; then
  27425. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  27426. +$as_echo "$MAGIC_CMD" >&6; }
  27427. +else
  27428. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  27429. +$as_echo "no" >&6; }
  27430. +fi
  27431. +
  27432. -darwin* | rhapsody*)
  27433. - dynamic_linker="$host_os dyld"
  27434. - version_type=darwin
  27435. - need_lib_prefix=no
  27436. - need_version=no
  27437. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  27438. - soname_spec='${libname}${release}${major}$shared_ext'
  27439. - shlibpath_overrides_runpath=yes
  27440. - shlibpath_var=DYLD_LIBRARY_PATH
  27441. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  27442. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  27443. - if test "$GCC" = yes; then
  27444. - 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"`
  27445. else
  27446. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  27447. + MAGIC_CMD=:
  27448. fi
  27449. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  27450. - ;;
  27451. -
  27452. -dgux*)
  27453. - version_type=linux
  27454. - need_lib_prefix=no
  27455. - need_version=no
  27456. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  27457. - soname_spec='${libname}${release}${shared_ext}$major'
  27458. - shlibpath_var=LD_LIBRARY_PATH
  27459. - ;;
  27460. +fi
  27461. -freebsd1*)
  27462. - dynamic_linker=no
  27463. + fi
  27464. ;;
  27465. +esac
  27466. -kfreebsd*-gnu)
  27467. - version_type=linux
  27468. - need_lib_prefix=no
  27469. - need_version=no
  27470. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27471. - soname_spec='${libname}${release}${shared_ext}$major'
  27472. - shlibpath_var=LD_LIBRARY_PATH
  27473. - shlibpath_overrides_runpath=no
  27474. - hardcode_into_libs=yes
  27475. - dynamic_linker='GNU ld.so'
  27476. - ;;
  27477. +# Use C for the default configuration in the libtool script
  27478. -freebsd* | dragonfly*)
  27479. - # DragonFly does not have aout. When/if they implement a new
  27480. - # versioning mechanism, adjust this.
  27481. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  27482. - version_type=freebsd-$objformat
  27483. - case $version_type in
  27484. - freebsd-elf*)
  27485. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  27486. - need_version=no
  27487. - need_lib_prefix=no
  27488. - ;;
  27489. - freebsd-*)
  27490. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  27491. - need_version=yes
  27492. - ;;
  27493. - esac
  27494. - shlibpath_var=LD_LIBRARY_PATH
  27495. - case $host_os in
  27496. - freebsd2*)
  27497. - shlibpath_overrides_runpath=yes
  27498. - ;;
  27499. - freebsd3.[01]* | freebsdelf3.[01]*)
  27500. - shlibpath_overrides_runpath=yes
  27501. - hardcode_into_libs=yes
  27502. - ;;
  27503. - *) # from 3.2 on
  27504. - shlibpath_overrides_runpath=no
  27505. - hardcode_into_libs=yes
  27506. - ;;
  27507. - esac
  27508. - ;;
  27509. +lt_save_CC="$CC"
  27510. +ac_ext=c
  27511. +ac_cpp='$CPP $CPPFLAGS'
  27512. +ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  27513. +ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  27514. +ac_compiler_gnu=$ac_cv_c_compiler_gnu
  27515. -gnu*)
  27516. - version_type=linux
  27517. - need_lib_prefix=no
  27518. - need_version=no
  27519. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  27520. - soname_spec='${libname}${release}${shared_ext}$major'
  27521. - shlibpath_var=LD_LIBRARY_PATH
  27522. - hardcode_into_libs=yes
  27523. - ;;
  27524. -hpux9* | hpux10* | hpux11*)
  27525. - # Give a soname corresponding to the major version so that dld.sl refuses to
  27526. - # link against other versions.
  27527. - version_type=sunos
  27528. - need_lib_prefix=no
  27529. - need_version=no
  27530. - case "$host_cpu" in
  27531. - ia64*)
  27532. - shrext_cmds='.so'
  27533. - hardcode_into_libs=yes
  27534. - dynamic_linker="$host_os dld.so"
  27535. - shlibpath_var=LD_LIBRARY_PATH
  27536. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27537. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27538. - soname_spec='${libname}${release}${shared_ext}$major'
  27539. - if test "X$HPUX_IA64_MODE" = X32; then
  27540. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  27541. - else
  27542. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  27543. - fi
  27544. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27545. - ;;
  27546. - hppa*64*)
  27547. - shrext_cmds='.sl'
  27548. - hardcode_into_libs=yes
  27549. - dynamic_linker="$host_os dld.sl"
  27550. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  27551. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  27552. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27553. - soname_spec='${libname}${release}${shared_ext}$major'
  27554. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  27555. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  27556. - ;;
  27557. - *)
  27558. - shrext_cmds='.sl'
  27559. - dynamic_linker="$host_os dld.sl"
  27560. - shlibpath_var=SHLIB_PATH
  27561. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  27562. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27563. - soname_spec='${libname}${release}${shared_ext}$major'
  27564. - ;;
  27565. - esac
  27566. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  27567. - postinstall_cmds='chmod 555 $lib'
  27568. - ;;
  27569. +# Source file extension for C test sources.
  27570. +ac_ext=c
  27571. -irix5* | irix6* | nonstopux*)
  27572. - case $host_os in
  27573. - nonstopux*) version_type=nonstopux ;;
  27574. - *)
  27575. - if test "$lt_cv_prog_gnu_ld" = yes; then
  27576. - version_type=linux
  27577. - else
  27578. - version_type=irix
  27579. - fi ;;
  27580. - esac
  27581. - need_lib_prefix=no
  27582. - need_version=no
  27583. - soname_spec='${libname}${release}${shared_ext}$major'
  27584. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  27585. - case $host_os in
  27586. - irix5* | nonstopux*)
  27587. - libsuff= shlibsuff=
  27588. - ;;
  27589. - *)
  27590. - case $LD in # libtool.m4 will add one of these switches to LD
  27591. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  27592. - libsuff= shlibsuff= libmagic=32-bit;;
  27593. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  27594. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  27595. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  27596. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  27597. - *) libsuff= shlibsuff= libmagic=never-match;;
  27598. - esac
  27599. - ;;
  27600. - esac
  27601. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  27602. - shlibpath_overrides_runpath=no
  27603. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  27604. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  27605. - hardcode_into_libs=yes
  27606. - ;;
  27607. +# Object file extension for compiled C test sources.
  27608. +objext=o
  27609. +objext=$objext
  27610. -# No shared lib support for Linux oldld, aout, or coff.
  27611. -linux*oldld* | linux*aout* | linux*coff*)
  27612. - dynamic_linker=no
  27613. - ;;
  27614. +# Code to be used in simple compile tests
  27615. +lt_simple_compile_test_code="int some_variable = 0;"
  27616. -# This must be Linux ELF.
  27617. -linux*)
  27618. - version_type=linux
  27619. - need_lib_prefix=no
  27620. - need_version=no
  27621. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27622. - soname_spec='${libname}${release}${shared_ext}$major'
  27623. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  27624. - shlibpath_var=LD_LIBRARY_PATH
  27625. - shlibpath_overrides_runpath=no
  27626. - # This implies no fast_install, which is unacceptable.
  27627. - # Some rework will be needed to allow for fast_install
  27628. - # before this can be enabled.
  27629. - hardcode_into_libs=yes
  27630. +# Code to be used in simple link tests
  27631. +lt_simple_link_test_code='int main(){return(0);}'
  27632. - # find out which ABI we are using
  27633. - libsuff=
  27634. - case "$host_cpu" in
  27635. - x86_64*|s390x*|powerpc64*)
  27636. - echo '#line 8054 "configure"' > conftest.$ac_ext
  27637. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  27638. - (eval $ac_compile) 2>&5
  27639. - ac_status=$?
  27640. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  27641. - (exit $ac_status); }; then
  27642. - case `/usr/bin/file conftest.$ac_objext` in
  27643. - *64-bit*)
  27644. - libsuff=64
  27645. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  27646. - ;;
  27647. - esac
  27648. - fi
  27649. - rm -rf conftest*
  27650. - ;;
  27651. - esac
  27652. - # Append ld.so.conf contents to the search path
  27653. - if test -f /etc/ld.so.conf; then
  27654. - 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  27655. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  27656. - fi
  27657. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  27658. - # powerpc, because MkLinux only supported shared libraries with the
  27659. - # GNU dynamic linker. Since this was broken with cross compilers,
  27660. - # most powerpc-linux boxes support dynamic linking these days and
  27661. - # people can always --disable-shared, the test was removed, and we
  27662. - # assume the GNU/Linux dynamic linker is in use.
  27663. - dynamic_linker='GNU/Linux ld.so'
  27664. - ;;
  27665. -knetbsd*-gnu)
  27666. - version_type=linux
  27667. - need_lib_prefix=no
  27668. - need_version=no
  27669. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27670. - soname_spec='${libname}${release}${shared_ext}$major'
  27671. - shlibpath_var=LD_LIBRARY_PATH
  27672. - shlibpath_overrides_runpath=no
  27673. - hardcode_into_libs=yes
  27674. - dynamic_linker='GNU ld.so'
  27675. - ;;
  27676. -netbsd*)
  27677. - version_type=sunos
  27678. - need_lib_prefix=no
  27679. - need_version=no
  27680. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  27681. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27682. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27683. - dynamic_linker='NetBSD (a.out) ld.so'
  27684. - else
  27685. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  27686. - soname_spec='${libname}${release}${shared_ext}$major'
  27687. - dynamic_linker='NetBSD ld.elf_so'
  27688. - fi
  27689. - shlibpath_var=LD_LIBRARY_PATH
  27690. - shlibpath_overrides_runpath=yes
  27691. - hardcode_into_libs=yes
  27692. - ;;
  27693. -newsos6)
  27694. - version_type=linux
  27695. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27696. - shlibpath_var=LD_LIBRARY_PATH
  27697. - shlibpath_overrides_runpath=yes
  27698. - ;;
  27699. -nto-qnx*)
  27700. - version_type=linux
  27701. - need_lib_prefix=no
  27702. - need_version=no
  27703. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27704. - soname_spec='${libname}${release}${shared_ext}$major'
  27705. - shlibpath_var=LD_LIBRARY_PATH
  27706. - shlibpath_overrides_runpath=yes
  27707. - ;;
  27708. +# If no C compiler was specified, use CC.
  27709. +LTCC=${LTCC-"$CC"}
  27710. -openbsd*)
  27711. - version_type=sunos
  27712. - need_lib_prefix=no
  27713. - need_version=no
  27714. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27715. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  27716. - shlibpath_var=LD_LIBRARY_PATH
  27717. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  27718. - case $host_os in
  27719. - openbsd2.[89] | openbsd2.[89].*)
  27720. - shlibpath_overrides_runpath=no
  27721. - ;;
  27722. - *)
  27723. - shlibpath_overrides_runpath=yes
  27724. - ;;
  27725. - esac
  27726. - else
  27727. - shlibpath_overrides_runpath=yes
  27728. - fi
  27729. - ;;
  27730. +# If no C compiler flags were specified, use CFLAGS.
  27731. +LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  27732. -os2*)
  27733. - libname_spec='$name'
  27734. - shrext_cmds=".dll"
  27735. - need_lib_prefix=no
  27736. - library_names_spec='$libname${shared_ext} $libname.a'
  27737. - dynamic_linker='OS/2 ld.exe'
  27738. - shlibpath_var=LIBPATH
  27739. - ;;
  27740. +# Allow CC to be a program name with arguments.
  27741. +compiler=$CC
  27742. -osf3* | osf4* | osf5*)
  27743. - version_type=osf
  27744. - need_lib_prefix=no
  27745. - need_version=no
  27746. - soname_spec='${libname}${release}${shared_ext}$major'
  27747. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27748. - shlibpath_var=LD_LIBRARY_PATH
  27749. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  27750. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  27751. - ;;
  27752. +# Save the default compiler, since it gets overwritten when the other
  27753. +# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  27754. +compiler_DEFAULT=$CC
  27755. -sco3.2v5*)
  27756. - version_type=osf
  27757. - soname_spec='${libname}${release}${shared_ext}$major'
  27758. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27759. - shlibpath_var=LD_LIBRARY_PATH
  27760. - ;;
  27761. +# save warnings/boilerplate of simple test code
  27762. +ac_outfile=conftest.$ac_objext
  27763. +echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  27764. +eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27765. +_lt_compiler_boilerplate=`cat conftest.err`
  27766. +$RM conftest*
  27767. -solaris*)
  27768. - version_type=linux
  27769. - need_lib_prefix=no
  27770. - need_version=no
  27771. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27772. - soname_spec='${libname}${release}${shared_ext}$major'
  27773. - shlibpath_var=LD_LIBRARY_PATH
  27774. - shlibpath_overrides_runpath=yes
  27775. - hardcode_into_libs=yes
  27776. - # ldd complains unless libraries are executable
  27777. - postinstall_cmds='chmod +x $lib'
  27778. - ;;
  27779. +ac_outfile=conftest.$ac_objext
  27780. +echo "$lt_simple_link_test_code" >conftest.$ac_ext
  27781. +eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  27782. +_lt_linker_boilerplate=`cat conftest.err`
  27783. +$RM -r conftest*
  27784. -sunos4*)
  27785. - version_type=sunos
  27786. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  27787. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  27788. - shlibpath_var=LD_LIBRARY_PATH
  27789. - shlibpath_overrides_runpath=yes
  27790. - if test "$with_gnu_ld" = yes; then
  27791. - need_lib_prefix=no
  27792. - fi
  27793. - need_version=yes
  27794. - ;;
  27795. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  27796. - version_type=linux
  27797. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27798. - soname_spec='${libname}${release}${shared_ext}$major'
  27799. - shlibpath_var=LD_LIBRARY_PATH
  27800. - case $host_vendor in
  27801. - sni)
  27802. - shlibpath_overrides_runpath=no
  27803. - need_lib_prefix=no
  27804. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  27805. - runpath_var=LD_RUN_PATH
  27806. - ;;
  27807. - siemens)
  27808. - need_lib_prefix=no
  27809. - ;;
  27810. - motorola)
  27811. - need_lib_prefix=no
  27812. - need_version=no
  27813. - shlibpath_overrides_runpath=no
  27814. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  27815. - ;;
  27816. - esac
  27817. - ;;
  27818. +if test -n "$compiler"; then
  27819. -sysv4*MP*)
  27820. - if test -d /usr/nec ;then
  27821. - version_type=linux
  27822. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  27823. - soname_spec='$libname${shared_ext}.$major'
  27824. - shlibpath_var=LD_LIBRARY_PATH
  27825. - fi
  27826. - ;;
  27827. +lt_prog_compiler_no_builtin_flag=
  27828. -uts4*)
  27829. - version_type=linux
  27830. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  27831. - soname_spec='${libname}${release}${shared_ext}$major'
  27832. - shlibpath_var=LD_LIBRARY_PATH
  27833. - ;;
  27834. +if test "$GCC" = yes; then
  27835. + lt_prog_compiler_no_builtin_flag=' -fno-builtin'
  27836. -*)
  27837. - dynamic_linker=no
  27838. - ;;
  27839. -esac
  27840. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  27841. -echo "${ECHO_T}$dynamic_linker" >&6
  27842. -test "$dynamic_linker" = no && can_build_shared=no
  27843. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  27844. +$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  27845. +if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then :
  27846. + $as_echo_n "(cached) " >&6
  27847. +else
  27848. + lt_cv_prog_compiler_rtti_exceptions=no
  27849. + ac_outfile=conftest.$ac_objext
  27850. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  27851. + lt_compiler_flag="-fno-rtti -fno-exceptions"
  27852. + # Insert the option either (1) after the last *FLAGS variable, or
  27853. + # (2) before a word containing "conftest.", or (3) at the end.
  27854. + # Note that $ac_compile itself does not contain backslashes and begins
  27855. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  27856. + # The option is referenced via a variable to avoid confusing sed.
  27857. + lt_compile=`echo "$ac_compile" | $SED \
  27858. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  27859. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  27860. + -e 's:$: $lt_compiler_flag:'`
  27861. + (eval echo "\"\$as_me:7265: $lt_compile\"" >&5)
  27862. + (eval "$lt_compile" 2>conftest.err)
  27863. + ac_status=$?
  27864. + cat conftest.err >&5
  27865. + echo "$as_me:7269: \$? = $ac_status" >&5
  27866. + if (exit $ac_status) && test -s "$ac_outfile"; then
  27867. + # The compiler can only warn and ignore the option if not recognized
  27868. + # So say no if there are warnings other than the usual output.
  27869. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  27870. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  27871. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  27872. + lt_cv_prog_compiler_rtti_exceptions=yes
  27873. + fi
  27874. + fi
  27875. + $RM conftest*
  27876. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  27877. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  27878. -hardcode_action=
  27879. -if test -n "$hardcode_libdir_flag_spec" || \
  27880. - test -n "$runpath_var" || \
  27881. - test "X$hardcode_automatic" = "Xyes" ; then
  27882. +fi
  27883. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  27884. +$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  27885. - # We can hardcode non-existant directories.
  27886. - if test "$hardcode_direct" != no &&
  27887. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  27888. - # have to relink, otherwise we might link with an installed library
  27889. - # when we should be linking with a yet-to-be-installed one
  27890. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no &&
  27891. - test "$hardcode_minus_L" != no; then
  27892. - # Linking always hardcodes the temporary library directory.
  27893. - hardcode_action=relink
  27894. - else
  27895. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  27896. - hardcode_action=immediate
  27897. - fi
  27898. +if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  27899. + lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  27900. else
  27901. - # We cannot hardcode anything, or else we can only hardcode existing
  27902. - # directories.
  27903. - hardcode_action=unsupported
  27904. + :
  27905. fi
  27906. -echo "$as_me:$LINENO: result: $hardcode_action" >&5
  27907. -echo "${ECHO_T}$hardcode_action" >&6
  27908. -if test "$hardcode_action" = relink; then
  27909. - # Fast installation is not supported
  27910. - enable_fast_install=no
  27911. -elif test "$shlibpath_overrides_runpath" = yes ||
  27912. - test "$enable_shared" = no; then
  27913. - # Fast installation is not necessary
  27914. - enable_fast_install=needless
  27915. fi
  27916. -striplib=
  27917. -old_striplib=
  27918. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  27919. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  27920. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  27921. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  27922. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  27923. - echo "$as_me:$LINENO: result: yes" >&5
  27924. -echo "${ECHO_T}yes" >&6
  27925. -else
  27926. -# FIXME - insert some real tests, host_os isn't really good enough
  27927. - case $host_os in
  27928. - darwin*)
  27929. - if test -n "$STRIP" ; then
  27930. - striplib="$STRIP -x"
  27931. - echo "$as_me:$LINENO: result: yes" >&5
  27932. -echo "${ECHO_T}yes" >&6
  27933. - else
  27934. - echo "$as_me:$LINENO: result: no" >&5
  27935. -echo "${ECHO_T}no" >&6
  27936. -fi
  27937. - ;;
  27938. - *)
  27939. - echo "$as_me:$LINENO: result: no" >&5
  27940. -echo "${ECHO_T}no" >&6
  27941. - ;;
  27942. - esac
  27943. -fi
  27944. -if test "x$enable_dlopen" != xyes; then
  27945. - enable_dlopen=unknown
  27946. - enable_dlopen_self=unknown
  27947. - enable_dlopen_self_static=unknown
  27948. -else
  27949. - lt_cv_dlopen=no
  27950. - lt_cv_dlopen_libs=
  27951. - case $host_os in
  27952. - beos*)
  27953. - lt_cv_dlopen="load_add_on"
  27954. - lt_cv_dlopen_libs=
  27955. - lt_cv_dlopen_self=yes
  27956. - ;;
  27957. - mingw* | pw32*)
  27958. - lt_cv_dlopen="LoadLibrary"
  27959. - lt_cv_dlopen_libs=
  27960. - ;;
  27961. - cygwin*)
  27962. - lt_cv_dlopen="dlopen"
  27963. - lt_cv_dlopen_libs=
  27964. - ;;
  27965. - darwin*)
  27966. - # if libdl is installed we need to link against it
  27967. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  27968. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  27969. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  27970. - echo $ECHO_N "(cached) $ECHO_C" >&6
  27971. -else
  27972. - ac_check_lib_save_LIBS=$LIBS
  27973. -LIBS="-ldl $LIBS"
  27974. -cat >conftest.$ac_ext <<_ACEOF
  27975. -/* confdefs.h. */
  27976. -_ACEOF
  27977. -cat confdefs.h >>conftest.$ac_ext
  27978. -cat >>conftest.$ac_ext <<_ACEOF
  27979. -/* end confdefs.h. */
  27980. + lt_prog_compiler_wl=
  27981. +lt_prog_compiler_pic=
  27982. +lt_prog_compiler_static=
  27983. -/* Override any gcc2 internal prototype to avoid an error. */
  27984. -#ifdef __cplusplus
  27985. -extern "C"
  27986. -#endif
  27987. -/* We use char because int might match the return type of a gcc2
  27988. - builtin and then its argument prototype would still apply. */
  27989. -char dlopen ();
  27990. -int
  27991. -main ()
  27992. -{
  27993. -dlopen ();
  27994. - ;
  27995. - return 0;
  27996. -}
  27997. -_ACEOF
  27998. -rm -f conftest.$ac_objext conftest$ac_exeext
  27999. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28000. - (eval $ac_link) 2>conftest.er1
  28001. - ac_status=$?
  28002. - grep -v '^ *+' conftest.er1 >conftest.err
  28003. - rm -f conftest.er1
  28004. - cat conftest.err >&5
  28005. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28006. - (exit $ac_status); } &&
  28007. - { ac_try='test -z "$ac_c_werror_flag"
  28008. - || test ! -s conftest.err'
  28009. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28010. - (eval $ac_try) 2>&5
  28011. - ac_status=$?
  28012. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28013. - (exit $ac_status); }; } &&
  28014. - { ac_try='test -s conftest$ac_exeext'
  28015. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28016. - (eval $ac_try) 2>&5
  28017. - ac_status=$?
  28018. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28019. - (exit $ac_status); }; }; then
  28020. - ac_cv_lib_dl_dlopen=yes
  28021. -else
  28022. - echo "$as_me: failed program was:" >&5
  28023. -sed 's/^/| /' conftest.$ac_ext >&5
  28024. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  28025. +$as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  28026. -ac_cv_lib_dl_dlopen=no
  28027. -fi
  28028. -rm -f conftest.err conftest.$ac_objext \
  28029. - conftest$ac_exeext conftest.$ac_ext
  28030. -LIBS=$ac_check_lib_save_LIBS
  28031. -fi
  28032. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  28033. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  28034. -if test $ac_cv_lib_dl_dlopen = yes; then
  28035. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  28036. -else
  28037. + if test "$GCC" = yes; then
  28038. + lt_prog_compiler_wl='-Wl,'
  28039. + lt_prog_compiler_static='-static'
  28040. - lt_cv_dlopen="dyld"
  28041. - lt_cv_dlopen_libs=
  28042. - lt_cv_dlopen_self=yes
  28043. + case $host_os in
  28044. + aix*)
  28045. + # All AIX code is PIC.
  28046. + if test "$host_cpu" = ia64; then
  28047. + # AIX 5 now supports IA64 processor
  28048. + lt_prog_compiler_static='-Bstatic'
  28049. + fi
  28050. + ;;
  28051. -fi
  28052. + amigaos*)
  28053. + case $host_cpu in
  28054. + powerpc)
  28055. + # see comment about AmigaOS4 .so support
  28056. + lt_prog_compiler_pic='-fPIC'
  28057. + ;;
  28058. + m68k)
  28059. + # FIXME: we need at least 68020 code to build shared libraries, but
  28060. + # adding the `-m68020' flag to GCC prevents building anything better,
  28061. + # like `-m68040'.
  28062. + lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  28063. + ;;
  28064. + esac
  28065. + ;;
  28066. - ;;
  28067. + beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  28068. + # PIC is the default for these OSes.
  28069. + ;;
  28070. - *)
  28071. - echo "$as_me:$LINENO: checking for shl_load" >&5
  28072. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  28073. -if test "${ac_cv_func_shl_load+set}" = set; then
  28074. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28075. -else
  28076. - cat >conftest.$ac_ext <<_ACEOF
  28077. -/* confdefs.h. */
  28078. -_ACEOF
  28079. -cat confdefs.h >>conftest.$ac_ext
  28080. -cat >>conftest.$ac_ext <<_ACEOF
  28081. -/* end confdefs.h. */
  28082. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  28083. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28084. -#define shl_load innocuous_shl_load
  28085. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  28086. + # This hack is so that the source file can tell whether it is being
  28087. + # built for inclusion in a dll (and should export symbols for example).
  28088. + # Although the cygwin gcc ignores -fPIC, still need this for old-style
  28089. + # (--disable-auto-import) libraries
  28090. + lt_prog_compiler_pic='-DDLL_EXPORT'
  28091. + ;;
  28092. -/* System header to define __stub macros and hopefully few prototypes,
  28093. - which can conflict with char shl_load (); below.
  28094. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28095. - <limits.h> exists even on freestanding compilers. */
  28096. + darwin* | rhapsody*)
  28097. + # PIC is the default on this platform
  28098. + # Common symbols not allowed in MH_DYLIB files
  28099. + lt_prog_compiler_pic='-fno-common'
  28100. + ;;
  28101. -#ifdef __STDC__
  28102. -# include <limits.h>
  28103. -#else
  28104. -# include <assert.h>
  28105. -#endif
  28106. + hpux*)
  28107. + # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  28108. + # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  28109. + # sets the default TLS model and affects inlining.
  28110. + case $host_cpu in
  28111. + hppa*64*)
  28112. + # +Z the default
  28113. + ;;
  28114. + *)
  28115. + lt_prog_compiler_pic='-fPIC'
  28116. + ;;
  28117. + esac
  28118. + ;;
  28119. -#undef shl_load
  28120. + interix[3-9]*)
  28121. + # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  28122. + # Instead, we relocate shared libraries at runtime.
  28123. + ;;
  28124. -/* Override any gcc2 internal prototype to avoid an error. */
  28125. -#ifdef __cplusplus
  28126. -extern "C"
  28127. -{
  28128. -#endif
  28129. -/* We use char because int might match the return type of a gcc2
  28130. - builtin and then its argument prototype would still apply. */
  28131. -char shl_load ();
  28132. -/* The GNU C library defines this for functions which it implements
  28133. - to always fail with ENOSYS. Some functions are actually named
  28134. - something starting with __ and the normal name is an alias. */
  28135. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  28136. -choke me
  28137. -#else
  28138. -char (*f) () = shl_load;
  28139. -#endif
  28140. -#ifdef __cplusplus
  28141. -}
  28142. -#endif
  28143. + msdosdjgpp*)
  28144. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  28145. + # on systems that don't support them.
  28146. + lt_prog_compiler_can_build_shared=no
  28147. + enable_shared=no
  28148. + ;;
  28149. -int
  28150. -main ()
  28151. -{
  28152. -return f != shl_load;
  28153. - ;
  28154. - return 0;
  28155. -}
  28156. -_ACEOF
  28157. -rm -f conftest.$ac_objext conftest$ac_exeext
  28158. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28159. - (eval $ac_link) 2>conftest.er1
  28160. - ac_status=$?
  28161. - grep -v '^ *+' conftest.er1 >conftest.err
  28162. - rm -f conftest.er1
  28163. - cat conftest.err >&5
  28164. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28165. - (exit $ac_status); } &&
  28166. - { ac_try='test -z "$ac_c_werror_flag"
  28167. - || test ! -s conftest.err'
  28168. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28169. - (eval $ac_try) 2>&5
  28170. - ac_status=$?
  28171. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28172. - (exit $ac_status); }; } &&
  28173. - { ac_try='test -s conftest$ac_exeext'
  28174. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28175. - (eval $ac_try) 2>&5
  28176. - ac_status=$?
  28177. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28178. - (exit $ac_status); }; }; then
  28179. - ac_cv_func_shl_load=yes
  28180. -else
  28181. - echo "$as_me: failed program was:" >&5
  28182. -sed 's/^/| /' conftest.$ac_ext >&5
  28183. + *nto* | *qnx*)
  28184. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  28185. + # it will coredump.
  28186. + lt_prog_compiler_pic='-fPIC -shared'
  28187. + ;;
  28188. -ac_cv_func_shl_load=no
  28189. -fi
  28190. -rm -f conftest.err conftest.$ac_objext \
  28191. - conftest$ac_exeext conftest.$ac_ext
  28192. -fi
  28193. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  28194. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  28195. -if test $ac_cv_func_shl_load = yes; then
  28196. - lt_cv_dlopen="shl_load"
  28197. -else
  28198. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  28199. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  28200. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  28201. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28202. -else
  28203. - ac_check_lib_save_LIBS=$LIBS
  28204. -LIBS="-ldld $LIBS"
  28205. -cat >conftest.$ac_ext <<_ACEOF
  28206. -/* confdefs.h. */
  28207. -_ACEOF
  28208. -cat confdefs.h >>conftest.$ac_ext
  28209. -cat >>conftest.$ac_ext <<_ACEOF
  28210. -/* end confdefs.h. */
  28211. -
  28212. -/* Override any gcc2 internal prototype to avoid an error. */
  28213. -#ifdef __cplusplus
  28214. -extern "C"
  28215. -#endif
  28216. -/* We use char because int might match the return type of a gcc2
  28217. - builtin and then its argument prototype would still apply. */
  28218. -char shl_load ();
  28219. -int
  28220. -main ()
  28221. -{
  28222. -shl_load ();
  28223. - ;
  28224. - return 0;
  28225. -}
  28226. -_ACEOF
  28227. -rm -f conftest.$ac_objext conftest$ac_exeext
  28228. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28229. - (eval $ac_link) 2>conftest.er1
  28230. - ac_status=$?
  28231. - grep -v '^ *+' conftest.er1 >conftest.err
  28232. - rm -f conftest.er1
  28233. - cat conftest.err >&5
  28234. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28235. - (exit $ac_status); } &&
  28236. - { ac_try='test -z "$ac_c_werror_flag"
  28237. - || test ! -s conftest.err'
  28238. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28239. - (eval $ac_try) 2>&5
  28240. - ac_status=$?
  28241. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28242. - (exit $ac_status); }; } &&
  28243. - { ac_try='test -s conftest$ac_exeext'
  28244. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28245. - (eval $ac_try) 2>&5
  28246. - ac_status=$?
  28247. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28248. - (exit $ac_status); }; }; then
  28249. - ac_cv_lib_dld_shl_load=yes
  28250. -else
  28251. - echo "$as_me: failed program was:" >&5
  28252. -sed 's/^/| /' conftest.$ac_ext >&5
  28253. -
  28254. -ac_cv_lib_dld_shl_load=no
  28255. -fi
  28256. -rm -f conftest.err conftest.$ac_objext \
  28257. - conftest$ac_exeext conftest.$ac_ext
  28258. -LIBS=$ac_check_lib_save_LIBS
  28259. -fi
  28260. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  28261. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  28262. -if test $ac_cv_lib_dld_shl_load = yes; then
  28263. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  28264. -else
  28265. - echo "$as_me:$LINENO: checking for dlopen" >&5
  28266. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  28267. -if test "${ac_cv_func_dlopen+set}" = set; then
  28268. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28269. -else
  28270. - cat >conftest.$ac_ext <<_ACEOF
  28271. -/* confdefs.h. */
  28272. -_ACEOF
  28273. -cat confdefs.h >>conftest.$ac_ext
  28274. -cat >>conftest.$ac_ext <<_ACEOF
  28275. -/* end confdefs.h. */
  28276. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  28277. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  28278. -#define dlopen innocuous_dlopen
  28279. -
  28280. -/* System header to define __stub macros and hopefully few prototypes,
  28281. - which can conflict with char dlopen (); below.
  28282. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  28283. - <limits.h> exists even on freestanding compilers. */
  28284. -
  28285. -#ifdef __STDC__
  28286. -# include <limits.h>
  28287. -#else
  28288. -# include <assert.h>
  28289. -#endif
  28290. -
  28291. -#undef dlopen
  28292. -
  28293. -/* Override any gcc2 internal prototype to avoid an error. */
  28294. -#ifdef __cplusplus
  28295. -extern "C"
  28296. -{
  28297. -#endif
  28298. -/* We use char because int might match the return type of a gcc2
  28299. - builtin and then its argument prototype would still apply. */
  28300. -char dlopen ();
  28301. -/* The GNU C library defines this for functions which it implements
  28302. - to always fail with ENOSYS. Some functions are actually named
  28303. - something starting with __ and the normal name is an alias. */
  28304. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  28305. -choke me
  28306. -#else
  28307. -char (*f) () = dlopen;
  28308. -#endif
  28309. -#ifdef __cplusplus
  28310. -}
  28311. -#endif
  28312. -
  28313. -int
  28314. -main ()
  28315. -{
  28316. -return f != dlopen;
  28317. - ;
  28318. - return 0;
  28319. -}
  28320. -_ACEOF
  28321. -rm -f conftest.$ac_objext conftest$ac_exeext
  28322. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28323. - (eval $ac_link) 2>conftest.er1
  28324. - ac_status=$?
  28325. - grep -v '^ *+' conftest.er1 >conftest.err
  28326. - rm -f conftest.er1
  28327. - cat conftest.err >&5
  28328. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28329. - (exit $ac_status); } &&
  28330. - { ac_try='test -z "$ac_c_werror_flag"
  28331. - || test ! -s conftest.err'
  28332. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28333. - (eval $ac_try) 2>&5
  28334. - ac_status=$?
  28335. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28336. - (exit $ac_status); }; } &&
  28337. - { ac_try='test -s conftest$ac_exeext'
  28338. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28339. - (eval $ac_try) 2>&5
  28340. - ac_status=$?
  28341. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28342. - (exit $ac_status); }; }; then
  28343. - ac_cv_func_dlopen=yes
  28344. -else
  28345. - echo "$as_me: failed program was:" >&5
  28346. -sed 's/^/| /' conftest.$ac_ext >&5
  28347. -
  28348. -ac_cv_func_dlopen=no
  28349. -fi
  28350. -rm -f conftest.err conftest.$ac_objext \
  28351. - conftest$ac_exeext conftest.$ac_ext
  28352. -fi
  28353. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  28354. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  28355. -if test $ac_cv_func_dlopen = yes; then
  28356. - lt_cv_dlopen="dlopen"
  28357. -else
  28358. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  28359. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  28360. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  28361. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28362. -else
  28363. - ac_check_lib_save_LIBS=$LIBS
  28364. -LIBS="-ldl $LIBS"
  28365. -cat >conftest.$ac_ext <<_ACEOF
  28366. -/* confdefs.h. */
  28367. -_ACEOF
  28368. -cat confdefs.h >>conftest.$ac_ext
  28369. -cat >>conftest.$ac_ext <<_ACEOF
  28370. -/* end confdefs.h. */
  28371. -
  28372. -/* Override any gcc2 internal prototype to avoid an error. */
  28373. -#ifdef __cplusplus
  28374. -extern "C"
  28375. -#endif
  28376. -/* We use char because int might match the return type of a gcc2
  28377. - builtin and then its argument prototype would still apply. */
  28378. -char dlopen ();
  28379. -int
  28380. -main ()
  28381. -{
  28382. -dlopen ();
  28383. - ;
  28384. - return 0;
  28385. -}
  28386. -_ACEOF
  28387. -rm -f conftest.$ac_objext conftest$ac_exeext
  28388. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28389. - (eval $ac_link) 2>conftest.er1
  28390. - ac_status=$?
  28391. - grep -v '^ *+' conftest.er1 >conftest.err
  28392. - rm -f conftest.er1
  28393. - cat conftest.err >&5
  28394. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28395. - (exit $ac_status); } &&
  28396. - { ac_try='test -z "$ac_c_werror_flag"
  28397. - || test ! -s conftest.err'
  28398. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28399. - (eval $ac_try) 2>&5
  28400. - ac_status=$?
  28401. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28402. - (exit $ac_status); }; } &&
  28403. - { ac_try='test -s conftest$ac_exeext'
  28404. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28405. - (eval $ac_try) 2>&5
  28406. - ac_status=$?
  28407. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28408. - (exit $ac_status); }; }; then
  28409. - ac_cv_lib_dl_dlopen=yes
  28410. -else
  28411. - echo "$as_me: failed program was:" >&5
  28412. -sed 's/^/| /' conftest.$ac_ext >&5
  28413. -
  28414. -ac_cv_lib_dl_dlopen=no
  28415. -fi
  28416. -rm -f conftest.err conftest.$ac_objext \
  28417. - conftest$ac_exeext conftest.$ac_ext
  28418. -LIBS=$ac_check_lib_save_LIBS
  28419. -fi
  28420. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  28421. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  28422. -if test $ac_cv_lib_dl_dlopen = yes; then
  28423. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  28424. -else
  28425. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  28426. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  28427. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  28428. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28429. -else
  28430. - ac_check_lib_save_LIBS=$LIBS
  28431. -LIBS="-lsvld $LIBS"
  28432. -cat >conftest.$ac_ext <<_ACEOF
  28433. -/* confdefs.h. */
  28434. -_ACEOF
  28435. -cat confdefs.h >>conftest.$ac_ext
  28436. -cat >>conftest.$ac_ext <<_ACEOF
  28437. -/* end confdefs.h. */
  28438. -
  28439. -/* Override any gcc2 internal prototype to avoid an error. */
  28440. -#ifdef __cplusplus
  28441. -extern "C"
  28442. -#endif
  28443. -/* We use char because int might match the return type of a gcc2
  28444. - builtin and then its argument prototype would still apply. */
  28445. -char dlopen ();
  28446. -int
  28447. -main ()
  28448. -{
  28449. -dlopen ();
  28450. - ;
  28451. - return 0;
  28452. -}
  28453. -_ACEOF
  28454. -rm -f conftest.$ac_objext conftest$ac_exeext
  28455. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28456. - (eval $ac_link) 2>conftest.er1
  28457. - ac_status=$?
  28458. - grep -v '^ *+' conftest.er1 >conftest.err
  28459. - rm -f conftest.er1
  28460. - cat conftest.err >&5
  28461. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28462. - (exit $ac_status); } &&
  28463. - { ac_try='test -z "$ac_c_werror_flag"
  28464. - || test ! -s conftest.err'
  28465. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28466. - (eval $ac_try) 2>&5
  28467. - ac_status=$?
  28468. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28469. - (exit $ac_status); }; } &&
  28470. - { ac_try='test -s conftest$ac_exeext'
  28471. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28472. - (eval $ac_try) 2>&5
  28473. - ac_status=$?
  28474. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28475. - (exit $ac_status); }; }; then
  28476. - ac_cv_lib_svld_dlopen=yes
  28477. -else
  28478. - echo "$as_me: failed program was:" >&5
  28479. -sed 's/^/| /' conftest.$ac_ext >&5
  28480. -
  28481. -ac_cv_lib_svld_dlopen=no
  28482. -fi
  28483. -rm -f conftest.err conftest.$ac_objext \
  28484. - conftest$ac_exeext conftest.$ac_ext
  28485. -LIBS=$ac_check_lib_save_LIBS
  28486. -fi
  28487. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  28488. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  28489. -if test $ac_cv_lib_svld_dlopen = yes; then
  28490. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  28491. -else
  28492. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  28493. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  28494. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  28495. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28496. -else
  28497. - ac_check_lib_save_LIBS=$LIBS
  28498. -LIBS="-ldld $LIBS"
  28499. -cat >conftest.$ac_ext <<_ACEOF
  28500. -/* confdefs.h. */
  28501. -_ACEOF
  28502. -cat confdefs.h >>conftest.$ac_ext
  28503. -cat >>conftest.$ac_ext <<_ACEOF
  28504. -/* end confdefs.h. */
  28505. -
  28506. -/* Override any gcc2 internal prototype to avoid an error. */
  28507. -#ifdef __cplusplus
  28508. -extern "C"
  28509. -#endif
  28510. -/* We use char because int might match the return type of a gcc2
  28511. - builtin and then its argument prototype would still apply. */
  28512. -char dld_link ();
  28513. -int
  28514. -main ()
  28515. -{
  28516. -dld_link ();
  28517. - ;
  28518. - return 0;
  28519. -}
  28520. -_ACEOF
  28521. -rm -f conftest.$ac_objext conftest$ac_exeext
  28522. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28523. - (eval $ac_link) 2>conftest.er1
  28524. - ac_status=$?
  28525. - grep -v '^ *+' conftest.er1 >conftest.err
  28526. - rm -f conftest.er1
  28527. - cat conftest.err >&5
  28528. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28529. - (exit $ac_status); } &&
  28530. - { ac_try='test -z "$ac_c_werror_flag"
  28531. - || test ! -s conftest.err'
  28532. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28533. - (eval $ac_try) 2>&5
  28534. - ac_status=$?
  28535. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28536. - (exit $ac_status); }; } &&
  28537. - { ac_try='test -s conftest$ac_exeext'
  28538. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  28539. - (eval $ac_try) 2>&5
  28540. - ac_status=$?
  28541. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28542. - (exit $ac_status); }; }; then
  28543. - ac_cv_lib_dld_dld_link=yes
  28544. -else
  28545. - echo "$as_me: failed program was:" >&5
  28546. -sed 's/^/| /' conftest.$ac_ext >&5
  28547. -
  28548. -ac_cv_lib_dld_dld_link=no
  28549. -fi
  28550. -rm -f conftest.err conftest.$ac_objext \
  28551. - conftest$ac_exeext conftest.$ac_ext
  28552. -LIBS=$ac_check_lib_save_LIBS
  28553. -fi
  28554. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  28555. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  28556. -if test $ac_cv_lib_dld_dld_link = yes; then
  28557. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  28558. -fi
  28559. -
  28560. -
  28561. -fi
  28562. -
  28563. -
  28564. -fi
  28565. -
  28566. -
  28567. -fi
  28568. -
  28569. -
  28570. -fi
  28571. -
  28572. -
  28573. -fi
  28574. -
  28575. - ;;
  28576. - esac
  28577. -
  28578. - if test "x$lt_cv_dlopen" != xno; then
  28579. - enable_dlopen=yes
  28580. - else
  28581. - enable_dlopen=no
  28582. - fi
  28583. -
  28584. - case $lt_cv_dlopen in
  28585. - dlopen)
  28586. - save_CPPFLAGS="$CPPFLAGS"
  28587. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  28588. -
  28589. - save_LDFLAGS="$LDFLAGS"
  28590. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  28591. -
  28592. - save_LIBS="$LIBS"
  28593. - LIBS="$lt_cv_dlopen_libs $LIBS"
  28594. -
  28595. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  28596. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  28597. -if test "${lt_cv_dlopen_self+set}" = set; then
  28598. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28599. -else
  28600. - if test "$cross_compiling" = yes; then :
  28601. - lt_cv_dlopen_self=cross
  28602. -else
  28603. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  28604. - lt_status=$lt_dlunknown
  28605. - cat > conftest.$ac_ext <<EOF
  28606. -#line 8925 "configure"
  28607. -#include "confdefs.h"
  28608. -
  28609. -#if HAVE_DLFCN_H
  28610. -#include <dlfcn.h>
  28611. -#endif
  28612. -
  28613. -#include <stdio.h>
  28614. -
  28615. -#ifdef RTLD_GLOBAL
  28616. -# define LT_DLGLOBAL RTLD_GLOBAL
  28617. -#else
  28618. -# ifdef DL_GLOBAL
  28619. -# define LT_DLGLOBAL DL_GLOBAL
  28620. -# else
  28621. -# define LT_DLGLOBAL 0
  28622. -# endif
  28623. -#endif
  28624. -
  28625. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  28626. - find out it does not work in some platform. */
  28627. -#ifndef LT_DLLAZY_OR_NOW
  28628. -# ifdef RTLD_LAZY
  28629. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  28630. -# else
  28631. -# ifdef DL_LAZY
  28632. -# define LT_DLLAZY_OR_NOW DL_LAZY
  28633. -# else
  28634. -# ifdef RTLD_NOW
  28635. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  28636. -# else
  28637. -# ifdef DL_NOW
  28638. -# define LT_DLLAZY_OR_NOW DL_NOW
  28639. -# else
  28640. -# define LT_DLLAZY_OR_NOW 0
  28641. -# endif
  28642. -# endif
  28643. -# endif
  28644. -# endif
  28645. -#endif
  28646. -
  28647. -#ifdef __cplusplus
  28648. -extern "C" void exit (int);
  28649. -#endif
  28650. -
  28651. -void fnord() { int i=42;}
  28652. -int main ()
  28653. -{
  28654. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  28655. - int status = $lt_dlunknown;
  28656. -
  28657. - if (self)
  28658. - {
  28659. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  28660. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  28661. - /* dlclose (self); */
  28662. - }
  28663. -
  28664. - exit (status);
  28665. -}
  28666. -EOF
  28667. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28668. - (eval $ac_link) 2>&5
  28669. - ac_status=$?
  28670. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28671. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  28672. - (./conftest; exit; ) 2>/dev/null
  28673. - lt_status=$?
  28674. - case x$lt_status in
  28675. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  28676. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  28677. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  28678. - esac
  28679. - else :
  28680. - # compilation failed
  28681. - lt_cv_dlopen_self=no
  28682. - fi
  28683. -fi
  28684. -rm -fr conftest*
  28685. -
  28686. -
  28687. -fi
  28688. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  28689. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  28690. -
  28691. - if test "x$lt_cv_dlopen_self" = xyes; then
  28692. - LDFLAGS="$LDFLAGS $link_static_flag"
  28693. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  28694. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  28695. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  28696. - echo $ECHO_N "(cached) $ECHO_C" >&6
  28697. -else
  28698. - if test "$cross_compiling" = yes; then :
  28699. - lt_cv_dlopen_self_static=cross
  28700. -else
  28701. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  28702. - lt_status=$lt_dlunknown
  28703. - cat > conftest.$ac_ext <<EOF
  28704. -#line 9023 "configure"
  28705. -#include "confdefs.h"
  28706. -
  28707. -#if HAVE_DLFCN_H
  28708. -#include <dlfcn.h>
  28709. -#endif
  28710. -
  28711. -#include <stdio.h>
  28712. -
  28713. -#ifdef RTLD_GLOBAL
  28714. -# define LT_DLGLOBAL RTLD_GLOBAL
  28715. -#else
  28716. -# ifdef DL_GLOBAL
  28717. -# define LT_DLGLOBAL DL_GLOBAL
  28718. -# else
  28719. -# define LT_DLGLOBAL 0
  28720. -# endif
  28721. -#endif
  28722. -
  28723. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  28724. - find out it does not work in some platform. */
  28725. -#ifndef LT_DLLAZY_OR_NOW
  28726. -# ifdef RTLD_LAZY
  28727. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  28728. -# else
  28729. -# ifdef DL_LAZY
  28730. -# define LT_DLLAZY_OR_NOW DL_LAZY
  28731. -# else
  28732. -# ifdef RTLD_NOW
  28733. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  28734. -# else
  28735. -# ifdef DL_NOW
  28736. -# define LT_DLLAZY_OR_NOW DL_NOW
  28737. -# else
  28738. -# define LT_DLLAZY_OR_NOW 0
  28739. -# endif
  28740. -# endif
  28741. -# endif
  28742. -# endif
  28743. -#endif
  28744. -
  28745. -#ifdef __cplusplus
  28746. -extern "C" void exit (int);
  28747. -#endif
  28748. -
  28749. -void fnord() { int i=42;}
  28750. -int main ()
  28751. -{
  28752. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  28753. - int status = $lt_dlunknown;
  28754. -
  28755. - if (self)
  28756. - {
  28757. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  28758. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  28759. - /* dlclose (self); */
  28760. - }
  28761. -
  28762. - exit (status);
  28763. -}
  28764. -EOF
  28765. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  28766. - (eval $ac_link) 2>&5
  28767. - ac_status=$?
  28768. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  28769. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  28770. - (./conftest; exit; ) 2>/dev/null
  28771. - lt_status=$?
  28772. - case x$lt_status in
  28773. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  28774. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  28775. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  28776. - esac
  28777. - else :
  28778. - # compilation failed
  28779. - lt_cv_dlopen_self_static=no
  28780. - fi
  28781. -fi
  28782. -rm -fr conftest*
  28783. -
  28784. -
  28785. -fi
  28786. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  28787. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  28788. - fi
  28789. -
  28790. - CPPFLAGS="$save_CPPFLAGS"
  28791. - LDFLAGS="$save_LDFLAGS"
  28792. - LIBS="$save_LIBS"
  28793. - ;;
  28794. - esac
  28795. -
  28796. - case $lt_cv_dlopen_self in
  28797. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  28798. - *) enable_dlopen_self=unknown ;;
  28799. - esac
  28800. -
  28801. - case $lt_cv_dlopen_self_static in
  28802. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  28803. - *) enable_dlopen_self_static=unknown ;;
  28804. - esac
  28805. -fi
  28806. -
  28807. -
  28808. -# Report which librarie types wil actually be built
  28809. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  28810. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  28811. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  28812. -echo "${ECHO_T}$can_build_shared" >&6
  28813. -
  28814. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  28815. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  28816. -test "$can_build_shared" = "no" && enable_shared=no
  28817. -
  28818. -# On AIX, shared libraries and static libraries use the same namespace, and
  28819. -# are all built from PIC.
  28820. -case "$host_os" in
  28821. -aix3*)
  28822. - test "$enable_shared" = yes && enable_static=no
  28823. - if test -n "$RANLIB"; then
  28824. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  28825. - postinstall_cmds='$RANLIB $lib'
  28826. - fi
  28827. - ;;
  28828. -
  28829. -aix4* | aix5*)
  28830. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  28831. - test "$enable_shared" = yes && enable_static=no
  28832. - fi
  28833. - ;;
  28834. -esac
  28835. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  28836. -echo "${ECHO_T}$enable_shared" >&6
  28837. -
  28838. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  28839. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  28840. -# Make sure either enable_shared or enable_static is yes.
  28841. -test "$enable_shared" = yes || enable_static=yes
  28842. -echo "$as_me:$LINENO: result: $enable_static" >&5
  28843. -echo "${ECHO_T}$enable_static" >&6
  28844. -
  28845. -# The else clause should only fire when bootstrapping the
  28846. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  28847. -# with your package, and you will get complaints that there are
  28848. -# no rules to generate ltmain.sh.
  28849. -if test -f "$ltmain"; then
  28850. - # See if we are running on zsh, and set the options which allow our commands through
  28851. - # without removal of \ escapes.
  28852. - if test -n "${ZSH_VERSION+set}" ; then
  28853. - setopt NO_GLOB_SUBST
  28854. - fi
  28855. - # Now quote all the things that may contain metacharacters while being
  28856. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  28857. - # variables and quote the copies for generation of the libtool script.
  28858. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  28859. - SED SHELL STRIP \
  28860. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  28861. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  28862. - deplibs_check_method reload_flag reload_cmds need_locks \
  28863. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  28864. - lt_cv_sys_global_symbol_to_c_name_address \
  28865. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  28866. - old_postinstall_cmds old_postuninstall_cmds \
  28867. - compiler \
  28868. - CC \
  28869. - LD \
  28870. - lt_prog_compiler_wl \
  28871. - lt_prog_compiler_pic \
  28872. - lt_prog_compiler_static \
  28873. - lt_prog_compiler_no_builtin_flag \
  28874. - export_dynamic_flag_spec \
  28875. - thread_safe_flag_spec \
  28876. - whole_archive_flag_spec \
  28877. - enable_shared_with_static_runtimes \
  28878. - old_archive_cmds \
  28879. - old_archive_from_new_cmds \
  28880. - predep_objects \
  28881. - postdep_objects \
  28882. - predeps \
  28883. - postdeps \
  28884. - compiler_lib_search_path \
  28885. - archive_cmds \
  28886. - archive_expsym_cmds \
  28887. - postinstall_cmds \
  28888. - postuninstall_cmds \
  28889. - old_archive_from_expsyms_cmds \
  28890. - allow_undefined_flag \
  28891. - no_undefined_flag \
  28892. - export_symbols_cmds \
  28893. - hardcode_libdir_flag_spec \
  28894. - hardcode_libdir_flag_spec_ld \
  28895. - hardcode_libdir_separator \
  28896. - hardcode_automatic \
  28897. - module_cmds \
  28898. - module_expsym_cmds \
  28899. - lt_cv_prog_compiler_c_o \
  28900. - exclude_expsyms \
  28901. - include_expsyms; do
  28902. -
  28903. - case $var in
  28904. - old_archive_cmds | \
  28905. - old_archive_from_new_cmds | \
  28906. - archive_cmds | \
  28907. - archive_expsym_cmds | \
  28908. - module_cmds | \
  28909. - module_expsym_cmds | \
  28910. - old_archive_from_expsyms_cmds | \
  28911. - export_symbols_cmds | \
  28912. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  28913. - postinstall_cmds | postuninstall_cmds | \
  28914. - old_postinstall_cmds | old_postuninstall_cmds | \
  28915. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  28916. - # Double-quote double-evaled strings.
  28917. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  28918. - ;;
  28919. - *)
  28920. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  28921. - ;;
  28922. - esac
  28923. - done
  28924. -
  28925. - case $lt_echo in
  28926. - *'\$0 --fallback-echo"')
  28927. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  28928. - ;;
  28929. - esac
  28930. -
  28931. -cfgfile="${ofile}T"
  28932. - trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  28933. - $rm -f "$cfgfile"
  28934. - { echo "$as_me:$LINENO: creating $ofile" >&5
  28935. -echo "$as_me: creating $ofile" >&6;}
  28936. -
  28937. - cat <<__EOF__ >> "$cfgfile"
  28938. -#! $SHELL
  28939. -
  28940. -# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  28941. -# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  28942. -# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  28943. -#
  28944. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  28945. -# Free Software Foundation, Inc.
  28946. -#
  28947. -# This file is part of GNU Libtool:
  28948. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  28949. -#
  28950. -# This program is free software; you can redistribute it and/or modify
  28951. -# it under the terms of the GNU General Public License as published by
  28952. -# the Free Software Foundation; either version 2 of the License, or
  28953. -# (at your option) any later version.
  28954. -#
  28955. -# This program is distributed in the hope that it will be useful, but
  28956. -# WITHOUT ANY WARRANTY; without even the implied warranty of
  28957. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  28958. -# General Public License for more details.
  28959. -#
  28960. -# You should have received a copy of the GNU General Public License
  28961. -# along with this program; if not, write to the Free Software
  28962. -# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  28963. -#
  28964. -# As a special exception to the GNU General Public License, if you
  28965. -# distribute this file as part of a program that contains a
  28966. -# configuration script generated by Autoconf, you may include it under
  28967. -# the same distribution terms that you use for the rest of that program.
  28968. -
  28969. -# A sed program that does not truncate output.
  28970. -SED=$lt_SED
  28971. -
  28972. -# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  28973. -Xsed="$SED -e 1s/^X//"
  28974. -
  28975. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  28976. -# if CDPATH is set.
  28977. -(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  28978. -
  28979. -# The names of the tagged configurations supported by this script.
  28980. -available_tags=
  28981. -
  28982. -# ### BEGIN LIBTOOL CONFIG
  28983. -
  28984. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  28985. -
  28986. -# Shell to use when invoking shell scripts.
  28987. -SHELL=$lt_SHELL
  28988. -
  28989. -# Whether or not to build shared libraries.
  28990. -build_libtool_libs=$enable_shared
  28991. -
  28992. -# Whether or not to build static libraries.
  28993. -build_old_libs=$enable_static
  28994. -
  28995. -# Whether or not to add -lc for building shared libraries.
  28996. -build_libtool_need_lc=$archive_cmds_need_lc
  28997. -
  28998. -# Whether or not to disallow shared libs when runtime libs are static
  28999. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  29000. -
  29001. -# Whether or not to optimize for fast installation.
  29002. -fast_install=$enable_fast_install
  29003. -
  29004. -# The host system.
  29005. -host_alias=$host_alias
  29006. -host=$host
  29007. -host_os=$host_os
  29008. -
  29009. -# The build system.
  29010. -build_alias=$build_alias
  29011. -build=$build
  29012. -build_os=$build_os
  29013. -
  29014. -# An echo program that does not interpret backslashes.
  29015. -echo=$lt_echo
  29016. -
  29017. -# The archiver.
  29018. -AR=$lt_AR
  29019. -AR_FLAGS=$lt_AR_FLAGS
  29020. -
  29021. -# A C compiler.
  29022. -LTCC=$lt_LTCC
  29023. -
  29024. -# A language-specific compiler.
  29025. -CC=$lt_compiler
  29026. -
  29027. -# Is the compiler the GNU C compiler?
  29028. -with_gcc=$GCC
  29029. -
  29030. -# An ERE matcher.
  29031. -EGREP=$lt_EGREP
  29032. -
  29033. -# The linker used to build libraries.
  29034. -LD=$lt_LD
  29035. -
  29036. -# Whether we need hard or soft links.
  29037. -LN_S=$lt_LN_S
  29038. -
  29039. -# A BSD-compatible nm program.
  29040. -NM=$lt_NM
  29041. -
  29042. -# A symbol stripping program
  29043. -STRIP=$lt_STRIP
  29044. -
  29045. -# Used to examine libraries when file_magic_cmd begins "file"
  29046. -MAGIC_CMD=$MAGIC_CMD
  29047. -
  29048. -# Used on cygwin: DLL creation program.
  29049. -DLLTOOL="$DLLTOOL"
  29050. -
  29051. -# Used on cygwin: object dumper.
  29052. -OBJDUMP="$OBJDUMP"
  29053. -
  29054. -# Used on cygwin: assembler.
  29055. -AS="$AS"
  29056. -
  29057. -# The name of the directory that contains temporary libtool files.
  29058. -objdir=$objdir
  29059. -
  29060. -# How to create reloadable object files.
  29061. -reload_flag=$lt_reload_flag
  29062. -reload_cmds=$lt_reload_cmds
  29063. -
  29064. -# How to pass a linker flag through the compiler.
  29065. -wl=$lt_lt_prog_compiler_wl
  29066. -
  29067. -# Object file suffix (normally "o").
  29068. -objext="$ac_objext"
  29069. -
  29070. -# Old archive suffix (normally "a").
  29071. -libext="$libext"
  29072. -
  29073. -# Shared library suffix (normally ".so").
  29074. -shrext_cmds='$shrext_cmds'
  29075. -
  29076. -# Executable file suffix (normally "").
  29077. -exeext="$exeext"
  29078. -
  29079. -# Additional compiler flags for building library objects.
  29080. -pic_flag=$lt_lt_prog_compiler_pic
  29081. -pic_mode=$pic_mode
  29082. -
  29083. -# What is the maximum length of a command?
  29084. -max_cmd_len=$lt_cv_sys_max_cmd_len
  29085. -
  29086. -# Does compiler simultaneously support -c and -o options?
  29087. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  29088. -
  29089. -# Must we lock files when doing compilation?
  29090. -need_locks=$lt_need_locks
  29091. -
  29092. -# Do we need the lib prefix for modules?
  29093. -need_lib_prefix=$need_lib_prefix
  29094. -
  29095. -# Do we need a version for libraries?
  29096. -need_version=$need_version
  29097. -
  29098. -# Whether dlopen is supported.
  29099. -dlopen_support=$enable_dlopen
  29100. -
  29101. -# Whether dlopen of programs is supported.
  29102. -dlopen_self=$enable_dlopen_self
  29103. -
  29104. -# Whether dlopen of statically linked programs is supported.
  29105. -dlopen_self_static=$enable_dlopen_self_static
  29106. -
  29107. -# Compiler flag to prevent dynamic linking.
  29108. -link_static_flag=$lt_lt_prog_compiler_static
  29109. -
  29110. -# Compiler flag to turn off builtin functions.
  29111. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  29112. -
  29113. -# Compiler flag to allow reflexive dlopens.
  29114. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  29115. -
  29116. -# Compiler flag to generate shared objects directly from archives.
  29117. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  29118. -
  29119. -# Compiler flag to generate thread-safe objects.
  29120. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  29121. -
  29122. -# Library versioning type.
  29123. -version_type=$version_type
  29124. -
  29125. -# Format of library name prefix.
  29126. -libname_spec=$lt_libname_spec
  29127. -
  29128. -# List of archive names. First name is the real one, the rest are links.
  29129. -# The last name is the one that the linker finds with -lNAME.
  29130. -library_names_spec=$lt_library_names_spec
  29131. -
  29132. -# The coded name of the library, if different from the real name.
  29133. -soname_spec=$lt_soname_spec
  29134. -
  29135. -# Commands used to build and install an old-style archive.
  29136. -RANLIB=$lt_RANLIB
  29137. -old_archive_cmds=$lt_old_archive_cmds
  29138. -old_postinstall_cmds=$lt_old_postinstall_cmds
  29139. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  29140. -
  29141. -# Create an old-style archive from a shared archive.
  29142. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  29143. -
  29144. -# Create a temporary old-style archive to link instead of a shared archive.
  29145. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  29146. -
  29147. -# Commands used to build and install a shared archive.
  29148. -archive_cmds=$lt_archive_cmds
  29149. -archive_expsym_cmds=$lt_archive_expsym_cmds
  29150. -postinstall_cmds=$lt_postinstall_cmds
  29151. -postuninstall_cmds=$lt_postuninstall_cmds
  29152. -
  29153. -# Commands used to build a loadable module (assumed same as above if empty)
  29154. -module_cmds=$lt_module_cmds
  29155. -module_expsym_cmds=$lt_module_expsym_cmds
  29156. -
  29157. -# Commands to strip libraries.
  29158. -old_striplib=$lt_old_striplib
  29159. -striplib=$lt_striplib
  29160. -
  29161. -# Dependencies to place before the objects being linked to create a
  29162. -# shared library.
  29163. -predep_objects=$lt_predep_objects
  29164. -
  29165. -# Dependencies to place after the objects being linked to create a
  29166. -# shared library.
  29167. -postdep_objects=$lt_postdep_objects
  29168. -
  29169. -# Dependencies to place before the objects being linked to create a
  29170. -# shared library.
  29171. -predeps=$lt_predeps
  29172. -
  29173. -# Dependencies to place after the objects being linked to create a
  29174. -# shared library.
  29175. -postdeps=$lt_postdeps
  29176. -
  29177. -# The library search path used internally by the compiler when linking
  29178. -# a shared library.
  29179. -compiler_lib_search_path=$lt_compiler_lib_search_path
  29180. -
  29181. -# Method to check whether dependent libraries are shared objects.
  29182. -deplibs_check_method=$lt_deplibs_check_method
  29183. -
  29184. -# Command to use when deplibs_check_method == file_magic.
  29185. -file_magic_cmd=$lt_file_magic_cmd
  29186. -
  29187. -# Flag that allows shared libraries with undefined symbols to be built.
  29188. -allow_undefined_flag=$lt_allow_undefined_flag
  29189. -
  29190. -# Flag that forces no undefined symbols.
  29191. -no_undefined_flag=$lt_no_undefined_flag
  29192. -
  29193. -# Commands used to finish a libtool library installation in a directory.
  29194. -finish_cmds=$lt_finish_cmds
  29195. -
  29196. -# Same as above, but a single script fragment to be evaled but not shown.
  29197. -finish_eval=$lt_finish_eval
  29198. -
  29199. -# Take the output of nm and produce a listing of raw symbols and C names.
  29200. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  29201. -
  29202. -# Transform the output of nm in a proper C declaration
  29203. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  29204. -
  29205. -# Transform the output of nm in a C name address pair
  29206. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  29207. -
  29208. -# This is the shared library runtime path variable.
  29209. -runpath_var=$runpath_var
  29210. -
  29211. -# This is the shared library path variable.
  29212. -shlibpath_var=$shlibpath_var
  29213. -
  29214. -# Is shlibpath searched before the hard-coded library search path?
  29215. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  29216. -
  29217. -# How to hardcode a shared library path into an executable.
  29218. -hardcode_action=$hardcode_action
  29219. -
  29220. -# Whether we should hardcode library paths into libraries.
  29221. -hardcode_into_libs=$hardcode_into_libs
  29222. -
  29223. -# Flag to hardcode \$libdir into a binary during linking.
  29224. -# This must work even if \$libdir does not exist.
  29225. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  29226. -
  29227. -# If ld is used when linking, flag to hardcode \$libdir into
  29228. -# a binary during linking. This must work even if \$libdir does
  29229. -# not exist.
  29230. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  29231. -
  29232. -# Whether we need a single -rpath flag with a separated argument.
  29233. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  29234. -
  29235. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  29236. -# resulting binary.
  29237. -hardcode_direct=$hardcode_direct
  29238. -
  29239. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  29240. -# resulting binary.
  29241. -hardcode_minus_L=$hardcode_minus_L
  29242. -
  29243. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  29244. -# the resulting binary.
  29245. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  29246. -
  29247. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  29248. -# and all subsequent libraries and executables linked against it.
  29249. -hardcode_automatic=$hardcode_automatic
  29250. -
  29251. -# Variables whose values should be saved in libtool wrapper scripts and
  29252. -# restored at relink time.
  29253. -variables_saved_for_relink="$variables_saved_for_relink"
  29254. -
  29255. -# Whether libtool must link a program against all its dependency libraries.
  29256. -link_all_deplibs=$link_all_deplibs
  29257. -
  29258. -# Compile-time system search path for libraries
  29259. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  29260. -
  29261. -# Run-time system search path for libraries
  29262. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  29263. -
  29264. -# Fix the shell variable \$srcfile for the compiler.
  29265. -fix_srcfile_path="$fix_srcfile_path"
  29266. -
  29267. -# Set to yes if exported symbols are required.
  29268. -always_export_symbols=$always_export_symbols
  29269. -
  29270. -# The commands to list exported symbols.
  29271. -export_symbols_cmds=$lt_export_symbols_cmds
  29272. -
  29273. -# The commands to extract the exported symbol list from a shared archive.
  29274. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  29275. -
  29276. -# Symbols that should not be listed in the preloaded symbols.
  29277. -exclude_expsyms=$lt_exclude_expsyms
  29278. -
  29279. -# Symbols that must always be exported.
  29280. -include_expsyms=$lt_include_expsyms
  29281. -
  29282. -# ### END LIBTOOL CONFIG
  29283. -
  29284. -__EOF__
  29285. -
  29286. -
  29287. - case $host_os in
  29288. - aix3*)
  29289. - cat <<\EOF >> "$cfgfile"
  29290. -
  29291. -# AIX sometimes has problems with the GCC collect2 program. For some
  29292. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  29293. -# vanish in a puff of smoke.
  29294. -if test "X${COLLECT_NAMES+set}" != Xset; then
  29295. - COLLECT_NAMES=
  29296. - export COLLECT_NAMES
  29297. -fi
  29298. -EOF
  29299. - ;;
  29300. - esac
  29301. -
  29302. - # We use sed instead of cat because bash on DJGPP gets confused if
  29303. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  29304. - # text mode, it properly converts lines to CR/LF. This bash problem
  29305. - # is reportedly fixed, but why not run on old versions too?
  29306. - sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  29307. -
  29308. - mv -f "$cfgfile" "$ofile" || \
  29309. - (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  29310. - chmod +x "$ofile"
  29311. -
  29312. -else
  29313. - # If there is no Makefile yet, we rely on a make rule to execute
  29314. - # `config.status --recheck' to rerun these tests and create the
  29315. - # libtool script then.
  29316. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  29317. - if test -f "$ltmain_in"; then
  29318. - test -f Makefile && make "$ltmain"
  29319. - fi
  29320. -fi
  29321. -
  29322. -
  29323. -ac_ext=c
  29324. -ac_cpp='$CPP $CPPFLAGS'
  29325. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29326. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29327. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  29328. -
  29329. -CC="$lt_save_CC"
  29330. -
  29331. -
  29332. -# Check whether --with-tags or --without-tags was given.
  29333. -if test "${with_tags+set}" = set; then
  29334. - withval="$with_tags"
  29335. - tagnames="$withval"
  29336. -fi;
  29337. -
  29338. -if test -f "$ltmain" && test -n "$tagnames"; then
  29339. - if test ! -f "${ofile}"; then
  29340. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5
  29341. -echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;}
  29342. - fi
  29343. -
  29344. - if test -z "$LTCC"; then
  29345. - eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  29346. - if test -z "$LTCC"; then
  29347. - { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5
  29348. -echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;}
  29349. - else
  29350. - { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5
  29351. -echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;}
  29352. - fi
  29353. - fi
  29354. -
  29355. - # Extract list of available tagged configurations in $ofile.
  29356. - # Note that this assumes the entire list is on one line.
  29357. - available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  29358. -
  29359. - lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  29360. - for tagname in $tagnames; do
  29361. - IFS="$lt_save_ifs"
  29362. - # Check whether tagname contains only valid characters
  29363. - case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in
  29364. - "") ;;
  29365. - *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5
  29366. -echo "$as_me: error: invalid tag name: $tagname" >&2;}
  29367. - { (exit 1); exit 1; }; }
  29368. - ;;
  29369. - esac
  29370. -
  29371. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  29372. - then
  29373. - { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5
  29374. -echo "$as_me: error: tag name \"$tagname\" already exists" >&2;}
  29375. - { (exit 1); exit 1; }; }
  29376. - fi
  29377. -
  29378. - # Update the list of available tags.
  29379. - if test -n "$tagname"; then
  29380. - echo appending configuration tag \"$tagname\" to $ofile
  29381. -
  29382. - case $tagname in
  29383. - CXX)
  29384. - if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  29385. - ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  29386. - (test "X$CXX" != "Xg++"))) ; then
  29387. - ac_ext=cc
  29388. -ac_cpp='$CXXCPP $CPPFLAGS'
  29389. -ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  29390. -ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  29391. -ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  29392. -
  29393. -
  29394. -
  29395. -
  29396. -archive_cmds_need_lc_CXX=no
  29397. -allow_undefined_flag_CXX=
  29398. -always_export_symbols_CXX=no
  29399. -archive_expsym_cmds_CXX=
  29400. -export_dynamic_flag_spec_CXX=
  29401. -hardcode_direct_CXX=no
  29402. -hardcode_libdir_flag_spec_CXX=
  29403. -hardcode_libdir_flag_spec_ld_CXX=
  29404. -hardcode_libdir_separator_CXX=
  29405. -hardcode_minus_L_CXX=no
  29406. -hardcode_automatic_CXX=no
  29407. -module_cmds_CXX=
  29408. -module_expsym_cmds_CXX=
  29409. -link_all_deplibs_CXX=unknown
  29410. -old_archive_cmds_CXX=$old_archive_cmds
  29411. -no_undefined_flag_CXX=
  29412. -whole_archive_flag_spec_CXX=
  29413. -enable_shared_with_static_runtimes_CXX=no
  29414. -
  29415. -# Dependencies to place before and after the object being linked:
  29416. -predep_objects_CXX=
  29417. -postdep_objects_CXX=
  29418. -predeps_CXX=
  29419. -postdeps_CXX=
  29420. -compiler_lib_search_path_CXX=
  29421. -
  29422. -# Source file extension for C++ test sources.
  29423. -ac_ext=cc
  29424. -
  29425. -# Object file extension for compiled C++ test sources.
  29426. -objext=o
  29427. -objext_CXX=$objext
  29428. -
  29429. -# Code to be used in simple compile tests
  29430. -lt_simple_compile_test_code="int some_variable = 0;\n"
  29431. -
  29432. -# Code to be used in simple link tests
  29433. -lt_simple_link_test_code='int main(int, char *) { return(0); }\n'
  29434. -
  29435. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  29436. -
  29437. -# If no C compiler was specified, use CC.
  29438. -LTCC=${LTCC-"$CC"}
  29439. -
  29440. -# Allow CC to be a program name with arguments.
  29441. -compiler=$CC
  29442. -
  29443. -
  29444. -# save warnings/boilerplate of simple test code
  29445. -ac_outfile=conftest.$ac_objext
  29446. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  29447. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  29448. -_lt_compiler_boilerplate=`cat conftest.err`
  29449. -$rm conftest*
  29450. -
  29451. -ac_outfile=conftest.$ac_objext
  29452. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  29453. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  29454. -_lt_linker_boilerplate=`cat conftest.err`
  29455. -$rm conftest*
  29456. -
  29457. -
  29458. -# Allow CC to be a program name with arguments.
  29459. -lt_save_CC=$CC
  29460. -lt_save_LD=$LD
  29461. -lt_save_GCC=$GCC
  29462. -GCC=$GXX
  29463. -lt_save_with_gnu_ld=$with_gnu_ld
  29464. -lt_save_path_LD=$lt_cv_path_LD
  29465. -if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  29466. - lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  29467. -else
  29468. - unset lt_cv_prog_gnu_ld
  29469. -fi
  29470. -if test -n "${lt_cv_path_LDCXX+set}"; then
  29471. - lt_cv_path_LD=$lt_cv_path_LDCXX
  29472. -else
  29473. - unset lt_cv_path_LD
  29474. -fi
  29475. -test -z "${LDCXX+set}" || LD=$LDCXX
  29476. -CC=${CXX-"c++"}
  29477. -compiler=$CC
  29478. -compiler_CXX=$CC
  29479. -for cc_temp in $compiler""; do
  29480. - case $cc_temp in
  29481. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  29482. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  29483. - \-*) ;;
  29484. - *) break;;
  29485. - esac
  29486. -done
  29487. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  29488. -
  29489. -
  29490. -# We don't want -fno-exception wen compiling C++ code, so set the
  29491. -# no_builtin_flag separately
  29492. -if test "$GXX" = yes; then
  29493. - lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  29494. -else
  29495. - lt_prog_compiler_no_builtin_flag_CXX=
  29496. -fi
  29497. -
  29498. -if test "$GXX" = yes; then
  29499. - # Set up default GNU C++ configuration
  29500. -
  29501. -
  29502. -# Check whether --with-gnu-ld or --without-gnu-ld was given.
  29503. -if test "${with_gnu_ld+set}" = set; then
  29504. - withval="$with_gnu_ld"
  29505. - test "$withval" = no || with_gnu_ld=yes
  29506. -else
  29507. - with_gnu_ld=no
  29508. -fi;
  29509. -ac_prog=ld
  29510. -if test "$GCC" = yes; then
  29511. - # Check if gcc -print-prog-name=ld gives a path.
  29512. - echo "$as_me:$LINENO: checking for ld used by $CC" >&5
  29513. -echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6
  29514. - case $host in
  29515. - *-*-mingw*)
  29516. - # gcc leaves a trailing carriage return which upsets mingw
  29517. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  29518. - *)
  29519. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  29520. - esac
  29521. - case $ac_prog in
  29522. - # Accept absolute paths.
  29523. - [\\/]* | ?:[\\/]*)
  29524. - re_direlt='/[^/][^/]*/\.\./'
  29525. - # Canonicalize the pathname of ld
  29526. - ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  29527. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  29528. - ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  29529. - done
  29530. - test -z "$LD" && LD="$ac_prog"
  29531. - ;;
  29532. - "")
  29533. - # If it fails, then pretend we aren't using GCC.
  29534. - ac_prog=ld
  29535. - ;;
  29536. - *)
  29537. - # If it is relative, then search for the first ld in PATH.
  29538. - with_gnu_ld=unknown
  29539. - ;;
  29540. - esac
  29541. -elif test "$with_gnu_ld" = yes; then
  29542. - echo "$as_me:$LINENO: checking for GNU ld" >&5
  29543. -echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6
  29544. -else
  29545. - echo "$as_me:$LINENO: checking for non-GNU ld" >&5
  29546. -echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6
  29547. -fi
  29548. -if test "${lt_cv_path_LD+set}" = set; then
  29549. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29550. -else
  29551. - if test -z "$LD"; then
  29552. - lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  29553. - for ac_dir in $PATH; do
  29554. - IFS="$lt_save_ifs"
  29555. - test -z "$ac_dir" && ac_dir=.
  29556. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  29557. - lt_cv_path_LD="$ac_dir/$ac_prog"
  29558. - # Check to see if the program is GNU ld. I'd rather use --version,
  29559. - # but apparently some GNU ld's only accept -v.
  29560. - # Break only if it was the GNU/non-GNU ld that we prefer.
  29561. - case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  29562. - *GNU* | *'with BFD'*)
  29563. - test "$with_gnu_ld" != no && break
  29564. - ;;
  29565. - *)
  29566. - test "$with_gnu_ld" != yes && break
  29567. - ;;
  29568. - esac
  29569. - fi
  29570. - done
  29571. - IFS="$lt_save_ifs"
  29572. -else
  29573. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  29574. -fi
  29575. -fi
  29576. -
  29577. -LD="$lt_cv_path_LD"
  29578. -if test -n "$LD"; then
  29579. - echo "$as_me:$LINENO: result: $LD" >&5
  29580. -echo "${ECHO_T}$LD" >&6
  29581. -else
  29582. - echo "$as_me:$LINENO: result: no" >&5
  29583. -echo "${ECHO_T}no" >&6
  29584. -fi
  29585. -test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5
  29586. -echo "$as_me: error: no acceptable ld found in \$PATH" >&2;}
  29587. - { (exit 1); exit 1; }; }
  29588. -echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5
  29589. -echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6
  29590. -if test "${lt_cv_prog_gnu_ld+set}" = set; then
  29591. - echo $ECHO_N "(cached) $ECHO_C" >&6
  29592. -else
  29593. - # I'd rather use --version here, but apparently some GNU ld's only accept -v.
  29594. -case `$LD -v 2>&1 </dev/null` in
  29595. -*GNU* | *'with BFD'*)
  29596. - lt_cv_prog_gnu_ld=yes
  29597. - ;;
  29598. -*)
  29599. - lt_cv_prog_gnu_ld=no
  29600. - ;;
  29601. -esac
  29602. -fi
  29603. -echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5
  29604. -echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6
  29605. -with_gnu_ld=$lt_cv_prog_gnu_ld
  29606. -
  29607. -
  29608. -
  29609. - # Check if GNU C++ uses GNU ld as the underlying linker, since the
  29610. - # archiving commands below assume that GNU ld is being used.
  29611. - if test "$with_gnu_ld" = yes; then
  29612. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  29613. - 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'
  29614. -
  29615. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  29616. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  29617. -
  29618. - # If archive_cmds runs LD, not CC, wlarc should be empty
  29619. - # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  29620. - # investigate it a little bit more. (MM)
  29621. - wlarc='${wl}'
  29622. -
  29623. - # ancient GNU ld didn't support --whole-archive et. al.
  29624. - if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  29625. - grep 'no-whole-archive' > /dev/null; then
  29626. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  29627. - else
  29628. - whole_archive_flag_spec_CXX=
  29629. - fi
  29630. - else
  29631. - with_gnu_ld=no
  29632. - wlarc=
  29633. -
  29634. - # A generic and very simple default shared library creation
  29635. - # command for GNU C++ for the case where it uses the native
  29636. - # linker, instead of GNU ld. If possible, this setting should
  29637. - # overridden to take advantage of the native linker features on
  29638. - # the platform it is being used on.
  29639. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  29640. - fi
  29641. -
  29642. - # Commands to make compiler produce verbose output that lists
  29643. - # what "hidden" libraries, object files and flags are used when
  29644. - # linking a shared library.
  29645. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  29646. -
  29647. -else
  29648. - GXX=no
  29649. - with_gnu_ld=no
  29650. - wlarc=
  29651. -fi
  29652. -
  29653. -# PORTME: fill in a description of your system's C++ link characteristics
  29654. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  29655. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  29656. -ld_shlibs_CXX=yes
  29657. -case $host_os in
  29658. - aix3*)
  29659. - # FIXME: insert proper C++ library support
  29660. - ld_shlibs_CXX=no
  29661. - ;;
  29662. - aix4* | aix5*)
  29663. - if test "$host_cpu" = ia64; then
  29664. - # On IA64, the linker does run time linking by default, so we don't
  29665. - # have to do anything special.
  29666. - aix_use_runtimelinking=no
  29667. - exp_sym_flag='-Bexport'
  29668. - no_entry_flag=""
  29669. - else
  29670. - aix_use_runtimelinking=no
  29671. -
  29672. - # Test if we are trying to use run time linking or normal
  29673. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  29674. - # need to do runtime linking.
  29675. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  29676. - for ld_flag in $LDFLAGS; do
  29677. - case $ld_flag in
  29678. - *-brtl*)
  29679. - aix_use_runtimelinking=yes
  29680. - break
  29681. - ;;
  29682. - esac
  29683. - done
  29684. - esac
  29685. -
  29686. - exp_sym_flag='-bexport'
  29687. - no_entry_flag='-bnoentry'
  29688. - fi
  29689. -
  29690. - # When large executables or shared objects are built, AIX ld can
  29691. - # have problems creating the table of contents. If linking a library
  29692. - # or program results in "error TOC overflow" add -mminimal-toc to
  29693. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  29694. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  29695. -
  29696. - archive_cmds_CXX=''
  29697. - hardcode_direct_CXX=yes
  29698. - hardcode_libdir_separator_CXX=':'
  29699. - link_all_deplibs_CXX=yes
  29700. -
  29701. - if test "$GXX" = yes; then
  29702. - case $host_os in aix4.[012]|aix4.[012].*)
  29703. - # We only want to do this on AIX 4.2 and lower, the check
  29704. - # below for broken collect2 doesn't work under 4.3+
  29705. - collect2name=`${CC} -print-prog-name=collect2`
  29706. - if test -f "$collect2name" && \
  29707. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  29708. - then
  29709. - # We have reworked collect2
  29710. - hardcode_direct_CXX=yes
  29711. - else
  29712. - # We have old collect2
  29713. - hardcode_direct_CXX=unsupported
  29714. - # It fails to find uninstalled libraries when the uninstalled
  29715. - # path is not listed in the libpath. Setting hardcode_minus_L
  29716. - # to unsupported forces relinking
  29717. - hardcode_minus_L_CXX=yes
  29718. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  29719. - hardcode_libdir_separator_CXX=
  29720. - fi
  29721. - esac
  29722. - shared_flag='-shared'
  29723. - if test "$aix_use_runtimelinking" = yes; then
  29724. - shared_flag="$shared_flag "'${wl}-G'
  29725. - fi
  29726. - else
  29727. - # not using gcc
  29728. - if test "$host_cpu" = ia64; then
  29729. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  29730. - # chokes on -Wl,-G. The following line is correct:
  29731. - shared_flag='-G'
  29732. - else
  29733. - if test "$aix_use_runtimelinking" = yes; then
  29734. - shared_flag='${wl}-G'
  29735. - else
  29736. - shared_flag='${wl}-bM:SRE'
  29737. - fi
  29738. - fi
  29739. - fi
  29740. -
  29741. - # It seems that -bexpall does not export symbols beginning with
  29742. - # underscore (_), so it is better to generate a list of symbols to export.
  29743. - always_export_symbols_CXX=yes
  29744. - if test "$aix_use_runtimelinking" = yes; then
  29745. - # Warning - without using the other runtime loading flags (-brtl),
  29746. - # -berok will link without error, but may produce a broken library.
  29747. - allow_undefined_flag_CXX='-berok'
  29748. - # Determine the default libpath from the value encoded in an empty executable.
  29749. - cat >conftest.$ac_ext <<_ACEOF
  29750. -/* confdefs.h. */
  29751. -_ACEOF
  29752. -cat confdefs.h >>conftest.$ac_ext
  29753. -cat >>conftest.$ac_ext <<_ACEOF
  29754. -/* end confdefs.h. */
  29755. -
  29756. -int
  29757. -main ()
  29758. -{
  29759. -
  29760. - ;
  29761. - return 0;
  29762. -}
  29763. -_ACEOF
  29764. -rm -f conftest.$ac_objext conftest$ac_exeext
  29765. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29766. - (eval $ac_link) 2>conftest.er1
  29767. - ac_status=$?
  29768. - grep -v '^ *+' conftest.er1 >conftest.err
  29769. - rm -f conftest.er1
  29770. - cat conftest.err >&5
  29771. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29772. - (exit $ac_status); } &&
  29773. - { ac_try='test -z "$ac_cxx_werror_flag"
  29774. - || test ! -s conftest.err'
  29775. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29776. - (eval $ac_try) 2>&5
  29777. - ac_status=$?
  29778. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29779. - (exit $ac_status); }; } &&
  29780. - { ac_try='test -s conftest$ac_exeext'
  29781. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29782. - (eval $ac_try) 2>&5
  29783. - ac_status=$?
  29784. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29785. - (exit $ac_status); }; }; then
  29786. -
  29787. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  29788. -}'`
  29789. -# Check for a 64-bit object if we didn't find anything.
  29790. -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; }
  29791. -}'`; fi
  29792. -else
  29793. - echo "$as_me: failed program was:" >&5
  29794. -sed 's/^/| /' conftest.$ac_ext >&5
  29795. -
  29796. -fi
  29797. -rm -f conftest.err conftest.$ac_objext \
  29798. - conftest$ac_exeext conftest.$ac_ext
  29799. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29800. -
  29801. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  29802. -
  29803. - archive_expsym_cmds_CXX="\$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"
  29804. - else
  29805. - if test "$host_cpu" = ia64; then
  29806. - hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  29807. - allow_undefined_flag_CXX="-z nodefs"
  29808. - archive_expsym_cmds_CXX="\$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"
  29809. - else
  29810. - # Determine the default libpath from the value encoded in an empty executable.
  29811. - cat >conftest.$ac_ext <<_ACEOF
  29812. -/* confdefs.h. */
  29813. -_ACEOF
  29814. -cat confdefs.h >>conftest.$ac_ext
  29815. -cat >>conftest.$ac_ext <<_ACEOF
  29816. -/* end confdefs.h. */
  29817. -
  29818. -int
  29819. -main ()
  29820. -{
  29821. -
  29822. - ;
  29823. - return 0;
  29824. -}
  29825. -_ACEOF
  29826. -rm -f conftest.$ac_objext conftest$ac_exeext
  29827. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  29828. - (eval $ac_link) 2>conftest.er1
  29829. - ac_status=$?
  29830. - grep -v '^ *+' conftest.er1 >conftest.err
  29831. - rm -f conftest.er1
  29832. - cat conftest.err >&5
  29833. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29834. - (exit $ac_status); } &&
  29835. - { ac_try='test -z "$ac_cxx_werror_flag"
  29836. - || test ! -s conftest.err'
  29837. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29838. - (eval $ac_try) 2>&5
  29839. - ac_status=$?
  29840. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29841. - (exit $ac_status); }; } &&
  29842. - { ac_try='test -s conftest$ac_exeext'
  29843. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  29844. - (eval $ac_try) 2>&5
  29845. - ac_status=$?
  29846. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  29847. - (exit $ac_status); }; }; then
  29848. -
  29849. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  29850. -}'`
  29851. -# Check for a 64-bit object if we didn't find anything.
  29852. -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; }
  29853. -}'`; fi
  29854. -else
  29855. - echo "$as_me: failed program was:" >&5
  29856. -sed 's/^/| /' conftest.$ac_ext >&5
  29857. -
  29858. -fi
  29859. -rm -f conftest.err conftest.$ac_objext \
  29860. - conftest$ac_exeext conftest.$ac_ext
  29861. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  29862. -
  29863. - hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  29864. - # Warning - without using the other run time loading flags,
  29865. - # -berok will link without error, but may produce a broken library.
  29866. - no_undefined_flag_CXX=' ${wl}-bernotok'
  29867. - allow_undefined_flag_CXX=' ${wl}-berok'
  29868. - # -bexpall does not export symbols beginning with underscore (_)
  29869. - always_export_symbols_CXX=yes
  29870. - # Exported symbols can be pulled into shared objects from archives
  29871. - whole_archive_flag_spec_CXX=' '
  29872. - archive_cmds_need_lc_CXX=yes
  29873. - # This is similar to how AIX traditionally builds it's shared libraries.
  29874. - archive_expsym_cmds_CXX="\$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'
  29875. - fi
  29876. - fi
  29877. - ;;
  29878. - chorus*)
  29879. - case $cc_basename in
  29880. - *)
  29881. - # FIXME: insert proper C++ library support
  29882. - ld_shlibs_CXX=no
  29883. - ;;
  29884. - esac
  29885. - ;;
  29886. -
  29887. -
  29888. - cygwin* | mingw* | pw32*)
  29889. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  29890. - # as there is no search path for DLLs.
  29891. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  29892. - allow_undefined_flag_CXX=unsupported
  29893. - always_export_symbols_CXX=no
  29894. - enable_shared_with_static_runtimes_CXX=yes
  29895. -
  29896. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  29897. - archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  29898. - # If the export-symbols file already is a .def file (1st line
  29899. - # is EXPORTS), use it as is; otherwise, prepend...
  29900. - archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  29901. - cp $export_symbols $output_objdir/$soname.def;
  29902. - else
  29903. - echo EXPORTS > $output_objdir/$soname.def;
  29904. - cat $export_symbols >> $output_objdir/$soname.def;
  29905. - fi~
  29906. - $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'
  29907. - else
  29908. - ld_shlibs_CXX=no
  29909. - fi
  29910. - ;;
  29911. - darwin* | rhapsody*)
  29912. - case "$host_os" in
  29913. - rhapsody* | darwin1.[012])
  29914. - allow_undefined_flag_CXX='${wl}-undefined ${wl}suppress'
  29915. - ;;
  29916. - *) # Darwin 1.3 on
  29917. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  29918. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  29919. - else
  29920. - case ${MACOSX_DEPLOYMENT_TARGET} in
  29921. - 10.[012])
  29922. - allow_undefined_flag_CXX='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  29923. - ;;
  29924. - 10.*)
  29925. - allow_undefined_flag_CXX='${wl}-undefined ${wl}dynamic_lookup'
  29926. - ;;
  29927. - esac
  29928. - fi
  29929. - ;;
  29930. - esac
  29931. - archive_cmds_need_lc_CXX=no
  29932. - hardcode_direct_CXX=no
  29933. - hardcode_automatic_CXX=yes
  29934. - hardcode_shlibpath_var_CXX=unsupported
  29935. - whole_archive_flag_spec_CXX=''
  29936. - link_all_deplibs_CXX=yes
  29937. -
  29938. - if test "$GXX" = yes ; then
  29939. - lt_int_apple_cc_single_mod=no
  29940. - output_verbose_link_cmd='echo'
  29941. - if $CC -dumpspecs 2>&1 | $EGREP 'single_module' >/dev/null ; then
  29942. - lt_int_apple_cc_single_mod=yes
  29943. - fi
  29944. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  29945. - archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  29946. - else
  29947. - 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'
  29948. - fi
  29949. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  29950. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  29951. - if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  29952. - 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}'
  29953. - else
  29954. - 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}'
  29955. - fi
  29956. - 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}'
  29957. - else
  29958. - case $cc_basename in
  29959. - xlc*)
  29960. - output_verbose_link_cmd='echo'
  29961. - 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'
  29962. - module_cmds_CXX='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  29963. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  29964. - 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}'
  29965. - 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}'
  29966. - ;;
  29967. - *)
  29968. - ld_shlibs_CXX=no
  29969. - ;;
  29970. - esac
  29971. - fi
  29972. - ;;
  29973. -
  29974. - dgux*)
  29975. - case $cc_basename in
  29976. - ec++*)
  29977. - # FIXME: insert proper C++ library support
  29978. - ld_shlibs_CXX=no
  29979. - ;;
  29980. - ghcx*)
  29981. - # Green Hills C++ Compiler
  29982. - # FIXME: insert proper C++ library support
  29983. - ld_shlibs_CXX=no
  29984. - ;;
  29985. - *)
  29986. - # FIXME: insert proper C++ library support
  29987. - ld_shlibs_CXX=no
  29988. - ;;
  29989. - esac
  29990. - ;;
  29991. - freebsd[12]*)
  29992. - # C++ shared libraries reported to be fairly broken before switch to ELF
  29993. - ld_shlibs_CXX=no
  29994. - ;;
  29995. - freebsd-elf*)
  29996. - archive_cmds_need_lc_CXX=no
  29997. - ;;
  29998. - freebsd* | kfreebsd*-gnu | dragonfly*)
  29999. - # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  30000. - # conventions
  30001. - ld_shlibs_CXX=yes
  30002. - ;;
  30003. - gnu*)
  30004. - ;;
  30005. - hpux9*)
  30006. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  30007. - hardcode_libdir_separator_CXX=:
  30008. - export_dynamic_flag_spec_CXX='${wl}-E'
  30009. - hardcode_direct_CXX=yes
  30010. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  30011. - # but as the default
  30012. - # location of the library.
  30013. -
  30014. - case $cc_basename in
  30015. - CC*)
  30016. - # FIXME: insert proper C++ library support
  30017. - ld_shlibs_CXX=no
  30018. - ;;
  30019. - aCC*)
  30020. - 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'
  30021. - # Commands to make compiler produce verbose output that lists
  30022. - # what "hidden" libraries, object files and flags are used when
  30023. - # linking a shared library.
  30024. - #
  30025. - # There doesn't appear to be a way to prevent this compiler from
  30026. - # explicitly linking system object files so we need to strip them
  30027. - # from the output so that they don't get included in the library
  30028. - # dependencies.
  30029. - 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'
  30030. - ;;
  30031. - *)
  30032. - if test "$GXX" = yes; then
  30033. - 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'
  30034. - else
  30035. - # FIXME: insert proper C++ library support
  30036. - ld_shlibs_CXX=no
  30037. - fi
  30038. - ;;
  30039. - esac
  30040. - ;;
  30041. - hpux10*|hpux11*)
  30042. - if test $with_gnu_ld = no; then
  30043. - case "$host_cpu" in
  30044. - hppa*64*)
  30045. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  30046. - hardcode_libdir_flag_spec_ld_CXX='+b $libdir'
  30047. - hardcode_libdir_separator_CXX=:
  30048. - ;;
  30049. - ia64*)
  30050. - hardcode_libdir_flag_spec_CXX='-L$libdir'
  30051. - ;;
  30052. - *)
  30053. - hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  30054. - hardcode_libdir_separator_CXX=:
  30055. - export_dynamic_flag_spec_CXX='${wl}-E'
  30056. - ;;
  30057. - esac
  30058. - fi
  30059. - case "$host_cpu" in
  30060. - hppa*64*)
  30061. - hardcode_direct_CXX=no
  30062. - hardcode_shlibpath_var_CXX=no
  30063. - ;;
  30064. - ia64*)
  30065. - hardcode_direct_CXX=no
  30066. - hardcode_shlibpath_var_CXX=no
  30067. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  30068. - # but as the default
  30069. - # location of the library.
  30070. - ;;
  30071. - *)
  30072. - hardcode_direct_CXX=yes
  30073. - hardcode_minus_L_CXX=yes # Not in the search PATH,
  30074. - # but as the default
  30075. - # location of the library.
  30076. - ;;
  30077. - esac
  30078. -
  30079. - case $cc_basename in
  30080. - CC*)
  30081. - # FIXME: insert proper C++ library support
  30082. - ld_shlibs_CXX=no
  30083. - ;;
  30084. - aCC*)
  30085. - case "$host_cpu" in
  30086. - hppa*64*|ia64*)
  30087. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  30088. - ;;
  30089. - *)
  30090. - archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30091. - ;;
  30092. - esac
  30093. - # Commands to make compiler produce verbose output that lists
  30094. - # what "hidden" libraries, object files and flags are used when
  30095. - # linking a shared library.
  30096. - #
  30097. - # There doesn't appear to be a way to prevent this compiler from
  30098. - # explicitly linking system object files so we need to strip them
  30099. - # from the output so that they don't get included in the library
  30100. - # dependencies.
  30101. - 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'
  30102. - ;;
  30103. - *)
  30104. - if test "$GXX" = yes; then
  30105. - if test $with_gnu_ld = no; then
  30106. - case "$host_cpu" in
  30107. - ia64*|hppa*64*)
  30108. - archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  30109. - ;;
  30110. - *)
  30111. - 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'
  30112. - ;;
  30113. - esac
  30114. - fi
  30115. - else
  30116. - # FIXME: insert proper C++ library support
  30117. - ld_shlibs_CXX=no
  30118. - fi
  30119. - ;;
  30120. - esac
  30121. - ;;
  30122. - irix5* | irix6*)
  30123. - case $cc_basename in
  30124. - CC*)
  30125. - # SGI C++
  30126. - 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'
  30127. -
  30128. - # Archives containing C++ object files must be created using
  30129. - # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  30130. - # necessary to make sure instantiated templates are included
  30131. - # in the archive.
  30132. - old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  30133. - ;;
  30134. - *)
  30135. - if test "$GXX" = yes; then
  30136. - if test "$with_gnu_ld" = no; then
  30137. - 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'
  30138. - else
  30139. - 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'
  30140. - fi
  30141. - fi
  30142. - link_all_deplibs_CXX=yes
  30143. - ;;
  30144. - esac
  30145. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  30146. - hardcode_libdir_separator_CXX=:
  30147. - ;;
  30148. - linux*)
  30149. - case $cc_basename in
  30150. - KCC*)
  30151. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  30152. -
  30153. - # KCC will only create a shared library if the output file
  30154. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  30155. - # to its proper name (with version) after linking.
  30156. - 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'
  30157. - 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'
  30158. - # Commands to make compiler produce verbose output that lists
  30159. - # what "hidden" libraries, object files and flags are used when
  30160. - # linking a shared library.
  30161. - #
  30162. - # There doesn't appear to be a way to prevent this compiler from
  30163. - # explicitly linking system object files so we need to strip them
  30164. - # from the output so that they don't get included in the library
  30165. - # dependencies.
  30166. - 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'
  30167. -
  30168. - hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir'
  30169. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  30170. -
  30171. - # Archives containing C++ object files must be created using
  30172. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  30173. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  30174. - ;;
  30175. - icpc*)
  30176. - # Intel C++
  30177. - with_gnu_ld=yes
  30178. - # version 8.0 and above of icpc choke on multiply defined symbols
  30179. - # if we add $predep_objects and $postdep_objects, however 7.1 and
  30180. - # earlier do not add the objects themselves.
  30181. - case `$CC -V 2>&1` in
  30182. - *"Version 7."*)
  30183. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30184. - 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'
  30185. - ;;
  30186. - *) # Version 8.0 or newer
  30187. - tmp_idyn=
  30188. - case $host_cpu in
  30189. - ia64*) tmp_idyn=' -i_dynamic';;
  30190. - esac
  30191. - archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30192. - 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'
  30193. - ;;
  30194. - esac
  30195. - archive_cmds_need_lc_CXX=no
  30196. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  30197. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  30198. - whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  30199. - ;;
  30200. - pgCC*)
  30201. - # Portland Group C++ compiler
  30202. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  30203. - 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'
  30204. -
  30205. - hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  30206. - export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  30207. - whole_archive_flag_spec_CXX=''
  30208. - ;;
  30209. - cxx*)
  30210. - # Compaq C++
  30211. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  30212. - 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'
  30213. -
  30214. - runpath_var=LD_RUN_PATH
  30215. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  30216. - hardcode_libdir_separator_CXX=:
  30217. -
  30218. - # Commands to make compiler produce verbose output that lists
  30219. - # what "hidden" libraries, object files and flags are used when
  30220. - # linking a shared library.
  30221. - #
  30222. - # There doesn't appear to be a way to prevent this compiler from
  30223. - # explicitly linking system object files so we need to strip them
  30224. - # from the output so that they don't get included in the library
  30225. - # dependencies.
  30226. - 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'
  30227. - ;;
  30228. - esac
  30229. - ;;
  30230. - lynxos*)
  30231. - # FIXME: insert proper C++ library support
  30232. - ld_shlibs_CXX=no
  30233. - ;;
  30234. - m88k*)
  30235. - # FIXME: insert proper C++ library support
  30236. - ld_shlibs_CXX=no
  30237. - ;;
  30238. - mvs*)
  30239. - case $cc_basename in
  30240. - cxx*)
  30241. - # FIXME: insert proper C++ library support
  30242. - ld_shlibs_CXX=no
  30243. - ;;
  30244. - *)
  30245. - # FIXME: insert proper C++ library support
  30246. - ld_shlibs_CXX=no
  30247. - ;;
  30248. - esac
  30249. - ;;
  30250. - netbsd*)
  30251. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  30252. - archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  30253. - wlarc=
  30254. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  30255. - hardcode_direct_CXX=yes
  30256. - hardcode_shlibpath_var_CXX=no
  30257. - fi
  30258. - # Workaround some broken pre-1.5 toolchains
  30259. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  30260. - ;;
  30261. - openbsd2*)
  30262. - # C++ shared libraries are fairly broken
  30263. - ld_shlibs_CXX=no
  30264. - ;;
  30265. - openbsd*)
  30266. - hardcode_direct_CXX=yes
  30267. - hardcode_shlibpath_var_CXX=no
  30268. - archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  30269. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  30270. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  30271. - archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  30272. - export_dynamic_flag_spec_CXX='${wl}-E'
  30273. - whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  30274. - fi
  30275. - output_verbose_link_cmd='echo'
  30276. - ;;
  30277. - osf3*)
  30278. - case $cc_basename in
  30279. - KCC*)
  30280. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  30281. -
  30282. - # KCC will only create a shared library if the output file
  30283. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  30284. - # to its proper name (with version) after linking.
  30285. - 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'
  30286. -
  30287. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  30288. - hardcode_libdir_separator_CXX=:
  30289. -
  30290. - # Archives containing C++ object files must be created using
  30291. - # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  30292. - old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  30293. -
  30294. - ;;
  30295. - RCC*)
  30296. - # Rational C++ 2.4.1
  30297. - # FIXME: insert proper C++ library support
  30298. - ld_shlibs_CXX=no
  30299. - ;;
  30300. - cxx*)
  30301. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  30302. - 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'
  30303. -
  30304. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  30305. - hardcode_libdir_separator_CXX=:
  30306. -
  30307. - # Commands to make compiler produce verbose output that lists
  30308. - # what "hidden" libraries, object files and flags are used when
  30309. - # linking a shared library.
  30310. - #
  30311. - # There doesn't appear to be a way to prevent this compiler from
  30312. - # explicitly linking system object files so we need to strip them
  30313. - # from the output so that they don't get included in the library
  30314. - # dependencies.
  30315. - 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'
  30316. - ;;
  30317. - *)
  30318. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  30319. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  30320. - 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'
  30321. -
  30322. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  30323. - hardcode_libdir_separator_CXX=:
  30324. -
  30325. - # Commands to make compiler produce verbose output that lists
  30326. - # what "hidden" libraries, object files and flags are used when
  30327. - # linking a shared library.
  30328. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  30329. -
  30330. - else
  30331. - # FIXME: insert proper C++ library support
  30332. - ld_shlibs_CXX=no
  30333. - fi
  30334. - ;;
  30335. - esac
  30336. - ;;
  30337. - osf4* | osf5*)
  30338. - case $cc_basename in
  30339. - KCC*)
  30340. - # Kuck and Associates, Inc. (KAI) C++ Compiler
  30341. -
  30342. - # KCC will only create a shared library if the output file
  30343. - # ends with ".so" (or ".sl" for HP-UX), so rename the library
  30344. - # to its proper name (with version) after linking.
  30345. - 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'
  30346. -
  30347. - hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  30348. - hardcode_libdir_separator_CXX=:
  30349. -
  30350. - # Archives containing C++ object files must be created using
  30351. - # the KAI C++ compiler.
  30352. - old_archive_cmds_CXX='$CC -o $oldlib $oldobjs'
  30353. - ;;
  30354. - RCC*)
  30355. - # Rational C++ 2.4.1
  30356. - # FIXME: insert proper C++ library support
  30357. - ld_shlibs_CXX=no
  30358. - ;;
  30359. - cxx*)
  30360. - allow_undefined_flag_CXX=' -expect_unresolved \*'
  30361. - 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'
  30362. - archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  30363. - echo "-hidden">> $lib.exp~
  30364. - $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~
  30365. - $rm $lib.exp'
  30366. -
  30367. - hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  30368. - hardcode_libdir_separator_CXX=:
  30369. -
  30370. - # Commands to make compiler produce verbose output that lists
  30371. - # what "hidden" libraries, object files and flags are used when
  30372. - # linking a shared library.
  30373. - #
  30374. - # There doesn't appear to be a way to prevent this compiler from
  30375. - # explicitly linking system object files so we need to strip them
  30376. - # from the output so that they don't get included in the library
  30377. - # dependencies.
  30378. - 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'
  30379. - ;;
  30380. - *)
  30381. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  30382. - allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  30383. - 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'
  30384. -
  30385. - hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  30386. - hardcode_libdir_separator_CXX=:
  30387. -
  30388. - # Commands to make compiler produce verbose output that lists
  30389. - # what "hidden" libraries, object files and flags are used when
  30390. - # linking a shared library.
  30391. - output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  30392. -
  30393. - else
  30394. - # FIXME: insert proper C++ library support
  30395. - ld_shlibs_CXX=no
  30396. - fi
  30397. - ;;
  30398. - esac
  30399. - ;;
  30400. - psos*)
  30401. - # FIXME: insert proper C++ library support
  30402. - ld_shlibs_CXX=no
  30403. - ;;
  30404. - sco*)
  30405. - archive_cmds_need_lc_CXX=no
  30406. - case $cc_basename in
  30407. - CC*)
  30408. - # FIXME: insert proper C++ library support
  30409. - ld_shlibs_CXX=no
  30410. - ;;
  30411. - *)
  30412. - # FIXME: insert proper C++ library support
  30413. - ld_shlibs_CXX=no
  30414. - ;;
  30415. - esac
  30416. - ;;
  30417. - sunos4*)
  30418. - case $cc_basename in
  30419. - CC*)
  30420. - # Sun C++ 4.x
  30421. - # FIXME: insert proper C++ library support
  30422. - ld_shlibs_CXX=no
  30423. - ;;
  30424. - lcc*)
  30425. - # Lucid
  30426. - # FIXME: insert proper C++ library support
  30427. - ld_shlibs_CXX=no
  30428. - ;;
  30429. - *)
  30430. - # FIXME: insert proper C++ library support
  30431. - ld_shlibs_CXX=no
  30432. - ;;
  30433. - esac
  30434. - ;;
  30435. - solaris*)
  30436. - case $cc_basename in
  30437. - CC*)
  30438. - # Sun C++ 4.2, 5.x and Centerline C++
  30439. - no_undefined_flag_CXX=' -zdefs'
  30440. - archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  30441. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  30442. - $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'
  30443. -
  30444. - hardcode_libdir_flag_spec_CXX='-R$libdir'
  30445. - hardcode_shlibpath_var_CXX=no
  30446. - case $host_os in
  30447. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  30448. - *)
  30449. - # The C++ compiler is used as linker so we must use $wl
  30450. - # flag to pass the commands to the underlying system
  30451. - # linker. We must also pass each convience library through
  30452. - # to the system linker between allextract/defaultextract.
  30453. - # The C++ compiler will combine linker options so we
  30454. - # cannot just pass the convience library names through
  30455. - # without $wl.
  30456. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  30457. - 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'
  30458. - ;;
  30459. - esac
  30460. - link_all_deplibs_CXX=yes
  30461. -
  30462. - # Commands to make compiler produce verbose output that lists
  30463. - # what "hidden" libraries, object files and flags are used when
  30464. - # linking a shared library.
  30465. - #
  30466. - # There doesn't appear to be a way to prevent this compiler from
  30467. - # explicitly linking system object files so we need to strip them
  30468. - # from the output so that they don't get included in the library
  30469. - # dependencies.
  30470. - 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'
  30471. -
  30472. - # Archives containing C++ object files must be created using
  30473. - # "CC -xar", where "CC" is the Sun C++ compiler. This is
  30474. - # necessary to make sure instantiated templates are included
  30475. - # in the archive.
  30476. - old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  30477. - ;;
  30478. - gcx*)
  30479. - # Green Hills C++ Compiler
  30480. - archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  30481. -
  30482. - # The C++ compiler must be used to create the archive.
  30483. - old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  30484. - ;;
  30485. - *)
  30486. - # GNU C++ compiler with Solaris linker
  30487. - if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  30488. - no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  30489. - if $CC --version | grep -v '^2\.7' > /dev/null; then
  30490. - archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  30491. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  30492. - $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  30493. -
  30494. - # Commands to make compiler produce verbose output that lists
  30495. - # what "hidden" libraries, object files and flags are used when
  30496. - # linking a shared library.
  30497. - output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  30498. - else
  30499. - # g++ 2.7 appears to require `-G' NOT `-shared' on this
  30500. - # platform.
  30501. - archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  30502. - archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  30503. - $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  30504. -
  30505. - # Commands to make compiler produce verbose output that lists
  30506. - # what "hidden" libraries, object files and flags are used when
  30507. - # linking a shared library.
  30508. - output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  30509. - fi
  30510. -
  30511. - hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  30512. - fi
  30513. - ;;
  30514. - esac
  30515. - ;;
  30516. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  30517. - archive_cmds_need_lc_CXX=no
  30518. - ;;
  30519. - tandem*)
  30520. - case $cc_basename in
  30521. - NCC*)
  30522. - # NonStop-UX NCC 3.20
  30523. - # FIXME: insert proper C++ library support
  30524. - ld_shlibs_CXX=no
  30525. - ;;
  30526. - *)
  30527. - # FIXME: insert proper C++ library support
  30528. - ld_shlibs_CXX=no
  30529. - ;;
  30530. - esac
  30531. - ;;
  30532. - vxworks*)
  30533. - # FIXME: insert proper C++ library support
  30534. - ld_shlibs_CXX=no
  30535. - ;;
  30536. - *)
  30537. - # FIXME: insert proper C++ library support
  30538. - ld_shlibs_CXX=no
  30539. - ;;
  30540. -esac
  30541. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  30542. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  30543. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  30544. -
  30545. -GCC_CXX="$GXX"
  30546. -LD_CXX="$LD"
  30547. -
  30548. -
  30549. -cat > conftest.$ac_ext <<EOF
  30550. -class Foo
  30551. -{
  30552. -public:
  30553. - Foo (void) { a = 0; }
  30554. -private:
  30555. - int a;
  30556. -};
  30557. -EOF
  30558. -
  30559. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  30560. - (eval $ac_compile) 2>&5
  30561. - ac_status=$?
  30562. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  30563. - (exit $ac_status); }; then
  30564. - # Parse the compiler output and extract the necessary
  30565. - # objects, libraries and library flags.
  30566. -
  30567. - # Sentinel used to keep track of whether or not we are before
  30568. - # the conftest object file.
  30569. - pre_test_object_deps_done=no
  30570. -
  30571. - # The `*' in the case matches for architectures that use `case' in
  30572. - # $output_verbose_cmd can trigger glob expansion during the loop
  30573. - # eval without this substitution.
  30574. - output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  30575. -
  30576. - for p in `eval $output_verbose_link_cmd`; do
  30577. - case $p in
  30578. -
  30579. - -L* | -R* | -l*)
  30580. - # Some compilers place space between "-{L,R}" and the path.
  30581. - # Remove the space.
  30582. - if test $p = "-L" \
  30583. - || test $p = "-R"; then
  30584. - prev=$p
  30585. - continue
  30586. - else
  30587. - prev=
  30588. - fi
  30589. -
  30590. - if test "$pre_test_object_deps_done" = no; then
  30591. - case $p in
  30592. - -L* | -R*)
  30593. - # Internal compiler library paths should come after those
  30594. - # provided the user. The postdeps already come after the
  30595. - # user supplied libs so there is no need to process them.
  30596. - if test -z "$compiler_lib_search_path_CXX"; then
  30597. - compiler_lib_search_path_CXX="${prev}${p}"
  30598. - else
  30599. - compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  30600. - fi
  30601. - ;;
  30602. - # The "-l" case would never come before the object being
  30603. - # linked, so don't bother handling this case.
  30604. - esac
  30605. - else
  30606. - if test -z "$postdeps_CXX"; then
  30607. - postdeps_CXX="${prev}${p}"
  30608. - else
  30609. - postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  30610. - fi
  30611. - fi
  30612. - ;;
  30613. -
  30614. - *.$objext)
  30615. - # This assumes that the test object file only shows up
  30616. - # once in the compiler output.
  30617. - if test "$p" = "conftest.$objext"; then
  30618. - pre_test_object_deps_done=yes
  30619. - continue
  30620. - fi
  30621. -
  30622. - if test "$pre_test_object_deps_done" = no; then
  30623. - if test -z "$predep_objects_CXX"; then
  30624. - predep_objects_CXX="$p"
  30625. - else
  30626. - predep_objects_CXX="$predep_objects_CXX $p"
  30627. - fi
  30628. - else
  30629. - if test -z "$postdep_objects_CXX"; then
  30630. - postdep_objects_CXX="$p"
  30631. - else
  30632. - postdep_objects_CXX="$postdep_objects_CXX $p"
  30633. - fi
  30634. - fi
  30635. - ;;
  30636. -
  30637. - *) ;; # Ignore the rest.
  30638. -
  30639. - esac
  30640. - done
  30641. -
  30642. - # Clean up.
  30643. - rm -f a.out a.exe
  30644. -else
  30645. - echo "libtool.m4: error: problem compiling CXX test program"
  30646. -fi
  30647. -
  30648. -$rm -f confest.$objext
  30649. -
  30650. -case " $postdeps_CXX " in
  30651. -*" -lc "*) archive_cmds_need_lc_CXX=no ;;
  30652. -esac
  30653. -
  30654. -lt_prog_compiler_wl_CXX=
  30655. -lt_prog_compiler_pic_CXX=
  30656. -lt_prog_compiler_static_CXX=
  30657. -
  30658. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  30659. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  30660. -
  30661. - # C++ specific cases for pic, static, wl, etc.
  30662. - if test "$GXX" = yes; then
  30663. - lt_prog_compiler_wl_CXX='-Wl,'
  30664. - lt_prog_compiler_static_CXX='-static'
  30665. -
  30666. - case $host_os in
  30667. - aix*)
  30668. - # All AIX code is PIC.
  30669. - if test "$host_cpu" = ia64; then
  30670. - # AIX 5 now supports IA64 processor
  30671. - lt_prog_compiler_static_CXX='-Bstatic'
  30672. - fi
  30673. - ;;
  30674. - amigaos*)
  30675. - # FIXME: we need at least 68020 code to build shared libraries, but
  30676. - # adding the `-m68020' flag to GCC prevents building anything better,
  30677. - # like `-m68040'.
  30678. - lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  30679. - ;;
  30680. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  30681. - # PIC is the default for these OSes.
  30682. - ;;
  30683. - mingw* | os2* | pw32*)
  30684. - # This hack is so that the source file can tell whether it is being
  30685. - # built for inclusion in a dll (and should export symbols for example).
  30686. - lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  30687. - ;;
  30688. - darwin* | rhapsody*)
  30689. - # PIC is the default on this platform
  30690. - # Common symbols not allowed in MH_DYLIB files
  30691. - lt_prog_compiler_pic_CXX='-fno-common'
  30692. - ;;
  30693. - *djgpp*)
  30694. - # DJGPP does not support shared libraries at all
  30695. - lt_prog_compiler_pic_CXX=
  30696. - ;;
  30697. - sysv4*MP*)
  30698. - if test -d /usr/nec; then
  30699. - lt_prog_compiler_pic_CXX=-Kconform_pic
  30700. - fi
  30701. - ;;
  30702. - hpux*)
  30703. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  30704. - # not for PA HP-UX.
  30705. - case "$host_cpu" in
  30706. - hppa*64*|ia64*)
  30707. - ;;
  30708. - *)
  30709. - lt_prog_compiler_pic_CXX='-fPIC'
  30710. - ;;
  30711. - esac
  30712. - ;;
  30713. - *)
  30714. - lt_prog_compiler_pic_CXX='-fPIC'
  30715. - ;;
  30716. - esac
  30717. - else
  30718. - case $host_os in
  30719. - aix4* | aix5*)
  30720. - # All AIX code is PIC.
  30721. - if test "$host_cpu" = ia64; then
  30722. - # AIX 5 now supports IA64 processor
  30723. - lt_prog_compiler_static_CXX='-Bstatic'
  30724. - else
  30725. - lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  30726. - fi
  30727. - ;;
  30728. - chorus*)
  30729. - case $cc_basename in
  30730. - cxch68*)
  30731. - # Green Hills C++ Compiler
  30732. - # _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"
  30733. - ;;
  30734. - esac
  30735. - ;;
  30736. - darwin*)
  30737. - # PIC is the default on this platform
  30738. - # Common symbols not allowed in MH_DYLIB files
  30739. - case $cc_basename in
  30740. - xlc*)
  30741. - lt_prog_compiler_pic_CXX='-qnocommon'
  30742. - lt_prog_compiler_wl_CXX='-Wl,'
  30743. - ;;
  30744. - esac
  30745. - ;;
  30746. - dgux*)
  30747. - case $cc_basename in
  30748. - ec++*)
  30749. - lt_prog_compiler_pic_CXX='-KPIC'
  30750. - ;;
  30751. - ghcx*)
  30752. - # Green Hills C++ Compiler
  30753. - lt_prog_compiler_pic_CXX='-pic'
  30754. - ;;
  30755. - *)
  30756. - ;;
  30757. - esac
  30758. - ;;
  30759. - freebsd* | kfreebsd*-gnu | dragonfly*)
  30760. - # FreeBSD uses GNU C++
  30761. - ;;
  30762. - hpux9* | hpux10* | hpux11*)
  30763. - case $cc_basename in
  30764. - CC*)
  30765. - lt_prog_compiler_wl_CXX='-Wl,'
  30766. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  30767. - if test "$host_cpu" != ia64; then
  30768. - lt_prog_compiler_pic_CXX='+Z'
  30769. - fi
  30770. - ;;
  30771. - aCC*)
  30772. - lt_prog_compiler_wl_CXX='-Wl,'
  30773. - lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  30774. - case "$host_cpu" in
  30775. - hppa*64*|ia64*)
  30776. - # +Z the default
  30777. - ;;
  30778. - *)
  30779. - lt_prog_compiler_pic_CXX='+Z'
  30780. - ;;
  30781. - esac
  30782. - ;;
  30783. - *)
  30784. - ;;
  30785. - esac
  30786. - ;;
  30787. - irix5* | irix6* | nonstopux*)
  30788. - case $cc_basename in
  30789. - CC*)
  30790. - lt_prog_compiler_wl_CXX='-Wl,'
  30791. - lt_prog_compiler_static_CXX='-non_shared'
  30792. - # CC pic flag -KPIC is the default.
  30793. - ;;
  30794. - *)
  30795. - ;;
  30796. - esac
  30797. - ;;
  30798. - linux*)
  30799. - case $cc_basename in
  30800. - KCC*)
  30801. - # KAI C++ Compiler
  30802. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  30803. - lt_prog_compiler_pic_CXX='-fPIC'
  30804. - ;;
  30805. - icpc* | ecpc*)
  30806. - # Intel C++
  30807. - lt_prog_compiler_wl_CXX='-Wl,'
  30808. - lt_prog_compiler_pic_CXX='-KPIC'
  30809. - lt_prog_compiler_static_CXX='-static'
  30810. - ;;
  30811. - pgCC*)
  30812. - # Portland Group C++ compiler.
  30813. - lt_prog_compiler_wl_CXX='-Wl,'
  30814. - lt_prog_compiler_pic_CXX='-fpic'
  30815. - lt_prog_compiler_static_CXX='-static'
  30816. - ;;
  30817. - cxx*)
  30818. - # Compaq C++
  30819. - # Make sure the PIC flag is empty. It appears that all Alpha
  30820. - # Linux and Compaq Tru64 Unix objects are PIC.
  30821. - lt_prog_compiler_pic_CXX=
  30822. - lt_prog_compiler_static_CXX='-non_shared'
  30823. - ;;
  30824. - *)
  30825. - ;;
  30826. - esac
  30827. - ;;
  30828. - lynxos*)
  30829. - ;;
  30830. - m88k*)
  30831. - ;;
  30832. - mvs*)
  30833. - case $cc_basename in
  30834. - cxx*)
  30835. - lt_prog_compiler_pic_CXX='-W c,exportall'
  30836. - ;;
  30837. - *)
  30838. - ;;
  30839. - esac
  30840. - ;;
  30841. - netbsd*)
  30842. - ;;
  30843. - osf3* | osf4* | osf5*)
  30844. - case $cc_basename in
  30845. - KCC*)
  30846. - lt_prog_compiler_wl_CXX='--backend -Wl,'
  30847. - ;;
  30848. - RCC*)
  30849. - # Rational C++ 2.4.1
  30850. - lt_prog_compiler_pic_CXX='-pic'
  30851. - ;;
  30852. - cxx*)
  30853. - # Digital/Compaq C++
  30854. - lt_prog_compiler_wl_CXX='-Wl,'
  30855. - # Make sure the PIC flag is empty. It appears that all Alpha
  30856. - # Linux and Compaq Tru64 Unix objects are PIC.
  30857. - lt_prog_compiler_pic_CXX=
  30858. - lt_prog_compiler_static_CXX='-non_shared'
  30859. - ;;
  30860. - *)
  30861. - ;;
  30862. - esac
  30863. - ;;
  30864. - psos*)
  30865. - ;;
  30866. - sco*)
  30867. - case $cc_basename in
  30868. - CC*)
  30869. - lt_prog_compiler_pic_CXX='-fPIC'
  30870. - ;;
  30871. - *)
  30872. - ;;
  30873. - esac
  30874. - ;;
  30875. - solaris*)
  30876. - case $cc_basename in
  30877. - CC*)
  30878. - # Sun C++ 4.2, 5.x and Centerline C++
  30879. - lt_prog_compiler_pic_CXX='-KPIC'
  30880. - lt_prog_compiler_static_CXX='-Bstatic'
  30881. - lt_prog_compiler_wl_CXX='-Qoption ld '
  30882. - ;;
  30883. - gcx*)
  30884. - # Green Hills C++ Compiler
  30885. - lt_prog_compiler_pic_CXX='-PIC'
  30886. - ;;
  30887. - *)
  30888. - ;;
  30889. - esac
  30890. - ;;
  30891. - sunos4*)
  30892. - case $cc_basename in
  30893. - CC*)
  30894. - # Sun C++ 4.x
  30895. - lt_prog_compiler_pic_CXX='-pic'
  30896. - lt_prog_compiler_static_CXX='-Bstatic'
  30897. - ;;
  30898. - lcc*)
  30899. - # Lucid
  30900. - lt_prog_compiler_pic_CXX='-pic'
  30901. - ;;
  30902. - *)
  30903. - ;;
  30904. - esac
  30905. - ;;
  30906. - tandem*)
  30907. - case $cc_basename in
  30908. - NCC*)
  30909. - # NonStop-UX NCC 3.20
  30910. - lt_prog_compiler_pic_CXX='-KPIC'
  30911. - ;;
  30912. - *)
  30913. - ;;
  30914. - esac
  30915. - ;;
  30916. - unixware*)
  30917. - ;;
  30918. - vxworks*)
  30919. - ;;
  30920. - *)
  30921. - lt_prog_compiler_can_build_shared_CXX=no
  30922. - ;;
  30923. - esac
  30924. - fi
  30925. -
  30926. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5
  30927. -echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6
  30928. -
  30929. -#
  30930. -# Check to make sure the PIC flag actually works.
  30931. -#
  30932. -if test -n "$lt_prog_compiler_pic_CXX"; then
  30933. -
  30934. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  30935. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6
  30936. -if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then
  30937. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30938. -else
  30939. - lt_prog_compiler_pic_works_CXX=no
  30940. - ac_outfile=conftest.$ac_objext
  30941. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  30942. - lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  30943. - # Insert the option either (1) after the last *FLAGS variable, or
  30944. - # (2) before a word containing "conftest.", or (3) at the end.
  30945. - # Note that $ac_compile itself does not contain backslashes and begins
  30946. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  30947. - # The option is referenced via a variable to avoid confusing sed.
  30948. - lt_compile=`echo "$ac_compile" | $SED \
  30949. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  30950. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  30951. - -e 's:$: $lt_compiler_flag:'`
  30952. - (eval echo "\"\$as_me:11271: $lt_compile\"" >&5)
  30953. - (eval "$lt_compile" 2>conftest.err)
  30954. - ac_status=$?
  30955. - cat conftest.err >&5
  30956. - echo "$as_me:11275: \$? = $ac_status" >&5
  30957. - if (exit $ac_status) && test -s "$ac_outfile"; then
  30958. - # The compiler can only warn and ignore the option if not recognized
  30959. - # So say no if there are warnings other than the usual output.
  30960. - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  30961. - $SED '/^$/d' conftest.err >conftest.er2
  30962. - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  30963. - lt_prog_compiler_pic_works_CXX=yes
  30964. - fi
  30965. - fi
  30966. - $rm conftest*
  30967. -
  30968. -fi
  30969. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5
  30970. -echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6
  30971. -
  30972. -if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then
  30973. - case $lt_prog_compiler_pic_CXX in
  30974. - "" | " "*) ;;
  30975. - *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  30976. - esac
  30977. -else
  30978. - lt_prog_compiler_pic_CXX=
  30979. - lt_prog_compiler_can_build_shared_CXX=no
  30980. -fi
  30981. -
  30982. -fi
  30983. -case "$host_os" in
  30984. - # For platforms which do not support PIC, -DPIC is meaningless:
  30985. - *djgpp*)
  30986. - lt_prog_compiler_pic_CXX=
  30987. - ;;
  30988. - *)
  30989. - lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  30990. - ;;
  30991. -esac
  30992. -
  30993. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  30994. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  30995. -if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then
  30996. - echo $ECHO_N "(cached) $ECHO_C" >&6
  30997. -else
  30998. - lt_cv_prog_compiler_c_o_CXX=no
  30999. - $rm -r conftest 2>/dev/null
  31000. - mkdir conftest
  31001. - cd conftest
  31002. - mkdir out
  31003. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31004. -
  31005. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  31006. - # Insert the option either (1) after the last *FLAGS variable, or
  31007. - # (2) before a word containing "conftest.", or (3) at the end.
  31008. - # Note that $ac_compile itself does not contain backslashes and begins
  31009. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  31010. - lt_compile=`echo "$ac_compile" | $SED \
  31011. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  31012. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  31013. - -e 's:$: $lt_compiler_flag:'`
  31014. - (eval echo "\"\$as_me:11333: $lt_compile\"" >&5)
  31015. - (eval "$lt_compile" 2>out/conftest.err)
  31016. - ac_status=$?
  31017. - cat out/conftest.err >&5
  31018. - echo "$as_me:11337: \$? = $ac_status" >&5
  31019. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  31020. - then
  31021. - # The compiler can only warn and ignore the option if not recognized
  31022. - # So say no if there are warnings
  31023. - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  31024. - $SED '/^$/d' out/conftest.err >out/conftest.er2
  31025. - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  31026. - lt_cv_prog_compiler_c_o_CXX=yes
  31027. - fi
  31028. - fi
  31029. - chmod u+w .
  31030. - $rm conftest*
  31031. - # SGI C++ compiler will create directory out/ii_files/ for
  31032. - # template instantiation
  31033. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  31034. - $rm out/* && rmdir out
  31035. - cd ..
  31036. - rmdir conftest
  31037. - $rm conftest*
  31038. -
  31039. -fi
  31040. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  31041. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6
  31042. -
  31043. -
  31044. -hard_links="nottested"
  31045. -if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  31046. - # do not overwrite the value of need_locks provided by the user
  31047. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  31048. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  31049. - hard_links=yes
  31050. - $rm conftest*
  31051. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31052. - touch conftest.a
  31053. - ln conftest.a conftest.b 2>&5 || hard_links=no
  31054. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  31055. - echo "$as_me:$LINENO: result: $hard_links" >&5
  31056. -echo "${ECHO_T}$hard_links" >&6
  31057. - if test "$hard_links" = no; then
  31058. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  31059. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  31060. - need_locks=warn
  31061. - fi
  31062. -else
  31063. - need_locks=no
  31064. -fi
  31065. -
  31066. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  31067. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  31068. -
  31069. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31070. - case $host_os in
  31071. - aix4* | aix5*)
  31072. - # If we're using GNU nm, then we don't want the "-C" option.
  31073. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  31074. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  31075. - 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'
  31076. - else
  31077. - 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'
  31078. - fi
  31079. - ;;
  31080. - pw32*)
  31081. - export_symbols_cmds_CXX="$ltdll_cmds"
  31082. - ;;
  31083. - cygwin* | mingw*)
  31084. - 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'
  31085. - ;;
  31086. - *)
  31087. - export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  31088. - ;;
  31089. - esac
  31090. -
  31091. -echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5
  31092. -echo "${ECHO_T}$ld_shlibs_CXX" >&6
  31093. -test "$ld_shlibs_CXX" = no && can_build_shared=no
  31094. -
  31095. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  31096. -if test "$GCC" = yes; then
  31097. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  31098. -fi
  31099. -
  31100. -#
  31101. -# Do we need to explicitly link libc?
  31102. -#
  31103. -case "x$archive_cmds_need_lc_CXX" in
  31104. -x|xyes)
  31105. - # Assume -lc should be added
  31106. - archive_cmds_need_lc_CXX=yes
  31107. -
  31108. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  31109. - case $archive_cmds_CXX in
  31110. - *'~'*)
  31111. - # FIXME: we may have to deal with multi-command sequences.
  31112. - ;;
  31113. - '$CC '*)
  31114. - # Test whether the compiler implicitly links with -lc since on some
  31115. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  31116. - # to ld, don't add -lc before -lgcc.
  31117. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  31118. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  31119. - $rm conftest*
  31120. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  31121. -
  31122. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31123. - (eval $ac_compile) 2>&5
  31124. - ac_status=$?
  31125. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31126. - (exit $ac_status); } 2>conftest.err; then
  31127. - soname=conftest
  31128. - lib=conftest
  31129. - libobjs=conftest.$ac_objext
  31130. - deplibs=
  31131. - wl=$lt_prog_compiler_wl_CXX
  31132. - compiler_flags=-v
  31133. - linker_flags=-v
  31134. - verstring=
  31135. - output_objdir=.
  31136. - libname=conftest
  31137. - lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  31138. - allow_undefined_flag_CXX=
  31139. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  31140. - (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  31141. - ac_status=$?
  31142. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31143. - (exit $ac_status); }
  31144. - then
  31145. - archive_cmds_need_lc_CXX=no
  31146. - else
  31147. - archive_cmds_need_lc_CXX=yes
  31148. - fi
  31149. - allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  31150. - else
  31151. - cat conftest.err 1>&5
  31152. - fi
  31153. - $rm conftest*
  31154. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5
  31155. -echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6
  31156. - ;;
  31157. - esac
  31158. - fi
  31159. - ;;
  31160. -esac
  31161. -
  31162. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  31163. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  31164. -library_names_spec=
  31165. -libname_spec='lib$name'
  31166. -soname_spec=
  31167. -shrext_cmds=".so"
  31168. -postinstall_cmds=
  31169. -postuninstall_cmds=
  31170. -finish_cmds=
  31171. -finish_eval=
  31172. -shlibpath_var=
  31173. -shlibpath_overrides_runpath=unknown
  31174. -version_type=none
  31175. -dynamic_linker="$host_os ld.so"
  31176. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  31177. -if test "$GCC" = yes; then
  31178. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31179. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  31180. - # if the path contains ";" then we assume it to be the separator
  31181. - # otherwise default to the standard path separator (i.e. ":") - it is
  31182. - # assumed that no part of a normal pathname contains ";" but that should
  31183. - # okay in the real world where ";" in dirpaths is itself problematic.
  31184. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31185. - else
  31186. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31187. - fi
  31188. -else
  31189. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  31190. -fi
  31191. -need_lib_prefix=unknown
  31192. -hardcode_into_libs=no
  31193. -
  31194. -# when you set need_version to no, make sure it does not cause -set_version
  31195. -# flags to be left without arguments
  31196. -need_version=unknown
  31197. -
  31198. -case $host_os in
  31199. -aix3*)
  31200. - version_type=linux
  31201. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  31202. - shlibpath_var=LIBPATH
  31203. -
  31204. - # AIX 3 has no versioning support, so we append a major version to the name.
  31205. - soname_spec='${libname}${release}${shared_ext}$major'
  31206. - ;;
  31207. -
  31208. -aix4* | aix5*)
  31209. - version_type=linux
  31210. - need_lib_prefix=no
  31211. - need_version=no
  31212. - hardcode_into_libs=yes
  31213. - if test "$host_cpu" = ia64; then
  31214. - # AIX 5 supports IA64
  31215. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  31216. - shlibpath_var=LD_LIBRARY_PATH
  31217. - else
  31218. - # With GCC up to 2.95.x, collect2 would create an import file
  31219. - # for dependence libraries. The import file would start with
  31220. - # the line `#! .'. This would cause the generated library to
  31221. - # depend on `.', always an invalid library. This was fixed in
  31222. - # development snapshots of GCC prior to 3.0.
  31223. - case $host_os in
  31224. - aix4 | aix4.[01] | aix4.[01].*)
  31225. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  31226. - echo ' yes '
  31227. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  31228. - :
  31229. - else
  31230. - can_build_shared=no
  31231. - fi
  31232. - ;;
  31233. - esac
  31234. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  31235. - # soname into executable. Probably we can add versioning support to
  31236. - # collect2, so additional links can be useful in future.
  31237. - if test "$aix_use_runtimelinking" = yes; then
  31238. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  31239. - # instead of lib<name>.a to let people know that these are not
  31240. - # typical AIX shared libraries.
  31241. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31242. - else
  31243. - # We preserve .a as extension for shared libraries through AIX4.2
  31244. - # and later when we are not doing run time linking.
  31245. - library_names_spec='${libname}${release}.a $libname.a'
  31246. - soname_spec='${libname}${release}${shared_ext}$major'
  31247. - fi
  31248. - shlibpath_var=LIBPATH
  31249. - fi
  31250. - ;;
  31251. -
  31252. -amigaos*)
  31253. - library_names_spec='$libname.ixlibrary $libname.a'
  31254. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  31255. - 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'
  31256. - ;;
  31257. -
  31258. -beos*)
  31259. - library_names_spec='${libname}${shared_ext}'
  31260. - dynamic_linker="$host_os ld.so"
  31261. - shlibpath_var=LIBRARY_PATH
  31262. - ;;
  31263. -
  31264. -bsdi[45]*)
  31265. - version_type=linux
  31266. - need_version=no
  31267. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31268. - soname_spec='${libname}${release}${shared_ext}$major'
  31269. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  31270. - shlibpath_var=LD_LIBRARY_PATH
  31271. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  31272. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  31273. - # the default ld.so.conf also contains /usr/contrib/lib and
  31274. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  31275. - # libtool to hard-code these into programs
  31276. - ;;
  31277. -
  31278. -cygwin* | mingw* | pw32*)
  31279. - version_type=windows
  31280. - shrext_cmds=".dll"
  31281. - need_version=no
  31282. - need_lib_prefix=no
  31283. -
  31284. - case $GCC,$host_os in
  31285. - yes,cygwin* | yes,mingw* | yes,pw32*)
  31286. - library_names_spec='$libname.dll.a'
  31287. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  31288. - postinstall_cmds='base_file=`basename \${file}`~
  31289. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  31290. - dldir=$destdir/`dirname \$dlpath`~
  31291. - test -d \$dldir || mkdir -p \$dldir~
  31292. - $install_prog $dir/$dlname \$dldir/$dlname'
  31293. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  31294. - dlpath=$dir/\$dldll~
  31295. - $rm \$dlpath'
  31296. - shlibpath_overrides_runpath=yes
  31297. -
  31298. - case $host_os in
  31299. - cygwin*)
  31300. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  31301. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31302. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  31303. - ;;
  31304. - mingw*)
  31305. - # MinGW DLLs use traditional 'lib' prefix
  31306. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31307. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  31308. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  31309. - # It is most probably a Windows format PATH printed by
  31310. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  31311. - # path with ; separators, and with drive letters. We can handle the
  31312. - # drive letters (cygwin fileutils understands them), so leave them,
  31313. - # especially as we might pass files found there to a mingw objdump,
  31314. - # which wouldn't understand a cygwinified path. Ahh.
  31315. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  31316. - else
  31317. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  31318. - fi
  31319. - ;;
  31320. - pw32*)
  31321. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  31322. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  31323. - ;;
  31324. - esac
  31325. - ;;
  31326. -
  31327. - *)
  31328. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  31329. - ;;
  31330. - esac
  31331. - dynamic_linker='Win32 ld.exe'
  31332. - # FIXME: first we should search . and the directory the executable is in
  31333. - shlibpath_var=PATH
  31334. - ;;
  31335. -
  31336. -darwin* | rhapsody*)
  31337. - dynamic_linker="$host_os dyld"
  31338. - version_type=darwin
  31339. - need_lib_prefix=no
  31340. - need_version=no
  31341. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  31342. - soname_spec='${libname}${release}${major}$shared_ext'
  31343. - shlibpath_overrides_runpath=yes
  31344. - shlibpath_var=DYLD_LIBRARY_PATH
  31345. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  31346. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  31347. - if test "$GCC" = yes; then
  31348. - 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"`
  31349. - else
  31350. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  31351. - fi
  31352. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  31353. - ;;
  31354. -
  31355. -dgux*)
  31356. - version_type=linux
  31357. - need_lib_prefix=no
  31358. - need_version=no
  31359. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  31360. - soname_spec='${libname}${release}${shared_ext}$major'
  31361. - shlibpath_var=LD_LIBRARY_PATH
  31362. - ;;
  31363. -
  31364. -freebsd1*)
  31365. - dynamic_linker=no
  31366. - ;;
  31367. -
  31368. -kfreebsd*-gnu)
  31369. - version_type=linux
  31370. - need_lib_prefix=no
  31371. - need_version=no
  31372. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31373. - soname_spec='${libname}${release}${shared_ext}$major'
  31374. - shlibpath_var=LD_LIBRARY_PATH
  31375. - shlibpath_overrides_runpath=no
  31376. - hardcode_into_libs=yes
  31377. - dynamic_linker='GNU ld.so'
  31378. - ;;
  31379. -
  31380. -freebsd* | dragonfly*)
  31381. - # DragonFly does not have aout. When/if they implement a new
  31382. - # versioning mechanism, adjust this.
  31383. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  31384. - version_type=freebsd-$objformat
  31385. - case $version_type in
  31386. - freebsd-elf*)
  31387. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  31388. - need_version=no
  31389. - need_lib_prefix=no
  31390. - ;;
  31391. - freebsd-*)
  31392. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  31393. - need_version=yes
  31394. - ;;
  31395. - esac
  31396. - shlibpath_var=LD_LIBRARY_PATH
  31397. - case $host_os in
  31398. - freebsd2*)
  31399. - shlibpath_overrides_runpath=yes
  31400. - ;;
  31401. - freebsd3.[01]* | freebsdelf3.[01]*)
  31402. - shlibpath_overrides_runpath=yes
  31403. - hardcode_into_libs=yes
  31404. - ;;
  31405. - *) # from 3.2 on
  31406. - shlibpath_overrides_runpath=no
  31407. - hardcode_into_libs=yes
  31408. - ;;
  31409. - esac
  31410. - ;;
  31411. -
  31412. -gnu*)
  31413. - version_type=linux
  31414. - need_lib_prefix=no
  31415. - need_version=no
  31416. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  31417. - soname_spec='${libname}${release}${shared_ext}$major'
  31418. - shlibpath_var=LD_LIBRARY_PATH
  31419. - hardcode_into_libs=yes
  31420. - ;;
  31421. -
  31422. -hpux9* | hpux10* | hpux11*)
  31423. - # Give a soname corresponding to the major version so that dld.sl refuses to
  31424. - # link against other versions.
  31425. - version_type=sunos
  31426. - need_lib_prefix=no
  31427. - need_version=no
  31428. - case "$host_cpu" in
  31429. - ia64*)
  31430. - shrext_cmds='.so'
  31431. - hardcode_into_libs=yes
  31432. - dynamic_linker="$host_os dld.so"
  31433. - shlibpath_var=LD_LIBRARY_PATH
  31434. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31435. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31436. - soname_spec='${libname}${release}${shared_ext}$major'
  31437. - if test "X$HPUX_IA64_MODE" = X32; then
  31438. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  31439. - else
  31440. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  31441. - fi
  31442. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31443. - ;;
  31444. - hppa*64*)
  31445. - shrext_cmds='.sl'
  31446. - hardcode_into_libs=yes
  31447. - dynamic_linker="$host_os dld.sl"
  31448. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  31449. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  31450. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31451. - soname_spec='${libname}${release}${shared_ext}$major'
  31452. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  31453. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  31454. - ;;
  31455. - *)
  31456. - shrext_cmds='.sl'
  31457. - dynamic_linker="$host_os dld.sl"
  31458. - shlibpath_var=SHLIB_PATH
  31459. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  31460. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31461. - soname_spec='${libname}${release}${shared_ext}$major'
  31462. - ;;
  31463. - esac
  31464. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  31465. - postinstall_cmds='chmod 555 $lib'
  31466. - ;;
  31467. -
  31468. -irix5* | irix6* | nonstopux*)
  31469. - case $host_os in
  31470. - nonstopux*) version_type=nonstopux ;;
  31471. - *)
  31472. - if test "$lt_cv_prog_gnu_ld" = yes; then
  31473. - version_type=linux
  31474. - else
  31475. - version_type=irix
  31476. - fi ;;
  31477. - esac
  31478. - need_lib_prefix=no
  31479. - need_version=no
  31480. - soname_spec='${libname}${release}${shared_ext}$major'
  31481. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  31482. - case $host_os in
  31483. - irix5* | nonstopux*)
  31484. - libsuff= shlibsuff=
  31485. - ;;
  31486. - *)
  31487. - case $LD in # libtool.m4 will add one of these switches to LD
  31488. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  31489. - libsuff= shlibsuff= libmagic=32-bit;;
  31490. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  31491. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  31492. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  31493. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  31494. - *) libsuff= shlibsuff= libmagic=never-match;;
  31495. - esac
  31496. - ;;
  31497. - esac
  31498. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  31499. - shlibpath_overrides_runpath=no
  31500. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  31501. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  31502. - hardcode_into_libs=yes
  31503. - ;;
  31504. -
  31505. -# No shared lib support for Linux oldld, aout, or coff.
  31506. -linux*oldld* | linux*aout* | linux*coff*)
  31507. - dynamic_linker=no
  31508. - ;;
  31509. -
  31510. -# This must be Linux ELF.
  31511. -linux*)
  31512. - version_type=linux
  31513. - need_lib_prefix=no
  31514. - need_version=no
  31515. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31516. - soname_spec='${libname}${release}${shared_ext}$major'
  31517. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  31518. - shlibpath_var=LD_LIBRARY_PATH
  31519. - shlibpath_overrides_runpath=no
  31520. - # This implies no fast_install, which is unacceptable.
  31521. - # Some rework will be needed to allow for fast_install
  31522. - # before this can be enabled.
  31523. - hardcode_into_libs=yes
  31524. -
  31525. - # find out which ABI we are using
  31526. - libsuff=
  31527. - case "$host_cpu" in
  31528. - x86_64*|s390x*|powerpc64*)
  31529. - echo '#line 11848 "configure"' > conftest.$ac_ext
  31530. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  31531. - (eval $ac_compile) 2>&5
  31532. - ac_status=$?
  31533. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31534. - (exit $ac_status); }; then
  31535. - case `/usr/bin/file conftest.$ac_objext` in
  31536. - *64-bit*)
  31537. - libsuff=64
  31538. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  31539. - ;;
  31540. - esac
  31541. - fi
  31542. - rm -rf conftest*
  31543. - ;;
  31544. - esac
  31545. -
  31546. - # Append ld.so.conf contents to the search path
  31547. - if test -f /etc/ld.so.conf; then
  31548. - 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  31549. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  31550. - fi
  31551. -
  31552. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  31553. - # powerpc, because MkLinux only supported shared libraries with the
  31554. - # GNU dynamic linker. Since this was broken with cross compilers,
  31555. - # most powerpc-linux boxes support dynamic linking these days and
  31556. - # people can always --disable-shared, the test was removed, and we
  31557. - # assume the GNU/Linux dynamic linker is in use.
  31558. - dynamic_linker='GNU/Linux ld.so'
  31559. - ;;
  31560. -
  31561. -knetbsd*-gnu)
  31562. - version_type=linux
  31563. - need_lib_prefix=no
  31564. - need_version=no
  31565. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31566. - soname_spec='${libname}${release}${shared_ext}$major'
  31567. - shlibpath_var=LD_LIBRARY_PATH
  31568. - shlibpath_overrides_runpath=no
  31569. - hardcode_into_libs=yes
  31570. - dynamic_linker='GNU ld.so'
  31571. - ;;
  31572. -
  31573. -netbsd*)
  31574. - version_type=sunos
  31575. - need_lib_prefix=no
  31576. - need_version=no
  31577. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  31578. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31579. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31580. - dynamic_linker='NetBSD (a.out) ld.so'
  31581. - else
  31582. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  31583. - soname_spec='${libname}${release}${shared_ext}$major'
  31584. - dynamic_linker='NetBSD ld.elf_so'
  31585. - fi
  31586. - shlibpath_var=LD_LIBRARY_PATH
  31587. - shlibpath_overrides_runpath=yes
  31588. - hardcode_into_libs=yes
  31589. - ;;
  31590. -
  31591. -newsos6)
  31592. - version_type=linux
  31593. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31594. - shlibpath_var=LD_LIBRARY_PATH
  31595. - shlibpath_overrides_runpath=yes
  31596. - ;;
  31597. -
  31598. -nto-qnx*)
  31599. - version_type=linux
  31600. - need_lib_prefix=no
  31601. - need_version=no
  31602. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31603. - soname_spec='${libname}${release}${shared_ext}$major'
  31604. - shlibpath_var=LD_LIBRARY_PATH
  31605. - shlibpath_overrides_runpath=yes
  31606. - ;;
  31607. -
  31608. -openbsd*)
  31609. - version_type=sunos
  31610. - need_lib_prefix=no
  31611. - need_version=no
  31612. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31613. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  31614. - shlibpath_var=LD_LIBRARY_PATH
  31615. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  31616. - case $host_os in
  31617. - openbsd2.[89] | openbsd2.[89].*)
  31618. - shlibpath_overrides_runpath=no
  31619. - ;;
  31620. - *)
  31621. - shlibpath_overrides_runpath=yes
  31622. - ;;
  31623. - esac
  31624. - else
  31625. - shlibpath_overrides_runpath=yes
  31626. - fi
  31627. - ;;
  31628. -
  31629. -os2*)
  31630. - libname_spec='$name'
  31631. - shrext_cmds=".dll"
  31632. - need_lib_prefix=no
  31633. - library_names_spec='$libname${shared_ext} $libname.a'
  31634. - dynamic_linker='OS/2 ld.exe'
  31635. - shlibpath_var=LIBPATH
  31636. - ;;
  31637. -
  31638. -osf3* | osf4* | osf5*)
  31639. - version_type=osf
  31640. - need_lib_prefix=no
  31641. - need_version=no
  31642. - soname_spec='${libname}${release}${shared_ext}$major'
  31643. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31644. - shlibpath_var=LD_LIBRARY_PATH
  31645. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  31646. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  31647. - ;;
  31648. -
  31649. -sco3.2v5*)
  31650. - version_type=osf
  31651. - soname_spec='${libname}${release}${shared_ext}$major'
  31652. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31653. - shlibpath_var=LD_LIBRARY_PATH
  31654. - ;;
  31655. -
  31656. -solaris*)
  31657. - version_type=linux
  31658. - need_lib_prefix=no
  31659. - need_version=no
  31660. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31661. - soname_spec='${libname}${release}${shared_ext}$major'
  31662. - shlibpath_var=LD_LIBRARY_PATH
  31663. - shlibpath_overrides_runpath=yes
  31664. - hardcode_into_libs=yes
  31665. - # ldd complains unless libraries are executable
  31666. - postinstall_cmds='chmod +x $lib'
  31667. - ;;
  31668. -
  31669. -sunos4*)
  31670. - version_type=sunos
  31671. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  31672. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  31673. - shlibpath_var=LD_LIBRARY_PATH
  31674. - shlibpath_overrides_runpath=yes
  31675. - if test "$with_gnu_ld" = yes; then
  31676. - need_lib_prefix=no
  31677. - fi
  31678. - need_version=yes
  31679. - ;;
  31680. -
  31681. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  31682. - version_type=linux
  31683. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31684. - soname_spec='${libname}${release}${shared_ext}$major'
  31685. - shlibpath_var=LD_LIBRARY_PATH
  31686. - case $host_vendor in
  31687. - sni)
  31688. - shlibpath_overrides_runpath=no
  31689. - need_lib_prefix=no
  31690. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  31691. - runpath_var=LD_RUN_PATH
  31692. - ;;
  31693. - siemens)
  31694. - need_lib_prefix=no
  31695. - ;;
  31696. - motorola)
  31697. - need_lib_prefix=no
  31698. - need_version=no
  31699. - shlibpath_overrides_runpath=no
  31700. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  31701. - ;;
  31702. - esac
  31703. - ;;
  31704. -
  31705. -sysv4*MP*)
  31706. - if test -d /usr/nec ;then
  31707. - version_type=linux
  31708. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  31709. - soname_spec='$libname${shared_ext}.$major'
  31710. - shlibpath_var=LD_LIBRARY_PATH
  31711. - fi
  31712. - ;;
  31713. -
  31714. -uts4*)
  31715. - version_type=linux
  31716. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  31717. - soname_spec='${libname}${release}${shared_ext}$major'
  31718. - shlibpath_var=LD_LIBRARY_PATH
  31719. - ;;
  31720. -
  31721. -*)
  31722. - dynamic_linker=no
  31723. - ;;
  31724. -esac
  31725. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  31726. -echo "${ECHO_T}$dynamic_linker" >&6
  31727. -test "$dynamic_linker" = no && can_build_shared=no
  31728. -
  31729. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  31730. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  31731. -hardcode_action_CXX=
  31732. -if test -n "$hardcode_libdir_flag_spec_CXX" || \
  31733. - test -n "$runpath_var_CXX" || \
  31734. - test "X$hardcode_automatic_CXX" = "Xyes" ; then
  31735. -
  31736. - # We can hardcode non-existant directories.
  31737. - if test "$hardcode_direct_CXX" != no &&
  31738. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  31739. - # have to relink, otherwise we might link with an installed library
  31740. - # when we should be linking with a yet-to-be-installed one
  31741. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  31742. - test "$hardcode_minus_L_CXX" != no; then
  31743. - # Linking always hardcodes the temporary library directory.
  31744. - hardcode_action_CXX=relink
  31745. - else
  31746. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  31747. - hardcode_action_CXX=immediate
  31748. - fi
  31749. -else
  31750. - # We cannot hardcode anything, or else we can only hardcode existing
  31751. - # directories.
  31752. - hardcode_action_CXX=unsupported
  31753. -fi
  31754. -echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5
  31755. -echo "${ECHO_T}$hardcode_action_CXX" >&6
  31756. -
  31757. -if test "$hardcode_action_CXX" = relink; then
  31758. - # Fast installation is not supported
  31759. - enable_fast_install=no
  31760. -elif test "$shlibpath_overrides_runpath" = yes ||
  31761. - test "$enable_shared" = no; then
  31762. - # Fast installation is not necessary
  31763. - enable_fast_install=needless
  31764. -fi
  31765. -
  31766. -striplib=
  31767. -old_striplib=
  31768. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  31769. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  31770. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  31771. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  31772. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  31773. - echo "$as_me:$LINENO: result: yes" >&5
  31774. -echo "${ECHO_T}yes" >&6
  31775. -else
  31776. -# FIXME - insert some real tests, host_os isn't really good enough
  31777. - case $host_os in
  31778. - darwin*)
  31779. - if test -n "$STRIP" ; then
  31780. - striplib="$STRIP -x"
  31781. - echo "$as_me:$LINENO: result: yes" >&5
  31782. -echo "${ECHO_T}yes" >&6
  31783. - else
  31784. - echo "$as_me:$LINENO: result: no" >&5
  31785. -echo "${ECHO_T}no" >&6
  31786. -fi
  31787. - ;;
  31788. - *)
  31789. - echo "$as_me:$LINENO: result: no" >&5
  31790. -echo "${ECHO_T}no" >&6
  31791. - ;;
  31792. - esac
  31793. -fi
  31794. -
  31795. -if test "x$enable_dlopen" != xyes; then
  31796. - enable_dlopen=unknown
  31797. - enable_dlopen_self=unknown
  31798. - enable_dlopen_self_static=unknown
  31799. -else
  31800. - lt_cv_dlopen=no
  31801. - lt_cv_dlopen_libs=
  31802. -
  31803. - case $host_os in
  31804. - beos*)
  31805. - lt_cv_dlopen="load_add_on"
  31806. - lt_cv_dlopen_libs=
  31807. - lt_cv_dlopen_self=yes
  31808. - ;;
  31809. -
  31810. - mingw* | pw32*)
  31811. - lt_cv_dlopen="LoadLibrary"
  31812. - lt_cv_dlopen_libs=
  31813. - ;;
  31814. -
  31815. - cygwin*)
  31816. - lt_cv_dlopen="dlopen"
  31817. - lt_cv_dlopen_libs=
  31818. - ;;
  31819. -
  31820. - darwin*)
  31821. - # if libdl is installed we need to link against it
  31822. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  31823. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  31824. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  31825. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31826. -else
  31827. - ac_check_lib_save_LIBS=$LIBS
  31828. -LIBS="-ldl $LIBS"
  31829. -cat >conftest.$ac_ext <<_ACEOF
  31830. -/* confdefs.h. */
  31831. -_ACEOF
  31832. -cat confdefs.h >>conftest.$ac_ext
  31833. -cat >>conftest.$ac_ext <<_ACEOF
  31834. -/* end confdefs.h. */
  31835. -
  31836. -/* Override any gcc2 internal prototype to avoid an error. */
  31837. -#ifdef __cplusplus
  31838. -extern "C"
  31839. -#endif
  31840. -/* We use char because int might match the return type of a gcc2
  31841. - builtin and then its argument prototype would still apply. */
  31842. -char dlopen ();
  31843. -int
  31844. -main ()
  31845. -{
  31846. -dlopen ();
  31847. - ;
  31848. - return 0;
  31849. -}
  31850. -_ACEOF
  31851. -rm -f conftest.$ac_objext conftest$ac_exeext
  31852. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31853. - (eval $ac_link) 2>conftest.er1
  31854. - ac_status=$?
  31855. - grep -v '^ *+' conftest.er1 >conftest.err
  31856. - rm -f conftest.er1
  31857. - cat conftest.err >&5
  31858. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31859. - (exit $ac_status); } &&
  31860. - { ac_try='test -z "$ac_cxx_werror_flag"
  31861. - || test ! -s conftest.err'
  31862. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31863. - (eval $ac_try) 2>&5
  31864. - ac_status=$?
  31865. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31866. - (exit $ac_status); }; } &&
  31867. - { ac_try='test -s conftest$ac_exeext'
  31868. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31869. - (eval $ac_try) 2>&5
  31870. - ac_status=$?
  31871. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31872. - (exit $ac_status); }; }; then
  31873. - ac_cv_lib_dl_dlopen=yes
  31874. -else
  31875. - echo "$as_me: failed program was:" >&5
  31876. -sed 's/^/| /' conftest.$ac_ext >&5
  31877. -
  31878. -ac_cv_lib_dl_dlopen=no
  31879. -fi
  31880. -rm -f conftest.err conftest.$ac_objext \
  31881. - conftest$ac_exeext conftest.$ac_ext
  31882. -LIBS=$ac_check_lib_save_LIBS
  31883. -fi
  31884. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  31885. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  31886. -if test $ac_cv_lib_dl_dlopen = yes; then
  31887. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  31888. -else
  31889. -
  31890. - lt_cv_dlopen="dyld"
  31891. - lt_cv_dlopen_libs=
  31892. - lt_cv_dlopen_self=yes
  31893. -
  31894. -fi
  31895. -
  31896. - ;;
  31897. -
  31898. - *)
  31899. - echo "$as_me:$LINENO: checking for shl_load" >&5
  31900. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  31901. -if test "${ac_cv_func_shl_load+set}" = set; then
  31902. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31903. -else
  31904. - cat >conftest.$ac_ext <<_ACEOF
  31905. -/* confdefs.h. */
  31906. -_ACEOF
  31907. -cat confdefs.h >>conftest.$ac_ext
  31908. -cat >>conftest.$ac_ext <<_ACEOF
  31909. -/* end confdefs.h. */
  31910. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  31911. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  31912. -#define shl_load innocuous_shl_load
  31913. -
  31914. -/* System header to define __stub macros and hopefully few prototypes,
  31915. - which can conflict with char shl_load (); below.
  31916. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  31917. - <limits.h> exists even on freestanding compilers. */
  31918. -
  31919. -#ifdef __STDC__
  31920. -# include <limits.h>
  31921. -#else
  31922. -# include <assert.h>
  31923. -#endif
  31924. -
  31925. -#undef shl_load
  31926. -
  31927. -/* Override any gcc2 internal prototype to avoid an error. */
  31928. -#ifdef __cplusplus
  31929. -extern "C"
  31930. -{
  31931. -#endif
  31932. -/* We use char because int might match the return type of a gcc2
  31933. - builtin and then its argument prototype would still apply. */
  31934. -char shl_load ();
  31935. -/* The GNU C library defines this for functions which it implements
  31936. - to always fail with ENOSYS. Some functions are actually named
  31937. - something starting with __ and the normal name is an alias. */
  31938. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  31939. -choke me
  31940. -#else
  31941. -char (*f) () = shl_load;
  31942. -#endif
  31943. -#ifdef __cplusplus
  31944. -}
  31945. -#endif
  31946. -
  31947. -int
  31948. -main ()
  31949. -{
  31950. -return f != shl_load;
  31951. - ;
  31952. - return 0;
  31953. -}
  31954. -_ACEOF
  31955. -rm -f conftest.$ac_objext conftest$ac_exeext
  31956. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  31957. - (eval $ac_link) 2>conftest.er1
  31958. - ac_status=$?
  31959. - grep -v '^ *+' conftest.er1 >conftest.err
  31960. - rm -f conftest.er1
  31961. - cat conftest.err >&5
  31962. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31963. - (exit $ac_status); } &&
  31964. - { ac_try='test -z "$ac_cxx_werror_flag"
  31965. - || test ! -s conftest.err'
  31966. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31967. - (eval $ac_try) 2>&5
  31968. - ac_status=$?
  31969. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31970. - (exit $ac_status); }; } &&
  31971. - { ac_try='test -s conftest$ac_exeext'
  31972. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  31973. - (eval $ac_try) 2>&5
  31974. - ac_status=$?
  31975. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  31976. - (exit $ac_status); }; }; then
  31977. - ac_cv_func_shl_load=yes
  31978. -else
  31979. - echo "$as_me: failed program was:" >&5
  31980. -sed 's/^/| /' conftest.$ac_ext >&5
  31981. -
  31982. -ac_cv_func_shl_load=no
  31983. -fi
  31984. -rm -f conftest.err conftest.$ac_objext \
  31985. - conftest$ac_exeext conftest.$ac_ext
  31986. -fi
  31987. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  31988. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  31989. -if test $ac_cv_func_shl_load = yes; then
  31990. - lt_cv_dlopen="shl_load"
  31991. -else
  31992. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  31993. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  31994. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  31995. - echo $ECHO_N "(cached) $ECHO_C" >&6
  31996. -else
  31997. - ac_check_lib_save_LIBS=$LIBS
  31998. -LIBS="-ldld $LIBS"
  31999. -cat >conftest.$ac_ext <<_ACEOF
  32000. -/* confdefs.h. */
  32001. -_ACEOF
  32002. -cat confdefs.h >>conftest.$ac_ext
  32003. -cat >>conftest.$ac_ext <<_ACEOF
  32004. -/* end confdefs.h. */
  32005. -
  32006. -/* Override any gcc2 internal prototype to avoid an error. */
  32007. -#ifdef __cplusplus
  32008. -extern "C"
  32009. -#endif
  32010. -/* We use char because int might match the return type of a gcc2
  32011. - builtin and then its argument prototype would still apply. */
  32012. -char shl_load ();
  32013. -int
  32014. -main ()
  32015. -{
  32016. -shl_load ();
  32017. - ;
  32018. - return 0;
  32019. -}
  32020. -_ACEOF
  32021. -rm -f conftest.$ac_objext conftest$ac_exeext
  32022. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32023. - (eval $ac_link) 2>conftest.er1
  32024. - ac_status=$?
  32025. - grep -v '^ *+' conftest.er1 >conftest.err
  32026. - rm -f conftest.er1
  32027. - cat conftest.err >&5
  32028. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32029. - (exit $ac_status); } &&
  32030. - { ac_try='test -z "$ac_cxx_werror_flag"
  32031. - || test ! -s conftest.err'
  32032. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32033. - (eval $ac_try) 2>&5
  32034. - ac_status=$?
  32035. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32036. - (exit $ac_status); }; } &&
  32037. - { ac_try='test -s conftest$ac_exeext'
  32038. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32039. - (eval $ac_try) 2>&5
  32040. - ac_status=$?
  32041. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32042. - (exit $ac_status); }; }; then
  32043. - ac_cv_lib_dld_shl_load=yes
  32044. -else
  32045. - echo "$as_me: failed program was:" >&5
  32046. -sed 's/^/| /' conftest.$ac_ext >&5
  32047. -
  32048. -ac_cv_lib_dld_shl_load=no
  32049. -fi
  32050. -rm -f conftest.err conftest.$ac_objext \
  32051. - conftest$ac_exeext conftest.$ac_ext
  32052. -LIBS=$ac_check_lib_save_LIBS
  32053. -fi
  32054. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  32055. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  32056. -if test $ac_cv_lib_dld_shl_load = yes; then
  32057. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  32058. -else
  32059. - echo "$as_me:$LINENO: checking for dlopen" >&5
  32060. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  32061. -if test "${ac_cv_func_dlopen+set}" = set; then
  32062. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32063. -else
  32064. - cat >conftest.$ac_ext <<_ACEOF
  32065. -/* confdefs.h. */
  32066. -_ACEOF
  32067. -cat confdefs.h >>conftest.$ac_ext
  32068. -cat >>conftest.$ac_ext <<_ACEOF
  32069. -/* end confdefs.h. */
  32070. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  32071. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  32072. -#define dlopen innocuous_dlopen
  32073. -
  32074. -/* System header to define __stub macros and hopefully few prototypes,
  32075. - which can conflict with char dlopen (); below.
  32076. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  32077. - <limits.h> exists even on freestanding compilers. */
  32078. -
  32079. -#ifdef __STDC__
  32080. -# include <limits.h>
  32081. -#else
  32082. -# include <assert.h>
  32083. -#endif
  32084. -
  32085. -#undef dlopen
  32086. -
  32087. -/* Override any gcc2 internal prototype to avoid an error. */
  32088. -#ifdef __cplusplus
  32089. -extern "C"
  32090. -{
  32091. -#endif
  32092. -/* We use char because int might match the return type of a gcc2
  32093. - builtin and then its argument prototype would still apply. */
  32094. -char dlopen ();
  32095. -/* The GNU C library defines this for functions which it implements
  32096. - to always fail with ENOSYS. Some functions are actually named
  32097. - something starting with __ and the normal name is an alias. */
  32098. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  32099. -choke me
  32100. -#else
  32101. -char (*f) () = dlopen;
  32102. -#endif
  32103. -#ifdef __cplusplus
  32104. -}
  32105. -#endif
  32106. -
  32107. -int
  32108. -main ()
  32109. -{
  32110. -return f != dlopen;
  32111. - ;
  32112. - return 0;
  32113. -}
  32114. -_ACEOF
  32115. -rm -f conftest.$ac_objext conftest$ac_exeext
  32116. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32117. - (eval $ac_link) 2>conftest.er1
  32118. - ac_status=$?
  32119. - grep -v '^ *+' conftest.er1 >conftest.err
  32120. - rm -f conftest.er1
  32121. - cat conftest.err >&5
  32122. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32123. - (exit $ac_status); } &&
  32124. - { ac_try='test -z "$ac_cxx_werror_flag"
  32125. - || test ! -s conftest.err'
  32126. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32127. - (eval $ac_try) 2>&5
  32128. - ac_status=$?
  32129. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32130. - (exit $ac_status); }; } &&
  32131. - { ac_try='test -s conftest$ac_exeext'
  32132. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32133. - (eval $ac_try) 2>&5
  32134. - ac_status=$?
  32135. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32136. - (exit $ac_status); }; }; then
  32137. - ac_cv_func_dlopen=yes
  32138. -else
  32139. - echo "$as_me: failed program was:" >&5
  32140. -sed 's/^/| /' conftest.$ac_ext >&5
  32141. -
  32142. -ac_cv_func_dlopen=no
  32143. -fi
  32144. -rm -f conftest.err conftest.$ac_objext \
  32145. - conftest$ac_exeext conftest.$ac_ext
  32146. -fi
  32147. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  32148. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  32149. -if test $ac_cv_func_dlopen = yes; then
  32150. - lt_cv_dlopen="dlopen"
  32151. -else
  32152. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  32153. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  32154. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  32155. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32156. -else
  32157. - ac_check_lib_save_LIBS=$LIBS
  32158. -LIBS="-ldl $LIBS"
  32159. -cat >conftest.$ac_ext <<_ACEOF
  32160. -/* confdefs.h. */
  32161. -_ACEOF
  32162. -cat confdefs.h >>conftest.$ac_ext
  32163. -cat >>conftest.$ac_ext <<_ACEOF
  32164. -/* end confdefs.h. */
  32165. -
  32166. -/* Override any gcc2 internal prototype to avoid an error. */
  32167. -#ifdef __cplusplus
  32168. -extern "C"
  32169. -#endif
  32170. -/* We use char because int might match the return type of a gcc2
  32171. - builtin and then its argument prototype would still apply. */
  32172. -char dlopen ();
  32173. -int
  32174. -main ()
  32175. -{
  32176. -dlopen ();
  32177. - ;
  32178. - return 0;
  32179. -}
  32180. -_ACEOF
  32181. -rm -f conftest.$ac_objext conftest$ac_exeext
  32182. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32183. - (eval $ac_link) 2>conftest.er1
  32184. - ac_status=$?
  32185. - grep -v '^ *+' conftest.er1 >conftest.err
  32186. - rm -f conftest.er1
  32187. - cat conftest.err >&5
  32188. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32189. - (exit $ac_status); } &&
  32190. - { ac_try='test -z "$ac_cxx_werror_flag"
  32191. - || test ! -s conftest.err'
  32192. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32193. - (eval $ac_try) 2>&5
  32194. - ac_status=$?
  32195. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32196. - (exit $ac_status); }; } &&
  32197. - { ac_try='test -s conftest$ac_exeext'
  32198. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32199. - (eval $ac_try) 2>&5
  32200. - ac_status=$?
  32201. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32202. - (exit $ac_status); }; }; then
  32203. - ac_cv_lib_dl_dlopen=yes
  32204. -else
  32205. - echo "$as_me: failed program was:" >&5
  32206. -sed 's/^/| /' conftest.$ac_ext >&5
  32207. -
  32208. -ac_cv_lib_dl_dlopen=no
  32209. -fi
  32210. -rm -f conftest.err conftest.$ac_objext \
  32211. - conftest$ac_exeext conftest.$ac_ext
  32212. -LIBS=$ac_check_lib_save_LIBS
  32213. -fi
  32214. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  32215. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  32216. -if test $ac_cv_lib_dl_dlopen = yes; then
  32217. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  32218. -else
  32219. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  32220. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  32221. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  32222. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32223. -else
  32224. - ac_check_lib_save_LIBS=$LIBS
  32225. -LIBS="-lsvld $LIBS"
  32226. -cat >conftest.$ac_ext <<_ACEOF
  32227. -/* confdefs.h. */
  32228. -_ACEOF
  32229. -cat confdefs.h >>conftest.$ac_ext
  32230. -cat >>conftest.$ac_ext <<_ACEOF
  32231. -/* end confdefs.h. */
  32232. -
  32233. -/* Override any gcc2 internal prototype to avoid an error. */
  32234. -#ifdef __cplusplus
  32235. -extern "C"
  32236. -#endif
  32237. -/* We use char because int might match the return type of a gcc2
  32238. - builtin and then its argument prototype would still apply. */
  32239. -char dlopen ();
  32240. -int
  32241. -main ()
  32242. -{
  32243. -dlopen ();
  32244. - ;
  32245. - return 0;
  32246. -}
  32247. -_ACEOF
  32248. -rm -f conftest.$ac_objext conftest$ac_exeext
  32249. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32250. - (eval $ac_link) 2>conftest.er1
  32251. - ac_status=$?
  32252. - grep -v '^ *+' conftest.er1 >conftest.err
  32253. - rm -f conftest.er1
  32254. - cat conftest.err >&5
  32255. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32256. - (exit $ac_status); } &&
  32257. - { ac_try='test -z "$ac_cxx_werror_flag"
  32258. - || test ! -s conftest.err'
  32259. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32260. - (eval $ac_try) 2>&5
  32261. - ac_status=$?
  32262. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32263. - (exit $ac_status); }; } &&
  32264. - { ac_try='test -s conftest$ac_exeext'
  32265. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32266. - (eval $ac_try) 2>&5
  32267. - ac_status=$?
  32268. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32269. - (exit $ac_status); }; }; then
  32270. - ac_cv_lib_svld_dlopen=yes
  32271. -else
  32272. - echo "$as_me: failed program was:" >&5
  32273. -sed 's/^/| /' conftest.$ac_ext >&5
  32274. -
  32275. -ac_cv_lib_svld_dlopen=no
  32276. -fi
  32277. -rm -f conftest.err conftest.$ac_objext \
  32278. - conftest$ac_exeext conftest.$ac_ext
  32279. -LIBS=$ac_check_lib_save_LIBS
  32280. -fi
  32281. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  32282. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  32283. -if test $ac_cv_lib_svld_dlopen = yes; then
  32284. - lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  32285. -else
  32286. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  32287. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  32288. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  32289. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32290. -else
  32291. - ac_check_lib_save_LIBS=$LIBS
  32292. -LIBS="-ldld $LIBS"
  32293. -cat >conftest.$ac_ext <<_ACEOF
  32294. -/* confdefs.h. */
  32295. -_ACEOF
  32296. -cat confdefs.h >>conftest.$ac_ext
  32297. -cat >>conftest.$ac_ext <<_ACEOF
  32298. -/* end confdefs.h. */
  32299. -
  32300. -/* Override any gcc2 internal prototype to avoid an error. */
  32301. -#ifdef __cplusplus
  32302. -extern "C"
  32303. -#endif
  32304. -/* We use char because int might match the return type of a gcc2
  32305. - builtin and then its argument prototype would still apply. */
  32306. -char dld_link ();
  32307. -int
  32308. -main ()
  32309. -{
  32310. -dld_link ();
  32311. - ;
  32312. - return 0;
  32313. -}
  32314. -_ACEOF
  32315. -rm -f conftest.$ac_objext conftest$ac_exeext
  32316. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32317. - (eval $ac_link) 2>conftest.er1
  32318. - ac_status=$?
  32319. - grep -v '^ *+' conftest.er1 >conftest.err
  32320. - rm -f conftest.er1
  32321. - cat conftest.err >&5
  32322. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32323. - (exit $ac_status); } &&
  32324. - { ac_try='test -z "$ac_cxx_werror_flag"
  32325. - || test ! -s conftest.err'
  32326. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32327. - (eval $ac_try) 2>&5
  32328. - ac_status=$?
  32329. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32330. - (exit $ac_status); }; } &&
  32331. - { ac_try='test -s conftest$ac_exeext'
  32332. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  32333. - (eval $ac_try) 2>&5
  32334. - ac_status=$?
  32335. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32336. - (exit $ac_status); }; }; then
  32337. - ac_cv_lib_dld_dld_link=yes
  32338. -else
  32339. - echo "$as_me: failed program was:" >&5
  32340. -sed 's/^/| /' conftest.$ac_ext >&5
  32341. -
  32342. -ac_cv_lib_dld_dld_link=no
  32343. -fi
  32344. -rm -f conftest.err conftest.$ac_objext \
  32345. - conftest$ac_exeext conftest.$ac_ext
  32346. -LIBS=$ac_check_lib_save_LIBS
  32347. -fi
  32348. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  32349. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  32350. -if test $ac_cv_lib_dld_dld_link = yes; then
  32351. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  32352. -fi
  32353. -
  32354. -
  32355. -fi
  32356. -
  32357. -
  32358. -fi
  32359. -
  32360. -
  32361. -fi
  32362. -
  32363. -
  32364. -fi
  32365. -
  32366. -
  32367. -fi
  32368. -
  32369. - ;;
  32370. - esac
  32371. -
  32372. - if test "x$lt_cv_dlopen" != xno; then
  32373. - enable_dlopen=yes
  32374. - else
  32375. - enable_dlopen=no
  32376. - fi
  32377. -
  32378. - case $lt_cv_dlopen in
  32379. - dlopen)
  32380. - save_CPPFLAGS="$CPPFLAGS"
  32381. - test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  32382. -
  32383. - save_LDFLAGS="$LDFLAGS"
  32384. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  32385. -
  32386. - save_LIBS="$LIBS"
  32387. - LIBS="$lt_cv_dlopen_libs $LIBS"
  32388. -
  32389. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  32390. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  32391. -if test "${lt_cv_dlopen_self+set}" = set; then
  32392. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32393. -else
  32394. - if test "$cross_compiling" = yes; then :
  32395. - lt_cv_dlopen_self=cross
  32396. -else
  32397. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  32398. - lt_status=$lt_dlunknown
  32399. - cat > conftest.$ac_ext <<EOF
  32400. -#line 12719 "configure"
  32401. -#include "confdefs.h"
  32402. -
  32403. -#if HAVE_DLFCN_H
  32404. -#include <dlfcn.h>
  32405. -#endif
  32406. -
  32407. -#include <stdio.h>
  32408. -
  32409. -#ifdef RTLD_GLOBAL
  32410. -# define LT_DLGLOBAL RTLD_GLOBAL
  32411. -#else
  32412. -# ifdef DL_GLOBAL
  32413. -# define LT_DLGLOBAL DL_GLOBAL
  32414. -# else
  32415. -# define LT_DLGLOBAL 0
  32416. -# endif
  32417. -#endif
  32418. -
  32419. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  32420. - find out it does not work in some platform. */
  32421. -#ifndef LT_DLLAZY_OR_NOW
  32422. -# ifdef RTLD_LAZY
  32423. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  32424. -# else
  32425. -# ifdef DL_LAZY
  32426. -# define LT_DLLAZY_OR_NOW DL_LAZY
  32427. -# else
  32428. -# ifdef RTLD_NOW
  32429. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  32430. -# else
  32431. -# ifdef DL_NOW
  32432. -# define LT_DLLAZY_OR_NOW DL_NOW
  32433. -# else
  32434. -# define LT_DLLAZY_OR_NOW 0
  32435. -# endif
  32436. -# endif
  32437. -# endif
  32438. -# endif
  32439. -#endif
  32440. -
  32441. -#ifdef __cplusplus
  32442. -extern "C" void exit (int);
  32443. -#endif
  32444. -
  32445. -void fnord() { int i=42;}
  32446. -int main ()
  32447. -{
  32448. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  32449. - int status = $lt_dlunknown;
  32450. -
  32451. - if (self)
  32452. - {
  32453. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  32454. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  32455. - /* dlclose (self); */
  32456. - }
  32457. -
  32458. - exit (status);
  32459. -}
  32460. -EOF
  32461. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32462. - (eval $ac_link) 2>&5
  32463. - ac_status=$?
  32464. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32465. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  32466. - (./conftest; exit; ) 2>/dev/null
  32467. - lt_status=$?
  32468. - case x$lt_status in
  32469. - x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  32470. - x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  32471. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  32472. - esac
  32473. - else :
  32474. - # compilation failed
  32475. - lt_cv_dlopen_self=no
  32476. - fi
  32477. -fi
  32478. -rm -fr conftest*
  32479. -
  32480. -
  32481. -fi
  32482. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  32483. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  32484. -
  32485. - if test "x$lt_cv_dlopen_self" = xyes; then
  32486. - LDFLAGS="$LDFLAGS $link_static_flag"
  32487. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  32488. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  32489. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  32490. - echo $ECHO_N "(cached) $ECHO_C" >&6
  32491. -else
  32492. - if test "$cross_compiling" = yes; then :
  32493. - lt_cv_dlopen_self_static=cross
  32494. -else
  32495. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  32496. - lt_status=$lt_dlunknown
  32497. - cat > conftest.$ac_ext <<EOF
  32498. -#line 12817 "configure"
  32499. -#include "confdefs.h"
  32500. -
  32501. -#if HAVE_DLFCN_H
  32502. -#include <dlfcn.h>
  32503. -#endif
  32504. -
  32505. -#include <stdio.h>
  32506. -
  32507. -#ifdef RTLD_GLOBAL
  32508. -# define LT_DLGLOBAL RTLD_GLOBAL
  32509. -#else
  32510. -# ifdef DL_GLOBAL
  32511. -# define LT_DLGLOBAL DL_GLOBAL
  32512. -# else
  32513. -# define LT_DLGLOBAL 0
  32514. -# endif
  32515. -#endif
  32516. -
  32517. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  32518. - find out it does not work in some platform. */
  32519. -#ifndef LT_DLLAZY_OR_NOW
  32520. -# ifdef RTLD_LAZY
  32521. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  32522. -# else
  32523. -# ifdef DL_LAZY
  32524. -# define LT_DLLAZY_OR_NOW DL_LAZY
  32525. -# else
  32526. -# ifdef RTLD_NOW
  32527. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  32528. -# else
  32529. -# ifdef DL_NOW
  32530. -# define LT_DLLAZY_OR_NOW DL_NOW
  32531. -# else
  32532. -# define LT_DLLAZY_OR_NOW 0
  32533. -# endif
  32534. -# endif
  32535. -# endif
  32536. -# endif
  32537. -#endif
  32538. -
  32539. -#ifdef __cplusplus
  32540. -extern "C" void exit (int);
  32541. -#endif
  32542. -
  32543. -void fnord() { int i=42;}
  32544. -int main ()
  32545. -{
  32546. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  32547. - int status = $lt_dlunknown;
  32548. -
  32549. - if (self)
  32550. - {
  32551. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  32552. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  32553. - /* dlclose (self); */
  32554. - }
  32555. -
  32556. - exit (status);
  32557. -}
  32558. -EOF
  32559. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  32560. - (eval $ac_link) 2>&5
  32561. - ac_status=$?
  32562. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  32563. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  32564. - (./conftest; exit; ) 2>/dev/null
  32565. - lt_status=$?
  32566. - case x$lt_status in
  32567. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  32568. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  32569. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  32570. - esac
  32571. - else :
  32572. - # compilation failed
  32573. - lt_cv_dlopen_self_static=no
  32574. - fi
  32575. -fi
  32576. -rm -fr conftest*
  32577. -
  32578. -
  32579. -fi
  32580. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  32581. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  32582. - fi
  32583. -
  32584. - CPPFLAGS="$save_CPPFLAGS"
  32585. - LDFLAGS="$save_LDFLAGS"
  32586. - LIBS="$save_LIBS"
  32587. - ;;
  32588. - esac
  32589. -
  32590. - case $lt_cv_dlopen_self in
  32591. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  32592. - *) enable_dlopen_self=unknown ;;
  32593. - esac
  32594. -
  32595. - case $lt_cv_dlopen_self_static in
  32596. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  32597. - *) enable_dlopen_self_static=unknown ;;
  32598. - esac
  32599. -fi
  32600. -
  32601. -
  32602. -# The else clause should only fire when bootstrapping the
  32603. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  32604. -# with your package, and you will get complaints that there are
  32605. -# no rules to generate ltmain.sh.
  32606. -if test -f "$ltmain"; then
  32607. - # See if we are running on zsh, and set the options which allow our commands through
  32608. - # without removal of \ escapes.
  32609. - if test -n "${ZSH_VERSION+set}" ; then
  32610. - setopt NO_GLOB_SUBST
  32611. - fi
  32612. - # Now quote all the things that may contain metacharacters while being
  32613. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  32614. - # variables and quote the copies for generation of the libtool script.
  32615. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  32616. - SED SHELL STRIP \
  32617. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  32618. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  32619. - deplibs_check_method reload_flag reload_cmds need_locks \
  32620. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  32621. - lt_cv_sys_global_symbol_to_c_name_address \
  32622. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  32623. - old_postinstall_cmds old_postuninstall_cmds \
  32624. - compiler_CXX \
  32625. - CC_CXX \
  32626. - LD_CXX \
  32627. - lt_prog_compiler_wl_CXX \
  32628. - lt_prog_compiler_pic_CXX \
  32629. - lt_prog_compiler_static_CXX \
  32630. - lt_prog_compiler_no_builtin_flag_CXX \
  32631. - export_dynamic_flag_spec_CXX \
  32632. - thread_safe_flag_spec_CXX \
  32633. - whole_archive_flag_spec_CXX \
  32634. - enable_shared_with_static_runtimes_CXX \
  32635. - old_archive_cmds_CXX \
  32636. - old_archive_from_new_cmds_CXX \
  32637. - predep_objects_CXX \
  32638. - postdep_objects_CXX \
  32639. - predeps_CXX \
  32640. - postdeps_CXX \
  32641. - compiler_lib_search_path_CXX \
  32642. - archive_cmds_CXX \
  32643. - archive_expsym_cmds_CXX \
  32644. - postinstall_cmds_CXX \
  32645. - postuninstall_cmds_CXX \
  32646. - old_archive_from_expsyms_cmds_CXX \
  32647. - allow_undefined_flag_CXX \
  32648. - no_undefined_flag_CXX \
  32649. - export_symbols_cmds_CXX \
  32650. - hardcode_libdir_flag_spec_CXX \
  32651. - hardcode_libdir_flag_spec_ld_CXX \
  32652. - hardcode_libdir_separator_CXX \
  32653. - hardcode_automatic_CXX \
  32654. - module_cmds_CXX \
  32655. - module_expsym_cmds_CXX \
  32656. - lt_cv_prog_compiler_c_o_CXX \
  32657. - exclude_expsyms_CXX \
  32658. - include_expsyms_CXX; do
  32659. -
  32660. - case $var in
  32661. - old_archive_cmds_CXX | \
  32662. - old_archive_from_new_cmds_CXX | \
  32663. - archive_cmds_CXX | \
  32664. - archive_expsym_cmds_CXX | \
  32665. - module_cmds_CXX | \
  32666. - module_expsym_cmds_CXX | \
  32667. - old_archive_from_expsyms_cmds_CXX | \
  32668. - export_symbols_cmds_CXX | \
  32669. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  32670. - postinstall_cmds | postuninstall_cmds | \
  32671. - old_postinstall_cmds | old_postuninstall_cmds | \
  32672. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  32673. - # Double-quote double-evaled strings.
  32674. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  32675. - ;;
  32676. - *)
  32677. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  32678. - ;;
  32679. - esac
  32680. - done
  32681. -
  32682. - case $lt_echo in
  32683. - *'\$0 --fallback-echo"')
  32684. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  32685. - ;;
  32686. - esac
  32687. -
  32688. -cfgfile="$ofile"
  32689. -
  32690. - cat <<__EOF__ >> "$cfgfile"
  32691. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  32692. -
  32693. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  32694. -
  32695. -# Shell to use when invoking shell scripts.
  32696. -SHELL=$lt_SHELL
  32697. -
  32698. -# Whether or not to build shared libraries.
  32699. -build_libtool_libs=$enable_shared
  32700. -
  32701. -# Whether or not to build static libraries.
  32702. -build_old_libs=$enable_static
  32703. -
  32704. -# Whether or not to add -lc for building shared libraries.
  32705. -build_libtool_need_lc=$archive_cmds_need_lc_CXX
  32706. -
  32707. -# Whether or not to disallow shared libs when runtime libs are static
  32708. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  32709. -
  32710. -# Whether or not to optimize for fast installation.
  32711. -fast_install=$enable_fast_install
  32712. -
  32713. -# The host system.
  32714. -host_alias=$host_alias
  32715. -host=$host
  32716. -host_os=$host_os
  32717. -
  32718. -# The build system.
  32719. -build_alias=$build_alias
  32720. -build=$build
  32721. -build_os=$build_os
  32722. -
  32723. -# An echo program that does not interpret backslashes.
  32724. -echo=$lt_echo
  32725. -
  32726. -# The archiver.
  32727. -AR=$lt_AR
  32728. -AR_FLAGS=$lt_AR_FLAGS
  32729. -
  32730. -# A C compiler.
  32731. -LTCC=$lt_LTCC
  32732. -
  32733. -# A language-specific compiler.
  32734. -CC=$lt_compiler_CXX
  32735. -
  32736. -# Is the compiler the GNU C compiler?
  32737. -with_gcc=$GCC_CXX
  32738. -
  32739. -# An ERE matcher.
  32740. -EGREP=$lt_EGREP
  32741. -
  32742. -# The linker used to build libraries.
  32743. -LD=$lt_LD_CXX
  32744. -
  32745. -# Whether we need hard or soft links.
  32746. -LN_S=$lt_LN_S
  32747. -
  32748. -# A BSD-compatible nm program.
  32749. -NM=$lt_NM
  32750. -
  32751. -# A symbol stripping program
  32752. -STRIP=$lt_STRIP
  32753. -
  32754. -# Used to examine libraries when file_magic_cmd begins "file"
  32755. -MAGIC_CMD=$MAGIC_CMD
  32756. -
  32757. -# Used on cygwin: DLL creation program.
  32758. -DLLTOOL="$DLLTOOL"
  32759. -
  32760. -# Used on cygwin: object dumper.
  32761. -OBJDUMP="$OBJDUMP"
  32762. -
  32763. -# Used on cygwin: assembler.
  32764. -AS="$AS"
  32765. -
  32766. -# The name of the directory that contains temporary libtool files.
  32767. -objdir=$objdir
  32768. -
  32769. -# How to create reloadable object files.
  32770. -reload_flag=$lt_reload_flag
  32771. -reload_cmds=$lt_reload_cmds
  32772. -
  32773. -# How to pass a linker flag through the compiler.
  32774. -wl=$lt_lt_prog_compiler_wl_CXX
  32775. -
  32776. -# Object file suffix (normally "o").
  32777. -objext="$ac_objext"
  32778. -
  32779. -# Old archive suffix (normally "a").
  32780. -libext="$libext"
  32781. -
  32782. -# Shared library suffix (normally ".so").
  32783. -shrext_cmds='$shrext_cmds'
  32784. -
  32785. -# Executable file suffix (normally "").
  32786. -exeext="$exeext"
  32787. -
  32788. -# Additional compiler flags for building library objects.
  32789. -pic_flag=$lt_lt_prog_compiler_pic_CXX
  32790. -pic_mode=$pic_mode
  32791. -
  32792. -# What is the maximum length of a command?
  32793. -max_cmd_len=$lt_cv_sys_max_cmd_len
  32794. -
  32795. -# Does compiler simultaneously support -c and -o options?
  32796. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  32797. -
  32798. -# Must we lock files when doing compilation?
  32799. -need_locks=$lt_need_locks
  32800. -
  32801. -# Do we need the lib prefix for modules?
  32802. -need_lib_prefix=$need_lib_prefix
  32803. -
  32804. -# Do we need a version for libraries?
  32805. -need_version=$need_version
  32806. -
  32807. -# Whether dlopen is supported.
  32808. -dlopen_support=$enable_dlopen
  32809. -
  32810. -# Whether dlopen of programs is supported.
  32811. -dlopen_self=$enable_dlopen_self
  32812. -
  32813. -# Whether dlopen of statically linked programs is supported.
  32814. -dlopen_self_static=$enable_dlopen_self_static
  32815. -
  32816. -# Compiler flag to prevent dynamic linking.
  32817. -link_static_flag=$lt_lt_prog_compiler_static_CXX
  32818. -
  32819. -# Compiler flag to turn off builtin functions.
  32820. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  32821. -
  32822. -# Compiler flag to allow reflexive dlopens.
  32823. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  32824. -
  32825. -# Compiler flag to generate shared objects directly from archives.
  32826. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  32827. -
  32828. -# Compiler flag to generate thread-safe objects.
  32829. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX
  32830. -
  32831. -# Library versioning type.
  32832. -version_type=$version_type
  32833. -
  32834. -# Format of library name prefix.
  32835. -libname_spec=$lt_libname_spec
  32836. -
  32837. -# List of archive names. First name is the real one, the rest are links.
  32838. -# The last name is the one that the linker finds with -lNAME.
  32839. -library_names_spec=$lt_library_names_spec
  32840. -
  32841. -# The coded name of the library, if different from the real name.
  32842. -soname_spec=$lt_soname_spec
  32843. -
  32844. -# Commands used to build and install an old-style archive.
  32845. -RANLIB=$lt_RANLIB
  32846. -old_archive_cmds=$lt_old_archive_cmds_CXX
  32847. -old_postinstall_cmds=$lt_old_postinstall_cmds
  32848. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  32849. -
  32850. -# Create an old-style archive from a shared archive.
  32851. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  32852. -
  32853. -# Create a temporary old-style archive to link instead of a shared archive.
  32854. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  32855. -
  32856. -# Commands used to build and install a shared archive.
  32857. -archive_cmds=$lt_archive_cmds_CXX
  32858. -archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  32859. -postinstall_cmds=$lt_postinstall_cmds
  32860. -postuninstall_cmds=$lt_postuninstall_cmds
  32861. -
  32862. -# Commands used to build a loadable module (assumed same as above if empty)
  32863. -module_cmds=$lt_module_cmds_CXX
  32864. -module_expsym_cmds=$lt_module_expsym_cmds_CXX
  32865. -
  32866. -# Commands to strip libraries.
  32867. -old_striplib=$lt_old_striplib
  32868. -striplib=$lt_striplib
  32869. -
  32870. -# Dependencies to place before the objects being linked to create a
  32871. -# shared library.
  32872. -predep_objects=$lt_predep_objects_CXX
  32873. -
  32874. -# Dependencies to place after the objects being linked to create a
  32875. -# shared library.
  32876. -postdep_objects=$lt_postdep_objects_CXX
  32877. -
  32878. -# Dependencies to place before the objects being linked to create a
  32879. -# shared library.
  32880. -predeps=$lt_predeps_CXX
  32881. -
  32882. -# Dependencies to place after the objects being linked to create a
  32883. -# shared library.
  32884. -postdeps=$lt_postdeps_CXX
  32885. -
  32886. -# The library search path used internally by the compiler when linking
  32887. -# a shared library.
  32888. -compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  32889. -
  32890. -# Method to check whether dependent libraries are shared objects.
  32891. -deplibs_check_method=$lt_deplibs_check_method
  32892. -
  32893. -# Command to use when deplibs_check_method == file_magic.
  32894. -file_magic_cmd=$lt_file_magic_cmd
  32895. -
  32896. -# Flag that allows shared libraries with undefined symbols to be built.
  32897. -allow_undefined_flag=$lt_allow_undefined_flag_CXX
  32898. -
  32899. -# Flag that forces no undefined symbols.
  32900. -no_undefined_flag=$lt_no_undefined_flag_CXX
  32901. -
  32902. -# Commands used to finish a libtool library installation in a directory.
  32903. -finish_cmds=$lt_finish_cmds
  32904. -
  32905. -# Same as above, but a single script fragment to be evaled but not shown.
  32906. -finish_eval=$lt_finish_eval
  32907. -
  32908. -# Take the output of nm and produce a listing of raw symbols and C names.
  32909. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  32910. -
  32911. -# Transform the output of nm in a proper C declaration
  32912. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  32913. -
  32914. -# Transform the output of nm in a C name address pair
  32915. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  32916. -
  32917. -# This is the shared library runtime path variable.
  32918. -runpath_var=$runpath_var
  32919. -
  32920. -# This is the shared library path variable.
  32921. -shlibpath_var=$shlibpath_var
  32922. -
  32923. -# Is shlibpath searched before the hard-coded library search path?
  32924. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  32925. -
  32926. -# How to hardcode a shared library path into an executable.
  32927. -hardcode_action=$hardcode_action_CXX
  32928. -
  32929. -# Whether we should hardcode library paths into libraries.
  32930. -hardcode_into_libs=$hardcode_into_libs
  32931. -
  32932. -# Flag to hardcode \$libdir into a binary during linking.
  32933. -# This must work even if \$libdir does not exist.
  32934. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  32935. -
  32936. -# If ld is used when linking, flag to hardcode \$libdir into
  32937. -# a binary during linking. This must work even if \$libdir does
  32938. -# not exist.
  32939. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX
  32940. -
  32941. -# Whether we need a single -rpath flag with a separated argument.
  32942. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  32943. -
  32944. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  32945. -# resulting binary.
  32946. -hardcode_direct=$hardcode_direct_CXX
  32947. -
  32948. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  32949. -# resulting binary.
  32950. -hardcode_minus_L=$hardcode_minus_L_CXX
  32951. -
  32952. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  32953. -# the resulting binary.
  32954. -hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  32955. -
  32956. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  32957. -# and all subsequent libraries and executables linked against it.
  32958. -hardcode_automatic=$hardcode_automatic_CXX
  32959. -
  32960. -# Variables whose values should be saved in libtool wrapper scripts and
  32961. -# restored at relink time.
  32962. -variables_saved_for_relink="$variables_saved_for_relink"
  32963. -
  32964. -# Whether libtool must link a program against all its dependency libraries.
  32965. -link_all_deplibs=$link_all_deplibs_CXX
  32966. -
  32967. -# Compile-time system search path for libraries
  32968. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  32969. -
  32970. -# Run-time system search path for libraries
  32971. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  32972. -
  32973. -# Fix the shell variable \$srcfile for the compiler.
  32974. -fix_srcfile_path="$fix_srcfile_path_CXX"
  32975. -
  32976. -# Set to yes if exported symbols are required.
  32977. -always_export_symbols=$always_export_symbols_CXX
  32978. -
  32979. -# The commands to list exported symbols.
  32980. -export_symbols_cmds=$lt_export_symbols_cmds_CXX
  32981. -
  32982. -# The commands to extract the exported symbol list from a shared archive.
  32983. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  32984. -
  32985. -# Symbols that should not be listed in the preloaded symbols.
  32986. -exclude_expsyms=$lt_exclude_expsyms_CXX
  32987. -
  32988. -# Symbols that must always be exported.
  32989. -include_expsyms=$lt_include_expsyms_CXX
  32990. -
  32991. -# ### END LIBTOOL TAG CONFIG: $tagname
  32992. -
  32993. -__EOF__
  32994. -
  32995. -
  32996. -else
  32997. - # If there is no Makefile yet, we rely on a make rule to execute
  32998. - # `config.status --recheck' to rerun these tests and create the
  32999. - # libtool script then.
  33000. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  33001. - if test -f "$ltmain_in"; then
  33002. - test -f Makefile && make "$ltmain"
  33003. - fi
  33004. -fi
  33005. -
  33006. -
  33007. -ac_ext=c
  33008. -ac_cpp='$CPP $CPPFLAGS'
  33009. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  33010. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33011. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  33012. -
  33013. -CC=$lt_save_CC
  33014. -LDCXX=$LD
  33015. -LD=$lt_save_LD
  33016. -GCC=$lt_save_GCC
  33017. -with_gnu_ldcxx=$with_gnu_ld
  33018. -with_gnu_ld=$lt_save_with_gnu_ld
  33019. -lt_cv_path_LDCXX=$lt_cv_path_LD
  33020. -lt_cv_path_LD=$lt_save_path_LD
  33021. -lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  33022. -lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  33023. -
  33024. - else
  33025. - tagname=""
  33026. - fi
  33027. - ;;
  33028. -
  33029. - F77)
  33030. - if test -n "$F77" && test "X$F77" != "Xno"; then
  33031. -
  33032. -ac_ext=f
  33033. -ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5'
  33034. -ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  33035. -ac_compiler_gnu=$ac_cv_f77_compiler_gnu
  33036. -
  33037. -
  33038. -archive_cmds_need_lc_F77=no
  33039. -allow_undefined_flag_F77=
  33040. -always_export_symbols_F77=no
  33041. -archive_expsym_cmds_F77=
  33042. -export_dynamic_flag_spec_F77=
  33043. -hardcode_direct_F77=no
  33044. -hardcode_libdir_flag_spec_F77=
  33045. -hardcode_libdir_flag_spec_ld_F77=
  33046. -hardcode_libdir_separator_F77=
  33047. -hardcode_minus_L_F77=no
  33048. -hardcode_automatic_F77=no
  33049. -module_cmds_F77=
  33050. -module_expsym_cmds_F77=
  33051. -link_all_deplibs_F77=unknown
  33052. -old_archive_cmds_F77=$old_archive_cmds
  33053. -no_undefined_flag_F77=
  33054. -whole_archive_flag_spec_F77=
  33055. -enable_shared_with_static_runtimes_F77=no
  33056. -
  33057. -# Source file extension for f77 test sources.
  33058. -ac_ext=f
  33059. -
  33060. -# Object file extension for compiled f77 test sources.
  33061. -objext=o
  33062. -objext_F77=$objext
  33063. -
  33064. -# Code to be used in simple compile tests
  33065. -lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  33066. -
  33067. -# Code to be used in simple link tests
  33068. -lt_simple_link_test_code=" program t\n end\n"
  33069. -
  33070. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  33071. -
  33072. -# If no C compiler was specified, use CC.
  33073. -LTCC=${LTCC-"$CC"}
  33074. -
  33075. -# Allow CC to be a program name with arguments.
  33076. -compiler=$CC
  33077. -
  33078. -
  33079. -# save warnings/boilerplate of simple test code
  33080. -ac_outfile=conftest.$ac_objext
  33081. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  33082. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  33083. -_lt_compiler_boilerplate=`cat conftest.err`
  33084. -$rm conftest*
  33085. -
  33086. -ac_outfile=conftest.$ac_objext
  33087. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  33088. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  33089. -_lt_linker_boilerplate=`cat conftest.err`
  33090. -$rm conftest*
  33091. -
  33092. -
  33093. -# Allow CC to be a program name with arguments.
  33094. -lt_save_CC="$CC"
  33095. -CC=${F77-"f77"}
  33096. -compiler=$CC
  33097. -compiler_F77=$CC
  33098. -for cc_temp in $compiler""; do
  33099. - case $cc_temp in
  33100. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33101. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33102. - \-*) ;;
  33103. - *) break;;
  33104. - esac
  33105. -done
  33106. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33107. -
  33108. -
  33109. -echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5
  33110. -echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6
  33111. -echo "$as_me:$LINENO: result: $can_build_shared" >&5
  33112. -echo "${ECHO_T}$can_build_shared" >&6
  33113. -
  33114. -echo "$as_me:$LINENO: checking whether to build shared libraries" >&5
  33115. -echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6
  33116. -test "$can_build_shared" = "no" && enable_shared=no
  33117. -
  33118. -# On AIX, shared libraries and static libraries use the same namespace, and
  33119. -# are all built from PIC.
  33120. -case "$host_os" in
  33121. -aix3*)
  33122. - test "$enable_shared" = yes && enable_static=no
  33123. - if test -n "$RANLIB"; then
  33124. - archive_cmds="$archive_cmds~\$RANLIB \$lib"
  33125. - postinstall_cmds='$RANLIB $lib'
  33126. - fi
  33127. - ;;
  33128. -aix4* | aix5*)
  33129. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  33130. - test "$enable_shared" = yes && enable_static=no
  33131. - fi
  33132. - ;;
  33133. -esac
  33134. -echo "$as_me:$LINENO: result: $enable_shared" >&5
  33135. -echo "${ECHO_T}$enable_shared" >&6
  33136. -
  33137. -echo "$as_me:$LINENO: checking whether to build static libraries" >&5
  33138. -echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6
  33139. -# Make sure either enable_shared or enable_static is yes.
  33140. -test "$enable_shared" = yes || enable_static=yes
  33141. -echo "$as_me:$LINENO: result: $enable_static" >&5
  33142. -echo "${ECHO_T}$enable_static" >&6
  33143. -
  33144. -test "$ld_shlibs_F77" = no && can_build_shared=no
  33145. -
  33146. -GCC_F77="$G77"
  33147. -LD_F77="$LD"
  33148. -
  33149. -lt_prog_compiler_wl_F77=
  33150. -lt_prog_compiler_pic_F77=
  33151. -lt_prog_compiler_static_F77=
  33152. -
  33153. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  33154. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  33155. -
  33156. - if test "$GCC" = yes; then
  33157. - lt_prog_compiler_wl_F77='-Wl,'
  33158. - lt_prog_compiler_static_F77='-static'
  33159. -
  33160. - case $host_os in
  33161. - aix*)
  33162. - # All AIX code is PIC.
  33163. - if test "$host_cpu" = ia64; then
  33164. - # AIX 5 now supports IA64 processor
  33165. - lt_prog_compiler_static_F77='-Bstatic'
  33166. - fi
  33167. - ;;
  33168. -
  33169. - amigaos*)
  33170. - # FIXME: we need at least 68020 code to build shared libraries, but
  33171. - # adding the `-m68020' flag to GCC prevents building anything better,
  33172. - # like `-m68040'.
  33173. - lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4'
  33174. - ;;
  33175. -
  33176. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  33177. - # PIC is the default for these OSes.
  33178. - ;;
  33179. -
  33180. - mingw* | pw32* | os2*)
  33181. - # This hack is so that the source file can tell whether it is being
  33182. - # built for inclusion in a dll (and should export symbols for example).
  33183. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  33184. - ;;
  33185. -
  33186. - darwin* | rhapsody*)
  33187. - # PIC is the default on this platform
  33188. - # Common symbols not allowed in MH_DYLIB files
  33189. - lt_prog_compiler_pic_F77='-fno-common'
  33190. - ;;
  33191. -
  33192. - msdosdjgpp*)
  33193. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  33194. - # on systems that don't support them.
  33195. - lt_prog_compiler_can_build_shared_F77=no
  33196. - enable_shared=no
  33197. - ;;
  33198. -
  33199. - sysv4*MP*)
  33200. - if test -d /usr/nec; then
  33201. - lt_prog_compiler_pic_F77=-Kconform_pic
  33202. - fi
  33203. - ;;
  33204. -
  33205. - hpux*)
  33206. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33207. - # not for PA HP-UX.
  33208. - case "$host_cpu" in
  33209. - hppa*64*|ia64*)
  33210. - # +Z the default
  33211. - ;;
  33212. - *)
  33213. - lt_prog_compiler_pic_F77='-fPIC'
  33214. - ;;
  33215. - esac
  33216. - ;;
  33217. -
  33218. - *)
  33219. - lt_prog_compiler_pic_F77='-fPIC'
  33220. - ;;
  33221. - esac
  33222. - else
  33223. - # PORTME Check for flag to pass linker flags through the system compiler.
  33224. - case $host_os in
  33225. - aix*)
  33226. - lt_prog_compiler_wl_F77='-Wl,'
  33227. - if test "$host_cpu" = ia64; then
  33228. - # AIX 5 now supports IA64 processor
  33229. - lt_prog_compiler_static_F77='-Bstatic'
  33230. - else
  33231. - lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp'
  33232. - fi
  33233. - ;;
  33234. - darwin*)
  33235. - # PIC is the default on this platform
  33236. - # Common symbols not allowed in MH_DYLIB files
  33237. - case $cc_basename in
  33238. - xlc*)
  33239. - lt_prog_compiler_pic_F77='-qnocommon'
  33240. - lt_prog_compiler_wl_F77='-Wl,'
  33241. - ;;
  33242. - esac
  33243. - ;;
  33244. -
  33245. - mingw* | pw32* | os2*)
  33246. - # This hack is so that the source file can tell whether it is being
  33247. - # built for inclusion in a dll (and should export symbols for example).
  33248. - lt_prog_compiler_pic_F77='-DDLL_EXPORT'
  33249. - ;;
  33250. -
  33251. - hpux9* | hpux10* | hpux11*)
  33252. - lt_prog_compiler_wl_F77='-Wl,'
  33253. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  33254. - # not for PA HP-UX.
  33255. - case "$host_cpu" in
  33256. - hppa*64*|ia64*)
  33257. - # +Z the default
  33258. - ;;
  33259. - *)
  33260. - lt_prog_compiler_pic_F77='+Z'
  33261. - ;;
  33262. - esac
  33263. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  33264. - lt_prog_compiler_static_F77='${wl}-a ${wl}archive'
  33265. - ;;
  33266. -
  33267. - irix5* | irix6* | nonstopux*)
  33268. - lt_prog_compiler_wl_F77='-Wl,'
  33269. - # PIC (with -KPIC) is the default.
  33270. - lt_prog_compiler_static_F77='-non_shared'
  33271. - ;;
  33272. -
  33273. - newsos6)
  33274. - lt_prog_compiler_pic_F77='-KPIC'
  33275. - lt_prog_compiler_static_F77='-Bstatic'
  33276. - ;;
  33277. -
  33278. - linux*)
  33279. - case $cc_basename in
  33280. - icc* | ecc*)
  33281. - lt_prog_compiler_wl_F77='-Wl,'
  33282. - lt_prog_compiler_pic_F77='-KPIC'
  33283. - lt_prog_compiler_static_F77='-static'
  33284. - ;;
  33285. - pgcc* | pgf77* | pgf90*)
  33286. - # Portland Group compilers (*not* the Pentium gcc compiler,
  33287. - # which looks to be a dead project)
  33288. - lt_prog_compiler_wl_F77='-Wl,'
  33289. - lt_prog_compiler_pic_F77='-fpic'
  33290. - lt_prog_compiler_static_F77='-static'
  33291. - ;;
  33292. - ccc*)
  33293. - lt_prog_compiler_wl_F77='-Wl,'
  33294. - # All Alpha code is PIC.
  33295. - lt_prog_compiler_static_F77='-non_shared'
  33296. - ;;
  33297. - esac
  33298. - ;;
  33299. -
  33300. - osf3* | osf4* | osf5*)
  33301. - lt_prog_compiler_wl_F77='-Wl,'
  33302. - # All OSF/1 code is PIC.
  33303. - lt_prog_compiler_static_F77='-non_shared'
  33304. - ;;
  33305. -
  33306. - sco3.2v5*)
  33307. - lt_prog_compiler_pic_F77='-Kpic'
  33308. - lt_prog_compiler_static_F77='-dn'
  33309. - ;;
  33310. -
  33311. - solaris*)
  33312. - lt_prog_compiler_pic_F77='-KPIC'
  33313. - lt_prog_compiler_static_F77='-Bstatic'
  33314. - case $cc_basename in
  33315. - f77* | f90* | f95*)
  33316. - lt_prog_compiler_wl_F77='-Qoption ld ';;
  33317. - *)
  33318. - lt_prog_compiler_wl_F77='-Wl,';;
  33319. - esac
  33320. - ;;
  33321. -
  33322. - sunos4*)
  33323. - lt_prog_compiler_wl_F77='-Qoption ld '
  33324. - lt_prog_compiler_pic_F77='-PIC'
  33325. - lt_prog_compiler_static_F77='-Bstatic'
  33326. - ;;
  33327. -
  33328. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  33329. - lt_prog_compiler_wl_F77='-Wl,'
  33330. - lt_prog_compiler_pic_F77='-KPIC'
  33331. - lt_prog_compiler_static_F77='-Bstatic'
  33332. - ;;
  33333. -
  33334. - sysv4*MP*)
  33335. - if test -d /usr/nec ;then
  33336. - lt_prog_compiler_pic_F77='-Kconform_pic'
  33337. - lt_prog_compiler_static_F77='-Bstatic'
  33338. - fi
  33339. - ;;
  33340. -
  33341. - unicos*)
  33342. - lt_prog_compiler_wl_F77='-Wl,'
  33343. - lt_prog_compiler_can_build_shared_F77=no
  33344. - ;;
  33345. -
  33346. - uts4*)
  33347. - lt_prog_compiler_pic_F77='-pic'
  33348. - lt_prog_compiler_static_F77='-Bstatic'
  33349. - ;;
  33350. -
  33351. - *)
  33352. - lt_prog_compiler_can_build_shared_F77=no
  33353. - ;;
  33354. - esac
  33355. - fi
  33356. -
  33357. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5
  33358. -echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6
  33359. -
  33360. -#
  33361. -# Check to make sure the PIC flag actually works.
  33362. -#
  33363. -if test -n "$lt_prog_compiler_pic_F77"; then
  33364. -
  33365. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5
  33366. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6
  33367. -if test "${lt_prog_compiler_pic_works_F77+set}" = set; then
  33368. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33369. -else
  33370. - lt_prog_compiler_pic_works_F77=no
  33371. - ac_outfile=conftest.$ac_objext
  33372. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33373. - lt_compiler_flag="$lt_prog_compiler_pic_F77"
  33374. - # Insert the option either (1) after the last *FLAGS variable, or
  33375. - # (2) before a word containing "conftest.", or (3) at the end.
  33376. - # Note that $ac_compile itself does not contain backslashes and begins
  33377. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33378. - # The option is referenced via a variable to avoid confusing sed.
  33379. - lt_compile=`echo "$ac_compile" | $SED \
  33380. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  33381. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33382. - -e 's:$: $lt_compiler_flag:'`
  33383. - (eval echo "\"\$as_me:13702: $lt_compile\"" >&5)
  33384. - (eval "$lt_compile" 2>conftest.err)
  33385. - ac_status=$?
  33386. - cat conftest.err >&5
  33387. - echo "$as_me:13706: \$? = $ac_status" >&5
  33388. - if (exit $ac_status) && test -s "$ac_outfile"; then
  33389. - # The compiler can only warn and ignore the option if not recognized
  33390. - # So say no if there are warnings other than the usual output.
  33391. - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  33392. - $SED '/^$/d' conftest.err >conftest.er2
  33393. - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  33394. - lt_prog_compiler_pic_works_F77=yes
  33395. - fi
  33396. - fi
  33397. - $rm conftest*
  33398. -
  33399. -fi
  33400. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5
  33401. -echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6
  33402. -
  33403. -if test x"$lt_prog_compiler_pic_works_F77" = xyes; then
  33404. - case $lt_prog_compiler_pic_F77 in
  33405. - "" | " "*) ;;
  33406. - *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;;
  33407. - esac
  33408. -else
  33409. - lt_prog_compiler_pic_F77=
  33410. - lt_prog_compiler_can_build_shared_F77=no
  33411. -fi
  33412. -
  33413. -fi
  33414. -case "$host_os" in
  33415. - # For platforms which do not support PIC, -DPIC is meaningless:
  33416. - *djgpp*)
  33417. - lt_prog_compiler_pic_F77=
  33418. - ;;
  33419. - *)
  33420. - lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77"
  33421. - ;;
  33422. -esac
  33423. -
  33424. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  33425. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  33426. -if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then
  33427. - echo $ECHO_N "(cached) $ECHO_C" >&6
  33428. -else
  33429. - lt_cv_prog_compiler_c_o_F77=no
  33430. - $rm -r conftest 2>/dev/null
  33431. - mkdir conftest
  33432. - cd conftest
  33433. - mkdir out
  33434. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  33435. -
  33436. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  33437. - # Insert the option either (1) after the last *FLAGS variable, or
  33438. - # (2) before a word containing "conftest.", or (3) at the end.
  33439. - # Note that $ac_compile itself does not contain backslashes and begins
  33440. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  33441. - lt_compile=`echo "$ac_compile" | $SED \
  33442. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  33443. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  33444. - -e 's:$: $lt_compiler_flag:'`
  33445. - (eval echo "\"\$as_me:13764: $lt_compile\"" >&5)
  33446. - (eval "$lt_compile" 2>out/conftest.err)
  33447. - ac_status=$?
  33448. - cat out/conftest.err >&5
  33449. - echo "$as_me:13768: \$? = $ac_status" >&5
  33450. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  33451. - then
  33452. - # The compiler can only warn and ignore the option if not recognized
  33453. - # So say no if there are warnings
  33454. - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  33455. - $SED '/^$/d' out/conftest.err >out/conftest.er2
  33456. - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  33457. - lt_cv_prog_compiler_c_o_F77=yes
  33458. - fi
  33459. - fi
  33460. - chmod u+w .
  33461. - $rm conftest*
  33462. - # SGI C++ compiler will create directory out/ii_files/ for
  33463. - # template instantiation
  33464. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  33465. - $rm out/* && rmdir out
  33466. - cd ..
  33467. - rmdir conftest
  33468. - $rm conftest*
  33469. -
  33470. -fi
  33471. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5
  33472. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6
  33473. -
  33474. -
  33475. -hard_links="nottested"
  33476. -if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then
  33477. - # do not overwrite the value of need_locks provided by the user
  33478. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  33479. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  33480. - hard_links=yes
  33481. - $rm conftest*
  33482. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33483. - touch conftest.a
  33484. - ln conftest.a conftest.b 2>&5 || hard_links=no
  33485. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  33486. - echo "$as_me:$LINENO: result: $hard_links" >&5
  33487. -echo "${ECHO_T}$hard_links" >&6
  33488. - if test "$hard_links" = no; then
  33489. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  33490. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  33491. - need_locks=warn
  33492. - fi
  33493. -else
  33494. - need_locks=no
  33495. -fi
  33496. -
  33497. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  33498. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  33499. -
  33500. - runpath_var=
  33501. - allow_undefined_flag_F77=
  33502. - enable_shared_with_static_runtimes_F77=no
  33503. - archive_cmds_F77=
  33504. - archive_expsym_cmds_F77=
  33505. - old_archive_From_new_cmds_F77=
  33506. - old_archive_from_expsyms_cmds_F77=
  33507. - export_dynamic_flag_spec_F77=
  33508. - whole_archive_flag_spec_F77=
  33509. - thread_safe_flag_spec_F77=
  33510. - hardcode_libdir_flag_spec_F77=
  33511. - hardcode_libdir_flag_spec_ld_F77=
  33512. - hardcode_libdir_separator_F77=
  33513. - hardcode_direct_F77=no
  33514. - hardcode_minus_L_F77=no
  33515. - hardcode_shlibpath_var_F77=unsupported
  33516. - link_all_deplibs_F77=unknown
  33517. - hardcode_automatic_F77=no
  33518. - module_cmds_F77=
  33519. - module_expsym_cmds_F77=
  33520. - always_export_symbols_F77=no
  33521. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  33522. - # include_expsyms should be a list of space-separated symbols to be *always*
  33523. - # included in the symbol list
  33524. - include_expsyms_F77=
  33525. - # exclude_expsyms can be an extended regexp of symbols to exclude
  33526. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  33527. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  33528. - # as well as any symbol that contains `d'.
  33529. - exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_"
  33530. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  33531. - # platforms (ab)use it in PIC code, but their linkers get confused if
  33532. - # the symbol is explicitly referenced. Since portable code cannot
  33533. - # rely on this symbol name, it's probably fine to never include it in
  33534. - # preloaded symbol tables.
  33535. - extract_expsyms_cmds=
  33536. - # Just being paranoid about ensuring that cc_basename is set.
  33537. - for cc_temp in $compiler""; do
  33538. - case $cc_temp in
  33539. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  33540. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  33541. - \-*) ;;
  33542. - *) break;;
  33543. - esac
  33544. -done
  33545. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  33546. -
  33547. - case $host_os in
  33548. - cygwin* | mingw* | pw32*)
  33549. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  33550. - # When not using gcc, we currently assume that we are using
  33551. - # Microsoft Visual C++.
  33552. - if test "$GCC" != yes; then
  33553. - with_gnu_ld=no
  33554. - fi
  33555. - ;;
  33556. - openbsd*)
  33557. - with_gnu_ld=no
  33558. - ;;
  33559. - esac
  33560. -
  33561. - ld_shlibs_F77=yes
  33562. - if test "$with_gnu_ld" = yes; then
  33563. - # If archive_cmds runs LD, not CC, wlarc should be empty
  33564. - wlarc='${wl}'
  33565. -
  33566. - # Set some defaults for GNU ld with shared library support. These
  33567. - # are reset later if shared libraries are not supported. Putting them
  33568. - # here allows them to be overridden if necessary.
  33569. - runpath_var=LD_RUN_PATH
  33570. - hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir'
  33571. - export_dynamic_flag_spec_F77='${wl}--export-dynamic'
  33572. - # ancient GNU ld didn't support --whole-archive et. al.
  33573. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  33574. - whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  33575. - else
  33576. - whole_archive_flag_spec_F77=
  33577. - fi
  33578. - supports_anon_versioning=no
  33579. - case `$LD -v 2>/dev/null` in
  33580. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  33581. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  33582. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  33583. - *\ 2.11.*) ;; # other 2.11 versions
  33584. - *) supports_anon_versioning=yes ;;
  33585. - esac
  33586. -
  33587. - # See if GNU ld supports shared libraries.
  33588. - case $host_os in
  33589. - aix3* | aix4* | aix5*)
  33590. - # On AIX/PPC, the GNU linker is very broken
  33591. - if test "$host_cpu" != ia64; then
  33592. - ld_shlibs_F77=no
  33593. - cat <<EOF 1>&2
  33594. -
  33595. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  33596. -*** to be unable to reliably create shared libraries on AIX.
  33597. -*** Therefore, libtool is disabling shared libraries support. If you
  33598. -*** really care for shared libraries, you may want to modify your PATH
  33599. -*** so that a non-GNU linker is found, and then restart.
  33600. -
  33601. -EOF
  33602. - fi
  33603. - ;;
  33604. -
  33605. - amigaos*)
  33606. - 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)'
  33607. - hardcode_libdir_flag_spec_F77='-L$libdir'
  33608. - hardcode_minus_L_F77=yes
  33609. -
  33610. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  33611. - # that the semantics of dynamic libraries on AmigaOS, at least up
  33612. - # to version 4, is to share data among multiple programs linked
  33613. - # with the same dynamic library. Since this doesn't match the
  33614. - # behavior of shared libraries on other platforms, we can't use
  33615. - # them.
  33616. - ld_shlibs_F77=no
  33617. - ;;
  33618. -
  33619. - beos*)
  33620. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33621. - allow_undefined_flag_F77=unsupported
  33622. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  33623. - # support --undefined. This deserves some investigation. FIXME
  33624. - archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33625. - else
  33626. - ld_shlibs_F77=no
  33627. - fi
  33628. - ;;
  33629. -
  33630. - cygwin* | mingw* | pw32*)
  33631. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless,
  33632. - # as there is no search path for DLLs.
  33633. - hardcode_libdir_flag_spec_F77='-L$libdir'
  33634. - allow_undefined_flag_F77=unsupported
  33635. - always_export_symbols_F77=no
  33636. - enable_shared_with_static_runtimes_F77=yes
  33637. - export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  33638. -
  33639. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  33640. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  33641. - # If the export-symbols file already is a .def file (1st line
  33642. - # is EXPORTS), use it as is; otherwise, prepend...
  33643. - archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  33644. - cp $export_symbols $output_objdir/$soname.def;
  33645. - else
  33646. - echo EXPORTS > $output_objdir/$soname.def;
  33647. - cat $export_symbols >> $output_objdir/$soname.def;
  33648. - fi~
  33649. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  33650. - else
  33651. - ld_shlibs_F77=no
  33652. - fi
  33653. - ;;
  33654. -
  33655. - linux*)
  33656. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33657. - tmp_addflag=
  33658. - case $cc_basename,$host_cpu in
  33659. - pgcc*) # Portland Group C compiler
  33660. - whole_archive_flag_spec_F77=
  33661. - ;;
  33662. - pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  33663. - whole_archive_flag_spec_F77=
  33664. - tmp_addflag=' -fpic -Mnomain' ;;
  33665. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  33666. - tmp_addflag=' -i_dynamic' ;;
  33667. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  33668. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  33669. - ifc* | ifort*) # Intel Fortran compiler
  33670. - tmp_addflag=' -nofor_main' ;;
  33671. - esac
  33672. - archive_cmds_F77='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33673. -
  33674. - if test $supports_anon_versioning = yes; then
  33675. - archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~
  33676. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  33677. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  33678. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  33679. - fi
  33680. - else
  33681. - ld_shlibs_F77=no
  33682. - fi
  33683. - ;;
  33684. -
  33685. - netbsd*)
  33686. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  33687. - archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  33688. - wlarc=
  33689. - else
  33690. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33691. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33692. - fi
  33693. - ;;
  33694. -
  33695. - solaris* | sysv5*)
  33696. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  33697. - ld_shlibs_F77=no
  33698. - cat <<EOF 1>&2
  33699. -
  33700. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  33701. -*** create shared libraries on Solaris systems. Therefore, libtool
  33702. -*** is disabling shared libraries support. We urge you to upgrade GNU
  33703. -*** binutils to release 2.9.1 or newer. Another option is to modify
  33704. -*** your PATH or compiler configuration so that the native linker is
  33705. -*** used, and then restart.
  33706. -
  33707. -EOF
  33708. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33709. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33710. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33711. - else
  33712. - ld_shlibs_F77=no
  33713. - fi
  33714. - ;;
  33715. -
  33716. - sunos4*)
  33717. - archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  33718. - wlarc=
  33719. - hardcode_direct_F77=yes
  33720. - hardcode_shlibpath_var_F77=no
  33721. - ;;
  33722. -
  33723. - *)
  33724. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  33725. - archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  33726. - archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  33727. - else
  33728. - ld_shlibs_F77=no
  33729. - fi
  33730. - ;;
  33731. - esac
  33732. -
  33733. - if test "$ld_shlibs_F77" = no; then
  33734. - runpath_var=
  33735. - hardcode_libdir_flag_spec_F77=
  33736. - export_dynamic_flag_spec_F77=
  33737. - whole_archive_flag_spec_F77=
  33738. - fi
  33739. - else
  33740. - # PORTME fill in a description of your system's linker (not GNU ld)
  33741. - case $host_os in
  33742. - aix3*)
  33743. - allow_undefined_flag_F77=unsupported
  33744. - always_export_symbols_F77=yes
  33745. - 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'
  33746. - # Note: this linker hardcodes the directories in LIBPATH if there
  33747. - # are no directories specified by -L.
  33748. - hardcode_minus_L_F77=yes
  33749. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  33750. - # Neither direct hardcoding nor static linking is supported with a
  33751. - # broken collect2.
  33752. - hardcode_direct_F77=unsupported
  33753. - fi
  33754. - ;;
  33755. -
  33756. - aix4* | aix5*)
  33757. - if test "$host_cpu" = ia64; then
  33758. - # On IA64, the linker does run time linking by default, so we don't
  33759. - # have to do anything special.
  33760. - aix_use_runtimelinking=no
  33761. - exp_sym_flag='-Bexport'
  33762. - no_entry_flag=""
  33763. - else
  33764. - # If we're using GNU nm, then we don't want the "-C" option.
  33765. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  33766. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  33767. - 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'
  33768. - else
  33769. - 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'
  33770. - fi
  33771. - aix_use_runtimelinking=no
  33772. -
  33773. - # Test if we are trying to use run time linking or normal
  33774. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  33775. - # need to do runtime linking.
  33776. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  33777. - for ld_flag in $LDFLAGS; do
  33778. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  33779. - aix_use_runtimelinking=yes
  33780. - break
  33781. - fi
  33782. - done
  33783. - esac
  33784. -
  33785. - exp_sym_flag='-bexport'
  33786. - no_entry_flag='-bnoentry'
  33787. - fi
  33788. -
  33789. - # When large executables or shared objects are built, AIX ld can
  33790. - # have problems creating the table of contents. If linking a library
  33791. - # or program results in "error TOC overflow" add -mminimal-toc to
  33792. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  33793. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  33794. -
  33795. - archive_cmds_F77=''
  33796. - hardcode_direct_F77=yes
  33797. - hardcode_libdir_separator_F77=':'
  33798. - link_all_deplibs_F77=yes
  33799. -
  33800. - if test "$GCC" = yes; then
  33801. - case $host_os in aix4.[012]|aix4.[012].*)
  33802. - # We only want to do this on AIX 4.2 and lower, the check
  33803. - # below for broken collect2 doesn't work under 4.3+
  33804. - collect2name=`${CC} -print-prog-name=collect2`
  33805. - if test -f "$collect2name" && \
  33806. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  33807. - then
  33808. - # We have reworked collect2
  33809. - hardcode_direct_F77=yes
  33810. - else
  33811. - # We have old collect2
  33812. - hardcode_direct_F77=unsupported
  33813. - # It fails to find uninstalled libraries when the uninstalled
  33814. - # path is not listed in the libpath. Setting hardcode_minus_L
  33815. - # to unsupported forces relinking
  33816. - hardcode_minus_L_F77=yes
  33817. - hardcode_libdir_flag_spec_F77='-L$libdir'
  33818. - hardcode_libdir_separator_F77=
  33819. - fi
  33820. - esac
  33821. - shared_flag='-shared'
  33822. - if test "$aix_use_runtimelinking" = yes; then
  33823. - shared_flag="$shared_flag "'${wl}-G'
  33824. - fi
  33825. - else
  33826. - # not using gcc
  33827. - if test "$host_cpu" = ia64; then
  33828. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  33829. - # chokes on -Wl,-G. The following line is correct:
  33830. - shared_flag='-G'
  33831. - else
  33832. - if test "$aix_use_runtimelinking" = yes; then
  33833. - shared_flag='${wl}-G'
  33834. - else
  33835. - shared_flag='${wl}-bM:SRE'
  33836. - fi
  33837. - fi
  33838. - fi
  33839. -
  33840. - # It seems that -bexpall does not export symbols beginning with
  33841. - # underscore (_), so it is better to generate a list of symbols to export.
  33842. - always_export_symbols_F77=yes
  33843. - if test "$aix_use_runtimelinking" = yes; then
  33844. - # Warning - without using the other runtime loading flags (-brtl),
  33845. - # -berok will link without error, but may produce a broken library.
  33846. - allow_undefined_flag_F77='-berok'
  33847. - # Determine the default libpath from the value encoded in an empty executable.
  33848. - cat >conftest.$ac_ext <<_ACEOF
  33849. - program main
  33850. -
  33851. - end
  33852. -_ACEOF
  33853. -rm -f conftest.$ac_objext conftest$ac_exeext
  33854. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  33855. - (eval $ac_link) 2>conftest.er1
  33856. - ac_status=$?
  33857. - grep -v '^ *+' conftest.er1 >conftest.err
  33858. - rm -f conftest.er1
  33859. - cat conftest.err >&5
  33860. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33861. - (exit $ac_status); } &&
  33862. - { ac_try='test -z "$ac_f77_werror_flag"
  33863. - || test ! -s conftest.err'
  33864. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33865. - (eval $ac_try) 2>&5
  33866. - ac_status=$?
  33867. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33868. - (exit $ac_status); }; } &&
  33869. - { ac_try='test -s conftest$ac_exeext'
  33870. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33871. - (eval $ac_try) 2>&5
  33872. - ac_status=$?
  33873. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33874. - (exit $ac_status); }; }; then
  33875. -
  33876. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  33877. -}'`
  33878. -# Check for a 64-bit object if we didn't find anything.
  33879. -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; }
  33880. -}'`; fi
  33881. -else
  33882. - echo "$as_me: failed program was:" >&5
  33883. -sed 's/^/| /' conftest.$ac_ext >&5
  33884. -
  33885. -fi
  33886. -rm -f conftest.err conftest.$ac_objext \
  33887. - conftest$ac_exeext conftest.$ac_ext
  33888. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  33889. -
  33890. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  33891. - archive_expsym_cmds_F77="\$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"
  33892. - else
  33893. - if test "$host_cpu" = ia64; then
  33894. - hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib'
  33895. - allow_undefined_flag_F77="-z nodefs"
  33896. - archive_expsym_cmds_F77="\$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"
  33897. - else
  33898. - # Determine the default libpath from the value encoded in an empty executable.
  33899. - cat >conftest.$ac_ext <<_ACEOF
  33900. - program main
  33901. -
  33902. - end
  33903. -_ACEOF
  33904. -rm -f conftest.$ac_objext conftest$ac_exeext
  33905. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  33906. - (eval $ac_link) 2>conftest.er1
  33907. - ac_status=$?
  33908. - grep -v '^ *+' conftest.er1 >conftest.err
  33909. - rm -f conftest.er1
  33910. - cat conftest.err >&5
  33911. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33912. - (exit $ac_status); } &&
  33913. - { ac_try='test -z "$ac_f77_werror_flag"
  33914. - || test ! -s conftest.err'
  33915. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33916. - (eval $ac_try) 2>&5
  33917. - ac_status=$?
  33918. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33919. - (exit $ac_status); }; } &&
  33920. - { ac_try='test -s conftest$ac_exeext'
  33921. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  33922. - (eval $ac_try) 2>&5
  33923. - ac_status=$?
  33924. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  33925. - (exit $ac_status); }; }; then
  33926. -
  33927. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  33928. -}'`
  33929. -# Check for a 64-bit object if we didn't find anything.
  33930. -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; }
  33931. -}'`; fi
  33932. -else
  33933. - echo "$as_me: failed program was:" >&5
  33934. -sed 's/^/| /' conftest.$ac_ext >&5
  33935. -
  33936. -fi
  33937. -rm -f conftest.err conftest.$ac_objext \
  33938. - conftest$ac_exeext conftest.$ac_ext
  33939. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  33940. -
  33941. - hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath"
  33942. - # Warning - without using the other run time loading flags,
  33943. - # -berok will link without error, but may produce a broken library.
  33944. - no_undefined_flag_F77=' ${wl}-bernotok'
  33945. - allow_undefined_flag_F77=' ${wl}-berok'
  33946. - # -bexpall does not export symbols beginning with underscore (_)
  33947. - always_export_symbols_F77=yes
  33948. - # Exported symbols can be pulled into shared objects from archives
  33949. - whole_archive_flag_spec_F77=' '
  33950. - archive_cmds_need_lc_F77=yes
  33951. - # This is similar to how AIX traditionally builds it's shared libraries.
  33952. - archive_expsym_cmds_F77="\$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'
  33953. - fi
  33954. - fi
  33955. - ;;
  33956. -
  33957. - amigaos*)
  33958. - 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)'
  33959. - hardcode_libdir_flag_spec_F77='-L$libdir'
  33960. - hardcode_minus_L_F77=yes
  33961. - # see comment about different semantics on the GNU ld section
  33962. - ld_shlibs_F77=no
  33963. - ;;
  33964. -
  33965. - bsdi[45]*)
  33966. - export_dynamic_flag_spec_F77=-rdynamic
  33967. - ;;
  33968. -
  33969. - cygwin* | mingw* | pw32*)
  33970. - # When not using gcc, we currently assume that we are using
  33971. - # Microsoft Visual C++.
  33972. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  33973. - # no search path for DLLs.
  33974. - hardcode_libdir_flag_spec_F77=' '
  33975. - allow_undefined_flag_F77=unsupported
  33976. - # Tell ltmain to make .lib files, not .a files.
  33977. - libext=lib
  33978. - # Tell ltmain to make .dll files, not .so files.
  33979. - shrext_cmds=".dll"
  33980. - # FIXME: Setting linknames here is a bad hack.
  33981. - archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  33982. - # The linker will automatically build a .lib file if we build a DLL.
  33983. - old_archive_From_new_cmds_F77='true'
  33984. - # FIXME: Should let the user specify the lib program.
  33985. - old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs'
  33986. - fix_srcfile_path_F77='`cygpath -w "$srcfile"`'
  33987. - enable_shared_with_static_runtimes_F77=yes
  33988. - ;;
  33989. -
  33990. - darwin* | rhapsody*)
  33991. - case "$host_os" in
  33992. - rhapsody* | darwin1.[012])
  33993. - allow_undefined_flag_F77='${wl}-undefined ${wl}suppress'
  33994. - ;;
  33995. - *) # Darwin 1.3 on
  33996. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  33997. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  33998. - else
  33999. - case ${MACOSX_DEPLOYMENT_TARGET} in
  34000. - 10.[012])
  34001. - allow_undefined_flag_F77='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  34002. - ;;
  34003. - 10.*)
  34004. - allow_undefined_flag_F77='${wl}-undefined ${wl}dynamic_lookup'
  34005. - ;;
  34006. - esac
  34007. - fi
  34008. - ;;
  34009. - esac
  34010. - archive_cmds_need_lc_F77=no
  34011. - hardcode_direct_F77=no
  34012. - hardcode_automatic_F77=yes
  34013. - hardcode_shlibpath_var_F77=unsupported
  34014. - whole_archive_flag_spec_F77=''
  34015. - link_all_deplibs_F77=yes
  34016. - if test "$GCC" = yes ; then
  34017. - output_verbose_link_cmd='echo'
  34018. - archive_cmds_F77='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  34019. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  34020. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  34021. - 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}'
  34022. - 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}'
  34023. - else
  34024. - case $cc_basename in
  34025. - xlc*)
  34026. - output_verbose_link_cmd='echo'
  34027. - archive_cmds_F77='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  34028. - module_cmds_F77='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  34029. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  34030. - 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}'
  34031. - 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}'
  34032. - ;;
  34033. - *)
  34034. - ld_shlibs_F77=no
  34035. - ;;
  34036. - esac
  34037. - fi
  34038. - ;;
  34039. -
  34040. - dgux*)
  34041. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34042. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34043. - hardcode_shlibpath_var_F77=no
  34044. - ;;
  34045. -
  34046. - freebsd1*)
  34047. - ld_shlibs_F77=no
  34048. - ;;
  34049. -
  34050. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  34051. - # support. Future versions do this automatically, but an explicit c++rt0.o
  34052. - # does not break anything, and helps significantly (at the cost of a little
  34053. - # extra space).
  34054. - freebsd2.2*)
  34055. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  34056. - hardcode_libdir_flag_spec_F77='-R$libdir'
  34057. - hardcode_direct_F77=yes
  34058. - hardcode_shlibpath_var_F77=no
  34059. - ;;
  34060. -
  34061. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  34062. - freebsd2*)
  34063. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34064. - hardcode_direct_F77=yes
  34065. - hardcode_minus_L_F77=yes
  34066. - hardcode_shlibpath_var_F77=no
  34067. - ;;
  34068. -
  34069. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  34070. - freebsd* | kfreebsd*-gnu | dragonfly*)
  34071. - archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  34072. - hardcode_libdir_flag_spec_F77='-R$libdir'
  34073. - hardcode_direct_F77=yes
  34074. - hardcode_shlibpath_var_F77=no
  34075. - ;;
  34076. -
  34077. - hpux9*)
  34078. - if test "$GCC" = yes; then
  34079. - 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'
  34080. - else
  34081. - 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'
  34082. - fi
  34083. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  34084. - hardcode_libdir_separator_F77=:
  34085. - hardcode_direct_F77=yes
  34086. -
  34087. - # hardcode_minus_L: Not really in the search PATH,
  34088. - # but as the default location of the library.
  34089. - hardcode_minus_L_F77=yes
  34090. - export_dynamic_flag_spec_F77='${wl}-E'
  34091. - ;;
  34092. -
  34093. - hpux10* | hpux11*)
  34094. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  34095. - case "$host_cpu" in
  34096. - hppa*64*|ia64*)
  34097. - archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34098. - ;;
  34099. - *)
  34100. - archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  34101. - ;;
  34102. - esac
  34103. - else
  34104. - case "$host_cpu" in
  34105. - hppa*64*|ia64*)
  34106. - archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  34107. - ;;
  34108. - *)
  34109. - archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  34110. - ;;
  34111. - esac
  34112. - fi
  34113. - if test "$with_gnu_ld" = no; then
  34114. - case "$host_cpu" in
  34115. - hppa*64*)
  34116. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  34117. - hardcode_libdir_flag_spec_ld_F77='+b $libdir'
  34118. - hardcode_libdir_separator_F77=:
  34119. - hardcode_direct_F77=no
  34120. - hardcode_shlibpath_var_F77=no
  34121. - ;;
  34122. - ia64*)
  34123. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34124. - hardcode_direct_F77=no
  34125. - hardcode_shlibpath_var_F77=no
  34126. -
  34127. - # hardcode_minus_L: Not really in the search PATH,
  34128. - # but as the default location of the library.
  34129. - hardcode_minus_L_F77=yes
  34130. - ;;
  34131. - *)
  34132. - hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir'
  34133. - hardcode_libdir_separator_F77=:
  34134. - hardcode_direct_F77=yes
  34135. - export_dynamic_flag_spec_F77='${wl}-E'
  34136. -
  34137. - # hardcode_minus_L: Not really in the search PATH,
  34138. - # but as the default location of the library.
  34139. - hardcode_minus_L_F77=yes
  34140. - ;;
  34141. - esac
  34142. - fi
  34143. - ;;
  34144. -
  34145. - irix5* | irix6* | nonstopux*)
  34146. - if test "$GCC" = yes; then
  34147. - 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'
  34148. - else
  34149. - 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'
  34150. - hardcode_libdir_flag_spec_ld_F77='-rpath $libdir'
  34151. - fi
  34152. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  34153. - hardcode_libdir_separator_F77=:
  34154. - link_all_deplibs_F77=yes
  34155. - ;;
  34156. -
  34157. - netbsd*)
  34158. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  34159. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  34160. - else
  34161. - archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  34162. - fi
  34163. - hardcode_libdir_flag_spec_F77='-R$libdir'
  34164. - hardcode_direct_F77=yes
  34165. - hardcode_shlibpath_var_F77=no
  34166. - ;;
  34167. -
  34168. - newsos6)
  34169. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34170. - hardcode_direct_F77=yes
  34171. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  34172. - hardcode_libdir_separator_F77=:
  34173. - hardcode_shlibpath_var_F77=no
  34174. - ;;
  34175. -
  34176. - openbsd*)
  34177. - hardcode_direct_F77=yes
  34178. - hardcode_shlibpath_var_F77=no
  34179. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  34180. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34181. - archive_expsym_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  34182. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  34183. - export_dynamic_flag_spec_F77='${wl}-E'
  34184. - else
  34185. - case $host_os in
  34186. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  34187. - archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  34188. - hardcode_libdir_flag_spec_F77='-R$libdir'
  34189. - ;;
  34190. - *)
  34191. - archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  34192. - hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir'
  34193. - ;;
  34194. - esac
  34195. - fi
  34196. - ;;
  34197. -
  34198. - os2*)
  34199. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34200. - hardcode_minus_L_F77=yes
  34201. - allow_undefined_flag_F77=unsupported
  34202. - 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'
  34203. - old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  34204. - ;;
  34205. -
  34206. - osf3*)
  34207. - if test "$GCC" = yes; then
  34208. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  34209. - 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'
  34210. - else
  34211. - allow_undefined_flag_F77=' -expect_unresolved \*'
  34212. - 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'
  34213. - fi
  34214. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  34215. - hardcode_libdir_separator_F77=:
  34216. - ;;
  34217. -
  34218. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  34219. - if test "$GCC" = yes; then
  34220. - allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*'
  34221. - 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'
  34222. - hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir'
  34223. - else
  34224. - allow_undefined_flag_F77=' -expect_unresolved \*'
  34225. - 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'
  34226. - 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~
  34227. - $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'
  34228. -
  34229. - # Both c and cxx compiler support -rpath directly
  34230. - hardcode_libdir_flag_spec_F77='-rpath $libdir'
  34231. + sysv4*MP*)
  34232. + if test -d /usr/nec; then
  34233. + lt_prog_compiler_pic=-Kconform_pic
  34234. fi
  34235. - hardcode_libdir_separator_F77=:
  34236. ;;
  34237. - sco3.2v5*)
  34238. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34239. - hardcode_shlibpath_var_F77=no
  34240. - export_dynamic_flag_spec_F77='${wl}-Bexport'
  34241. - runpath_var=LD_RUN_PATH
  34242. - hardcode_runpath_var=yes
  34243. + *)
  34244. + lt_prog_compiler_pic='-fPIC'
  34245. ;;
  34246. -
  34247. - solaris*)
  34248. - no_undefined_flag_F77=' -z text'
  34249. - if test "$GCC" = yes; then
  34250. - wlarc='${wl}'
  34251. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34252. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  34253. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  34254. + esac
  34255. + else
  34256. + # PORTME Check for flag to pass linker flags through the system compiler.
  34257. + case $host_os in
  34258. + aix*)
  34259. + lt_prog_compiler_wl='-Wl,'
  34260. + if test "$host_cpu" = ia64; then
  34261. + # AIX 5 now supports IA64 processor
  34262. + lt_prog_compiler_static='-Bstatic'
  34263. else
  34264. - wlarc=''
  34265. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34266. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  34267. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  34268. + lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  34269. fi
  34270. - hardcode_libdir_flag_spec_F77='-R$libdir'
  34271. - hardcode_shlibpath_var_F77=no
  34272. - case $host_os in
  34273. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  34274. - *)
  34275. - # The compiler driver will combine linker options so we
  34276. - # cannot just pass the convience library names through
  34277. - # without $wl, iff we do not link with $LD.
  34278. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  34279. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  34280. - case $wlarc in
  34281. - '')
  34282. - whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;;
  34283. - *)
  34284. - 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' ;;
  34285. - esac ;;
  34286. - esac
  34287. - link_all_deplibs_F77=yes
  34288. ;;
  34289. - sunos4*)
  34290. - if test "x$host_vendor" = xsequent; then
  34291. - # Use $CC to link under sequent, because it throws in some extra .o
  34292. - # files that make .init and .fini sections work.
  34293. - archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  34294. - else
  34295. - archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  34296. - fi
  34297. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34298. - hardcode_direct_F77=yes
  34299. - hardcode_minus_L_F77=yes
  34300. - hardcode_shlibpath_var_F77=no
  34301. + mingw* | cygwin* | pw32* | os2* | cegcc*)
  34302. + # This hack is so that the source file can tell whether it is being
  34303. + # built for inclusion in a dll (and should export symbols for example).
  34304. + lt_prog_compiler_pic='-DDLL_EXPORT'
  34305. ;;
  34306. - sysv4)
  34307. - case $host_vendor in
  34308. - sni)
  34309. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34310. - hardcode_direct_F77=yes # is this really true???
  34311. + hpux9* | hpux10* | hpux11*)
  34312. + lt_prog_compiler_wl='-Wl,'
  34313. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  34314. + # not for PA HP-UX.
  34315. + case $host_cpu in
  34316. + hppa*64*|ia64*)
  34317. + # +Z the default
  34318. ;;
  34319. - siemens)
  34320. - ## LD is ld it makes a PLAMLIB
  34321. - ## CC just makes a GrossModule.
  34322. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  34323. - reload_cmds_F77='$CC -r -o $output$reload_objs'
  34324. - hardcode_direct_F77=no
  34325. - ;;
  34326. - motorola)
  34327. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34328. - hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie
  34329. + *)
  34330. + lt_prog_compiler_pic='+Z'
  34331. ;;
  34332. esac
  34333. - runpath_var='LD_RUN_PATH'
  34334. - hardcode_shlibpath_var_F77=no
  34335. - ;;
  34336. -
  34337. - sysv4.3*)
  34338. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34339. - hardcode_shlibpath_var_F77=no
  34340. - export_dynamic_flag_spec_F77='-Bexport'
  34341. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  34342. + lt_prog_compiler_static='${wl}-a ${wl}archive'
  34343. ;;
  34344. - sysv4*MP*)
  34345. - if test -d /usr/nec; then
  34346. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34347. - hardcode_shlibpath_var_F77=no
  34348. - runpath_var=LD_RUN_PATH
  34349. - hardcode_runpath_var=yes
  34350. - ld_shlibs_F77=yes
  34351. - fi
  34352. + irix5* | irix6* | nonstopux*)
  34353. + lt_prog_compiler_wl='-Wl,'
  34354. + # PIC (with -KPIC) is the default.
  34355. + lt_prog_compiler_static='-non_shared'
  34356. ;;
  34357. - sysv4.2uw2*)
  34358. - archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  34359. - hardcode_direct_F77=yes
  34360. - hardcode_minus_L_F77=no
  34361. - hardcode_shlibpath_var_F77=no
  34362. - hardcode_runpath_var=yes
  34363. - runpath_var=LD_RUN_PATH
  34364. + linux* | k*bsd*-gnu | kopensolaris*-gnu)
  34365. + case $cc_basename in
  34366. + # old Intel for x86_64 which still supported -KPIC.
  34367. + ecc*)
  34368. + lt_prog_compiler_wl='-Wl,'
  34369. + lt_prog_compiler_pic='-KPIC'
  34370. + lt_prog_compiler_static='-static'
  34371. + ;;
  34372. + # icc used to be incompatible with GCC.
  34373. + # ICC 10 doesn't accept -KPIC any more.
  34374. + icc* | ifort*)
  34375. + lt_prog_compiler_wl='-Wl,'
  34376. + lt_prog_compiler_pic='-fPIC'
  34377. + lt_prog_compiler_static='-static'
  34378. + ;;
  34379. + # Lahey Fortran 8.1.
  34380. + lf95*)
  34381. + lt_prog_compiler_wl='-Wl,'
  34382. + lt_prog_compiler_pic='--shared'
  34383. + lt_prog_compiler_static='--static'
  34384. + ;;
  34385. + pgcc* | pgf77* | pgf90* | pgf95*)
  34386. + # Portland Group compilers (*not* the Pentium gcc compiler,
  34387. + # which looks to be a dead project)
  34388. + lt_prog_compiler_wl='-Wl,'
  34389. + lt_prog_compiler_pic='-fpic'
  34390. + lt_prog_compiler_static='-Bstatic'
  34391. + ;;
  34392. + ccc*)
  34393. + lt_prog_compiler_wl='-Wl,'
  34394. + # All Alpha code is PIC.
  34395. + lt_prog_compiler_static='-non_shared'
  34396. + ;;
  34397. + xl*)
  34398. + # IBM XL C 8.0/Fortran 10.1 on PPC
  34399. + lt_prog_compiler_wl='-Wl,'
  34400. + lt_prog_compiler_pic='-qpic'
  34401. + lt_prog_compiler_static='-qstaticlink'
  34402. + ;;
  34403. + *)
  34404. + case `$CC -V 2>&1 | sed 5q` in
  34405. + *Sun\ C*)
  34406. + # Sun C 5.9
  34407. + lt_prog_compiler_pic='-KPIC'
  34408. + lt_prog_compiler_static='-Bstatic'
  34409. + lt_prog_compiler_wl='-Wl,'
  34410. + ;;
  34411. + *Sun\ F*)
  34412. + # Sun Fortran 8.3 passes all unrecognized flags to the linker
  34413. + lt_prog_compiler_pic='-KPIC'
  34414. + lt_prog_compiler_static='-Bstatic'
  34415. + lt_prog_compiler_wl=''
  34416. + ;;
  34417. + esac
  34418. + ;;
  34419. + esac
  34420. ;;
  34421. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  34422. - no_undefined_flag_F77='${wl}-z ${wl}text'
  34423. - if test "$GCC" = yes; then
  34424. - archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34425. - else
  34426. - archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  34427. - fi
  34428. - runpath_var='LD_RUN_PATH'
  34429. - hardcode_shlibpath_var_F77=no
  34430. + newsos6)
  34431. + lt_prog_compiler_pic='-KPIC'
  34432. + lt_prog_compiler_static='-Bstatic'
  34433. ;;
  34434. - sysv5*)
  34435. - no_undefined_flag_F77=' -z text'
  34436. - # $CC -shared without GNU ld will not create a library from C++
  34437. - # object files and a static libstdc++, better avoid it by now
  34438. - archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34439. - archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  34440. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  34441. - hardcode_libdir_flag_spec_F77=
  34442. - hardcode_shlibpath_var_F77=no
  34443. - runpath_var='LD_RUN_PATH'
  34444. + *nto* | *qnx*)
  34445. + # QNX uses GNU C++, but need to define -shared option too, otherwise
  34446. + # it will coredump.
  34447. + lt_prog_compiler_pic='-fPIC -shared'
  34448. ;;
  34449. - uts4*)
  34450. - archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  34451. - hardcode_libdir_flag_spec_F77='-L$libdir'
  34452. - hardcode_shlibpath_var_F77=no
  34453. + osf3* | osf4* | osf5*)
  34454. + lt_prog_compiler_wl='-Wl,'
  34455. + # All OSF/1 code is PIC.
  34456. + lt_prog_compiler_static='-non_shared'
  34457. ;;
  34458. - *)
  34459. - ld_shlibs_F77=no
  34460. + rdos*)
  34461. + lt_prog_compiler_static='-non_shared'
  34462. ;;
  34463. - esac
  34464. - fi
  34465. -
  34466. -echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5
  34467. -echo "${ECHO_T}$ld_shlibs_F77" >&6
  34468. -test "$ld_shlibs_F77" = no && can_build_shared=no
  34469. -
  34470. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  34471. -if test "$GCC" = yes; then
  34472. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  34473. -fi
  34474. -
  34475. -#
  34476. -# Do we need to explicitly link libc?
  34477. -#
  34478. -case "x$archive_cmds_need_lc_F77" in
  34479. -x|xyes)
  34480. - # Assume -lc should be added
  34481. - archive_cmds_need_lc_F77=yes
  34482. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  34483. - case $archive_cmds_F77 in
  34484. - *'~'*)
  34485. - # FIXME: we may have to deal with multi-command sequences.
  34486. + solaris*)
  34487. + lt_prog_compiler_pic='-KPIC'
  34488. + lt_prog_compiler_static='-Bstatic'
  34489. + case $cc_basename in
  34490. + f77* | f90* | f95*)
  34491. + lt_prog_compiler_wl='-Qoption ld ';;
  34492. + *)
  34493. + lt_prog_compiler_wl='-Wl,';;
  34494. + esac
  34495. ;;
  34496. - '$CC '*)
  34497. - # Test whether the compiler implicitly links with -lc since on some
  34498. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  34499. - # to ld, don't add -lc before -lgcc.
  34500. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  34501. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  34502. - $rm conftest*
  34503. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  34504. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  34505. - (eval $ac_compile) 2>&5
  34506. - ac_status=$?
  34507. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34508. - (exit $ac_status); } 2>conftest.err; then
  34509. - soname=conftest
  34510. - lib=conftest
  34511. - libobjs=conftest.$ac_objext
  34512. - deplibs=
  34513. - wl=$lt_prog_compiler_wl_F77
  34514. - compiler_flags=-v
  34515. - linker_flags=-v
  34516. - verstring=
  34517. - output_objdir=.
  34518. - libname=conftest
  34519. - lt_save_allow_undefined_flag=$allow_undefined_flag_F77
  34520. - allow_undefined_flag_F77=
  34521. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  34522. - (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  34523. - ac_status=$?
  34524. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  34525. - (exit $ac_status); }
  34526. - then
  34527. - archive_cmds_need_lc_F77=no
  34528. - else
  34529. - archive_cmds_need_lc_F77=yes
  34530. - fi
  34531. - allow_undefined_flag_F77=$lt_save_allow_undefined_flag
  34532. - else
  34533. - cat conftest.err 1>&5
  34534. - fi
  34535. - $rm conftest*
  34536. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5
  34537. -echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6
  34538. + sunos4*)
  34539. + lt_prog_compiler_wl='-Qoption ld '
  34540. + lt_prog_compiler_pic='-PIC'
  34541. + lt_prog_compiler_static='-Bstatic'
  34542. ;;
  34543. - esac
  34544. - fi
  34545. - ;;
  34546. -esac
  34547. -
  34548. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  34549. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  34550. -library_names_spec=
  34551. -libname_spec='lib$name'
  34552. -soname_spec=
  34553. -shrext_cmds=".so"
  34554. -postinstall_cmds=
  34555. -postuninstall_cmds=
  34556. -finish_cmds=
  34557. -finish_eval=
  34558. -shlibpath_var=
  34559. -shlibpath_overrides_runpath=unknown
  34560. -version_type=none
  34561. -dynamic_linker="$host_os ld.so"
  34562. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  34563. -if test "$GCC" = yes; then
  34564. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  34565. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  34566. - # if the path contains ";" then we assume it to be the separator
  34567. - # otherwise default to the standard path separator (i.e. ":") - it is
  34568. - # assumed that no part of a normal pathname contains ";" but that should
  34569. - # okay in the real world where ";" in dirpaths is itself problematic.
  34570. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  34571. - else
  34572. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  34573. - fi
  34574. -else
  34575. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  34576. -fi
  34577. -need_lib_prefix=unknown
  34578. -hardcode_into_libs=no
  34579. -
  34580. -# when you set need_version to no, make sure it does not cause -set_version
  34581. -# flags to be left without arguments
  34582. -need_version=unknown
  34583. -
  34584. -case $host_os in
  34585. -aix3*)
  34586. - version_type=linux
  34587. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  34588. - shlibpath_var=LIBPATH
  34589. -
  34590. - # AIX 3 has no versioning support, so we append a major version to the name.
  34591. - soname_spec='${libname}${release}${shared_ext}$major'
  34592. - ;;
  34593. -aix4* | aix5*)
  34594. - version_type=linux
  34595. - need_lib_prefix=no
  34596. - need_version=no
  34597. - hardcode_into_libs=yes
  34598. - if test "$host_cpu" = ia64; then
  34599. - # AIX 5 supports IA64
  34600. - library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  34601. - shlibpath_var=LD_LIBRARY_PATH
  34602. - else
  34603. - # With GCC up to 2.95.x, collect2 would create an import file
  34604. - # for dependence libraries. The import file would start with
  34605. - # the line `#! .'. This would cause the generated library to
  34606. - # depend on `.', always an invalid library. This was fixed in
  34607. - # development snapshots of GCC prior to 3.0.
  34608. - case $host_os in
  34609. - aix4 | aix4.[01] | aix4.[01].*)
  34610. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  34611. - echo ' yes '
  34612. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  34613. - :
  34614. - else
  34615. - can_build_shared=no
  34616. - fi
  34617. + sysv4 | sysv4.2uw2* | sysv4.3*)
  34618. + lt_prog_compiler_wl='-Wl,'
  34619. + lt_prog_compiler_pic='-KPIC'
  34620. + lt_prog_compiler_static='-Bstatic'
  34621. ;;
  34622. - esac
  34623. - # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  34624. - # soname into executable. Probably we can add versioning support to
  34625. - # collect2, so additional links can be useful in future.
  34626. - if test "$aix_use_runtimelinking" = yes; then
  34627. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  34628. - # instead of lib<name>.a to let people know that these are not
  34629. - # typical AIX shared libraries.
  34630. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34631. - else
  34632. - # We preserve .a as extension for shared libraries through AIX4.2
  34633. - # and later when we are not doing run time linking.
  34634. - library_names_spec='${libname}${release}.a $libname.a'
  34635. - soname_spec='${libname}${release}${shared_ext}$major'
  34636. - fi
  34637. - shlibpath_var=LIBPATH
  34638. - fi
  34639. - ;;
  34640. -
  34641. -amigaos*)
  34642. - library_names_spec='$libname.ixlibrary $libname.a'
  34643. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  34644. - 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'
  34645. - ;;
  34646. -
  34647. -beos*)
  34648. - library_names_spec='${libname}${shared_ext}'
  34649. - dynamic_linker="$host_os ld.so"
  34650. - shlibpath_var=LIBRARY_PATH
  34651. - ;;
  34652. -
  34653. -bsdi[45]*)
  34654. - version_type=linux
  34655. - need_version=no
  34656. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34657. - soname_spec='${libname}${release}${shared_ext}$major'
  34658. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  34659. - shlibpath_var=LD_LIBRARY_PATH
  34660. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  34661. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  34662. - # the default ld.so.conf also contains /usr/contrib/lib and
  34663. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  34664. - # libtool to hard-code these into programs
  34665. - ;;
  34666. -
  34667. -cygwin* | mingw* | pw32*)
  34668. - version_type=windows
  34669. - shrext_cmds=".dll"
  34670. - need_version=no
  34671. - need_lib_prefix=no
  34672. -
  34673. - case $GCC,$host_os in
  34674. - yes,cygwin* | yes,mingw* | yes,pw32*)
  34675. - library_names_spec='$libname.dll.a'
  34676. - # DLL is installed to $(libdir)/../bin by postinstall_cmds
  34677. - postinstall_cmds='base_file=`basename \${file}`~
  34678. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  34679. - dldir=$destdir/`dirname \$dlpath`~
  34680. - test -d \$dldir || mkdir -p \$dldir~
  34681. - $install_prog $dir/$dlname \$dldir/$dlname'
  34682. - postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  34683. - dlpath=$dir/\$dldll~
  34684. - $rm \$dlpath'
  34685. - shlibpath_overrides_runpath=yes
  34686. - case $host_os in
  34687. - cygwin*)
  34688. - # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  34689. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34690. - sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  34691. - ;;
  34692. - mingw*)
  34693. - # MinGW DLLs use traditional 'lib' prefix
  34694. - soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34695. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  34696. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  34697. - # It is most probably a Windows format PATH printed by
  34698. - # mingw gcc, but we are running on Cygwin. Gcc prints its search
  34699. - # path with ; separators, and with drive letters. We can handle the
  34700. - # drive letters (cygwin fileutils understands them), so leave them,
  34701. - # especially as we might pass files found there to a mingw objdump,
  34702. - # which wouldn't understand a cygwinified path. Ahh.
  34703. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  34704. - else
  34705. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  34706. + sysv4*MP*)
  34707. + if test -d /usr/nec ;then
  34708. + lt_prog_compiler_pic='-Kconform_pic'
  34709. + lt_prog_compiler_static='-Bstatic'
  34710. fi
  34711. ;;
  34712. - pw32*)
  34713. - # pw32 DLLs use 'pw' prefix rather than 'lib'
  34714. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  34715. +
  34716. + sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  34717. + lt_prog_compiler_wl='-Wl,'
  34718. + lt_prog_compiler_pic='-KPIC'
  34719. + lt_prog_compiler_static='-Bstatic'
  34720. + ;;
  34721. +
  34722. + unicos*)
  34723. + lt_prog_compiler_wl='-Wl,'
  34724. + lt_prog_compiler_can_build_shared=no
  34725. + ;;
  34726. +
  34727. + uts4*)
  34728. + lt_prog_compiler_pic='-pic'
  34729. + lt_prog_compiler_static='-Bstatic'
  34730. + ;;
  34731. +
  34732. + *)
  34733. + lt_prog_compiler_can_build_shared=no
  34734. ;;
  34735. esac
  34736. - ;;
  34737. + fi
  34738. +case $host_os in
  34739. + # For platforms which do not support PIC, -DPIC is meaningless:
  34740. + *djgpp*)
  34741. + lt_prog_compiler_pic=
  34742. + ;;
  34743. *)
  34744. - library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  34745. + lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  34746. ;;
  34747. - esac
  34748. - dynamic_linker='Win32 ld.exe'
  34749. - # FIXME: first we should search . and the directory the executable is in
  34750. - shlibpath_var=PATH
  34751. - ;;
  34752. +esac
  34753. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  34754. +$as_echo "$lt_prog_compiler_pic" >&6; }
  34755. -darwin* | rhapsody*)
  34756. - dynamic_linker="$host_os dyld"
  34757. - version_type=darwin
  34758. - need_lib_prefix=no
  34759. - need_version=no
  34760. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  34761. - soname_spec='${libname}${release}${major}$shared_ext'
  34762. - shlibpath_overrides_runpath=yes
  34763. - shlibpath_var=DYLD_LIBRARY_PATH
  34764. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  34765. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  34766. - if test "$GCC" = yes; then
  34767. - 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"`
  34768. - else
  34769. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  34770. - fi
  34771. - sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  34772. - ;;
  34773. -dgux*)
  34774. - version_type=linux
  34775. - need_lib_prefix=no
  34776. - need_version=no
  34777. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  34778. - soname_spec='${libname}${release}${shared_ext}$major'
  34779. - shlibpath_var=LD_LIBRARY_PATH
  34780. - ;;
  34781. -freebsd1*)
  34782. - dynamic_linker=no
  34783. - ;;
  34784. -kfreebsd*-gnu)
  34785. - version_type=linux
  34786. - need_lib_prefix=no
  34787. - need_version=no
  34788. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  34789. - soname_spec='${libname}${release}${shared_ext}$major'
  34790. - shlibpath_var=LD_LIBRARY_PATH
  34791. - shlibpath_overrides_runpath=no
  34792. - hardcode_into_libs=yes
  34793. - dynamic_linker='GNU ld.so'
  34794. - ;;
  34795. -freebsd* | dragonfly*)
  34796. - # DragonFly does not have aout. When/if they implement a new
  34797. - # versioning mechanism, adjust this.
  34798. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  34799. - version_type=freebsd-$objformat
  34800. - case $version_type in
  34801. - freebsd-elf*)
  34802. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  34803. - need_version=no
  34804. - need_lib_prefix=no
  34805. - ;;
  34806. - freebsd-*)
  34807. - library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  34808. - need_version=yes
  34809. - ;;
  34810. - esac
  34811. - shlibpath_var=LD_LIBRARY_PATH
  34812. - case $host_os in
  34813. - freebsd2*)
  34814. - shlibpath_overrides_runpath=yes
  34815. - ;;
  34816. - freebsd3.[01]* | freebsdelf3.[01]*)
  34817. - shlibpath_overrides_runpath=yes
  34818. - hardcode_into_libs=yes
  34819. - ;;
  34820. - *) # from 3.2 on
  34821. - shlibpath_overrides_runpath=no
  34822. - hardcode_into_libs=yes
  34823. - ;;
  34824. - esac
  34825. - ;;
  34826. -gnu*)
  34827. - version_type=linux
  34828. - need_lib_prefix=no
  34829. - need_version=no
  34830. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  34831. - soname_spec='${libname}${release}${shared_ext}$major'
  34832. - shlibpath_var=LD_LIBRARY_PATH
  34833. - hardcode_into_libs=yes
  34834. - ;;
  34835. +#
  34836. +# Check to make sure the PIC flag actually works.
  34837. +#
  34838. +if test -n "$lt_prog_compiler_pic"; then
  34839. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  34840. +$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  34841. +if test "${lt_cv_prog_compiler_pic_works+set}" = set; then :
  34842. + $as_echo_n "(cached) " >&6
  34843. +else
  34844. + lt_cv_prog_compiler_pic_works=no
  34845. + ac_outfile=conftest.$ac_objext
  34846. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  34847. + lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  34848. + # Insert the option either (1) after the last *FLAGS variable, or
  34849. + # (2) before a word containing "conftest.", or (3) at the end.
  34850. + # Note that $ac_compile itself does not contain backslashes and begins
  34851. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  34852. + # The option is referenced via a variable to avoid confusing sed.
  34853. + lt_compile=`echo "$ac_compile" | $SED \
  34854. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  34855. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  34856. + -e 's:$: $lt_compiler_flag:'`
  34857. + (eval echo "\"\$as_me:7604: $lt_compile\"" >&5)
  34858. + (eval "$lt_compile" 2>conftest.err)
  34859. + ac_status=$?
  34860. + cat conftest.err >&5
  34861. + echo "$as_me:7608: \$? = $ac_status" >&5
  34862. + if (exit $ac_status) && test -s "$ac_outfile"; then
  34863. + # The compiler can only warn and ignore the option if not recognized
  34864. + # So say no if there are warnings other than the usual output.
  34865. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp
  34866. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34867. + if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  34868. + lt_cv_prog_compiler_pic_works=yes
  34869. + fi
  34870. + fi
  34871. + $RM conftest*
  34872. -hpux9* | hpux10* | hpux11*)
  34873. - # Give a soname corresponding to the major version so that dld.sl refuses to
  34874. - # link against other versions.
  34875. - version_type=sunos
  34876. - need_lib_prefix=no
  34877. - need_version=no
  34878. - case "$host_cpu" in
  34879. - ia64*)
  34880. - shrext_cmds='.so'
  34881. - hardcode_into_libs=yes
  34882. - dynamic_linker="$host_os dld.so"
  34883. - shlibpath_var=LD_LIBRARY_PATH
  34884. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  34885. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34886. - soname_spec='${libname}${release}${shared_ext}$major'
  34887. - if test "X$HPUX_IA64_MODE" = X32; then
  34888. - sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  34889. - else
  34890. - sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  34891. - fi
  34892. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  34893. - ;;
  34894. - hppa*64*)
  34895. - shrext_cmds='.sl'
  34896. - hardcode_into_libs=yes
  34897. - dynamic_linker="$host_os dld.sl"
  34898. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  34899. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  34900. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34901. - soname_spec='${libname}${release}${shared_ext}$major'
  34902. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  34903. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  34904. - ;;
  34905. - *)
  34906. - shrext_cmds='.sl'
  34907. - dynamic_linker="$host_os dld.sl"
  34908. - shlibpath_var=SHLIB_PATH
  34909. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  34910. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  34911. - soname_spec='${libname}${release}${shared_ext}$major'
  34912. - ;;
  34913. - esac
  34914. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  34915. - postinstall_cmds='chmod 555 $lib'
  34916. - ;;
  34917. +fi
  34918. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  34919. +$as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  34920. -irix5* | irix6* | nonstopux*)
  34921. - case $host_os in
  34922. - nonstopux*) version_type=nonstopux ;;
  34923. - *)
  34924. - if test "$lt_cv_prog_gnu_ld" = yes; then
  34925. - version_type=linux
  34926. - else
  34927. - version_type=irix
  34928. - fi ;;
  34929. - esac
  34930. - need_lib_prefix=no
  34931. - need_version=no
  34932. - soname_spec='${libname}${release}${shared_ext}$major'
  34933. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  34934. - case $host_os in
  34935. - irix5* | nonstopux*)
  34936. - libsuff= shlibsuff=
  34937. - ;;
  34938. - *)
  34939. - case $LD in # libtool.m4 will add one of these switches to LD
  34940. - *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  34941. - libsuff= shlibsuff= libmagic=32-bit;;
  34942. - *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  34943. - libsuff=32 shlibsuff=N32 libmagic=N32;;
  34944. - *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  34945. - libsuff=64 shlibsuff=64 libmagic=64-bit;;
  34946. - *) libsuff= shlibsuff= libmagic=never-match;;
  34947. - esac
  34948. - ;;
  34949. - esac
  34950. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  34951. - shlibpath_overrides_runpath=no
  34952. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  34953. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  34954. - hardcode_into_libs=yes
  34955. - ;;
  34956. +if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  34957. + case $lt_prog_compiler_pic in
  34958. + "" | " "*) ;;
  34959. + *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  34960. + esac
  34961. +else
  34962. + lt_prog_compiler_pic=
  34963. + lt_prog_compiler_can_build_shared=no
  34964. +fi
  34965. +
  34966. +fi
  34967. +
  34968. +
  34969. +
  34970. +
  34971. +
  34972. +
  34973. +#
  34974. +# Check to make sure the static flag actually works.
  34975. +#
  34976. +wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  34977. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  34978. +$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  34979. +if test "${lt_cv_prog_compiler_static_works+set}" = set; then :
  34980. + $as_echo_n "(cached) " >&6
  34981. +else
  34982. + lt_cv_prog_compiler_static_works=no
  34983. + save_LDFLAGS="$LDFLAGS"
  34984. + LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  34985. + echo "$lt_simple_link_test_code" > conftest.$ac_ext
  34986. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  34987. + # The linker can only warn and ignore the option if not recognized
  34988. + # So say no if there are warnings
  34989. + if test -s conftest.err; then
  34990. + # Append any errors to the config.log.
  34991. + cat conftest.err 1>&5
  34992. + $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp
  34993. + $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  34994. + if diff conftest.exp conftest.er2 >/dev/null; then
  34995. + lt_cv_prog_compiler_static_works=yes
  34996. + fi
  34997. + else
  34998. + lt_cv_prog_compiler_static_works=yes
  34999. + fi
  35000. + fi
  35001. + $RM -r conftest*
  35002. + LDFLAGS="$save_LDFLAGS"
  35003. +
  35004. +fi
  35005. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  35006. +$as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  35007. +
  35008. +if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  35009. + :
  35010. +else
  35011. + lt_prog_compiler_static=
  35012. +fi
  35013. +
  35014. +
  35015. +
  35016. +
  35017. +
  35018. +
  35019. +
  35020. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  35021. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  35022. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  35023. + $as_echo_n "(cached) " >&6
  35024. +else
  35025. + lt_cv_prog_compiler_c_o=no
  35026. + $RM -r conftest 2>/dev/null
  35027. + mkdir conftest
  35028. + cd conftest
  35029. + mkdir out
  35030. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35031. +
  35032. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  35033. + # Insert the option either (1) after the last *FLAGS variable, or
  35034. + # (2) before a word containing "conftest.", or (3) at the end.
  35035. + # Note that $ac_compile itself does not contain backslashes and begins
  35036. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  35037. + lt_compile=`echo "$ac_compile" | $SED \
  35038. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35039. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35040. + -e 's:$: $lt_compiler_flag:'`
  35041. + (eval echo "\"\$as_me:7709: $lt_compile\"" >&5)
  35042. + (eval "$lt_compile" 2>out/conftest.err)
  35043. + ac_status=$?
  35044. + cat out/conftest.err >&5
  35045. + echo "$as_me:7713: \$? = $ac_status" >&5
  35046. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  35047. + then
  35048. + # The compiler can only warn and ignore the option if not recognized
  35049. + # So say no if there are warnings
  35050. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  35051. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  35052. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  35053. + lt_cv_prog_compiler_c_o=yes
  35054. + fi
  35055. + fi
  35056. + chmod u+w . 2>&5
  35057. + $RM conftest*
  35058. + # SGI C++ compiler will create directory out/ii_files/ for
  35059. + # template instantiation
  35060. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  35061. + $RM out/* && rmdir out
  35062. + cd ..
  35063. + $RM -r conftest
  35064. + $RM conftest*
  35065. -# No shared lib support for Linux oldld, aout, or coff.
  35066. -linux*oldld* | linux*aout* | linux*coff*)
  35067. - dynamic_linker=no
  35068. - ;;
  35069. +fi
  35070. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  35071. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  35072. -# This must be Linux ELF.
  35073. -linux*)
  35074. - version_type=linux
  35075. - need_lib_prefix=no
  35076. - need_version=no
  35077. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35078. - soname_spec='${libname}${release}${shared_ext}$major'
  35079. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  35080. - shlibpath_var=LD_LIBRARY_PATH
  35081. - shlibpath_overrides_runpath=no
  35082. - # This implies no fast_install, which is unacceptable.
  35083. - # Some rework will be needed to allow for fast_install
  35084. - # before this can be enabled.
  35085. - hardcode_into_libs=yes
  35086. - # find out which ABI we are using
  35087. - libsuff=
  35088. - case "$host_cpu" in
  35089. - x86_64*|s390x*|powerpc64*)
  35090. - echo '#line 15129 "configure"' > conftest.$ac_ext
  35091. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  35092. - (eval $ac_compile) 2>&5
  35093. - ac_status=$?
  35094. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  35095. - (exit $ac_status); }; then
  35096. - case `/usr/bin/file conftest.$ac_objext` in
  35097. - *64-bit*)
  35098. - libsuff=64
  35099. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  35100. - ;;
  35101. - esac
  35102. - fi
  35103. - rm -rf conftest*
  35104. - ;;
  35105. - esac
  35106. - # Append ld.so.conf contents to the search path
  35107. - if test -f /etc/ld.so.conf; then
  35108. - 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  35109. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  35110. - fi
  35111. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  35112. - # powerpc, because MkLinux only supported shared libraries with the
  35113. - # GNU dynamic linker. Since this was broken with cross compilers,
  35114. - # most powerpc-linux boxes support dynamic linking these days and
  35115. - # people can always --disable-shared, the test was removed, and we
  35116. - # assume the GNU/Linux dynamic linker is in use.
  35117. - dynamic_linker='GNU/Linux ld.so'
  35118. - ;;
  35119. -knetbsd*-gnu)
  35120. - version_type=linux
  35121. - need_lib_prefix=no
  35122. - need_version=no
  35123. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35124. - soname_spec='${libname}${release}${shared_ext}$major'
  35125. - shlibpath_var=LD_LIBRARY_PATH
  35126. - shlibpath_overrides_runpath=no
  35127. - hardcode_into_libs=yes
  35128. - dynamic_linker='GNU ld.so'
  35129. - ;;
  35130. -netbsd*)
  35131. - version_type=sunos
  35132. - need_lib_prefix=no
  35133. - need_version=no
  35134. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  35135. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35136. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  35137. - dynamic_linker='NetBSD (a.out) ld.so'
  35138. - else
  35139. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  35140. - soname_spec='${libname}${release}${shared_ext}$major'
  35141. - dynamic_linker='NetBSD ld.elf_so'
  35142. - fi
  35143. - shlibpath_var=LD_LIBRARY_PATH
  35144. - shlibpath_overrides_runpath=yes
  35145. - hardcode_into_libs=yes
  35146. - ;;
  35147. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  35148. +$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  35149. +if test "${lt_cv_prog_compiler_c_o+set}" = set; then :
  35150. + $as_echo_n "(cached) " >&6
  35151. +else
  35152. + lt_cv_prog_compiler_c_o=no
  35153. + $RM -r conftest 2>/dev/null
  35154. + mkdir conftest
  35155. + cd conftest
  35156. + mkdir out
  35157. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  35158. -newsos6)
  35159. - version_type=linux
  35160. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35161. - shlibpath_var=LD_LIBRARY_PATH
  35162. - shlibpath_overrides_runpath=yes
  35163. - ;;
  35164. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  35165. + # Insert the option either (1) after the last *FLAGS variable, or
  35166. + # (2) before a word containing "conftest.", or (3) at the end.
  35167. + # Note that $ac_compile itself does not contain backslashes and begins
  35168. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  35169. + lt_compile=`echo "$ac_compile" | $SED \
  35170. + -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  35171. + -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  35172. + -e 's:$: $lt_compiler_flag:'`
  35173. + (eval echo "\"\$as_me:7764: $lt_compile\"" >&5)
  35174. + (eval "$lt_compile" 2>out/conftest.err)
  35175. + ac_status=$?
  35176. + cat out/conftest.err >&5
  35177. + echo "$as_me:7768: \$? = $ac_status" >&5
  35178. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  35179. + then
  35180. + # The compiler can only warn and ignore the option if not recognized
  35181. + # So say no if there are warnings
  35182. + $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp
  35183. + $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  35184. + if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  35185. + lt_cv_prog_compiler_c_o=yes
  35186. + fi
  35187. + fi
  35188. + chmod u+w . 2>&5
  35189. + $RM conftest*
  35190. + # SGI C++ compiler will create directory out/ii_files/ for
  35191. + # template instantiation
  35192. + test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  35193. + $RM out/* && rmdir out
  35194. + cd ..
  35195. + $RM -r conftest
  35196. + $RM conftest*
  35197. -nto-qnx*)
  35198. - version_type=linux
  35199. - need_lib_prefix=no
  35200. - need_version=no
  35201. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35202. - soname_spec='${libname}${release}${shared_ext}$major'
  35203. - shlibpath_var=LD_LIBRARY_PATH
  35204. - shlibpath_overrides_runpath=yes
  35205. - ;;
  35206. +fi
  35207. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  35208. +$as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  35209. -openbsd*)
  35210. - version_type=sunos
  35211. - need_lib_prefix=no
  35212. - need_version=no
  35213. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35214. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  35215. - shlibpath_var=LD_LIBRARY_PATH
  35216. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  35217. - case $host_os in
  35218. - openbsd2.[89] | openbsd2.[89].*)
  35219. - shlibpath_overrides_runpath=no
  35220. - ;;
  35221. - *)
  35222. - shlibpath_overrides_runpath=yes
  35223. - ;;
  35224. - esac
  35225. - else
  35226. - shlibpath_overrides_runpath=yes
  35227. +
  35228. +
  35229. +
  35230. +hard_links="nottested"
  35231. +if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  35232. + # do not overwrite the value of need_locks provided by the user
  35233. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  35234. +$as_echo_n "checking if we can lock with hard links... " >&6; }
  35235. + hard_links=yes
  35236. + $RM conftest*
  35237. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35238. + touch conftest.a
  35239. + ln conftest.a conftest.b 2>&5 || hard_links=no
  35240. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  35241. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  35242. +$as_echo "$hard_links" >&6; }
  35243. + if test "$hard_links" = no; then
  35244. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  35245. +$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  35246. + need_locks=warn
  35247. fi
  35248. - ;;
  35249. +else
  35250. + need_locks=no
  35251. +fi
  35252. -os2*)
  35253. - libname_spec='$name'
  35254. - shrext_cmds=".dll"
  35255. - need_lib_prefix=no
  35256. - library_names_spec='$libname${shared_ext} $libname.a'
  35257. - dynamic_linker='OS/2 ld.exe'
  35258. - shlibpath_var=LIBPATH
  35259. - ;;
  35260. -osf3* | osf4* | osf5*)
  35261. - version_type=osf
  35262. - need_lib_prefix=no
  35263. - need_version=no
  35264. - soname_spec='${libname}${release}${shared_ext}$major'
  35265. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35266. - shlibpath_var=LD_LIBRARY_PATH
  35267. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  35268. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  35269. - ;;
  35270. -sco3.2v5*)
  35271. - version_type=osf
  35272. - soname_spec='${libname}${release}${shared_ext}$major'
  35273. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35274. - shlibpath_var=LD_LIBRARY_PATH
  35275. - ;;
  35276. -solaris*)
  35277. - version_type=linux
  35278. - need_lib_prefix=no
  35279. - need_version=no
  35280. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35281. - soname_spec='${libname}${release}${shared_ext}$major'
  35282. - shlibpath_var=LD_LIBRARY_PATH
  35283. - shlibpath_overrides_runpath=yes
  35284. - hardcode_into_libs=yes
  35285. - # ldd complains unless libraries are executable
  35286. - postinstall_cmds='chmod +x $lib'
  35287. - ;;
  35288. -sunos4*)
  35289. - version_type=sunos
  35290. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  35291. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  35292. - shlibpath_var=LD_LIBRARY_PATH
  35293. - shlibpath_overrides_runpath=yes
  35294. - if test "$with_gnu_ld" = yes; then
  35295. - need_lib_prefix=no
  35296. - fi
  35297. - need_version=yes
  35298. - ;;
  35299. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  35300. - version_type=linux
  35301. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35302. - soname_spec='${libname}${release}${shared_ext}$major'
  35303. - shlibpath_var=LD_LIBRARY_PATH
  35304. - case $host_vendor in
  35305. - sni)
  35306. - shlibpath_overrides_runpath=no
  35307. - need_lib_prefix=no
  35308. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  35309. - runpath_var=LD_RUN_PATH
  35310. - ;;
  35311. - siemens)
  35312. - need_lib_prefix=no
  35313. - ;;
  35314. - motorola)
  35315. - need_lib_prefix=no
  35316. - need_version=no
  35317. - shlibpath_overrides_runpath=no
  35318. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  35319. - ;;
  35320. - esac
  35321. - ;;
  35322. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  35323. +$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  35324. +
  35325. + runpath_var=
  35326. + allow_undefined_flag=
  35327. + always_export_symbols=no
  35328. + archive_cmds=
  35329. + archive_expsym_cmds=
  35330. + compiler_needs_object=no
  35331. + enable_shared_with_static_runtimes=no
  35332. + export_dynamic_flag_spec=
  35333. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  35334. + hardcode_automatic=no
  35335. + hardcode_direct=no
  35336. + hardcode_direct_absolute=no
  35337. + hardcode_libdir_flag_spec=
  35338. + hardcode_libdir_flag_spec_ld=
  35339. + hardcode_libdir_separator=
  35340. + hardcode_minus_L=no
  35341. + hardcode_shlibpath_var=unsupported
  35342. + inherit_rpath=no
  35343. + link_all_deplibs=unknown
  35344. + module_cmds=
  35345. + module_expsym_cmds=
  35346. + old_archive_from_new_cmds=
  35347. + old_archive_from_expsyms_cmds=
  35348. + thread_safe_flag_spec=
  35349. + whole_archive_flag_spec=
  35350. + # include_expsyms should be a list of space-separated symbols to be *always*
  35351. + # included in the symbol list
  35352. + include_expsyms=
  35353. + # exclude_expsyms can be an extended regexp of symbols to exclude
  35354. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  35355. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  35356. + # as well as any symbol that contains `d'.
  35357. + exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  35358. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  35359. + # platforms (ab)use it in PIC code, but their linkers get confused if
  35360. + # the symbol is explicitly referenced. Since portable code cannot
  35361. + # rely on this symbol name, it's probably fine to never include it in
  35362. + # preloaded symbol tables.
  35363. + # Exclude shared library initialization/finalization symbols.
  35364. + extract_expsyms_cmds=
  35365. -sysv4*MP*)
  35366. - if test -d /usr/nec ;then
  35367. - version_type=linux
  35368. - library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  35369. - soname_spec='$libname${shared_ext}.$major'
  35370. - shlibpath_var=LD_LIBRARY_PATH
  35371. - fi
  35372. - ;;
  35373. + case $host_os in
  35374. + cygwin* | mingw* | pw32* | cegcc*)
  35375. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  35376. + # When not using gcc, we currently assume that we are using
  35377. + # Microsoft Visual C++.
  35378. + if test "$GCC" != yes; then
  35379. + with_gnu_ld=no
  35380. + fi
  35381. + ;;
  35382. + interix*)
  35383. + # we just hope/assume this is gcc and not c89 (= MSVC++)
  35384. + with_gnu_ld=yes
  35385. + ;;
  35386. + openbsd*)
  35387. + with_gnu_ld=no
  35388. + ;;
  35389. + linux* | k*bsd*-gnu)
  35390. + link_all_deplibs=no
  35391. + ;;
  35392. + esac
  35393. -uts4*)
  35394. - version_type=linux
  35395. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  35396. - soname_spec='${libname}${release}${shared_ext}$major'
  35397. - shlibpath_var=LD_LIBRARY_PATH
  35398. - ;;
  35399. + ld_shlibs=yes
  35400. + if test "$with_gnu_ld" = yes; then
  35401. + # If archive_cmds runs LD, not CC, wlarc should be empty
  35402. + wlarc='${wl}'
  35403. -*)
  35404. - dynamic_linker=no
  35405. - ;;
  35406. -esac
  35407. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  35408. -echo "${ECHO_T}$dynamic_linker" >&6
  35409. -test "$dynamic_linker" = no && can_build_shared=no
  35410. + # Set some defaults for GNU ld with shared library support. These
  35411. + # are reset later if shared libraries are not supported. Putting them
  35412. + # here allows them to be overridden if necessary.
  35413. + runpath_var=LD_RUN_PATH
  35414. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35415. + export_dynamic_flag_spec='${wl}--export-dynamic'
  35416. + # ancient GNU ld didn't support --whole-archive et. al.
  35417. + if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  35418. + whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  35419. + else
  35420. + whole_archive_flag_spec=
  35421. + fi
  35422. + supports_anon_versioning=no
  35423. + case `$LD -v 2>&1` in
  35424. + *GNU\ gold*) supports_anon_versioning=yes ;;
  35425. + *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  35426. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  35427. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  35428. + *\ 2.11.*) ;; # other 2.11 versions
  35429. + *) supports_anon_versioning=yes ;;
  35430. + esac
  35431. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  35432. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  35433. -hardcode_action_F77=
  35434. -if test -n "$hardcode_libdir_flag_spec_F77" || \
  35435. - test -n "$runpath_var_F77" || \
  35436. - test "X$hardcode_automatic_F77" = "Xyes" ; then
  35437. + # See if GNU ld supports shared libraries.
  35438. + case $host_os in
  35439. + aix[3-9]*)
  35440. + # On AIX/PPC, the GNU linker is very broken
  35441. + if test "$host_cpu" != ia64; then
  35442. + ld_shlibs=no
  35443. + cat <<_LT_EOF 1>&2
  35444. - # We can hardcode non-existant directories.
  35445. - if test "$hardcode_direct_F77" != no &&
  35446. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  35447. - # have to relink, otherwise we might link with an installed library
  35448. - # when we should be linking with a yet-to-be-installed one
  35449. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no &&
  35450. - test "$hardcode_minus_L_F77" != no; then
  35451. - # Linking always hardcodes the temporary library directory.
  35452. - hardcode_action_F77=relink
  35453. - else
  35454. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  35455. - hardcode_action_F77=immediate
  35456. - fi
  35457. -else
  35458. - # We cannot hardcode anything, or else we can only hardcode existing
  35459. - # directories.
  35460. - hardcode_action_F77=unsupported
  35461. -fi
  35462. -echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5
  35463. -echo "${ECHO_T}$hardcode_action_F77" >&6
  35464. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  35465. +*** to be unable to reliably create shared libraries on AIX.
  35466. +*** Therefore, libtool is disabling shared libraries support. If you
  35467. +*** really care for shared libraries, you may want to modify your PATH
  35468. +*** so that a non-GNU linker is found, and then restart.
  35469. -if test "$hardcode_action_F77" = relink; then
  35470. - # Fast installation is not supported
  35471. - enable_fast_install=no
  35472. -elif test "$shlibpath_overrides_runpath" = yes ||
  35473. - test "$enable_shared" = no; then
  35474. - # Fast installation is not necessary
  35475. - enable_fast_install=needless
  35476. -fi
  35477. +_LT_EOF
  35478. + fi
  35479. + ;;
  35480. -striplib=
  35481. -old_striplib=
  35482. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  35483. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  35484. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  35485. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  35486. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  35487. - echo "$as_me:$LINENO: result: yes" >&5
  35488. -echo "${ECHO_T}yes" >&6
  35489. -else
  35490. -# FIXME - insert some real tests, host_os isn't really good enough
  35491. - case $host_os in
  35492. - darwin*)
  35493. - if test -n "$STRIP" ; then
  35494. - striplib="$STRIP -x"
  35495. - echo "$as_me:$LINENO: result: yes" >&5
  35496. -echo "${ECHO_T}yes" >&6
  35497. - else
  35498. - echo "$as_me:$LINENO: result: no" >&5
  35499. -echo "${ECHO_T}no" >&6
  35500. -fi
  35501. - ;;
  35502. - *)
  35503. - echo "$as_me:$LINENO: result: no" >&5
  35504. -echo "${ECHO_T}no" >&6
  35505. - ;;
  35506. - esac
  35507. -fi
  35508. + amigaos*)
  35509. + case $host_cpu in
  35510. + powerpc)
  35511. + # see comment about AmigaOS4 .so support
  35512. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35513. + archive_expsym_cmds=''
  35514. + ;;
  35515. + m68k)
  35516. + 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)'
  35517. + hardcode_libdir_flag_spec='-L$libdir'
  35518. + hardcode_minus_L=yes
  35519. + ;;
  35520. + esac
  35521. + ;;
  35522. + beos*)
  35523. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  35524. + allow_undefined_flag=unsupported
  35525. + # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  35526. + # support --undefined. This deserves some investigation. FIXME
  35527. + archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35528. + else
  35529. + ld_shlibs=no
  35530. + fi
  35531. + ;;
  35532. + cygwin* | mingw* | pw32* | cegcc*)
  35533. + # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  35534. + # as there is no search path for DLLs.
  35535. + hardcode_libdir_flag_spec='-L$libdir'
  35536. + allow_undefined_flag=unsupported
  35537. + always_export_symbols=no
  35538. + enable_shared_with_static_runtimes=yes
  35539. + export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  35540. -# The else clause should only fire when bootstrapping the
  35541. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  35542. -# with your package, and you will get complaints that there are
  35543. -# no rules to generate ltmain.sh.
  35544. -if test -f "$ltmain"; then
  35545. - # See if we are running on zsh, and set the options which allow our commands through
  35546. - # without removal of \ escapes.
  35547. - if test -n "${ZSH_VERSION+set}" ; then
  35548. - setopt NO_GLOB_SUBST
  35549. - fi
  35550. - # Now quote all the things that may contain metacharacters while being
  35551. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  35552. - # variables and quote the copies for generation of the libtool script.
  35553. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  35554. - SED SHELL STRIP \
  35555. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  35556. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  35557. - deplibs_check_method reload_flag reload_cmds need_locks \
  35558. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  35559. - lt_cv_sys_global_symbol_to_c_name_address \
  35560. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  35561. - old_postinstall_cmds old_postuninstall_cmds \
  35562. - compiler_F77 \
  35563. - CC_F77 \
  35564. - LD_F77 \
  35565. - lt_prog_compiler_wl_F77 \
  35566. - lt_prog_compiler_pic_F77 \
  35567. - lt_prog_compiler_static_F77 \
  35568. - lt_prog_compiler_no_builtin_flag_F77 \
  35569. - export_dynamic_flag_spec_F77 \
  35570. - thread_safe_flag_spec_F77 \
  35571. - whole_archive_flag_spec_F77 \
  35572. - enable_shared_with_static_runtimes_F77 \
  35573. - old_archive_cmds_F77 \
  35574. - old_archive_from_new_cmds_F77 \
  35575. - predep_objects_F77 \
  35576. - postdep_objects_F77 \
  35577. - predeps_F77 \
  35578. - postdeps_F77 \
  35579. - compiler_lib_search_path_F77 \
  35580. - archive_cmds_F77 \
  35581. - archive_expsym_cmds_F77 \
  35582. - postinstall_cmds_F77 \
  35583. - postuninstall_cmds_F77 \
  35584. - old_archive_from_expsyms_cmds_F77 \
  35585. - allow_undefined_flag_F77 \
  35586. - no_undefined_flag_F77 \
  35587. - export_symbols_cmds_F77 \
  35588. - hardcode_libdir_flag_spec_F77 \
  35589. - hardcode_libdir_flag_spec_ld_F77 \
  35590. - hardcode_libdir_separator_F77 \
  35591. - hardcode_automatic_F77 \
  35592. - module_cmds_F77 \
  35593. - module_expsym_cmds_F77 \
  35594. - lt_cv_prog_compiler_c_o_F77 \
  35595. - exclude_expsyms_F77 \
  35596. - include_expsyms_F77; do
  35597. -
  35598. - case $var in
  35599. - old_archive_cmds_F77 | \
  35600. - old_archive_from_new_cmds_F77 | \
  35601. - archive_cmds_F77 | \
  35602. - archive_expsym_cmds_F77 | \
  35603. - module_cmds_F77 | \
  35604. - module_expsym_cmds_F77 | \
  35605. - old_archive_from_expsyms_cmds_F77 | \
  35606. - export_symbols_cmds_F77 | \
  35607. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  35608. - postinstall_cmds | postuninstall_cmds | \
  35609. - old_postinstall_cmds | old_postuninstall_cmds | \
  35610. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  35611. - # Double-quote double-evaled strings.
  35612. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  35613. + if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  35614. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  35615. + # If the export-symbols file already is a .def file (1st line
  35616. + # is EXPORTS), use it as is; otherwise, prepend...
  35617. + archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  35618. + cp $export_symbols $output_objdir/$soname.def;
  35619. + else
  35620. + echo EXPORTS > $output_objdir/$soname.def;
  35621. + cat $export_symbols >> $output_objdir/$soname.def;
  35622. + fi~
  35623. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  35624. + else
  35625. + ld_shlibs=no
  35626. + fi
  35627. ;;
  35628. - *)
  35629. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  35630. +
  35631. + interix[3-9]*)
  35632. + hardcode_direct=no
  35633. + hardcode_shlibpath_var=no
  35634. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  35635. + export_dynamic_flag_spec='${wl}-E'
  35636. + # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  35637. + # Instead, shared libraries are loaded at an image base (0x10000000 by
  35638. + # default) and relocated if they conflict, which is a slow very memory
  35639. + # consuming and fragmenting process. To avoid this, we pick a random,
  35640. + # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  35641. + # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  35642. + archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  35643. + 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'
  35644. ;;
  35645. - esac
  35646. - done
  35647. - case $lt_echo in
  35648. - *'\$0 --fallback-echo"')
  35649. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  35650. - ;;
  35651. - esac
  35652. + gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  35653. + tmp_diet=no
  35654. + if test "$host_os" = linux-dietlibc; then
  35655. + case $cc_basename in
  35656. + diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  35657. + esac
  35658. + fi
  35659. + if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  35660. + && test "$tmp_diet" = no
  35661. + then
  35662. + tmp_addflag=
  35663. + tmp_sharedflag='-shared'
  35664. + case $cc_basename,$host_cpu in
  35665. + pgcc*) # Portland Group C compiler
  35666. + 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'
  35667. + tmp_addflag=' $pic_flag'
  35668. + ;;
  35669. + pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers
  35670. + 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'
  35671. + tmp_addflag=' $pic_flag -Mnomain' ;;
  35672. + ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  35673. + tmp_addflag=' -i_dynamic' ;;
  35674. + efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  35675. + tmp_addflag=' -i_dynamic -nofor_main' ;;
  35676. + ifc* | ifort*) # Intel Fortran compiler
  35677. + tmp_addflag=' -nofor_main' ;;
  35678. + lf95*) # Lahey Fortran 8.1
  35679. + whole_archive_flag_spec=
  35680. + tmp_sharedflag='--shared' ;;
  35681. + xl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  35682. + tmp_sharedflag='-qmkshrobj'
  35683. + tmp_addflag= ;;
  35684. + esac
  35685. + case `$CC -V 2>&1 | sed 5q` in
  35686. + *Sun\ C*) # Sun C 5.9
  35687. + whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive'
  35688. + compiler_needs_object=yes
  35689. + tmp_sharedflag='-G' ;;
  35690. + *Sun\ F*) # Sun Fortran 8.3
  35691. + tmp_sharedflag='-G' ;;
  35692. + esac
  35693. + archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35694. -cfgfile="$ofile"
  35695. + if test "x$supports_anon_versioning" = xyes; then
  35696. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  35697. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  35698. + echo "local: *; };" >> $output_objdir/$libname.ver~
  35699. + $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  35700. + fi
  35701. - cat <<__EOF__ >> "$cfgfile"
  35702. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  35703. + case $cc_basename in
  35704. + xlf*)
  35705. + # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  35706. + whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  35707. + hardcode_libdir_flag_spec=
  35708. + hardcode_libdir_flag_spec_ld='-rpath $libdir'
  35709. + archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  35710. + if test "x$supports_anon_versioning" = xyes; then
  35711. + archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  35712. + cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  35713. + echo "local: *; };" >> $output_objdir/$libname.ver~
  35714. + $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  35715. + fi
  35716. + ;;
  35717. + esac
  35718. + else
  35719. + ld_shlibs=no
  35720. + fi
  35721. + ;;
  35722. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  35723. + netbsd* | netbsdelf*-gnu)
  35724. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  35725. + archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  35726. + wlarc=
  35727. + else
  35728. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35729. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35730. + fi
  35731. + ;;
  35732. -# Shell to use when invoking shell scripts.
  35733. -SHELL=$lt_SHELL
  35734. + solaris*)
  35735. + if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  35736. + ld_shlibs=no
  35737. + cat <<_LT_EOF 1>&2
  35738. -# Whether or not to build shared libraries.
  35739. -build_libtool_libs=$enable_shared
  35740. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  35741. +*** create shared libraries on Solaris systems. Therefore, libtool
  35742. +*** is disabling shared libraries support. We urge you to upgrade GNU
  35743. +*** binutils to release 2.9.1 or newer. Another option is to modify
  35744. +*** your PATH or compiler configuration so that the native linker is
  35745. +*** used, and then restart.
  35746. -# Whether or not to build static libraries.
  35747. -build_old_libs=$enable_static
  35748. +_LT_EOF
  35749. + elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  35750. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35751. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35752. + else
  35753. + ld_shlibs=no
  35754. + fi
  35755. + ;;
  35756. -# Whether or not to add -lc for building shared libraries.
  35757. -build_libtool_need_lc=$archive_cmds_need_lc_F77
  35758. + sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  35759. + case `$LD -v 2>&1` in
  35760. + *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  35761. + ld_shlibs=no
  35762. + cat <<_LT_EOF 1>&2
  35763. -# Whether or not to disallow shared libs when runtime libs are static
  35764. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77
  35765. +*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  35766. +*** reliably create shared libraries on SCO systems. Therefore, libtool
  35767. +*** is disabling shared libraries support. We urge you to upgrade GNU
  35768. +*** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  35769. +*** your PATH or compiler configuration so that the native linker is
  35770. +*** used, and then restart.
  35771. -# Whether or not to optimize for fast installation.
  35772. -fast_install=$enable_fast_install
  35773. +_LT_EOF
  35774. + ;;
  35775. + *)
  35776. + # For security reasons, it is highly recommended that you always
  35777. + # use absolute paths for naming shared libraries, and exclude the
  35778. + # DT_RUNPATH tag from executables and libraries. But doing so
  35779. + # requires that you compile everything twice, which is a pain.
  35780. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  35781. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  35782. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35783. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35784. + else
  35785. + ld_shlibs=no
  35786. + fi
  35787. + ;;
  35788. + esac
  35789. + ;;
  35790. -# The host system.
  35791. -host_alias=$host_alias
  35792. -host=$host
  35793. -host_os=$host_os
  35794. + sunos4*)
  35795. + archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  35796. + wlarc=
  35797. + hardcode_direct=yes
  35798. + hardcode_shlibpath_var=no
  35799. + ;;
  35800. -# The build system.
  35801. -build_alias=$build_alias
  35802. -build=$build
  35803. -build_os=$build_os
  35804. + *)
  35805. + if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  35806. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  35807. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  35808. + else
  35809. + ld_shlibs=no
  35810. + fi
  35811. + ;;
  35812. + esac
  35813. -# An echo program that does not interpret backslashes.
  35814. -echo=$lt_echo
  35815. + if test "$ld_shlibs" = no; then
  35816. + runpath_var=
  35817. + hardcode_libdir_flag_spec=
  35818. + export_dynamic_flag_spec=
  35819. + whole_archive_flag_spec=
  35820. + fi
  35821. + else
  35822. + # PORTME fill in a description of your system's linker (not GNU ld)
  35823. + case $host_os in
  35824. + aix3*)
  35825. + allow_undefined_flag=unsupported
  35826. + always_export_symbols=yes
  35827. + 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'
  35828. + # Note: this linker hardcodes the directories in LIBPATH if there
  35829. + # are no directories specified by -L.
  35830. + hardcode_minus_L=yes
  35831. + if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  35832. + # Neither direct hardcoding nor static linking is supported with a
  35833. + # broken collect2.
  35834. + hardcode_direct=unsupported
  35835. + fi
  35836. + ;;
  35837. +
  35838. + aix[4-9]*)
  35839. + if test "$host_cpu" = ia64; then
  35840. + # On IA64, the linker does run time linking by default, so we don't
  35841. + # have to do anything special.
  35842. + aix_use_runtimelinking=no
  35843. + exp_sym_flag='-Bexport'
  35844. + no_entry_flag=""
  35845. + else
  35846. + # If we're using GNU nm, then we don't want the "-C" option.
  35847. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  35848. + if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  35849. + 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'
  35850. + else
  35851. + 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'
  35852. + fi
  35853. + aix_use_runtimelinking=no
  35854. -# The archiver.
  35855. -AR=$lt_AR
  35856. -AR_FLAGS=$lt_AR_FLAGS
  35857. + # Test if we are trying to use run time linking or normal
  35858. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  35859. + # need to do runtime linking.
  35860. + case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  35861. + for ld_flag in $LDFLAGS; do
  35862. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  35863. + aix_use_runtimelinking=yes
  35864. + break
  35865. + fi
  35866. + done
  35867. + ;;
  35868. + esac
  35869. -# A C compiler.
  35870. -LTCC=$lt_LTCC
  35871. + exp_sym_flag='-bexport'
  35872. + no_entry_flag='-bnoentry'
  35873. + fi
  35874. -# A language-specific compiler.
  35875. -CC=$lt_compiler_F77
  35876. + # When large executables or shared objects are built, AIX ld can
  35877. + # have problems creating the table of contents. If linking a library
  35878. + # or program results in "error TOC overflow" add -mminimal-toc to
  35879. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  35880. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  35881. -# Is the compiler the GNU C compiler?
  35882. -with_gcc=$GCC_F77
  35883. + archive_cmds=''
  35884. + hardcode_direct=yes
  35885. + hardcode_direct_absolute=yes
  35886. + hardcode_libdir_separator=':'
  35887. + link_all_deplibs=yes
  35888. + file_list_spec='${wl}-f,'
  35889. -# An ERE matcher.
  35890. -EGREP=$lt_EGREP
  35891. + if test "$GCC" = yes; then
  35892. + case $host_os in aix4.[012]|aix4.[012].*)
  35893. + # We only want to do this on AIX 4.2 and lower, the check
  35894. + # below for broken collect2 doesn't work under 4.3+
  35895. + collect2name=`${CC} -print-prog-name=collect2`
  35896. + if test -f "$collect2name" &&
  35897. + strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  35898. + then
  35899. + # We have reworked collect2
  35900. + :
  35901. + else
  35902. + # We have old collect2
  35903. + hardcode_direct=unsupported
  35904. + # It fails to find uninstalled libraries when the uninstalled
  35905. + # path is not listed in the libpath. Setting hardcode_minus_L
  35906. + # to unsupported forces relinking
  35907. + hardcode_minus_L=yes
  35908. + hardcode_libdir_flag_spec='-L$libdir'
  35909. + hardcode_libdir_separator=
  35910. + fi
  35911. + ;;
  35912. + esac
  35913. + shared_flag='-shared'
  35914. + if test "$aix_use_runtimelinking" = yes; then
  35915. + shared_flag="$shared_flag "'${wl}-G'
  35916. + fi
  35917. + link_all_deplibs=no
  35918. + else
  35919. + # not using gcc
  35920. + if test "$host_cpu" = ia64; then
  35921. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  35922. + # chokes on -Wl,-G. The following line is correct:
  35923. + shared_flag='-G'
  35924. + else
  35925. + if test "$aix_use_runtimelinking" = yes; then
  35926. + shared_flag='${wl}-G'
  35927. + else
  35928. + shared_flag='${wl}-bM:SRE'
  35929. + fi
  35930. + fi
  35931. + fi
  35932. -# The linker used to build libraries.
  35933. -LD=$lt_LD_F77
  35934. + export_dynamic_flag_spec='${wl}-bexpall'
  35935. + # It seems that -bexpall does not export symbols beginning with
  35936. + # underscore (_), so it is better to generate a list of symbols to export.
  35937. + always_export_symbols=yes
  35938. + if test "$aix_use_runtimelinking" = yes; then
  35939. + # Warning - without using the other runtime loading flags (-brtl),
  35940. + # -berok will link without error, but may produce a broken library.
  35941. + allow_undefined_flag='-berok'
  35942. + # Determine the default libpath from the value encoded in an
  35943. + # empty executable.
  35944. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35945. +/* end confdefs.h. */
  35946. -# Whether we need hard or soft links.
  35947. -LN_S=$lt_LN_S
  35948. +int
  35949. +main ()
  35950. +{
  35951. -# A BSD-compatible nm program.
  35952. -NM=$lt_NM
  35953. + ;
  35954. + return 0;
  35955. +}
  35956. +_ACEOF
  35957. +if ac_fn_c_try_link "$LINENO"; then :
  35958. -# A symbol stripping program
  35959. -STRIP=$lt_STRIP
  35960. +lt_aix_libpath_sed='
  35961. + /Import File Strings/,/^$/ {
  35962. + /^0/ {
  35963. + s/^0 *\(.*\)$/\1/
  35964. + p
  35965. + }
  35966. + }'
  35967. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35968. +# Check for a 64-bit object if we didn't find anything.
  35969. +if test -z "$aix_libpath"; then
  35970. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  35971. +fi
  35972. +fi
  35973. +rm -f core conftest.err conftest.$ac_objext \
  35974. + conftest$ac_exeext conftest.$ac_ext
  35975. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  35976. -# Used to examine libraries when file_magic_cmd begins "file"
  35977. -MAGIC_CMD=$MAGIC_CMD
  35978. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  35979. + archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  35980. + else
  35981. + if test "$host_cpu" = ia64; then
  35982. + hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  35983. + allow_undefined_flag="-z nodefs"
  35984. + 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"
  35985. + else
  35986. + # Determine the default libpath from the value encoded in an
  35987. + # empty executable.
  35988. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  35989. +/* end confdefs.h. */
  35990. -# Used on cygwin: DLL creation program.
  35991. -DLLTOOL="$DLLTOOL"
  35992. +int
  35993. +main ()
  35994. +{
  35995. -# Used on cygwin: object dumper.
  35996. -OBJDUMP="$OBJDUMP"
  35997. + ;
  35998. + return 0;
  35999. +}
  36000. +_ACEOF
  36001. +if ac_fn_c_try_link "$LINENO"; then :
  36002. -# Used on cygwin: assembler.
  36003. -AS="$AS"
  36004. +lt_aix_libpath_sed='
  36005. + /Import File Strings/,/^$/ {
  36006. + /^0/ {
  36007. + s/^0 *\(.*\)$/\1/
  36008. + p
  36009. + }
  36010. + }'
  36011. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  36012. +# Check for a 64-bit object if we didn't find anything.
  36013. +if test -z "$aix_libpath"; then
  36014. + aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  36015. +fi
  36016. +fi
  36017. +rm -f core conftest.err conftest.$ac_objext \
  36018. + conftest$ac_exeext conftest.$ac_ext
  36019. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  36020. -# The name of the directory that contains temporary libtool files.
  36021. -objdir=$objdir
  36022. + hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  36023. + # Warning - without using the other run time loading flags,
  36024. + # -berok will link without error, but may produce a broken library.
  36025. + no_undefined_flag=' ${wl}-bernotok'
  36026. + allow_undefined_flag=' ${wl}-berok'
  36027. + # Exported symbols can be pulled into shared objects from archives
  36028. + whole_archive_flag_spec='$convenience'
  36029. + archive_cmds_need_lc=yes
  36030. + # This is similar to how AIX traditionally builds its shared libraries.
  36031. + 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'
  36032. + fi
  36033. + fi
  36034. + ;;
  36035. -# How to create reloadable object files.
  36036. -reload_flag=$lt_reload_flag
  36037. -reload_cmds=$lt_reload_cmds
  36038. + amigaos*)
  36039. + case $host_cpu in
  36040. + powerpc)
  36041. + # see comment about AmigaOS4 .so support
  36042. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  36043. + archive_expsym_cmds=''
  36044. + ;;
  36045. + m68k)
  36046. + 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)'
  36047. + hardcode_libdir_flag_spec='-L$libdir'
  36048. + hardcode_minus_L=yes
  36049. + ;;
  36050. + esac
  36051. + ;;
  36052. -# How to pass a linker flag through the compiler.
  36053. -wl=$lt_lt_prog_compiler_wl_F77
  36054. + bsdi[45]*)
  36055. + export_dynamic_flag_spec=-rdynamic
  36056. + ;;
  36057. -# Object file suffix (normally "o").
  36058. -objext="$ac_objext"
  36059. + cygwin* | mingw* | pw32* | cegcc*)
  36060. + # When not using gcc, we currently assume that we are using
  36061. + # Microsoft Visual C++.
  36062. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  36063. + # no search path for DLLs.
  36064. + hardcode_libdir_flag_spec=' '
  36065. + allow_undefined_flag=unsupported
  36066. + # Tell ltmain to make .lib files, not .a files.
  36067. + libext=lib
  36068. + # Tell ltmain to make .dll files, not .so files.
  36069. + shrext_cmds=".dll"
  36070. + # FIXME: Setting linknames here is a bad hack.
  36071. + archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  36072. + # The linker will automatically build a .lib file if we build a DLL.
  36073. + old_archive_from_new_cmds='true'
  36074. + # FIXME: Should let the user specify the lib program.
  36075. + old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  36076. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  36077. + enable_shared_with_static_runtimes=yes
  36078. + ;;
  36079. -# Old archive suffix (normally "a").
  36080. -libext="$libext"
  36081. + darwin* | rhapsody*)
  36082. -# Shared library suffix (normally ".so").
  36083. -shrext_cmds='$shrext_cmds'
  36084. -# Executable file suffix (normally "").
  36085. -exeext="$exeext"
  36086. + archive_cmds_need_lc=no
  36087. + hardcode_direct=no
  36088. + hardcode_automatic=yes
  36089. + hardcode_shlibpath_var=unsupported
  36090. + whole_archive_flag_spec=''
  36091. + link_all_deplibs=yes
  36092. + allow_undefined_flag="$_lt_dar_allow_undefined"
  36093. + case $cc_basename in
  36094. + ifort*) _lt_dar_can_shared=yes ;;
  36095. + *) _lt_dar_can_shared=$GCC ;;
  36096. + esac
  36097. + if test "$_lt_dar_can_shared" = "yes"; then
  36098. + output_verbose_link_cmd=echo
  36099. + archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  36100. + module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  36101. + archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  36102. + module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  36103. -# Additional compiler flags for building library objects.
  36104. -pic_flag=$lt_lt_prog_compiler_pic_F77
  36105. -pic_mode=$pic_mode
  36106. + else
  36107. + ld_shlibs=no
  36108. + fi
  36109. -# What is the maximum length of a command?
  36110. -max_cmd_len=$lt_cv_sys_max_cmd_len
  36111. + ;;
  36112. -# Does compiler simultaneously support -c and -o options?
  36113. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77
  36114. + dgux*)
  36115. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36116. + hardcode_libdir_flag_spec='-L$libdir'
  36117. + hardcode_shlibpath_var=no
  36118. + ;;
  36119. -# Must we lock files when doing compilation?
  36120. -need_locks=$lt_need_locks
  36121. + freebsd1*)
  36122. + ld_shlibs=no
  36123. + ;;
  36124. -# Do we need the lib prefix for modules?
  36125. -need_lib_prefix=$need_lib_prefix
  36126. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  36127. + # support. Future versions do this automatically, but an explicit c++rt0.o
  36128. + # does not break anything, and helps significantly (at the cost of a little
  36129. + # extra space).
  36130. + freebsd2.2*)
  36131. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  36132. + hardcode_libdir_flag_spec='-R$libdir'
  36133. + hardcode_direct=yes
  36134. + hardcode_shlibpath_var=no
  36135. + ;;
  36136. -# Do we need a version for libraries?
  36137. -need_version=$need_version
  36138. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  36139. + freebsd2*)
  36140. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36141. + hardcode_direct=yes
  36142. + hardcode_minus_L=yes
  36143. + hardcode_shlibpath_var=no
  36144. + ;;
  36145. -# Whether dlopen is supported.
  36146. -dlopen_support=$enable_dlopen
  36147. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  36148. + freebsd* | dragonfly*)
  36149. + archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  36150. + hardcode_libdir_flag_spec='-R$libdir'
  36151. + hardcode_direct=yes
  36152. + hardcode_shlibpath_var=no
  36153. + ;;
  36154. -# Whether dlopen of programs is supported.
  36155. -dlopen_self=$enable_dlopen_self
  36156. + hpux9*)
  36157. + if test "$GCC" = yes; then
  36158. + 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'
  36159. + else
  36160. + 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'
  36161. + fi
  36162. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  36163. + hardcode_libdir_separator=:
  36164. + hardcode_direct=yes
  36165. -# Whether dlopen of statically linked programs is supported.
  36166. -dlopen_self_static=$enable_dlopen_self_static
  36167. + # hardcode_minus_L: Not really in the search PATH,
  36168. + # but as the default location of the library.
  36169. + hardcode_minus_L=yes
  36170. + export_dynamic_flag_spec='${wl}-E'
  36171. + ;;
  36172. -# Compiler flag to prevent dynamic linking.
  36173. -link_static_flag=$lt_lt_prog_compiler_static_F77
  36174. + hpux10*)
  36175. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  36176. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36177. + else
  36178. + archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  36179. + fi
  36180. + if test "$with_gnu_ld" = no; then
  36181. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  36182. + hardcode_libdir_flag_spec_ld='+b $libdir'
  36183. + hardcode_libdir_separator=:
  36184. + hardcode_direct=yes
  36185. + hardcode_direct_absolute=yes
  36186. + export_dynamic_flag_spec='${wl}-E'
  36187. + # hardcode_minus_L: Not really in the search PATH,
  36188. + # but as the default location of the library.
  36189. + hardcode_minus_L=yes
  36190. + fi
  36191. + ;;
  36192. -# Compiler flag to turn off builtin functions.
  36193. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77
  36194. + hpux11*)
  36195. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  36196. + case $host_cpu in
  36197. + hppa*64*)
  36198. + archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36199. + ;;
  36200. + ia64*)
  36201. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  36202. + ;;
  36203. + *)
  36204. + archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36205. + ;;
  36206. + esac
  36207. + else
  36208. + case $host_cpu in
  36209. + hppa*64*)
  36210. + archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36211. + ;;
  36212. + ia64*)
  36213. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  36214. + ;;
  36215. + *)
  36216. + archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  36217. + ;;
  36218. + esac
  36219. + fi
  36220. + if test "$with_gnu_ld" = no; then
  36221. + hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  36222. + hardcode_libdir_separator=:
  36223. -# Compiler flag to allow reflexive dlopens.
  36224. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77
  36225. + case $host_cpu in
  36226. + hppa*64*|ia64*)
  36227. + hardcode_direct=no
  36228. + hardcode_shlibpath_var=no
  36229. + ;;
  36230. + *)
  36231. + hardcode_direct=yes
  36232. + hardcode_direct_absolute=yes
  36233. + export_dynamic_flag_spec='${wl}-E'
  36234. -# Compiler flag to generate shared objects directly from archives.
  36235. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77
  36236. + # hardcode_minus_L: Not really in the search PATH,
  36237. + # but as the default location of the library.
  36238. + hardcode_minus_L=yes
  36239. + ;;
  36240. + esac
  36241. + fi
  36242. + ;;
  36243. -# Compiler flag to generate thread-safe objects.
  36244. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77
  36245. + irix5* | irix6* | nonstopux*)
  36246. + if test "$GCC" = yes; then
  36247. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36248. + # Try to use the -exported_symbol ld option, if it does not
  36249. + # work, assume that -exports_file does not work either and
  36250. + # implicitly export all symbols.
  36251. + save_LDFLAGS="$LDFLAGS"
  36252. + LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  36253. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  36254. +/* end confdefs.h. */
  36255. +int foo(void) {}
  36256. +_ACEOF
  36257. +if ac_fn_c_try_link "$LINENO"; then :
  36258. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  36259. -# Library versioning type.
  36260. -version_type=$version_type
  36261. +fi
  36262. +rm -f core conftest.err conftest.$ac_objext \
  36263. + conftest$ac_exeext conftest.$ac_ext
  36264. + LDFLAGS="$save_LDFLAGS"
  36265. + else
  36266. + archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  36267. + archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  36268. + fi
  36269. + archive_cmds_need_lc='no'
  36270. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  36271. + hardcode_libdir_separator=:
  36272. + inherit_rpath=yes
  36273. + link_all_deplibs=yes
  36274. + ;;
  36275. -# Format of library name prefix.
  36276. -libname_spec=$lt_libname_spec
  36277. + netbsd* | netbsdelf*-gnu)
  36278. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  36279. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  36280. + else
  36281. + archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  36282. + fi
  36283. + hardcode_libdir_flag_spec='-R$libdir'
  36284. + hardcode_direct=yes
  36285. + hardcode_shlibpath_var=no
  36286. + ;;
  36287. -# List of archive names. First name is the real one, the rest are links.
  36288. -# The last name is the one that the linker finds with -lNAME.
  36289. -library_names_spec=$lt_library_names_spec
  36290. + newsos6)
  36291. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36292. + hardcode_direct=yes
  36293. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  36294. + hardcode_libdir_separator=:
  36295. + hardcode_shlibpath_var=no
  36296. + ;;
  36297. -# The coded name of the library, if different from the real name.
  36298. -soname_spec=$lt_soname_spec
  36299. + *nto* | *qnx*)
  36300. + ;;
  36301. -# Commands used to build and install an old-style archive.
  36302. -RANLIB=$lt_RANLIB
  36303. -old_archive_cmds=$lt_old_archive_cmds_F77
  36304. -old_postinstall_cmds=$lt_old_postinstall_cmds
  36305. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  36306. + openbsd*)
  36307. + if test -f /usr/libexec/ld.so; then
  36308. + hardcode_direct=yes
  36309. + hardcode_shlibpath_var=no
  36310. + hardcode_direct_absolute=yes
  36311. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  36312. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36313. + archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  36314. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  36315. + export_dynamic_flag_spec='${wl}-E'
  36316. + else
  36317. + case $host_os in
  36318. + openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  36319. + archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  36320. + hardcode_libdir_flag_spec='-R$libdir'
  36321. + ;;
  36322. + *)
  36323. + archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  36324. + hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  36325. + ;;
  36326. + esac
  36327. + fi
  36328. + else
  36329. + ld_shlibs=no
  36330. + fi
  36331. + ;;
  36332. -# Create an old-style archive from a shared archive.
  36333. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77
  36334. + os2*)
  36335. + hardcode_libdir_flag_spec='-L$libdir'
  36336. + hardcode_minus_L=yes
  36337. + allow_undefined_flag=unsupported
  36338. + 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'
  36339. + old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  36340. + ;;
  36341. -# Create a temporary old-style archive to link instead of a shared archive.
  36342. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77
  36343. + osf3*)
  36344. + if test "$GCC" = yes; then
  36345. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  36346. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36347. + else
  36348. + allow_undefined_flag=' -expect_unresolved \*'
  36349. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  36350. + fi
  36351. + archive_cmds_need_lc='no'
  36352. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  36353. + hardcode_libdir_separator=:
  36354. + ;;
  36355. -# Commands used to build and install a shared archive.
  36356. -archive_cmds=$lt_archive_cmds_F77
  36357. -archive_expsym_cmds=$lt_archive_expsym_cmds_F77
  36358. -postinstall_cmds=$lt_postinstall_cmds
  36359. -postuninstall_cmds=$lt_postuninstall_cmds
  36360. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  36361. + if test "$GCC" = yes; then
  36362. + allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  36363. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  36364. + hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  36365. + else
  36366. + allow_undefined_flag=' -expect_unresolved \*'
  36367. + archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib'
  36368. + archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  36369. + $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  36370. -# Commands used to build a loadable module (assumed same as above if empty)
  36371. -module_cmds=$lt_module_cmds_F77
  36372. -module_expsym_cmds=$lt_module_expsym_cmds_F77
  36373. + # Both c and cxx compiler support -rpath directly
  36374. + hardcode_libdir_flag_spec='-rpath $libdir'
  36375. + fi
  36376. + archive_cmds_need_lc='no'
  36377. + hardcode_libdir_separator=:
  36378. + ;;
  36379. -# Commands to strip libraries.
  36380. -old_striplib=$lt_old_striplib
  36381. -striplib=$lt_striplib
  36382. + solaris*)
  36383. + no_undefined_flag=' -z defs'
  36384. + if test "$GCC" = yes; then
  36385. + wlarc='${wl}'
  36386. + archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  36387. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  36388. + $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  36389. + else
  36390. + case `$CC -V 2>&1` in
  36391. + *"Compilers 5.0"*)
  36392. + wlarc=''
  36393. + archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36394. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  36395. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  36396. + ;;
  36397. + *)
  36398. + wlarc='${wl}'
  36399. + archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  36400. + archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  36401. + $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  36402. + ;;
  36403. + esac
  36404. + fi
  36405. + hardcode_libdir_flag_spec='-R$libdir'
  36406. + hardcode_shlibpath_var=no
  36407. + case $host_os in
  36408. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  36409. + *)
  36410. + # The compiler driver will combine and reorder linker options,
  36411. + # but understands `-z linker_flag'. GCC discards it without `$wl',
  36412. + # but is careful enough not to reorder.
  36413. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  36414. + if test "$GCC" = yes; then
  36415. + whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  36416. + else
  36417. + whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  36418. + fi
  36419. + ;;
  36420. + esac
  36421. + link_all_deplibs=yes
  36422. + ;;
  36423. -# Dependencies to place before the objects being linked to create a
  36424. -# shared library.
  36425. -predep_objects=$lt_predep_objects_F77
  36426. -
  36427. -# Dependencies to place after the objects being linked to create a
  36428. -# shared library.
  36429. -postdep_objects=$lt_postdep_objects_F77
  36430. -
  36431. -# Dependencies to place before the objects being linked to create a
  36432. -# shared library.
  36433. -predeps=$lt_predeps_F77
  36434. -
  36435. -# Dependencies to place after the objects being linked to create a
  36436. -# shared library.
  36437. -postdeps=$lt_postdeps_F77
  36438. -
  36439. -# The library search path used internally by the compiler when linking
  36440. -# a shared library.
  36441. -compiler_lib_search_path=$lt_compiler_lib_search_path_F77
  36442. + sunos4*)
  36443. + if test "x$host_vendor" = xsequent; then
  36444. + # Use $CC to link under sequent, because it throws in some extra .o
  36445. + # files that make .init and .fini sections work.
  36446. + archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  36447. + else
  36448. + archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  36449. + fi
  36450. + hardcode_libdir_flag_spec='-L$libdir'
  36451. + hardcode_direct=yes
  36452. + hardcode_minus_L=yes
  36453. + hardcode_shlibpath_var=no
  36454. + ;;
  36455. -# Method to check whether dependent libraries are shared objects.
  36456. -deplibs_check_method=$lt_deplibs_check_method
  36457. + sysv4)
  36458. + case $host_vendor in
  36459. + sni)
  36460. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36461. + hardcode_direct=yes # is this really true???
  36462. + ;;
  36463. + siemens)
  36464. + ## LD is ld it makes a PLAMLIB
  36465. + ## CC just makes a GrossModule.
  36466. + archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  36467. + reload_cmds='$CC -r -o $output$reload_objs'
  36468. + hardcode_direct=no
  36469. + ;;
  36470. + motorola)
  36471. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36472. + hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  36473. + ;;
  36474. + esac
  36475. + runpath_var='LD_RUN_PATH'
  36476. + hardcode_shlibpath_var=no
  36477. + ;;
  36478. -# Command to use when deplibs_check_method == file_magic.
  36479. -file_magic_cmd=$lt_file_magic_cmd
  36480. + sysv4.3*)
  36481. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36482. + hardcode_shlibpath_var=no
  36483. + export_dynamic_flag_spec='-Bexport'
  36484. + ;;
  36485. -# Flag that allows shared libraries with undefined symbols to be built.
  36486. -allow_undefined_flag=$lt_allow_undefined_flag_F77
  36487. + sysv4*MP*)
  36488. + if test -d /usr/nec; then
  36489. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36490. + hardcode_shlibpath_var=no
  36491. + runpath_var=LD_RUN_PATH
  36492. + hardcode_runpath_var=yes
  36493. + ld_shlibs=yes
  36494. + fi
  36495. + ;;
  36496. -# Flag that forces no undefined symbols.
  36497. -no_undefined_flag=$lt_no_undefined_flag_F77
  36498. + sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  36499. + no_undefined_flag='${wl}-z,text'
  36500. + archive_cmds_need_lc=no
  36501. + hardcode_shlibpath_var=no
  36502. + runpath_var='LD_RUN_PATH'
  36503. -# Commands used to finish a libtool library installation in a directory.
  36504. -finish_cmds=$lt_finish_cmds
  36505. + if test "$GCC" = yes; then
  36506. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36507. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36508. + else
  36509. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36510. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36511. + fi
  36512. + ;;
  36513. -# Same as above, but a single script fragment to be evaled but not shown.
  36514. -finish_eval=$lt_finish_eval
  36515. + sysv5* | sco3.2v5* | sco5v6*)
  36516. + # Note: We can NOT use -z defs as we might desire, because we do not
  36517. + # link with -lc, and that would cause any symbols used from libc to
  36518. + # always be unresolved, which means just about no library would
  36519. + # ever link correctly. If we're not using GNU ld we use -z text
  36520. + # though, which does catch some bad symbols but isn't as heavy-handed
  36521. + # as -z defs.
  36522. + no_undefined_flag='${wl}-z,text'
  36523. + allow_undefined_flag='${wl}-z,nodefs'
  36524. + archive_cmds_need_lc=no
  36525. + hardcode_shlibpath_var=no
  36526. + hardcode_libdir_flag_spec='${wl}-R,$libdir'
  36527. + hardcode_libdir_separator=':'
  36528. + link_all_deplibs=yes
  36529. + export_dynamic_flag_spec='${wl}-Bexport'
  36530. + runpath_var='LD_RUN_PATH'
  36531. -# Take the output of nm and produce a listing of raw symbols and C names.
  36532. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  36533. + if test "$GCC" = yes; then
  36534. + archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36535. + archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36536. + else
  36537. + archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36538. + archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  36539. + fi
  36540. + ;;
  36541. -# Transform the output of nm in a proper C declaration
  36542. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  36543. + uts4*)
  36544. + archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  36545. + hardcode_libdir_flag_spec='-L$libdir'
  36546. + hardcode_shlibpath_var=no
  36547. + ;;
  36548. -# Transform the output of nm in a C name address pair
  36549. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  36550. + *)
  36551. + ld_shlibs=no
  36552. + ;;
  36553. + esac
  36554. -# This is the shared library runtime path variable.
  36555. -runpath_var=$runpath_var
  36556. + if test x$host_vendor = xsni; then
  36557. + case $host in
  36558. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  36559. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  36560. + ;;
  36561. + esac
  36562. + fi
  36563. + fi
  36564. -# This is the shared library path variable.
  36565. -shlibpath_var=$shlibpath_var
  36566. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  36567. +$as_echo "$ld_shlibs" >&6; }
  36568. +test "$ld_shlibs" = no && can_build_shared=no
  36569. -# Is shlibpath searched before the hard-coded library search path?
  36570. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  36571. +with_gnu_ld=$with_gnu_ld
  36572. -# How to hardcode a shared library path into an executable.
  36573. -hardcode_action=$hardcode_action_F77
  36574. -# Whether we should hardcode library paths into libraries.
  36575. -hardcode_into_libs=$hardcode_into_libs
  36576. -# Flag to hardcode \$libdir into a binary during linking.
  36577. -# This must work even if \$libdir does not exist.
  36578. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77
  36579. -# If ld is used when linking, flag to hardcode \$libdir into
  36580. -# a binary during linking. This must work even if \$libdir does
  36581. -# not exist.
  36582. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77
  36583. -
  36584. -# Whether we need a single -rpath flag with a separated argument.
  36585. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77
  36586. -
  36587. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  36588. -# resulting binary.
  36589. -hardcode_direct=$hardcode_direct_F77
  36590. -
  36591. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  36592. -# resulting binary.
  36593. -hardcode_minus_L=$hardcode_minus_L_F77
  36594. -
  36595. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  36596. -# the resulting binary.
  36597. -hardcode_shlibpath_var=$hardcode_shlibpath_var_F77
  36598. -
  36599. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  36600. -# and all subsequent libraries and executables linked against it.
  36601. -hardcode_automatic=$hardcode_automatic_F77
  36602. -# Variables whose values should be saved in libtool wrapper scripts and
  36603. -# restored at relink time.
  36604. -variables_saved_for_relink="$variables_saved_for_relink"
  36605. -# Whether libtool must link a program against all its dependency libraries.
  36606. -link_all_deplibs=$link_all_deplibs_F77
  36607. -# Compile-time system search path for libraries
  36608. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  36609. -# Run-time system search path for libraries
  36610. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  36611. -# Fix the shell variable \$srcfile for the compiler.
  36612. -fix_srcfile_path="$fix_srcfile_path_F77"
  36613. -# Set to yes if exported symbols are required.
  36614. -always_export_symbols=$always_export_symbols_F77
  36615. -# The commands to list exported symbols.
  36616. -export_symbols_cmds=$lt_export_symbols_cmds_F77
  36617. -# The commands to extract the exported symbol list from a shared archive.
  36618. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  36619. -# Symbols that should not be listed in the preloaded symbols.
  36620. -exclude_expsyms=$lt_exclude_expsyms_F77
  36621. -# Symbols that must always be exported.
  36622. -include_expsyms=$lt_include_expsyms_F77
  36623. -# ### END LIBTOOL TAG CONFIG: $tagname
  36624. +#
  36625. +# Do we need to explicitly link libc?
  36626. +#
  36627. +case "x$archive_cmds_need_lc" in
  36628. +x|xyes)
  36629. + # Assume -lc should be added
  36630. + archive_cmds_need_lc=yes
  36631. +
  36632. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  36633. + case $archive_cmds in
  36634. + *'~'*)
  36635. + # FIXME: we may have to deal with multi-command sequences.
  36636. + ;;
  36637. + '$CC '*)
  36638. + # Test whether the compiler implicitly links with -lc since on some
  36639. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  36640. + # to ld, don't add -lc before -lgcc.
  36641. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  36642. +$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  36643. + $RM conftest*
  36644. + echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  36645. +
  36646. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  36647. + (eval $ac_compile) 2>&5
  36648. + ac_status=$?
  36649. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36650. + test $ac_status = 0; } 2>conftest.err; then
  36651. + soname=conftest
  36652. + lib=conftest
  36653. + libobjs=conftest.$ac_objext
  36654. + deplibs=
  36655. + wl=$lt_prog_compiler_wl
  36656. + pic_flag=$lt_prog_compiler_pic
  36657. + compiler_flags=-v
  36658. + linker_flags=-v
  36659. + verstring=
  36660. + output_objdir=.
  36661. + libname=conftest
  36662. + lt_save_allow_undefined_flag=$allow_undefined_flag
  36663. + allow_undefined_flag=
  36664. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  36665. + (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  36666. + ac_status=$?
  36667. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  36668. + test $ac_status = 0; }
  36669. + then
  36670. + archive_cmds_need_lc=no
  36671. + else
  36672. + archive_cmds_need_lc=yes
  36673. + fi
  36674. + allow_undefined_flag=$lt_save_allow_undefined_flag
  36675. + else
  36676. + cat conftest.err 1>&5
  36677. + fi
  36678. + $RM conftest*
  36679. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $archive_cmds_need_lc" >&5
  36680. +$as_echo "$archive_cmds_need_lc" >&6; }
  36681. + ;;
  36682. + esac
  36683. + fi
  36684. + ;;
  36685. +esac
  36686. +
  36687. +
  36688. +
  36689. +
  36690. +
  36691. +
  36692. +
  36693. +
  36694. +
  36695. +
  36696. +
  36697. -__EOF__
  36698. -else
  36699. - # If there is no Makefile yet, we rely on a make rule to execute
  36700. - # `config.status --recheck' to rerun these tests and create the
  36701. - # libtool script then.
  36702. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  36703. - if test -f "$ltmain_in"; then
  36704. - test -f Makefile && make "$ltmain"
  36705. - fi
  36706. -fi
  36707. -ac_ext=c
  36708. -ac_cpp='$CPP $CPPFLAGS'
  36709. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  36710. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  36711. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  36712. -CC="$lt_save_CC"
  36713. - else
  36714. - tagname=""
  36715. - fi
  36716. - ;;
  36717. - GCJ)
  36718. - if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  36719. -# Source file extension for Java test sources.
  36720. -ac_ext=java
  36721. -# Object file extension for compiled Java test sources.
  36722. -objext=o
  36723. -objext_GCJ=$objext
  36724. -# Code to be used in simple compile tests
  36725. -lt_simple_compile_test_code="class foo {}\n"
  36726. -# Code to be used in simple link tests
  36727. -lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  36728. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  36729. -# If no C compiler was specified, use CC.
  36730. -LTCC=${LTCC-"$CC"}
  36731. -# Allow CC to be a program name with arguments.
  36732. -compiler=$CC
  36733. -# save warnings/boilerplate of simple test code
  36734. -ac_outfile=conftest.$ac_objext
  36735. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  36736. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  36737. -_lt_compiler_boilerplate=`cat conftest.err`
  36738. -$rm conftest*
  36739. -ac_outfile=conftest.$ac_objext
  36740. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  36741. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  36742. -_lt_linker_boilerplate=`cat conftest.err`
  36743. -$rm conftest*
  36744. -# Allow CC to be a program name with arguments.
  36745. -lt_save_CC="$CC"
  36746. -CC=${GCJ-"gcj"}
  36747. -compiler=$CC
  36748. -compiler_GCJ=$CC
  36749. -for cc_temp in $compiler""; do
  36750. - case $cc_temp in
  36751. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  36752. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  36753. - \-*) ;;
  36754. - *) break;;
  36755. - esac
  36756. -done
  36757. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  36758. -# GCJ did not exist at the time GCC didn't implicitly link libc in.
  36759. -archive_cmds_need_lc_GCJ=no
  36760. -old_archive_cmds_GCJ=$old_archive_cmds
  36761. -lt_prog_compiler_no_builtin_flag_GCJ=
  36762. -if test "$GCC" = yes; then
  36763. - lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin'
  36764. -echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  36765. -echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6
  36766. -if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then
  36767. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36768. -else
  36769. - lt_cv_prog_compiler_rtti_exceptions=no
  36770. - ac_outfile=conftest.$ac_objext
  36771. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  36772. - lt_compiler_flag="-fno-rtti -fno-exceptions"
  36773. - # Insert the option either (1) after the last *FLAGS variable, or
  36774. - # (2) before a word containing "conftest.", or (3) at the end.
  36775. - # Note that $ac_compile itself does not contain backslashes and begins
  36776. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  36777. - # The option is referenced via a variable to avoid confusing sed.
  36778. - lt_compile=`echo "$ac_compile" | $SED \
  36779. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  36780. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  36781. - -e 's:$: $lt_compiler_flag:'`
  36782. - (eval echo "\"\$as_me:15902: $lt_compile\"" >&5)
  36783. - (eval "$lt_compile" 2>conftest.err)
  36784. - ac_status=$?
  36785. - cat conftest.err >&5
  36786. - echo "$as_me:15906: \$? = $ac_status" >&5
  36787. - if (exit $ac_status) && test -s "$ac_outfile"; then
  36788. - # The compiler can only warn and ignore the option if not recognized
  36789. - # So say no if there are warnings other than the usual output.
  36790. - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  36791. - $SED '/^$/d' conftest.err >conftest.er2
  36792. - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  36793. - lt_cv_prog_compiler_rtti_exceptions=yes
  36794. - fi
  36795. - fi
  36796. - $rm conftest*
  36797. -fi
  36798. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  36799. -echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6
  36800. -if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  36801. - lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions"
  36802. -else
  36803. - :
  36804. -fi
  36805. -fi
  36806. -lt_prog_compiler_wl_GCJ=
  36807. -lt_prog_compiler_pic_GCJ=
  36808. -lt_prog_compiler_static_GCJ=
  36809. -echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5
  36810. -echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6
  36811. - if test "$GCC" = yes; then
  36812. - lt_prog_compiler_wl_GCJ='-Wl,'
  36813. - lt_prog_compiler_static_GCJ='-static'
  36814. - case $host_os in
  36815. - aix*)
  36816. - # All AIX code is PIC.
  36817. - if test "$host_cpu" = ia64; then
  36818. - # AIX 5 now supports IA64 processor
  36819. - lt_prog_compiler_static_GCJ='-Bstatic'
  36820. - fi
  36821. - ;;
  36822. - amigaos*)
  36823. - # FIXME: we need at least 68020 code to build shared libraries, but
  36824. - # adding the `-m68020' flag to GCC prevents building anything better,
  36825. - # like `-m68040'.
  36826. - lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4'
  36827. - ;;
  36828. - beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  36829. - # PIC is the default for these OSes.
  36830. - ;;
  36831. - mingw* | pw32* | os2*)
  36832. - # This hack is so that the source file can tell whether it is being
  36833. - # built for inclusion in a dll (and should export symbols for example).
  36834. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  36835. - ;;
  36836. - darwin* | rhapsody*)
  36837. - # PIC is the default on this platform
  36838. - # Common symbols not allowed in MH_DYLIB files
  36839. - lt_prog_compiler_pic_GCJ='-fno-common'
  36840. - ;;
  36841. - msdosdjgpp*)
  36842. - # Just because we use GCC doesn't mean we suddenly get shared libraries
  36843. - # on systems that don't support them.
  36844. - lt_prog_compiler_can_build_shared_GCJ=no
  36845. - enable_shared=no
  36846. - ;;
  36847. - sysv4*MP*)
  36848. - if test -d /usr/nec; then
  36849. - lt_prog_compiler_pic_GCJ=-Kconform_pic
  36850. - fi
  36851. - ;;
  36852. - hpux*)
  36853. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  36854. - # not for PA HP-UX.
  36855. - case "$host_cpu" in
  36856. - hppa*64*|ia64*)
  36857. - # +Z the default
  36858. - ;;
  36859. - *)
  36860. - lt_prog_compiler_pic_GCJ='-fPIC'
  36861. - ;;
  36862. - esac
  36863. - ;;
  36864. - *)
  36865. - lt_prog_compiler_pic_GCJ='-fPIC'
  36866. - ;;
  36867. - esac
  36868. - else
  36869. - # PORTME Check for flag to pass linker flags through the system compiler.
  36870. - case $host_os in
  36871. - aix*)
  36872. - lt_prog_compiler_wl_GCJ='-Wl,'
  36873. - if test "$host_cpu" = ia64; then
  36874. - # AIX 5 now supports IA64 processor
  36875. - lt_prog_compiler_static_GCJ='-Bstatic'
  36876. - else
  36877. - lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp'
  36878. - fi
  36879. - ;;
  36880. - darwin*)
  36881. - # PIC is the default on this platform
  36882. - # Common symbols not allowed in MH_DYLIB files
  36883. - case $cc_basename in
  36884. - xlc*)
  36885. - lt_prog_compiler_pic_GCJ='-qnocommon'
  36886. - lt_prog_compiler_wl_GCJ='-Wl,'
  36887. - ;;
  36888. - esac
  36889. - ;;
  36890. - mingw* | pw32* | os2*)
  36891. - # This hack is so that the source file can tell whether it is being
  36892. - # built for inclusion in a dll (and should export symbols for example).
  36893. - lt_prog_compiler_pic_GCJ='-DDLL_EXPORT'
  36894. - ;;
  36895. - hpux9* | hpux10* | hpux11*)
  36896. - lt_prog_compiler_wl_GCJ='-Wl,'
  36897. - # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  36898. - # not for PA HP-UX.
  36899. - case "$host_cpu" in
  36900. - hppa*64*|ia64*)
  36901. - # +Z the default
  36902. - ;;
  36903. - *)
  36904. - lt_prog_compiler_pic_GCJ='+Z'
  36905. - ;;
  36906. - esac
  36907. - # Is there a better lt_prog_compiler_static that works with the bundled CC?
  36908. - lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive'
  36909. - ;;
  36910. - irix5* | irix6* | nonstopux*)
  36911. - lt_prog_compiler_wl_GCJ='-Wl,'
  36912. - # PIC (with -KPIC) is the default.
  36913. - lt_prog_compiler_static_GCJ='-non_shared'
  36914. - ;;
  36915. - newsos6)
  36916. - lt_prog_compiler_pic_GCJ='-KPIC'
  36917. - lt_prog_compiler_static_GCJ='-Bstatic'
  36918. - ;;
  36919. - linux*)
  36920. - case $cc_basename in
  36921. - icc* | ecc*)
  36922. - lt_prog_compiler_wl_GCJ='-Wl,'
  36923. - lt_prog_compiler_pic_GCJ='-KPIC'
  36924. - lt_prog_compiler_static_GCJ='-static'
  36925. - ;;
  36926. - pgcc* | pgf77* | pgf90*)
  36927. - # Portland Group compilers (*not* the Pentium gcc compiler,
  36928. - # which looks to be a dead project)
  36929. - lt_prog_compiler_wl_GCJ='-Wl,'
  36930. - lt_prog_compiler_pic_GCJ='-fpic'
  36931. - lt_prog_compiler_static_GCJ='-static'
  36932. - ;;
  36933. - ccc*)
  36934. - lt_prog_compiler_wl_GCJ='-Wl,'
  36935. - # All Alpha code is PIC.
  36936. - lt_prog_compiler_static_GCJ='-non_shared'
  36937. - ;;
  36938. - esac
  36939. - ;;
  36940. - osf3* | osf4* | osf5*)
  36941. - lt_prog_compiler_wl_GCJ='-Wl,'
  36942. - # All OSF/1 code is PIC.
  36943. - lt_prog_compiler_static_GCJ='-non_shared'
  36944. - ;;
  36945. - sco3.2v5*)
  36946. - lt_prog_compiler_pic_GCJ='-Kpic'
  36947. - lt_prog_compiler_static_GCJ='-dn'
  36948. - ;;
  36949. - solaris*)
  36950. - lt_prog_compiler_pic_GCJ='-KPIC'
  36951. - lt_prog_compiler_static_GCJ='-Bstatic'
  36952. - case $cc_basename in
  36953. - f77* | f90* | f95*)
  36954. - lt_prog_compiler_wl_GCJ='-Qoption ld ';;
  36955. - *)
  36956. - lt_prog_compiler_wl_GCJ='-Wl,';;
  36957. - esac
  36958. - ;;
  36959. - sunos4*)
  36960. - lt_prog_compiler_wl_GCJ='-Qoption ld '
  36961. - lt_prog_compiler_pic_GCJ='-PIC'
  36962. - lt_prog_compiler_static_GCJ='-Bstatic'
  36963. - ;;
  36964. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  36965. - lt_prog_compiler_wl_GCJ='-Wl,'
  36966. - lt_prog_compiler_pic_GCJ='-KPIC'
  36967. - lt_prog_compiler_static_GCJ='-Bstatic'
  36968. - ;;
  36969. - sysv4*MP*)
  36970. - if test -d /usr/nec ;then
  36971. - lt_prog_compiler_pic_GCJ='-Kconform_pic'
  36972. - lt_prog_compiler_static_GCJ='-Bstatic'
  36973. - fi
  36974. - ;;
  36975. - unicos*)
  36976. - lt_prog_compiler_wl_GCJ='-Wl,'
  36977. - lt_prog_compiler_can_build_shared_GCJ=no
  36978. - ;;
  36979. - uts4*)
  36980. - lt_prog_compiler_pic_GCJ='-pic'
  36981. - lt_prog_compiler_static_GCJ='-Bstatic'
  36982. - ;;
  36983. - *)
  36984. - lt_prog_compiler_can_build_shared_GCJ=no
  36985. - ;;
  36986. - esac
  36987. - fi
  36988. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5
  36989. -echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6
  36990. -#
  36991. -# Check to make sure the PIC flag actually works.
  36992. -#
  36993. -if test -n "$lt_prog_compiler_pic_GCJ"; then
  36994. -echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5
  36995. -echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6
  36996. -if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then
  36997. - echo $ECHO_N "(cached) $ECHO_C" >&6
  36998. -else
  36999. - lt_prog_compiler_pic_works_GCJ=no
  37000. - ac_outfile=conftest.$ac_objext
  37001. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  37002. - lt_compiler_flag="$lt_prog_compiler_pic_GCJ"
  37003. - # Insert the option either (1) after the last *FLAGS variable, or
  37004. - # (2) before a word containing "conftest.", or (3) at the end.
  37005. - # Note that $ac_compile itself does not contain backslashes and begins
  37006. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37007. - # The option is referenced via a variable to avoid confusing sed.
  37008. - lt_compile=`echo "$ac_compile" | $SED \
  37009. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  37010. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37011. - -e 's:$: $lt_compiler_flag:'`
  37012. - (eval echo "\"\$as_me:16164: $lt_compile\"" >&5)
  37013. - (eval "$lt_compile" 2>conftest.err)
  37014. - ac_status=$?
  37015. - cat conftest.err >&5
  37016. - echo "$as_me:16168: \$? = $ac_status" >&5
  37017. - if (exit $ac_status) && test -s "$ac_outfile"; then
  37018. - # The compiler can only warn and ignore the option if not recognized
  37019. - # So say no if there are warnings other than the usual output.
  37020. - $echo "X$_lt_compiler_boilerplate" | $Xsed >conftest.exp
  37021. - $SED '/^$/d' conftest.err >conftest.er2
  37022. - if test ! -s conftest.err || diff conftest.exp conftest.er2 >/dev/null; then
  37023. - lt_prog_compiler_pic_works_GCJ=yes
  37024. - fi
  37025. - fi
  37026. - $rm conftest*
  37027. -fi
  37028. -echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5
  37029. -echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6
  37030. -if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then
  37031. - case $lt_prog_compiler_pic_GCJ in
  37032. - "" | " "*) ;;
  37033. - *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;;
  37034. - esac
  37035. -else
  37036. - lt_prog_compiler_pic_GCJ=
  37037. - lt_prog_compiler_can_build_shared_GCJ=no
  37038. -fi
  37039. -fi
  37040. -case "$host_os" in
  37041. - # For platforms which do not support PIC, -DPIC is meaningless:
  37042. - *djgpp*)
  37043. - lt_prog_compiler_pic_GCJ=
  37044. - ;;
  37045. - *)
  37046. - lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ"
  37047. - ;;
  37048. -esac
  37049. -echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5
  37050. -echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6
  37051. -if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then
  37052. - echo $ECHO_N "(cached) $ECHO_C" >&6
  37053. -else
  37054. - lt_cv_prog_compiler_c_o_GCJ=no
  37055. - $rm -r conftest 2>/dev/null
  37056. - mkdir conftest
  37057. - cd conftest
  37058. - mkdir out
  37059. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  37060. - lt_compiler_flag="-o out/conftest2.$ac_objext"
  37061. - # Insert the option either (1) after the last *FLAGS variable, or
  37062. - # (2) before a word containing "conftest.", or (3) at the end.
  37063. - # Note that $ac_compile itself does not contain backslashes and begins
  37064. - # with a dollar sign (not a hyphen), so the echo should work correctly.
  37065. - lt_compile=`echo "$ac_compile" | $SED \
  37066. - -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  37067. - -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  37068. - -e 's:$: $lt_compiler_flag:'`
  37069. - (eval echo "\"\$as_me:16226: $lt_compile\"" >&5)
  37070. - (eval "$lt_compile" 2>out/conftest.err)
  37071. - ac_status=$?
  37072. - cat out/conftest.err >&5
  37073. - echo "$as_me:16230: \$? = $ac_status" >&5
  37074. - if (exit $ac_status) && test -s out/conftest2.$ac_objext
  37075. - then
  37076. - # The compiler can only warn and ignore the option if not recognized
  37077. - # So say no if there are warnings
  37078. - $echo "X$_lt_compiler_boilerplate" | $Xsed > out/conftest.exp
  37079. - $SED '/^$/d' out/conftest.err >out/conftest.er2
  37080. - if test ! -s out/conftest.err || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  37081. - lt_cv_prog_compiler_c_o_GCJ=yes
  37082. - fi
  37083. - fi
  37084. - chmod u+w .
  37085. - $rm conftest*
  37086. - # SGI C++ compiler will create directory out/ii_files/ for
  37087. - # template instantiation
  37088. - test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  37089. - $rm out/* && rmdir out
  37090. - cd ..
  37091. - rmdir conftest
  37092. - $rm conftest*
  37093. -fi
  37094. -echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5
  37095. -echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6
  37096. -hard_links="nottested"
  37097. -if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then
  37098. - # do not overwrite the value of need_locks provided by the user
  37099. - echo "$as_me:$LINENO: checking if we can lock with hard links" >&5
  37100. -echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6
  37101. - hard_links=yes
  37102. - $rm conftest*
  37103. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  37104. - touch conftest.a
  37105. - ln conftest.a conftest.b 2>&5 || hard_links=no
  37106. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  37107. - echo "$as_me:$LINENO: result: $hard_links" >&5
  37108. -echo "${ECHO_T}$hard_links" >&6
  37109. - if test "$hard_links" = no; then
  37110. - { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  37111. -echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  37112. - need_locks=warn
  37113. - fi
  37114. -else
  37115. - need_locks=no
  37116. -fi
  37117. -echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  37118. -echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6
  37119. - runpath_var=
  37120. - allow_undefined_flag_GCJ=
  37121. - enable_shared_with_static_runtimes_GCJ=no
  37122. - archive_cmds_GCJ=
  37123. - archive_expsym_cmds_GCJ=
  37124. - old_archive_From_new_cmds_GCJ=
  37125. - old_archive_from_expsyms_cmds_GCJ=
  37126. - export_dynamic_flag_spec_GCJ=
  37127. - whole_archive_flag_spec_GCJ=
  37128. - thread_safe_flag_spec_GCJ=
  37129. - hardcode_libdir_flag_spec_GCJ=
  37130. - hardcode_libdir_flag_spec_ld_GCJ=
  37131. - hardcode_libdir_separator_GCJ=
  37132. - hardcode_direct_GCJ=no
  37133. - hardcode_minus_L_GCJ=no
  37134. - hardcode_shlibpath_var_GCJ=unsupported
  37135. - link_all_deplibs_GCJ=unknown
  37136. - hardcode_automatic_GCJ=no
  37137. - module_cmds_GCJ=
  37138. - module_expsym_cmds_GCJ=
  37139. - always_export_symbols_GCJ=no
  37140. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  37141. - # include_expsyms should be a list of space-separated symbols to be *always*
  37142. - # included in the symbol list
  37143. - include_expsyms_GCJ=
  37144. - # exclude_expsyms can be an extended regexp of symbols to exclude
  37145. - # it will be wrapped by ` (' and `)$', so one must not match beginning or
  37146. - # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  37147. - # as well as any symbol that contains `d'.
  37148. - exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_"
  37149. - # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  37150. - # platforms (ab)use it in PIC code, but their linkers get confused if
  37151. - # the symbol is explicitly referenced. Since portable code cannot
  37152. - # rely on this symbol name, it's probably fine to never include it in
  37153. - # preloaded symbol tables.
  37154. - extract_expsyms_cmds=
  37155. - # Just being paranoid about ensuring that cc_basename is set.
  37156. - for cc_temp in $compiler""; do
  37157. - case $cc_temp in
  37158. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  37159. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  37160. - \-*) ;;
  37161. - *) break;;
  37162. - esac
  37163. -done
  37164. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  37165. - case $host_os in
  37166. - cygwin* | mingw* | pw32*)
  37167. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  37168. - # When not using gcc, we currently assume that we are using
  37169. - # Microsoft Visual C++.
  37170. - if test "$GCC" != yes; then
  37171. - with_gnu_ld=no
  37172. - fi
  37173. - ;;
  37174. - openbsd*)
  37175. - with_gnu_ld=no
  37176. - ;;
  37177. - esac
  37178. - ld_shlibs_GCJ=yes
  37179. - if test "$with_gnu_ld" = yes; then
  37180. - # If archive_cmds runs LD, not CC, wlarc should be empty
  37181. - wlarc='${wl}'
  37182. - # Set some defaults for GNU ld with shared library support. These
  37183. - # are reset later if shared libraries are not supported. Putting them
  37184. - # here allows them to be overridden if necessary.
  37185. - runpath_var=LD_RUN_PATH
  37186. - hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir'
  37187. - export_dynamic_flag_spec_GCJ='${wl}--export-dynamic'
  37188. - # ancient GNU ld didn't support --whole-archive et. al.
  37189. - if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  37190. - whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  37191. - else
  37192. - whole_archive_flag_spec_GCJ=
  37193. - fi
  37194. - supports_anon_versioning=no
  37195. - case `$LD -v 2>/dev/null` in
  37196. - *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  37197. - *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  37198. - *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  37199. - *\ 2.11.*) ;; # other 2.11 versions
  37200. - *) supports_anon_versioning=yes ;;
  37201. - esac
  37202. - # See if GNU ld supports shared libraries.
  37203. - case $host_os in
  37204. - aix3* | aix4* | aix5*)
  37205. - # On AIX/PPC, the GNU linker is very broken
  37206. - if test "$host_cpu" != ia64; then
  37207. - ld_shlibs_GCJ=no
  37208. - cat <<EOF 1>&2
  37209. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  37210. -*** to be unable to reliably create shared libraries on AIX.
  37211. -*** Therefore, libtool is disabling shared libraries support. If you
  37212. -*** really care for shared libraries, you may want to modify your PATH
  37213. -*** so that a non-GNU linker is found, and then restart.
  37214. -EOF
  37215. - fi
  37216. - ;;
  37217. - amigaos*)
  37218. - 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)'
  37219. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37220. - hardcode_minus_L_GCJ=yes
  37221. -
  37222. - # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports
  37223. - # that the semantics of dynamic libraries on AmigaOS, at least up
  37224. - # to version 4, is to share data among multiple programs linked
  37225. - # with the same dynamic library. Since this doesn't match the
  37226. - # behavior of shared libraries on other platforms, we can't use
  37227. - # them.
  37228. - ld_shlibs_GCJ=no
  37229. - ;;
  37230. - beos*)
  37231. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37232. - allow_undefined_flag_GCJ=unsupported
  37233. - # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  37234. - # support --undefined. This deserves some investigation. FIXME
  37235. - archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37236. - else
  37237. - ld_shlibs_GCJ=no
  37238. - fi
  37239. - ;;
  37240. - cygwin* | mingw* | pw32*)
  37241. - # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless,
  37242. - # as there is no search path for DLLs.
  37243. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37244. - allow_undefined_flag_GCJ=unsupported
  37245. - always_export_symbols_GCJ=no
  37246. - enable_shared_with_static_runtimes_GCJ=yes
  37247. - export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols'
  37248. - if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  37249. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  37250. - # If the export-symbols file already is a .def file (1st line
  37251. - # is EXPORTS), use it as is; otherwise, prepend...
  37252. - archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  37253. - cp $export_symbols $output_objdir/$soname.def;
  37254. - else
  37255. - echo EXPORTS > $output_objdir/$soname.def;
  37256. - cat $export_symbols >> $output_objdir/$soname.def;
  37257. - fi~
  37258. - $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  37259. - else
  37260. - ld_shlibs_GCJ=no
  37261. - fi
  37262. - ;;
  37263. - linux*)
  37264. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37265. - tmp_addflag=
  37266. - case $cc_basename,$host_cpu in
  37267. - pgcc*) # Portland Group C compiler
  37268. - whole_archive_flag_spec_GCJ=
  37269. - ;;
  37270. - pgf77* | pgf90* ) # Portland Group f77 and f90 compilers
  37271. - whole_archive_flag_spec_GCJ=
  37272. - tmp_addflag=' -fpic -Mnomain' ;;
  37273. - ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  37274. - tmp_addflag=' -i_dynamic' ;;
  37275. - efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  37276. - tmp_addflag=' -i_dynamic -nofor_main' ;;
  37277. - ifc* | ifort*) # Intel Fortran compiler
  37278. - tmp_addflag=' -nofor_main' ;;
  37279. - esac
  37280. - archive_cmds_GCJ='$CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37281. - if test $supports_anon_versioning = yes; then
  37282. - archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~
  37283. - cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  37284. - $echo "local: *; };" >> $output_objdir/$libname.ver~
  37285. - $CC -shared'"$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  37286. - fi
  37287. - else
  37288. - ld_shlibs_GCJ=no
  37289. - fi
  37290. - ;;
  37291. - netbsd*)
  37292. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  37293. - archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  37294. - wlarc=
  37295. - else
  37296. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37297. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  37298. - fi
  37299. - ;;
  37300. - solaris* | sysv5*)
  37301. - if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  37302. - ld_shlibs_GCJ=no
  37303. - cat <<EOF 1>&2
  37304. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  37305. -*** create shared libraries on Solaris systems. Therefore, libtool
  37306. -*** is disabling shared libraries support. We urge you to upgrade GNU
  37307. -*** binutils to release 2.9.1 or newer. Another option is to modify
  37308. -*** your PATH or compiler configuration so that the native linker is
  37309. -*** used, and then restart.
  37310. -EOF
  37311. - elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37312. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37313. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  37314. - else
  37315. - ld_shlibs_GCJ=no
  37316. - fi
  37317. - ;;
  37318. - sunos4*)
  37319. - archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  37320. - wlarc=
  37321. - hardcode_direct_GCJ=yes
  37322. - hardcode_shlibpath_var_GCJ=no
  37323. - ;;
  37324. - *)
  37325. - if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  37326. - archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  37327. - archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  37328. - else
  37329. - ld_shlibs_GCJ=no
  37330. - fi
  37331. - ;;
  37332. - esac
  37333. - if test "$ld_shlibs_GCJ" = no; then
  37334. - runpath_var=
  37335. - hardcode_libdir_flag_spec_GCJ=
  37336. - export_dynamic_flag_spec_GCJ=
  37337. - whole_archive_flag_spec_GCJ=
  37338. - fi
  37339. - else
  37340. - # PORTME fill in a description of your system's linker (not GNU ld)
  37341. - case $host_os in
  37342. - aix3*)
  37343. - allow_undefined_flag_GCJ=unsupported
  37344. - always_export_symbols_GCJ=yes
  37345. - 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'
  37346. - # Note: this linker hardcodes the directories in LIBPATH if there
  37347. - # are no directories specified by -L.
  37348. - hardcode_minus_L_GCJ=yes
  37349. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  37350. - # Neither direct hardcoding nor static linking is supported with a
  37351. - # broken collect2.
  37352. - hardcode_direct_GCJ=unsupported
  37353. - fi
  37354. - ;;
  37355. - aix4* | aix5*)
  37356. - if test "$host_cpu" = ia64; then
  37357. - # On IA64, the linker does run time linking by default, so we don't
  37358. - # have to do anything special.
  37359. - aix_use_runtimelinking=no
  37360. - exp_sym_flag='-Bexport'
  37361. - no_entry_flag=""
  37362. - else
  37363. - # If we're using GNU nm, then we don't want the "-C" option.
  37364. - # -C means demangle to AIX nm, but means don't demangle with GNU nm
  37365. - if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  37366. - 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'
  37367. - else
  37368. - 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'
  37369. - fi
  37370. - aix_use_runtimelinking=no
  37371. - # Test if we are trying to use run time linking or normal
  37372. - # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  37373. - # need to do runtime linking.
  37374. - case $host_os in aix4.[23]|aix4.[23].*|aix5*)
  37375. - for ld_flag in $LDFLAGS; do
  37376. - if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  37377. - aix_use_runtimelinking=yes
  37378. - break
  37379. - fi
  37380. - done
  37381. - esac
  37382. - exp_sym_flag='-bexport'
  37383. - no_entry_flag='-bnoentry'
  37384. - fi
  37385. - # When large executables or shared objects are built, AIX ld can
  37386. - # have problems creating the table of contents. If linking a library
  37387. - # or program results in "error TOC overflow" add -mminimal-toc to
  37388. - # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  37389. - # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  37390. - archive_cmds_GCJ=''
  37391. - hardcode_direct_GCJ=yes
  37392. - hardcode_libdir_separator_GCJ=':'
  37393. - link_all_deplibs_GCJ=yes
  37394. - if test "$GCC" = yes; then
  37395. - case $host_os in aix4.[012]|aix4.[012].*)
  37396. - # We only want to do this on AIX 4.2 and lower, the check
  37397. - # below for broken collect2 doesn't work under 4.3+
  37398. - collect2name=`${CC} -print-prog-name=collect2`
  37399. - if test -f "$collect2name" && \
  37400. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  37401. - then
  37402. - # We have reworked collect2
  37403. - hardcode_direct_GCJ=yes
  37404. - else
  37405. - # We have old collect2
  37406. - hardcode_direct_GCJ=unsupported
  37407. - # It fails to find uninstalled libraries when the uninstalled
  37408. - # path is not listed in the libpath. Setting hardcode_minus_L
  37409. - # to unsupported forces relinking
  37410. - hardcode_minus_L_GCJ=yes
  37411. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37412. - hardcode_libdir_separator_GCJ=
  37413. - fi
  37414. - esac
  37415. - shared_flag='-shared'
  37416. - if test "$aix_use_runtimelinking" = yes; then
  37417. - shared_flag="$shared_flag "'${wl}-G'
  37418. - fi
  37419. - else
  37420. - # not using gcc
  37421. - if test "$host_cpu" = ia64; then
  37422. - # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  37423. - # chokes on -Wl,-G. The following line is correct:
  37424. - shared_flag='-G'
  37425. - else
  37426. - if test "$aix_use_runtimelinking" = yes; then
  37427. - shared_flag='${wl}-G'
  37428. - else
  37429. - shared_flag='${wl}-bM:SRE'
  37430. - fi
  37431. - fi
  37432. - fi
  37433. - # It seems that -bexpall does not export symbols beginning with
  37434. - # underscore (_), so it is better to generate a list of symbols to export.
  37435. - always_export_symbols_GCJ=yes
  37436. - if test "$aix_use_runtimelinking" = yes; then
  37437. - # Warning - without using the other runtime loading flags (-brtl),
  37438. - # -berok will link without error, but may produce a broken library.
  37439. - allow_undefined_flag_GCJ='-berok'
  37440. - # Determine the default libpath from the value encoded in an empty executable.
  37441. - cat >conftest.$ac_ext <<_ACEOF
  37442. -/* confdefs.h. */
  37443. -_ACEOF
  37444. -cat confdefs.h >>conftest.$ac_ext
  37445. -cat >>conftest.$ac_ext <<_ACEOF
  37446. -/* end confdefs.h. */
  37447. -int
  37448. -main ()
  37449. -{
  37450. - ;
  37451. - return 0;
  37452. -}
  37453. -_ACEOF
  37454. -rm -f conftest.$ac_objext conftest$ac_exeext
  37455. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  37456. - (eval $ac_link) 2>conftest.er1
  37457. - ac_status=$?
  37458. - grep -v '^ *+' conftest.er1 >conftest.err
  37459. - rm -f conftest.er1
  37460. - cat conftest.err >&5
  37461. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37462. - (exit $ac_status); } &&
  37463. - { ac_try='test -z "$ac_c_werror_flag"
  37464. - || test ! -s conftest.err'
  37465. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37466. - (eval $ac_try) 2>&5
  37467. - ac_status=$?
  37468. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37469. - (exit $ac_status); }; } &&
  37470. - { ac_try='test -s conftest$ac_exeext'
  37471. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37472. - (eval $ac_try) 2>&5
  37473. - ac_status=$?
  37474. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37475. - (exit $ac_status); }; }; then
  37476. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  37477. -}'`
  37478. -# Check for a 64-bit object if we didn't find anything.
  37479. -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; }
  37480. -}'`; fi
  37481. -else
  37482. - echo "$as_me: failed program was:" >&5
  37483. -sed 's/^/| /' conftest.$ac_ext >&5
  37484. -fi
  37485. -rm -f conftest.err conftest.$ac_objext \
  37486. - conftest$ac_exeext conftest.$ac_ext
  37487. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  37488. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  37489. - archive_expsym_cmds_GCJ="\$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"
  37490. - else
  37491. - if test "$host_cpu" = ia64; then
  37492. - hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib'
  37493. - allow_undefined_flag_GCJ="-z nodefs"
  37494. - archive_expsym_cmds_GCJ="\$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"
  37495. - else
  37496. - # Determine the default libpath from the value encoded in an empty executable.
  37497. - cat >conftest.$ac_ext <<_ACEOF
  37498. -/* confdefs.h. */
  37499. -_ACEOF
  37500. -cat confdefs.h >>conftest.$ac_ext
  37501. -cat >>conftest.$ac_ext <<_ACEOF
  37502. -/* end confdefs.h. */
  37503. -int
  37504. -main ()
  37505. -{
  37506. - ;
  37507. - return 0;
  37508. -}
  37509. -_ACEOF
  37510. -rm -f conftest.$ac_objext conftest$ac_exeext
  37511. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  37512. - (eval $ac_link) 2>conftest.er1
  37513. - ac_status=$?
  37514. - grep -v '^ *+' conftest.er1 >conftest.err
  37515. - rm -f conftest.er1
  37516. - cat conftest.err >&5
  37517. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37518. - (exit $ac_status); } &&
  37519. - { ac_try='test -z "$ac_c_werror_flag"
  37520. - || test ! -s conftest.err'
  37521. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37522. - (eval $ac_try) 2>&5
  37523. - ac_status=$?
  37524. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37525. - (exit $ac_status); }; } &&
  37526. - { ac_try='test -s conftest$ac_exeext'
  37527. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  37528. - (eval $ac_try) 2>&5
  37529. - ac_status=$?
  37530. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37531. - (exit $ac_status); }; }; then
  37532. -aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  37533. -}'`
  37534. -# Check for a 64-bit object if we didn't find anything.
  37535. -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; }
  37536. -}'`; fi
  37537. -else
  37538. - echo "$as_me: failed program was:" >&5
  37539. -sed 's/^/| /' conftest.$ac_ext >&5
  37540. -fi
  37541. -rm -f conftest.err conftest.$ac_objext \
  37542. - conftest$ac_exeext conftest.$ac_ext
  37543. -if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  37544. - hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath"
  37545. - # Warning - without using the other run time loading flags,
  37546. - # -berok will link without error, but may produce a broken library.
  37547. - no_undefined_flag_GCJ=' ${wl}-bernotok'
  37548. - allow_undefined_flag_GCJ=' ${wl}-berok'
  37549. - # -bexpall does not export symbols beginning with underscore (_)
  37550. - always_export_symbols_GCJ=yes
  37551. - # Exported symbols can be pulled into shared objects from archives
  37552. - whole_archive_flag_spec_GCJ=' '
  37553. - archive_cmds_need_lc_GCJ=yes
  37554. - # This is similar to how AIX traditionally builds it's shared libraries.
  37555. - archive_expsym_cmds_GCJ="\$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'
  37556. - fi
  37557. - fi
  37558. - ;;
  37559. - amigaos*)
  37560. - 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)'
  37561. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37562. - hardcode_minus_L_GCJ=yes
  37563. - # see comment about different semantics on the GNU ld section
  37564. - ld_shlibs_GCJ=no
  37565. - ;;
  37566. - bsdi[45]*)
  37567. - export_dynamic_flag_spec_GCJ=-rdynamic
  37568. - ;;
  37569. - cygwin* | mingw* | pw32*)
  37570. - # When not using gcc, we currently assume that we are using
  37571. - # Microsoft Visual C++.
  37572. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  37573. - # no search path for DLLs.
  37574. - hardcode_libdir_flag_spec_GCJ=' '
  37575. - allow_undefined_flag_GCJ=unsupported
  37576. - # Tell ltmain to make .lib files, not .a files.
  37577. - libext=lib
  37578. - # Tell ltmain to make .dll files, not .so files.
  37579. - shrext_cmds=".dll"
  37580. - # FIXME: Setting linknames here is a bad hack.
  37581. - archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  37582. - # The linker will automatically build a .lib file if we build a DLL.
  37583. - old_archive_From_new_cmds_GCJ='true'
  37584. - # FIXME: Should let the user specify the lib program.
  37585. - old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs'
  37586. - fix_srcfile_path_GCJ='`cygpath -w "$srcfile"`'
  37587. - enable_shared_with_static_runtimes_GCJ=yes
  37588. - ;;
  37589. - darwin* | rhapsody*)
  37590. - case "$host_os" in
  37591. - rhapsody* | darwin1.[012])
  37592. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}suppress'
  37593. - ;;
  37594. - *) # Darwin 1.3 on
  37595. - if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  37596. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  37597. - else
  37598. - case ${MACOSX_DEPLOYMENT_TARGET} in
  37599. - 10.[012])
  37600. - allow_undefined_flag_GCJ='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  37601. - ;;
  37602. - 10.*)
  37603. - allow_undefined_flag_GCJ='${wl}-undefined ${wl}dynamic_lookup'
  37604. - ;;
  37605. - esac
  37606. - fi
  37607. - ;;
  37608. - esac
  37609. - archive_cmds_need_lc_GCJ=no
  37610. - hardcode_direct_GCJ=no
  37611. - hardcode_automatic_GCJ=yes
  37612. - hardcode_shlibpath_var_GCJ=unsupported
  37613. - whole_archive_flag_spec_GCJ=''
  37614. - link_all_deplibs_GCJ=yes
  37615. - if test "$GCC" = yes ; then
  37616. - output_verbose_link_cmd='echo'
  37617. - archive_cmds_GCJ='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  37618. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  37619. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  37620. - 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}'
  37621. - 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}'
  37622. - else
  37623. - case $cc_basename in
  37624. - xlc*)
  37625. - output_verbose_link_cmd='echo'
  37626. - archive_cmds_GCJ='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`echo $rpath/$soname` $verstring'
  37627. - module_cmds_GCJ='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  37628. - # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  37629. - 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}'
  37630. - 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}'
  37631. - ;;
  37632. - *)
  37633. - ld_shlibs_GCJ=no
  37634. - ;;
  37635. - esac
  37636. - fi
  37637. - ;;
  37638. - dgux*)
  37639. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37640. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37641. - hardcode_shlibpath_var_GCJ=no
  37642. - ;;
  37643. - freebsd1*)
  37644. - ld_shlibs_GCJ=no
  37645. - ;;
  37646. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  37647. - # support. Future versions do this automatically, but an explicit c++rt0.o
  37648. - # does not break anything, and helps significantly (at the cost of a little
  37649. - # extra space).
  37650. - freebsd2.2*)
  37651. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  37652. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  37653. - hardcode_direct_GCJ=yes
  37654. - hardcode_shlibpath_var_GCJ=no
  37655. - ;;
  37656. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  37657. - freebsd2*)
  37658. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  37659. - hardcode_direct_GCJ=yes
  37660. - hardcode_minus_L_GCJ=yes
  37661. - hardcode_shlibpath_var_GCJ=no
  37662. - ;;
  37663. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  37664. - freebsd* | kfreebsd*-gnu | dragonfly*)
  37665. - archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  37666. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  37667. - hardcode_direct_GCJ=yes
  37668. - hardcode_shlibpath_var_GCJ=no
  37669. - ;;
  37670. - hpux9*)
  37671. - if test "$GCC" = yes; then
  37672. - 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'
  37673. - else
  37674. - 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'
  37675. - fi
  37676. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  37677. - hardcode_libdir_separator_GCJ=:
  37678. - hardcode_direct_GCJ=yes
  37679. - # hardcode_minus_L: Not really in the search PATH,
  37680. - # but as the default location of the library.
  37681. - hardcode_minus_L_GCJ=yes
  37682. - export_dynamic_flag_spec_GCJ='${wl}-E'
  37683. - ;;
  37684. - hpux10* | hpux11*)
  37685. - if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  37686. - case "$host_cpu" in
  37687. - hppa*64*|ia64*)
  37688. - archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37689. - ;;
  37690. - *)
  37691. - archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  37692. - ;;
  37693. - esac
  37694. - else
  37695. - case "$host_cpu" in
  37696. - hppa*64*|ia64*)
  37697. - archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  37698. - ;;
  37699. - *)
  37700. - archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  37701. - ;;
  37702. - esac
  37703. - fi
  37704. - if test "$with_gnu_ld" = no; then
  37705. - case "$host_cpu" in
  37706. - hppa*64*)
  37707. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  37708. - hardcode_libdir_flag_spec_ld_GCJ='+b $libdir'
  37709. - hardcode_libdir_separator_GCJ=:
  37710. - hardcode_direct_GCJ=no
  37711. - hardcode_shlibpath_var_GCJ=no
  37712. - ;;
  37713. - ia64*)
  37714. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37715. - hardcode_direct_GCJ=no
  37716. - hardcode_shlibpath_var_GCJ=no
  37717. - # hardcode_minus_L: Not really in the search PATH,
  37718. - # but as the default location of the library.
  37719. - hardcode_minus_L_GCJ=yes
  37720. - ;;
  37721. - *)
  37722. - hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir'
  37723. - hardcode_libdir_separator_GCJ=:
  37724. - hardcode_direct_GCJ=yes
  37725. - export_dynamic_flag_spec_GCJ='${wl}-E'
  37726. - # hardcode_minus_L: Not really in the search PATH,
  37727. - # but as the default location of the library.
  37728. - hardcode_minus_L_GCJ=yes
  37729. - ;;
  37730. - esac
  37731. - fi
  37732. - ;;
  37733. - irix5* | irix6* | nonstopux*)
  37734. - if test "$GCC" = yes; then
  37735. - 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'
  37736. - else
  37737. - 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'
  37738. - hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir'
  37739. - fi
  37740. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  37741. - hardcode_libdir_separator_GCJ=:
  37742. - link_all_deplibs_GCJ=yes
  37743. - ;;
  37744. - netbsd*)
  37745. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  37746. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  37747. - else
  37748. - archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  37749. - fi
  37750. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  37751. - hardcode_direct_GCJ=yes
  37752. - hardcode_shlibpath_var_GCJ=no
  37753. - ;;
  37754. - newsos6)
  37755. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37756. - hardcode_direct_GCJ=yes
  37757. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  37758. - hardcode_libdir_separator_GCJ=:
  37759. - hardcode_shlibpath_var_GCJ=no
  37760. - ;;
  37761. - openbsd*)
  37762. - hardcode_direct_GCJ=yes
  37763. - hardcode_shlibpath_var_GCJ=no
  37764. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  37765. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  37766. - archive_expsym_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  37767. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  37768. - export_dynamic_flag_spec_GCJ='${wl}-E'
  37769. - else
  37770. - case $host_os in
  37771. - openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  37772. - archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  37773. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  37774. - ;;
  37775. - *)
  37776. - archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  37777. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir'
  37778. - ;;
  37779. - esac
  37780. - fi
  37781. - ;;
  37782. - os2*)
  37783. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37784. - hardcode_minus_L_GCJ=yes
  37785. - allow_undefined_flag_GCJ=unsupported
  37786. - 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'
  37787. - old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  37788. - ;;
  37789. - osf3*)
  37790. - if test "$GCC" = yes; then
  37791. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  37792. - 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'
  37793. - else
  37794. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  37795. - 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'
  37796. - fi
  37797. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  37798. - hardcode_libdir_separator_GCJ=:
  37799. - ;;
  37800. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  37801. - if test "$GCC" = yes; then
  37802. - allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*'
  37803. - 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'
  37804. - hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir'
  37805. - else
  37806. - allow_undefined_flag_GCJ=' -expect_unresolved \*'
  37807. - 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'
  37808. - 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~
  37809. - $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'
  37810. - # Both c and cxx compiler support -rpath directly
  37811. - hardcode_libdir_flag_spec_GCJ='-rpath $libdir'
  37812. - fi
  37813. - hardcode_libdir_separator_GCJ=:
  37814. - ;;
  37815. - sco3.2v5*)
  37816. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37817. - hardcode_shlibpath_var_GCJ=no
  37818. - export_dynamic_flag_spec_GCJ='${wl}-Bexport'
  37819. - runpath_var=LD_RUN_PATH
  37820. - hardcode_runpath_var=yes
  37821. - ;;
  37822. - solaris*)
  37823. - no_undefined_flag_GCJ=' -z text'
  37824. - if test "$GCC" = yes; then
  37825. - wlarc='${wl}'
  37826. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37827. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  37828. - $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  37829. - else
  37830. - wlarc=''
  37831. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37832. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  37833. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  37834. - fi
  37835. - hardcode_libdir_flag_spec_GCJ='-R$libdir'
  37836. - hardcode_shlibpath_var_GCJ=no
  37837. - case $host_os in
  37838. - solaris2.[0-5] | solaris2.[0-5].*) ;;
  37839. - *)
  37840. - # The compiler driver will combine linker options so we
  37841. - # cannot just pass the convience library names through
  37842. - # without $wl, iff we do not link with $LD.
  37843. - # Luckily, gcc supports the same syntax we need for Sun Studio.
  37844. - # Supported since Solaris 2.6 (maybe 2.5.1?)
  37845. - case $wlarc in
  37846. - '')
  37847. - whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;;
  37848. - *)
  37849. - 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' ;;
  37850. - esac ;;
  37851. - esac
  37852. - link_all_deplibs_GCJ=yes
  37853. - ;;
  37854. - sunos4*)
  37855. - if test "x$host_vendor" = xsequent; then
  37856. - # Use $CC to link under sequent, because it throws in some extra .o
  37857. - # files that make .init and .fini sections work.
  37858. - archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  37859. - else
  37860. - archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  37861. - fi
  37862. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37863. - hardcode_direct_GCJ=yes
  37864. - hardcode_minus_L_GCJ=yes
  37865. - hardcode_shlibpath_var_GCJ=no
  37866. - ;;
  37867. - sysv4)
  37868. - case $host_vendor in
  37869. - sni)
  37870. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37871. - hardcode_direct_GCJ=yes # is this really true???
  37872. - ;;
  37873. - siemens)
  37874. - ## LD is ld it makes a PLAMLIB
  37875. - ## CC just makes a GrossModule.
  37876. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  37877. - reload_cmds_GCJ='$CC -r -o $output$reload_objs'
  37878. - hardcode_direct_GCJ=no
  37879. - ;;
  37880. - motorola)
  37881. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37882. - hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie
  37883. - ;;
  37884. - esac
  37885. - runpath_var='LD_RUN_PATH'
  37886. - hardcode_shlibpath_var_GCJ=no
  37887. - ;;
  37888. - sysv4.3*)
  37889. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37890. - hardcode_shlibpath_var_GCJ=no
  37891. - export_dynamic_flag_spec_GCJ='-Bexport'
  37892. - ;;
  37893. - sysv4*MP*)
  37894. - if test -d /usr/nec; then
  37895. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37896. - hardcode_shlibpath_var_GCJ=no
  37897. - runpath_var=LD_RUN_PATH
  37898. - hardcode_runpath_var=yes
  37899. - ld_shlibs_GCJ=yes
  37900. - fi
  37901. - ;;
  37902. - sysv4.2uw2*)
  37903. - archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  37904. - hardcode_direct_GCJ=yes
  37905. - hardcode_minus_L_GCJ=no
  37906. - hardcode_shlibpath_var_GCJ=no
  37907. - hardcode_runpath_var=yes
  37908. - runpath_var=LD_RUN_PATH
  37909. - ;;
  37910. - sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*)
  37911. - no_undefined_flag_GCJ='${wl}-z ${wl}text'
  37912. - if test "$GCC" = yes; then
  37913. - archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37914. - else
  37915. - archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  37916. - fi
  37917. - runpath_var='LD_RUN_PATH'
  37918. - hardcode_shlibpath_var_GCJ=no
  37919. - ;;
  37920. - sysv5*)
  37921. - no_undefined_flag_GCJ=' -z text'
  37922. - # $CC -shared without GNU ld will not create a library from C++
  37923. - # object files and a static libstdc++, better avoid it by now
  37924. - archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37925. - archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  37926. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  37927. - hardcode_libdir_flag_spec_GCJ=
  37928. - hardcode_shlibpath_var_GCJ=no
  37929. - runpath_var='LD_RUN_PATH'
  37930. - ;;
  37931. - uts4*)
  37932. - archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  37933. - hardcode_libdir_flag_spec_GCJ='-L$libdir'
  37934. - hardcode_shlibpath_var_GCJ=no
  37935. - ;;
  37936. - *)
  37937. - ld_shlibs_GCJ=no
  37938. - ;;
  37939. - esac
  37940. - fi
  37941. -echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5
  37942. -echo "${ECHO_T}$ld_shlibs_GCJ" >&6
  37943. -test "$ld_shlibs_GCJ" = no && can_build_shared=no
  37944. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  37945. -if test "$GCC" = yes; then
  37946. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  37947. -fi
  37948. -#
  37949. -# Do we need to explicitly link libc?
  37950. -#
  37951. -case "x$archive_cmds_need_lc_GCJ" in
  37952. -x|xyes)
  37953. - # Assume -lc should be added
  37954. - archive_cmds_need_lc_GCJ=yes
  37955. - if test "$enable_shared" = yes && test "$GCC" = yes; then
  37956. - case $archive_cmds_GCJ in
  37957. - *'~'*)
  37958. - # FIXME: we may have to deal with multi-command sequences.
  37959. - ;;
  37960. - '$CC '*)
  37961. - # Test whether the compiler implicitly links with -lc since on some
  37962. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  37963. - # to ld, don't add -lc before -lgcc.
  37964. - echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5
  37965. -echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6
  37966. - $rm conftest*
  37967. - printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  37968. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  37969. - (eval $ac_compile) 2>&5
  37970. - ac_status=$?
  37971. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37972. - (exit $ac_status); } 2>conftest.err; then
  37973. - soname=conftest
  37974. - lib=conftest
  37975. - libobjs=conftest.$ac_objext
  37976. - deplibs=
  37977. - wl=$lt_prog_compiler_wl_GCJ
  37978. - compiler_flags=-v
  37979. - linker_flags=-v
  37980. - verstring=
  37981. - output_objdir=.
  37982. - libname=conftest
  37983. - lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ
  37984. - allow_undefined_flag_GCJ=
  37985. - if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5
  37986. - (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5
  37987. - ac_status=$?
  37988. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  37989. - (exit $ac_status); }
  37990. - then
  37991. - archive_cmds_need_lc_GCJ=no
  37992. - else
  37993. - archive_cmds_need_lc_GCJ=yes
  37994. - fi
  37995. - allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag
  37996. - else
  37997. - cat conftest.err 1>&5
  37998. - fi
  37999. - $rm conftest*
  38000. - echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5
  38001. -echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6
  38002. - ;;
  38003. - esac
  38004. - fi
  38005. - ;;
  38006. -esac
  38007. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  38008. +$as_echo_n "checking dynamic linker characteristics... " >&6; }
  38009. -echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5
  38010. -echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6
  38011. +if test "$GCC" = yes; then
  38012. + case $host_os in
  38013. + darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  38014. + *) lt_awk_arg="/^libraries:/" ;;
  38015. + esac
  38016. + lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38017. + if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then
  38018. + # if the path contains ";" then we assume it to be the separator
  38019. + # otherwise default to the standard path separator (i.e. ":") - it is
  38020. + # assumed that no part of a normal pathname contains ";" but that should
  38021. + # okay in the real world where ";" in dirpaths is itself problematic.
  38022. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'`
  38023. + else
  38024. + lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38025. + fi
  38026. + # Ok, now we have the path, separated by spaces, we can step through it
  38027. + # and add multilib dir if necessary.
  38028. + lt_tmp_lt_search_path_spec=
  38029. + lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  38030. + for lt_sys_path in $lt_search_path_spec; do
  38031. + if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  38032. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  38033. + else
  38034. + test -d "$lt_sys_path" && \
  38035. + lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  38036. + fi
  38037. + done
  38038. + lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk '
  38039. +BEGIN {RS=" "; FS="/|\n";} {
  38040. + lt_foo="";
  38041. + lt_count=0;
  38042. + for (lt_i = NF; lt_i > 0; lt_i--) {
  38043. + if ($lt_i != "" && $lt_i != ".") {
  38044. + if ($lt_i == "..") {
  38045. + lt_count++;
  38046. + } else {
  38047. + if (lt_count == 0) {
  38048. + lt_foo="/" $lt_i lt_foo;
  38049. + } else {
  38050. + lt_count--;
  38051. + }
  38052. + }
  38053. + }
  38054. + }
  38055. + if (lt_foo != "") { lt_freq[lt_foo]++; }
  38056. + if (lt_freq[lt_foo] == 1) { print lt_foo; }
  38057. +}'`
  38058. + sys_lib_search_path_spec=`$ECHO $lt_search_path_spec`
  38059. +else
  38060. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  38061. +fi
  38062. library_names_spec=
  38063. libname_spec='lib$name'
  38064. soname_spec=
  38065. @@ -17256,20 +9117,6 @@
  38066. version_type=none
  38067. dynamic_linker="$host_os ld.so"
  38068. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  38069. -if test "$GCC" = yes; then
  38070. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38071. - if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  38072. - # if the path contains ";" then we assume it to be the separator
  38073. - # otherwise default to the standard path separator (i.e. ":") - it is
  38074. - # assumed that no part of a normal pathname contains ";" but that should
  38075. - # okay in the real world where ";" in dirpaths is itself problematic.
  38076. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  38077. - else
  38078. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38079. - fi
  38080. -else
  38081. - sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  38082. -fi
  38083. need_lib_prefix=unknown
  38084. hardcode_into_libs=no
  38085. @@ -17287,7 +9134,7 @@
  38086. soname_spec='${libname}${release}${shared_ext}$major'
  38087. ;;
  38088. -aix4* | aix5*)
  38089. +aix[4-9]*)
  38090. version_type=linux
  38091. need_lib_prefix=no
  38092. need_version=no
  38093. @@ -17306,7 +9153,7 @@
  38094. aix4 | aix4.[01] | aix4.[01].*)
  38095. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  38096. echo ' yes '
  38097. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  38098. + echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  38099. :
  38100. else
  38101. can_build_shared=no
  38102. @@ -17332,9 +9179,18 @@
  38103. ;;
  38104. amigaos*)
  38105. - library_names_spec='$libname.ixlibrary $libname.a'
  38106. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  38107. - 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'
  38108. + case $host_cpu in
  38109. + powerpc)
  38110. + # Since July 2007 AmigaOS4 officially supports .so libraries.
  38111. + # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  38112. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38113. + ;;
  38114. + m68k)
  38115. + library_names_spec='$libname.ixlibrary $libname.a'
  38116. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  38117. + 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'
  38118. + ;;
  38119. + esac
  38120. ;;
  38121. beos*)
  38122. @@ -17357,24 +9213,28 @@
  38123. # libtool to hard-code these into programs
  38124. ;;
  38125. -cygwin* | mingw* | pw32*)
  38126. +cygwin* | mingw* | pw32* | cegcc*)
  38127. version_type=windows
  38128. shrext_cmds=".dll"
  38129. need_version=no
  38130. need_lib_prefix=no
  38131. case $GCC,$host_os in
  38132. - yes,cygwin* | yes,mingw* | yes,pw32*)
  38133. + yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  38134. library_names_spec='$libname.dll.a'
  38135. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  38136. postinstall_cmds='base_file=`basename \${file}`~
  38137. - dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  38138. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  38139. dldir=$destdir/`dirname \$dlpath`~
  38140. test -d \$dldir || mkdir -p \$dldir~
  38141. - $install_prog $dir/$dlname \$dldir/$dlname'
  38142. + $install_prog $dir/$dlname \$dldir/$dlname~
  38143. + chmod a+x \$dldir/$dlname~
  38144. + if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  38145. + eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  38146. + fi'
  38147. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  38148. dlpath=$dir/\$dldll~
  38149. - $rm \$dlpath'
  38150. + $RM \$dlpath'
  38151. shlibpath_overrides_runpath=yes
  38152. case $host_os in
  38153. @@ -17383,20 +9243,20 @@
  38154. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  38155. sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  38156. ;;
  38157. - mingw*)
  38158. + mingw* | cegcc*)
  38159. # MinGW DLLs use traditional 'lib' prefix
  38160. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  38161. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38162. - if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then
  38163. + sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  38164. + if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  38165. # It is most probably a Windows format PATH printed by
  38166. # mingw gcc, but we are running on Cygwin. Gcc prints its search
  38167. # path with ; separators, and with drive letters. We can handle the
  38168. # drive letters (cygwin fileutils understands them), so leave them,
  38169. # especially as we might pass files found there to a mingw objdump,
  38170. # which wouldn't understand a cygwinified path. Ahh.
  38171. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  38172. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  38173. else
  38174. - sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38175. + sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  38176. fi
  38177. ;;
  38178. pw32*)
  38179. @@ -17420,17 +9280,13 @@
  38180. version_type=darwin
  38181. need_lib_prefix=no
  38182. need_version=no
  38183. - library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  38184. + library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  38185. soname_spec='${libname}${release}${major}$shared_ext'
  38186. shlibpath_overrides_runpath=yes
  38187. shlibpath_var=DYLD_LIBRARY_PATH
  38188. - shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  38189. - # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  38190. - if test "$GCC" = yes; then
  38191. - 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"`
  38192. - else
  38193. - sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  38194. - fi
  38195. + shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  38196. +
  38197. + sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  38198. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  38199. ;;
  38200. @@ -17447,22 +9303,17 @@
  38201. dynamic_linker=no
  38202. ;;
  38203. -kfreebsd*-gnu)
  38204. - version_type=linux
  38205. - need_lib_prefix=no
  38206. - need_version=no
  38207. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38208. - soname_spec='${libname}${release}${shared_ext}$major'
  38209. - shlibpath_var=LD_LIBRARY_PATH
  38210. - shlibpath_overrides_runpath=no
  38211. - hardcode_into_libs=yes
  38212. - dynamic_linker='GNU ld.so'
  38213. - ;;
  38214. -
  38215. freebsd* | dragonfly*)
  38216. # DragonFly does not have aout. When/if they implement a new
  38217. # versioning mechanism, adjust this.
  38218. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  38219. + if test -x /usr/bin/objformat; then
  38220. + objformat=`/usr/bin/objformat`
  38221. + else
  38222. + case $host_os in
  38223. + freebsd[123]*) objformat=aout ;;
  38224. + *) objformat=elf ;;
  38225. + esac
  38226. + fi
  38227. version_type=freebsd-$objformat
  38228. case $version_type in
  38229. freebsd-elf*)
  38230. @@ -17484,10 +9335,15 @@
  38231. shlibpath_overrides_runpath=yes
  38232. hardcode_into_libs=yes
  38233. ;;
  38234. - *) # from 3.2 on
  38235. + freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  38236. + freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  38237. shlibpath_overrides_runpath=no
  38238. hardcode_into_libs=yes
  38239. ;;
  38240. + *) # from 4.6 on, and DragonFly
  38241. + shlibpath_overrides_runpath=yes
  38242. + hardcode_into_libs=yes
  38243. + ;;
  38244. esac
  38245. ;;
  38246. @@ -17507,7 +9363,7 @@
  38247. version_type=sunos
  38248. need_lib_prefix=no
  38249. need_version=no
  38250. - case "$host_cpu" in
  38251. + case $host_cpu in
  38252. ia64*)
  38253. shrext_cmds='.so'
  38254. hardcode_into_libs=yes
  38255. @@ -17523,18 +9379,18 @@
  38256. fi
  38257. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  38258. ;;
  38259. - hppa*64*)
  38260. - shrext_cmds='.sl'
  38261. - hardcode_into_libs=yes
  38262. - dynamic_linker="$host_os dld.sl"
  38263. - shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  38264. - shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  38265. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38266. - soname_spec='${libname}${release}${shared_ext}$major'
  38267. - sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  38268. - sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  38269. - ;;
  38270. - *)
  38271. + hppa*64*)
  38272. + shrext_cmds='.sl'
  38273. + hardcode_into_libs=yes
  38274. + dynamic_linker="$host_os dld.sl"
  38275. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  38276. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  38277. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38278. + soname_spec='${libname}${release}${shared_ext}$major'
  38279. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  38280. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  38281. + ;;
  38282. + *)
  38283. shrext_cmds='.sl'
  38284. dynamic_linker="$host_os dld.sl"
  38285. shlibpath_var=SHLIB_PATH
  38286. @@ -17547,6 +9403,18 @@
  38287. postinstall_cmds='chmod 555 $lib'
  38288. ;;
  38289. +interix[3-9]*)
  38290. + version_type=linux
  38291. + need_lib_prefix=no
  38292. + need_version=no
  38293. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  38294. + soname_spec='${libname}${release}${shared_ext}$major'
  38295. + dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  38296. + shlibpath_var=LD_LIBRARY_PATH
  38297. + shlibpath_overrides_runpath=no
  38298. + hardcode_into_libs=yes
  38299. + ;;
  38300. +
  38301. irix5* | irix6* | nonstopux*)
  38302. case $host_os in
  38303. nonstopux*) version_type=nonstopux ;;
  38304. @@ -17590,7 +9458,7 @@
  38305. ;;
  38306. # This must be Linux ELF.
  38307. -linux*)
  38308. +linux* | k*bsd*-gnu | kopensolaris*-gnu)
  38309. version_type=linux
  38310. need_lib_prefix=no
  38311. need_version=no
  38312. @@ -17599,36 +9467,41 @@
  38313. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  38314. shlibpath_var=LD_LIBRARY_PATH
  38315. shlibpath_overrides_runpath=no
  38316. - # This implies no fast_install, which is unacceptable.
  38317. - # Some rework will be needed to allow for fast_install
  38318. - # before this can be enabled.
  38319. - hardcode_into_libs=yes
  38320. + # Some binutils ld are patched to set DT_RUNPATH
  38321. + save_LDFLAGS=$LDFLAGS
  38322. + save_libdir=$libdir
  38323. + eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  38324. + LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  38325. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38326. +/* end confdefs.h. */
  38327. - # find out which ABI we are using
  38328. - libsuff=
  38329. - case "$host_cpu" in
  38330. - x86_64*|s390x*|powerpc64*)
  38331. - echo '#line 17611 "configure"' > conftest.$ac_ext
  38332. - if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  38333. - (eval $ac_compile) 2>&5
  38334. - ac_status=$?
  38335. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38336. - (exit $ac_status); }; then
  38337. - case `/usr/bin/file conftest.$ac_objext` in
  38338. - *64-bit*)
  38339. - libsuff=64
  38340. - sys_lib_search_path_spec="/lib${libsuff} /usr/lib${libsuff} /usr/local/lib${libsuff}"
  38341. - ;;
  38342. - esac
  38343. - fi
  38344. - rm -rf conftest*
  38345. - ;;
  38346. - esac
  38347. +int
  38348. +main ()
  38349. +{
  38350. +
  38351. + ;
  38352. + return 0;
  38353. +}
  38354. +_ACEOF
  38355. +if ac_fn_c_try_link "$LINENO"; then :
  38356. + if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  38357. + shlibpath_overrides_runpath=yes
  38358. +fi
  38359. +fi
  38360. +rm -f core conftest.err conftest.$ac_objext \
  38361. + conftest$ac_exeext conftest.$ac_ext
  38362. + LDFLAGS=$save_LDFLAGS
  38363. + libdir=$save_libdir
  38364. +
  38365. + # This implies no fast_install, which is unacceptable.
  38366. + # Some rework will be needed to allow for fast_install
  38367. + # before this can be enabled.
  38368. + hardcode_into_libs=yes
  38369. # Append ld.so.conf contents to the search path
  38370. if test -f /etc/ld.so.conf; then
  38371. - 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/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  38372. - sys_lib_dlsearch_path_spec="/lib${libsuff} /usr/lib${libsuff} $lt_ld_extra"
  38373. + lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '`
  38374. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  38375. fi
  38376. # We used to test for /lib/ld.so.1 and disable shared libraries on
  38377. @@ -17640,7 +9513,7 @@
  38378. dynamic_linker='GNU/Linux ld.so'
  38379. ;;
  38380. -knetbsd*-gnu)
  38381. +netbsdelf*-gnu)
  38382. version_type=linux
  38383. need_lib_prefix=no
  38384. need_version=no
  38385. @@ -17649,14 +9522,14 @@
  38386. shlibpath_var=LD_LIBRARY_PATH
  38387. shlibpath_overrides_runpath=no
  38388. hardcode_into_libs=yes
  38389. - dynamic_linker='GNU ld.so'
  38390. + dynamic_linker='NetBSD ld.elf_so'
  38391. ;;
  38392. netbsd*)
  38393. version_type=sunos
  38394. need_lib_prefix=no
  38395. need_version=no
  38396. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  38397. + if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  38398. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38399. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  38400. dynamic_linker='NetBSD (a.out) ld.so'
  38401. @@ -17677,24 +9550,31 @@
  38402. shlibpath_overrides_runpath=yes
  38403. ;;
  38404. -nto-qnx*)
  38405. - version_type=linux
  38406. +*nto* | *qnx*)
  38407. + version_type=qnx
  38408. need_lib_prefix=no
  38409. need_version=no
  38410. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38411. soname_spec='${libname}${release}${shared_ext}$major'
  38412. shlibpath_var=LD_LIBRARY_PATH
  38413. - shlibpath_overrides_runpath=yes
  38414. + shlibpath_overrides_runpath=no
  38415. + hardcode_into_libs=yes
  38416. + dynamic_linker='ldqnx.so'
  38417. ;;
  38418. openbsd*)
  38419. version_type=sunos
  38420. + sys_lib_dlsearch_path_spec="/usr/lib"
  38421. need_lib_prefix=no
  38422. - need_version=no
  38423. + # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  38424. + case $host_os in
  38425. + openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  38426. + *) need_version=no ;;
  38427. + esac
  38428. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  38429. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  38430. shlibpath_var=LD_LIBRARY_PATH
  38431. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38432. + if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  38433. case $host_os in
  38434. openbsd2.[89] | openbsd2.[89].*)
  38435. shlibpath_overrides_runpath=no
  38436. @@ -17728,11 +9608,8 @@
  38437. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  38438. ;;
  38439. -sco3.2v5*)
  38440. - version_type=osf
  38441. - soname_spec='${libname}${release}${shared_ext}$major'
  38442. - library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38443. - shlibpath_var=LD_LIBRARY_PATH
  38444. +rdos*)
  38445. + dynamic_linker=no
  38446. ;;
  38447. solaris*)
  38448. @@ -17760,7 +9637,7 @@
  38449. need_version=yes
  38450. ;;
  38451. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  38452. +sysv4 | sysv4.3*)
  38453. version_type=linux
  38454. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38455. soname_spec='${libname}${release}${shared_ext}$major'
  38456. @@ -17769,7 +9646,6 @@
  38457. sni)
  38458. shlibpath_overrides_runpath=no
  38459. need_lib_prefix=no
  38460. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  38461. runpath_var=LD_RUN_PATH
  38462. ;;
  38463. siemens)
  38464. @@ -17793,6 +9669,39 @@
  38465. fi
  38466. ;;
  38467. +sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  38468. + version_type=freebsd-elf
  38469. + need_lib_prefix=no
  38470. + need_version=no
  38471. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  38472. + soname_spec='${libname}${release}${shared_ext}$major'
  38473. + shlibpath_var=LD_LIBRARY_PATH
  38474. + shlibpath_overrides_runpath=yes
  38475. + hardcode_into_libs=yes
  38476. + if test "$with_gnu_ld" = yes; then
  38477. + sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  38478. + else
  38479. + sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  38480. + case $host_os in
  38481. + sco3.2v5*)
  38482. + sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  38483. + ;;
  38484. + esac
  38485. + fi
  38486. + sys_lib_dlsearch_path_spec='/usr/lib'
  38487. + ;;
  38488. +
  38489. +tpf*)
  38490. + # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  38491. + version_type=linux
  38492. + need_lib_prefix=no
  38493. + need_version=no
  38494. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38495. + shlibpath_var=LD_LIBRARY_PATH
  38496. + shlibpath_overrides_runpath=no
  38497. + hardcode_into_libs=yes
  38498. + ;;
  38499. +
  38500. uts4*)
  38501. version_type=linux
  38502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  38503. @@ -17804,39 +9713,138 @@
  38504. dynamic_linker=no
  38505. ;;
  38506. esac
  38507. -echo "$as_me:$LINENO: result: $dynamic_linker" >&5
  38508. -echo "${ECHO_T}$dynamic_linker" >&6
  38509. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  38510. +$as_echo "$dynamic_linker" >&6; }
  38511. test "$dynamic_linker" = no && can_build_shared=no
  38512. -echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5
  38513. -echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6
  38514. -hardcode_action_GCJ=
  38515. -if test -n "$hardcode_libdir_flag_spec_GCJ" || \
  38516. - test -n "$runpath_var_GCJ" || \
  38517. - test "X$hardcode_automatic_GCJ" = "Xyes" ; then
  38518. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  38519. +if test "$GCC" = yes; then
  38520. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  38521. +fi
  38522. +
  38523. +if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  38524. + sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  38525. +fi
  38526. +if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  38527. + sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  38528. +fi
  38529. +
  38530. +
  38531. +
  38532. +
  38533. +
  38534. +
  38535. +
  38536. +
  38537. +
  38538. +
  38539. +
  38540. +
  38541. +
  38542. +
  38543. +
  38544. +
  38545. +
  38546. +
  38547. +
  38548. +
  38549. +
  38550. +
  38551. +
  38552. +
  38553. +
  38554. +
  38555. +
  38556. +
  38557. +
  38558. +
  38559. +
  38560. +
  38561. +
  38562. +
  38563. +
  38564. +
  38565. +
  38566. +
  38567. +
  38568. +
  38569. +
  38570. +
  38571. +
  38572. +
  38573. +
  38574. +
  38575. +
  38576. +
  38577. +
  38578. +
  38579. +
  38580. +
  38581. +
  38582. +
  38583. +
  38584. +
  38585. +
  38586. +
  38587. +
  38588. +
  38589. +
  38590. +
  38591. +
  38592. +
  38593. +
  38594. +
  38595. +
  38596. +
  38597. +
  38598. +
  38599. +
  38600. +
  38601. +
  38602. +
  38603. +
  38604. +
  38605. +
  38606. +
  38607. +
  38608. - # We can hardcode non-existant directories.
  38609. - if test "$hardcode_direct_GCJ" != no &&
  38610. +
  38611. +
  38612. +
  38613. +
  38614. +
  38615. +
  38616. +
  38617. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  38618. +$as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  38619. +hardcode_action=
  38620. +if test -n "$hardcode_libdir_flag_spec" ||
  38621. + test -n "$runpath_var" ||
  38622. + test "X$hardcode_automatic" = "Xyes" ; then
  38623. +
  38624. + # We can hardcode non-existent directories.
  38625. + if test "$hardcode_direct" != no &&
  38626. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  38627. # have to relink, otherwise we might link with an installed library
  38628. # when we should be linking with a yet-to-be-installed one
  38629. - ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no &&
  38630. - test "$hardcode_minus_L_GCJ" != no; then
  38631. + ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  38632. + test "$hardcode_minus_L" != no; then
  38633. # Linking always hardcodes the temporary library directory.
  38634. - hardcode_action_GCJ=relink
  38635. + hardcode_action=relink
  38636. else
  38637. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  38638. - hardcode_action_GCJ=immediate
  38639. + hardcode_action=immediate
  38640. fi
  38641. else
  38642. # We cannot hardcode anything, or else we can only hardcode existing
  38643. # directories.
  38644. - hardcode_action_GCJ=unsupported
  38645. + hardcode_action=unsupported
  38646. fi
  38647. -echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5
  38648. -echo "${ECHO_T}$hardcode_action_GCJ" >&6
  38649. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  38650. +$as_echo "$hardcode_action" >&6; }
  38651. -if test "$hardcode_action_GCJ" = relink; then
  38652. +if test "$hardcode_action" = relink ||
  38653. + test "$inherit_rpath" = yes; then
  38654. # Fast installation is not supported
  38655. enable_fast_install=no
  38656. elif test "$shlibpath_overrides_runpath" = yes ||
  38657. @@ -17845,36 +9853,12 @@
  38658. enable_fast_install=needless
  38659. fi
  38660. -striplib=
  38661. -old_striplib=
  38662. -echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5
  38663. -echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6
  38664. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  38665. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  38666. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  38667. - echo "$as_me:$LINENO: result: yes" >&5
  38668. -echo "${ECHO_T}yes" >&6
  38669. -else
  38670. -# FIXME - insert some real tests, host_os isn't really good enough
  38671. - case $host_os in
  38672. - darwin*)
  38673. - if test -n "$STRIP" ; then
  38674. - striplib="$STRIP -x"
  38675. - echo "$as_me:$LINENO: result: yes" >&5
  38676. -echo "${ECHO_T}yes" >&6
  38677. - else
  38678. - echo "$as_me:$LINENO: result: no" >&5
  38679. -echo "${ECHO_T}no" >&6
  38680. -fi
  38681. - ;;
  38682. - *)
  38683. - echo "$as_me:$LINENO: result: no" >&5
  38684. -echo "${ECHO_T}no" >&6
  38685. - ;;
  38686. - esac
  38687. -fi
  38688. -if test "x$enable_dlopen" != xyes; then
  38689. +
  38690. +
  38691. +
  38692. +
  38693. + if test "x$enable_dlopen" != xyes; then
  38694. enable_dlopen=unknown
  38695. enable_dlopen_self=unknown
  38696. enable_dlopen_self_static=unknown
  38697. @@ -17889,83 +9873,55 @@
  38698. lt_cv_dlopen_self=yes
  38699. ;;
  38700. - mingw* | pw32*)
  38701. + mingw* | pw32* | cegcc*)
  38702. lt_cv_dlopen="LoadLibrary"
  38703. lt_cv_dlopen_libs=
  38704. - ;;
  38705. + ;;
  38706. cygwin*)
  38707. lt_cv_dlopen="dlopen"
  38708. lt_cv_dlopen_libs=
  38709. - ;;
  38710. + ;;
  38711. darwin*)
  38712. # if libdl is installed we need to link against it
  38713. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  38714. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  38715. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  38716. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38717. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  38718. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  38719. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  38720. + $as_echo_n "(cached) " >&6
  38721. else
  38722. ac_check_lib_save_LIBS=$LIBS
  38723. LIBS="-ldl $LIBS"
  38724. -cat >conftest.$ac_ext <<_ACEOF
  38725. -/* confdefs.h. */
  38726. -_ACEOF
  38727. -cat confdefs.h >>conftest.$ac_ext
  38728. -cat >>conftest.$ac_ext <<_ACEOF
  38729. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  38730. /* end confdefs.h. */
  38731. -/* Override any gcc2 internal prototype to avoid an error. */
  38732. +/* Override any GCC internal prototype to avoid an error.
  38733. + Use char because int might match the return type of a GCC
  38734. + builtin and then its argument prototype would still apply. */
  38735. #ifdef __cplusplus
  38736. extern "C"
  38737. #endif
  38738. -/* We use char because int might match the return type of a gcc2
  38739. - builtin and then its argument prototype would still apply. */
  38740. char dlopen ();
  38741. int
  38742. main ()
  38743. {
  38744. -dlopen ();
  38745. +return dlopen ();
  38746. ;
  38747. return 0;
  38748. }
  38749. _ACEOF
  38750. -rm -f conftest.$ac_objext conftest$ac_exeext
  38751. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38752. - (eval $ac_link) 2>conftest.er1
  38753. - ac_status=$?
  38754. - grep -v '^ *+' conftest.er1 >conftest.err
  38755. - rm -f conftest.er1
  38756. - cat conftest.err >&5
  38757. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38758. - (exit $ac_status); } &&
  38759. - { ac_try='test -z "$ac_c_werror_flag"
  38760. - || test ! -s conftest.err'
  38761. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38762. - (eval $ac_try) 2>&5
  38763. - ac_status=$?
  38764. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38765. - (exit $ac_status); }; } &&
  38766. - { ac_try='test -s conftest$ac_exeext'
  38767. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38768. - (eval $ac_try) 2>&5
  38769. - ac_status=$?
  38770. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38771. - (exit $ac_status); }; }; then
  38772. +if ac_fn_c_try_link "$LINENO"; then :
  38773. ac_cv_lib_dl_dlopen=yes
  38774. else
  38775. - echo "$as_me: failed program was:" >&5
  38776. -sed 's/^/| /' conftest.$ac_ext >&5
  38777. -
  38778. -ac_cv_lib_dl_dlopen=no
  38779. + ac_cv_lib_dl_dlopen=no
  38780. fi
  38781. -rm -f conftest.err conftest.$ac_objext \
  38782. - conftest$ac_exeext conftest.$ac_ext
  38783. +rm -f core conftest.err conftest.$ac_objext \
  38784. + conftest$ac_exeext conftest.$ac_ext
  38785. LIBS=$ac_check_lib_save_LIBS
  38786. fi
  38787. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  38788. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  38789. -if test $ac_cv_lib_dl_dlopen = yes; then
  38790. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  38791. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  38792. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  38793. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  38794. else
  38795. @@ -17973,464 +9929,174 @@
  38796. lt_cv_dlopen_libs=
  38797. lt_cv_dlopen_self=yes
  38798. -fi
  38799. -
  38800. - ;;
  38801. -
  38802. - *)
  38803. - echo "$as_me:$LINENO: checking for shl_load" >&5
  38804. -echo $ECHO_N "checking for shl_load... $ECHO_C" >&6
  38805. -if test "${ac_cv_func_shl_load+set}" = set; then
  38806. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38807. -else
  38808. - cat >conftest.$ac_ext <<_ACEOF
  38809. -/* confdefs.h. */
  38810. -_ACEOF
  38811. -cat confdefs.h >>conftest.$ac_ext
  38812. -cat >>conftest.$ac_ext <<_ACEOF
  38813. -/* end confdefs.h. */
  38814. -/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  38815. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38816. -#define shl_load innocuous_shl_load
  38817. -
  38818. -/* System header to define __stub macros and hopefully few prototypes,
  38819. - which can conflict with char shl_load (); below.
  38820. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38821. - <limits.h> exists even on freestanding compilers. */
  38822. -
  38823. -#ifdef __STDC__
  38824. -# include <limits.h>
  38825. -#else
  38826. -# include <assert.h>
  38827. -#endif
  38828. -
  38829. -#undef shl_load
  38830. -
  38831. -/* Override any gcc2 internal prototype to avoid an error. */
  38832. -#ifdef __cplusplus
  38833. -extern "C"
  38834. -{
  38835. -#endif
  38836. -/* We use char because int might match the return type of a gcc2
  38837. - builtin and then its argument prototype would still apply. */
  38838. -char shl_load ();
  38839. -/* The GNU C library defines this for functions which it implements
  38840. - to always fail with ENOSYS. Some functions are actually named
  38841. - something starting with __ and the normal name is an alias. */
  38842. -#if defined (__stub_shl_load) || defined (__stub___shl_load)
  38843. -choke me
  38844. -#else
  38845. -char (*f) () = shl_load;
  38846. -#endif
  38847. -#ifdef __cplusplus
  38848. -}
  38849. -#endif
  38850. -
  38851. -int
  38852. -main ()
  38853. -{
  38854. -return f != shl_load;
  38855. - ;
  38856. - return 0;
  38857. -}
  38858. -_ACEOF
  38859. -rm -f conftest.$ac_objext conftest$ac_exeext
  38860. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38861. - (eval $ac_link) 2>conftest.er1
  38862. - ac_status=$?
  38863. - grep -v '^ *+' conftest.er1 >conftest.err
  38864. - rm -f conftest.er1
  38865. - cat conftest.err >&5
  38866. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38867. - (exit $ac_status); } &&
  38868. - { ac_try='test -z "$ac_c_werror_flag"
  38869. - || test ! -s conftest.err'
  38870. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38871. - (eval $ac_try) 2>&5
  38872. - ac_status=$?
  38873. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38874. - (exit $ac_status); }; } &&
  38875. - { ac_try='test -s conftest$ac_exeext'
  38876. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38877. - (eval $ac_try) 2>&5
  38878. - ac_status=$?
  38879. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38880. - (exit $ac_status); }; }; then
  38881. - ac_cv_func_shl_load=yes
  38882. -else
  38883. - echo "$as_me: failed program was:" >&5
  38884. -sed 's/^/| /' conftest.$ac_ext >&5
  38885. -
  38886. -ac_cv_func_shl_load=no
  38887. -fi
  38888. -rm -f conftest.err conftest.$ac_objext \
  38889. - conftest$ac_exeext conftest.$ac_ext
  38890. -fi
  38891. -echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  38892. -echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  38893. -if test $ac_cv_func_shl_load = yes; then
  38894. - lt_cv_dlopen="shl_load"
  38895. -else
  38896. - echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5
  38897. -echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6
  38898. -if test "${ac_cv_lib_dld_shl_load+set}" = set; then
  38899. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38900. -else
  38901. - ac_check_lib_save_LIBS=$LIBS
  38902. -LIBS="-ldld $LIBS"
  38903. -cat >conftest.$ac_ext <<_ACEOF
  38904. -/* confdefs.h. */
  38905. -_ACEOF
  38906. -cat confdefs.h >>conftest.$ac_ext
  38907. -cat >>conftest.$ac_ext <<_ACEOF
  38908. -/* end confdefs.h. */
  38909. -
  38910. -/* Override any gcc2 internal prototype to avoid an error. */
  38911. -#ifdef __cplusplus
  38912. -extern "C"
  38913. -#endif
  38914. -/* We use char because int might match the return type of a gcc2
  38915. - builtin and then its argument prototype would still apply. */
  38916. -char shl_load ();
  38917. -int
  38918. -main ()
  38919. -{
  38920. -shl_load ();
  38921. - ;
  38922. - return 0;
  38923. -}
  38924. -_ACEOF
  38925. -rm -f conftest.$ac_objext conftest$ac_exeext
  38926. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  38927. - (eval $ac_link) 2>conftest.er1
  38928. - ac_status=$?
  38929. - grep -v '^ *+' conftest.er1 >conftest.err
  38930. - rm -f conftest.er1
  38931. - cat conftest.err >&5
  38932. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38933. - (exit $ac_status); } &&
  38934. - { ac_try='test -z "$ac_c_werror_flag"
  38935. - || test ! -s conftest.err'
  38936. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38937. - (eval $ac_try) 2>&5
  38938. - ac_status=$?
  38939. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38940. - (exit $ac_status); }; } &&
  38941. - { ac_try='test -s conftest$ac_exeext'
  38942. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  38943. - (eval $ac_try) 2>&5
  38944. - ac_status=$?
  38945. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  38946. - (exit $ac_status); }; }; then
  38947. - ac_cv_lib_dld_shl_load=yes
  38948. -else
  38949. - echo "$as_me: failed program was:" >&5
  38950. -sed 's/^/| /' conftest.$ac_ext >&5
  38951. -
  38952. -ac_cv_lib_dld_shl_load=no
  38953. -fi
  38954. -rm -f conftest.err conftest.$ac_objext \
  38955. - conftest$ac_exeext conftest.$ac_ext
  38956. -LIBS=$ac_check_lib_save_LIBS
  38957. -fi
  38958. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  38959. -echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6
  38960. -if test $ac_cv_lib_dld_shl_load = yes; then
  38961. - lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"
  38962. -else
  38963. - echo "$as_me:$LINENO: checking for dlopen" >&5
  38964. -echo $ECHO_N "checking for dlopen... $ECHO_C" >&6
  38965. -if test "${ac_cv_func_dlopen+set}" = set; then
  38966. - echo $ECHO_N "(cached) $ECHO_C" >&6
  38967. -else
  38968. - cat >conftest.$ac_ext <<_ACEOF
  38969. -/* confdefs.h. */
  38970. -_ACEOF
  38971. -cat confdefs.h >>conftest.$ac_ext
  38972. -cat >>conftest.$ac_ext <<_ACEOF
  38973. -/* end confdefs.h. */
  38974. -/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  38975. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  38976. -#define dlopen innocuous_dlopen
  38977. -
  38978. -/* System header to define __stub macros and hopefully few prototypes,
  38979. - which can conflict with char dlopen (); below.
  38980. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  38981. - <limits.h> exists even on freestanding compilers. */
  38982. +fi
  38983. -#ifdef __STDC__
  38984. -# include <limits.h>
  38985. -#else
  38986. -# include <assert.h>
  38987. -#endif
  38988. + ;;
  38989. -#undef dlopen
  38990. + *)
  38991. + ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  38992. +if test "x$ac_cv_func_shl_load" = x""yes; then :
  38993. + lt_cv_dlopen="shl_load"
  38994. +else
  38995. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  38996. +$as_echo_n "checking for shl_load in -ldld... " >&6; }
  38997. +if test "${ac_cv_lib_dld_shl_load+set}" = set; then :
  38998. + $as_echo_n "(cached) " >&6
  38999. +else
  39000. + ac_check_lib_save_LIBS=$LIBS
  39001. +LIBS="-ldld $LIBS"
  39002. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39003. +/* end confdefs.h. */
  39004. -/* Override any gcc2 internal prototype to avoid an error. */
  39005. -#ifdef __cplusplus
  39006. -extern "C"
  39007. -{
  39008. -#endif
  39009. -/* We use char because int might match the return type of a gcc2
  39010. +/* Override any GCC internal prototype to avoid an error.
  39011. + Use char because int might match the return type of a GCC
  39012. builtin and then its argument prototype would still apply. */
  39013. -char dlopen ();
  39014. -/* The GNU C library defines this for functions which it implements
  39015. - to always fail with ENOSYS. Some functions are actually named
  39016. - something starting with __ and the normal name is an alias. */
  39017. -#if defined (__stub_dlopen) || defined (__stub___dlopen)
  39018. -choke me
  39019. -#else
  39020. -char (*f) () = dlopen;
  39021. -#endif
  39022. #ifdef __cplusplus
  39023. -}
  39024. +extern "C"
  39025. #endif
  39026. -
  39027. +char shl_load ();
  39028. int
  39029. main ()
  39030. {
  39031. -return f != dlopen;
  39032. +return shl_load ();
  39033. ;
  39034. return 0;
  39035. }
  39036. _ACEOF
  39037. -rm -f conftest.$ac_objext conftest$ac_exeext
  39038. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39039. - (eval $ac_link) 2>conftest.er1
  39040. - ac_status=$?
  39041. - grep -v '^ *+' conftest.er1 >conftest.err
  39042. - rm -f conftest.er1
  39043. - cat conftest.err >&5
  39044. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39045. - (exit $ac_status); } &&
  39046. - { ac_try='test -z "$ac_c_werror_flag"
  39047. - || test ! -s conftest.err'
  39048. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39049. - (eval $ac_try) 2>&5
  39050. - ac_status=$?
  39051. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39052. - (exit $ac_status); }; } &&
  39053. - { ac_try='test -s conftest$ac_exeext'
  39054. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39055. - (eval $ac_try) 2>&5
  39056. - ac_status=$?
  39057. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39058. - (exit $ac_status); }; }; then
  39059. - ac_cv_func_dlopen=yes
  39060. +if ac_fn_c_try_link "$LINENO"; then :
  39061. + ac_cv_lib_dld_shl_load=yes
  39062. else
  39063. - echo "$as_me: failed program was:" >&5
  39064. -sed 's/^/| /' conftest.$ac_ext >&5
  39065. -
  39066. -ac_cv_func_dlopen=no
  39067. + ac_cv_lib_dld_shl_load=no
  39068. fi
  39069. -rm -f conftest.err conftest.$ac_objext \
  39070. - conftest$ac_exeext conftest.$ac_ext
  39071. +rm -f core conftest.err conftest.$ac_objext \
  39072. + conftest$ac_exeext conftest.$ac_ext
  39073. +LIBS=$ac_check_lib_save_LIBS
  39074. fi
  39075. -echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  39076. -echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  39077. -if test $ac_cv_func_dlopen = yes; then
  39078. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  39079. +$as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  39080. +if test "x$ac_cv_lib_dld_shl_load" = x""yes; then :
  39081. + lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  39082. +else
  39083. + ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  39084. +if test "x$ac_cv_func_dlopen" = x""yes; then :
  39085. lt_cv_dlopen="dlopen"
  39086. else
  39087. - echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
  39088. -echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
  39089. -if test "${ac_cv_lib_dl_dlopen+set}" = set; then
  39090. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39091. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  39092. +$as_echo_n "checking for dlopen in -ldl... " >&6; }
  39093. +if test "${ac_cv_lib_dl_dlopen+set}" = set; then :
  39094. + $as_echo_n "(cached) " >&6
  39095. else
  39096. ac_check_lib_save_LIBS=$LIBS
  39097. LIBS="-ldl $LIBS"
  39098. -cat >conftest.$ac_ext <<_ACEOF
  39099. -/* confdefs.h. */
  39100. -_ACEOF
  39101. -cat confdefs.h >>conftest.$ac_ext
  39102. -cat >>conftest.$ac_ext <<_ACEOF
  39103. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39104. /* end confdefs.h. */
  39105. -/* Override any gcc2 internal prototype to avoid an error. */
  39106. +/* Override any GCC internal prototype to avoid an error.
  39107. + Use char because int might match the return type of a GCC
  39108. + builtin and then its argument prototype would still apply. */
  39109. #ifdef __cplusplus
  39110. extern "C"
  39111. #endif
  39112. -/* We use char because int might match the return type of a gcc2
  39113. - builtin and then its argument prototype would still apply. */
  39114. char dlopen ();
  39115. int
  39116. main ()
  39117. {
  39118. -dlopen ();
  39119. +return dlopen ();
  39120. ;
  39121. return 0;
  39122. }
  39123. _ACEOF
  39124. -rm -f conftest.$ac_objext conftest$ac_exeext
  39125. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39126. - (eval $ac_link) 2>conftest.er1
  39127. - ac_status=$?
  39128. - grep -v '^ *+' conftest.er1 >conftest.err
  39129. - rm -f conftest.er1
  39130. - cat conftest.err >&5
  39131. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39132. - (exit $ac_status); } &&
  39133. - { ac_try='test -z "$ac_c_werror_flag"
  39134. - || test ! -s conftest.err'
  39135. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39136. - (eval $ac_try) 2>&5
  39137. - ac_status=$?
  39138. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39139. - (exit $ac_status); }; } &&
  39140. - { ac_try='test -s conftest$ac_exeext'
  39141. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39142. - (eval $ac_try) 2>&5
  39143. - ac_status=$?
  39144. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39145. - (exit $ac_status); }; }; then
  39146. +if ac_fn_c_try_link "$LINENO"; then :
  39147. ac_cv_lib_dl_dlopen=yes
  39148. else
  39149. - echo "$as_me: failed program was:" >&5
  39150. -sed 's/^/| /' conftest.$ac_ext >&5
  39151. -
  39152. -ac_cv_lib_dl_dlopen=no
  39153. + ac_cv_lib_dl_dlopen=no
  39154. fi
  39155. -rm -f conftest.err conftest.$ac_objext \
  39156. - conftest$ac_exeext conftest.$ac_ext
  39157. +rm -f core conftest.err conftest.$ac_objext \
  39158. + conftest$ac_exeext conftest.$ac_ext
  39159. LIBS=$ac_check_lib_save_LIBS
  39160. fi
  39161. -echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  39162. -echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
  39163. -if test $ac_cv_lib_dl_dlopen = yes; then
  39164. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  39165. +$as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  39166. +if test "x$ac_cv_lib_dl_dlopen" = x""yes; then :
  39167. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  39168. else
  39169. - echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5
  39170. -echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6
  39171. -if test "${ac_cv_lib_svld_dlopen+set}" = set; then
  39172. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39173. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  39174. +$as_echo_n "checking for dlopen in -lsvld... " >&6; }
  39175. +if test "${ac_cv_lib_svld_dlopen+set}" = set; then :
  39176. + $as_echo_n "(cached) " >&6
  39177. else
  39178. ac_check_lib_save_LIBS=$LIBS
  39179. LIBS="-lsvld $LIBS"
  39180. -cat >conftest.$ac_ext <<_ACEOF
  39181. -/* confdefs.h. */
  39182. -_ACEOF
  39183. -cat confdefs.h >>conftest.$ac_ext
  39184. -cat >>conftest.$ac_ext <<_ACEOF
  39185. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39186. /* end confdefs.h. */
  39187. -/* Override any gcc2 internal prototype to avoid an error. */
  39188. +/* Override any GCC internal prototype to avoid an error.
  39189. + Use char because int might match the return type of a GCC
  39190. + builtin and then its argument prototype would still apply. */
  39191. #ifdef __cplusplus
  39192. extern "C"
  39193. #endif
  39194. -/* We use char because int might match the return type of a gcc2
  39195. - builtin and then its argument prototype would still apply. */
  39196. char dlopen ();
  39197. int
  39198. main ()
  39199. {
  39200. -dlopen ();
  39201. +return dlopen ();
  39202. ;
  39203. return 0;
  39204. }
  39205. _ACEOF
  39206. -rm -f conftest.$ac_objext conftest$ac_exeext
  39207. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39208. - (eval $ac_link) 2>conftest.er1
  39209. - ac_status=$?
  39210. - grep -v '^ *+' conftest.er1 >conftest.err
  39211. - rm -f conftest.er1
  39212. - cat conftest.err >&5
  39213. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39214. - (exit $ac_status); } &&
  39215. - { ac_try='test -z "$ac_c_werror_flag"
  39216. - || test ! -s conftest.err'
  39217. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39218. - (eval $ac_try) 2>&5
  39219. - ac_status=$?
  39220. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39221. - (exit $ac_status); }; } &&
  39222. - { ac_try='test -s conftest$ac_exeext'
  39223. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39224. - (eval $ac_try) 2>&5
  39225. - ac_status=$?
  39226. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39227. - (exit $ac_status); }; }; then
  39228. +if ac_fn_c_try_link "$LINENO"; then :
  39229. ac_cv_lib_svld_dlopen=yes
  39230. else
  39231. - echo "$as_me: failed program was:" >&5
  39232. -sed 's/^/| /' conftest.$ac_ext >&5
  39233. -
  39234. -ac_cv_lib_svld_dlopen=no
  39235. + ac_cv_lib_svld_dlopen=no
  39236. fi
  39237. -rm -f conftest.err conftest.$ac_objext \
  39238. - conftest$ac_exeext conftest.$ac_ext
  39239. +rm -f core conftest.err conftest.$ac_objext \
  39240. + conftest$ac_exeext conftest.$ac_ext
  39241. LIBS=$ac_check_lib_save_LIBS
  39242. fi
  39243. -echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  39244. -echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6
  39245. -if test $ac_cv_lib_svld_dlopen = yes; then
  39246. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  39247. +$as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  39248. +if test "x$ac_cv_lib_svld_dlopen" = x""yes; then :
  39249. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  39250. else
  39251. - echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5
  39252. -echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6
  39253. -if test "${ac_cv_lib_dld_dld_link+set}" = set; then
  39254. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39255. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  39256. +$as_echo_n "checking for dld_link in -ldld... " >&6; }
  39257. +if test "${ac_cv_lib_dld_dld_link+set}" = set; then :
  39258. + $as_echo_n "(cached) " >&6
  39259. else
  39260. ac_check_lib_save_LIBS=$LIBS
  39261. LIBS="-ldld $LIBS"
  39262. -cat >conftest.$ac_ext <<_ACEOF
  39263. -/* confdefs.h. */
  39264. -_ACEOF
  39265. -cat confdefs.h >>conftest.$ac_ext
  39266. -cat >>conftest.$ac_ext <<_ACEOF
  39267. +cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  39268. /* end confdefs.h. */
  39269. -/* Override any gcc2 internal prototype to avoid an error. */
  39270. +/* Override any GCC internal prototype to avoid an error.
  39271. + Use char because int might match the return type of a GCC
  39272. + builtin and then its argument prototype would still apply. */
  39273. #ifdef __cplusplus
  39274. extern "C"
  39275. #endif
  39276. -/* We use char because int might match the return type of a gcc2
  39277. - builtin and then its argument prototype would still apply. */
  39278. char dld_link ();
  39279. int
  39280. main ()
  39281. {
  39282. -dld_link ();
  39283. +return dld_link ();
  39284. ;
  39285. return 0;
  39286. }
  39287. _ACEOF
  39288. -rm -f conftest.$ac_objext conftest$ac_exeext
  39289. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39290. - (eval $ac_link) 2>conftest.er1
  39291. - ac_status=$?
  39292. - grep -v '^ *+' conftest.er1 >conftest.err
  39293. - rm -f conftest.er1
  39294. - cat conftest.err >&5
  39295. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39296. - (exit $ac_status); } &&
  39297. - { ac_try='test -z "$ac_c_werror_flag"
  39298. - || test ! -s conftest.err'
  39299. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39300. - (eval $ac_try) 2>&5
  39301. - ac_status=$?
  39302. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39303. - (exit $ac_status); }; } &&
  39304. - { ac_try='test -s conftest$ac_exeext'
  39305. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  39306. - (eval $ac_try) 2>&5
  39307. - ac_status=$?
  39308. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39309. - (exit $ac_status); }; }; then
  39310. +if ac_fn_c_try_link "$LINENO"; then :
  39311. ac_cv_lib_dld_dld_link=yes
  39312. else
  39313. - echo "$as_me: failed program was:" >&5
  39314. -sed 's/^/| /' conftest.$ac_ext >&5
  39315. -
  39316. -ac_cv_lib_dld_dld_link=no
  39317. + ac_cv_lib_dld_dld_link=no
  39318. fi
  39319. -rm -f conftest.err conftest.$ac_objext \
  39320. - conftest$ac_exeext conftest.$ac_ext
  39321. +rm -f core conftest.err conftest.$ac_objext \
  39322. + conftest$ac_exeext conftest.$ac_ext
  39323. LIBS=$ac_check_lib_save_LIBS
  39324. fi
  39325. -echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  39326. -echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6
  39327. -if test $ac_cv_lib_dld_dld_link = yes; then
  39328. - lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"
  39329. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  39330. +$as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  39331. +if test "x$ac_cv_lib_dld_dld_link" = x""yes; then :
  39332. + lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  39333. fi
  39334. @@ -18463,23 +10129,23 @@
  39335. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  39336. save_LDFLAGS="$LDFLAGS"
  39337. - eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  39338. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  39339. save_LIBS="$LIBS"
  39340. LIBS="$lt_cv_dlopen_libs $LIBS"
  39341. - echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5
  39342. -echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6
  39343. -if test "${lt_cv_dlopen_self+set}" = set; then
  39344. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39345. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  39346. +$as_echo_n "checking whether a program can dlopen itself... " >&6; }
  39347. +if test "${lt_cv_dlopen_self+set}" = set; then :
  39348. + $as_echo_n "(cached) " >&6
  39349. else
  39350. if test "$cross_compiling" = yes; then :
  39351. lt_cv_dlopen_self=cross
  39352. else
  39353. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  39354. lt_status=$lt_dlunknown
  39355. - cat > conftest.$ac_ext <<EOF
  39356. -#line 18482 "configure"
  39357. + cat > conftest.$ac_ext <<_LT_EOF
  39358. +#line 10148 "configure"
  39359. #include "confdefs.h"
  39360. #if HAVE_DLFCN_H
  39361. @@ -18520,10 +10186,6 @@
  39362. # endif
  39363. #endif
  39364. -#ifdef __cplusplus
  39365. -extern "C" void exit (int);
  39366. -#endif
  39367. -
  39368. void fnord() { int i=42;}
  39369. int main ()
  39370. {
  39371. @@ -18536,21 +10198,23 @@
  39372. else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  39373. /* dlclose (self); */
  39374. }
  39375. + else
  39376. + puts (dlerror ());
  39377. - exit (status);
  39378. + return status;
  39379. }
  39380. -EOF
  39381. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39382. +_LT_EOF
  39383. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  39384. (eval $ac_link) 2>&5
  39385. ac_status=$?
  39386. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39387. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  39388. - (./conftest; exit; ) 2>/dev/null
  39389. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  39390. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  39391. + (./conftest; exit; ) >&5 2>/dev/null
  39392. lt_status=$?
  39393. case x$lt_status in
  39394. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  39395. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  39396. - x$lt_unknown|x*) lt_cv_dlopen_self=no ;;
  39397. + x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  39398. esac
  39399. else :
  39400. # compilation failed
  39401. @@ -18561,23 +10225,23 @@
  39402. fi
  39403. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5
  39404. -echo "${ECHO_T}$lt_cv_dlopen_self" >&6
  39405. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  39406. +$as_echo "$lt_cv_dlopen_self" >&6; }
  39407. if test "x$lt_cv_dlopen_self" = xyes; then
  39408. - LDFLAGS="$LDFLAGS $link_static_flag"
  39409. - echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5
  39410. -echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6
  39411. -if test "${lt_cv_dlopen_self_static+set}" = set; then
  39412. - echo $ECHO_N "(cached) $ECHO_C" >&6
  39413. + wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  39414. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  39415. +$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  39416. +if test "${lt_cv_dlopen_self_static+set}" = set; then :
  39417. + $as_echo_n "(cached) " >&6
  39418. else
  39419. if test "$cross_compiling" = yes; then :
  39420. lt_cv_dlopen_self_static=cross
  39421. else
  39422. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  39423. lt_status=$lt_dlunknown
  39424. - cat > conftest.$ac_ext <<EOF
  39425. -#line 18580 "configure"
  39426. + cat > conftest.$ac_ext <<_LT_EOF
  39427. +#line 10244 "configure"
  39428. #include "confdefs.h"
  39429. #if HAVE_DLFCN_H
  39430. @@ -18592,500 +10256,190 @@
  39431. # ifdef DL_GLOBAL
  39432. # define LT_DLGLOBAL DL_GLOBAL
  39433. # else
  39434. -# define LT_DLGLOBAL 0
  39435. -# endif
  39436. -#endif
  39437. -
  39438. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  39439. - find out it does not work in some platform. */
  39440. -#ifndef LT_DLLAZY_OR_NOW
  39441. -# ifdef RTLD_LAZY
  39442. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  39443. -# else
  39444. -# ifdef DL_LAZY
  39445. -# define LT_DLLAZY_OR_NOW DL_LAZY
  39446. -# else
  39447. -# ifdef RTLD_NOW
  39448. -# define LT_DLLAZY_OR_NOW RTLD_NOW
  39449. -# else
  39450. -# ifdef DL_NOW
  39451. -# define LT_DLLAZY_OR_NOW DL_NOW
  39452. -# else
  39453. -# define LT_DLLAZY_OR_NOW 0
  39454. -# endif
  39455. -# endif
  39456. -# endif
  39457. -# endif
  39458. -#endif
  39459. -
  39460. -#ifdef __cplusplus
  39461. -extern "C" void exit (int);
  39462. -#endif
  39463. -
  39464. -void fnord() { int i=42;}
  39465. -int main ()
  39466. -{
  39467. - void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  39468. - int status = $lt_dlunknown;
  39469. -
  39470. - if (self)
  39471. - {
  39472. - if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  39473. - else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  39474. - /* dlclose (self); */
  39475. - }
  39476. -
  39477. - exit (status);
  39478. -}
  39479. -EOF
  39480. - if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  39481. - (eval $ac_link) 2>&5
  39482. - ac_status=$?
  39483. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  39484. - (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then
  39485. - (./conftest; exit; ) 2>/dev/null
  39486. - lt_status=$?
  39487. - case x$lt_status in
  39488. - x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  39489. - x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  39490. - x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;;
  39491. - esac
  39492. - else :
  39493. - # compilation failed
  39494. - lt_cv_dlopen_self_static=no
  39495. - fi
  39496. -fi
  39497. -rm -fr conftest*
  39498. -
  39499. -
  39500. -fi
  39501. -echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5
  39502. -echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6
  39503. - fi
  39504. -
  39505. - CPPFLAGS="$save_CPPFLAGS"
  39506. - LDFLAGS="$save_LDFLAGS"
  39507. - LIBS="$save_LIBS"
  39508. - ;;
  39509. - esac
  39510. -
  39511. - case $lt_cv_dlopen_self in
  39512. - yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  39513. - *) enable_dlopen_self=unknown ;;
  39514. - esac
  39515. -
  39516. - case $lt_cv_dlopen_self_static in
  39517. - yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  39518. - *) enable_dlopen_self_static=unknown ;;
  39519. - esac
  39520. -fi
  39521. -
  39522. -
  39523. -# The else clause should only fire when bootstrapping the
  39524. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  39525. -# with your package, and you will get complaints that there are
  39526. -# no rules to generate ltmain.sh.
  39527. -if test -f "$ltmain"; then
  39528. - # See if we are running on zsh, and set the options which allow our commands through
  39529. - # without removal of \ escapes.
  39530. - if test -n "${ZSH_VERSION+set}" ; then
  39531. - setopt NO_GLOB_SUBST
  39532. - fi
  39533. - # Now quote all the things that may contain metacharacters while being
  39534. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  39535. - # variables and quote the copies for generation of the libtool script.
  39536. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  39537. - SED SHELL STRIP \
  39538. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  39539. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  39540. - deplibs_check_method reload_flag reload_cmds need_locks \
  39541. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  39542. - lt_cv_sys_global_symbol_to_c_name_address \
  39543. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  39544. - old_postinstall_cmds old_postuninstall_cmds \
  39545. - compiler_GCJ \
  39546. - CC_GCJ \
  39547. - LD_GCJ \
  39548. - lt_prog_compiler_wl_GCJ \
  39549. - lt_prog_compiler_pic_GCJ \
  39550. - lt_prog_compiler_static_GCJ \
  39551. - lt_prog_compiler_no_builtin_flag_GCJ \
  39552. - export_dynamic_flag_spec_GCJ \
  39553. - thread_safe_flag_spec_GCJ \
  39554. - whole_archive_flag_spec_GCJ \
  39555. - enable_shared_with_static_runtimes_GCJ \
  39556. - old_archive_cmds_GCJ \
  39557. - old_archive_from_new_cmds_GCJ \
  39558. - predep_objects_GCJ \
  39559. - postdep_objects_GCJ \
  39560. - predeps_GCJ \
  39561. - postdeps_GCJ \
  39562. - compiler_lib_search_path_GCJ \
  39563. - archive_cmds_GCJ \
  39564. - archive_expsym_cmds_GCJ \
  39565. - postinstall_cmds_GCJ \
  39566. - postuninstall_cmds_GCJ \
  39567. - old_archive_from_expsyms_cmds_GCJ \
  39568. - allow_undefined_flag_GCJ \
  39569. - no_undefined_flag_GCJ \
  39570. - export_symbols_cmds_GCJ \
  39571. - hardcode_libdir_flag_spec_GCJ \
  39572. - hardcode_libdir_flag_spec_ld_GCJ \
  39573. - hardcode_libdir_separator_GCJ \
  39574. - hardcode_automatic_GCJ \
  39575. - module_cmds_GCJ \
  39576. - module_expsym_cmds_GCJ \
  39577. - lt_cv_prog_compiler_c_o_GCJ \
  39578. - exclude_expsyms_GCJ \
  39579. - include_expsyms_GCJ; do
  39580. -
  39581. - case $var in
  39582. - old_archive_cmds_GCJ | \
  39583. - old_archive_from_new_cmds_GCJ | \
  39584. - archive_cmds_GCJ | \
  39585. - archive_expsym_cmds_GCJ | \
  39586. - module_cmds_GCJ | \
  39587. - module_expsym_cmds_GCJ | \
  39588. - old_archive_from_expsyms_cmds_GCJ | \
  39589. - export_symbols_cmds_GCJ | \
  39590. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  39591. - postinstall_cmds | postuninstall_cmds | \
  39592. - old_postinstall_cmds | old_postuninstall_cmds | \
  39593. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  39594. - # Double-quote double-evaled strings.
  39595. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  39596. - ;;
  39597. - *)
  39598. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  39599. - ;;
  39600. - esac
  39601. - done
  39602. -
  39603. - case $lt_echo in
  39604. - *'\$0 --fallback-echo"')
  39605. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  39606. - ;;
  39607. - esac
  39608. -
  39609. -cfgfile="$ofile"
  39610. -
  39611. - cat <<__EOF__ >> "$cfgfile"
  39612. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  39613. -
  39614. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  39615. -
  39616. -# Shell to use when invoking shell scripts.
  39617. -SHELL=$lt_SHELL
  39618. -
  39619. -# Whether or not to build shared libraries.
  39620. -build_libtool_libs=$enable_shared
  39621. -
  39622. -# Whether or not to build static libraries.
  39623. -build_old_libs=$enable_static
  39624. -
  39625. -# Whether or not to add -lc for building shared libraries.
  39626. -build_libtool_need_lc=$archive_cmds_need_lc_GCJ
  39627. -
  39628. -# Whether or not to disallow shared libs when runtime libs are static
  39629. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ
  39630. -
  39631. -# Whether or not to optimize for fast installation.
  39632. -fast_install=$enable_fast_install
  39633. -
  39634. -# The host system.
  39635. -host_alias=$host_alias
  39636. -host=$host
  39637. -host_os=$host_os
  39638. -
  39639. -# The build system.
  39640. -build_alias=$build_alias
  39641. -build=$build
  39642. -build_os=$build_os
  39643. -
  39644. -# An echo program that does not interpret backslashes.
  39645. -echo=$lt_echo
  39646. -
  39647. -# The archiver.
  39648. -AR=$lt_AR
  39649. -AR_FLAGS=$lt_AR_FLAGS
  39650. -
  39651. -# A C compiler.
  39652. -LTCC=$lt_LTCC
  39653. -
  39654. -# A language-specific compiler.
  39655. -CC=$lt_compiler_GCJ
  39656. -
  39657. -# Is the compiler the GNU C compiler?
  39658. -with_gcc=$GCC_GCJ
  39659. -
  39660. -# An ERE matcher.
  39661. -EGREP=$lt_EGREP
  39662. -
  39663. -# The linker used to build libraries.
  39664. -LD=$lt_LD_GCJ
  39665. -
  39666. -# Whether we need hard or soft links.
  39667. -LN_S=$lt_LN_S
  39668. -
  39669. -# A BSD-compatible nm program.
  39670. -NM=$lt_NM
  39671. -
  39672. -# A symbol stripping program
  39673. -STRIP=$lt_STRIP
  39674. -
  39675. -# Used to examine libraries when file_magic_cmd begins "file"
  39676. -MAGIC_CMD=$MAGIC_CMD
  39677. -
  39678. -# Used on cygwin: DLL creation program.
  39679. -DLLTOOL="$DLLTOOL"
  39680. -
  39681. -# Used on cygwin: object dumper.
  39682. -OBJDUMP="$OBJDUMP"
  39683. -
  39684. -# Used on cygwin: assembler.
  39685. -AS="$AS"
  39686. -
  39687. -# The name of the directory that contains temporary libtool files.
  39688. -objdir=$objdir
  39689. -
  39690. -# How to create reloadable object files.
  39691. -reload_flag=$lt_reload_flag
  39692. -reload_cmds=$lt_reload_cmds
  39693. -
  39694. -# How to pass a linker flag through the compiler.
  39695. -wl=$lt_lt_prog_compiler_wl_GCJ
  39696. -
  39697. -# Object file suffix (normally "o").
  39698. -objext="$ac_objext"
  39699. -
  39700. -# Old archive suffix (normally "a").
  39701. -libext="$libext"
  39702. -
  39703. -# Shared library suffix (normally ".so").
  39704. -shrext_cmds='$shrext_cmds'
  39705. -
  39706. -# Executable file suffix (normally "").
  39707. -exeext="$exeext"
  39708. -
  39709. -# Additional compiler flags for building library objects.
  39710. -pic_flag=$lt_lt_prog_compiler_pic_GCJ
  39711. -pic_mode=$pic_mode
  39712. -
  39713. -# What is the maximum length of a command?
  39714. -max_cmd_len=$lt_cv_sys_max_cmd_len
  39715. -
  39716. -# Does compiler simultaneously support -c and -o options?
  39717. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ
  39718. -
  39719. -# Must we lock files when doing compilation?
  39720. -need_locks=$lt_need_locks
  39721. -
  39722. -# Do we need the lib prefix for modules?
  39723. -need_lib_prefix=$need_lib_prefix
  39724. -
  39725. -# Do we need a version for libraries?
  39726. -need_version=$need_version
  39727. -
  39728. -# Whether dlopen is supported.
  39729. -dlopen_support=$enable_dlopen
  39730. -
  39731. -# Whether dlopen of programs is supported.
  39732. -dlopen_self=$enable_dlopen_self
  39733. -
  39734. -# Whether dlopen of statically linked programs is supported.
  39735. -dlopen_self_static=$enable_dlopen_self_static
  39736. +# define LT_DLGLOBAL 0
  39737. +# endif
  39738. +#endif
  39739. -# Compiler flag to prevent dynamic linking.
  39740. -link_static_flag=$lt_lt_prog_compiler_static_GCJ
  39741. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  39742. + find out it does not work in some platform. */
  39743. +#ifndef LT_DLLAZY_OR_NOW
  39744. +# ifdef RTLD_LAZY
  39745. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  39746. +# else
  39747. +# ifdef DL_LAZY
  39748. +# define LT_DLLAZY_OR_NOW DL_LAZY
  39749. +# else
  39750. +# ifdef RTLD_NOW
  39751. +# define LT_DLLAZY_OR_NOW RTLD_NOW
  39752. +# else
  39753. +# ifdef DL_NOW
  39754. +# define LT_DLLAZY_OR_NOW DL_NOW
  39755. +# else
  39756. +# define LT_DLLAZY_OR_NOW 0
  39757. +# endif
  39758. +# endif
  39759. +# endif
  39760. +# endif
  39761. +#endif
  39762. -# Compiler flag to turn off builtin functions.
  39763. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ
  39764. +void fnord() { int i=42;}
  39765. +int main ()
  39766. +{
  39767. + void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  39768. + int status = $lt_dlunknown;
  39769. -# Compiler flag to allow reflexive dlopens.
  39770. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ
  39771. + if (self)
  39772. + {
  39773. + if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  39774. + else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  39775. + /* dlclose (self); */
  39776. + }
  39777. + else
  39778. + puts (dlerror ());
  39779. -# Compiler flag to generate shared objects directly from archives.
  39780. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ
  39781. + return status;
  39782. +}
  39783. +_LT_EOF
  39784. + if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  39785. + (eval $ac_link) 2>&5
  39786. + ac_status=$?
  39787. + $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  39788. + test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  39789. + (./conftest; exit; ) >&5 2>/dev/null
  39790. + lt_status=$?
  39791. + case x$lt_status in
  39792. + x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  39793. + x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  39794. + x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  39795. + esac
  39796. + else :
  39797. + # compilation failed
  39798. + lt_cv_dlopen_self_static=no
  39799. + fi
  39800. +fi
  39801. +rm -fr conftest*
  39802. -# Compiler flag to generate thread-safe objects.
  39803. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ
  39804. -# Library versioning type.
  39805. -version_type=$version_type
  39806. +fi
  39807. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  39808. +$as_echo "$lt_cv_dlopen_self_static" >&6; }
  39809. + fi
  39810. -# Format of library name prefix.
  39811. -libname_spec=$lt_libname_spec
  39812. + CPPFLAGS="$save_CPPFLAGS"
  39813. + LDFLAGS="$save_LDFLAGS"
  39814. + LIBS="$save_LIBS"
  39815. + ;;
  39816. + esac
  39817. -# List of archive names. First name is the real one, the rest are links.
  39818. -# The last name is the one that the linker finds with -lNAME.
  39819. -library_names_spec=$lt_library_names_spec
  39820. + case $lt_cv_dlopen_self in
  39821. + yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  39822. + *) enable_dlopen_self=unknown ;;
  39823. + esac
  39824. -# The coded name of the library, if different from the real name.
  39825. -soname_spec=$lt_soname_spec
  39826. + case $lt_cv_dlopen_self_static in
  39827. + yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  39828. + *) enable_dlopen_self_static=unknown ;;
  39829. + esac
  39830. +fi
  39831. -# Commands used to build and install an old-style archive.
  39832. -RANLIB=$lt_RANLIB
  39833. -old_archive_cmds=$lt_old_archive_cmds_GCJ
  39834. -old_postinstall_cmds=$lt_old_postinstall_cmds
  39835. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  39836. -# Create an old-style archive from a shared archive.
  39837. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ
  39838. -# Create a temporary old-style archive to link instead of a shared archive.
  39839. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ
  39840. -# Commands used to build and install a shared archive.
  39841. -archive_cmds=$lt_archive_cmds_GCJ
  39842. -archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ
  39843. -postinstall_cmds=$lt_postinstall_cmds
  39844. -postuninstall_cmds=$lt_postuninstall_cmds
  39845. -# Commands used to build a loadable module (assumed same as above if empty)
  39846. -module_cmds=$lt_module_cmds_GCJ
  39847. -module_expsym_cmds=$lt_module_expsym_cmds_GCJ
  39848. -# Commands to strip libraries.
  39849. -old_striplib=$lt_old_striplib
  39850. -striplib=$lt_striplib
  39851. -# Dependencies to place before the objects being linked to create a
  39852. -# shared library.
  39853. -predep_objects=$lt_predep_objects_GCJ
  39854. -
  39855. -# Dependencies to place after the objects being linked to create a
  39856. -# shared library.
  39857. -postdep_objects=$lt_postdep_objects_GCJ
  39858. -
  39859. -# Dependencies to place before the objects being linked to create a
  39860. -# shared library.
  39861. -predeps=$lt_predeps_GCJ
  39862. -
  39863. -# Dependencies to place after the objects being linked to create a
  39864. -# shared library.
  39865. -postdeps=$lt_postdeps_GCJ
  39866. -
  39867. -# The library search path used internally by the compiler when linking
  39868. -# a shared library.
  39869. -compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ
  39870. -# Method to check whether dependent libraries are shared objects.
  39871. -deplibs_check_method=$lt_deplibs_check_method
  39872. -# Command to use when deplibs_check_method == file_magic.
  39873. -file_magic_cmd=$lt_file_magic_cmd
  39874. -# Flag that allows shared libraries with undefined symbols to be built.
  39875. -allow_undefined_flag=$lt_allow_undefined_flag_GCJ
  39876. -# Flag that forces no undefined symbols.
  39877. -no_undefined_flag=$lt_no_undefined_flag_GCJ
  39878. -# Commands used to finish a libtool library installation in a directory.
  39879. -finish_cmds=$lt_finish_cmds
  39880. -# Same as above, but a single script fragment to be evaled but not shown.
  39881. -finish_eval=$lt_finish_eval
  39882. -# Take the output of nm and produce a listing of raw symbols and C names.
  39883. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  39884. -# Transform the output of nm in a proper C declaration
  39885. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  39886. -# Transform the output of nm in a C name address pair
  39887. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  39888. -# This is the shared library runtime path variable.
  39889. -runpath_var=$runpath_var
  39890. +striplib=
  39891. +old_striplib=
  39892. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  39893. +$as_echo_n "checking whether stripping libraries is possible... " >&6; }
  39894. +if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  39895. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  39896. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  39897. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39898. +$as_echo "yes" >&6; }
  39899. +else
  39900. +# FIXME - insert some real tests, host_os isn't really good enough
  39901. + case $host_os in
  39902. + darwin*)
  39903. + if test -n "$STRIP" ; then
  39904. + striplib="$STRIP -x"
  39905. + old_striplib="$STRIP -S"
  39906. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  39907. +$as_echo "yes" >&6; }
  39908. + else
  39909. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39910. +$as_echo "no" >&6; }
  39911. + fi
  39912. + ;;
  39913. + *)
  39914. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  39915. +$as_echo "no" >&6; }
  39916. + ;;
  39917. + esac
  39918. +fi
  39919. -# This is the shared library path variable.
  39920. -shlibpath_var=$shlibpath_var
  39921. -# Is shlibpath searched before the hard-coded library search path?
  39922. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  39923. -# How to hardcode a shared library path into an executable.
  39924. -hardcode_action=$hardcode_action_GCJ
  39925. -# Whether we should hardcode library paths into libraries.
  39926. -hardcode_into_libs=$hardcode_into_libs
  39927. -# Flag to hardcode \$libdir into a binary during linking.
  39928. -# This must work even if \$libdir does not exist.
  39929. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ
  39930. -# If ld is used when linking, flag to hardcode \$libdir into
  39931. -# a binary during linking. This must work even if \$libdir does
  39932. -# not exist.
  39933. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ
  39934. -
  39935. -# Whether we need a single -rpath flag with a separated argument.
  39936. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ
  39937. -
  39938. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  39939. -# resulting binary.
  39940. -hardcode_direct=$hardcode_direct_GCJ
  39941. -
  39942. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  39943. -# resulting binary.
  39944. -hardcode_minus_L=$hardcode_minus_L_GCJ
  39945. -
  39946. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  39947. -# the resulting binary.
  39948. -hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ
  39949. -
  39950. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  39951. -# and all subsequent libraries and executables linked against it.
  39952. -hardcode_automatic=$hardcode_automatic_GCJ
  39953. -# Variables whose values should be saved in libtool wrapper scripts and
  39954. -# restored at relink time.
  39955. -variables_saved_for_relink="$variables_saved_for_relink"
  39956. -# Whether libtool must link a program against all its dependency libraries.
  39957. -link_all_deplibs=$link_all_deplibs_GCJ
  39958. -# Compile-time system search path for libraries
  39959. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  39960. -# Run-time system search path for libraries
  39961. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  39962. -# Fix the shell variable \$srcfile for the compiler.
  39963. -fix_srcfile_path="$fix_srcfile_path_GCJ"
  39964. -# Set to yes if exported symbols are required.
  39965. -always_export_symbols=$always_export_symbols_GCJ
  39966. + # Report which library types will actually be built
  39967. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  39968. +$as_echo_n "checking if libtool supports shared libraries... " >&6; }
  39969. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  39970. +$as_echo "$can_build_shared" >&6; }
  39971. -# The commands to list exported symbols.
  39972. -export_symbols_cmds=$lt_export_symbols_cmds_GCJ
  39973. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  39974. +$as_echo_n "checking whether to build shared libraries... " >&6; }
  39975. + test "$can_build_shared" = "no" && enable_shared=no
  39976. -# The commands to extract the exported symbol list from a shared archive.
  39977. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  39978. + # On AIX, shared libraries and static libraries use the same namespace, and
  39979. + # are all built from PIC.
  39980. + case $host_os in
  39981. + aix3*)
  39982. + test "$enable_shared" = yes && enable_static=no
  39983. + if test -n "$RANLIB"; then
  39984. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  39985. + postinstall_cmds='$RANLIB $lib'
  39986. + fi
  39987. + ;;
  39988. -# Symbols that should not be listed in the preloaded symbols.
  39989. -exclude_expsyms=$lt_exclude_expsyms_GCJ
  39990. + aix[4-9]*)
  39991. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  39992. + test "$enable_shared" = yes && enable_static=no
  39993. + fi
  39994. + ;;
  39995. + esac
  39996. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  39997. +$as_echo "$enable_shared" >&6; }
  39998. -# Symbols that must always be exported.
  39999. -include_expsyms=$lt_include_expsyms_GCJ
  40000. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  40001. +$as_echo_n "checking whether to build static libraries... " >&6; }
  40002. + # Make sure either enable_shared or enable_static is yes.
  40003. + test "$enable_shared" = yes || enable_static=yes
  40004. + { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  40005. +$as_echo "$enable_static" >&6; }
  40006. -# ### END LIBTOOL TAG CONFIG: $tagname
  40007. -__EOF__
  40008. -else
  40009. - # If there is no Makefile yet, we rely on a make rule to execute
  40010. - # `config.status --recheck' to rerun these tests and create the
  40011. - # libtool script then.
  40012. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  40013. - if test -f "$ltmain_in"; then
  40014. - test -f Makefile && make "$ltmain"
  40015. - fi
  40016. fi
  40017. -
  40018. -
  40019. ac_ext=c
  40020. ac_cpp='$CPP $CPPFLAGS'
  40021. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40022. @@ -19094,3789 +10448,3073 @@
  40023. CC="$lt_save_CC"
  40024. - else
  40025. - tagname=""
  40026. - fi
  40027. - ;;
  40028. -
  40029. - RC)
  40030. -
  40031. -
  40032. -
  40033. -# Source file extension for RC test sources.
  40034. -ac_ext=rc
  40035. -
  40036. -# Object file extension for compiled RC test sources.
  40037. -objext=o
  40038. -objext_RC=$objext
  40039. -
  40040. -# Code to be used in simple compile tests
  40041. -lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  40042. -
  40043. -# Code to be used in simple link tests
  40044. -lt_simple_link_test_code="$lt_simple_compile_test_code"
  40045. -
  40046. -# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  40047. -
  40048. -# If no C compiler was specified, use CC.
  40049. -LTCC=${LTCC-"$CC"}
  40050. -
  40051. -# Allow CC to be a program name with arguments.
  40052. -compiler=$CC
  40053. -
  40054. -
  40055. -# save warnings/boilerplate of simple test code
  40056. -ac_outfile=conftest.$ac_objext
  40057. -printf "$lt_simple_compile_test_code" >conftest.$ac_ext
  40058. -eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  40059. -_lt_compiler_boilerplate=`cat conftest.err`
  40060. -$rm conftest*
  40061. -
  40062. -ac_outfile=conftest.$ac_objext
  40063. -printf "$lt_simple_link_test_code" >conftest.$ac_ext
  40064. -eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d' >conftest.err
  40065. -_lt_linker_boilerplate=`cat conftest.err`
  40066. -$rm conftest*
  40067. -
  40068. -
  40069. -# Allow CC to be a program name with arguments.
  40070. -lt_save_CC="$CC"
  40071. -CC=${RC-"windres"}
  40072. -compiler=$CC
  40073. -compiler_RC=$CC
  40074. -for cc_temp in $compiler""; do
  40075. - case $cc_temp in
  40076. - compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  40077. - distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  40078. - \-*) ;;
  40079. - *) break;;
  40080. - esac
  40081. -done
  40082. -cc_basename=`$echo "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"`
  40083. -
  40084. -lt_cv_prog_compiler_c_o_RC=yes
  40085. -# The else clause should only fire when bootstrapping the
  40086. -# libtool distribution, otherwise you forgot to ship ltmain.sh
  40087. -# with your package, and you will get complaints that there are
  40088. -# no rules to generate ltmain.sh.
  40089. -if test -f "$ltmain"; then
  40090. - # See if we are running on zsh, and set the options which allow our commands through
  40091. - # without removal of \ escapes.
  40092. - if test -n "${ZSH_VERSION+set}" ; then
  40093. - setopt NO_GLOB_SUBST
  40094. - fi
  40095. - # Now quote all the things that may contain metacharacters while being
  40096. - # careful not to overquote the AC_SUBSTed values. We take copies of the
  40097. - # variables and quote the copies for generation of the libtool script.
  40098. - for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  40099. - SED SHELL STRIP \
  40100. - libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  40101. - old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  40102. - deplibs_check_method reload_flag reload_cmds need_locks \
  40103. - lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  40104. - lt_cv_sys_global_symbol_to_c_name_address \
  40105. - sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  40106. - old_postinstall_cmds old_postuninstall_cmds \
  40107. - compiler_RC \
  40108. - CC_RC \
  40109. - LD_RC \
  40110. - lt_prog_compiler_wl_RC \
  40111. - lt_prog_compiler_pic_RC \
  40112. - lt_prog_compiler_static_RC \
  40113. - lt_prog_compiler_no_builtin_flag_RC \
  40114. - export_dynamic_flag_spec_RC \
  40115. - thread_safe_flag_spec_RC \
  40116. - whole_archive_flag_spec_RC \
  40117. - enable_shared_with_static_runtimes_RC \
  40118. - old_archive_cmds_RC \
  40119. - old_archive_from_new_cmds_RC \
  40120. - predep_objects_RC \
  40121. - postdep_objects_RC \
  40122. - predeps_RC \
  40123. - postdeps_RC \
  40124. - compiler_lib_search_path_RC \
  40125. - archive_cmds_RC \
  40126. - archive_expsym_cmds_RC \
  40127. - postinstall_cmds_RC \
  40128. - postuninstall_cmds_RC \
  40129. - old_archive_from_expsyms_cmds_RC \
  40130. - allow_undefined_flag_RC \
  40131. - no_undefined_flag_RC \
  40132. - export_symbols_cmds_RC \
  40133. - hardcode_libdir_flag_spec_RC \
  40134. - hardcode_libdir_flag_spec_ld_RC \
  40135. - hardcode_libdir_separator_RC \
  40136. - hardcode_automatic_RC \
  40137. - module_cmds_RC \
  40138. - module_expsym_cmds_RC \
  40139. - lt_cv_prog_compiler_c_o_RC \
  40140. - exclude_expsyms_RC \
  40141. - include_expsyms_RC; do
  40142. -
  40143. - case $var in
  40144. - old_archive_cmds_RC | \
  40145. - old_archive_from_new_cmds_RC | \
  40146. - archive_cmds_RC | \
  40147. - archive_expsym_cmds_RC | \
  40148. - module_cmds_RC | \
  40149. - module_expsym_cmds_RC | \
  40150. - old_archive_from_expsyms_cmds_RC | \
  40151. - export_symbols_cmds_RC | \
  40152. - extract_expsyms_cmds | reload_cmds | finish_cmds | \
  40153. - postinstall_cmds | postuninstall_cmds | \
  40154. - old_postinstall_cmds | old_postuninstall_cmds | \
  40155. - sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  40156. - # Double-quote double-evaled strings.
  40157. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  40158. - ;;
  40159. - *)
  40160. - eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\""
  40161. - ;;
  40162. - esac
  40163. - done
  40164. - case $lt_echo in
  40165. - *'\$0 --fallback-echo"')
  40166. - lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'`
  40167. - ;;
  40168. - esac
  40169. -cfgfile="$ofile"
  40170. - cat <<__EOF__ >> "$cfgfile"
  40171. -# ### BEGIN LIBTOOL TAG CONFIG: $tagname
  40172. -# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  40173. -# Shell to use when invoking shell scripts.
  40174. -SHELL=$lt_SHELL
  40175. -# Whether or not to build shared libraries.
  40176. -build_libtool_libs=$enable_shared
  40177. -# Whether or not to build static libraries.
  40178. -build_old_libs=$enable_static
  40179. -# Whether or not to add -lc for building shared libraries.
  40180. -build_libtool_need_lc=$archive_cmds_need_lc_RC
  40181. -# Whether or not to disallow shared libs when runtime libs are static
  40182. -allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC
  40183. -# Whether or not to optimize for fast installation.
  40184. -fast_install=$enable_fast_install
  40185. -# The host system.
  40186. -host_alias=$host_alias
  40187. -host=$host
  40188. -host_os=$host_os
  40189. + ac_config_commands="$ac_config_commands libtool"
  40190. -# The build system.
  40191. -build_alias=$build_alias
  40192. -build=$build
  40193. -build_os=$build_os
  40194. -# An echo program that does not interpret backslashes.
  40195. -echo=$lt_echo
  40196. -# The archiver.
  40197. -AR=$lt_AR
  40198. -AR_FLAGS=$lt_AR_FLAGS
  40199. -# A C compiler.
  40200. -LTCC=$lt_LTCC
  40201. +# Only expand once:
  40202. -# A language-specific compiler.
  40203. -CC=$lt_compiler_RC
  40204. -# Is the compiler the GNU C compiler?
  40205. -with_gcc=$GCC_RC
  40206. -# An ERE matcher.
  40207. -EGREP=$lt_EGREP
  40208. -# The linker used to build libraries.
  40209. -LD=$lt_LD_RC
  40210. +# Checks for libraries.
  40211. -# Whether we need hard or soft links.
  40212. -LN_S=$lt_LN_S
  40213. +# Checks for header files.
  40214. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  40215. +$as_echo_n "checking for ANSI C header files... " >&6; }
  40216. +if test "${ac_cv_header_stdc+set}" = set; then :
  40217. + $as_echo_n "(cached) " >&6
  40218. +else
  40219. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40220. +/* end confdefs.h. */
  40221. +#include <stdlib.h>
  40222. +#include <stdarg.h>
  40223. +#include <string.h>
  40224. +#include <float.h>
  40225. -# A BSD-compatible nm program.
  40226. -NM=$lt_NM
  40227. +int
  40228. +main ()
  40229. +{
  40230. -# A symbol stripping program
  40231. -STRIP=$lt_STRIP
  40232. + ;
  40233. + return 0;
  40234. +}
  40235. +_ACEOF
  40236. +if ac_fn_c_try_compile "$LINENO"; then :
  40237. + ac_cv_header_stdc=yes
  40238. +else
  40239. + ac_cv_header_stdc=no
  40240. +fi
  40241. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40242. -# Used to examine libraries when file_magic_cmd begins "file"
  40243. -MAGIC_CMD=$MAGIC_CMD
  40244. +if test $ac_cv_header_stdc = yes; then
  40245. + # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  40246. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40247. +/* end confdefs.h. */
  40248. +#include <string.h>
  40249. -# Used on cygwin: DLL creation program.
  40250. -DLLTOOL="$DLLTOOL"
  40251. +_ACEOF
  40252. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  40253. + $EGREP "memchr" >/dev/null 2>&1; then :
  40254. -# Used on cygwin: object dumper.
  40255. -OBJDUMP="$OBJDUMP"
  40256. +else
  40257. + ac_cv_header_stdc=no
  40258. +fi
  40259. +rm -f conftest*
  40260. -# Used on cygwin: assembler.
  40261. -AS="$AS"
  40262. +fi
  40263. -# The name of the directory that contains temporary libtool files.
  40264. -objdir=$objdir
  40265. +if test $ac_cv_header_stdc = yes; then
  40266. + # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  40267. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40268. +/* end confdefs.h. */
  40269. +#include <stdlib.h>
  40270. -# How to create reloadable object files.
  40271. -reload_flag=$lt_reload_flag
  40272. -reload_cmds=$lt_reload_cmds
  40273. +_ACEOF
  40274. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  40275. + $EGREP "free" >/dev/null 2>&1; then :
  40276. -# How to pass a linker flag through the compiler.
  40277. -wl=$lt_lt_prog_compiler_wl_RC
  40278. +else
  40279. + ac_cv_header_stdc=no
  40280. +fi
  40281. +rm -f conftest*
  40282. -# Object file suffix (normally "o").
  40283. -objext="$ac_objext"
  40284. +fi
  40285. -# Old archive suffix (normally "a").
  40286. -libext="$libext"
  40287. +if test $ac_cv_header_stdc = yes; then
  40288. + # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  40289. + if test "$cross_compiling" = yes; then :
  40290. + :
  40291. +else
  40292. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40293. +/* end confdefs.h. */
  40294. +#include <ctype.h>
  40295. +#include <stdlib.h>
  40296. +#if ((' ' & 0x0FF) == 0x020)
  40297. +# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  40298. +# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  40299. +#else
  40300. +# define ISLOWER(c) \
  40301. + (('a' <= (c) && (c) <= 'i') \
  40302. + || ('j' <= (c) && (c) <= 'r') \
  40303. + || ('s' <= (c) && (c) <= 'z'))
  40304. +# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  40305. +#endif
  40306. -# Shared library suffix (normally ".so").
  40307. -shrext_cmds='$shrext_cmds'
  40308. +#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  40309. +int
  40310. +main ()
  40311. +{
  40312. + int i;
  40313. + for (i = 0; i < 256; i++)
  40314. + if (XOR (islower (i), ISLOWER (i))
  40315. + || toupper (i) != TOUPPER (i))
  40316. + return 2;
  40317. + return 0;
  40318. +}
  40319. +_ACEOF
  40320. +if ac_fn_c_try_run "$LINENO"; then :
  40321. -# Executable file suffix (normally "").
  40322. -exeext="$exeext"
  40323. +else
  40324. + ac_cv_header_stdc=no
  40325. +fi
  40326. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  40327. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  40328. +fi
  40329. -# Additional compiler flags for building library objects.
  40330. -pic_flag=$lt_lt_prog_compiler_pic_RC
  40331. -pic_mode=$pic_mode
  40332. +fi
  40333. +fi
  40334. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  40335. +$as_echo "$ac_cv_header_stdc" >&6; }
  40336. +if test $ac_cv_header_stdc = yes; then
  40337. -# What is the maximum length of a command?
  40338. -max_cmd_len=$lt_cv_sys_max_cmd_len
  40339. +$as_echo "#define STDC_HEADERS 1" >>confdefs.h
  40340. -# Does compiler simultaneously support -c and -o options?
  40341. -compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC
  40342. +fi
  40343. -# Must we lock files when doing compilation?
  40344. -need_locks=$lt_need_locks
  40345. +for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h
  40346. +do :
  40347. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  40348. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  40349. +eval as_val=\$$as_ac_Header
  40350. + if test "x$as_val" = x""yes; then :
  40351. + cat >>confdefs.h <<_ACEOF
  40352. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  40353. +_ACEOF
  40354. -# Do we need the lib prefix for modules?
  40355. -need_lib_prefix=$need_lib_prefix
  40356. +fi
  40357. -# Do we need a version for libraries?
  40358. -need_version=$need_version
  40359. +done
  40360. -# Whether dlopen is supported.
  40361. -dlopen_support=$enable_dlopen
  40362. -# Whether dlopen of programs is supported.
  40363. -dlopen_self=$enable_dlopen_self
  40364. +# Checks for typedefs, structures, and compiler characteristics.
  40365. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  40366. +$as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  40367. +if test "${ac_cv_c_const+set}" = set; then :
  40368. + $as_echo_n "(cached) " >&6
  40369. +else
  40370. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40371. +/* end confdefs.h. */
  40372. -# Whether dlopen of statically linked programs is supported.
  40373. -dlopen_self_static=$enable_dlopen_self_static
  40374. +int
  40375. +main ()
  40376. +{
  40377. +/* FIXME: Include the comments suggested by Paul. */
  40378. +#ifndef __cplusplus
  40379. + /* Ultrix mips cc rejects this. */
  40380. + typedef int charset[2];
  40381. + const charset cs;
  40382. + /* SunOS 4.1.1 cc rejects this. */
  40383. + char const *const *pcpcc;
  40384. + char **ppc;
  40385. + /* NEC SVR4.0.2 mips cc rejects this. */
  40386. + struct point {int x, y;};
  40387. + static struct point const zero = {0,0};
  40388. + /* AIX XL C 1.02.0.0 rejects this.
  40389. + It does not let you subtract one const X* pointer from another in
  40390. + an arm of an if-expression whose if-part is not a constant
  40391. + expression */
  40392. + const char *g = "string";
  40393. + pcpcc = &g + (g ? g-g : 0);
  40394. + /* HPUX 7.0 cc rejects these. */
  40395. + ++pcpcc;
  40396. + ppc = (char**) pcpcc;
  40397. + pcpcc = (char const *const *) ppc;
  40398. + { /* SCO 3.2v4 cc rejects this. */
  40399. + char *t;
  40400. + char const *s = 0 ? (char *) 0 : (char const *) 0;
  40401. -# Compiler flag to prevent dynamic linking.
  40402. -link_static_flag=$lt_lt_prog_compiler_static_RC
  40403. + *t++ = 0;
  40404. + if (s) return 0;
  40405. + }
  40406. + { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  40407. + int x[] = {25, 17};
  40408. + const int *foo = &x[0];
  40409. + ++foo;
  40410. + }
  40411. + { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  40412. + typedef const int *iptr;
  40413. + iptr p = 0;
  40414. + ++p;
  40415. + }
  40416. + { /* AIX XL C 1.02.0.0 rejects this saying
  40417. + "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  40418. + struct s { int j; const int *ap[3]; };
  40419. + struct s *b; b->j = 5;
  40420. + }
  40421. + { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  40422. + const int foo = 10;
  40423. + if (!foo) return 0;
  40424. + }
  40425. + return !cs[0] && !zero.x;
  40426. +#endif
  40427. -# Compiler flag to turn off builtin functions.
  40428. -no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC
  40429. + ;
  40430. + return 0;
  40431. +}
  40432. +_ACEOF
  40433. +if ac_fn_c_try_compile "$LINENO"; then :
  40434. + ac_cv_c_const=yes
  40435. +else
  40436. + ac_cv_c_const=no
  40437. +fi
  40438. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40439. +fi
  40440. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  40441. +$as_echo "$ac_cv_c_const" >&6; }
  40442. +if test $ac_cv_c_const = no; then
  40443. -# Compiler flag to allow reflexive dlopens.
  40444. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC
  40445. +$as_echo "#define const /**/" >>confdefs.h
  40446. -# Compiler flag to generate shared objects directly from archives.
  40447. -whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC
  40448. +fi
  40449. -# Compiler flag to generate thread-safe objects.
  40450. -thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC
  40451. +ac_fn_c_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default"
  40452. +if test "x$ac_cv_type_mode_t" = x""yes; then :
  40453. -# Library versioning type.
  40454. -version_type=$version_type
  40455. +else
  40456. -# Format of library name prefix.
  40457. -libname_spec=$lt_libname_spec
  40458. +cat >>confdefs.h <<_ACEOF
  40459. +#define mode_t int
  40460. +_ACEOF
  40461. -# List of archive names. First name is the real one, the rest are links.
  40462. -# The last name is the one that the linker finds with -lNAME.
  40463. -library_names_spec=$lt_library_names_spec
  40464. +fi
  40465. -# The coded name of the library, if different from the real name.
  40466. -soname_spec=$lt_soname_spec
  40467. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
  40468. +$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
  40469. +if test "${ac_cv_header_time+set}" = set; then :
  40470. + $as_echo_n "(cached) " >&6
  40471. +else
  40472. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40473. +/* end confdefs.h. */
  40474. +#include <sys/types.h>
  40475. +#include <sys/time.h>
  40476. +#include <time.h>
  40477. -# Commands used to build and install an old-style archive.
  40478. -RANLIB=$lt_RANLIB
  40479. -old_archive_cmds=$lt_old_archive_cmds_RC
  40480. -old_postinstall_cmds=$lt_old_postinstall_cmds
  40481. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  40482. +int
  40483. +main ()
  40484. +{
  40485. +if ((struct tm *) 0)
  40486. +return 0;
  40487. + ;
  40488. + return 0;
  40489. +}
  40490. +_ACEOF
  40491. +if ac_fn_c_try_compile "$LINENO"; then :
  40492. + ac_cv_header_time=yes
  40493. +else
  40494. + ac_cv_header_time=no
  40495. +fi
  40496. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  40497. +fi
  40498. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
  40499. +$as_echo "$ac_cv_header_time" >&6; }
  40500. +if test $ac_cv_header_time = yes; then
  40501. -# Create an old-style archive from a shared archive.
  40502. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC
  40503. +$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
  40504. -# Create a temporary old-style archive to link instead of a shared archive.
  40505. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC
  40506. +fi
  40507. -# Commands used to build and install a shared archive.
  40508. -archive_cmds=$lt_archive_cmds_RC
  40509. -archive_expsym_cmds=$lt_archive_expsym_cmds_RC
  40510. -postinstall_cmds=$lt_postinstall_cmds
  40511. -postuninstall_cmds=$lt_postuninstall_cmds
  40512. -# Commands used to build a loadable module (assumed same as above if empty)
  40513. -module_cmds=$lt_module_cmds_RC
  40514. -module_expsym_cmds=$lt_module_expsym_cmds_RC
  40515. +# Checks for library functions.
  40516. +ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
  40517. +if test "x$ac_cv_type_pid_t" = x""yes; then :
  40518. -# Commands to strip libraries.
  40519. -old_striplib=$lt_old_striplib
  40520. -striplib=$lt_striplib
  40521. +else
  40522. -# Dependencies to place before the objects being linked to create a
  40523. -# shared library.
  40524. -predep_objects=$lt_predep_objects_RC
  40525. -
  40526. -# Dependencies to place after the objects being linked to create a
  40527. -# shared library.
  40528. -postdep_objects=$lt_postdep_objects_RC
  40529. -
  40530. -# Dependencies to place before the objects being linked to create a
  40531. -# shared library.
  40532. -predeps=$lt_predeps_RC
  40533. -
  40534. -# Dependencies to place after the objects being linked to create a
  40535. -# shared library.
  40536. -postdeps=$lt_postdeps_RC
  40537. -
  40538. -# The library search path used internally by the compiler when linking
  40539. -# a shared library.
  40540. -compiler_lib_search_path=$lt_compiler_lib_search_path_RC
  40541. +cat >>confdefs.h <<_ACEOF
  40542. +#define pid_t int
  40543. +_ACEOF
  40544. -# Method to check whether dependent libraries are shared objects.
  40545. -deplibs_check_method=$lt_deplibs_check_method
  40546. +fi
  40547. -# Command to use when deplibs_check_method == file_magic.
  40548. -file_magic_cmd=$lt_file_magic_cmd
  40549. +for ac_header in vfork.h
  40550. +do :
  40551. + ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default"
  40552. +if test "x$ac_cv_header_vfork_h" = x""yes; then :
  40553. + cat >>confdefs.h <<_ACEOF
  40554. +#define HAVE_VFORK_H 1
  40555. +_ACEOF
  40556. -# Flag that allows shared libraries with undefined symbols to be built.
  40557. -allow_undefined_flag=$lt_allow_undefined_flag_RC
  40558. +fi
  40559. -# Flag that forces no undefined symbols.
  40560. -no_undefined_flag=$lt_no_undefined_flag_RC
  40561. +done
  40562. -# Commands used to finish a libtool library installation in a directory.
  40563. -finish_cmds=$lt_finish_cmds
  40564. +for ac_func in fork vfork
  40565. +do :
  40566. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  40567. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  40568. +eval as_val=\$$as_ac_var
  40569. + if test "x$as_val" = x""yes; then :
  40570. + cat >>confdefs.h <<_ACEOF
  40571. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  40572. +_ACEOF
  40573. -# Same as above, but a single script fragment to be evaled but not shown.
  40574. -finish_eval=$lt_finish_eval
  40575. +fi
  40576. +done
  40577. -# Take the output of nm and produce a listing of raw symbols and C names.
  40578. -global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  40579. +if test "x$ac_cv_func_fork" = xyes; then
  40580. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5
  40581. +$as_echo_n "checking for working fork... " >&6; }
  40582. +if test "${ac_cv_func_fork_works+set}" = set; then :
  40583. + $as_echo_n "(cached) " >&6
  40584. +else
  40585. + if test "$cross_compiling" = yes; then :
  40586. + ac_cv_func_fork_works=cross
  40587. +else
  40588. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40589. +/* end confdefs.h. */
  40590. +$ac_includes_default
  40591. +int
  40592. +main ()
  40593. +{
  40594. -# Transform the output of nm in a proper C declaration
  40595. -global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  40596. + /* By Ruediger Kuhlmann. */
  40597. + return fork () < 0;
  40598. -# Transform the output of nm in a C name address pair
  40599. -global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  40600. + ;
  40601. + return 0;
  40602. +}
  40603. +_ACEOF
  40604. +if ac_fn_c_try_run "$LINENO"; then :
  40605. + ac_cv_func_fork_works=yes
  40606. +else
  40607. + ac_cv_func_fork_works=no
  40608. +fi
  40609. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  40610. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  40611. +fi
  40612. -# This is the shared library runtime path variable.
  40613. -runpath_var=$runpath_var
  40614. +fi
  40615. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5
  40616. +$as_echo "$ac_cv_func_fork_works" >&6; }
  40617. -# This is the shared library path variable.
  40618. -shlibpath_var=$shlibpath_var
  40619. +else
  40620. + ac_cv_func_fork_works=$ac_cv_func_fork
  40621. +fi
  40622. +if test "x$ac_cv_func_fork_works" = xcross; then
  40623. + case $host in
  40624. + *-*-amigaos* | *-*-msdosdjgpp*)
  40625. + # Override, as these systems have only a dummy fork() stub
  40626. + ac_cv_func_fork_works=no
  40627. + ;;
  40628. + *)
  40629. + ac_cv_func_fork_works=yes
  40630. + ;;
  40631. + esac
  40632. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  40633. +$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  40634. +fi
  40635. +ac_cv_func_vfork_works=$ac_cv_func_vfork
  40636. +if test "x$ac_cv_func_vfork" = xyes; then
  40637. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5
  40638. +$as_echo_n "checking for working vfork... " >&6; }
  40639. +if test "${ac_cv_func_vfork_works+set}" = set; then :
  40640. + $as_echo_n "(cached) " >&6
  40641. +else
  40642. + if test "$cross_compiling" = yes; then :
  40643. + ac_cv_func_vfork_works=cross
  40644. +else
  40645. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40646. +/* end confdefs.h. */
  40647. +/* Thanks to Paul Eggert for this test. */
  40648. +$ac_includes_default
  40649. +#include <sys/wait.h>
  40650. +#ifdef HAVE_VFORK_H
  40651. +# include <vfork.h>
  40652. +#endif
  40653. +/* On some sparc systems, changes by the child to local and incoming
  40654. + argument registers are propagated back to the parent. The compiler
  40655. + is told about this with #include <vfork.h>, but some compilers
  40656. + (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  40657. + static variable whose address is put into a register that is
  40658. + clobbered by the vfork. */
  40659. +static void
  40660. +#ifdef __cplusplus
  40661. +sparc_address_test (int arg)
  40662. +# else
  40663. +sparc_address_test (arg) int arg;
  40664. +#endif
  40665. +{
  40666. + static pid_t child;
  40667. + if (!child) {
  40668. + child = vfork ();
  40669. + if (child < 0) {
  40670. + perror ("vfork");
  40671. + _exit(2);
  40672. + }
  40673. + if (!child) {
  40674. + arg = getpid();
  40675. + write(-1, "", 0);
  40676. + _exit (arg);
  40677. + }
  40678. + }
  40679. +}
  40680. -# Is shlibpath searched before the hard-coded library search path?
  40681. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  40682. +int
  40683. +main ()
  40684. +{
  40685. + pid_t parent = getpid ();
  40686. + pid_t child;
  40687. -# How to hardcode a shared library path into an executable.
  40688. -hardcode_action=$hardcode_action_RC
  40689. + sparc_address_test (0);
  40690. -# Whether we should hardcode library paths into libraries.
  40691. -hardcode_into_libs=$hardcode_into_libs
  40692. + child = vfork ();
  40693. -# Flag to hardcode \$libdir into a binary during linking.
  40694. -# This must work even if \$libdir does not exist.
  40695. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC
  40696. + if (child == 0) {
  40697. + /* Here is another test for sparc vfork register problems. This
  40698. + test uses lots of local variables, at least as many local
  40699. + variables as main has allocated so far including compiler
  40700. + temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  40701. + 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  40702. + reuse the register of parent for one of the local variables,
  40703. + since it will think that parent can't possibly be used any more
  40704. + in this routine. Assigning to the local variable will thus
  40705. + munge parent in the parent process. */
  40706. + pid_t
  40707. + p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  40708. + p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  40709. + /* Convince the compiler that p..p7 are live; otherwise, it might
  40710. + use the same hardware register for all 8 local variables. */
  40711. + if (p != p1 || p != p2 || p != p3 || p != p4
  40712. + || p != p5 || p != p6 || p != p7)
  40713. + _exit(1);
  40714. -# If ld is used when linking, flag to hardcode \$libdir into
  40715. -# a binary during linking. This must work even if \$libdir does
  40716. -# not exist.
  40717. -hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC
  40718. -
  40719. -# Whether we need a single -rpath flag with a separated argument.
  40720. -hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC
  40721. -
  40722. -# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  40723. -# resulting binary.
  40724. -hardcode_direct=$hardcode_direct_RC
  40725. -
  40726. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  40727. -# resulting binary.
  40728. -hardcode_minus_L=$hardcode_minus_L_RC
  40729. -
  40730. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  40731. -# the resulting binary.
  40732. -hardcode_shlibpath_var=$hardcode_shlibpath_var_RC
  40733. -
  40734. -# Set to yes if building a shared library automatically hardcodes DIR into the library
  40735. -# and all subsequent libraries and executables linked against it.
  40736. -hardcode_automatic=$hardcode_automatic_RC
  40737. + /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  40738. + from child file descriptors. If the child closes a descriptor
  40739. + before it execs or exits, this munges the parent's descriptor
  40740. + as well. Test for this by closing stdout in the child. */
  40741. + _exit(close(fileno(stdout)) != 0);
  40742. + } else {
  40743. + int status;
  40744. + struct stat st;
  40745. -# Variables whose values should be saved in libtool wrapper scripts and
  40746. -# restored at relink time.
  40747. -variables_saved_for_relink="$variables_saved_for_relink"
  40748. + while (wait(&status) != child)
  40749. + ;
  40750. + return (
  40751. + /* Was there some problem with vforking? */
  40752. + child < 0
  40753. -# Whether libtool must link a program against all its dependency libraries.
  40754. -link_all_deplibs=$link_all_deplibs_RC
  40755. + /* Did the child fail? (This shouldn't happen.) */
  40756. + || status
  40757. -# Compile-time system search path for libraries
  40758. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  40759. + /* Did the vfork/compiler bug occur? */
  40760. + || parent != getpid()
  40761. -# Run-time system search path for libraries
  40762. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  40763. + /* Did the file descriptor bug occur? */
  40764. + || fstat(fileno(stdout), &st) != 0
  40765. + );
  40766. + }
  40767. +}
  40768. +_ACEOF
  40769. +if ac_fn_c_try_run "$LINENO"; then :
  40770. + ac_cv_func_vfork_works=yes
  40771. +else
  40772. + ac_cv_func_vfork_works=no
  40773. +fi
  40774. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  40775. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  40776. +fi
  40777. -# Fix the shell variable \$srcfile for the compiler.
  40778. -fix_srcfile_path="$fix_srcfile_path_RC"
  40779. +fi
  40780. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5
  40781. +$as_echo "$ac_cv_func_vfork_works" >&6; }
  40782. -# Set to yes if exported symbols are required.
  40783. -always_export_symbols=$always_export_symbols_RC
  40784. +fi;
  40785. +if test "x$ac_cv_func_fork_works" = xcross; then
  40786. + ac_cv_func_vfork_works=$ac_cv_func_vfork
  40787. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  40788. +$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  40789. +fi
  40790. -# The commands to list exported symbols.
  40791. -export_symbols_cmds=$lt_export_symbols_cmds_RC
  40792. +if test "x$ac_cv_func_vfork_works" = xyes; then
  40793. -# The commands to extract the exported symbol list from a shared archive.
  40794. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  40795. +$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h
  40796. -# Symbols that should not be listed in the preloaded symbols.
  40797. -exclude_expsyms=$lt_exclude_expsyms_RC
  40798. +else
  40799. -# Symbols that must always be exported.
  40800. -include_expsyms=$lt_include_expsyms_RC
  40801. +$as_echo "#define vfork fork" >>confdefs.h
  40802. -# ### END LIBTOOL TAG CONFIG: $tagname
  40803. +fi
  40804. +if test "x$ac_cv_func_fork_works" = xyes; then
  40805. -__EOF__
  40806. +$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h
  40807. +fi
  40808. +if test $ac_cv_c_compiler_gnu = yes; then
  40809. + { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
  40810. +$as_echo_n "checking whether $CC needs -traditional... " >&6; }
  40811. +if test "${ac_cv_prog_gcc_traditional+set}" = set; then :
  40812. + $as_echo_n "(cached) " >&6
  40813. else
  40814. - # If there is no Makefile yet, we rely on a make rule to execute
  40815. - # `config.status --recheck' to rerun these tests and create the
  40816. - # libtool script then.
  40817. - ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  40818. - if test -f "$ltmain_in"; then
  40819. - test -f Makefile && make "$ltmain"
  40820. - fi
  40821. + ac_pattern="Autoconf.*'x'"
  40822. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40823. +/* end confdefs.h. */
  40824. +#include <sgtty.h>
  40825. +Autoconf TIOCGETP
  40826. +_ACEOF
  40827. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  40828. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  40829. + ac_cv_prog_gcc_traditional=yes
  40830. +else
  40831. + ac_cv_prog_gcc_traditional=no
  40832. fi
  40833. +rm -f conftest*
  40834. -ac_ext=c
  40835. -ac_cpp='$CPP $CPPFLAGS'
  40836. -ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  40837. -ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  40838. -ac_compiler_gnu=$ac_cv_c_compiler_gnu
  40839. -
  40840. -CC="$lt_save_CC"
  40841. -
  40842. - ;;
  40843. -
  40844. - *)
  40845. - { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5
  40846. -echo "$as_me: error: Unsupported tag name: $tagname" >&2;}
  40847. - { (exit 1); exit 1; }; }
  40848. - ;;
  40849. - esac
  40850. -
  40851. - # Append the new tag name to the list of available tags.
  40852. - if test -n "$tagname" ; then
  40853. - available_tags="$available_tags $tagname"
  40854. - fi
  40855. - fi
  40856. - done
  40857. - IFS="$lt_save_ifs"
  40858. + if test $ac_cv_prog_gcc_traditional = no; then
  40859. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40860. +/* end confdefs.h. */
  40861. +#include <termio.h>
  40862. +Autoconf TCGETA
  40863. +_ACEOF
  40864. +if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  40865. + $EGREP "$ac_pattern" >/dev/null 2>&1; then :
  40866. + ac_cv_prog_gcc_traditional=yes
  40867. +fi
  40868. +rm -f conftest*
  40869. - # Now substitute the updated list of available tags.
  40870. - if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  40871. - mv "${ofile}T" "$ofile"
  40872. - chmod +x "$ofile"
  40873. - else
  40874. - rm -f "${ofile}T"
  40875. - { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5
  40876. -echo "$as_me: error: unable to update list of available tagged configurations." >&2;}
  40877. - { (exit 1); exit 1; }; }
  40878. + fi
  40879. +fi
  40880. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
  40881. +$as_echo "$ac_cv_prog_gcc_traditional" >&6; }
  40882. + if test $ac_cv_prog_gcc_traditional = yes; then
  40883. + CC="$CC -traditional"
  40884. fi
  40885. fi
  40886. +for ac_header in stdlib.h
  40887. +do :
  40888. + ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default"
  40889. +if test "x$ac_cv_header_stdlib_h" = x""yes; then :
  40890. + cat >>confdefs.h <<_ACEOF
  40891. +#define HAVE_STDLIB_H 1
  40892. +_ACEOF
  40893. +fi
  40894. -# This can be used to rebuild libtool when needed
  40895. -LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  40896. -
  40897. -# Always use our own libtool.
  40898. -LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  40899. -
  40900. -# Prevent multiple expansion
  40901. -
  40902. -
  40903. -
  40904. -
  40905. -
  40906. -
  40907. -
  40908. -
  40909. -
  40910. -
  40911. -
  40912. -
  40913. +done
  40914. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5
  40915. +$as_echo_n "checking for GNU libc compatible malloc... " >&6; }
  40916. +if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then :
  40917. + $as_echo_n "(cached) " >&6
  40918. +else
  40919. + if test "$cross_compiling" = yes; then :
  40920. + ac_cv_func_malloc_0_nonnull=no
  40921. +else
  40922. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40923. +/* end confdefs.h. */
  40924. +#if defined STDC_HEADERS || defined HAVE_STDLIB_H
  40925. +# include <stdlib.h>
  40926. +#else
  40927. +char *malloc ();
  40928. +#endif
  40929. +int
  40930. +main ()
  40931. +{
  40932. +return ! malloc (0);
  40933. + ;
  40934. + return 0;
  40935. +}
  40936. +_ACEOF
  40937. +if ac_fn_c_try_run "$LINENO"; then :
  40938. + ac_cv_func_malloc_0_nonnull=yes
  40939. +else
  40940. + ac_cv_func_malloc_0_nonnull=no
  40941. +fi
  40942. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  40943. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  40944. +fi
  40945. +fi
  40946. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5
  40947. +$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; }
  40948. +if test $ac_cv_func_malloc_0_nonnull = yes; then :
  40949. +$as_echo "#define HAVE_MALLOC 1" >>confdefs.h
  40950. +else
  40951. + $as_echo "#define HAVE_MALLOC 0" >>confdefs.h
  40952. + case " $LIBOBJS " in
  40953. + *" malloc.$ac_objext "* ) ;;
  40954. + *) LIBOBJS="$LIBOBJS malloc.$ac_objext"
  40955. + ;;
  40956. +esac
  40957. +$as_echo "#define malloc rpl_malloc" >>confdefs.h
  40958. +fi
  40959. -# Checks for libraries.
  40960. -# Checks for header files.
  40961. -echo "$as_me:$LINENO: checking for ANSI C header files" >&5
  40962. -echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
  40963. -if test "${ac_cv_header_stdc+set}" = set; then
  40964. - echo $ECHO_N "(cached) $ECHO_C" >&6
  40965. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working memcmp" >&5
  40966. +$as_echo_n "checking for working memcmp... " >&6; }
  40967. +if test "${ac_cv_func_memcmp_working+set}" = set; then :
  40968. + $as_echo_n "(cached) " >&6
  40969. else
  40970. - cat >conftest.$ac_ext <<_ACEOF
  40971. -/* confdefs.h. */
  40972. -_ACEOF
  40973. -cat confdefs.h >>conftest.$ac_ext
  40974. -cat >>conftest.$ac_ext <<_ACEOF
  40975. + if test "$cross_compiling" = yes; then :
  40976. + ac_cv_func_memcmp_working=no
  40977. +else
  40978. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  40979. /* end confdefs.h. */
  40980. -#include <stdlib.h>
  40981. -#include <stdarg.h>
  40982. -#include <string.h>
  40983. -#include <float.h>
  40984. -
  40985. +$ac_includes_default
  40986. int
  40987. main ()
  40988. {
  40989. + /* Some versions of memcmp are not 8-bit clean. */
  40990. + char c0 = '\100', c1 = '\200', c2 = '\201';
  40991. + if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  40992. + return 1;
  40993. +
  40994. + /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  40995. + or more and with at least one buffer not starting on a 4-byte boundary.
  40996. + William Lewis provided this test program. */
  40997. + {
  40998. + char foo[21];
  40999. + char bar[21];
  41000. + int i;
  41001. + for (i = 0; i < 4; i++)
  41002. + {
  41003. + char *a = foo + i;
  41004. + char *b = bar + i;
  41005. + strcpy (a, "--------01111111");
  41006. + strcpy (b, "--------10000000");
  41007. + if (memcmp (a, b, 16) >= 0)
  41008. + return 1;
  41009. + }
  41010. + return 0;
  41011. + }
  41012. +
  41013. ;
  41014. return 0;
  41015. }
  41016. _ACEOF
  41017. -rm -f conftest.$ac_objext
  41018. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41019. - (eval $ac_compile) 2>conftest.er1
  41020. - ac_status=$?
  41021. - grep -v '^ *+' conftest.er1 >conftest.err
  41022. - rm -f conftest.er1
  41023. - cat conftest.err >&5
  41024. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41025. - (exit $ac_status); } &&
  41026. - { ac_try='test -z "$ac_c_werror_flag"
  41027. - || test ! -s conftest.err'
  41028. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41029. - (eval $ac_try) 2>&5
  41030. - ac_status=$?
  41031. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41032. - (exit $ac_status); }; } &&
  41033. - { ac_try='test -s conftest.$ac_objext'
  41034. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41035. - (eval $ac_try) 2>&5
  41036. - ac_status=$?
  41037. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41038. - (exit $ac_status); }; }; then
  41039. - ac_cv_header_stdc=yes
  41040. +if ac_fn_c_try_run "$LINENO"; then :
  41041. + ac_cv_func_memcmp_working=yes
  41042. else
  41043. - echo "$as_me: failed program was:" >&5
  41044. -sed 's/^/| /' conftest.$ac_ext >&5
  41045. -
  41046. -ac_cv_header_stdc=no
  41047. + ac_cv_func_memcmp_working=no
  41048. fi
  41049. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41050. -
  41051. -if test $ac_cv_header_stdc = yes; then
  41052. - # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  41053. - cat >conftest.$ac_ext <<_ACEOF
  41054. -/* confdefs.h. */
  41055. -_ACEOF
  41056. -cat confdefs.h >>conftest.$ac_ext
  41057. -cat >>conftest.$ac_ext <<_ACEOF
  41058. -/* end confdefs.h. */
  41059. -#include <string.h>
  41060. -
  41061. -_ACEOF
  41062. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  41063. - $EGREP "memchr" >/dev/null 2>&1; then
  41064. - :
  41065. -else
  41066. - ac_cv_header_stdc=no
  41067. +rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  41068. + conftest.$ac_objext conftest.beam conftest.$ac_ext
  41069. fi
  41070. -rm -f conftest*
  41071. fi
  41072. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_memcmp_working" >&5
  41073. +$as_echo "$ac_cv_func_memcmp_working" >&6; }
  41074. +test $ac_cv_func_memcmp_working = no && case " $LIBOBJS " in
  41075. + *" memcmp.$ac_objext "* ) ;;
  41076. + *) LIBOBJS="$LIBOBJS memcmp.$ac_objext"
  41077. + ;;
  41078. +esac
  41079. -if test $ac_cv_header_stdc = yes; then
  41080. - # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  41081. - cat >conftest.$ac_ext <<_ACEOF
  41082. -/* confdefs.h. */
  41083. -_ACEOF
  41084. -cat confdefs.h >>conftest.$ac_ext
  41085. -cat >>conftest.$ac_ext <<_ACEOF
  41086. -/* end confdefs.h. */
  41087. -#include <stdlib.h>
  41088. -
  41089. -_ACEOF
  41090. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  41091. - $EGREP "free" >/dev/null 2>&1; then
  41092. - :
  41093. -else
  41094. - ac_cv_header_stdc=no
  41095. -fi
  41096. -rm -f conftest*
  41097. +
  41098. +for ac_header in sys/select.h sys/socket.h
  41099. +do :
  41100. + as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  41101. +ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
  41102. +eval as_val=\$$as_ac_Header
  41103. + if test "x$as_val" = x""yes; then :
  41104. + cat >>confdefs.h <<_ACEOF
  41105. +#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  41106. +_ACEOF
  41107. fi
  41108. -if test $ac_cv_header_stdc = yes; then
  41109. - # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  41110. - if test "$cross_compiling" = yes; then
  41111. - :
  41112. +done
  41113. +
  41114. +{ $as_echo "$as_me:${as_lineno-$LINENO}: checking types of arguments for select" >&5
  41115. +$as_echo_n "checking types of arguments for select... " >&6; }
  41116. +if test "${ac_cv_func_select_args+set}" = set; then :
  41117. + $as_echo_n "(cached) " >&6
  41118. else
  41119. - cat >conftest.$ac_ext <<_ACEOF
  41120. -/* confdefs.h. */
  41121. -_ACEOF
  41122. -cat confdefs.h >>conftest.$ac_ext
  41123. -cat >>conftest.$ac_ext <<_ACEOF
  41124. + for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  41125. + for ac_arg1 in 'int' 'size_t' 'unsigned long int' 'unsigned int'; do
  41126. + for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  41127. + cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  41128. /* end confdefs.h. */
  41129. -#include <ctype.h>
  41130. -#if ((' ' & 0x0FF) == 0x020)
  41131. -# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  41132. -# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  41133. -#else
  41134. -# define ISLOWER(c) \
  41135. - (('a' <= (c) && (c) <= 'i') \
  41136. - || ('j' <= (c) && (c) <= 'r') \
  41137. - || ('s' <= (c) && (c) <= 'z'))
  41138. -# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  41139. +$ac_includes_default
  41140. +#ifdef HAVE_SYS_SELECT_H
  41141. +# include <sys/select.h>
  41142. +#endif
  41143. +#ifdef HAVE_SYS_SOCKET_H
  41144. +# include <sys/socket.h>
  41145. #endif
  41146. -#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  41147. int
  41148. main ()
  41149. {
  41150. - int i;
  41151. - for (i = 0; i < 256; i++)
  41152. - if (XOR (islower (i), ISLOWER (i))
  41153. - || toupper (i) != TOUPPER (i))
  41154. - exit(2);
  41155. - exit (0);
  41156. +extern int select ($ac_arg1,
  41157. + $ac_arg234, $ac_arg234, $ac_arg234,
  41158. + $ac_arg5);
  41159. + ;
  41160. + return 0;
  41161. }
  41162. _ACEOF
  41163. -rm -f conftest$ac_exeext
  41164. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  41165. - (eval $ac_link) 2>&5
  41166. - ac_status=$?
  41167. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41168. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  41169. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41170. - (eval $ac_try) 2>&5
  41171. - ac_status=$?
  41172. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41173. - (exit $ac_status); }; }; then
  41174. - :
  41175. -else
  41176. - echo "$as_me: program exited with status $ac_status" >&5
  41177. -echo "$as_me: failed program was:" >&5
  41178. -sed 's/^/| /' conftest.$ac_ext >&5
  41179. -
  41180. -( exit $ac_status )
  41181. -ac_cv_header_stdc=no
  41182. -fi
  41183. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  41184. -fi
  41185. -fi
  41186. +if ac_fn_c_try_compile "$LINENO"; then :
  41187. + ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  41188. fi
  41189. -echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
  41190. -echo "${ECHO_T}$ac_cv_header_stdc" >&6
  41191. -if test $ac_cv_header_stdc = yes; then
  41192. -
  41193. -cat >>confdefs.h <<\_ACEOF
  41194. -#define STDC_HEADERS 1
  41195. -_ACEOF
  41196. +rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  41197. + done
  41198. + done
  41199. +done
  41200. +# Provide a safe default value.
  41201. +: ${ac_cv_func_select_args='int,int *,struct timeval *'}
  41202. fi
  41203. +{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_select_args" >&5
  41204. +$as_echo "$ac_cv_func_select_args" >&6; }
  41205. +ac_save_IFS=$IFS; IFS=','
  41206. +set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  41207. +IFS=$ac_save_IFS
  41208. +shift
  41209. +cat >>confdefs.h <<_ACEOF
  41210. +#define SELECT_TYPE_ARG1 $1
  41211. +_ACEOF
  41212. +cat >>confdefs.h <<_ACEOF
  41213. +#define SELECT_TYPE_ARG234 ($2)
  41214. +_ACEOF
  41215. +cat >>confdefs.h <<_ACEOF
  41216. +#define SELECT_TYPE_ARG5 ($3)
  41217. +_ACEOF
  41218. +rm -f conftest*
  41219. +for ac_func in gethostbyname gettimeofday inet_ntoa memset select socket strdup strerror strstr strtol
  41220. +do :
  41221. + as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
  41222. +ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
  41223. +eval as_val=\$$as_ac_var
  41224. + if test "x$as_val" = x""yes; then :
  41225. + cat >>confdefs.h <<_ACEOF
  41226. +#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
  41227. +_ACEOF
  41228. +fi
  41229. +done
  41230. +ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile chillispot.spec"
  41231. +cat >confcache <<\_ACEOF
  41232. +# This file is a shell script that caches the results of configure
  41233. +# tests run on this system so they can be shared between configure
  41234. +# scripts and configure runs, see configure's option --config-cache.
  41235. +# It is not useful on other systems. If it contains results you don't
  41236. +# want to keep, you may remove or edit it.
  41237. +#
  41238. +# config.status only pays attention to the cache file if you give it
  41239. +# the --recheck option to rerun configure.
  41240. +#
  41241. +# `ac_cv_env_foo' variables (set or unset) will be overridden when
  41242. +# loading this file, other *unset* `ac_cv_foo' will be assigned the
  41243. +# following values.
  41244. -
  41245. -for ac_header in arpa/inet.h fcntl.h netdb.h netinet/in.h stdint.h stdlib.h string.h sys/ioctl.h sys/socket.h sys/time.h syslog.h unistd.h
  41246. -do
  41247. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  41248. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  41249. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  41250. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  41251. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  41252. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41253. -fi
  41254. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  41255. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  41256. -else
  41257. - # Is the header compilable?
  41258. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  41259. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  41260. -cat >conftest.$ac_ext <<_ACEOF
  41261. -/* confdefs.h. */
  41262. -_ACEOF
  41263. -cat confdefs.h >>conftest.$ac_ext
  41264. -cat >>conftest.$ac_ext <<_ACEOF
  41265. -/* end confdefs.h. */
  41266. -$ac_includes_default
  41267. -#include <$ac_header>
  41268. _ACEOF
  41269. -rm -f conftest.$ac_objext
  41270. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41271. - (eval $ac_compile) 2>conftest.er1
  41272. - ac_status=$?
  41273. - grep -v '^ *+' conftest.er1 >conftest.err
  41274. - rm -f conftest.er1
  41275. - cat conftest.err >&5
  41276. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41277. - (exit $ac_status); } &&
  41278. - { ac_try='test -z "$ac_c_werror_flag"
  41279. - || test ! -s conftest.err'
  41280. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41281. - (eval $ac_try) 2>&5
  41282. - ac_status=$?
  41283. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41284. - (exit $ac_status); }; } &&
  41285. - { ac_try='test -s conftest.$ac_objext'
  41286. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41287. - (eval $ac_try) 2>&5
  41288. - ac_status=$?
  41289. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41290. - (exit $ac_status); }; }; then
  41291. - ac_header_compiler=yes
  41292. -else
  41293. - echo "$as_me: failed program was:" >&5
  41294. -sed 's/^/| /' conftest.$ac_ext >&5
  41295. -ac_header_compiler=no
  41296. -fi
  41297. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41298. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  41299. -echo "${ECHO_T}$ac_header_compiler" >&6
  41300. +# The following way of writing the cache mishandles newlines in values,
  41301. +# but we know of no workaround that is simple, portable, and efficient.
  41302. +# So, we kill variables containing newlines.
  41303. +# Ultrix sh set writes to stderr and can't be redirected directly,
  41304. +# and sets the high bit in the cache file unless we assign to the vars.
  41305. +(
  41306. + for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  41307. + eval ac_val=\$$ac_var
  41308. + case $ac_val in #(
  41309. + *${as_nl}*)
  41310. + case $ac_var in #(
  41311. + *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  41312. +$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  41313. + esac
  41314. + case $ac_var in #(
  41315. + _ | IFS | as_nl) ;; #(
  41316. + BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  41317. + *) { eval $ac_var=; unset $ac_var;} ;;
  41318. + esac ;;
  41319. + esac
  41320. + done
  41321. -# Is the header present?
  41322. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  41323. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  41324. -cat >conftest.$ac_ext <<_ACEOF
  41325. -/* confdefs.h. */
  41326. -_ACEOF
  41327. -cat confdefs.h >>conftest.$ac_ext
  41328. -cat >>conftest.$ac_ext <<_ACEOF
  41329. -/* end confdefs.h. */
  41330. -#include <$ac_header>
  41331. -_ACEOF
  41332. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  41333. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  41334. - ac_status=$?
  41335. - grep -v '^ *+' conftest.er1 >conftest.err
  41336. - rm -f conftest.er1
  41337. - cat conftest.err >&5
  41338. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41339. - (exit $ac_status); } >/dev/null; then
  41340. - if test -s conftest.err; then
  41341. - ac_cpp_err=$ac_c_preproc_warn_flag
  41342. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  41343. + (set) 2>&1 |
  41344. + case $as_nl`(ac_space=' '; set) 2>&1` in #(
  41345. + *${as_nl}ac_space=\ *)
  41346. + # `set' does not quote correctly, so add quotes: double-quote
  41347. + # substitution turns \\\\ into \\, and sed turns \\ into \.
  41348. + sed -n \
  41349. + "s/'/'\\\\''/g;
  41350. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  41351. + ;; #(
  41352. + *)
  41353. + # `set' quotes correctly as required by POSIX, so do not add quotes.
  41354. + sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  41355. + ;;
  41356. + esac |
  41357. + sort
  41358. +) |
  41359. + sed '
  41360. + /^ac_cv_env_/b end
  41361. + t clear
  41362. + :clear
  41363. + s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  41364. + t end
  41365. + s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  41366. + :end' >>confcache
  41367. +if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  41368. + if test -w "$cache_file"; then
  41369. + test "x$cache_file" != "x/dev/null" &&
  41370. + { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  41371. +$as_echo "$as_me: updating cache $cache_file" >&6;}
  41372. + cat confcache >$cache_file
  41373. else
  41374. - ac_cpp_err=
  41375. + { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  41376. +$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  41377. fi
  41378. -else
  41379. - ac_cpp_err=yes
  41380. fi
  41381. -if test -z "$ac_cpp_err"; then
  41382. - ac_header_preproc=yes
  41383. +rm -f confcache
  41384. +
  41385. +test "x$prefix" = xNONE && prefix=$ac_default_prefix
  41386. +# Let make expand exec_prefix.
  41387. +test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  41388. +
  41389. +DEFS=-DHAVE_CONFIG_H
  41390. +
  41391. +ac_libobjs=
  41392. +ac_ltlibobjs=
  41393. +for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  41394. + # 1. Remove the extension, and $U if already installed.
  41395. + ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  41396. + ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  41397. + # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  41398. + # will be set to the directory where LIBOBJS objects are built.
  41399. + as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  41400. + as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  41401. +done
  41402. +LIBOBJS=$ac_libobjs
  41403. +
  41404. +LTLIBOBJS=$ac_ltlibobjs
  41405. +
  41406. +
  41407. + if test -n "$EXEEXT"; then
  41408. + am__EXEEXT_TRUE=
  41409. + am__EXEEXT_FALSE='#'
  41410. else
  41411. - echo "$as_me: failed program was:" >&5
  41412. -sed 's/^/| /' conftest.$ac_ext >&5
  41413. + am__EXEEXT_TRUE='#'
  41414. + am__EXEEXT_FALSE=
  41415. +fi
  41416. - ac_header_preproc=no
  41417. +if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  41418. + as_fn_error "conditional \"AMDEP\" was never defined.
  41419. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  41420. +fi
  41421. +if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  41422. + as_fn_error "conditional \"am__fastdepCC\" was never defined.
  41423. +Usually this means the macro was only invoked conditionally." "$LINENO" 5
  41424. fi
  41425. -rm -f conftest.err conftest.$ac_ext
  41426. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  41427. -echo "${ECHO_T}$ac_header_preproc" >&6
  41428. -# So? What about this header?
  41429. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  41430. - yes:no: )
  41431. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  41432. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  41433. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  41434. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  41435. - ac_header_preproc=yes
  41436. - ;;
  41437. - no:yes:* )
  41438. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  41439. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  41440. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  41441. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  41442. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  41443. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  41444. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  41445. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  41446. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  41447. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  41448. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  41449. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  41450. - (
  41451. - cat <<\_ASBOX
  41452. -## ---------------------------------- ##
  41453. -## Report this to bugs@chillispot.org ##
  41454. -## ---------------------------------- ##
  41455. -_ASBOX
  41456. - ) |
  41457. - sed "s/^/$as_me: WARNING: /" >&2
  41458. - ;;
  41459. -esac
  41460. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  41461. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  41462. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  41463. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41464. +: ${CONFIG_STATUS=./config.status}
  41465. +ac_write_fail=0
  41466. +ac_clean_files_save=$ac_clean_files
  41467. +ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  41468. +{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  41469. +$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  41470. +as_write_fail=0
  41471. +cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  41472. +#! $SHELL
  41473. +# Generated by $as_me.
  41474. +# Run this file to recreate the current configuration.
  41475. +# Compiler output produced by configure, useful for debugging
  41476. +# configure, is in config.log if it exists.
  41477. +
  41478. +debug=false
  41479. +ac_cs_recheck=false
  41480. +ac_cs_silent=false
  41481. +
  41482. +SHELL=\${CONFIG_SHELL-$SHELL}
  41483. +export SHELL
  41484. +_ASEOF
  41485. +cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  41486. +## -------------------- ##
  41487. +## M4sh Initialization. ##
  41488. +## -------------------- ##
  41489. +
  41490. +# Be more Bourne compatible
  41491. +DUALCASE=1; export DUALCASE # for MKS sh
  41492. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  41493. + emulate sh
  41494. + NULLCMD=:
  41495. + # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  41496. + # is contrary to our usage. Disable this feature.
  41497. + alias -g '${1+"$@"}'='"$@"'
  41498. + setopt NO_GLOB_SUBST
  41499. else
  41500. - eval "$as_ac_Header=\$ac_header_preproc"
  41501. + case `(set -o) 2>/dev/null` in #(
  41502. + *posix*) :
  41503. + set -o posix ;; #(
  41504. + *) :
  41505. + ;;
  41506. +esac
  41507. fi
  41508. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  41509. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  41510. +
  41511. +as_nl='
  41512. +'
  41513. +export as_nl
  41514. +# Printing a long string crashes Solaris 7 /usr/bin/printf.
  41515. +as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  41516. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  41517. +as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  41518. +# Prefer a ksh shell builtin over an external printf program on Solaris,
  41519. +# but without wasting forks for bash or zsh.
  41520. +if test -z "$BASH_VERSION$ZSH_VERSION" \
  41521. + && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  41522. + as_echo='print -r --'
  41523. + as_echo_n='print -rn --'
  41524. +elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  41525. + as_echo='printf %s\n'
  41526. + as_echo_n='printf %s'
  41527. +else
  41528. + if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  41529. + as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  41530. + as_echo_n='/usr/ucb/echo -n'
  41531. + else
  41532. + as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  41533. + as_echo_n_body='eval
  41534. + arg=$1;
  41535. + case $arg in #(
  41536. + *"$as_nl"*)
  41537. + expr "X$arg" : "X\\(.*\\)$as_nl";
  41538. + arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  41539. + esac;
  41540. + expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  41541. + '
  41542. + export as_echo_n_body
  41543. + as_echo_n='sh -c $as_echo_n_body as_echo'
  41544. + fi
  41545. + export as_echo_body
  41546. + as_echo='sh -c $as_echo_body as_echo'
  41547. fi
  41548. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  41549. - cat >>confdefs.h <<_ACEOF
  41550. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  41551. -_ACEOF
  41552. +# The user is always right.
  41553. +if test "${PATH_SEPARATOR+set}" != set; then
  41554. + PATH_SEPARATOR=:
  41555. + (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  41556. + (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  41557. + PATH_SEPARATOR=';'
  41558. + }
  41559. fi
  41560. +
  41561. +# IFS
  41562. +# We need space, tab and new line, in precisely that order. Quoting is
  41563. +# there to prevent editors from complaining about space-tab.
  41564. +# (If _AS_PATH_WALK were called with IFS unset, it would disable word
  41565. +# splitting by setting IFS to empty value.)
  41566. +IFS=" "" $as_nl"
  41567. +
  41568. +# Find who we are. Look in the path if we contain no directory separator.
  41569. +case $0 in #((
  41570. + *[\\/]* ) as_myself=$0 ;;
  41571. + *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  41572. +for as_dir in $PATH
  41573. +do
  41574. + IFS=$as_save_IFS
  41575. + test -z "$as_dir" && as_dir=.
  41576. + test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  41577. + done
  41578. +IFS=$as_save_IFS
  41579. +
  41580. + ;;
  41581. +esac
  41582. +# We did not find ourselves, most probably we were run as `sh COMMAND'
  41583. +# in which case we are not to be found in the path.
  41584. +if test "x$as_myself" = x; then
  41585. + as_myself=$0
  41586. +fi
  41587. +if test ! -f "$as_myself"; then
  41588. + $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  41589. + exit 1
  41590. +fi
  41591. +
  41592. +# Unset variables that we do not need and which cause bugs (e.g. in
  41593. +# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  41594. +# suppresses any "Segmentation fault" message there. '((' could
  41595. +# trigger a bug in pdksh 5.2.14.
  41596. +for as_var in BASH_ENV ENV MAIL MAILPATH
  41597. +do eval test x\${$as_var+set} = xset \
  41598. + && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  41599. done
  41600. +PS1='$ '
  41601. +PS2='> '
  41602. +PS4='+ '
  41603. +# NLS nuisances.
  41604. +LC_ALL=C
  41605. +export LC_ALL
  41606. +LANGUAGE=C
  41607. +export LANGUAGE
  41608. -# Checks for typedefs, structures, and compiler characteristics.
  41609. -echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
  41610. -echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
  41611. -if test "${ac_cv_c_const+set}" = set; then
  41612. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41613. -else
  41614. - cat >conftest.$ac_ext <<_ACEOF
  41615. -/* confdefs.h. */
  41616. -_ACEOF
  41617. -cat confdefs.h >>conftest.$ac_ext
  41618. -cat >>conftest.$ac_ext <<_ACEOF
  41619. -/* end confdefs.h. */
  41620. +# CDPATH.
  41621. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  41622. -int
  41623. -main ()
  41624. -{
  41625. -/* FIXME: Include the comments suggested by Paul. */
  41626. -#ifndef __cplusplus
  41627. - /* Ultrix mips cc rejects this. */
  41628. - typedef int charset[2];
  41629. - const charset x;
  41630. - /* SunOS 4.1.1 cc rejects this. */
  41631. - char const *const *ccp;
  41632. - char **p;
  41633. - /* NEC SVR4.0.2 mips cc rejects this. */
  41634. - struct point {int x, y;};
  41635. - static struct point const zero = {0,0};
  41636. - /* AIX XL C 1.02.0.0 rejects this.
  41637. - It does not let you subtract one const X* pointer from another in
  41638. - an arm of an if-expression whose if-part is not a constant
  41639. - expression */
  41640. - const char *g = "string";
  41641. - ccp = &g + (g ? g-g : 0);
  41642. - /* HPUX 7.0 cc rejects these. */
  41643. - ++ccp;
  41644. - p = (char**) ccp;
  41645. - ccp = (char const *const *) p;
  41646. - { /* SCO 3.2v4 cc rejects this. */
  41647. - char *t;
  41648. - char const *s = 0 ? (char *) 0 : (char const *) 0;
  41649. - *t++ = 0;
  41650. - }
  41651. - { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  41652. - int x[] = {25, 17};
  41653. - const int *foo = &x[0];
  41654. - ++foo;
  41655. - }
  41656. - { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  41657. - typedef const int *iptr;
  41658. - iptr p = 0;
  41659. - ++p;
  41660. - }
  41661. - { /* AIX XL C 1.02.0.0 rejects this saying
  41662. - "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  41663. - struct s { int j; const int *ap[3]; };
  41664. - struct s *b; b->j = 5;
  41665. +# as_fn_error ERROR [LINENO LOG_FD]
  41666. +# ---------------------------------
  41667. +# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  41668. +# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  41669. +# script with status $?, using 1 if that was 0.
  41670. +as_fn_error ()
  41671. +{
  41672. + as_status=$?; test $as_status -eq 0 && as_status=1
  41673. + if test "$3"; then
  41674. + as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  41675. + $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
  41676. + fi
  41677. + $as_echo "$as_me: error: $1" >&2
  41678. + as_fn_exit $as_status
  41679. +} # as_fn_error
  41680. +
  41681. +
  41682. +# as_fn_set_status STATUS
  41683. +# -----------------------
  41684. +# Set $? to STATUS, without forking.
  41685. +as_fn_set_status ()
  41686. +{
  41687. + return $1
  41688. +} # as_fn_set_status
  41689. +
  41690. +# as_fn_exit STATUS
  41691. +# -----------------
  41692. +# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  41693. +as_fn_exit ()
  41694. +{
  41695. + set +e
  41696. + as_fn_set_status $1
  41697. + exit $1
  41698. +} # as_fn_exit
  41699. +
  41700. +# as_fn_unset VAR
  41701. +# ---------------
  41702. +# Portably unset VAR.
  41703. +as_fn_unset ()
  41704. +{
  41705. + { eval $1=; unset $1;}
  41706. +}
  41707. +as_unset=as_fn_unset
  41708. +# as_fn_append VAR VALUE
  41709. +# ----------------------
  41710. +# Append the text in VALUE to the end of the definition contained in VAR. Take
  41711. +# advantage of any shell optimizations that allow amortized linear growth over
  41712. +# repeated appends, instead of the typical quadratic growth present in naive
  41713. +# implementations.
  41714. +if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  41715. + eval 'as_fn_append ()
  41716. + {
  41717. + eval $1+=\$2
  41718. + }'
  41719. +else
  41720. + as_fn_append ()
  41721. + {
  41722. + eval $1=\$$1\$2
  41723. }
  41724. - { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  41725. - const int foo = 10;
  41726. +fi # as_fn_append
  41727. +
  41728. +# as_fn_arith ARG...
  41729. +# ------------------
  41730. +# Perform arithmetic evaluation on the ARGs, and store the result in the
  41731. +# global $as_val. Take advantage of shells that can avoid forks. The arguments
  41732. +# must be portable across $(()) and expr.
  41733. +if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  41734. + eval 'as_fn_arith ()
  41735. + {
  41736. + as_val=$(( $* ))
  41737. + }'
  41738. +else
  41739. + as_fn_arith ()
  41740. + {
  41741. + as_val=`expr "$@" || test $? -eq 1`
  41742. }
  41743. -#endif
  41744. +fi # as_fn_arith
  41745. - ;
  41746. - return 0;
  41747. -}
  41748. -_ACEOF
  41749. -rm -f conftest.$ac_objext
  41750. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41751. - (eval $ac_compile) 2>conftest.er1
  41752. - ac_status=$?
  41753. - grep -v '^ *+' conftest.er1 >conftest.err
  41754. - rm -f conftest.er1
  41755. - cat conftest.err >&5
  41756. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41757. - (exit $ac_status); } &&
  41758. - { ac_try='test -z "$ac_c_werror_flag"
  41759. - || test ! -s conftest.err'
  41760. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41761. - (eval $ac_try) 2>&5
  41762. - ac_status=$?
  41763. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41764. - (exit $ac_status); }; } &&
  41765. - { ac_try='test -s conftest.$ac_objext'
  41766. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41767. - (eval $ac_try) 2>&5
  41768. - ac_status=$?
  41769. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41770. - (exit $ac_status); }; }; then
  41771. - ac_cv_c_const=yes
  41772. +
  41773. +if expr a : '\(a\)' >/dev/null 2>&1 &&
  41774. + test "X`expr 00001 : '.*\(...\)'`" = X001; then
  41775. + as_expr=expr
  41776. else
  41777. - echo "$as_me: failed program was:" >&5
  41778. -sed 's/^/| /' conftest.$ac_ext >&5
  41779. + as_expr=false
  41780. +fi
  41781. -ac_cv_c_const=no
  41782. +if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  41783. + as_basename=basename
  41784. +else
  41785. + as_basename=false
  41786. fi
  41787. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41788. +
  41789. +if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  41790. + as_dirname=dirname
  41791. +else
  41792. + as_dirname=false
  41793. fi
  41794. -echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
  41795. -echo "${ECHO_T}$ac_cv_c_const" >&6
  41796. -if test $ac_cv_c_const = no; then
  41797. -cat >>confdefs.h <<\_ACEOF
  41798. -#define const
  41799. -_ACEOF
  41800. +as_me=`$as_basename -- "$0" ||
  41801. +$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  41802. + X"$0" : 'X\(//\)$' \| \
  41803. + X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  41804. +$as_echo X/"$0" |
  41805. + sed '/^.*\/\([^/][^/]*\)\/*$/{
  41806. + s//\1/
  41807. + q
  41808. + }
  41809. + /^X\/\(\/\/\)$/{
  41810. + s//\1/
  41811. + q
  41812. + }
  41813. + /^X\/\(\/\).*/{
  41814. + s//\1/
  41815. + q
  41816. + }
  41817. + s/.*/./; q'`
  41818. -fi
  41819. +# Avoid depending upon Character Ranges.
  41820. +as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  41821. +as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  41822. +as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  41823. +as_cr_digits='0123456789'
  41824. +as_cr_alnum=$as_cr_Letters$as_cr_digits
  41825. -echo "$as_me:$LINENO: checking for mode_t" >&5
  41826. -echo $ECHO_N "checking for mode_t... $ECHO_C" >&6
  41827. -if test "${ac_cv_type_mode_t+set}" = set; then
  41828. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41829. -else
  41830. - cat >conftest.$ac_ext <<_ACEOF
  41831. -/* confdefs.h. */
  41832. -_ACEOF
  41833. -cat confdefs.h >>conftest.$ac_ext
  41834. -cat >>conftest.$ac_ext <<_ACEOF
  41835. -/* end confdefs.h. */
  41836. -$ac_includes_default
  41837. -int
  41838. -main ()
  41839. -{
  41840. -if ((mode_t *) 0)
  41841. - return 0;
  41842. -if (sizeof (mode_t))
  41843. - return 0;
  41844. - ;
  41845. - return 0;
  41846. -}
  41847. -_ACEOF
  41848. -rm -f conftest.$ac_objext
  41849. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41850. - (eval $ac_compile) 2>conftest.er1
  41851. - ac_status=$?
  41852. - grep -v '^ *+' conftest.er1 >conftest.err
  41853. - rm -f conftest.er1
  41854. - cat conftest.err >&5
  41855. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41856. - (exit $ac_status); } &&
  41857. - { ac_try='test -z "$ac_c_werror_flag"
  41858. - || test ! -s conftest.err'
  41859. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41860. - (eval $ac_try) 2>&5
  41861. - ac_status=$?
  41862. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41863. - (exit $ac_status); }; } &&
  41864. - { ac_try='test -s conftest.$ac_objext'
  41865. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41866. - (eval $ac_try) 2>&5
  41867. - ac_status=$?
  41868. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41869. - (exit $ac_status); }; }; then
  41870. - ac_cv_type_mode_t=yes
  41871. -else
  41872. - echo "$as_me: failed program was:" >&5
  41873. -sed 's/^/| /' conftest.$ac_ext >&5
  41874. +ECHO_C= ECHO_N= ECHO_T=
  41875. +case `echo -n x` in #(((((
  41876. +-n*)
  41877. + case `echo 'xy\c'` in
  41878. + *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  41879. + xy) ECHO_C='\c';;
  41880. + *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  41881. + ECHO_T=' ';;
  41882. + esac;;
  41883. +*)
  41884. + ECHO_N='-n';;
  41885. +esac
  41886. -ac_cv_type_mode_t=no
  41887. -fi
  41888. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  41889. +rm -f conf$$ conf$$.exe conf$$.file
  41890. +if test -d conf$$.dir; then
  41891. + rm -f conf$$.dir/conf$$.file
  41892. +else
  41893. + rm -f conf$$.dir
  41894. + mkdir conf$$.dir 2>/dev/null
  41895. fi
  41896. -echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5
  41897. -echo "${ECHO_T}$ac_cv_type_mode_t" >&6
  41898. -if test $ac_cv_type_mode_t = yes; then
  41899. - :
  41900. +if (echo >conf$$.file) 2>/dev/null; then
  41901. + if ln -s conf$$.file conf$$ 2>/dev/null; then
  41902. + as_ln_s='ln -s'
  41903. + # ... but there are two gotchas:
  41904. + # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  41905. + # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  41906. + # In both cases, we have to default to `cp -p'.
  41907. + ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  41908. + as_ln_s='cp -p'
  41909. + elif ln conf$$.file conf$$ 2>/dev/null; then
  41910. + as_ln_s=ln
  41911. + else
  41912. + as_ln_s='cp -p'
  41913. + fi
  41914. else
  41915. -
  41916. -cat >>confdefs.h <<_ACEOF
  41917. -#define mode_t int
  41918. -_ACEOF
  41919. -
  41920. + as_ln_s='cp -p'
  41921. fi
  41922. +rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  41923. +rmdir conf$$.dir 2>/dev/null
  41924. -echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5
  41925. -echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6
  41926. -if test "${ac_cv_header_time+set}" = set; then
  41927. - echo $ECHO_N "(cached) $ECHO_C" >&6
  41928. -else
  41929. - cat >conftest.$ac_ext <<_ACEOF
  41930. -/* confdefs.h. */
  41931. -_ACEOF
  41932. -cat confdefs.h >>conftest.$ac_ext
  41933. -cat >>conftest.$ac_ext <<_ACEOF
  41934. -/* end confdefs.h. */
  41935. -#include <sys/types.h>
  41936. -#include <sys/time.h>
  41937. -#include <time.h>
  41938. -int
  41939. -main ()
  41940. +# as_fn_mkdir_p
  41941. +# -------------
  41942. +# Create "$as_dir" as a directory, including parents if necessary.
  41943. +as_fn_mkdir_p ()
  41944. {
  41945. -if ((struct tm *) 0)
  41946. -return 0;
  41947. - ;
  41948. - return 0;
  41949. -}
  41950. -_ACEOF
  41951. -rm -f conftest.$ac_objext
  41952. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  41953. - (eval $ac_compile) 2>conftest.er1
  41954. - ac_status=$?
  41955. - grep -v '^ *+' conftest.er1 >conftest.err
  41956. - rm -f conftest.er1
  41957. - cat conftest.err >&5
  41958. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41959. - (exit $ac_status); } &&
  41960. - { ac_try='test -z "$ac_c_werror_flag"
  41961. - || test ! -s conftest.err'
  41962. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41963. - (eval $ac_try) 2>&5
  41964. - ac_status=$?
  41965. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41966. - (exit $ac_status); }; } &&
  41967. - { ac_try='test -s conftest.$ac_objext'
  41968. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  41969. - (eval $ac_try) 2>&5
  41970. - ac_status=$?
  41971. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  41972. - (exit $ac_status); }; }; then
  41973. - ac_cv_header_time=yes
  41974. -else
  41975. - echo "$as_me: failed program was:" >&5
  41976. -sed 's/^/| /' conftest.$ac_ext >&5
  41977. -ac_cv_header_time=no
  41978. + case $as_dir in #(
  41979. + -*) as_dir=./$as_dir;;
  41980. + esac
  41981. + test -d "$as_dir" || eval $as_mkdir_p || {
  41982. + as_dirs=
  41983. + while :; do
  41984. + case $as_dir in #(
  41985. + *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  41986. + *) as_qdir=$as_dir;;
  41987. + esac
  41988. + as_dirs="'$as_qdir' $as_dirs"
  41989. + as_dir=`$as_dirname -- "$as_dir" ||
  41990. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  41991. + X"$as_dir" : 'X\(//\)[^/]' \| \
  41992. + X"$as_dir" : 'X\(//\)$' \| \
  41993. + X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  41994. +$as_echo X"$as_dir" |
  41995. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  41996. + s//\1/
  41997. + q
  41998. + }
  41999. + /^X\(\/\/\)[^/].*/{
  42000. + s//\1/
  42001. + q
  42002. + }
  42003. + /^X\(\/\/\)$/{
  42004. + s//\1/
  42005. + q
  42006. + }
  42007. + /^X\(\/\).*/{
  42008. + s//\1/
  42009. + q
  42010. + }
  42011. + s/.*/./; q'`
  42012. + test -d "$as_dir" && break
  42013. + done
  42014. + test -z "$as_dirs" || eval "mkdir $as_dirs"
  42015. + } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir"
  42016. +
  42017. +
  42018. +} # as_fn_mkdir_p
  42019. +if mkdir -p . 2>/dev/null; then
  42020. + as_mkdir_p='mkdir -p "$as_dir"'
  42021. +else
  42022. + test -d ./-p && rmdir ./-p
  42023. + as_mkdir_p=false
  42024. fi
  42025. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42026. +
  42027. +if test -x / >/dev/null 2>&1; then
  42028. + as_test_x='test -x'
  42029. +else
  42030. + if ls -dL / >/dev/null 2>&1; then
  42031. + as_ls_L_option=L
  42032. + else
  42033. + as_ls_L_option=
  42034. + fi
  42035. + as_test_x='
  42036. + eval sh -c '\''
  42037. + if test -d "$1"; then
  42038. + test -d "$1/.";
  42039. + else
  42040. + case $1 in #(
  42041. + -*)set "./$1";;
  42042. + esac;
  42043. + case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
  42044. + ???[sx]*):;;*)false;;esac;fi
  42045. + '\'' sh
  42046. + '
  42047. fi
  42048. -echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5
  42049. -echo "${ECHO_T}$ac_cv_header_time" >&6
  42050. -if test $ac_cv_header_time = yes; then
  42051. +as_executable_p=$as_test_x
  42052. -cat >>confdefs.h <<\_ACEOF
  42053. -#define TIME_WITH_SYS_TIME 1
  42054. -_ACEOF
  42055. +# Sed expression to map a string onto a valid CPP name.
  42056. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  42057. -fi
  42058. +# Sed expression to map a string onto a valid variable name.
  42059. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  42060. -# Checks for library functions.
  42061. -echo "$as_me:$LINENO: checking for pid_t" >&5
  42062. -echo $ECHO_N "checking for pid_t... $ECHO_C" >&6
  42063. -if test "${ac_cv_type_pid_t+set}" = set; then
  42064. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42065. -else
  42066. - cat >conftest.$ac_ext <<_ACEOF
  42067. -/* confdefs.h. */
  42068. -_ACEOF
  42069. -cat confdefs.h >>conftest.$ac_ext
  42070. -cat >>conftest.$ac_ext <<_ACEOF
  42071. -/* end confdefs.h. */
  42072. -$ac_includes_default
  42073. -int
  42074. -main ()
  42075. -{
  42076. -if ((pid_t *) 0)
  42077. - return 0;
  42078. -if (sizeof (pid_t))
  42079. - return 0;
  42080. - ;
  42081. - return 0;
  42082. -}
  42083. -_ACEOF
  42084. -rm -f conftest.$ac_objext
  42085. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42086. - (eval $ac_compile) 2>conftest.er1
  42087. - ac_status=$?
  42088. - grep -v '^ *+' conftest.er1 >conftest.err
  42089. - rm -f conftest.er1
  42090. - cat conftest.err >&5
  42091. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42092. - (exit $ac_status); } &&
  42093. - { ac_try='test -z "$ac_c_werror_flag"
  42094. - || test ! -s conftest.err'
  42095. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42096. - (eval $ac_try) 2>&5
  42097. - ac_status=$?
  42098. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42099. - (exit $ac_status); }; } &&
  42100. - { ac_try='test -s conftest.$ac_objext'
  42101. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42102. - (eval $ac_try) 2>&5
  42103. - ac_status=$?
  42104. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42105. - (exit $ac_status); }; }; then
  42106. - ac_cv_type_pid_t=yes
  42107. -else
  42108. - echo "$as_me: failed program was:" >&5
  42109. -sed 's/^/| /' conftest.$ac_ext >&5
  42110. +exec 6>&1
  42111. +## ----------------------------------- ##
  42112. +## Main body of $CONFIG_STATUS script. ##
  42113. +## ----------------------------------- ##
  42114. +_ASEOF
  42115. +test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  42116. -ac_cv_type_pid_t=no
  42117. -fi
  42118. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42119. -fi
  42120. -echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5
  42121. -echo "${ECHO_T}$ac_cv_type_pid_t" >&6
  42122. -if test $ac_cv_type_pid_t = yes; then
  42123. - :
  42124. -else
  42125. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42126. +# Save the log message, to keep $0 and so on meaningful, and to
  42127. +# report actual input values of CONFIG_FILES etc. instead of their
  42128. +# values after options handling.
  42129. +ac_log="
  42130. +This file was extended by chillispot $as_me 1.1.0, which was
  42131. +generated by GNU Autoconf 2.65. Invocation command line was
  42132. +
  42133. + CONFIG_FILES = $CONFIG_FILES
  42134. + CONFIG_HEADERS = $CONFIG_HEADERS
  42135. + CONFIG_LINKS = $CONFIG_LINKS
  42136. + CONFIG_COMMANDS = $CONFIG_COMMANDS
  42137. + $ $0 $@
  42138. +
  42139. +on `(hostname || uname -n) 2>/dev/null | sed 1q`
  42140. +"
  42141. -cat >>confdefs.h <<_ACEOF
  42142. -#define pid_t int
  42143. _ACEOF
  42144. -fi
  42145. +case $ac_config_files in *"
  42146. +"*) set x $ac_config_files; shift; ac_config_files=$*;;
  42147. +esac
  42148. +case $ac_config_headers in *"
  42149. +"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  42150. +esac
  42151. -for ac_header in unistd.h vfork.h
  42152. -do
  42153. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  42154. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  42155. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  42156. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  42157. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  42158. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42159. -fi
  42160. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  42161. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  42162. -else
  42163. - # Is the header compilable?
  42164. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  42165. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  42166. -cat >conftest.$ac_ext <<_ACEOF
  42167. -/* confdefs.h. */
  42168. -_ACEOF
  42169. -cat confdefs.h >>conftest.$ac_ext
  42170. -cat >>conftest.$ac_ext <<_ACEOF
  42171. -/* end confdefs.h. */
  42172. -$ac_includes_default
  42173. -#include <$ac_header>
  42174. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42175. +# Files that config.status was made for.
  42176. +config_files="$ac_config_files"
  42177. +config_headers="$ac_config_headers"
  42178. +config_commands="$ac_config_commands"
  42179. +
  42180. _ACEOF
  42181. -rm -f conftest.$ac_objext
  42182. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  42183. - (eval $ac_compile) 2>conftest.er1
  42184. - ac_status=$?
  42185. - grep -v '^ *+' conftest.er1 >conftest.err
  42186. - rm -f conftest.er1
  42187. - cat conftest.err >&5
  42188. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42189. - (exit $ac_status); } &&
  42190. - { ac_try='test -z "$ac_c_werror_flag"
  42191. - || test ! -s conftest.err'
  42192. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42193. - (eval $ac_try) 2>&5
  42194. - ac_status=$?
  42195. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42196. - (exit $ac_status); }; } &&
  42197. - { ac_try='test -s conftest.$ac_objext'
  42198. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42199. - (eval $ac_try) 2>&5
  42200. - ac_status=$?
  42201. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42202. - (exit $ac_status); }; }; then
  42203. - ac_header_compiler=yes
  42204. -else
  42205. - echo "$as_me: failed program was:" >&5
  42206. -sed 's/^/| /' conftest.$ac_ext >&5
  42207. -ac_header_compiler=no
  42208. -fi
  42209. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  42210. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  42211. -echo "${ECHO_T}$ac_header_compiler" >&6
  42212. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42213. +ac_cs_usage="\
  42214. +\`$as_me' instantiates files and other configuration actions
  42215. +from templates according to the current configuration. Unless the files
  42216. +and actions are specified as TAGs, all are instantiated by default.
  42217. +
  42218. +Usage: $0 [OPTION]... [TAG]...
  42219. +
  42220. + -h, --help print this help, then exit
  42221. + -V, --version print version number and configuration settings, then exit
  42222. + --config print configuration, then exit
  42223. + -q, --quiet, --silent
  42224. + do not print progress messages
  42225. + -d, --debug don't remove temporary files
  42226. + --recheck update $as_me by reconfiguring in the same conditions
  42227. + --file=FILE[:TEMPLATE]
  42228. + instantiate the configuration file FILE
  42229. + --header=FILE[:TEMPLATE]
  42230. + instantiate the configuration header FILE
  42231. +
  42232. +Configuration files:
  42233. +$config_files
  42234. +
  42235. +Configuration headers:
  42236. +$config_headers
  42237. +
  42238. +Configuration commands:
  42239. +$config_commands
  42240. +
  42241. +Report bugs to <bugs@chillispot.org>."
  42242. -# Is the header present?
  42243. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  42244. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  42245. -cat >conftest.$ac_ext <<_ACEOF
  42246. -/* confdefs.h. */
  42247. -_ACEOF
  42248. -cat confdefs.h >>conftest.$ac_ext
  42249. -cat >>conftest.$ac_ext <<_ACEOF
  42250. -/* end confdefs.h. */
  42251. -#include <$ac_header>
  42252. _ACEOF
  42253. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  42254. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  42255. - ac_status=$?
  42256. - grep -v '^ *+' conftest.er1 >conftest.err
  42257. - rm -f conftest.er1
  42258. - cat conftest.err >&5
  42259. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42260. - (exit $ac_status); } >/dev/null; then
  42261. - if test -s conftest.err; then
  42262. - ac_cpp_err=$ac_c_preproc_warn_flag
  42263. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  42264. - else
  42265. - ac_cpp_err=
  42266. - fi
  42267. -else
  42268. - ac_cpp_err=yes
  42269. -fi
  42270. -if test -z "$ac_cpp_err"; then
  42271. - ac_header_preproc=yes
  42272. -else
  42273. - echo "$as_me: failed program was:" >&5
  42274. -sed 's/^/| /' conftest.$ac_ext >&5
  42275. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42276. +ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  42277. +ac_cs_version="\\
  42278. +chillispot config.status 1.1.0
  42279. +configured by $0, generated by GNU Autoconf 2.65,
  42280. + with options \\"\$ac_cs_config\\"
  42281. - ac_header_preproc=no
  42282. -fi
  42283. -rm -f conftest.err conftest.$ac_ext
  42284. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  42285. -echo "${ECHO_T}$ac_header_preproc" >&6
  42286. +Copyright (C) 2009 Free Software Foundation, Inc.
  42287. +This config.status script is free software; the Free Software Foundation
  42288. +gives unlimited permission to copy, distribute and modify it."
  42289. -# So? What about this header?
  42290. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  42291. - yes:no: )
  42292. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  42293. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  42294. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  42295. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  42296. - ac_header_preproc=yes
  42297. +ac_pwd='$ac_pwd'
  42298. +srcdir='$srcdir'
  42299. +INSTALL='$INSTALL'
  42300. +MKDIR_P='$MKDIR_P'
  42301. +AWK='$AWK'
  42302. +test -n "\$AWK" || AWK=awk
  42303. +_ACEOF
  42304. +
  42305. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42306. +# The default lists apply if the user does not specify any file.
  42307. +ac_need_defaults=:
  42308. +while test $# != 0
  42309. +do
  42310. + case $1 in
  42311. + --*=*)
  42312. + ac_option=`expr "X$1" : 'X\([^=]*\)='`
  42313. + ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  42314. + ac_shift=:
  42315. ;;
  42316. - no:yes:* )
  42317. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  42318. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  42319. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  42320. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  42321. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  42322. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  42323. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  42324. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  42325. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  42326. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  42327. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  42328. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  42329. - (
  42330. - cat <<\_ASBOX
  42331. -## ---------------------------------- ##
  42332. -## Report this to bugs@chillispot.org ##
  42333. -## ---------------------------------- ##
  42334. -_ASBOX
  42335. - ) |
  42336. - sed "s/^/$as_me: WARNING: /" >&2
  42337. + *)
  42338. + ac_option=$1
  42339. + ac_optarg=$2
  42340. + ac_shift=shift
  42341. ;;
  42342. -esac
  42343. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  42344. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  42345. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  42346. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42347. -else
  42348. - eval "$as_ac_Header=\$ac_header_preproc"
  42349. -fi
  42350. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  42351. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  42352. + esac
  42353. -fi
  42354. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  42355. - cat >>confdefs.h <<_ACEOF
  42356. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  42357. -_ACEOF
  42358. + case $ac_option in
  42359. + # Handling of the options.
  42360. + -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  42361. + ac_cs_recheck=: ;;
  42362. + --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  42363. + $as_echo "$ac_cs_version"; exit ;;
  42364. + --config | --confi | --conf | --con | --co | --c )
  42365. + $as_echo "$ac_cs_config"; exit ;;
  42366. + --debug | --debu | --deb | --de | --d | -d )
  42367. + debug=: ;;
  42368. + --file | --fil | --fi | --f )
  42369. + $ac_shift
  42370. + case $ac_optarg in
  42371. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  42372. + esac
  42373. + as_fn_append CONFIG_FILES " '$ac_optarg'"
  42374. + ac_need_defaults=false;;
  42375. + --header | --heade | --head | --hea )
  42376. + $ac_shift
  42377. + case $ac_optarg in
  42378. + *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  42379. + esac
  42380. + as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  42381. + ac_need_defaults=false;;
  42382. + --he | --h)
  42383. + # Conflict between --help and --header
  42384. + as_fn_error "ambiguous option: \`$1'
  42385. +Try \`$0 --help' for more information.";;
  42386. + --help | --hel | -h )
  42387. + $as_echo "$ac_cs_usage"; exit ;;
  42388. + -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  42389. + | -silent | --silent | --silen | --sile | --sil | --si | --s)
  42390. + ac_cs_silent=: ;;
  42391. -fi
  42392. + # This is an error.
  42393. + -*) as_fn_error "unrecognized option: \`$1'
  42394. +Try \`$0 --help' for more information." ;;
  42395. +
  42396. + *) as_fn_append ac_config_targets " $1"
  42397. + ac_need_defaults=false ;;
  42398. + esac
  42399. + shift
  42400. done
  42401. +ac_configure_extra_args=
  42402. +if $ac_cs_silent; then
  42403. + exec 6>/dev/null
  42404. + ac_configure_extra_args="$ac_configure_extra_args --silent"
  42405. +fi
  42406. -for ac_func in fork vfork
  42407. -do
  42408. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  42409. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  42410. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  42411. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  42412. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42413. -else
  42414. - cat >conftest.$ac_ext <<_ACEOF
  42415. -/* confdefs.h. */
  42416. _ACEOF
  42417. -cat confdefs.h >>conftest.$ac_ext
  42418. -cat >>conftest.$ac_ext <<_ACEOF
  42419. -/* end confdefs.h. */
  42420. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  42421. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  42422. -#define $ac_func innocuous_$ac_func
  42423. -
  42424. -/* System header to define __stub macros and hopefully few prototypes,
  42425. - which can conflict with char $ac_func (); below.
  42426. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  42427. - <limits.h> exists even on freestanding compilers. */
  42428. -
  42429. -#ifdef __STDC__
  42430. -# include <limits.h>
  42431. -#else
  42432. -# include <assert.h>
  42433. -#endif
  42434. -
  42435. -#undef $ac_func
  42436. -
  42437. -/* Override any gcc2 internal prototype to avoid an error. */
  42438. -#ifdef __cplusplus
  42439. -extern "C"
  42440. -{
  42441. -#endif
  42442. -/* We use char because int might match the return type of a gcc2
  42443. - builtin and then its argument prototype would still apply. */
  42444. -char $ac_func ();
  42445. -/* The GNU C library defines this for functions which it implements
  42446. - to always fail with ENOSYS. Some functions are actually named
  42447. - something starting with __ and the normal name is an alias. */
  42448. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  42449. -choke me
  42450. -#else
  42451. -char (*f) () = $ac_func;
  42452. -#endif
  42453. -#ifdef __cplusplus
  42454. -}
  42455. -#endif
  42456. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42457. +if \$ac_cs_recheck; then
  42458. + set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  42459. + shift
  42460. + \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  42461. + CONFIG_SHELL='$SHELL'
  42462. + export CONFIG_SHELL
  42463. + exec "\$@"
  42464. +fi
  42465. -int
  42466. -main ()
  42467. -{
  42468. -return f != $ac_func;
  42469. - ;
  42470. - return 0;
  42471. -}
  42472. _ACEOF
  42473. -rm -f conftest.$ac_objext conftest$ac_exeext
  42474. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42475. - (eval $ac_link) 2>conftest.er1
  42476. - ac_status=$?
  42477. - grep -v '^ *+' conftest.er1 >conftest.err
  42478. - rm -f conftest.er1
  42479. - cat conftest.err >&5
  42480. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42481. - (exit $ac_status); } &&
  42482. - { ac_try='test -z "$ac_c_werror_flag"
  42483. - || test ! -s conftest.err'
  42484. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42485. - (eval $ac_try) 2>&5
  42486. - ac_status=$?
  42487. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42488. - (exit $ac_status); }; } &&
  42489. - { ac_try='test -s conftest$ac_exeext'
  42490. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42491. - (eval $ac_try) 2>&5
  42492. - ac_status=$?
  42493. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42494. - (exit $ac_status); }; }; then
  42495. - eval "$as_ac_var=yes"
  42496. -else
  42497. - echo "$as_me: failed program was:" >&5
  42498. -sed 's/^/| /' conftest.$ac_ext >&5
  42499. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42500. +exec 5>>config.log
  42501. +{
  42502. + echo
  42503. + sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  42504. +## Running $as_me. ##
  42505. +_ASBOX
  42506. + $as_echo "$ac_log"
  42507. +} >&5
  42508. -eval "$as_ac_var=no"
  42509. -fi
  42510. -rm -f conftest.err conftest.$ac_objext \
  42511. - conftest$ac_exeext conftest.$ac_ext
  42512. -fi
  42513. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  42514. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  42515. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  42516. - cat >>confdefs.h <<_ACEOF
  42517. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  42518. _ACEOF
  42519. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  42520. +#
  42521. +# INIT-COMMANDS
  42522. +#
  42523. +AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  42524. -fi
  42525. -done
  42526. -if test "x$ac_cv_func_fork" = xyes; then
  42527. - echo "$as_me:$LINENO: checking for working fork" >&5
  42528. -echo $ECHO_N "checking for working fork... $ECHO_C" >&6
  42529. -if test "${ac_cv_func_fork_works+set}" = set; then
  42530. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42531. -else
  42532. - if test "$cross_compiling" = yes; then
  42533. - ac_cv_func_fork_works=cross
  42534. -else
  42535. - cat >conftest.$ac_ext <<_ACEOF
  42536. -/* By Ruediger Kuhlmann. */
  42537. - #include <sys/types.h>
  42538. - #if HAVE_UNISTD_H
  42539. - # include <unistd.h>
  42540. - #endif
  42541. - /* Some systems only have a dummy stub for fork() */
  42542. - int main ()
  42543. - {
  42544. - if (fork() < 0)
  42545. - exit (1);
  42546. - exit (0);
  42547. - }
  42548. -_ACEOF
  42549. -rm -f conftest$ac_exeext
  42550. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42551. - (eval $ac_link) 2>&5
  42552. - ac_status=$?
  42553. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42554. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  42555. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42556. - (eval $ac_try) 2>&5
  42557. - ac_status=$?
  42558. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42559. - (exit $ac_status); }; }; then
  42560. - ac_cv_func_fork_works=yes
  42561. -else
  42562. - echo "$as_me: program exited with status $ac_status" >&5
  42563. -echo "$as_me: failed program was:" >&5
  42564. -sed 's/^/| /' conftest.$ac_ext >&5
  42565. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  42566. +# if CDPATH is set.
  42567. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  42568. -( exit $ac_status )
  42569. -ac_cv_func_fork_works=no
  42570. -fi
  42571. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  42572. -fi
  42573. -fi
  42574. -echo "$as_me:$LINENO: result: $ac_cv_func_fork_works" >&5
  42575. -echo "${ECHO_T}$ac_cv_func_fork_works" >&6
  42576. +sed_quote_subst='$sed_quote_subst'
  42577. +double_quote_subst='$double_quote_subst'
  42578. +delay_variable_subst='$delay_variable_subst'
  42579. +macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`'
  42580. +macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`'
  42581. +enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`'
  42582. +enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`'
  42583. +pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`'
  42584. +enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`'
  42585. +host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`'
  42586. +host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`'
  42587. +host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`'
  42588. +build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`'
  42589. +build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`'
  42590. +build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`'
  42591. +SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`'
  42592. +Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`'
  42593. +GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`'
  42594. +EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`'
  42595. +FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`'
  42596. +LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`'
  42597. +NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`'
  42598. +LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`'
  42599. +max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`'
  42600. +ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`'
  42601. +exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`'
  42602. +lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`'
  42603. +lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`'
  42604. +lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`'
  42605. +reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`'
  42606. +reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42607. +OBJDUMP='`$ECHO "X$OBJDUMP" | $Xsed -e "$delay_single_quote_subst"`'
  42608. +deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`'
  42609. +file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`'
  42610. +AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`'
  42611. +AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  42612. +STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`'
  42613. +RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`'
  42614. +old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42615. +old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42616. +old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42617. +CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`'
  42618. +CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`'
  42619. +compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`'
  42620. +GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`'
  42621. +lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`'
  42622. +lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`'
  42623. +lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`'
  42624. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  42625. +objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`'
  42626. +SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`'
  42627. +ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`'
  42628. +MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`'
  42629. +lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`'
  42630. +lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`'
  42631. +lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`'
  42632. +lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`'
  42633. +lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`'
  42634. +need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`'
  42635. +DSYMUTIL='`$ECHO "X$DSYMUTIL" | $Xsed -e "$delay_single_quote_subst"`'
  42636. +NMEDIT='`$ECHO "X$NMEDIT" | $Xsed -e "$delay_single_quote_subst"`'
  42637. +LIPO='`$ECHO "X$LIPO" | $Xsed -e "$delay_single_quote_subst"`'
  42638. +OTOOL='`$ECHO "X$OTOOL" | $Xsed -e "$delay_single_quote_subst"`'
  42639. +OTOOL64='`$ECHO "X$OTOOL64" | $Xsed -e "$delay_single_quote_subst"`'
  42640. +libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`'
  42641. +shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42642. +extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42643. +archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`'
  42644. +enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`'
  42645. +export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42646. +whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42647. +compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`'
  42648. +old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42649. +old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42650. +archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42651. +archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42652. +module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42653. +module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42654. +with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`'
  42655. +allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  42656. +no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`'
  42657. +hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42658. +hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`'
  42659. +hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`'
  42660. +hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`'
  42661. +hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`'
  42662. +hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`'
  42663. +hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  42664. +hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`'
  42665. +inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`'
  42666. +link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`'
  42667. +fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`'
  42668. +always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`'
  42669. +export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42670. +exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  42671. +include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`'
  42672. +prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42673. +file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42674. +variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`'
  42675. +need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`'
  42676. +need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`'
  42677. +version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`'
  42678. +runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  42679. +shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`'
  42680. +shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`'
  42681. +libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42682. +library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42683. +soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42684. +postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42685. +postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42686. +finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`'
  42687. +finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`'
  42688. +hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`'
  42689. +sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42690. +sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`'
  42691. +hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`'
  42692. +enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`'
  42693. +enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`'
  42694. +enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`'
  42695. +old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`'
  42696. +striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`'
  42697. +
  42698. +LTCC='$LTCC'
  42699. +LTCFLAGS='$LTCFLAGS'
  42700. +compiler='$compiler_DEFAULT'
  42701. +
  42702. +# Quote evaled strings.
  42703. +for var in SED \
  42704. +GREP \
  42705. +EGREP \
  42706. +FGREP \
  42707. +LD \
  42708. +NM \
  42709. +LN_S \
  42710. +lt_SP2NL \
  42711. +lt_NL2SP \
  42712. +reload_flag \
  42713. +OBJDUMP \
  42714. +deplibs_check_method \
  42715. +file_magic_cmd \
  42716. +AR \
  42717. +AR_FLAGS \
  42718. +STRIP \
  42719. +RANLIB \
  42720. +CC \
  42721. +CFLAGS \
  42722. +compiler \
  42723. +lt_cv_sys_global_symbol_pipe \
  42724. +lt_cv_sys_global_symbol_to_cdecl \
  42725. +lt_cv_sys_global_symbol_to_c_name_address \
  42726. +lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  42727. +SHELL \
  42728. +ECHO \
  42729. +lt_prog_compiler_no_builtin_flag \
  42730. +lt_prog_compiler_wl \
  42731. +lt_prog_compiler_pic \
  42732. +lt_prog_compiler_static \
  42733. +lt_cv_prog_compiler_c_o \
  42734. +need_locks \
  42735. +DSYMUTIL \
  42736. +NMEDIT \
  42737. +LIPO \
  42738. +OTOOL \
  42739. +OTOOL64 \
  42740. +shrext_cmds \
  42741. +export_dynamic_flag_spec \
  42742. +whole_archive_flag_spec \
  42743. +compiler_needs_object \
  42744. +with_gnu_ld \
  42745. +allow_undefined_flag \
  42746. +no_undefined_flag \
  42747. +hardcode_libdir_flag_spec \
  42748. +hardcode_libdir_flag_spec_ld \
  42749. +hardcode_libdir_separator \
  42750. +fix_srcfile_path \
  42751. +exclude_expsyms \
  42752. +include_expsyms \
  42753. +file_list_spec \
  42754. +variables_saved_for_relink \
  42755. +libname_spec \
  42756. +library_names_spec \
  42757. +soname_spec \
  42758. +finish_eval \
  42759. +old_striplib \
  42760. +striplib; do
  42761. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  42762. + *[\\\\\\\`\\"\\\$]*)
  42763. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  42764. + ;;
  42765. + *)
  42766. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  42767. + ;;
  42768. + esac
  42769. +done
  42770. -else
  42771. - ac_cv_func_fork_works=$ac_cv_func_fork
  42772. -fi
  42773. -if test "x$ac_cv_func_fork_works" = xcross; then
  42774. - case $host in
  42775. - *-*-amigaos* | *-*-msdosdjgpp*)
  42776. - # Override, as these systems have only a dummy fork() stub
  42777. - ac_cv_func_fork_works=no
  42778. +# Double-quote double-evaled strings.
  42779. +for var in reload_cmds \
  42780. +old_postinstall_cmds \
  42781. +old_postuninstall_cmds \
  42782. +old_archive_cmds \
  42783. +extract_expsyms_cmds \
  42784. +old_archive_from_new_cmds \
  42785. +old_archive_from_expsyms_cmds \
  42786. +archive_cmds \
  42787. +archive_expsym_cmds \
  42788. +module_cmds \
  42789. +module_expsym_cmds \
  42790. +export_symbols_cmds \
  42791. +prelink_cmds \
  42792. +postinstall_cmds \
  42793. +postuninstall_cmds \
  42794. +finish_cmds \
  42795. +sys_lib_search_path_spec \
  42796. +sys_lib_dlsearch_path_spec; do
  42797. + case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in
  42798. + *[\\\\\\\`\\"\\\$]*)
  42799. + eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  42800. ;;
  42801. *)
  42802. - ac_cv_func_fork_works=yes
  42803. + eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  42804. ;;
  42805. - esac
  42806. - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5
  42807. -echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;}
  42808. -fi
  42809. -ac_cv_func_vfork_works=$ac_cv_func_vfork
  42810. -if test "x$ac_cv_func_vfork" = xyes; then
  42811. - echo "$as_me:$LINENO: checking for working vfork" >&5
  42812. -echo $ECHO_N "checking for working vfork... $ECHO_C" >&6
  42813. -if test "${ac_cv_func_vfork_works+set}" = set; then
  42814. - echo $ECHO_N "(cached) $ECHO_C" >&6
  42815. -else
  42816. - if test "$cross_compiling" = yes; then
  42817. - ac_cv_func_vfork_works=cross
  42818. -else
  42819. - cat >conftest.$ac_ext <<_ACEOF
  42820. -/* confdefs.h. */
  42821. -_ACEOF
  42822. -cat confdefs.h >>conftest.$ac_ext
  42823. -cat >>conftest.$ac_ext <<_ACEOF
  42824. -/* end confdefs.h. */
  42825. -/* Thanks to Paul Eggert for this test. */
  42826. -#include <stdio.h>
  42827. -#include <stdlib.h>
  42828. -#include <sys/types.h>
  42829. -#include <sys/stat.h>
  42830. -#include <sys/wait.h>
  42831. -#if HAVE_UNISTD_H
  42832. -# include <unistd.h>
  42833. -#endif
  42834. -#if HAVE_VFORK_H
  42835. -# include <vfork.h>
  42836. -#endif
  42837. -/* On some sparc systems, changes by the child to local and incoming
  42838. - argument registers are propagated back to the parent. The compiler
  42839. - is told about this with #include <vfork.h>, but some compilers
  42840. - (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a
  42841. - static variable whose address is put into a register that is
  42842. - clobbered by the vfork. */
  42843. -static void
  42844. -#ifdef __cplusplus
  42845. -sparc_address_test (int arg)
  42846. -# else
  42847. -sparc_address_test (arg) int arg;
  42848. -#endif
  42849. -{
  42850. - static pid_t child;
  42851. - if (!child) {
  42852. - child = vfork ();
  42853. - if (child < 0) {
  42854. - perror ("vfork");
  42855. - _exit(2);
  42856. - }
  42857. - if (!child) {
  42858. - arg = getpid();
  42859. - write(-1, "", 0);
  42860. - _exit (arg);
  42861. - }
  42862. - }
  42863. -}
  42864. + esac
  42865. +done
  42866. -int
  42867. -main ()
  42868. -{
  42869. - pid_t parent = getpid ();
  42870. - pid_t child;
  42871. +# Fix-up fallback echo if it was mangled by the above quoting rules.
  42872. +case \$lt_ECHO in
  42873. +*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\`
  42874. + ;;
  42875. +esac
  42876. - sparc_address_test (0);
  42877. +ac_aux_dir='$ac_aux_dir'
  42878. +xsi_shell='$xsi_shell'
  42879. +lt_shell_append='$lt_shell_append'
  42880. - child = vfork ();
  42881. +# See if we are running on zsh, and set the options which allow our
  42882. +# commands through without removal of \ escapes INIT.
  42883. +if test -n "\${ZSH_VERSION+set}" ; then
  42884. + setopt NO_GLOB_SUBST
  42885. +fi
  42886. - if (child == 0) {
  42887. - /* Here is another test for sparc vfork register problems. This
  42888. - test uses lots of local variables, at least as many local
  42889. - variables as main has allocated so far including compiler
  42890. - temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris
  42891. - 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should
  42892. - reuse the register of parent for one of the local variables,
  42893. - since it will think that parent can't possibly be used any more
  42894. - in this routine. Assigning to the local variable will thus
  42895. - munge parent in the parent process. */
  42896. - pid_t
  42897. - p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(),
  42898. - p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid();
  42899. - /* Convince the compiler that p..p7 are live; otherwise, it might
  42900. - use the same hardware register for all 8 local variables. */
  42901. - if (p != p1 || p != p2 || p != p3 || p != p4
  42902. - || p != p5 || p != p6 || p != p7)
  42903. - _exit(1);
  42904. - /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent
  42905. - from child file descriptors. If the child closes a descriptor
  42906. - before it execs or exits, this munges the parent's descriptor
  42907. - as well. Test for this by closing stdout in the child. */
  42908. - _exit(close(fileno(stdout)) != 0);
  42909. - } else {
  42910. - int status;
  42911. - struct stat st;
  42912. + PACKAGE='$PACKAGE'
  42913. + VERSION='$VERSION'
  42914. + TIMESTAMP='$TIMESTAMP'
  42915. + RM='$RM'
  42916. + ofile='$ofile'
  42917. - while (wait(&status) != child)
  42918. - ;
  42919. - exit(
  42920. - /* Was there some problem with vforking? */
  42921. - child < 0
  42922. - /* Did the child fail? (This shouldn't happen.) */
  42923. - || status
  42924. - /* Did the vfork/compiler bug occur? */
  42925. - || parent != getpid()
  42926. - /* Did the file descriptor bug occur? */
  42927. - || fstat(fileno(stdout), &st) != 0
  42928. - );
  42929. - }
  42930. -}
  42931. _ACEOF
  42932. -rm -f conftest$ac_exeext
  42933. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  42934. - (eval $ac_link) 2>&5
  42935. - ac_status=$?
  42936. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42937. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  42938. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  42939. - (eval $ac_try) 2>&5
  42940. - ac_status=$?
  42941. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  42942. - (exit $ac_status); }; }; then
  42943. - ac_cv_func_vfork_works=yes
  42944. -else
  42945. - echo "$as_me: program exited with status $ac_status" >&5
  42946. -echo "$as_me: failed program was:" >&5
  42947. -sed 's/^/| /' conftest.$ac_ext >&5
  42948. -( exit $ac_status )
  42949. -ac_cv_func_vfork_works=no
  42950. -fi
  42951. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  42952. -fi
  42953. -fi
  42954. -echo "$as_me:$LINENO: result: $ac_cv_func_vfork_works" >&5
  42955. -echo "${ECHO_T}$ac_cv_func_vfork_works" >&6
  42956. -
  42957. -fi;
  42958. -if test "x$ac_cv_func_fork_works" = xcross; then
  42959. - ac_cv_func_vfork_works=$ac_cv_func_vfork
  42960. - { echo "$as_me:$LINENO: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5
  42961. -echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;}
  42962. -fi
  42963. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  42964. -if test "x$ac_cv_func_vfork_works" = xyes; then
  42965. -
  42966. -cat >>confdefs.h <<\_ACEOF
  42967. -#define HAVE_WORKING_VFORK 1
  42968. -_ACEOF
  42969. +# Handling of arguments.
  42970. +for ac_config_target in $ac_config_targets
  42971. +do
  42972. + case $ac_config_target in
  42973. + "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  42974. + "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  42975. + "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  42976. + "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  42977. + "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  42978. + "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  42979. + "chillispot.spec") CONFIG_FILES="$CONFIG_FILES chillispot.spec" ;;
  42980. -else
  42981. + *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  42982. + esac
  42983. +done
  42984. -cat >>confdefs.h <<\_ACEOF
  42985. -#define vfork fork
  42986. -_ACEOF
  42987. +# If the user did not use the arguments to specify the items to instantiate,
  42988. +# then the envvar interface is used. Set only those that are not.
  42989. +# We use the long form for the default assignment because of an extremely
  42990. +# bizarre bug on SunOS 4.1.3.
  42991. +if $ac_need_defaults; then
  42992. + test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  42993. + test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  42994. + test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  42995. fi
  42996. -if test "x$ac_cv_func_fork_works" = xyes; then
  42997. -
  42998. -cat >>confdefs.h <<\_ACEOF
  42999. -#define HAVE_WORKING_FORK 1
  43000. -_ACEOF
  43001. -fi
  43002. +# Have a temporary directory for convenience. Make it in the build tree
  43003. +# simply because there is no reason against having it here, and in addition,
  43004. +# creating and moving files from /tmp can sometimes cause problems.
  43005. +# Hook for its removal unless debugging.
  43006. +# Note that there is a small window in which the directory will not be cleaned:
  43007. +# after its creation but before its name has been assigned to `$tmp'.
  43008. +$debug ||
  43009. +{
  43010. + tmp=
  43011. + trap 'exit_status=$?
  43012. + { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
  43013. +' 0
  43014. + trap 'as_fn_exit 1' 1 2 13 15
  43015. +}
  43016. +# Create a (secure) tmp directory for tmp files.
  43017. -if test $ac_cv_c_compiler_gnu = yes; then
  43018. - echo "$as_me:$LINENO: checking whether $CC needs -traditional" >&5
  43019. -echo $ECHO_N "checking whether $CC needs -traditional... $ECHO_C" >&6
  43020. -if test "${ac_cv_prog_gcc_traditional+set}" = set; then
  43021. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43022. -else
  43023. - ac_pattern="Autoconf.*'x'"
  43024. - cat >conftest.$ac_ext <<_ACEOF
  43025. -/* confdefs.h. */
  43026. -_ACEOF
  43027. -cat confdefs.h >>conftest.$ac_ext
  43028. -cat >>conftest.$ac_ext <<_ACEOF
  43029. -/* end confdefs.h. */
  43030. -#include <sgtty.h>
  43031. -Autoconf TIOCGETP
  43032. -_ACEOF
  43033. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  43034. - $EGREP "$ac_pattern" >/dev/null 2>&1; then
  43035. - ac_cv_prog_gcc_traditional=yes
  43036. +{
  43037. + tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  43038. + test -n "$tmp" && test -d "$tmp"
  43039. +} ||
  43040. +{
  43041. + tmp=./conf$$-$RANDOM
  43042. + (umask 077 && mkdir "$tmp")
  43043. +} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5
  43044. +
  43045. +# Set up the scripts for CONFIG_FILES section.
  43046. +# No need to generate them if there are no CONFIG_FILES.
  43047. +# This happens for instance with `./config.status config.h'.
  43048. +if test -n "$CONFIG_FILES"; then
  43049. +
  43050. +
  43051. +ac_cr=`echo X | tr X '\015'`
  43052. +# On cygwin, bash can eat \r inside `` if the user requested igncr.
  43053. +# But we know of no other shell where ac_cr would be empty at this
  43054. +# point, so we can use a bashism as a fallback.
  43055. +if test "x$ac_cr" = x; then
  43056. + eval ac_cr=\$\'\\r\'
  43057. +fi
  43058. +ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  43059. +if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  43060. + ac_cs_awk_cr='\r'
  43061. else
  43062. - ac_cv_prog_gcc_traditional=no
  43063. + ac_cs_awk_cr=$ac_cr
  43064. fi
  43065. -rm -f conftest*
  43066. -
  43067. - if test $ac_cv_prog_gcc_traditional = no; then
  43068. - cat >conftest.$ac_ext <<_ACEOF
  43069. -/* confdefs.h. */
  43070. -_ACEOF
  43071. -cat confdefs.h >>conftest.$ac_ext
  43072. -cat >>conftest.$ac_ext <<_ACEOF
  43073. -/* end confdefs.h. */
  43074. -#include <termio.h>
  43075. -Autoconf TCGETA
  43076. +echo 'BEGIN {' >"$tmp/subs1.awk" &&
  43077. _ACEOF
  43078. -if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  43079. - $EGREP "$ac_pattern" >/dev/null 2>&1; then
  43080. - ac_cv_prog_gcc_traditional=yes
  43081. -fi
  43082. -rm -f conftest*
  43083. +
  43084. +{
  43085. + echo "cat >conf$$subs.awk <<_ACEOF" &&
  43086. + echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  43087. + echo "_ACEOF"
  43088. +} >conf$$subs.sh ||
  43089. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  43090. +ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
  43091. +ac_delim='%!_!# '
  43092. +for ac_last_try in false false false false false :; do
  43093. + . ./conf$$subs.sh ||
  43094. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  43095. +
  43096. + ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  43097. + if test $ac_delim_n = $ac_delim_num; then
  43098. + break
  43099. + elif $ac_last_try; then
  43100. + as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5
  43101. + else
  43102. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  43103. fi
  43104. -fi
  43105. -echo "$as_me:$LINENO: result: $ac_cv_prog_gcc_traditional" >&5
  43106. -echo "${ECHO_T}$ac_cv_prog_gcc_traditional" >&6
  43107. - if test $ac_cv_prog_gcc_traditional = yes; then
  43108. - CC="$CC -traditional"
  43109. - fi
  43110. -fi
  43111. +done
  43112. +rm -f conf$$subs.sh
  43113. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43114. +cat >>"\$tmp/subs1.awk" <<\\_ACAWK &&
  43115. +_ACEOF
  43116. +sed -n '
  43117. +h
  43118. +s/^/S["/; s/!.*/"]=/
  43119. +p
  43120. +g
  43121. +s/^[^!]*!//
  43122. +:repl
  43123. +t repl
  43124. +s/'"$ac_delim"'$//
  43125. +t delim
  43126. +:nl
  43127. +h
  43128. +s/\(.\{148\}\)..*/\1/
  43129. +t more1
  43130. +s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  43131. +p
  43132. +n
  43133. +b repl
  43134. +:more1
  43135. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  43136. +p
  43137. +g
  43138. +s/.\{148\}//
  43139. +t nl
  43140. +:delim
  43141. +h
  43142. +s/\(.\{148\}\)..*/\1/
  43143. +t more2
  43144. +s/["\\]/\\&/g; s/^/"/; s/$/"/
  43145. +p
  43146. +b
  43147. +:more2
  43148. +s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  43149. +p
  43150. +g
  43151. +s/.\{148\}//
  43152. +t delim
  43153. +' <conf$$subs.awk | sed '
  43154. +/^[^""]/{
  43155. + N
  43156. + s/\n//
  43157. +}
  43158. +' >>$CONFIG_STATUS || ac_write_fail=1
  43159. +rm -f conf$$subs.awk
  43160. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43161. +_ACAWK
  43162. +cat >>"\$tmp/subs1.awk" <<_ACAWK &&
  43163. + for (key in S) S_is_set[key] = 1
  43164. + FS = ""
  43165. +
  43166. +}
  43167. +{
  43168. + line = $ 0
  43169. + nfields = split(line, field, "@")
  43170. + substed = 0
  43171. + len = length(field[1])
  43172. + for (i = 2; i < nfields; i++) {
  43173. + key = field[i]
  43174. + keylen = length(key)
  43175. + if (S_is_set[key]) {
  43176. + value = S[key]
  43177. + line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  43178. + len += length(value) + length(field[++i])
  43179. + substed = 1
  43180. + } else
  43181. + len += 1 + keylen
  43182. + }
  43183. -for ac_header in stdlib.h
  43184. -do
  43185. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  43186. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  43187. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  43188. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  43189. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  43190. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43191. -fi
  43192. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  43193. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  43194. -else
  43195. - # Is the header compilable?
  43196. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  43197. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  43198. -cat >conftest.$ac_ext <<_ACEOF
  43199. -/* confdefs.h. */
  43200. -_ACEOF
  43201. -cat confdefs.h >>conftest.$ac_ext
  43202. -cat >>conftest.$ac_ext <<_ACEOF
  43203. -/* end confdefs.h. */
  43204. -$ac_includes_default
  43205. -#include <$ac_header>
  43206. + print line
  43207. +}
  43208. +
  43209. +_ACAWK
  43210. _ACEOF
  43211. -rm -f conftest.$ac_objext
  43212. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  43213. - (eval $ac_compile) 2>conftest.er1
  43214. - ac_status=$?
  43215. - grep -v '^ *+' conftest.er1 >conftest.err
  43216. - rm -f conftest.er1
  43217. - cat conftest.err >&5
  43218. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43219. - (exit $ac_status); } &&
  43220. - { ac_try='test -z "$ac_c_werror_flag"
  43221. - || test ! -s conftest.err'
  43222. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43223. - (eval $ac_try) 2>&5
  43224. - ac_status=$?
  43225. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43226. - (exit $ac_status); }; } &&
  43227. - { ac_try='test -s conftest.$ac_objext'
  43228. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43229. - (eval $ac_try) 2>&5
  43230. - ac_status=$?
  43231. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43232. - (exit $ac_status); }; }; then
  43233. - ac_header_compiler=yes
  43234. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43235. +if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  43236. + sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  43237. else
  43238. - echo "$as_me: failed program was:" >&5
  43239. -sed 's/^/| /' conftest.$ac_ext >&5
  43240. + cat
  43241. +fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \
  43242. + || as_fn_error "could not setup config files machinery" "$LINENO" 5
  43243. +_ACEOF
  43244. -ac_header_compiler=no
  43245. +# VPATH may cause trouble with some makes, so we remove $(srcdir),
  43246. +# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  43247. +# trailing colons and then remove the whole line if VPATH becomes empty
  43248. +# (actually we leave an empty line to preserve line numbers).
  43249. +if test "x$srcdir" = x.; then
  43250. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  43251. +s/:*\$(srcdir):*/:/
  43252. +s/:*\${srcdir}:*/:/
  43253. +s/:*@srcdir@:*/:/
  43254. +s/^\([^=]*=[ ]*\):*/\1/
  43255. +s/:*$//
  43256. +s/^[^=]*=[ ]*$//
  43257. +}'
  43258. fi
  43259. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  43260. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  43261. -echo "${ECHO_T}$ac_header_compiler" >&6
  43262. -# Is the header present?
  43263. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  43264. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  43265. -cat >conftest.$ac_ext <<_ACEOF
  43266. -/* confdefs.h. */
  43267. -_ACEOF
  43268. -cat confdefs.h >>conftest.$ac_ext
  43269. -cat >>conftest.$ac_ext <<_ACEOF
  43270. -/* end confdefs.h. */
  43271. -#include <$ac_header>
  43272. -_ACEOF
  43273. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  43274. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  43275. - ac_status=$?
  43276. - grep -v '^ *+' conftest.er1 >conftest.err
  43277. - rm -f conftest.er1
  43278. - cat conftest.err >&5
  43279. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43280. - (exit $ac_status); } >/dev/null; then
  43281. - if test -s conftest.err; then
  43282. - ac_cpp_err=$ac_c_preproc_warn_flag
  43283. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  43284. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43285. +fi # test -n "$CONFIG_FILES"
  43286. +
  43287. +# Set up the scripts for CONFIG_HEADERS section.
  43288. +# No need to generate them if there are no CONFIG_HEADERS.
  43289. +# This happens for instance with `./config.status Makefile'.
  43290. +if test -n "$CONFIG_HEADERS"; then
  43291. +cat >"$tmp/defines.awk" <<\_ACAWK ||
  43292. +BEGIN {
  43293. +_ACEOF
  43294. +
  43295. +# Transform confdefs.h into an awk script `defines.awk', embedded as
  43296. +# here-document in config.status, that substitutes the proper values into
  43297. +# config.h.in to produce config.h.
  43298. +
  43299. +# Create a delimiter string that does not exist in confdefs.h, to ease
  43300. +# handling of long lines.
  43301. +ac_delim='%!_!# '
  43302. +for ac_last_try in false false :; do
  43303. + ac_t=`sed -n "/$ac_delim/p" confdefs.h`
  43304. + if test -z "$ac_t"; then
  43305. + break
  43306. + elif $ac_last_try; then
  43307. + as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5
  43308. else
  43309. - ac_cpp_err=
  43310. + ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  43311. fi
  43312. -else
  43313. - ac_cpp_err=yes
  43314. -fi
  43315. -if test -z "$ac_cpp_err"; then
  43316. - ac_header_preproc=yes
  43317. -else
  43318. - echo "$as_me: failed program was:" >&5
  43319. -sed 's/^/| /' conftest.$ac_ext >&5
  43320. +done
  43321. - ac_header_preproc=no
  43322. -fi
  43323. -rm -f conftest.err conftest.$ac_ext
  43324. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  43325. -echo "${ECHO_T}$ac_header_preproc" >&6
  43326. +# For the awk script, D is an array of macro values keyed by name,
  43327. +# likewise P contains macro parameters if any. Preserve backslash
  43328. +# newline sequences.
  43329. +
  43330. +ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  43331. +sed -n '
  43332. +s/.\{148\}/&'"$ac_delim"'/g
  43333. +t rset
  43334. +:rset
  43335. +s/^[ ]*#[ ]*define[ ][ ]*/ /
  43336. +t def
  43337. +d
  43338. +:def
  43339. +s/\\$//
  43340. +t bsnl
  43341. +s/["\\]/\\&/g
  43342. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  43343. +D["\1"]=" \3"/p
  43344. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  43345. +d
  43346. +:bsnl
  43347. +s/["\\]/\\&/g
  43348. +s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  43349. +D["\1"]=" \3\\\\\\n"\\/p
  43350. +t cont
  43351. +s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  43352. +t cont
  43353. +d
  43354. +:cont
  43355. +n
  43356. +s/.\{148\}/&'"$ac_delim"'/g
  43357. +t clear
  43358. +:clear
  43359. +s/\\$//
  43360. +t bsnlc
  43361. +s/["\\]/\\&/g; s/^/"/; s/$/"/p
  43362. +d
  43363. +:bsnlc
  43364. +s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  43365. +b cont
  43366. +' <confdefs.h | sed '
  43367. +s/'"$ac_delim"'/"\\\
  43368. +"/g' >>$CONFIG_STATUS || ac_write_fail=1
  43369. +
  43370. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43371. + for (key in D) D_is_set[key] = 1
  43372. + FS = ""
  43373. +}
  43374. +/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  43375. + line = \$ 0
  43376. + split(line, arg, " ")
  43377. + if (arg[1] == "#") {
  43378. + defundef = arg[2]
  43379. + mac1 = arg[3]
  43380. + } else {
  43381. + defundef = substr(arg[1], 2)
  43382. + mac1 = arg[2]
  43383. + }
  43384. + split(mac1, mac2, "(") #)
  43385. + macro = mac2[1]
  43386. + prefix = substr(line, 1, index(line, defundef) - 1)
  43387. + if (D_is_set[macro]) {
  43388. + # Preserve the white space surrounding the "#".
  43389. + print prefix "define", macro P[macro] D[macro]
  43390. + next
  43391. + } else {
  43392. + # Replace #undef with comments. This is necessary, for example,
  43393. + # in the case of _POSIX_SOURCE, which is predefined and required
  43394. + # on some systems where configure will not decide to define it.
  43395. + if (defundef == "undef") {
  43396. + print "/*", prefix defundef, macro, "*/"
  43397. + next
  43398. + }
  43399. + }
  43400. +}
  43401. +{ print }
  43402. +_ACAWK
  43403. +_ACEOF
  43404. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43405. + as_fn_error "could not setup config headers machinery" "$LINENO" 5
  43406. +fi # test -n "$CONFIG_HEADERS"
  43407. -# So? What about this header?
  43408. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  43409. - yes:no: )
  43410. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  43411. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  43412. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  43413. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  43414. - ac_header_preproc=yes
  43415. - ;;
  43416. - no:yes:* )
  43417. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  43418. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  43419. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  43420. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  43421. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  43422. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  43423. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  43424. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  43425. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  43426. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  43427. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  43428. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  43429. - (
  43430. - cat <<\_ASBOX
  43431. -## ---------------------------------- ##
  43432. -## Report this to bugs@chillispot.org ##
  43433. -## ---------------------------------- ##
  43434. -_ASBOX
  43435. - ) |
  43436. - sed "s/^/$as_me: WARNING: /" >&2
  43437. +
  43438. +eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  43439. +shift
  43440. +for ac_tag
  43441. +do
  43442. + case $ac_tag in
  43443. + :[FHLC]) ac_mode=$ac_tag; continue;;
  43444. + esac
  43445. + case $ac_mode$ac_tag in
  43446. + :[FHL]*:*);;
  43447. + :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;;
  43448. + :[FH]-) ac_tag=-:-;;
  43449. + :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  43450. + esac
  43451. + ac_save_IFS=$IFS
  43452. + IFS=:
  43453. + set x $ac_tag
  43454. + IFS=$ac_save_IFS
  43455. + shift
  43456. + ac_file=$1
  43457. + shift
  43458. +
  43459. + case $ac_mode in
  43460. + :L) ac_source=$1;;
  43461. + :[FH])
  43462. + ac_file_inputs=
  43463. + for ac_f
  43464. + do
  43465. + case $ac_f in
  43466. + -) ac_f="$tmp/stdin";;
  43467. + *) # Look for the file first in the build tree, then in the source tree
  43468. + # (if the path is not absolute). The absolute path cannot be DOS-style,
  43469. + # because $ac_f cannot contain `:'.
  43470. + test -f "$ac_f" ||
  43471. + case $ac_f in
  43472. + [\\/$]*) false;;
  43473. + *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  43474. + esac ||
  43475. + as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  43476. + esac
  43477. + case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  43478. + as_fn_append ac_file_inputs " '$ac_f'"
  43479. + done
  43480. +
  43481. + # Let's still pretend it is `configure' which instantiates (i.e., don't
  43482. + # use $as_me), people would be surprised to read:
  43483. + # /* config.h. Generated by config.status. */
  43484. + configure_input='Generated from '`
  43485. + $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  43486. + `' by configure.'
  43487. + if test x"$ac_file" != x-; then
  43488. + configure_input="$ac_file. $configure_input"
  43489. + { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  43490. +$as_echo "$as_me: creating $ac_file" >&6;}
  43491. + fi
  43492. + # Neutralize special characters interpreted by sed in replacement strings.
  43493. + case $configure_input in #(
  43494. + *\&* | *\|* | *\\* )
  43495. + ac_sed_conf_input=`$as_echo "$configure_input" |
  43496. + sed 's/[\\\\&|]/\\\\&/g'`;; #(
  43497. + *) ac_sed_conf_input=$configure_input;;
  43498. + esac
  43499. +
  43500. + case $ac_tag in
  43501. + *:-:* | *:-) cat >"$tmp/stdin" \
  43502. + || as_fn_error "could not create $ac_file" "$LINENO" 5 ;;
  43503. + esac
  43504. ;;
  43505. -esac
  43506. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  43507. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  43508. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  43509. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43510. -else
  43511. - eval "$as_ac_Header=\$ac_header_preproc"
  43512. -fi
  43513. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  43514. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  43515. + esac
  43516. -fi
  43517. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  43518. - cat >>confdefs.h <<_ACEOF
  43519. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  43520. -_ACEOF
  43521. + ac_dir=`$as_dirname -- "$ac_file" ||
  43522. +$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43523. + X"$ac_file" : 'X\(//\)[^/]' \| \
  43524. + X"$ac_file" : 'X\(//\)$' \| \
  43525. + X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  43526. +$as_echo X"$ac_file" |
  43527. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43528. + s//\1/
  43529. + q
  43530. + }
  43531. + /^X\(\/\/\)[^/].*/{
  43532. + s//\1/
  43533. + q
  43534. + }
  43535. + /^X\(\/\/\)$/{
  43536. + s//\1/
  43537. + q
  43538. + }
  43539. + /^X\(\/\).*/{
  43540. + s//\1/
  43541. + q
  43542. + }
  43543. + s/.*/./; q'`
  43544. + as_dir="$ac_dir"; as_fn_mkdir_p
  43545. + ac_builddir=.
  43546. -fi
  43547. +case "$ac_dir" in
  43548. +.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  43549. +*)
  43550. + ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  43551. + # A ".." for each directory in $ac_dir_suffix.
  43552. + ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  43553. + case $ac_top_builddir_sub in
  43554. + "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  43555. + *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  43556. + esac ;;
  43557. +esac
  43558. +ac_abs_top_builddir=$ac_pwd
  43559. +ac_abs_builddir=$ac_pwd$ac_dir_suffix
  43560. +# for backward compatibility:
  43561. +ac_top_builddir=$ac_top_build_prefix
  43562. -done
  43563. +case $srcdir in
  43564. + .) # We are building in place.
  43565. + ac_srcdir=.
  43566. + ac_top_srcdir=$ac_top_builddir_sub
  43567. + ac_abs_top_srcdir=$ac_pwd ;;
  43568. + [\\/]* | ?:[\\/]* ) # Absolute name.
  43569. + ac_srcdir=$srcdir$ac_dir_suffix;
  43570. + ac_top_srcdir=$srcdir
  43571. + ac_abs_top_srcdir=$srcdir ;;
  43572. + *) # Relative name.
  43573. + ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  43574. + ac_top_srcdir=$ac_top_build_prefix$srcdir
  43575. + ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  43576. +esac
  43577. +ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  43578. -echo "$as_me:$LINENO: checking for GNU libc compatible malloc" >&5
  43579. -echo $ECHO_N "checking for GNU libc compatible malloc... $ECHO_C" >&6
  43580. -if test "${ac_cv_func_malloc_0_nonnull+set}" = set; then
  43581. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43582. -else
  43583. - if test "$cross_compiling" = yes; then
  43584. - ac_cv_func_malloc_0_nonnull=no
  43585. -else
  43586. - cat >conftest.$ac_ext <<_ACEOF
  43587. -/* confdefs.h. */
  43588. -_ACEOF
  43589. -cat confdefs.h >>conftest.$ac_ext
  43590. -cat >>conftest.$ac_ext <<_ACEOF
  43591. -/* end confdefs.h. */
  43592. -#if STDC_HEADERS || HAVE_STDLIB_H
  43593. -# include <stdlib.h>
  43594. -#else
  43595. -char *malloc ();
  43596. -#endif
  43597. -int
  43598. -main ()
  43599. -{
  43600. -exit (malloc (0) ? 0 : 1);
  43601. - ;
  43602. - return 0;
  43603. -}
  43604. -_ACEOF
  43605. -rm -f conftest$ac_exeext
  43606. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  43607. - (eval $ac_link) 2>&5
  43608. - ac_status=$?
  43609. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43610. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  43611. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43612. - (eval $ac_try) 2>&5
  43613. - ac_status=$?
  43614. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43615. - (exit $ac_status); }; }; then
  43616. - ac_cv_func_malloc_0_nonnull=yes
  43617. -else
  43618. - echo "$as_me: program exited with status $ac_status" >&5
  43619. -echo "$as_me: failed program was:" >&5
  43620. -sed 's/^/| /' conftest.$ac_ext >&5
  43621. + case $ac_mode in
  43622. + :F)
  43623. + #
  43624. + # CONFIG_FILE
  43625. + #
  43626. -( exit $ac_status )
  43627. -ac_cv_func_malloc_0_nonnull=no
  43628. -fi
  43629. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  43630. -fi
  43631. -fi
  43632. -echo "$as_me:$LINENO: result: $ac_cv_func_malloc_0_nonnull" >&5
  43633. -echo "${ECHO_T}$ac_cv_func_malloc_0_nonnull" >&6
  43634. -if test $ac_cv_func_malloc_0_nonnull = yes; then
  43635. + case $INSTALL in
  43636. + [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  43637. + *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  43638. + esac
  43639. + ac_MKDIR_P=$MKDIR_P
  43640. + case $MKDIR_P in
  43641. + [\\/$]* | ?:[\\/]* ) ;;
  43642. + */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  43643. + esac
  43644. +_ACEOF
  43645. -cat >>confdefs.h <<\_ACEOF
  43646. -#define HAVE_MALLOC 1
  43647. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43648. +# If the template does not know about datarootdir, expand it.
  43649. +# FIXME: This hack should be removed a few years after 2.60.
  43650. +ac_datarootdir_hack=; ac_datarootdir_seen=
  43651. +ac_sed_dataroot='
  43652. +/datarootdir/ {
  43653. + p
  43654. + q
  43655. +}
  43656. +/@datadir@/p
  43657. +/@docdir@/p
  43658. +/@infodir@/p
  43659. +/@localedir@/p
  43660. +/@mandir@/p'
  43661. +case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  43662. +*datarootdir*) ac_datarootdir_seen=yes;;
  43663. +*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  43664. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  43665. +$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  43666. +_ACEOF
  43667. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43668. + ac_datarootdir_hack='
  43669. + s&@datadir@&$datadir&g
  43670. + s&@docdir@&$docdir&g
  43671. + s&@infodir@&$infodir&g
  43672. + s&@localedir@&$localedir&g
  43673. + s&@mandir@&$mandir&g
  43674. + s&\\\${datarootdir}&$datarootdir&g' ;;
  43675. +esac
  43676. _ACEOF
  43677. -else
  43678. - cat >>confdefs.h <<\_ACEOF
  43679. -#define HAVE_MALLOC 0
  43680. +# Neutralize VPATH when `$srcdir' = `.'.
  43681. +# Shell code in configure.ac might set extrasub.
  43682. +# FIXME: do we really want to maintain this feature?
  43683. +cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  43684. +ac_sed_extra="$ac_vpsub
  43685. +$extrasub
  43686. _ACEOF
  43687. +cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  43688. +:t
  43689. +/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  43690. +s|@configure_input@|$ac_sed_conf_input|;t t
  43691. +s&@top_builddir@&$ac_top_builddir_sub&;t t
  43692. +s&@top_build_prefix@&$ac_top_build_prefix&;t t
  43693. +s&@srcdir@&$ac_srcdir&;t t
  43694. +s&@abs_srcdir@&$ac_abs_srcdir&;t t
  43695. +s&@top_srcdir@&$ac_top_srcdir&;t t
  43696. +s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  43697. +s&@builddir@&$ac_builddir&;t t
  43698. +s&@abs_builddir@&$ac_abs_builddir&;t t
  43699. +s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  43700. +s&@INSTALL@&$ac_INSTALL&;t t
  43701. +s&@MKDIR_P@&$ac_MKDIR_P&;t t
  43702. +$ac_datarootdir_hack
  43703. +"
  43704. +eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \
  43705. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  43706. +
  43707. +test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  43708. + { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
  43709. + { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
  43710. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  43711. +which seems to be undefined. Please make sure it is defined." >&5
  43712. +$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  43713. +which seems to be undefined. Please make sure it is defined." >&2;}
  43714. - case $LIBOBJS in
  43715. - "malloc.$ac_objext" | \
  43716. - *" malloc.$ac_objext" | \
  43717. - "malloc.$ac_objext "* | \
  43718. - *" malloc.$ac_objext "* ) ;;
  43719. - *) LIBOBJS="$LIBOBJS malloc.$ac_objext" ;;
  43720. -esac
  43721. + rm -f "$tmp/stdin"
  43722. + case $ac_file in
  43723. + -) cat "$tmp/out" && rm -f "$tmp/out";;
  43724. + *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
  43725. + esac \
  43726. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  43727. + ;;
  43728. + :H)
  43729. + #
  43730. + # CONFIG_HEADER
  43731. + #
  43732. + if test x"$ac_file" != x-; then
  43733. + {
  43734. + $as_echo "/* $configure_input */" \
  43735. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
  43736. + } >"$tmp/config.h" \
  43737. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  43738. + if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
  43739. + { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  43740. +$as_echo "$as_me: $ac_file is unchanged" >&6;}
  43741. + else
  43742. + rm -f "$ac_file"
  43743. + mv "$tmp/config.h" "$ac_file" \
  43744. + || as_fn_error "could not create $ac_file" "$LINENO" 5
  43745. + fi
  43746. + else
  43747. + $as_echo "/* $configure_input */" \
  43748. + && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
  43749. + || as_fn_error "could not create -" "$LINENO" 5
  43750. + fi
  43751. +# Compute "$ac_file"'s index in $config_headers.
  43752. +_am_arg="$ac_file"
  43753. +_am_stamp_count=1
  43754. +for _am_header in $config_headers :; do
  43755. + case $_am_header in
  43756. + $_am_arg | $_am_arg:* )
  43757. + break ;;
  43758. + * )
  43759. + _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  43760. + esac
  43761. +done
  43762. +echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  43763. +$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43764. + X"$_am_arg" : 'X\(//\)[^/]' \| \
  43765. + X"$_am_arg" : 'X\(//\)$' \| \
  43766. + X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  43767. +$as_echo X"$_am_arg" |
  43768. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43769. + s//\1/
  43770. + q
  43771. + }
  43772. + /^X\(\/\/\)[^/].*/{
  43773. + s//\1/
  43774. + q
  43775. + }
  43776. + /^X\(\/\/\)$/{
  43777. + s//\1/
  43778. + q
  43779. + }
  43780. + /^X\(\/\).*/{
  43781. + s//\1/
  43782. + q
  43783. + }
  43784. + s/.*/./; q'`/stamp-h$_am_stamp_count
  43785. + ;;
  43786. + :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  43787. +$as_echo "$as_me: executing $ac_file commands" >&6;}
  43788. + ;;
  43789. + esac
  43790. -cat >>confdefs.h <<\_ACEOF
  43791. -#define malloc rpl_malloc
  43792. -_ACEOF
  43793. -fi
  43794. + case $ac_file$ac_mode in
  43795. + "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  43796. + # Autoconf 2.62 quotes --file arguments for eval, but not when files
  43797. + # are listed without --file. Let's play safe and only enable the eval
  43798. + # if we detect the quoting.
  43799. + case $CONFIG_FILES in
  43800. + *\'*) eval set x "$CONFIG_FILES" ;;
  43801. + *) set x $CONFIG_FILES ;;
  43802. + esac
  43803. + shift
  43804. + for mf
  43805. + do
  43806. + # Strip MF so we end up with the name of the file.
  43807. + mf=`echo "$mf" | sed -e 's/:.*$//'`
  43808. + # Check whether this is an Automake generated Makefile or not.
  43809. + # We used to match only the files named `Makefile.in', but
  43810. + # some people rename them; so instead we look at the file content.
  43811. + # Grep'ing the first line is not enough: some people post-process
  43812. + # each Makefile.in and add a new line on top of each file to say so.
  43813. + # Grep'ing the whole file is not good either: AIX grep has a line
  43814. + # limit of 2048, but all sed's we know have understand at least 4000.
  43815. + if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  43816. + dirpart=`$as_dirname -- "$mf" ||
  43817. +$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43818. + X"$mf" : 'X\(//\)[^/]' \| \
  43819. + X"$mf" : 'X\(//\)$' \| \
  43820. + X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  43821. +$as_echo X"$mf" |
  43822. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43823. + s//\1/
  43824. + q
  43825. + }
  43826. + /^X\(\/\/\)[^/].*/{
  43827. + s//\1/
  43828. + q
  43829. + }
  43830. + /^X\(\/\/\)$/{
  43831. + s//\1/
  43832. + q
  43833. + }
  43834. + /^X\(\/\).*/{
  43835. + s//\1/
  43836. + q
  43837. + }
  43838. + s/.*/./; q'`
  43839. + else
  43840. + continue
  43841. + fi
  43842. + # Extract the definition of DEPDIR, am__include, and am__quote
  43843. + # from the Makefile without running `make'.
  43844. + DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  43845. + test -z "$DEPDIR" && continue
  43846. + am__include=`sed -n 's/^am__include = //p' < "$mf"`
  43847. + test -z "am__include" && continue
  43848. + am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  43849. + # When using ansi2knr, U may be empty or an underscore; expand it
  43850. + U=`sed -n 's/^U = //p' < "$mf"`
  43851. + # Find all dependency output files, they are included files with
  43852. + # $(DEPDIR) in their names. We invoke sed twice because it is the
  43853. + # simplest approach to changing $(DEPDIR) to its actual value in the
  43854. + # expansion.
  43855. + for file in `sed -n "
  43856. + s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  43857. + sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  43858. + # Make sure the directory exists.
  43859. + test -f "$dirpart/$file" && continue
  43860. + fdir=`$as_dirname -- "$file" ||
  43861. +$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  43862. + X"$file" : 'X\(//\)[^/]' \| \
  43863. + X"$file" : 'X\(//\)$' \| \
  43864. + X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  43865. +$as_echo X"$file" |
  43866. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  43867. + s//\1/
  43868. + q
  43869. + }
  43870. + /^X\(\/\/\)[^/].*/{
  43871. + s//\1/
  43872. + q
  43873. + }
  43874. + /^X\(\/\/\)$/{
  43875. + s//\1/
  43876. + q
  43877. + }
  43878. + /^X\(\/\).*/{
  43879. + s//\1/
  43880. + q
  43881. + }
  43882. + s/.*/./; q'`
  43883. + as_dir=$dirpart/$fdir; as_fn_mkdir_p
  43884. + # echo "creating $dirpart/$file"
  43885. + echo '# dummy' > "$dirpart/$file"
  43886. + done
  43887. + done
  43888. +}
  43889. + ;;
  43890. + "libtool":C)
  43891. + # See if we are running on zsh, and set the options which allow our
  43892. + # commands through without removal of \ escapes.
  43893. + if test -n "${ZSH_VERSION+set}" ; then
  43894. + setopt NO_GLOB_SUBST
  43895. + fi
  43896. + cfgfile="${ofile}T"
  43897. + trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  43898. + $RM "$cfgfile"
  43899. -echo "$as_me:$LINENO: checking for working memcmp" >&5
  43900. -echo $ECHO_N "checking for working memcmp... $ECHO_C" >&6
  43901. -if test "${ac_cv_func_memcmp_working+set}" = set; then
  43902. - echo $ECHO_N "(cached) $ECHO_C" >&6
  43903. -else
  43904. - if test "$cross_compiling" = yes; then
  43905. - ac_cv_func_memcmp_working=no
  43906. -else
  43907. - cat >conftest.$ac_ext <<_ACEOF
  43908. -/* confdefs.h. */
  43909. -_ACEOF
  43910. -cat confdefs.h >>conftest.$ac_ext
  43911. -cat >>conftest.$ac_ext <<_ACEOF
  43912. -/* end confdefs.h. */
  43913. -$ac_includes_default
  43914. -int
  43915. -main ()
  43916. -{
  43917. + cat <<_LT_EOF >> "$cfgfile"
  43918. +#! $SHELL
  43919. - /* Some versions of memcmp are not 8-bit clean. */
  43920. - char c0 = 0x40, c1 = 0x80, c2 = 0x81;
  43921. - if (memcmp(&c0, &c2, 1) >= 0 || memcmp(&c1, &c2, 1) >= 0)
  43922. - exit (1);
  43923. +# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  43924. +# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  43925. +# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  43926. +# NOTE: Changes made to this file will be lost: look at ltmain.sh.
  43927. +#
  43928. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  43929. +# 2006, 2007, 2008 Free Software Foundation, Inc.
  43930. +# Written by Gordon Matzigkeit, 1996
  43931. +#
  43932. +# This file is part of GNU Libtool.
  43933. +#
  43934. +# GNU Libtool is free software; you can redistribute it and/or
  43935. +# modify it under the terms of the GNU General Public License as
  43936. +# published by the Free Software Foundation; either version 2 of
  43937. +# the License, or (at your option) any later version.
  43938. +#
  43939. +# As a special exception to the GNU General Public License,
  43940. +# if you distribute this file as part of a program or library that
  43941. +# is built using GNU Libtool, you may include this file under the
  43942. +# same distribution terms that you use for the rest of that program.
  43943. +#
  43944. +# GNU Libtool is distributed in the hope that it will be useful,
  43945. +# but WITHOUT ANY WARRANTY; without even the implied warranty of
  43946. +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  43947. +# GNU General Public License for more details.
  43948. +#
  43949. +# You should have received a copy of the GNU General Public License
  43950. +# along with GNU Libtool; see the file COPYING. If not, a copy
  43951. +# can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  43952. +# obtained by writing to the Free Software Foundation, Inc.,
  43953. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  43954. - /* The Next x86 OpenStep bug shows up only when comparing 16 bytes
  43955. - or more and with at least one buffer not starting on a 4-byte boundary.
  43956. - William Lewis provided this test program. */
  43957. - {
  43958. - char foo[21];
  43959. - char bar[21];
  43960. - int i;
  43961. - for (i = 0; i < 4; i++)
  43962. - {
  43963. - char *a = foo + i;
  43964. - char *b = bar + i;
  43965. - strcpy (a, "--------01111111");
  43966. - strcpy (b, "--------10000000");
  43967. - if (memcmp (a, b, 16) >= 0)
  43968. - exit (1);
  43969. - }
  43970. - exit (0);
  43971. - }
  43972. - ;
  43973. - return 0;
  43974. -}
  43975. -_ACEOF
  43976. -rm -f conftest$ac_exeext
  43977. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  43978. - (eval $ac_link) 2>&5
  43979. - ac_status=$?
  43980. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43981. - (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
  43982. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  43983. - (eval $ac_try) 2>&5
  43984. - ac_status=$?
  43985. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  43986. - (exit $ac_status); }; }; then
  43987. - ac_cv_func_memcmp_working=yes
  43988. -else
  43989. - echo "$as_me: program exited with status $ac_status" >&5
  43990. -echo "$as_me: failed program was:" >&5
  43991. -sed 's/^/| /' conftest.$ac_ext >&5
  43992. +# The names of the tagged configurations supported by this script.
  43993. +available_tags=""
  43994. -( exit $ac_status )
  43995. -ac_cv_func_memcmp_working=no
  43996. -fi
  43997. -rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
  43998. -fi
  43999. -fi
  44000. -echo "$as_me:$LINENO: result: $ac_cv_func_memcmp_working" >&5
  44001. -echo "${ECHO_T}$ac_cv_func_memcmp_working" >&6
  44002. -test $ac_cv_func_memcmp_working = no && case $LIBOBJS in
  44003. - "memcmp.$ac_objext" | \
  44004. - *" memcmp.$ac_objext" | \
  44005. - "memcmp.$ac_objext "* | \
  44006. - *" memcmp.$ac_objext "* ) ;;
  44007. - *) LIBOBJS="$LIBOBJS memcmp.$ac_objext" ;;
  44008. -esac
  44009. +# ### BEGIN LIBTOOL CONFIG
  44010. +# Which release of libtool.m4 was used?
  44011. +macro_version=$macro_version
  44012. +macro_revision=$macro_revision
  44013. +
  44014. +# Whether or not to build shared libraries.
  44015. +build_libtool_libs=$enable_shared
  44016. +# Whether or not to build static libraries.
  44017. +build_old_libs=$enable_static
  44018. +# What type of objects to build.
  44019. +pic_mode=$pic_mode
  44020. -for ac_header in sys/select.h sys/socket.h
  44021. -do
  44022. -as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  44023. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  44024. - echo "$as_me:$LINENO: checking for $ac_header" >&5
  44025. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  44026. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  44027. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44028. -fi
  44029. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  44030. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  44031. -else
  44032. - # Is the header compilable?
  44033. -echo "$as_me:$LINENO: checking $ac_header usability" >&5
  44034. -echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  44035. -cat >conftest.$ac_ext <<_ACEOF
  44036. -/* confdefs.h. */
  44037. -_ACEOF
  44038. -cat confdefs.h >>conftest.$ac_ext
  44039. -cat >>conftest.$ac_ext <<_ACEOF
  44040. -/* end confdefs.h. */
  44041. -$ac_includes_default
  44042. -#include <$ac_header>
  44043. -_ACEOF
  44044. -rm -f conftest.$ac_objext
  44045. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  44046. - (eval $ac_compile) 2>conftest.er1
  44047. - ac_status=$?
  44048. - grep -v '^ *+' conftest.er1 >conftest.err
  44049. - rm -f conftest.er1
  44050. - cat conftest.err >&5
  44051. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44052. - (exit $ac_status); } &&
  44053. - { ac_try='test -z "$ac_c_werror_flag"
  44054. - || test ! -s conftest.err'
  44055. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44056. - (eval $ac_try) 2>&5
  44057. - ac_status=$?
  44058. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44059. - (exit $ac_status); }; } &&
  44060. - { ac_try='test -s conftest.$ac_objext'
  44061. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44062. - (eval $ac_try) 2>&5
  44063. - ac_status=$?
  44064. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44065. - (exit $ac_status); }; }; then
  44066. - ac_header_compiler=yes
  44067. -else
  44068. - echo "$as_me: failed program was:" >&5
  44069. -sed 's/^/| /' conftest.$ac_ext >&5
  44070. +# Whether or not to optimize for fast installation.
  44071. +fast_install=$enable_fast_install
  44072. -ac_header_compiler=no
  44073. -fi
  44074. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  44075. -echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  44076. -echo "${ECHO_T}$ac_header_compiler" >&6
  44077. +# The host system.
  44078. +host_alias=$host_alias
  44079. +host=$host
  44080. +host_os=$host_os
  44081. -# Is the header present?
  44082. -echo "$as_me:$LINENO: checking $ac_header presence" >&5
  44083. -echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  44084. -cat >conftest.$ac_ext <<_ACEOF
  44085. -/* confdefs.h. */
  44086. -_ACEOF
  44087. -cat confdefs.h >>conftest.$ac_ext
  44088. -cat >>conftest.$ac_ext <<_ACEOF
  44089. -/* end confdefs.h. */
  44090. -#include <$ac_header>
  44091. -_ACEOF
  44092. -if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  44093. - (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  44094. - ac_status=$?
  44095. - grep -v '^ *+' conftest.er1 >conftest.err
  44096. - rm -f conftest.er1
  44097. - cat conftest.err >&5
  44098. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44099. - (exit $ac_status); } >/dev/null; then
  44100. - if test -s conftest.err; then
  44101. - ac_cpp_err=$ac_c_preproc_warn_flag
  44102. - ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  44103. - else
  44104. - ac_cpp_err=
  44105. - fi
  44106. -else
  44107. - ac_cpp_err=yes
  44108. -fi
  44109. -if test -z "$ac_cpp_err"; then
  44110. - ac_header_preproc=yes
  44111. -else
  44112. - echo "$as_me: failed program was:" >&5
  44113. -sed 's/^/| /' conftest.$ac_ext >&5
  44114. +# The build system.
  44115. +build_alias=$build_alias
  44116. +build=$build
  44117. +build_os=$build_os
  44118. - ac_header_preproc=no
  44119. -fi
  44120. -rm -f conftest.err conftest.$ac_ext
  44121. -echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
  44122. -echo "${ECHO_T}$ac_header_preproc" >&6
  44123. +# A sed program that does not truncate output.
  44124. +SED=$lt_SED
  44125. -# So? What about this header?
  44126. -case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  44127. - yes:no: )
  44128. - { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  44129. -echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  44130. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  44131. -echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  44132. - ac_header_preproc=yes
  44133. - ;;
  44134. - no:yes:* )
  44135. - { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  44136. -echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  44137. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  44138. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  44139. - { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  44140. -echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  44141. - { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  44142. -echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  44143. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  44144. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  44145. - { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  44146. -echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  44147. - (
  44148. - cat <<\_ASBOX
  44149. -## ---------------------------------- ##
  44150. -## Report this to bugs@chillispot.org ##
  44151. -## ---------------------------------- ##
  44152. -_ASBOX
  44153. - ) |
  44154. - sed "s/^/$as_me: WARNING: /" >&2
  44155. - ;;
  44156. -esac
  44157. -echo "$as_me:$LINENO: checking for $ac_header" >&5
  44158. -echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
  44159. -if eval "test \"\${$as_ac_Header+set}\" = set"; then
  44160. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44161. -else
  44162. - eval "$as_ac_Header=\$ac_header_preproc"
  44163. -fi
  44164. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  44165. -echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  44166. +# Sed that helps us avoid accidentally triggering echo(1) options like -n.
  44167. +Xsed="\$SED -e 1s/^X//"
  44168. -fi
  44169. -if test `eval echo '${'$as_ac_Header'}'` = yes; then
  44170. - cat >>confdefs.h <<_ACEOF
  44171. -#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
  44172. -_ACEOF
  44173. +# A grep program that handles long lines.
  44174. +GREP=$lt_GREP
  44175. -fi
  44176. +# An ERE matcher.
  44177. +EGREP=$lt_EGREP
  44178. -done
  44179. +# A literal string matcher.
  44180. +FGREP=$lt_FGREP
  44181. -echo "$as_me:$LINENO: checking types of arguments for select" >&5
  44182. -echo $ECHO_N "checking types of arguments for select... $ECHO_C" >&6
  44183. -if test "${ac_cv_func_select_args+set}" = set; then
  44184. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44185. -else
  44186. - for ac_arg234 in 'fd_set *' 'int *' 'void *'; do
  44187. - for ac_arg1 in 'int' 'size_t' 'unsigned long' 'unsigned'; do
  44188. - for ac_arg5 in 'struct timeval *' 'const struct timeval *'; do
  44189. - cat >conftest.$ac_ext <<_ACEOF
  44190. -/* confdefs.h. */
  44191. -_ACEOF
  44192. -cat confdefs.h >>conftest.$ac_ext
  44193. -cat >>conftest.$ac_ext <<_ACEOF
  44194. -/* end confdefs.h. */
  44195. -$ac_includes_default
  44196. -#if HAVE_SYS_SELECT_H
  44197. -# include <sys/select.h>
  44198. -#endif
  44199. -#if HAVE_SYS_SOCKET_H
  44200. -# include <sys/socket.h>
  44201. -#endif
  44202. +# A BSD- or MS-compatible name lister.
  44203. +NM=$lt_NM
  44204. -int
  44205. -main ()
  44206. -{
  44207. -extern int select ($ac_arg1,
  44208. - $ac_arg234, $ac_arg234, $ac_arg234,
  44209. - $ac_arg5);
  44210. - ;
  44211. - return 0;
  44212. -}
  44213. -_ACEOF
  44214. -rm -f conftest.$ac_objext
  44215. -if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  44216. - (eval $ac_compile) 2>conftest.er1
  44217. - ac_status=$?
  44218. - grep -v '^ *+' conftest.er1 >conftest.err
  44219. - rm -f conftest.er1
  44220. - cat conftest.err >&5
  44221. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44222. - (exit $ac_status); } &&
  44223. - { ac_try='test -z "$ac_c_werror_flag"
  44224. - || test ! -s conftest.err'
  44225. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44226. - (eval $ac_try) 2>&5
  44227. - ac_status=$?
  44228. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44229. - (exit $ac_status); }; } &&
  44230. - { ac_try='test -s conftest.$ac_objext'
  44231. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44232. - (eval $ac_try) 2>&5
  44233. - ac_status=$?
  44234. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44235. - (exit $ac_status); }; }; then
  44236. - ac_cv_func_select_args="$ac_arg1,$ac_arg234,$ac_arg5"; break 3
  44237. -else
  44238. - echo "$as_me: failed program was:" >&5
  44239. -sed 's/^/| /' conftest.$ac_ext >&5
  44240. +# Whether we need soft or hard links.
  44241. +LN_S=$lt_LN_S
  44242. -fi
  44243. -rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  44244. - done
  44245. - done
  44246. -done
  44247. -# Provide a safe default value.
  44248. -: ${ac_cv_func_select_args='int,int *,struct timeval *'}
  44249. +# What is the maximum length of a command?
  44250. +max_cmd_len=$max_cmd_len
  44251. -fi
  44252. -echo "$as_me:$LINENO: result: $ac_cv_func_select_args" >&5
  44253. -echo "${ECHO_T}$ac_cv_func_select_args" >&6
  44254. -ac_save_IFS=$IFS; IFS=','
  44255. -set dummy `echo "$ac_cv_func_select_args" | sed 's/\*/\*/g'`
  44256. -IFS=$ac_save_IFS
  44257. -shift
  44258. +# Object file suffix (normally "o").
  44259. +objext=$ac_objext
  44260. -cat >>confdefs.h <<_ACEOF
  44261. -#define SELECT_TYPE_ARG1 $1
  44262. -_ACEOF
  44263. +# Executable file suffix (normally "").
  44264. +exeext=$exeext
  44265. +# whether the shell understands "unset".
  44266. +lt_unset=$lt_unset
  44267. -cat >>confdefs.h <<_ACEOF
  44268. -#define SELECT_TYPE_ARG234 ($2)
  44269. -_ACEOF
  44270. +# turn spaces into newlines.
  44271. +SP2NL=$lt_lt_SP2NL
  44272. +# turn newlines into spaces.
  44273. +NL2SP=$lt_lt_NL2SP
  44274. -cat >>confdefs.h <<_ACEOF
  44275. -#define SELECT_TYPE_ARG5 ($3)
  44276. -_ACEOF
  44277. +# How to create reloadable object files.
  44278. +reload_flag=$lt_reload_flag
  44279. +reload_cmds=$lt_reload_cmds
  44280. -rm -f conftest*
  44281. +# An object symbol dumper.
  44282. +OBJDUMP=$lt_OBJDUMP
  44283. +# Method to check whether dependent libraries are shared objects.
  44284. +deplibs_check_method=$lt_deplibs_check_method
  44285. +# Command to use when deplibs_check_method == "file_magic".
  44286. +file_magic_cmd=$lt_file_magic_cmd
  44287. +# The archiver.
  44288. +AR=$lt_AR
  44289. +AR_FLAGS=$lt_AR_FLAGS
  44290. +# A symbol stripping program.
  44291. +STRIP=$lt_STRIP
  44292. +# Commands used to install an old-style archive.
  44293. +RANLIB=$lt_RANLIB
  44294. +old_postinstall_cmds=$lt_old_postinstall_cmds
  44295. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  44296. +# A C compiler.
  44297. +LTCC=$lt_CC
  44298. +# LTCC compiler flags.
  44299. +LTCFLAGS=$lt_CFLAGS
  44300. +# Take the output of nm and produce a listing of raw symbols and C names.
  44301. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  44302. +# Transform the output of nm in a proper C declaration.
  44303. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  44304. +# Transform the output of nm in a C name address pair.
  44305. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  44306. -for ac_func in gethostbyname gettimeofday inet_ntoa memset select socket strdup strerror strstr strtol
  44307. -do
  44308. -as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
  44309. -echo "$as_me:$LINENO: checking for $ac_func" >&5
  44310. -echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
  44311. -if eval "test \"\${$as_ac_var+set}\" = set"; then
  44312. - echo $ECHO_N "(cached) $ECHO_C" >&6
  44313. -else
  44314. - cat >conftest.$ac_ext <<_ACEOF
  44315. -/* confdefs.h. */
  44316. -_ACEOF
  44317. -cat confdefs.h >>conftest.$ac_ext
  44318. -cat >>conftest.$ac_ext <<_ACEOF
  44319. -/* end confdefs.h. */
  44320. -/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
  44321. - For example, HP-UX 11i <limits.h> declares gettimeofday. */
  44322. -#define $ac_func innocuous_$ac_func
  44323. +# Transform the output of nm in a C name address pair when lib prefix is needed.
  44324. +global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  44325. -/* System header to define __stub macros and hopefully few prototypes,
  44326. - which can conflict with char $ac_func (); below.
  44327. - Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  44328. - <limits.h> exists even on freestanding compilers. */
  44329. +# The name of the directory that contains temporary libtool files.
  44330. +objdir=$objdir
  44331. -#ifdef __STDC__
  44332. -# include <limits.h>
  44333. -#else
  44334. -# include <assert.h>
  44335. -#endif
  44336. +# Shell to use when invoking shell scripts.
  44337. +SHELL=$lt_SHELL
  44338. -#undef $ac_func
  44339. +# An echo program that does not interpret backslashes.
  44340. +ECHO=$lt_ECHO
  44341. -/* Override any gcc2 internal prototype to avoid an error. */
  44342. -#ifdef __cplusplus
  44343. -extern "C"
  44344. -{
  44345. -#endif
  44346. -/* We use char because int might match the return type of a gcc2
  44347. - builtin and then its argument prototype would still apply. */
  44348. -char $ac_func ();
  44349. -/* The GNU C library defines this for functions which it implements
  44350. - to always fail with ENOSYS. Some functions are actually named
  44351. - something starting with __ and the normal name is an alias. */
  44352. -#if defined (__stub_$ac_func) || defined (__stub___$ac_func)
  44353. -choke me
  44354. -#else
  44355. -char (*f) () = $ac_func;
  44356. -#endif
  44357. -#ifdef __cplusplus
  44358. -}
  44359. -#endif
  44360. +# Used to examine libraries when file_magic_cmd begins with "file".
  44361. +MAGIC_CMD=$MAGIC_CMD
  44362. -int
  44363. -main ()
  44364. -{
  44365. -return f != $ac_func;
  44366. - ;
  44367. - return 0;
  44368. -}
  44369. -_ACEOF
  44370. -rm -f conftest.$ac_objext conftest$ac_exeext
  44371. -if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  44372. - (eval $ac_link) 2>conftest.er1
  44373. - ac_status=$?
  44374. - grep -v '^ *+' conftest.er1 >conftest.err
  44375. - rm -f conftest.er1
  44376. - cat conftest.err >&5
  44377. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44378. - (exit $ac_status); } &&
  44379. - { ac_try='test -z "$ac_c_werror_flag"
  44380. - || test ! -s conftest.err'
  44381. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44382. - (eval $ac_try) 2>&5
  44383. - ac_status=$?
  44384. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44385. - (exit $ac_status); }; } &&
  44386. - { ac_try='test -s conftest$ac_exeext'
  44387. - { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  44388. - (eval $ac_try) 2>&5
  44389. - ac_status=$?
  44390. - echo "$as_me:$LINENO: \$? = $ac_status" >&5
  44391. - (exit $ac_status); }; }; then
  44392. - eval "$as_ac_var=yes"
  44393. -else
  44394. - echo "$as_me: failed program was:" >&5
  44395. -sed 's/^/| /' conftest.$ac_ext >&5
  44396. +# Must we lock files when doing compilation?
  44397. +need_locks=$lt_need_locks
  44398. -eval "$as_ac_var=no"
  44399. -fi
  44400. -rm -f conftest.err conftest.$ac_objext \
  44401. - conftest$ac_exeext conftest.$ac_ext
  44402. -fi
  44403. -echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
  44404. -echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
  44405. -if test `eval echo '${'$as_ac_var'}'` = yes; then
  44406. - cat >>confdefs.h <<_ACEOF
  44407. -#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
  44408. -_ACEOF
  44409. +# Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  44410. +DSYMUTIL=$lt_DSYMUTIL
  44411. -fi
  44412. -done
  44413. +# Tool to change global to local symbols on Mac OS X.
  44414. +NMEDIT=$lt_NMEDIT
  44415. +# Tool to manipulate fat objects and archives on Mac OS X.
  44416. +LIPO=$lt_LIPO
  44417. - ac_config_files="$ac_config_files Makefile doc/Makefile src/Makefile chillispot.spec"
  44418. +# ldd/readelf like tool for Mach-O binaries on Mac OS X.
  44419. +OTOOL=$lt_OTOOL
  44420. -cat >confcache <<\_ACEOF
  44421. -# This file is a shell script that caches the results of configure
  44422. -# tests run on this system so they can be shared between configure
  44423. -# scripts and configure runs, see configure's option --config-cache.
  44424. -# It is not useful on other systems. If it contains results you don't
  44425. -# want to keep, you may remove or edit it.
  44426. -#
  44427. -# config.status only pays attention to the cache file if you give it
  44428. -# the --recheck option to rerun configure.
  44429. -#
  44430. -# `ac_cv_env_foo' variables (set or unset) will be overridden when
  44431. -# loading this file, other *unset* `ac_cv_foo' will be assigned the
  44432. -# following values.
  44433. +# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  44434. +OTOOL64=$lt_OTOOL64
  44435. -_ACEOF
  44436. +# Old archive suffix (normally "a").
  44437. +libext=$libext
  44438. -# The following way of writing the cache mishandles newlines in values,
  44439. -# but we know of no workaround that is simple, portable, and efficient.
  44440. -# So, don't put newlines in cache variables' values.
  44441. -# Ultrix sh set writes to stderr and can't be redirected directly,
  44442. -# and sets the high bit in the cache file unless we assign to the vars.
  44443. -{
  44444. - (set) 2>&1 |
  44445. - case `(ac_space=' '; set | grep ac_space) 2>&1` in
  44446. - *ac_space=\ *)
  44447. - # `set' does not quote correctly, so add quotes (double-quote
  44448. - # substitution turns \\\\ into \\, and sed turns \\ into \).
  44449. - sed -n \
  44450. - "s/'/'\\\\''/g;
  44451. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  44452. - ;;
  44453. - *)
  44454. - # `set' quotes correctly as required by POSIX, so do not add quotes.
  44455. - sed -n \
  44456. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  44457. - ;;
  44458. - esac;
  44459. -} |
  44460. - sed '
  44461. - t clear
  44462. - : clear
  44463. - s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  44464. - t end
  44465. - /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  44466. - : end' >>confcache
  44467. -if diff $cache_file confcache >/dev/null 2>&1; then :; else
  44468. - if test -w $cache_file; then
  44469. - test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
  44470. - cat confcache >$cache_file
  44471. - else
  44472. - echo "not updating unwritable cache $cache_file"
  44473. - fi
  44474. -fi
  44475. -rm -f confcache
  44476. +# Shared library suffix (normally ".so").
  44477. +shrext_cmds=$lt_shrext_cmds
  44478. -test "x$prefix" = xNONE && prefix=$ac_default_prefix
  44479. -# Let make expand exec_prefix.
  44480. -test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  44481. +# The commands to extract the exported symbol list from a shared archive.
  44482. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  44483. -# VPATH may cause trouble with some makes, so we remove $(srcdir),
  44484. -# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
  44485. -# trailing colons and then remove the whole line if VPATH becomes empty
  44486. -# (actually we leave an empty line to preserve line numbers).
  44487. -if test "x$srcdir" = x.; then
  44488. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  44489. -s/:*\$(srcdir):*/:/;
  44490. -s/:*\${srcdir}:*/:/;
  44491. -s/:*@srcdir@:*/:/;
  44492. -s/^\([^=]*=[ ]*\):*/\1/;
  44493. -s/:*$//;
  44494. -s/^[^=]*=[ ]*$//;
  44495. -}'
  44496. -fi
  44497. +# Variables whose values should be saved in libtool wrapper scripts and
  44498. +# restored at link time.
  44499. +variables_saved_for_relink=$lt_variables_saved_for_relink
  44500. -DEFS=-DHAVE_CONFIG_H
  44501. +# Do we need the "lib" prefix for modules?
  44502. +need_lib_prefix=$need_lib_prefix
  44503. -ac_libobjs=
  44504. -ac_ltlibobjs=
  44505. -for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  44506. - # 1. Remove the extension, and $U if already installed.
  44507. - ac_i=`echo "$ac_i" |
  44508. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  44509. - # 2. Add them.
  44510. - ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  44511. - ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  44512. -done
  44513. -LIBOBJS=$ac_libobjs
  44514. +# Do we need a version for libraries?
  44515. +need_version=$need_version
  44516. -LTLIBOBJS=$ac_ltlibobjs
  44517. +# Library versioning type.
  44518. +version_type=$version_type
  44519. +# Shared library runtime path variable.
  44520. +runpath_var=$runpath_var
  44521. -if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  44522. - { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
  44523. -Usually this means the macro was only invoked conditionally." >&5
  44524. -echo "$as_me: error: conditional \"AMDEP\" was never defined.
  44525. -Usually this means the macro was only invoked conditionally." >&2;}
  44526. - { (exit 1); exit 1; }; }
  44527. -fi
  44528. -if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  44529. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
  44530. -Usually this means the macro was only invoked conditionally." >&5
  44531. -echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
  44532. -Usually this means the macro was only invoked conditionally." >&2;}
  44533. - { (exit 1); exit 1; }; }
  44534. -fi
  44535. -if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  44536. - { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
  44537. -Usually this means the macro was only invoked conditionally." >&5
  44538. -echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
  44539. -Usually this means the macro was only invoked conditionally." >&2;}
  44540. - { (exit 1); exit 1; }; }
  44541. -fi
  44542. +# Shared library path variable.
  44543. +shlibpath_var=$shlibpath_var
  44544. -: ${CONFIG_STATUS=./config.status}
  44545. -ac_clean_files_save=$ac_clean_files
  44546. -ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  44547. -{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
  44548. -echo "$as_me: creating $CONFIG_STATUS" >&6;}
  44549. -cat >$CONFIG_STATUS <<_ACEOF
  44550. -#! $SHELL
  44551. -# Generated by $as_me.
  44552. -# Run this file to recreate the current configuration.
  44553. -# Compiler output produced by configure, useful for debugging
  44554. -# configure, is in config.log if it exists.
  44555. +# Is shlibpath searched before the hard-coded library search path?
  44556. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  44557. -debug=false
  44558. -ac_cs_recheck=false
  44559. -ac_cs_silent=false
  44560. -SHELL=\${CONFIG_SHELL-$SHELL}
  44561. -_ACEOF
  44562. +# Format of library name prefix.
  44563. +libname_spec=$lt_libname_spec
  44564. -cat >>$CONFIG_STATUS <<\_ACEOF
  44565. -## --------------------- ##
  44566. -## M4sh Initialization. ##
  44567. -## --------------------- ##
  44568. +# List of archive names. First name is the real one, the rest are links.
  44569. +# The last name is the one that the linker finds with -lNAME
  44570. +library_names_spec=$lt_library_names_spec
  44571. -# Be Bourne compatible
  44572. -if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  44573. - emulate sh
  44574. - NULLCMD=:
  44575. - # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  44576. - # is contrary to our usage. Disable this feature.
  44577. - alias -g '${1+"$@"}'='"$@"'
  44578. -elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  44579. - set -o posix
  44580. -fi
  44581. -DUALCASE=1; export DUALCASE # for MKS sh
  44582. +# The coded name of the library, if different from the real name.
  44583. +soname_spec=$lt_soname_spec
  44584. -# Support unset when possible.
  44585. -if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  44586. - as_unset=unset
  44587. -else
  44588. - as_unset=false
  44589. -fi
  44590. +# Command to use after installation of a shared archive.
  44591. +postinstall_cmds=$lt_postinstall_cmds
  44592. +# Command to use after uninstallation of a shared archive.
  44593. +postuninstall_cmds=$lt_postuninstall_cmds
  44594. -# Work around bugs in pre-3.0 UWIN ksh.
  44595. -$as_unset ENV MAIL MAILPATH
  44596. -PS1='$ '
  44597. -PS2='> '
  44598. -PS4='+ '
  44599. +# Commands used to finish a libtool library installation in a directory.
  44600. +finish_cmds=$lt_finish_cmds
  44601. -# NLS nuisances.
  44602. -for as_var in \
  44603. - LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
  44604. - LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  44605. - LC_TELEPHONE LC_TIME
  44606. -do
  44607. - if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  44608. - eval $as_var=C; export $as_var
  44609. - else
  44610. - $as_unset $as_var
  44611. - fi
  44612. -done
  44613. +# As "finish_cmds", except a single script fragment to be evaled but
  44614. +# not shown.
  44615. +finish_eval=$lt_finish_eval
  44616. -# Required to use basename.
  44617. -if expr a : '\(a\)' >/dev/null 2>&1; then
  44618. - as_expr=expr
  44619. -else
  44620. - as_expr=false
  44621. -fi
  44622. +# Whether we should hardcode library paths into libraries.
  44623. +hardcode_into_libs=$hardcode_into_libs
  44624. -if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
  44625. - as_basename=basename
  44626. -else
  44627. - as_basename=false
  44628. -fi
  44629. +# Compile-time system search path for libraries.
  44630. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  44631. +# Run-time system search path for libraries.
  44632. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  44633. -# Name of the executable.
  44634. -as_me=`$as_basename "$0" ||
  44635. -$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  44636. - X"$0" : 'X\(//\)$' \| \
  44637. - X"$0" : 'X\(/\)$' \| \
  44638. - . : '\(.\)' 2>/dev/null ||
  44639. -echo X/"$0" |
  44640. - sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
  44641. - /^X\/\(\/\/\)$/{ s//\1/; q; }
  44642. - /^X\/\(\/\).*/{ s//\1/; q; }
  44643. - s/.*/./; q'`
  44644. +# Whether dlopen is supported.
  44645. +dlopen_support=$enable_dlopen
  44646. +# Whether dlopen of programs is supported.
  44647. +dlopen_self=$enable_dlopen_self
  44648. -# PATH needs CR, and LINENO needs CR and PATH.
  44649. -# Avoid depending upon Character Ranges.
  44650. -as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  44651. -as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  44652. -as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  44653. -as_cr_digits='0123456789'
  44654. -as_cr_alnum=$as_cr_Letters$as_cr_digits
  44655. +# Whether dlopen of statically linked programs is supported.
  44656. +dlopen_self_static=$enable_dlopen_self_static
  44657. -# The user is always right.
  44658. -if test "${PATH_SEPARATOR+set}" != set; then
  44659. - echo "#! /bin/sh" >conf$$.sh
  44660. - echo "exit 0" >>conf$$.sh
  44661. - chmod +x conf$$.sh
  44662. - if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  44663. - PATH_SEPARATOR=';'
  44664. - else
  44665. - PATH_SEPARATOR=:
  44666. - fi
  44667. - rm -f conf$$.sh
  44668. -fi
  44669. +# Commands to strip libraries.
  44670. +old_striplib=$lt_old_striplib
  44671. +striplib=$lt_striplib
  44672. - as_lineno_1=$LINENO
  44673. - as_lineno_2=$LINENO
  44674. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  44675. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  44676. - test "x$as_lineno_3" = "x$as_lineno_2" || {
  44677. - # Find who we are. Look in the path if we contain no path at all
  44678. - # relative or not.
  44679. - case $0 in
  44680. - *[\\/]* ) as_myself=$0 ;;
  44681. - *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44682. -for as_dir in $PATH
  44683. -do
  44684. - IFS=$as_save_IFS
  44685. - test -z "$as_dir" && as_dir=.
  44686. - test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  44687. -done
  44688. +# The linker used to build libraries.
  44689. +LD=$lt_LD
  44690. - ;;
  44691. - esac
  44692. - # We did not find ourselves, most probably we were run as `sh COMMAND'
  44693. - # in which case we are not to be found in the path.
  44694. - if test "x$as_myself" = x; then
  44695. - as_myself=$0
  44696. - fi
  44697. - if test ! -f "$as_myself"; then
  44698. - { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
  44699. -echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
  44700. - { (exit 1); exit 1; }; }
  44701. - fi
  44702. - case $CONFIG_SHELL in
  44703. - '')
  44704. - as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  44705. -for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  44706. -do
  44707. - IFS=$as_save_IFS
  44708. - test -z "$as_dir" && as_dir=.
  44709. - for as_base in sh bash ksh sh5; do
  44710. - case $as_dir in
  44711. - /*)
  44712. - if ("$as_dir/$as_base" -c '
  44713. - as_lineno_1=$LINENO
  44714. - as_lineno_2=$LINENO
  44715. - as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
  44716. - test "x$as_lineno_1" != "x$as_lineno_2" &&
  44717. - test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then
  44718. - $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
  44719. - $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
  44720. - CONFIG_SHELL=$as_dir/$as_base
  44721. - export CONFIG_SHELL
  44722. - exec "$CONFIG_SHELL" "$0" ${1+"$@"}
  44723. - fi;;
  44724. - esac
  44725. - done
  44726. -done
  44727. -;;
  44728. - esac
  44729. +# Commands used to build an old-style archive.
  44730. +old_archive_cmds=$lt_old_archive_cmds
  44731. - # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
  44732. - # uniformly replaced by the line number. The first 'sed' inserts a
  44733. - # line-number line before each line; the second 'sed' does the real
  44734. - # work. The second script uses 'N' to pair each line-number line
  44735. - # with the numbered line, and appends trailing '-' during
  44736. - # substitution so that $LINENO is not a special case at line end.
  44737. - # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
  44738. - # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-)
  44739. - sed '=' <$as_myself |
  44740. - sed '
  44741. - N
  44742. - s,$,-,
  44743. - : loop
  44744. - s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
  44745. - t loop
  44746. - s,-$,,
  44747. - s,^['$as_cr_digits']*\n,,
  44748. - ' >$as_me.lineno &&
  44749. - chmod +x $as_me.lineno ||
  44750. - { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
  44751. -echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
  44752. - { (exit 1); exit 1; }; }
  44753. +# A language specific compiler.
  44754. +CC=$lt_compiler
  44755. - # Don't try to exec as it changes $[0], causing all sort of problems
  44756. - # (the dirname of $[0] is not the place where we might find the
  44757. - # original and so on. Autoconf is especially sensible to this).
  44758. - . ./$as_me.lineno
  44759. - # Exit status is that of the last command.
  44760. - exit
  44761. -}
  44762. +# Is the compiler the GNU compiler?
  44763. +with_gcc=$GCC
  44764. +# Compiler flag to turn off builtin functions.
  44765. +no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  44766. -case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
  44767. - *c*,-n*) ECHO_N= ECHO_C='
  44768. -' ECHO_T=' ' ;;
  44769. - *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;;
  44770. - *) ECHO_N= ECHO_C='\c' ECHO_T= ;;
  44771. -esac
  44772. +# How to pass a linker flag through the compiler.
  44773. +wl=$lt_lt_prog_compiler_wl
  44774. -if expr a : '\(a\)' >/dev/null 2>&1; then
  44775. - as_expr=expr
  44776. -else
  44777. - as_expr=false
  44778. -fi
  44779. +# Additional compiler flags for building library objects.
  44780. +pic_flag=$lt_lt_prog_compiler_pic
  44781. -rm -f conf$$ conf$$.exe conf$$.file
  44782. -echo >conf$$.file
  44783. -if ln -s conf$$.file conf$$ 2>/dev/null; then
  44784. - # We could just check for DJGPP; but this test a) works b) is more generic
  44785. - # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
  44786. - if test -f conf$$.exe; then
  44787. - # Don't use ln at all; we don't have any links
  44788. - as_ln_s='cp -p'
  44789. - else
  44790. - as_ln_s='ln -s'
  44791. - fi
  44792. -elif ln conf$$.file conf$$ 2>/dev/null; then
  44793. - as_ln_s=ln
  44794. -else
  44795. - as_ln_s='cp -p'
  44796. -fi
  44797. -rm -f conf$$ conf$$.exe conf$$.file
  44798. +# Compiler flag to prevent dynamic linking.
  44799. +link_static_flag=$lt_lt_prog_compiler_static
  44800. -if mkdir -p . 2>/dev/null; then
  44801. - as_mkdir_p=:
  44802. -else
  44803. - test -d ./-p && rmdir ./-p
  44804. - as_mkdir_p=false
  44805. -fi
  44806. +# Does compiler simultaneously support -c and -o options?
  44807. +compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  44808. -as_executable_p="test -f"
  44809. +# Whether or not to add -lc for building shared libraries.
  44810. +build_libtool_need_lc=$archive_cmds_need_lc
  44811. -# Sed expression to map a string onto a valid CPP name.
  44812. -as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  44813. +# Whether or not to disallow shared libs when runtime libs are static.
  44814. +allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  44815. -# Sed expression to map a string onto a valid variable name.
  44816. -as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  44817. +# Compiler flag to allow reflexive dlopens.
  44818. +export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  44819. +# Compiler flag to generate shared objects directly from archives.
  44820. +whole_archive_flag_spec=$lt_whole_archive_flag_spec
  44821. -# IFS
  44822. -# We need space, tab and new line, in precisely that order.
  44823. -as_nl='
  44824. -'
  44825. -IFS=" $as_nl"
  44826. +# Whether the compiler copes with passing no objects directly.
  44827. +compiler_needs_object=$lt_compiler_needs_object
  44828. -# CDPATH.
  44829. -$as_unset CDPATH
  44830. +# Create an old-style archive from a shared archive.
  44831. +old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  44832. -exec 6>&1
  44833. +# Create a temporary old-style archive to link instead of a shared archive.
  44834. +old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  44835. -# Open the log real soon, to keep \$[0] and so on meaningful, and to
  44836. -# report actual input values of CONFIG_FILES etc. instead of their
  44837. -# values after options handling. Logging --version etc. is OK.
  44838. -exec 5>>config.log
  44839. -{
  44840. - echo
  44841. - sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  44842. -## Running $as_me. ##
  44843. -_ASBOX
  44844. -} >&5
  44845. -cat >&5 <<_CSEOF
  44846. +# Commands used to build a shared archive.
  44847. +archive_cmds=$lt_archive_cmds
  44848. +archive_expsym_cmds=$lt_archive_expsym_cmds
  44849. -This file was extended by chillispot $as_me 1.1.0, which was
  44850. -generated by GNU Autoconf 2.59. Invocation command line was
  44851. +# Commands used to build a loadable module if different from building
  44852. +# a shared archive.
  44853. +module_cmds=$lt_module_cmds
  44854. +module_expsym_cmds=$lt_module_expsym_cmds
  44855. - CONFIG_FILES = $CONFIG_FILES
  44856. - CONFIG_HEADERS = $CONFIG_HEADERS
  44857. - CONFIG_LINKS = $CONFIG_LINKS
  44858. - CONFIG_COMMANDS = $CONFIG_COMMANDS
  44859. - $ $0 $@
  44860. +# Whether we are building with GNU ld or not.
  44861. +with_gnu_ld=$lt_with_gnu_ld
  44862. -_CSEOF
  44863. -echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
  44864. -echo >&5
  44865. -_ACEOF
  44866. +# Flag that allows shared libraries with undefined symbols to be built.
  44867. +allow_undefined_flag=$lt_allow_undefined_flag
  44868. -# Files that config.status was made for.
  44869. -if test -n "$ac_config_files"; then
  44870. - echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
  44871. -fi
  44872. +# Flag that enforces no undefined symbols.
  44873. +no_undefined_flag=$lt_no_undefined_flag
  44874. -if test -n "$ac_config_headers"; then
  44875. - echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
  44876. -fi
  44877. +# Flag to hardcode \$libdir into a binary during linking.
  44878. +# This must work even if \$libdir does not exist
  44879. +hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  44880. -if test -n "$ac_config_links"; then
  44881. - echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
  44882. -fi
  44883. +# If ld is used when linking, flag to hardcode \$libdir into a binary
  44884. +# during linking. This must work even if \$libdir does not exist.
  44885. +hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  44886. -if test -n "$ac_config_commands"; then
  44887. - echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
  44888. -fi
  44889. +# Whether we need a single "-rpath" flag with a separated argument.
  44890. +hardcode_libdir_separator=$lt_hardcode_libdir_separator
  44891. -cat >>$CONFIG_STATUS <<\_ACEOF
  44892. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44893. +# DIR into the resulting binary.
  44894. +hardcode_direct=$hardcode_direct
  44895. -ac_cs_usage="\
  44896. -\`$as_me' instantiates files from templates according to the
  44897. -current configuration.
  44898. +# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  44899. +# DIR into the resulting binary and the resulting library dependency is
  44900. +# "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  44901. +# library is relocated.
  44902. +hardcode_direct_absolute=$hardcode_direct_absolute
  44903. -Usage: $0 [OPTIONS] [FILE]...
  44904. +# Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  44905. +# into the resulting binary.
  44906. +hardcode_minus_L=$hardcode_minus_L
  44907. - -h, --help print this help, then exit
  44908. - -V, --version print version number, then exit
  44909. - -q, --quiet do not print progress messages
  44910. - -d, --debug don't remove temporary files
  44911. - --recheck update $as_me by reconfiguring in the same conditions
  44912. - --file=FILE[:TEMPLATE]
  44913. - instantiate the configuration file FILE
  44914. - --header=FILE[:TEMPLATE]
  44915. - instantiate the configuration header FILE
  44916. +# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  44917. +# into the resulting binary.
  44918. +hardcode_shlibpath_var=$hardcode_shlibpath_var
  44919. -Configuration files:
  44920. -$config_files
  44921. +# Set to "yes" if building a shared library automatically hardcodes DIR
  44922. +# into the library and all subsequent libraries and executables linked
  44923. +# against it.
  44924. +hardcode_automatic=$hardcode_automatic
  44925. -Configuration headers:
  44926. -$config_headers
  44927. +# Set to yes if linker adds runtime paths of dependent libraries
  44928. +# to runtime path list.
  44929. +inherit_rpath=$inherit_rpath
  44930. -Configuration commands:
  44931. -$config_commands
  44932. +# Whether libtool must link a program against all its dependency libraries.
  44933. +link_all_deplibs=$link_all_deplibs
  44934. -Report bugs to <bug-autoconf@gnu.org>."
  44935. -_ACEOF
  44936. +# Fix the shell variable \$srcfile for the compiler.
  44937. +fix_srcfile_path=$lt_fix_srcfile_path
  44938. -cat >>$CONFIG_STATUS <<_ACEOF
  44939. -ac_cs_version="\\
  44940. -chillispot config.status 1.1.0
  44941. -configured by $0, generated by GNU Autoconf 2.59,
  44942. - with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  44943. +# Set to "yes" if exported symbols are required.
  44944. +always_export_symbols=$always_export_symbols
  44945. -Copyright (C) 2003 Free Software Foundation, Inc.
  44946. -This config.status script is free software; the Free Software Foundation
  44947. -gives unlimited permission to copy, distribute and modify it."
  44948. -srcdir=$srcdir
  44949. -INSTALL="$INSTALL"
  44950. -_ACEOF
  44951. +# The commands to list exported symbols.
  44952. +export_symbols_cmds=$lt_export_symbols_cmds
  44953. -cat >>$CONFIG_STATUS <<\_ACEOF
  44954. -# If no file are specified by the user, then we need to provide default
  44955. -# value. By we need to know if files were specified by the user.
  44956. -ac_need_defaults=:
  44957. -while test $# != 0
  44958. -do
  44959. - case $1 in
  44960. - --*=*)
  44961. - ac_option=`expr "x$1" : 'x\([^=]*\)='`
  44962. - ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
  44963. - ac_shift=:
  44964. - ;;
  44965. - -*)
  44966. - ac_option=$1
  44967. - ac_optarg=$2
  44968. - ac_shift=shift
  44969. - ;;
  44970. - *) # This is not an option, so the user has probably given explicit
  44971. - # arguments.
  44972. - ac_option=$1
  44973. - ac_need_defaults=false;;
  44974. - esac
  44975. +# Symbols that should not be listed in the preloaded symbols.
  44976. +exclude_expsyms=$lt_exclude_expsyms
  44977. - case $ac_option in
  44978. - # Handling of the options.
  44979. -_ACEOF
  44980. -cat >>$CONFIG_STATUS <<\_ACEOF
  44981. - -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  44982. - ac_cs_recheck=: ;;
  44983. - --version | --vers* | -V )
  44984. - echo "$ac_cs_version"; exit 0 ;;
  44985. - --he | --h)
  44986. - # Conflict between --help and --header
  44987. - { { echo "$as_me:$LINENO: error: ambiguous option: $1
  44988. -Try \`$0 --help' for more information." >&5
  44989. -echo "$as_me: error: ambiguous option: $1
  44990. -Try \`$0 --help' for more information." >&2;}
  44991. - { (exit 1); exit 1; }; };;
  44992. - --help | --hel | -h )
  44993. - echo "$ac_cs_usage"; exit 0 ;;
  44994. - --debug | --d* | -d )
  44995. - debug=: ;;
  44996. - --file | --fil | --fi | --f )
  44997. - $ac_shift
  44998. - CONFIG_FILES="$CONFIG_FILES $ac_optarg"
  44999. - ac_need_defaults=false;;
  45000. - --header | --heade | --head | --hea )
  45001. - $ac_shift
  45002. - CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
  45003. - ac_need_defaults=false;;
  45004. - -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  45005. - | -silent | --silent | --silen | --sile | --sil | --si | --s)
  45006. - ac_cs_silent=: ;;
  45007. +# Symbols that must always be exported.
  45008. +include_expsyms=$lt_include_expsyms
  45009. - # This is an error.
  45010. - -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
  45011. -Try \`$0 --help' for more information." >&5
  45012. -echo "$as_me: error: unrecognized option: $1
  45013. -Try \`$0 --help' for more information." >&2;}
  45014. - { (exit 1); exit 1; }; } ;;
  45015. +# Commands necessary for linking programs (against libraries) with templates.
  45016. +prelink_cmds=$lt_prelink_cmds
  45017. - *) ac_config_targets="$ac_config_targets $1" ;;
  45018. +# Specify filename containing input files.
  45019. +file_list_spec=$lt_file_list_spec
  45020. - esac
  45021. - shift
  45022. -done
  45023. +# How to hardcode a shared library path into an executable.
  45024. +hardcode_action=$hardcode_action
  45025. -ac_configure_extra_args=
  45026. +# ### END LIBTOOL CONFIG
  45027. -if $ac_cs_silent; then
  45028. - exec 6>/dev/null
  45029. - ac_configure_extra_args="$ac_configure_extra_args --silent"
  45030. -fi
  45031. +_LT_EOF
  45032. -_ACEOF
  45033. -cat >>$CONFIG_STATUS <<_ACEOF
  45034. -if \$ac_cs_recheck; then
  45035. - echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
  45036. - exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  45037. + case $host_os in
  45038. + aix3*)
  45039. + cat <<\_LT_EOF >> "$cfgfile"
  45040. +# AIX sometimes has problems with the GCC collect2 program. For some
  45041. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  45042. +# vanish in a puff of smoke.
  45043. +if test "X${COLLECT_NAMES+set}" != Xset; then
  45044. + COLLECT_NAMES=
  45045. + export COLLECT_NAMES
  45046. fi
  45047. +_LT_EOF
  45048. + ;;
  45049. + esac
  45050. -_ACEOF
  45051. -
  45052. -cat >>$CONFIG_STATUS <<_ACEOF
  45053. -#
  45054. -# INIT-COMMANDS section.
  45055. -#
  45056. -AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  45057. +ltmain="$ac_aux_dir/ltmain.sh"
  45058. -_ACEOF
  45059. + # We use sed instead of cat because bash on DJGPP gets confused if
  45060. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  45061. + # text mode, it properly converts lines to CR/LF. This bash problem
  45062. + # is reportedly fixed, but why not run on old versions too?
  45063. + sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  45064. + || (rm -f "$cfgfile"; exit 1)
  45065. + case $xsi_shell in
  45066. + yes)
  45067. + cat << \_LT_EOF >> "$cfgfile"
  45068. -cat >>$CONFIG_STATUS <<\_ACEOF
  45069. -for ac_config_target in $ac_config_targets
  45070. -do
  45071. - case "$ac_config_target" in
  45072. - # Handling of arguments.
  45073. - "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  45074. - "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
  45075. - "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  45076. - "chillispot.spec" ) CONFIG_FILES="$CONFIG_FILES chillispot.spec" ;;
  45077. - "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  45078. - "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  45079. - *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  45080. -echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
  45081. - { (exit 1); exit 1; }; };;
  45082. +# func_dirname file append nondir_replacement
  45083. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  45084. +# otherwise set result to NONDIR_REPLACEMENT.
  45085. +func_dirname ()
  45086. +{
  45087. + case ${1} in
  45088. + */*) func_dirname_result="${1%/*}${2}" ;;
  45089. + * ) func_dirname_result="${3}" ;;
  45090. esac
  45091. -done
  45092. -
  45093. -# If the user did not use the arguments to specify the items to instantiate,
  45094. -# then the envvar interface is used. Set only those that are not.
  45095. -# We use the long form for the default assignment because of an extremely
  45096. -# bizarre bug on SunOS 4.1.3.
  45097. -if $ac_need_defaults; then
  45098. - test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  45099. - test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  45100. - test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  45101. -fi
  45102. +}
  45103. -# Have a temporary directory for convenience. Make it in the build tree
  45104. -# simply because there is no reason to put it here, and in addition,
  45105. -# creating and moving files from /tmp can sometimes cause problems.
  45106. -# Create a temporary directory, and hook for its removal unless debugging.
  45107. -$debug ||
  45108. +# func_basename file
  45109. +func_basename ()
  45110. {
  45111. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  45112. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  45113. + func_basename_result="${1##*/}"
  45114. }
  45115. -# Create a (secure) tmp directory for tmp files.
  45116. -
  45117. -{
  45118. - tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
  45119. - test -n "$tmp" && test -d "$tmp"
  45120. -} ||
  45121. +# func_dirname_and_basename file append nondir_replacement
  45122. +# perform func_basename and func_dirname in a single function
  45123. +# call:
  45124. +# dirname: Compute the dirname of FILE. If nonempty,
  45125. +# add APPEND to the result, otherwise set result
  45126. +# to NONDIR_REPLACEMENT.
  45127. +# value returned in "$func_dirname_result"
  45128. +# basename: Compute filename of FILE.
  45129. +# value retuned in "$func_basename_result"
  45130. +# Implementation must be kept synchronized with func_dirname
  45131. +# and func_basename. For efficiency, we do not delegate to
  45132. +# those functions but instead duplicate the functionality here.
  45133. +func_dirname_and_basename ()
  45134. {
  45135. - tmp=./confstat$$-$RANDOM
  45136. - (umask 077 && mkdir $tmp)
  45137. -} ||
  45138. -{
  45139. - echo "$me: cannot create a temporary directory in ." >&2
  45140. - { (exit 1); exit 1; }
  45141. + case ${1} in
  45142. + */*) func_dirname_result="${1%/*}${2}" ;;
  45143. + * ) func_dirname_result="${3}" ;;
  45144. + esac
  45145. + func_basename_result="${1##*/}"
  45146. }
  45147. -_ACEOF
  45148. -
  45149. -cat >>$CONFIG_STATUS <<_ACEOF
  45150. -
  45151. -#
  45152. -# CONFIG_FILES section.
  45153. -#
  45154. +# func_stripname prefix suffix name
  45155. +# strip PREFIX and SUFFIX off of NAME.
  45156. +# PREFIX and SUFFIX must not contain globbing or regex special
  45157. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  45158. +# dot (in which case that matches only a dot).
  45159. +func_stripname ()
  45160. +{
  45161. + # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  45162. + # positional parameters, so assign one to ordinary parameter first.
  45163. + func_stripname_result=${3}
  45164. + func_stripname_result=${func_stripname_result#"${1}"}
  45165. + func_stripname_result=${func_stripname_result%"${2}"}
  45166. +}
  45167. -# No need to generate the scripts if there are no CONFIG_FILES.
  45168. -# This happens for instance when ./config.status config.h
  45169. -if test -n "\$CONFIG_FILES"; then
  45170. - # Protect against being on the right side of a sed subst in config.status.
  45171. - sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
  45172. - s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
  45173. -s,@SHELL@,$SHELL,;t t
  45174. -s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
  45175. -s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
  45176. -s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
  45177. -s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
  45178. -s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
  45179. -s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
  45180. -s,@exec_prefix@,$exec_prefix,;t t
  45181. -s,@prefix@,$prefix,;t t
  45182. -s,@program_transform_name@,$program_transform_name,;t t
  45183. -s,@bindir@,$bindir,;t t
  45184. -s,@sbindir@,$sbindir,;t t
  45185. -s,@libexecdir@,$libexecdir,;t t
  45186. -s,@datadir@,$datadir,;t t
  45187. -s,@sysconfdir@,$sysconfdir,;t t
  45188. -s,@sharedstatedir@,$sharedstatedir,;t t
  45189. -s,@localstatedir@,$localstatedir,;t t
  45190. -s,@libdir@,$libdir,;t t
  45191. -s,@includedir@,$includedir,;t t
  45192. -s,@oldincludedir@,$oldincludedir,;t t
  45193. -s,@infodir@,$infodir,;t t
  45194. -s,@mandir@,$mandir,;t t
  45195. -s,@build_alias@,$build_alias,;t t
  45196. -s,@host_alias@,$host_alias,;t t
  45197. -s,@target_alias@,$target_alias,;t t
  45198. -s,@DEFS@,$DEFS,;t t
  45199. -s,@ECHO_C@,$ECHO_C,;t t
  45200. -s,@ECHO_N@,$ECHO_N,;t t
  45201. -s,@ECHO_T@,$ECHO_T,;t t
  45202. -s,@LIBS@,$LIBS,;t t
  45203. -s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
  45204. -s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
  45205. -s,@INSTALL_DATA@,$INSTALL_DATA,;t t
  45206. -s,@CYGPATH_W@,$CYGPATH_W,;t t
  45207. -s,@PACKAGE@,$PACKAGE,;t t
  45208. -s,@VERSION@,$VERSION,;t t
  45209. -s,@ACLOCAL@,$ACLOCAL,;t t
  45210. -s,@AUTOCONF@,$AUTOCONF,;t t
  45211. -s,@AUTOMAKE@,$AUTOMAKE,;t t
  45212. -s,@AUTOHEADER@,$AUTOHEADER,;t t
  45213. -s,@MAKEINFO@,$MAKEINFO,;t t
  45214. -s,@install_sh@,$install_sh,;t t
  45215. -s,@STRIP@,$STRIP,;t t
  45216. -s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t
  45217. -s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t
  45218. -s,@mkdir_p@,$mkdir_p,;t t
  45219. -s,@AWK@,$AWK,;t t
  45220. -s,@SET_MAKE@,$SET_MAKE,;t t
  45221. -s,@am__leading_dot@,$am__leading_dot,;t t
  45222. -s,@AMTAR@,$AMTAR,;t t
  45223. -s,@am__tar@,$am__tar,;t t
  45224. -s,@am__untar@,$am__untar,;t t
  45225. -s,@CC@,$CC,;t t
  45226. -s,@CFLAGS@,$CFLAGS,;t t
  45227. -s,@LDFLAGS@,$LDFLAGS,;t t
  45228. -s,@CPPFLAGS@,$CPPFLAGS,;t t
  45229. -s,@ac_ct_CC@,$ac_ct_CC,;t t
  45230. -s,@EXEEXT@,$EXEEXT,;t t
  45231. -s,@OBJEXT@,$OBJEXT,;t t
  45232. -s,@DEPDIR@,$DEPDIR,;t t
  45233. -s,@am__include@,$am__include,;t t
  45234. -s,@am__quote@,$am__quote,;t t
  45235. -s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t
  45236. -s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t
  45237. -s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t
  45238. -s,@CCDEPMODE@,$CCDEPMODE,;t t
  45239. -s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t
  45240. -s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t
  45241. -s,@build@,$build,;t t
  45242. -s,@build_cpu@,$build_cpu,;t t
  45243. -s,@build_vendor@,$build_vendor,;t t
  45244. -s,@build_os@,$build_os,;t t
  45245. -s,@host@,$host,;t t
  45246. -s,@host_cpu@,$host_cpu,;t t
  45247. -s,@host_vendor@,$host_vendor,;t t
  45248. -s,@host_os@,$host_os,;t t
  45249. -s,@EGREP@,$EGREP,;t t
  45250. -s,@LN_S@,$LN_S,;t t
  45251. -s,@ECHO@,$ECHO,;t t
  45252. -s,@AR@,$AR,;t t
  45253. -s,@ac_ct_AR@,$ac_ct_AR,;t t
  45254. -s,@RANLIB@,$RANLIB,;t t
  45255. -s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t
  45256. -s,@CPP@,$CPP,;t t
  45257. -s,@CXX@,$CXX,;t t
  45258. -s,@CXXFLAGS@,$CXXFLAGS,;t t
  45259. -s,@ac_ct_CXX@,$ac_ct_CXX,;t t
  45260. -s,@CXXDEPMODE@,$CXXDEPMODE,;t t
  45261. -s,@am__fastdepCXX_TRUE@,$am__fastdepCXX_TRUE,;t t
  45262. -s,@am__fastdepCXX_FALSE@,$am__fastdepCXX_FALSE,;t t
  45263. -s,@CXXCPP@,$CXXCPP,;t t
  45264. -s,@F77@,$F77,;t t
  45265. -s,@FFLAGS@,$FFLAGS,;t t
  45266. -s,@ac_ct_F77@,$ac_ct_F77,;t t
  45267. -s,@LIBTOOL@,$LIBTOOL,;t t
  45268. -s,@LIBOBJS@,$LIBOBJS,;t t
  45269. -s,@LTLIBOBJS@,$LTLIBOBJS,;t t
  45270. -CEOF
  45271. -
  45272. -_ACEOF
  45273. -
  45274. - cat >>$CONFIG_STATUS <<\_ACEOF
  45275. - # Split the substitutions into bite-sized pieces for seds with
  45276. - # small command number limits, like on Digital OSF/1 and HP-UX.
  45277. - ac_max_sed_lines=48
  45278. - ac_sed_frag=1 # Number of current file.
  45279. - ac_beg=1 # First line for current file.
  45280. - ac_end=$ac_max_sed_lines # Line after last line for current file.
  45281. - ac_more_lines=:
  45282. - ac_sed_cmds=
  45283. - while $ac_more_lines; do
  45284. - if test $ac_beg -gt 1; then
  45285. - sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  45286. - else
  45287. - sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
  45288. - fi
  45289. - if test ! -s $tmp/subs.frag; then
  45290. - ac_more_lines=false
  45291. - else
  45292. - # The purpose of the label and of the branching condition is to
  45293. - # speed up the sed processing (if there are no `@' at all, there
  45294. - # is no need to browse any of the substitutions).
  45295. - # These are the two extra sed commands mentioned above.
  45296. - (echo ':t
  45297. - /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  45298. - if test -z "$ac_sed_cmds"; then
  45299. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  45300. - else
  45301. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  45302. - fi
  45303. - ac_sed_frag=`expr $ac_sed_frag + 1`
  45304. - ac_beg=$ac_end
  45305. - ac_end=`expr $ac_end + $ac_max_sed_lines`
  45306. - fi
  45307. - done
  45308. - if test -z "$ac_sed_cmds"; then
  45309. - ac_sed_cmds=cat
  45310. - fi
  45311. -fi # test -n "$CONFIG_FILES"
  45312. +# func_opt_split
  45313. +func_opt_split ()
  45314. +{
  45315. + func_opt_split_opt=${1%%=*}
  45316. + func_opt_split_arg=${1#*=}
  45317. +}
  45318. -_ACEOF
  45319. -cat >>$CONFIG_STATUS <<\_ACEOF
  45320. -for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
  45321. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  45322. - case $ac_file in
  45323. - - | *:- | *:-:* ) # input from stdin
  45324. - cat >$tmp/stdin
  45325. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  45326. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  45327. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  45328. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  45329. - * ) ac_file_in=$ac_file.in ;;
  45330. +# func_lo2o object
  45331. +func_lo2o ()
  45332. +{
  45333. + case ${1} in
  45334. + *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  45335. + *) func_lo2o_result=${1} ;;
  45336. esac
  45337. +}
  45338. - # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  45339. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  45340. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45341. - X"$ac_file" : 'X\(//\)[^/]' \| \
  45342. - X"$ac_file" : 'X\(//\)$' \| \
  45343. - X"$ac_file" : 'X\(/\)' \| \
  45344. - . : '\(.\)' 2>/dev/null ||
  45345. -echo X"$ac_file" |
  45346. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  45347. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  45348. - /^X\(\/\/\)$/{ s//\1/; q; }
  45349. - /^X\(\/\).*/{ s//\1/; q; }
  45350. - s/.*/./; q'`
  45351. - { if $as_mkdir_p; then
  45352. - mkdir -p "$ac_dir"
  45353. - else
  45354. - as_dir="$ac_dir"
  45355. - as_dirs=
  45356. - while test ! -d "$as_dir"; do
  45357. - as_dirs="$as_dir $as_dirs"
  45358. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  45359. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45360. - X"$as_dir" : 'X\(//\)[^/]' \| \
  45361. - X"$as_dir" : 'X\(//\)$' \| \
  45362. - X"$as_dir" : 'X\(/\)' \| \
  45363. - . : '\(.\)' 2>/dev/null ||
  45364. -echo X"$as_dir" |
  45365. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  45366. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  45367. - /^X\(\/\/\)$/{ s//\1/; q; }
  45368. - /^X\(\/\).*/{ s//\1/; q; }
  45369. - s/.*/./; q'`
  45370. - done
  45371. - test ! -n "$as_dirs" || mkdir $as_dirs
  45372. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  45373. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  45374. - { (exit 1); exit 1; }; }; }
  45375. -
  45376. - ac_builddir=.
  45377. -
  45378. -if test "$ac_dir" != .; then
  45379. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  45380. - # A "../" for each directory in $ac_dir_suffix.
  45381. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  45382. -else
  45383. - ac_dir_suffix= ac_top_builddir=
  45384. -fi
  45385. -
  45386. -case $srcdir in
  45387. - .) # No --srcdir option. We are building in place.
  45388. - ac_srcdir=.
  45389. - if test -z "$ac_top_builddir"; then
  45390. - ac_top_srcdir=.
  45391. - else
  45392. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  45393. - fi ;;
  45394. - [\\/]* | ?:[\\/]* ) # Absolute path.
  45395. - ac_srcdir=$srcdir$ac_dir_suffix;
  45396. - ac_top_srcdir=$srcdir ;;
  45397. - *) # Relative path.
  45398. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  45399. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  45400. -esac
  45401. -
  45402. -# Do not use `cd foo && pwd` to compute absolute paths, because
  45403. -# the directories may not exist.
  45404. -case `pwd` in
  45405. -.) ac_abs_builddir="$ac_dir";;
  45406. -*)
  45407. - case "$ac_dir" in
  45408. - .) ac_abs_builddir=`pwd`;;
  45409. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  45410. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  45411. - esac;;
  45412. -esac
  45413. -case $ac_abs_builddir in
  45414. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  45415. -*)
  45416. - case ${ac_top_builddir}. in
  45417. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  45418. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  45419. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  45420. - esac;;
  45421. -esac
  45422. -case $ac_abs_builddir in
  45423. -.) ac_abs_srcdir=$ac_srcdir;;
  45424. -*)
  45425. - case $ac_srcdir in
  45426. - .) ac_abs_srcdir=$ac_abs_builddir;;
  45427. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  45428. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  45429. - esac;;
  45430. -esac
  45431. -case $ac_abs_builddir in
  45432. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  45433. -*)
  45434. - case $ac_top_srcdir in
  45435. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  45436. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  45437. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  45438. - esac;;
  45439. -esac
  45440. +# func_xform libobj-or-source
  45441. +func_xform ()
  45442. +{
  45443. + func_xform_result=${1%.*}.lo
  45444. +}
  45445. +# func_arith arithmetic-term...
  45446. +func_arith ()
  45447. +{
  45448. + func_arith_result=$(( $* ))
  45449. +}
  45450. - case $INSTALL in
  45451. - [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  45452. - *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  45453. - esac
  45454. +# func_len string
  45455. +# STRING may not start with a hyphen.
  45456. +func_len ()
  45457. +{
  45458. + func_len_result=${#1}
  45459. +}
  45460. - if test x"$ac_file" != x-; then
  45461. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  45462. -echo "$as_me: creating $ac_file" >&6;}
  45463. - rm -f "$ac_file"
  45464. - fi
  45465. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  45466. - # use $as_me), people would be surprised to read:
  45467. - # /* config.h. Generated by config.status. */
  45468. - if test x"$ac_file" = x-; then
  45469. - configure_input=
  45470. - else
  45471. - configure_input="$ac_file. "
  45472. - fi
  45473. - configure_input=$configure_input"Generated from `echo $ac_file_in |
  45474. - sed 's,.*/,,'` by configure."
  45475. +_LT_EOF
  45476. + ;;
  45477. + *) # Bourne compatible functions.
  45478. + cat << \_LT_EOF >> "$cfgfile"
  45479. - # First look for the input files in the build tree, otherwise in the
  45480. - # src tree.
  45481. - ac_file_inputs=`IFS=:
  45482. - for f in $ac_file_in; do
  45483. - case $f in
  45484. - -) echo $tmp/stdin ;;
  45485. - [\\/$]*)
  45486. - # Absolute (can't be DOS-style, as IFS=:)
  45487. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  45488. -echo "$as_me: error: cannot find input file: $f" >&2;}
  45489. - { (exit 1); exit 1; }; }
  45490. - echo "$f";;
  45491. - *) # Relative
  45492. - if test -f "$f"; then
  45493. - # Build tree
  45494. - echo "$f"
  45495. - elif test -f "$srcdir/$f"; then
  45496. - # Source tree
  45497. - echo "$srcdir/$f"
  45498. - else
  45499. - # /dev/null tree
  45500. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  45501. -echo "$as_me: error: cannot find input file: $f" >&2;}
  45502. - { (exit 1); exit 1; }; }
  45503. - fi;;
  45504. - esac
  45505. - done` || { (exit 1); exit 1; }
  45506. -_ACEOF
  45507. -cat >>$CONFIG_STATUS <<_ACEOF
  45508. - sed "$ac_vpsub
  45509. -$extrasub
  45510. -_ACEOF
  45511. -cat >>$CONFIG_STATUS <<\_ACEOF
  45512. -:t
  45513. -/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  45514. -s,@configure_input@,$configure_input,;t t
  45515. -s,@srcdir@,$ac_srcdir,;t t
  45516. -s,@abs_srcdir@,$ac_abs_srcdir,;t t
  45517. -s,@top_srcdir@,$ac_top_srcdir,;t t
  45518. -s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
  45519. -s,@builddir@,$ac_builddir,;t t
  45520. -s,@abs_builddir@,$ac_abs_builddir,;t t
  45521. -s,@top_builddir@,$ac_top_builddir,;t t
  45522. -s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
  45523. -s,@INSTALL@,$ac_INSTALL,;t t
  45524. -" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
  45525. - rm -f $tmp/stdin
  45526. - if test x"$ac_file" != x-; then
  45527. - mv $tmp/out $ac_file
  45528. +# func_dirname file append nondir_replacement
  45529. +# Compute the dirname of FILE. If nonempty, add APPEND to the result,
  45530. +# otherwise set result to NONDIR_REPLACEMENT.
  45531. +func_dirname ()
  45532. +{
  45533. + # Extract subdirectory from the argument.
  45534. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  45535. + if test "X$func_dirname_result" = "X${1}"; then
  45536. + func_dirname_result="${3}"
  45537. else
  45538. - cat $tmp/out
  45539. - rm -f $tmp/out
  45540. + func_dirname_result="$func_dirname_result${2}"
  45541. fi
  45542. +}
  45543. -done
  45544. -_ACEOF
  45545. -cat >>$CONFIG_STATUS <<\_ACEOF
  45546. -
  45547. -#
  45548. -# CONFIG_HEADER section.
  45549. -#
  45550. +# func_basename file
  45551. +func_basename ()
  45552. +{
  45553. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  45554. +}
  45555. -# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
  45556. -# NAME is the cpp macro being defined and VALUE is the value it is being given.
  45557. -#
  45558. -# ac_d sets the value in "#define NAME VALUE" lines.
  45559. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  45560. -ac_dB='[ ].*$,\1#\2'
  45561. -ac_dC=' '
  45562. -ac_dD=',;t'
  45563. -# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  45564. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  45565. -ac_uB='$,\1#\2define\3'
  45566. -ac_uC=' '
  45567. -ac_uD=',;t'
  45568. -for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue
  45569. - # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  45570. - case $ac_file in
  45571. - - | *:- | *:-:* ) # input from stdin
  45572. - cat >$tmp/stdin
  45573. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  45574. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  45575. - *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  45576. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  45577. - * ) ac_file_in=$ac_file.in ;;
  45578. +# func_stripname prefix suffix name
  45579. +# strip PREFIX and SUFFIX off of NAME.
  45580. +# PREFIX and SUFFIX must not contain globbing or regex special
  45581. +# characters, hashes, percent signs, but SUFFIX may contain a leading
  45582. +# dot (in which case that matches only a dot).
  45583. +# func_strip_suffix prefix name
  45584. +func_stripname ()
  45585. +{
  45586. + case ${2} in
  45587. + .*) func_stripname_result=`$ECHO "X${3}" \
  45588. + | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;;
  45589. + *) func_stripname_result=`$ECHO "X${3}" \
  45590. + | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;;
  45591. esac
  45592. +}
  45593. - test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5
  45594. -echo "$as_me: creating $ac_file" >&6;}
  45595. +# sed scripts:
  45596. +my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  45597. +my_sed_long_arg='1s/^-[^=]*=//'
  45598. - # First look for the input files in the build tree, otherwise in the
  45599. - # src tree.
  45600. - ac_file_inputs=`IFS=:
  45601. - for f in $ac_file_in; do
  45602. - case $f in
  45603. - -) echo $tmp/stdin ;;
  45604. - [\\/$]*)
  45605. - # Absolute (can't be DOS-style, as IFS=:)
  45606. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  45607. -echo "$as_me: error: cannot find input file: $f" >&2;}
  45608. - { (exit 1); exit 1; }; }
  45609. - # Do quote $f, to prevent DOS paths from being IFS'd.
  45610. - echo "$f";;
  45611. - *) # Relative
  45612. - if test -f "$f"; then
  45613. - # Build tree
  45614. - echo "$f"
  45615. - elif test -f "$srcdir/$f"; then
  45616. - # Source tree
  45617. - echo "$srcdir/$f"
  45618. - else
  45619. - # /dev/null tree
  45620. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  45621. -echo "$as_me: error: cannot find input file: $f" >&2;}
  45622. - { (exit 1); exit 1; }; }
  45623. - fi;;
  45624. - esac
  45625. - done` || { (exit 1); exit 1; }
  45626. - # Remove the trailing spaces.
  45627. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  45628. +# func_opt_split
  45629. +func_opt_split ()
  45630. +{
  45631. + func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"`
  45632. + func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"`
  45633. +}
  45634. -_ACEOF
  45635. +# func_lo2o object
  45636. +func_lo2o ()
  45637. +{
  45638. + func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"`
  45639. +}
  45640. -# Transform confdefs.h into two sed scripts, `conftest.defines' and
  45641. -# `conftest.undefs', that substitutes the proper values into
  45642. -# config.h.in to produce config.h. The first handles `#define'
  45643. -# templates, and the second `#undef' templates.
  45644. -# And first: Protect against being on the right side of a sed subst in
  45645. -# config.status. Protect against being in an unquoted here document
  45646. -# in config.status.
  45647. -rm -f conftest.defines conftest.undefs
  45648. -# Using a here document instead of a string reduces the quoting nightmare.
  45649. -# Putting comments in sed scripts is not portable.
  45650. -#
  45651. -# `end' is used to avoid that the second main sed command (meant for
  45652. -# 0-ary CPP macros) applies to n-ary macro definitions.
  45653. -# See the Autoconf documentation for `clear'.
  45654. -cat >confdef2sed.sed <<\_ACEOF
  45655. -s/[\\&,]/\\&/g
  45656. -s,[\\$`],\\&,g
  45657. -t clear
  45658. -: clear
  45659. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  45660. -t end
  45661. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  45662. -: end
  45663. -_ACEOF
  45664. -# If some macros were called several times there might be several times
  45665. -# the same #defines, which is useless. Nevertheless, we may not want to
  45666. -# sort them, since we want the *last* AC-DEFINE to be honored.
  45667. -uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines
  45668. -sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs
  45669. -rm -f confdef2sed.sed
  45670. -
  45671. -# This sed command replaces #undef with comments. This is necessary, for
  45672. -# example, in the case of _POSIX_SOURCE, which is predefined and required
  45673. -# on some systems where configure will not decide to define it.
  45674. -cat >>conftest.undefs <<\_ACEOF
  45675. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  45676. -_ACEOF
  45677. -
  45678. -# Break up conftest.defines because some shells have a limit on the size
  45679. -# of here documents, and old seds have small limits too (100 cmds).
  45680. -echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  45681. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  45682. -echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  45683. -echo ' :' >>$CONFIG_STATUS
  45684. -rm -f conftest.tail
  45685. -while grep . conftest.defines >/dev/null
  45686. -do
  45687. - # Write a limited-size here document to $tmp/defines.sed.
  45688. - echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  45689. - # Speed up: don't consider the non `#define' lines.
  45690. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  45691. - # Work around the forget-to-reset-the-flag bug.
  45692. - echo 't clr' >>$CONFIG_STATUS
  45693. - echo ': clr' >>$CONFIG_STATUS
  45694. - sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS
  45695. - echo 'CEOF
  45696. - sed -f $tmp/defines.sed $tmp/in >$tmp/out
  45697. - rm -f $tmp/in
  45698. - mv $tmp/out $tmp/in
  45699. -' >>$CONFIG_STATUS
  45700. - sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail
  45701. - rm -f conftest.defines
  45702. - mv conftest.tail conftest.defines
  45703. -done
  45704. -rm -f conftest.defines
  45705. -echo ' fi # grep' >>$CONFIG_STATUS
  45706. -echo >>$CONFIG_STATUS
  45707. -
  45708. -# Break up conftest.undefs because some shells have a limit on the size
  45709. -# of here documents, and old seds have small limits too (100 cmds).
  45710. -echo ' # Handle all the #undef templates' >>$CONFIG_STATUS
  45711. -rm -f conftest.tail
  45712. -while grep . conftest.undefs >/dev/null
  45713. -do
  45714. - # Write a limited-size here document to $tmp/undefs.sed.
  45715. - echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  45716. - # Speed up: don't consider the non `#undef'
  45717. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  45718. - # Work around the forget-to-reset-the-flag bug.
  45719. - echo 't clr' >>$CONFIG_STATUS
  45720. - echo ': clr' >>$CONFIG_STATUS
  45721. - sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS
  45722. - echo 'CEOF
  45723. - sed -f $tmp/undefs.sed $tmp/in >$tmp/out
  45724. - rm -f $tmp/in
  45725. - mv $tmp/out $tmp/in
  45726. -' >>$CONFIG_STATUS
  45727. - sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail
  45728. - rm -f conftest.undefs
  45729. - mv conftest.tail conftest.undefs
  45730. -done
  45731. -rm -f conftest.undefs
  45732. +# func_xform libobj-or-source
  45733. +func_xform ()
  45734. +{
  45735. + func_xform_result=`$ECHO "X${1}" | $Xsed -e 's/\.[^.]*$/.lo/'`
  45736. +}
  45737. -cat >>$CONFIG_STATUS <<\_ACEOF
  45738. - # Let's still pretend it is `configure' which instantiates (i.e., don't
  45739. - # use $as_me), people would be surprised to read:
  45740. - # /* config.h. Generated by config.status. */
  45741. - if test x"$ac_file" = x-; then
  45742. - echo "/* Generated by configure. */" >$tmp/config.h
  45743. - else
  45744. - echo "/* $ac_file. Generated by configure. */" >$tmp/config.h
  45745. - fi
  45746. - cat $tmp/in >>$tmp/config.h
  45747. - rm -f $tmp/in
  45748. - if test x"$ac_file" != x-; then
  45749. - if diff $ac_file $tmp/config.h >/dev/null 2>&1; then
  45750. - { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
  45751. -echo "$as_me: $ac_file is unchanged" >&6;}
  45752. - else
  45753. - ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  45754. -$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45755. - X"$ac_file" : 'X\(//\)[^/]' \| \
  45756. - X"$ac_file" : 'X\(//\)$' \| \
  45757. - X"$ac_file" : 'X\(/\)' \| \
  45758. - . : '\(.\)' 2>/dev/null ||
  45759. -echo X"$ac_file" |
  45760. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  45761. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  45762. - /^X\(\/\/\)$/{ s//\1/; q; }
  45763. - /^X\(\/\).*/{ s//\1/; q; }
  45764. - s/.*/./; q'`
  45765. - { if $as_mkdir_p; then
  45766. - mkdir -p "$ac_dir"
  45767. - else
  45768. - as_dir="$ac_dir"
  45769. - as_dirs=
  45770. - while test ! -d "$as_dir"; do
  45771. - as_dirs="$as_dir $as_dirs"
  45772. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  45773. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45774. - X"$as_dir" : 'X\(//\)[^/]' \| \
  45775. - X"$as_dir" : 'X\(//\)$' \| \
  45776. - X"$as_dir" : 'X\(/\)' \| \
  45777. - . : '\(.\)' 2>/dev/null ||
  45778. -echo X"$as_dir" |
  45779. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  45780. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  45781. - /^X\(\/\/\)$/{ s//\1/; q; }
  45782. - /^X\(\/\).*/{ s//\1/; q; }
  45783. - s/.*/./; q'`
  45784. - done
  45785. - test ! -n "$as_dirs" || mkdir $as_dirs
  45786. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  45787. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  45788. - { (exit 1); exit 1; }; }; }
  45789. +# func_arith arithmetic-term...
  45790. +func_arith ()
  45791. +{
  45792. + func_arith_result=`expr "$@"`
  45793. +}
  45794. - rm -f $ac_file
  45795. - mv $tmp/config.h $ac_file
  45796. - fi
  45797. - else
  45798. - cat $tmp/config.h
  45799. - rm -f $tmp/config.h
  45800. - fi
  45801. -# Compute $ac_file's index in $config_headers.
  45802. -_am_stamp_count=1
  45803. -for _am_header in $config_headers :; do
  45804. - case $_am_header in
  45805. - $ac_file | $ac_file:* )
  45806. - break ;;
  45807. - * )
  45808. - _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  45809. - esac
  45810. -done
  45811. -echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null ||
  45812. -$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45813. - X$ac_file : 'X\(//\)[^/]' \| \
  45814. - X$ac_file : 'X\(//\)$' \| \
  45815. - X$ac_file : 'X\(/\)' \| \
  45816. - . : '\(.\)' 2>/dev/null ||
  45817. -echo X$ac_file |
  45818. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  45819. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  45820. - /^X\(\/\/\)$/{ s//\1/; q; }
  45821. - /^X\(\/\).*/{ s//\1/; q; }
  45822. - s/.*/./; q'`/stamp-h$_am_stamp_count
  45823. -done
  45824. -_ACEOF
  45825. -cat >>$CONFIG_STATUS <<\_ACEOF
  45826. +# func_len string
  45827. +# STRING may not start with a hyphen.
  45828. +func_len ()
  45829. +{
  45830. + func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  45831. +}
  45832. -#
  45833. -# CONFIG_COMMANDS section.
  45834. -#
  45835. -for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue
  45836. - ac_dest=`echo "$ac_file" | sed 's,:.*,,'`
  45837. - ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  45838. - ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  45839. -$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45840. - X"$ac_dest" : 'X\(//\)[^/]' \| \
  45841. - X"$ac_dest" : 'X\(//\)$' \| \
  45842. - X"$ac_dest" : 'X\(/\)' \| \
  45843. - . : '\(.\)' 2>/dev/null ||
  45844. -echo X"$ac_dest" |
  45845. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  45846. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  45847. - /^X\(\/\/\)$/{ s//\1/; q; }
  45848. - /^X\(\/\).*/{ s//\1/; q; }
  45849. - s/.*/./; q'`
  45850. - { if $as_mkdir_p; then
  45851. - mkdir -p "$ac_dir"
  45852. - else
  45853. - as_dir="$ac_dir"
  45854. - as_dirs=
  45855. - while test ! -d "$as_dir"; do
  45856. - as_dirs="$as_dir $as_dirs"
  45857. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  45858. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45859. - X"$as_dir" : 'X\(//\)[^/]' \| \
  45860. - X"$as_dir" : 'X\(//\)$' \| \
  45861. - X"$as_dir" : 'X\(/\)' \| \
  45862. - . : '\(.\)' 2>/dev/null ||
  45863. -echo X"$as_dir" |
  45864. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  45865. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  45866. - /^X\(\/\/\)$/{ s//\1/; q; }
  45867. - /^X\(\/\).*/{ s//\1/; q; }
  45868. - s/.*/./; q'`
  45869. - done
  45870. - test ! -n "$as_dirs" || mkdir $as_dirs
  45871. - fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  45872. -echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  45873. - { (exit 1); exit 1; }; }; }
  45874. +_LT_EOF
  45875. +esac
  45876. - ac_builddir=.
  45877. +case $lt_shell_append in
  45878. + yes)
  45879. + cat << \_LT_EOF >> "$cfgfile"
  45880. -if test "$ac_dir" != .; then
  45881. - ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
  45882. - # A "../" for each directory in $ac_dir_suffix.
  45883. - ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
  45884. -else
  45885. - ac_dir_suffix= ac_top_builddir=
  45886. -fi
  45887. +# func_append var value
  45888. +# Append VALUE to the end of shell variable VAR.
  45889. +func_append ()
  45890. +{
  45891. + eval "$1+=\$2"
  45892. +}
  45893. +_LT_EOF
  45894. + ;;
  45895. + *)
  45896. + cat << \_LT_EOF >> "$cfgfile"
  45897. -case $srcdir in
  45898. - .) # No --srcdir option. We are building in place.
  45899. - ac_srcdir=.
  45900. - if test -z "$ac_top_builddir"; then
  45901. - ac_top_srcdir=.
  45902. - else
  45903. - ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
  45904. - fi ;;
  45905. - [\\/]* | ?:[\\/]* ) # Absolute path.
  45906. - ac_srcdir=$srcdir$ac_dir_suffix;
  45907. - ac_top_srcdir=$srcdir ;;
  45908. - *) # Relative path.
  45909. - ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  45910. - ac_top_srcdir=$ac_top_builddir$srcdir ;;
  45911. -esac
  45912. +# func_append var value
  45913. +# Append VALUE to the end of shell variable VAR.
  45914. +func_append ()
  45915. +{
  45916. + eval "$1=\$$1\$2"
  45917. +}
  45918. -# Do not use `cd foo && pwd` to compute absolute paths, because
  45919. -# the directories may not exist.
  45920. -case `pwd` in
  45921. -.) ac_abs_builddir="$ac_dir";;
  45922. -*)
  45923. - case "$ac_dir" in
  45924. - .) ac_abs_builddir=`pwd`;;
  45925. - [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  45926. - *) ac_abs_builddir=`pwd`/"$ac_dir";;
  45927. - esac;;
  45928. -esac
  45929. -case $ac_abs_builddir in
  45930. -.) ac_abs_top_builddir=${ac_top_builddir}.;;
  45931. -*)
  45932. - case ${ac_top_builddir}. in
  45933. - .) ac_abs_top_builddir=$ac_abs_builddir;;
  45934. - [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  45935. - *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  45936. - esac;;
  45937. -esac
  45938. -case $ac_abs_builddir in
  45939. -.) ac_abs_srcdir=$ac_srcdir;;
  45940. -*)
  45941. - case $ac_srcdir in
  45942. - .) ac_abs_srcdir=$ac_abs_builddir;;
  45943. - [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  45944. - *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  45945. - esac;;
  45946. -esac
  45947. -case $ac_abs_builddir in
  45948. -.) ac_abs_top_srcdir=$ac_top_srcdir;;
  45949. -*)
  45950. - case $ac_top_srcdir in
  45951. - .) ac_abs_top_srcdir=$ac_abs_builddir;;
  45952. - [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  45953. - *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  45954. - esac;;
  45955. -esac
  45956. +_LT_EOF
  45957. + ;;
  45958. + esac
  45959. - { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  45960. -echo "$as_me: executing $ac_dest commands" >&6;}
  45961. - case $ac_dest in
  45962. - depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
  45963. - # Strip MF so we end up with the name of the file.
  45964. - mf=`echo "$mf" | sed -e 's/:.*$//'`
  45965. - # Check whether this is an Automake generated Makefile or not.
  45966. - # We used to match only the files named `Makefile.in', but
  45967. - # some people rename them; so instead we look at the file content.
  45968. - # Grep'ing the first line is not enough: some people post-process
  45969. - # each Makefile.in and add a new line on top of each file to say so.
  45970. - # So let's grep whole file.
  45971. - if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
  45972. - dirpart=`(dirname "$mf") 2>/dev/null ||
  45973. -$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  45974. - X"$mf" : 'X\(//\)[^/]' \| \
  45975. - X"$mf" : 'X\(//\)$' \| \
  45976. - X"$mf" : 'X\(/\)' \| \
  45977. - . : '\(.\)' 2>/dev/null ||
  45978. -echo X"$mf" |
  45979. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  45980. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  45981. - /^X\(\/\/\)$/{ s//\1/; q; }
  45982. - /^X\(\/\).*/{ s//\1/; q; }
  45983. - s/.*/./; q'`
  45984. - else
  45985. - continue
  45986. - fi
  45987. - # Extract the definition of DEPDIR, am__include, and am__quote
  45988. - # from the Makefile without running `make'.
  45989. - DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  45990. - test -z "$DEPDIR" && continue
  45991. - am__include=`sed -n 's/^am__include = //p' < "$mf"`
  45992. - test -z "am__include" && continue
  45993. - am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  45994. - # When using ansi2knr, U may be empty or an underscore; expand it
  45995. - U=`sed -n 's/^U = //p' < "$mf"`
  45996. - # Find all dependency output files, they are included files with
  45997. - # $(DEPDIR) in their names. We invoke sed twice because it is the
  45998. - # simplest approach to changing $(DEPDIR) to its actual value in the
  45999. - # expansion.
  46000. - for file in `sed -n "
  46001. - s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  46002. - sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  46003. - # Make sure the directory exists.
  46004. - test -f "$dirpart/$file" && continue
  46005. - fdir=`(dirname "$file") 2>/dev/null ||
  46006. -$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46007. - X"$file" : 'X\(//\)[^/]' \| \
  46008. - X"$file" : 'X\(//\)$' \| \
  46009. - X"$file" : 'X\(/\)' \| \
  46010. - . : '\(.\)' 2>/dev/null ||
  46011. -echo X"$file" |
  46012. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46013. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46014. - /^X\(\/\/\)$/{ s//\1/; q; }
  46015. - /^X\(\/\).*/{ s//\1/; q; }
  46016. - s/.*/./; q'`
  46017. - { if $as_mkdir_p; then
  46018. - mkdir -p $dirpart/$fdir
  46019. - else
  46020. - as_dir=$dirpart/$fdir
  46021. - as_dirs=
  46022. - while test ! -d "$as_dir"; do
  46023. - as_dirs="$as_dir $as_dirs"
  46024. - as_dir=`(dirname "$as_dir") 2>/dev/null ||
  46025. -$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  46026. - X"$as_dir" : 'X\(//\)[^/]' \| \
  46027. - X"$as_dir" : 'X\(//\)$' \| \
  46028. - X"$as_dir" : 'X\(/\)' \| \
  46029. - . : '\(.\)' 2>/dev/null ||
  46030. -echo X"$as_dir" |
  46031. - sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  46032. - /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  46033. - /^X\(\/\/\)$/{ s//\1/; q; }
  46034. - /^X\(\/\).*/{ s//\1/; q; }
  46035. - s/.*/./; q'`
  46036. - done
  46037. - test ! -n "$as_dirs" || mkdir $as_dirs
  46038. - fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5
  46039. -echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;}
  46040. - { (exit 1); exit 1; }; }; }
  46041. + sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  46042. + || (rm -f "$cfgfile"; exit 1)
  46043. +
  46044. + mv -f "$cfgfile" "$ofile" ||
  46045. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  46046. + chmod +x "$ofile"
  46047. - # echo "creating $dirpart/$file"
  46048. - echo '# dummy' > "$dirpart/$file"
  46049. - done
  46050. -done
  46051. ;;
  46052. +
  46053. esac
  46054. -done
  46055. -_ACEOF
  46056. +done # for ac_tag
  46057. -cat >>$CONFIG_STATUS <<\_ACEOF
  46058. -{ (exit 0); exit 0; }
  46059. +as_fn_exit 0
  46060. _ACEOF
  46061. -chmod +x $CONFIG_STATUS
  46062. ac_clean_files=$ac_clean_files_save
  46063. +test $ac_write_fail = 0 ||
  46064. + as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5
  46065. +
  46066. # configure is writing to config.log, and then calls config.status.
  46067. # config.status does its own redirection, appending to config.log.
  46068. @@ -22896,6 +13534,10 @@
  46069. exec 5>>config.log
  46070. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  46071. # would make configure fail if this is the last instruction.
  46072. - $ac_cs_success || { (exit 1); exit 1; }
  46073. + $ac_cs_success || as_fn_exit $?
  46074. +fi
  46075. +if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  46076. + { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  46077. +$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  46078. fi
  46079. diff -Nur chillispot-1.1.0.orig/depcomp chillispot-1.1.0/depcomp
  46080. --- chillispot-1.1.0.orig/depcomp 2004-04-02 20:55:11.000000000 +0200
  46081. +++ chillispot-1.1.0/depcomp 2011-02-21 17:56:53.844810047 +0100
  46082. @@ -1,7 +1,10 @@
  46083. #! /bin/sh
  46084. -
  46085. # depcomp - compile a program generating dependencies as side-effects
  46086. -# Copyright 1999, 2000 Free Software Foundation, Inc.
  46087. +
  46088. +scriptversion=2009-04-28.21; # UTC
  46089. +
  46090. +# Copyright (C) 1999, 2000, 2003, 2004, 2005, 2006, 2007, 2009 Free
  46091. +# Software Foundation, Inc.
  46092. # This program is free software; you can redistribute it and/or modify
  46093. # it under the terms of the GNU General Public License as published by
  46094. @@ -14,9 +17,7 @@
  46095. # GNU General Public License for more details.
  46096. # You should have received a copy of the GNU General Public License
  46097. -# along with this program; if not, write to the Free Software
  46098. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  46099. -# 02111-1307, USA.
  46100. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  46101. # As a special exception to the GNU General Public License, if you
  46102. # distribute this file as part of a program that contains a
  46103. @@ -25,22 +26,45 @@
  46104. # Originally written by Alexandre Oliva <oliva@dcc.unicamp.br>.
  46105. +case $1 in
  46106. + '')
  46107. + echo "$0: No command. Try \`$0 --help' for more information." 1>&2
  46108. + exit 1;
  46109. + ;;
  46110. + -h | --h*)
  46111. + cat <<\EOF
  46112. +Usage: depcomp [--help] [--version] PROGRAM [ARGS]
  46113. +
  46114. +Run PROGRAMS ARGS to compile a file, generating dependencies
  46115. +as side-effects.
  46116. +
  46117. +Environment variables:
  46118. + depmode Dependency tracking mode.
  46119. + source Source file read by `PROGRAMS ARGS'.
  46120. + object Object file output by `PROGRAMS ARGS'.
  46121. + DEPDIR directory where to store dependencies.
  46122. + depfile Dependency file to output.
  46123. + tmpdepfile Temporary file to use when outputing dependencies.
  46124. + libtool Whether libtool is used (yes/no).
  46125. +
  46126. +Report bugs to <bug-automake@gnu.org>.
  46127. +EOF
  46128. + exit $?
  46129. + ;;
  46130. + -v | --v*)
  46131. + echo "depcomp $scriptversion"
  46132. + exit $?
  46133. + ;;
  46134. +esac
  46135. +
  46136. if test -z "$depmode" || test -z "$source" || test -z "$object"; then
  46137. echo "depcomp: Variables source, object and depmode must be set" 1>&2
  46138. exit 1
  46139. fi
  46140. -# `libtool' can also be set to `yes' or `no'.
  46141. -
  46142. -if test -z "$depfile"; then
  46143. - base=`echo "$object" | sed -e 's,^.*/,,' -e 's,\.\([^.]*\)$,.P\1,'`
  46144. - dir=`echo "$object" | sed 's,/.*$,/,'`
  46145. - if test "$dir" = "$object"; then
  46146. - dir=
  46147. - fi
  46148. - # FIXME: should be _deps on DOS.
  46149. - depfile="$dir.deps/$base"
  46150. -fi
  46151. +# Dependencies for sub/bar.o or sub/bar.obj go into sub/.deps/bar.Po.
  46152. +depfile=${depfile-`echo "$object" |
  46153. + sed 's|[^\\/]*$|'${DEPDIR-.deps}'/&|;s|\.\([^.]*\)$|.P\1|;s|Pobj$|Po|'`}
  46154. tmpdepfile=${tmpdepfile-`echo "$depfile" | sed 's/\.\([^.]*\)$/.T\1/'`}
  46155. rm -f "$tmpdepfile"
  46156. @@ -61,12 +85,34 @@
  46157. depmode=dashmstdout
  46158. fi
  46159. +cygpath_u="cygpath -u -f -"
  46160. +if test "$depmode" = msvcmsys; then
  46161. + # This is just like msvisualcpp but w/o cygpath translation.
  46162. + # Just convert the backslash-escaped backslashes to single forward
  46163. + # slashes to satisfy depend.m4
  46164. + cygpath_u="sed s,\\\\\\\\,/,g"
  46165. + depmode=msvisualcpp
  46166. +fi
  46167. +
  46168. case "$depmode" in
  46169. gcc3)
  46170. ## gcc 3 implements dependency tracking that does exactly what
  46171. ## we want. Yay! Note: for some reason libtool 1.4 doesn't like
  46172. ## it if -MD -MP comes after the -MF stuff. Hmm.
  46173. - "$@" -MT "$object" -MD -MP -MF "$tmpdepfile"
  46174. +## Unfortunately, FreeBSD c89 acceptance of flags depends upon
  46175. +## the command line argument order; so add the flags where they
  46176. +## appear in depend2.am. Note that the slowdown incurred here
  46177. +## affects only configure: in makefiles, %FASTDEP% shortcuts this.
  46178. + for arg
  46179. + do
  46180. + case $arg in
  46181. + -c) set fnord "$@" -MT "$object" -MD -MP -MF "$tmpdepfile" "$arg" ;;
  46182. + *) set fnord "$@" "$arg" ;;
  46183. + esac
  46184. + shift # fnord
  46185. + shift # $arg
  46186. + done
  46187. + "$@"
  46188. stat=$?
  46189. if test $stat -eq 0; then :
  46190. else
  46191. @@ -153,14 +199,14 @@
  46192. ' < "$tmpdepfile" \
  46193. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' | \
  46194. tr '
  46195. -' ' ' >> $depfile
  46196. - echo >> $depfile
  46197. +' ' ' >> "$depfile"
  46198. + echo >> "$depfile"
  46199. # The second pass generates a dummy entry for each header file.
  46200. tr ' ' '
  46201. ' < "$tmpdepfile" \
  46202. | sed -e 's/^.*\.o://' -e 's/#.*$//' -e '/^$/ d' -e 's/$/:/' \
  46203. - >> $depfile
  46204. + >> "$depfile"
  46205. else
  46206. # The sourcefile does not contain any dependencies, so just
  46207. # store a dummy comment line, to avoid errors with the Makefile
  46208. @@ -172,31 +218,43 @@
  46209. aix)
  46210. # The C for AIX Compiler uses -M and outputs the dependencies
  46211. - # in a .u file. This file always lives in the current directory.
  46212. - # Also, the AIX compiler puts `$object:' at the start of each line;
  46213. - # $object doesn't have directory information.
  46214. - stripped=`echo "$object" | sed -e 's,^.*/,,' -e 's/\(.*\)\..*$/\1/'`
  46215. - tmpdepfile="$stripped.u"
  46216. - outname="$stripped.o"
  46217. + # in a .u file. In older versions, this file always lives in the
  46218. + # current directory. Also, the AIX compiler puts `$object:' at the
  46219. + # start of each line; $object doesn't have directory information.
  46220. + # Version 6 uses the directory in both cases.
  46221. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  46222. + test "x$dir" = "x$object" && dir=
  46223. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  46224. if test "$libtool" = yes; then
  46225. + tmpdepfile1=$dir$base.u
  46226. + tmpdepfile2=$base.u
  46227. + tmpdepfile3=$dir.libs/$base.u
  46228. "$@" -Wc,-M
  46229. else
  46230. + tmpdepfile1=$dir$base.u
  46231. + tmpdepfile2=$dir$base.u
  46232. + tmpdepfile3=$dir$base.u
  46233. "$@" -M
  46234. fi
  46235. -
  46236. stat=$?
  46237. +
  46238. if test $stat -eq 0; then :
  46239. else
  46240. - rm -f "$tmpdepfile"
  46241. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  46242. exit $stat
  46243. fi
  46244. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3"
  46245. + do
  46246. + test -f "$tmpdepfile" && break
  46247. + done
  46248. if test -f "$tmpdepfile"; then
  46249. # Each line is of the form `foo.o: dependent.h'.
  46250. # Do two passes, one to just change these to
  46251. # `$object: dependent.h' and one to simply `dependent.h:'.
  46252. - sed -e "s,^$outname:,$object :," < "$tmpdepfile" > "$depfile"
  46253. - sed -e "s,^$outname: \(.*\)$,\1:," < "$tmpdepfile" >> "$depfile"
  46254. + sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  46255. + # That's a tab and a space in the [].
  46256. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  46257. else
  46258. # The sourcefile does not contain any dependencies, so just
  46259. # store a dummy comment line, to avoid errors with the Makefile
  46260. @@ -206,6 +264,89 @@
  46261. rm -f "$tmpdepfile"
  46262. ;;
  46263. +icc)
  46264. + # Intel's C compiler understands `-MD -MF file'. However on
  46265. + # icc -MD -MF foo.d -c -o sub/foo.o sub/foo.c
  46266. + # ICC 7.0 will fill foo.d with something like
  46267. + # foo.o: sub/foo.c
  46268. + # foo.o: sub/foo.h
  46269. + # which is wrong. We want:
  46270. + # sub/foo.o: sub/foo.c
  46271. + # sub/foo.o: sub/foo.h
  46272. + # sub/foo.c:
  46273. + # sub/foo.h:
  46274. + # ICC 7.1 will output
  46275. + # foo.o: sub/foo.c sub/foo.h
  46276. + # and will wrap long lines using \ :
  46277. + # foo.o: sub/foo.c ... \
  46278. + # sub/foo.h ... \
  46279. + # ...
  46280. +
  46281. + "$@" -MD -MF "$tmpdepfile"
  46282. + stat=$?
  46283. + if test $stat -eq 0; then :
  46284. + else
  46285. + rm -f "$tmpdepfile"
  46286. + exit $stat
  46287. + fi
  46288. + rm -f "$depfile"
  46289. + # Each line is of the form `foo.o: dependent.h',
  46290. + # or `foo.o: dep1.h dep2.h \', or ` dep3.h dep4.h \'.
  46291. + # Do two passes, one to just change these to
  46292. + # `$object: dependent.h' and one to simply `dependent.h:'.
  46293. + sed "s,^[^:]*:,$object :," < "$tmpdepfile" > "$depfile"
  46294. + # Some versions of the HPUX 10.20 sed can't process this invocation
  46295. + # correctly. Breaking it into two sed invocations is a workaround.
  46296. + sed 's,^[^:]*: \(.*\)$,\1,;s/^\\$//;/^$/d;/:$/d' < "$tmpdepfile" |
  46297. + sed -e 's/$/ :/' >> "$depfile"
  46298. + rm -f "$tmpdepfile"
  46299. + ;;
  46300. +
  46301. +hp2)
  46302. + # The "hp" stanza above does not work with aCC (C++) and HP's ia64
  46303. + # compilers, which have integrated preprocessors. The correct option
  46304. + # to use with these is +Maked; it writes dependencies to a file named
  46305. + # 'foo.d', which lands next to the object file, wherever that
  46306. + # happens to be.
  46307. + # Much of this is similar to the tru64 case; see comments there.
  46308. + dir=`echo "$object" | sed -e 's|/[^/]*$|/|'`
  46309. + test "x$dir" = "x$object" && dir=
  46310. + base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  46311. + if test "$libtool" = yes; then
  46312. + tmpdepfile1=$dir$base.d
  46313. + tmpdepfile2=$dir.libs/$base.d
  46314. + "$@" -Wc,+Maked
  46315. + else
  46316. + tmpdepfile1=$dir$base.d
  46317. + tmpdepfile2=$dir$base.d
  46318. + "$@" +Maked
  46319. + fi
  46320. + stat=$?
  46321. + if test $stat -eq 0; then :
  46322. + else
  46323. + rm -f "$tmpdepfile1" "$tmpdepfile2"
  46324. + exit $stat
  46325. + fi
  46326. +
  46327. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2"
  46328. + do
  46329. + test -f "$tmpdepfile" && break
  46330. + done
  46331. + if test -f "$tmpdepfile"; then
  46332. + sed -e "s,^.*\.[a-z]*:,$object:," "$tmpdepfile" > "$depfile"
  46333. + # Add `dependent.h:' lines.
  46334. + sed -ne '2,${
  46335. + s/^ *//
  46336. + s/ \\*$//
  46337. + s/$/:/
  46338. + p
  46339. + }' "$tmpdepfile" >> "$depfile"
  46340. + else
  46341. + echo "#dummy" > "$depfile"
  46342. + fi
  46343. + rm -f "$tmpdepfile" "$tmpdepfile2"
  46344. + ;;
  46345. +
  46346. tru64)
  46347. # The Tru64 compiler uses -MD to generate dependencies as a side
  46348. # effect. `cc -MD -o foo.o ...' puts the dependencies into `foo.o.d'.
  46349. @@ -217,31 +358,47 @@
  46350. base=`echo "$object" | sed -e 's|^.*/||' -e 's/\.o$//' -e 's/\.lo$//'`
  46351. if test "$libtool" = yes; then
  46352. - tmpdepfile1="$dir.libs/$base.lo.d"
  46353. - tmpdepfile2="$dir.libs/$base.d"
  46354. + # With Tru64 cc, shared objects can also be used to make a
  46355. + # static library. This mechanism is used in libtool 1.4 series to
  46356. + # handle both shared and static libraries in a single compilation.
  46357. + # With libtool 1.4, dependencies were output in $dir.libs/$base.lo.d.
  46358. + #
  46359. + # With libtool 1.5 this exception was removed, and libtool now
  46360. + # generates 2 separate objects for the 2 libraries. These two
  46361. + # compilations output dependencies in $dir.libs/$base.o.d and
  46362. + # in $dir$base.o.d. We have to check for both files, because
  46363. + # one of the two compilations can be disabled. We should prefer
  46364. + # $dir$base.o.d over $dir.libs/$base.o.d because the latter is
  46365. + # automatically cleaned when .libs/ is deleted, while ignoring
  46366. + # the former would cause a distcleancheck panic.
  46367. + tmpdepfile1=$dir.libs/$base.lo.d # libtool 1.4
  46368. + tmpdepfile2=$dir$base.o.d # libtool 1.5
  46369. + tmpdepfile3=$dir.libs/$base.o.d # libtool 1.5
  46370. + tmpdepfile4=$dir.libs/$base.d # Compaq CCC V6.2-504
  46371. "$@" -Wc,-MD
  46372. else
  46373. - tmpdepfile1="$dir$base.o.d"
  46374. - tmpdepfile2="$dir$base.d"
  46375. + tmpdepfile1=$dir$base.o.d
  46376. + tmpdepfile2=$dir$base.d
  46377. + tmpdepfile3=$dir$base.d
  46378. + tmpdepfile4=$dir$base.d
  46379. "$@" -MD
  46380. fi
  46381. stat=$?
  46382. if test $stat -eq 0; then :
  46383. else
  46384. - rm -f "$tmpdepfile1" "$tmpdepfile2"
  46385. + rm -f "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  46386. exit $stat
  46387. fi
  46388. - if test -f "$tmpdepfile1"; then
  46389. - tmpdepfile="$tmpdepfile1"
  46390. - else
  46391. - tmpdepfile="$tmpdepfile2"
  46392. - fi
  46393. + for tmpdepfile in "$tmpdepfile1" "$tmpdepfile2" "$tmpdepfile3" "$tmpdepfile4"
  46394. + do
  46395. + test -f "$tmpdepfile" && break
  46396. + done
  46397. if test -f "$tmpdepfile"; then
  46398. sed -e "s,^.*\.[a-z]*:,$object:," < "$tmpdepfile" > "$depfile"
  46399. - # That's a space and a tab in the [].
  46400. - sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  46401. + # That's a tab and a space in the [].
  46402. + sed -e 's,^.*\.[a-z]*:[ ]*,,' -e 's,$,:,' < "$tmpdepfile" >> "$depfile"
  46403. else
  46404. echo "#dummy" > "$depfile"
  46405. fi
  46406. @@ -254,20 +411,18 @@
  46407. dashmstdout)
  46408. # Important note: in order to support this mode, a compiler *must*
  46409. - # always write the proprocessed file to stdout, regardless of -o.
  46410. + # always write the preprocessed file to stdout, regardless of -o.
  46411. "$@" || exit $?
  46412. # Remove the call to Libtool.
  46413. if test "$libtool" = yes; then
  46414. - while test $1 != '--mode=compile'; do
  46415. + while test "X$1" != 'X--mode=compile'; do
  46416. shift
  46417. done
  46418. shift
  46419. fi
  46420. - # Remove `-o $object'. We will use -o /dev/null later,
  46421. - # however we can't do the remplacement now because
  46422. - # `-o $object' might simply not be used
  46423. + # Remove `-o $object'.
  46424. IFS=" "
  46425. for arg
  46426. do
  46427. @@ -287,7 +442,11 @@
  46428. done
  46429. test -z "$dashmflag" && dashmflag=-M
  46430. - "$@" -o /dev/null $dashmflag | sed 's:^[^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
  46431. + # Require at least two characters before searching for `:'
  46432. + # in the target name. This is to cope with DOS-style filenames:
  46433. + # a dependency such as `c:/foo/bar' could be seen as target `c' otherwise.
  46434. + "$@" $dashmflag |
  46435. + sed 's:^[ ]*[^: ][^:][^:]*\:[ ]*:'"$object"'\: :' > "$tmpdepfile"
  46436. rm -f "$depfile"
  46437. cat < "$tmpdepfile" > "$depfile"
  46438. tr ' ' '
  46439. @@ -306,25 +465,41 @@
  46440. makedepend)
  46441. "$@" || exit $?
  46442. + # Remove any Libtool call
  46443. + if test "$libtool" = yes; then
  46444. + while test "X$1" != 'X--mode=compile'; do
  46445. + shift
  46446. + done
  46447. + shift
  46448. + fi
  46449. # X makedepend
  46450. shift
  46451. - cleared=no
  46452. - for arg in "$@"; do
  46453. + cleared=no eat=no
  46454. + for arg
  46455. + do
  46456. case $cleared in
  46457. no)
  46458. set ""; shift
  46459. cleared=yes ;;
  46460. esac
  46461. + if test $eat = yes; then
  46462. + eat=no
  46463. + continue
  46464. + fi
  46465. case "$arg" in
  46466. -D*|-I*)
  46467. set fnord "$@" "$arg"; shift ;;
  46468. - -*)
  46469. + # Strip any option that makedepend may not understand. Remove
  46470. + # the object too, otherwise makedepend will parse it as a source file.
  46471. + -arch)
  46472. + eat=yes ;;
  46473. + -*|$object)
  46474. ;;
  46475. *)
  46476. set fnord "$@" "$arg"; shift ;;
  46477. esac
  46478. done
  46479. - obj_suffix="`echo $object | sed 's/^.*\././'`"
  46480. + obj_suffix=`echo "$object" | sed 's/^.*\././'`
  46481. touch "$tmpdepfile"
  46482. ${MAKEDEPEND-makedepend} -o"$obj_suffix" -f"$tmpdepfile" "$@"
  46483. rm -f "$depfile"
  46484. @@ -339,12 +514,12 @@
  46485. cpp)
  46486. # Important note: in order to support this mode, a compiler *must*
  46487. - # always write the proprocessed file to stdout.
  46488. + # always write the preprocessed file to stdout.
  46489. "$@" || exit $?
  46490. # Remove the call to Libtool.
  46491. if test "$libtool" = yes; then
  46492. - while test $1 != '--mode=compile'; do
  46493. + while test "X$1" != 'X--mode=compile'; do
  46494. shift
  46495. done
  46496. shift
  46497. @@ -370,7 +545,8 @@
  46498. done
  46499. "$@" -E |
  46500. - sed -n '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  46501. + sed -n -e '/^# [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' \
  46502. + -e '/^#line [0-9][0-9]* "\([^"]*\)".*/ s:: \1 \\:p' |
  46503. sed '$ s: \\$::' > "$tmpdepfile"
  46504. rm -f "$depfile"
  46505. echo "$object : \\" > "$depfile"
  46506. @@ -381,13 +557,27 @@
  46507. msvisualcpp)
  46508. # Important note: in order to support this mode, a compiler *must*
  46509. - # always write the proprocessed file to stdout, regardless of -o,
  46510. - # because we must use -o when running libtool.
  46511. + # always write the preprocessed file to stdout.
  46512. "$@" || exit $?
  46513. +
  46514. + # Remove the call to Libtool.
  46515. + if test "$libtool" = yes; then
  46516. + while test "X$1" != 'X--mode=compile'; do
  46517. + shift
  46518. + done
  46519. + shift
  46520. + fi
  46521. +
  46522. IFS=" "
  46523. for arg
  46524. do
  46525. case "$arg" in
  46526. + -o)
  46527. + shift
  46528. + ;;
  46529. + $object)
  46530. + shift
  46531. + ;;
  46532. "-Gm"|"/Gm"|"-Gi"|"/Gi"|"-ZI"|"/ZI")
  46533. set fnord "$@"
  46534. shift
  46535. @@ -400,16 +590,23 @@
  46536. ;;
  46537. esac
  46538. done
  46539. - "$@" -E |
  46540. - sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::echo "`cygpath -u \\"\1\\"`":p' | sort | uniq > "$tmpdepfile"
  46541. + "$@" -E 2>/dev/null |
  46542. + sed -n '/^#line [0-9][0-9]* "\([^"]*\)"/ s::\1:p' | $cygpath_u | sort -u > "$tmpdepfile"
  46543. rm -f "$depfile"
  46544. echo "$object : \\" > "$depfile"
  46545. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  46546. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s:: \1 \\:p' >> "$depfile"
  46547. echo " " >> "$depfile"
  46548. - . "$tmpdepfile" | sed 's% %\\ %g' | sed -n '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  46549. + sed < "$tmpdepfile" -n -e 's% %\\ %g' -e '/^\(.*\)$/ s::\1\::p' >> "$depfile"
  46550. rm -f "$tmpdepfile"
  46551. ;;
  46552. +msvcmsys)
  46553. + # This case exists only to let depend.m4 do its work. It works by
  46554. + # looking at the text of this script. This case will never be run,
  46555. + # since it is checked for above.
  46556. + exit 1
  46557. + ;;
  46558. +
  46559. none)
  46560. exec "$@"
  46561. ;;
  46562. @@ -421,3 +618,13 @@
  46563. esac
  46564. exit 0
  46565. +
  46566. +# Local Variables:
  46567. +# mode: shell-script
  46568. +# sh-indentation: 2
  46569. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  46570. +# time-stamp-start: "scriptversion="
  46571. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  46572. +# time-stamp-time-zone: "UTC"
  46573. +# time-stamp-end: "; # UTC"
  46574. +# End:
  46575. diff -Nur chillispot-1.1.0.orig/doc/Makefile.in chillispot-1.1.0/doc/Makefile.in
  46576. --- chillispot-1.1.0.orig/doc/Makefile.in 2006-09-24 21:34:57.000000000 +0200
  46577. +++ chillispot-1.1.0/doc/Makefile.in 2011-02-21 17:56:53.794801920 +0100
  46578. @@ -1,8 +1,9 @@
  46579. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  46580. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  46581. # @configure_input@
  46582. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  46583. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  46584. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  46585. +# Inc.
  46586. # This Makefile.in is free software; the Free Software Foundation
  46587. # gives unlimited permission to copy and/or distribute it,
  46588. # with or without modifications, as long as this notice is preserved.
  46589. @@ -13,15 +14,12 @@
  46590. # PARTICULAR PURPOSE.
  46591. @SET_MAKE@
  46592. -srcdir = @srcdir@
  46593. -top_srcdir = @top_srcdir@
  46594. VPATH = @srcdir@
  46595. pkgdatadir = $(datadir)/@PACKAGE@
  46596. -pkglibdir = $(libdir)/@PACKAGE@
  46597. pkgincludedir = $(includedir)/@PACKAGE@
  46598. -top_builddir = ..
  46599. +pkglibdir = $(libdir)/@PACKAGE@
  46600. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  46601. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  46602. -INSTALL = @INSTALL@
  46603. install_sh_DATA = $(install_sh) -c -m 644
  46604. install_sh_PROGRAM = $(install_sh) -c
  46605. install_sh_SCRIPT = $(install_sh) -c
  46606. @@ -44,16 +42,36 @@
  46607. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  46608. CONFIG_HEADER = $(top_builddir)/config.h
  46609. CONFIG_CLEAN_FILES =
  46610. +CONFIG_CLEAN_VPATH_FILES =
  46611. SOURCES =
  46612. DIST_SOURCES =
  46613. +am__vpath_adj_setup = srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`;
  46614. +am__vpath_adj = case $$p in \
  46615. + $(srcdir)/*) f=`echo "$$p" | sed "s|^$$srcdirstrip/||"`;; \
  46616. + *) f=$$p;; \
  46617. + esac;
  46618. +am__strip_dir = f=`echo $$p | sed -e 's|^.*/||'`;
  46619. +am__install_max = 40
  46620. +am__nobase_strip_setup = \
  46621. + srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*|]/\\\\&/g'`
  46622. +am__nobase_strip = \
  46623. + for p in $$list; do echo "$$p"; done | sed -e "s|$$srcdirstrip/||"
  46624. +am__nobase_list = $(am__nobase_strip_setup); \
  46625. + for p in $$list; do echo "$$p $$p"; done | \
  46626. + sed "s| $$srcdirstrip/| |;"' / .*\//!s/ .*/ ./; s,\( .*\)/[^/]*$$,\1,' | \
  46627. + $(AWK) 'BEGIN { files["."] = "" } { files[$$2] = files[$$2] " " $$1; \
  46628. + if (++n[$$2] == $(am__install_max)) \
  46629. + { print $$2, files[$$2]; n[$$2] = 0; files[$$2] = "" } } \
  46630. + END { for (dir in files) print dir, files[dir] }'
  46631. +am__base_list = \
  46632. + sed '$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;$$!N;s/\n/ /g' | \
  46633. + sed '$$!N;$$!N;$$!N;$$!N;s/\n/ /g'
  46634. man8dir = $(mandir)/man8
  46635. am__installdirs = "$(DESTDIR)$(man8dir)"
  46636. NROFF = nroff
  46637. MANS = $(man_MANS)
  46638. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  46639. ACLOCAL = @ACLOCAL@
  46640. -AMDEP_FALSE = @AMDEP_FALSE@
  46641. -AMDEP_TRUE = @AMDEP_TRUE@
  46642. AMTAR = @AMTAR@
  46643. AR = @AR@
  46644. AUTOCONF = @AUTOCONF@
  46645. @@ -65,55 +83,59 @@
  46646. CFLAGS = @CFLAGS@
  46647. CPP = @CPP@
  46648. CPPFLAGS = @CPPFLAGS@
  46649. -CXX = @CXX@
  46650. -CXXCPP = @CXXCPP@
  46651. -CXXDEPMODE = @CXXDEPMODE@
  46652. -CXXFLAGS = @CXXFLAGS@
  46653. CYGPATH_W = @CYGPATH_W@
  46654. DEFS = @DEFS@
  46655. DEPDIR = @DEPDIR@
  46656. -ECHO = @ECHO@
  46657. +DSYMUTIL = @DSYMUTIL@
  46658. +DUMPBIN = @DUMPBIN@
  46659. ECHO_C = @ECHO_C@
  46660. ECHO_N = @ECHO_N@
  46661. ECHO_T = @ECHO_T@
  46662. EGREP = @EGREP@
  46663. EXEEXT = @EXEEXT@
  46664. -F77 = @F77@
  46665. -FFLAGS = @FFLAGS@
  46666. +FGREP = @FGREP@
  46667. +GREP = @GREP@
  46668. +INSTALL = @INSTALL@
  46669. INSTALL_DATA = @INSTALL_DATA@
  46670. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  46671. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  46672. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  46673. +LD = @LD@
  46674. LDFLAGS = @LDFLAGS@
  46675. LIBOBJS = @LIBOBJS@
  46676. LIBS = @LIBS@
  46677. LIBTOOL = @LIBTOOL@
  46678. +LIPO = @LIPO@
  46679. LN_S = @LN_S@
  46680. LTLIBOBJS = @LTLIBOBJS@
  46681. MAKEINFO = @MAKEINFO@
  46682. +MKDIR_P = @MKDIR_P@
  46683. +NM = @NM@
  46684. +NMEDIT = @NMEDIT@
  46685. +OBJDUMP = @OBJDUMP@
  46686. OBJEXT = @OBJEXT@
  46687. +OTOOL = @OTOOL@
  46688. +OTOOL64 = @OTOOL64@
  46689. PACKAGE = @PACKAGE@
  46690. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  46691. PACKAGE_NAME = @PACKAGE_NAME@
  46692. PACKAGE_STRING = @PACKAGE_STRING@
  46693. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  46694. +PACKAGE_URL = @PACKAGE_URL@
  46695. PACKAGE_VERSION = @PACKAGE_VERSION@
  46696. PATH_SEPARATOR = @PATH_SEPARATOR@
  46697. RANLIB = @RANLIB@
  46698. +SED = @SED@
  46699. SET_MAKE = @SET_MAKE@
  46700. SHELL = @SHELL@
  46701. STRIP = @STRIP@
  46702. VERSION = @VERSION@
  46703. -ac_ct_AR = @ac_ct_AR@
  46704. +abs_builddir = @abs_builddir@
  46705. +abs_srcdir = @abs_srcdir@
  46706. +abs_top_builddir = @abs_top_builddir@
  46707. +abs_top_srcdir = @abs_top_srcdir@
  46708. ac_ct_CC = @ac_ct_CC@
  46709. -ac_ct_CXX = @ac_ct_CXX@
  46710. -ac_ct_F77 = @ac_ct_F77@
  46711. -ac_ct_RANLIB = @ac_ct_RANLIB@
  46712. -ac_ct_STRIP = @ac_ct_STRIP@
  46713. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  46714. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  46715. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  46716. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  46717. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  46718. am__include = @am__include@
  46719. am__leading_dot = @am__leading_dot@
  46720. am__quote = @am__quote@
  46721. @@ -125,28 +147,41 @@
  46722. build_cpu = @build_cpu@
  46723. build_os = @build_os@
  46724. build_vendor = @build_vendor@
  46725. +builddir = @builddir@
  46726. datadir = @datadir@
  46727. +datarootdir = @datarootdir@
  46728. +docdir = @docdir@
  46729. +dvidir = @dvidir@
  46730. exec_prefix = @exec_prefix@
  46731. host = @host@
  46732. host_alias = @host_alias@
  46733. host_cpu = @host_cpu@
  46734. host_os = @host_os@
  46735. host_vendor = @host_vendor@
  46736. +htmldir = @htmldir@
  46737. includedir = @includedir@
  46738. infodir = @infodir@
  46739. install_sh = @install_sh@
  46740. libdir = @libdir@
  46741. libexecdir = @libexecdir@
  46742. +localedir = @localedir@
  46743. localstatedir = @localstatedir@
  46744. +lt_ECHO = @lt_ECHO@
  46745. mandir = @mandir@
  46746. mkdir_p = @mkdir_p@
  46747. oldincludedir = @oldincludedir@
  46748. +pdfdir = @pdfdir@
  46749. prefix = @prefix@
  46750. program_transform_name = @program_transform_name@
  46751. +psdir = @psdir@
  46752. sbindir = @sbindir@
  46753. sharedstatedir = @sharedstatedir@
  46754. +srcdir = @srcdir@
  46755. sysconfdir = @sysconfdir@
  46756. target_alias = @target_alias@
  46757. +top_build_prefix = @top_build_prefix@
  46758. +top_builddir = @top_builddir@
  46759. +top_srcdir = @top_srcdir@
  46760. man_MANS = chilli.8
  46761. man_aux = $(man_MANS:.1=.x)
  46762. EXTRA_DIST = $(man_MANS)
  46763. @@ -157,14 +192,14 @@
  46764. @for dep in $?; do \
  46765. case '$(am__configure_deps)' in \
  46766. *$$dep*) \
  46767. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  46768. - && exit 0; \
  46769. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  46770. + && { if test -f $@; then exit 0; else break; fi; }; \
  46771. exit 1;; \
  46772. esac; \
  46773. done; \
  46774. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  46775. - cd $(top_srcdir) && \
  46776. - $(AUTOMAKE) --gnu doc/Makefile
  46777. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu doc/Makefile'; \
  46778. + $(am__cd) $(top_srcdir) && \
  46779. + $(AUTOMAKE) --gnu doc/Makefile
  46780. .PRECIOUS: Makefile
  46781. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  46782. @case '$?' in \
  46783. @@ -182,61 +217,51 @@
  46784. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46785. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  46786. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  46787. +$(am__aclocal_m4_deps):
  46788. mostlyclean-libtool:
  46789. -rm -f *.lo
  46790. clean-libtool:
  46791. -rm -rf .libs _libs
  46792. -
  46793. -distclean-libtool:
  46794. - -rm -f libtool
  46795. -uninstall-info-am:
  46796. -install-man8: $(man8_MANS) $(man_MANS)
  46797. +install-man8: $(man_MANS)
  46798. @$(NORMAL_INSTALL)
  46799. - test -z "$(man8dir)" || $(mkdir_p) "$(DESTDIR)$(man8dir)"
  46800. - @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
  46801. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46802. - for i in $$l2; do \
  46803. - case "$$i" in \
  46804. - *.8*) list="$$list $$i" ;; \
  46805. - esac; \
  46806. + test -z "$(man8dir)" || $(MKDIR_P) "$(DESTDIR)$(man8dir)"
  46807. + @list=''; test -n "$(man8dir)" || exit 0; \
  46808. + { for i in $$list; do echo "$$i"; done; \
  46809. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46810. + sed -n '/\.8[a-z]*$$/p'; \
  46811. + } | while read p; do \
  46812. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  46813. + echo "$$d$$p"; echo "$$p"; \
  46814. + done | \
  46815. + sed -e 'n;s,.*/,,;p;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
  46816. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,' | \
  46817. + sed 'N;N;s,\n, ,g' | { \
  46818. + list=; while read file base inst; do \
  46819. + if test "$$base" = "$$inst"; then list="$$list $$file"; else \
  46820. + echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
  46821. + $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst" || exit $$?; \
  46822. + fi; \
  46823. done; \
  46824. - for i in $$list; do \
  46825. - if test -f $(srcdir)/$$i; then file=$(srcdir)/$$i; \
  46826. - else file=$$i; fi; \
  46827. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46828. - case "$$ext" in \
  46829. - 8*) ;; \
  46830. - *) ext='8' ;; \
  46831. - esac; \
  46832. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46833. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46834. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46835. - echo " $(INSTALL_DATA) '$$file' '$(DESTDIR)$(man8dir)/$$inst'"; \
  46836. - $(INSTALL_DATA) "$$file" "$(DESTDIR)$(man8dir)/$$inst"; \
  46837. - done
  46838. + for i in $$list; do echo "$$i"; done | $(am__base_list) | \
  46839. + while read files; do \
  46840. + test -z "$$files" || { \
  46841. + echo " $(INSTALL_DATA) $$files '$(DESTDIR)$(man8dir)'"; \
  46842. + $(INSTALL_DATA) $$files "$(DESTDIR)$(man8dir)" || exit $$?; }; \
  46843. + done; }
  46844. +
  46845. uninstall-man8:
  46846. @$(NORMAL_UNINSTALL)
  46847. - @list='$(man8_MANS) $(dist_man8_MANS) $(nodist_man8_MANS)'; \
  46848. - l2='$(man_MANS) $(dist_man_MANS) $(nodist_man_MANS)'; \
  46849. - for i in $$l2; do \
  46850. - case "$$i" in \
  46851. - *.8*) list="$$list $$i" ;; \
  46852. - esac; \
  46853. - done; \
  46854. - for i in $$list; do \
  46855. - ext=`echo $$i | sed -e 's/^.*\\.//'`; \
  46856. - case "$$ext" in \
  46857. - 8*) ;; \
  46858. - *) ext='8' ;; \
  46859. - esac; \
  46860. - inst=`echo $$i | sed -e 's/\\.[0-9a-z]*$$//'`; \
  46861. - inst=`echo $$inst | sed -e 's/^.*\///'`; \
  46862. - inst=`echo $$inst | sed '$(transform)'`.$$ext; \
  46863. - echo " rm -f '$(DESTDIR)$(man8dir)/$$inst'"; \
  46864. - rm -f "$(DESTDIR)$(man8dir)/$$inst"; \
  46865. - done
  46866. + @list=''; test -n "$(man8dir)" || exit 0; \
  46867. + files=`{ for i in $$list; do echo "$$i"; done; \
  46868. + l2='$(man_MANS)'; for i in $$l2; do echo "$$i"; done | \
  46869. + sed -n '/\.8[a-z]*$$/p'; \
  46870. + } | sed -e 's,.*/,,;h;s,.*\.,,;s,^[^8][0-9a-z]*$$,8,;x' \
  46871. + -e 's,\.[0-9a-z]*$$,,;$(transform);G;s,\n,.,'`; \
  46872. + test -z "$$files" || { \
  46873. + echo " ( cd '$(DESTDIR)$(man8dir)' && rm -f" $$files ")"; \
  46874. + cd "$(DESTDIR)$(man8dir)" && rm -f $$files; }
  46875. tags: TAGS
  46876. TAGS:
  46877. @@ -245,29 +270,45 @@
  46878. distdir: $(DISTFILES)
  46879. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  46880. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  46881. - list='$(DISTFILES)'; for file in $$list; do \
  46882. - case $$file in \
  46883. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  46884. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  46885. - esac; \
  46886. + @list='$(MANS)'; if test -n "$$list"; then \
  46887. + list=`for p in $$list; do \
  46888. + if test -f $$p; then d=; else d="$(srcdir)/"; fi; \
  46889. + if test -f "$$d$$p"; then echo "$$d$$p"; else :; fi; done`; \
  46890. + if test -n "$$list" && \
  46891. + grep 'ab help2man is required to generate this page' $$list >/dev/null; then \
  46892. + echo "error: found man pages containing the \`missing help2man' replacement text:" >&2; \
  46893. + grep -l 'ab help2man is required to generate this page' $$list | sed 's/^/ /' >&2; \
  46894. + echo " to fix them, install help2man, remove and regenerate the man pages;" >&2; \
  46895. + echo " typically \`make maintainer-clean' will remove them" >&2; \
  46896. + exit 1; \
  46897. + else :; fi; \
  46898. + else :; fi
  46899. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  46900. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  46901. + list='$(DISTFILES)'; \
  46902. + dist_files=`for file in $$list; do echo $$file; done | \
  46903. + sed -e "s|^$$srcdirstrip/||;t" \
  46904. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  46905. + case $$dist_files in \
  46906. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  46907. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  46908. + sort -u` ;; \
  46909. + esac; \
  46910. + for file in $$dist_files; do \
  46911. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  46912. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  46913. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  46914. - dir="/$$dir"; \
  46915. - $(mkdir_p) "$(distdir)$$dir"; \
  46916. - else \
  46917. - dir=''; \
  46918. - fi; \
  46919. if test -d $$d/$$file; then \
  46920. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  46921. + if test -d "$(distdir)/$$file"; then \
  46922. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46923. + fi; \
  46924. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  46925. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  46926. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  46927. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  46928. fi; \
  46929. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  46930. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  46931. else \
  46932. - test -f $(distdir)/$$file \
  46933. - || cp -p $$d/$$file $(distdir)/$$file \
  46934. + test -f "$(distdir)/$$file" \
  46935. + || cp -p $$d/$$file "$(distdir)/$$file" \
  46936. || exit 1; \
  46937. fi; \
  46938. done
  46939. @@ -276,7 +317,7 @@
  46940. all-am: Makefile $(MANS)
  46941. installdirs:
  46942. for dir in "$(DESTDIR)$(man8dir)"; do \
  46943. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  46944. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  46945. done
  46946. install: install-am
  46947. install-exec: install-exec-am
  46948. @@ -298,6 +339,7 @@
  46949. distclean-generic:
  46950. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  46951. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  46952. maintainer-clean-generic:
  46953. @echo "This command is intended for maintainers to use"
  46954. @@ -308,7 +350,7 @@
  46955. distclean: distclean-am
  46956. -rm -f Makefile
  46957. -distclean-am: clean-am distclean-generic distclean-libtool
  46958. +distclean-am: clean-am distclean-generic
  46959. dvi: dvi-am
  46960. @@ -316,18 +358,38 @@
  46961. html: html-am
  46962. +html-am:
  46963. +
  46964. info: info-am
  46965. info-am:
  46966. install-data-am: install-man
  46967. +install-dvi: install-dvi-am
  46968. +
  46969. +install-dvi-am:
  46970. +
  46971. install-exec-am:
  46972. +install-html: install-html-am
  46973. +
  46974. +install-html-am:
  46975. +
  46976. install-info: install-info-am
  46977. +install-info-am:
  46978. +
  46979. install-man: install-man8
  46980. +install-pdf: install-pdf-am
  46981. +
  46982. +install-pdf-am:
  46983. +
  46984. +install-ps: install-ps-am
  46985. +
  46986. +install-ps-am:
  46987. +
  46988. installcheck-am:
  46989. maintainer-clean: maintainer-clean-am
  46990. @@ -346,20 +408,24 @@
  46991. ps-am:
  46992. -uninstall-am: uninstall-info-am uninstall-man
  46993. +uninstall-am: uninstall-man
  46994. uninstall-man: uninstall-man8
  46995. +.MAKE: install-am install-strip
  46996. +
  46997. .PHONY: all all-am check check-am clean clean-generic clean-libtool \
  46998. distclean distclean-generic distclean-libtool distdir dvi \
  46999. dvi-am html html-am info info-am install install-am \
  47000. - install-data install-data-am install-exec install-exec-am \
  47001. + install-data install-data-am install-dvi install-dvi-am \
  47002. + install-exec install-exec-am install-html install-html-am \
  47003. install-info install-info-am install-man install-man8 \
  47004. + install-pdf install-pdf-am install-ps install-ps-am \
  47005. install-strip installcheck installcheck-am installdirs \
  47006. maintainer-clean maintainer-clean-generic mostlyclean \
  47007. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  47008. - uninstall uninstall-am uninstall-info-am uninstall-man \
  47009. - uninstall-man8
  47010. + uninstall uninstall-am uninstall-man uninstall-man8
  47011. +
  47012. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  47013. # Otherwise a system limit (for SysV at least) may be exceeded.
  47014. diff -Nur chillispot-1.1.0.orig/INSTALL chillispot-1.1.0/INSTALL
  47015. --- chillispot-1.1.0.orig/INSTALL 2004-04-02 20:55:11.000000000 +0200
  47016. +++ chillispot-1.1.0/INSTALL 2011-02-21 17:56:53.974807944 +0100
  47017. @@ -1,13 +1,25 @@
  47018. -Copyright 1994, 1995, 1996, 1999, 2000, 2001, 2002 Free Software
  47019. -Foundation, Inc.
  47020. +Installation Instructions
  47021. +*************************
  47022. - This file is free documentation; the Free Software Foundation gives
  47023. -unlimited permission to copy, distribute and modify it.
  47024. +Copyright (C) 1994, 1995, 1996, 1999, 2000, 2001, 2002, 2004, 2005,
  47025. +2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  47026. +
  47027. + Copying and distribution of this file, with or without modification,
  47028. +are permitted in any medium without royalty provided the copyright
  47029. +notice and this notice are preserved. This file is offered as-is,
  47030. +without warranty of any kind.
  47031. Basic Installation
  47032. ==================
  47033. - These are generic installation instructions.
  47034. + Briefly, the shell commands `./configure; make; make install' should
  47035. +configure, build, and install this package. The following
  47036. +more-detailed instructions are generic; see the `README' file for
  47037. +instructions specific to this package. Some packages provide this
  47038. +`INSTALL' file but do not implement all of the features documented
  47039. +below. The lack of an optional feature in a given package is not
  47040. +necessarily a bug. More recommendations for GNU packages can be found
  47041. +in *note Makefile Conventions: (standards)Makefile Conventions.
  47042. The `configure' shell script attempts to guess correct values for
  47043. various system-dependent variables used during compilation. It uses
  47044. @@ -20,9 +32,9 @@
  47045. It can also use an optional file (typically called `config.cache'
  47046. and enabled with `--cache-file=config.cache' or simply `-C') that saves
  47047. -the results of its tests to speed up reconfiguring. (Caching is
  47048. +the results of its tests to speed up reconfiguring. Caching is
  47049. disabled by default to prevent problems with accidental use of stale
  47050. -cache files.)
  47051. +cache files.
  47052. If you need to do unusual things to compile the package, please try
  47053. to figure out how `configure' could check whether to do them, and mail
  47054. @@ -32,30 +44,37 @@
  47055. may remove or edit it.
  47056. The file `configure.ac' (or `configure.in') is used to create
  47057. -`configure' by a program called `autoconf'. You only need
  47058. -`configure.ac' if you want to change it or regenerate `configure' using
  47059. -a newer version of `autoconf'.
  47060. +`configure' by a program called `autoconf'. You need `configure.ac' if
  47061. +you want to change it or regenerate `configure' using a newer version
  47062. +of `autoconf'.
  47063. -The simplest way to compile this package is:
  47064. + The simplest way to compile this package is:
  47065. 1. `cd' to the directory containing the package's source code and type
  47066. - `./configure' to configure the package for your system. If you're
  47067. - using `csh' on an old version of System V, you might need to type
  47068. - `sh ./configure' instead to prevent `csh' from trying to execute
  47069. - `configure' itself.
  47070. + `./configure' to configure the package for your system.
  47071. - Running `configure' takes awhile. While running, it prints some
  47072. - messages telling which features it is checking for.
  47073. + Running `configure' might take a while. While running, it prints
  47074. + some messages telling which features it is checking for.
  47075. 2. Type `make' to compile the package.
  47076. 3. Optionally, type `make check' to run any self-tests that come with
  47077. - the package.
  47078. + the package, generally using the just-built uninstalled binaries.
  47079. 4. Type `make install' to install the programs and any data files and
  47080. - documentation.
  47081. + documentation. When installing into a prefix owned by root, it is
  47082. + recommended that the package be configured and built as a regular
  47083. + user, and only the `make install' phase executed with root
  47084. + privileges.
  47085. +
  47086. + 5. Optionally, type `make installcheck' to repeat any self-tests, but
  47087. + this time using the binaries in their final installed location.
  47088. + This target does not install anything. Running this target as a
  47089. + regular user, particularly if the prior `make install' required
  47090. + root privileges, verifies that the installation completed
  47091. + correctly.
  47092. - 5. You can remove the program binaries and object files from the
  47093. + 6. You can remove the program binaries and object files from the
  47094. source code directory by typing `make clean'. To also remove the
  47095. files that `configure' created (so you can compile the package for
  47096. a different kind of computer), type `make distclean'. There is
  47097. @@ -64,6 +83,16 @@
  47098. all sorts of other programs in order to regenerate files that came
  47099. with the distribution.
  47100. + 7. Often, you can also type `make uninstall' to remove the installed
  47101. + files again. In practice, not all packages have tested that
  47102. + uninstallation works correctly, even though it is required by the
  47103. + GNU Coding Standards.
  47104. +
  47105. + 8. Some packages, particularly those that use Automake, provide `make
  47106. + distcheck', which can by used by developers to test that all other
  47107. + targets like `make install' and `make uninstall' work correctly.
  47108. + This target is generally not run by end users.
  47109. +
  47110. Compilers and Options
  47111. =====================
  47112. @@ -75,7 +104,7 @@
  47113. by setting variables in the command line or in the environment. Here
  47114. is an example:
  47115. - ./configure CC=c89 CFLAGS=-O2 LIBS=-lposix
  47116. + ./configure CC=c99 CFLAGS=-g LIBS=-lposix
  47117. *Note Defining Variables::, for more details.
  47118. @@ -84,44 +113,89 @@
  47119. You can compile the package for more than one kind of computer at the
  47120. same time, by placing the object files for each architecture in their
  47121. -own directory. To do this, you must use a version of `make' that
  47122. -supports the `VPATH' variable, such as GNU `make'. `cd' to the
  47123. +own directory. To do this, you can use GNU `make'. `cd' to the
  47124. directory where you want the object files and executables to go and run
  47125. the `configure' script. `configure' automatically checks for the
  47126. -source code in the directory that `configure' is in and in `..'.
  47127. +source code in the directory that `configure' is in and in `..'. This
  47128. +is known as a "VPATH" build.
  47129. - If you have to use a `make' that does not support the `VPATH'
  47130. -variable, you have to compile the package for one architecture at a
  47131. -time in the source code directory. After you have installed the
  47132. -package for one architecture, use `make distclean' before reconfiguring
  47133. -for another architecture.
  47134. + With a non-GNU `make', it is safer to compile the package for one
  47135. +architecture at a time in the source code directory. After you have
  47136. +installed the package for one architecture, use `make distclean' before
  47137. +reconfiguring for another architecture.
  47138. +
  47139. + On MacOS X 10.5 and later systems, you can create libraries and
  47140. +executables that work on multiple system types--known as "fat" or
  47141. +"universal" binaries--by specifying multiple `-arch' options to the
  47142. +compiler but only a single `-arch' option to the preprocessor. Like
  47143. +this:
  47144. +
  47145. + ./configure CC="gcc -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  47146. + CXX="g++ -arch i386 -arch x86_64 -arch ppc -arch ppc64" \
  47147. + CPP="gcc -E" CXXCPP="g++ -E"
  47148. +
  47149. + This is not guaranteed to produce working output in all cases, you
  47150. +may have to build one architecture at a time and combine the results
  47151. +using the `lipo' tool if you have problems.
  47152. Installation Names
  47153. ==================
  47154. - By default, `make install' will install the package's files in
  47155. -`/usr/local/bin', `/usr/local/man', etc. You can specify an
  47156. -installation prefix other than `/usr/local' by giving `configure' the
  47157. -option `--prefix=PATH'.
  47158. + By default, `make install' installs the package's commands under
  47159. +`/usr/local/bin', include files under `/usr/local/include', etc. You
  47160. +can specify an installation prefix other than `/usr/local' by giving
  47161. +`configure' the option `--prefix=PREFIX', where PREFIX must be an
  47162. +absolute file name.
  47163. You can specify separate installation prefixes for
  47164. architecture-specific files and architecture-independent files. If you
  47165. -give `configure' the option `--exec-prefix=PATH', the package will use
  47166. -PATH as the prefix for installing programs and libraries.
  47167. -Documentation and other data files will still use the regular prefix.
  47168. +pass the option `--exec-prefix=PREFIX' to `configure', the package uses
  47169. +PREFIX as the prefix for installing programs and libraries.
  47170. +Documentation and other data files still use the regular prefix.
  47171. In addition, if you use an unusual directory layout you can give
  47172. -options like `--bindir=PATH' to specify different values for particular
  47173. +options like `--bindir=DIR' to specify different values for particular
  47174. kinds of files. Run `configure --help' for a list of the directories
  47175. -you can set and what kinds of files go in them.
  47176. +you can set and what kinds of files go in them. In general, the
  47177. +default for these options is expressed in terms of `${prefix}', so that
  47178. +specifying just `--prefix' will affect all of the other directory
  47179. +specifications that were not explicitly provided.
  47180. +
  47181. + The most portable way to affect installation locations is to pass the
  47182. +correct locations to `configure'; however, many packages provide one or
  47183. +both of the following shortcuts of passing variable assignments to the
  47184. +`make install' command line to change installation locations without
  47185. +having to reconfigure or recompile.
  47186. +
  47187. + The first method involves providing an override variable for each
  47188. +affected directory. For example, `make install
  47189. +prefix=/alternate/directory' will choose an alternate location for all
  47190. +directory configuration variables that were expressed in terms of
  47191. +`${prefix}'. Any directories that were specified during `configure',
  47192. +but not in terms of `${prefix}', must each be overridden at install
  47193. +time for the entire installation to be relocated. The approach of
  47194. +makefile variable overrides for each directory variable is required by
  47195. +the GNU Coding Standards, and ideally causes no recompilation.
  47196. +However, some platforms have known limitations with the semantics of
  47197. +shared libraries that end up requiring recompilation when using this
  47198. +method, particularly noticeable in packages that use GNU Libtool.
  47199. +
  47200. + The second method involves providing the `DESTDIR' variable. For
  47201. +example, `make install DESTDIR=/alternate/directory' will prepend
  47202. +`/alternate/directory' before all installation names. The approach of
  47203. +`DESTDIR' overrides is not required by the GNU Coding Standards, and
  47204. +does not work on platforms that have drive letters. On the other hand,
  47205. +it does better at avoiding recompilation issues, and works well even
  47206. +when some directory options were not specified in terms of `${prefix}'
  47207. +at `configure' time.
  47208. +
  47209. +Optional Features
  47210. +=================
  47211. If the package supports it, you can cause programs to be installed
  47212. with an extra prefix or suffix on their names by giving `configure' the
  47213. option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
  47214. -Optional Features
  47215. -=================
  47216. -
  47217. Some packages pay attention to `--enable-FEATURE' options to
  47218. `configure', where FEATURE indicates an optional part of the package.
  47219. They may also pay attention to `--with-PACKAGE' options, where PACKAGE
  47220. @@ -134,6 +208,45 @@
  47221. you can use the `configure' options `--x-includes=DIR' and
  47222. `--x-libraries=DIR' to specify their locations.
  47223. + Some packages offer the ability to configure how verbose the
  47224. +execution of `make' will be. For these packages, running `./configure
  47225. +--enable-silent-rules' sets the default to minimal output, which can be
  47226. +overridden with `make V=1'; while running `./configure
  47227. +--disable-silent-rules' sets the default to verbose, which can be
  47228. +overridden with `make V=0'.
  47229. +
  47230. +Particular systems
  47231. +==================
  47232. +
  47233. + On HP-UX, the default C compiler is not ANSI C compatible. If GNU
  47234. +CC is not installed, it is recommended to use the following options in
  47235. +order to use an ANSI C compiler:
  47236. +
  47237. + ./configure CC="cc -Ae -D_XOPEN_SOURCE=500"
  47238. +
  47239. +and if that doesn't work, install pre-built binaries of GCC for HP-UX.
  47240. +
  47241. + On OSF/1 a.k.a. Tru64, some versions of the default C compiler cannot
  47242. +parse its `<wchar.h>' header file. The option `-nodtk' can be used as
  47243. +a workaround. If GNU CC is not installed, it is therefore recommended
  47244. +to try
  47245. +
  47246. + ./configure CC="cc"
  47247. +
  47248. +and if that doesn't work, try
  47249. +
  47250. + ./configure CC="cc -nodtk"
  47251. +
  47252. + On Solaris, don't put `/usr/ucb' early in your `PATH'. This
  47253. +directory contains several dysfunctional programs; working variants of
  47254. +these programs are available in `/usr/bin'. So, if you need `/usr/ucb'
  47255. +in your `PATH', put it _after_ `/usr/bin'.
  47256. +
  47257. + On Haiku, software installed for all users goes in `/boot/common',
  47258. +not `/usr/local'. It is recommended to use the following options:
  47259. +
  47260. + ./configure --prefix=/boot/common
  47261. +
  47262. Specifying the System Type
  47263. ==========================
  47264. @@ -149,14 +262,15 @@
  47265. where SYSTEM can have one of these forms:
  47266. - OS KERNEL-OS
  47267. + OS
  47268. + KERNEL-OS
  47269. See the file `config.sub' for the possible values of each field. If
  47270. `config.sub' isn't included in this package, then this package doesn't
  47271. need to know the machine type.
  47272. If you are _building_ compiler tools for cross-compiling, you should
  47273. -use the `--target=TYPE' option to select the type of system they will
  47274. +use the option `--target=TYPE' to select the type of system they will
  47275. produce code for.
  47276. If you want to _use_ a cross compiler, that generates code for a
  47277. @@ -186,9 +300,14 @@
  47278. ./configure CC=/usr/local2/bin/gcc
  47279. -will cause the specified gcc to be used as the C compiler (unless it is
  47280. +causes the specified `gcc' to be used as the C compiler (unless it is
  47281. overridden in the site shell script).
  47282. +Unfortunately, this technique does not work for `CONFIG_SHELL' due to
  47283. +an Autoconf bug. Until the bug is fixed you can use this workaround:
  47284. +
  47285. + CONFIG_SHELL=/bin/bash /bin/bash ./configure CONFIG_SHELL=/bin/bash
  47286. +
  47287. `configure' Invocation
  47288. ======================
  47289. @@ -197,7 +316,14 @@
  47290. `--help'
  47291. `-h'
  47292. - Print a summary of the options to `configure', and exit.
  47293. + Print a summary of all of the options to `configure', and exit.
  47294. +
  47295. +`--help=short'
  47296. +`--help=recursive'
  47297. + Print a summary of the options unique to this package's
  47298. + `configure', and exit. The `short' variant lists options used
  47299. + only in the top level, while the `recursive' variant lists options
  47300. + also present in any nested packages.
  47301. `--version'
  47302. `-V'
  47303. @@ -224,6 +350,16 @@
  47304. Look for the package's source code in directory DIR. Usually
  47305. `configure' can determine that directory automatically.
  47306. +`--prefix=DIR'
  47307. + Use DIR as the installation prefix. *note Installation Names::
  47308. + for more details, including other options available for fine-tuning
  47309. + the installation locations.
  47310. +
  47311. +`--no-create'
  47312. +`-n'
  47313. + Run the configure checks, but stop before creating any output
  47314. + files.
  47315. +
  47316. `configure' also accepts some other, not widely useful, options. Run
  47317. `configure --help' for more details.
  47318. diff -Nur chillispot-1.1.0.orig/install-sh chillispot-1.1.0/install-sh
  47319. --- chillispot-1.1.0.orig/install-sh 2004-04-02 20:55:11.000000000 +0200
  47320. +++ chillispot-1.1.0/install-sh 2011-02-21 17:56:53.504804665 +0100
  47321. @@ -1,251 +1,520 @@
  47322. #!/bin/sh
  47323. -#
  47324. # install - install a program, script, or datafile
  47325. -# This comes from X11R5 (mit/util/scripts/install.sh).
  47326. +
  47327. +scriptversion=2009-04-28.21; # UTC
  47328. +
  47329. +# This originates from X11R5 (mit/util/scripts/install.sh), which was
  47330. +# later released in X11R6 (xc/config/util/install.sh) with the
  47331. +# following copyright and license.
  47332. +#
  47333. +# Copyright (C) 1994 X Consortium
  47334. +#
  47335. +# Permission is hereby granted, free of charge, to any person obtaining a copy
  47336. +# of this software and associated documentation files (the "Software"), to
  47337. +# deal in the Software without restriction, including without limitation the
  47338. +# rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
  47339. +# sell copies of the Software, and to permit persons to whom the Software is
  47340. +# furnished to do so, subject to the following conditions:
  47341. +#
  47342. +# The above copyright notice and this permission notice shall be included in
  47343. +# all copies or substantial portions of the Software.
  47344. +#
  47345. +# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
  47346. +# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  47347. +# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
  47348. +# X CONSORTIUM BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN
  47349. +# AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNEC-
  47350. +# TION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  47351. +#
  47352. +# Except as contained in this notice, the name of the X Consortium shall not
  47353. +# be used in advertising or otherwise to promote the sale, use or other deal-
  47354. +# ings in this Software without prior written authorization from the X Consor-
  47355. +# tium.
  47356. #
  47357. -# Copyright 1991 by the Massachusetts Institute of Technology
  47358. #
  47359. -# Permission to use, copy, modify, distribute, and sell this software and its
  47360. -# documentation for any purpose is hereby granted without fee, provided that
  47361. -# the above copyright notice appear in all copies and that both that
  47362. -# copyright notice and this permission notice appear in supporting
  47363. -# documentation, and that the name of M.I.T. not be used in advertising or
  47364. -# publicity pertaining to distribution of the software without specific,
  47365. -# written prior permission. M.I.T. makes no representations about the
  47366. -# suitability of this software for any purpose. It is provided "as is"
  47367. -# without express or implied warranty.
  47368. +# FSF changes to this file are in the public domain.
  47369. #
  47370. # Calling this script install-sh is preferred over install.sh, to prevent
  47371. # `make' implicit rules from creating a file called install from it
  47372. # when there is no Makefile.
  47373. #
  47374. # This script is compatible with the BSD install script, but was written
  47375. -# from scratch. It can only install one file at a time, a restriction
  47376. -# shared with many OS's install programs.
  47377. +# from scratch.
  47378. +nl='
  47379. +'
  47380. +IFS=" "" $nl"
  47381. # set DOITPROG to echo to test this script
  47382. # Don't use :- since 4.3BSD and earlier shells don't like it.
  47383. -doit="${DOITPROG-}"
  47384. -
  47385. +doit=${DOITPROG-}
  47386. +if test -z "$doit"; then
  47387. + doit_exec=exec
  47388. +else
  47389. + doit_exec=$doit
  47390. +fi
  47391. -# put in absolute paths if you don't have them in your path; or use env. vars.
  47392. +# Put in absolute file names if you don't have them in your path;
  47393. +# or use environment vars.
  47394. -mvprog="${MVPROG-mv}"
  47395. -cpprog="${CPPROG-cp}"
  47396. -chmodprog="${CHMODPROG-chmod}"
  47397. -chownprog="${CHOWNPROG-chown}"
  47398. -chgrpprog="${CHGRPPROG-chgrp}"
  47399. -stripprog="${STRIPPROG-strip}"
  47400. -rmprog="${RMPROG-rm}"
  47401. -mkdirprog="${MKDIRPROG-mkdir}"
  47402. -
  47403. -transformbasename=""
  47404. -transform_arg=""
  47405. -instcmd="$mvprog"
  47406. -chmodcmd="$chmodprog 0755"
  47407. -chowncmd=""
  47408. -chgrpcmd=""
  47409. -stripcmd=""
  47410. +chgrpprog=${CHGRPPROG-chgrp}
  47411. +chmodprog=${CHMODPROG-chmod}
  47412. +chownprog=${CHOWNPROG-chown}
  47413. +cmpprog=${CMPPROG-cmp}
  47414. +cpprog=${CPPROG-cp}
  47415. +mkdirprog=${MKDIRPROG-mkdir}
  47416. +mvprog=${MVPROG-mv}
  47417. +rmprog=${RMPROG-rm}
  47418. +stripprog=${STRIPPROG-strip}
  47419. +
  47420. +posix_glob='?'
  47421. +initialize_posix_glob='
  47422. + test "$posix_glob" != "?" || {
  47423. + if (set -f) 2>/dev/null; then
  47424. + posix_glob=
  47425. + else
  47426. + posix_glob=:
  47427. + fi
  47428. + }
  47429. +'
  47430. +
  47431. +posix_mkdir=
  47432. +
  47433. +# Desired mode of installed file.
  47434. +mode=0755
  47435. +
  47436. +chgrpcmd=
  47437. +chmodcmd=$chmodprog
  47438. +chowncmd=
  47439. +mvcmd=$mvprog
  47440. rmcmd="$rmprog -f"
  47441. -mvcmd="$mvprog"
  47442. -src=""
  47443. -dst=""
  47444. -dir_arg=""
  47445. -
  47446. -while [ x"$1" != x ]; do
  47447. - case $1 in
  47448. - -c) instcmd="$cpprog"
  47449. - shift
  47450. - continue;;
  47451. -
  47452. - -d) dir_arg=true
  47453. - shift
  47454. - continue;;
  47455. -
  47456. - -m) chmodcmd="$chmodprog $2"
  47457. - shift
  47458. - shift
  47459. - continue;;
  47460. -
  47461. - -o) chowncmd="$chownprog $2"
  47462. - shift
  47463. - shift
  47464. - continue;;
  47465. -
  47466. - -g) chgrpcmd="$chgrpprog $2"
  47467. - shift
  47468. - shift
  47469. - continue;;
  47470. -
  47471. - -s) stripcmd="$stripprog"
  47472. - shift
  47473. - continue;;
  47474. -
  47475. - -t=*) transformarg=`echo $1 | sed 's/-t=//'`
  47476. - shift
  47477. - continue;;
  47478. -
  47479. - -b=*) transformbasename=`echo $1 | sed 's/-b=//'`
  47480. - shift
  47481. - continue;;
  47482. +stripcmd=
  47483. - *) if [ x"$src" = x ]
  47484. - then
  47485. - src=$1
  47486. - else
  47487. - # this colon is to work around a 386BSD /bin/sh bug
  47488. - :
  47489. - dst=$1
  47490. - fi
  47491. - shift
  47492. - continue;;
  47493. - esac
  47494. -done
  47495. +src=
  47496. +dst=
  47497. +dir_arg=
  47498. +dst_arg=
  47499. -if [ x"$src" = x ]
  47500. -then
  47501. - echo "install: no input file specified"
  47502. - exit 1
  47503. -else
  47504. - :
  47505. -fi
  47506. +copy_on_change=false
  47507. +no_target_directory=
  47508. -if [ x"$dir_arg" != x ]; then
  47509. - dst=$src
  47510. - src=""
  47511. -
  47512. - if [ -d $dst ]; then
  47513. - instcmd=:
  47514. - chmodcmd=""
  47515. - else
  47516. - instcmd=$mkdirprog
  47517. - fi
  47518. -else
  47519. +usage="\
  47520. +Usage: $0 [OPTION]... [-T] SRCFILE DSTFILE
  47521. + or: $0 [OPTION]... SRCFILES... DIRECTORY
  47522. + or: $0 [OPTION]... -t DIRECTORY SRCFILES...
  47523. + or: $0 [OPTION]... -d DIRECTORIES...
  47524. -# Waiting for this to be detected by the "$instcmd $src $dsttmp" command
  47525. -# might cause directories to be created, which would be especially bad
  47526. -# if $src (and thus $dsttmp) contains '*'.
  47527. -
  47528. - if [ -f "$src" ] || [ -d "$src" ]
  47529. - then
  47530. - :
  47531. - else
  47532. - echo "install: $src does not exist"
  47533. - exit 1
  47534. - fi
  47535. -
  47536. - if [ x"$dst" = x ]
  47537. - then
  47538. - echo "install: no destination specified"
  47539. - exit 1
  47540. - else
  47541. - :
  47542. - fi
  47543. +In the 1st form, copy SRCFILE to DSTFILE.
  47544. +In the 2nd and 3rd, copy all SRCFILES to DIRECTORY.
  47545. +In the 4th, create DIRECTORIES.
  47546. -# If destination is a directory, append the input filename; if your system
  47547. -# does not like double slashes in filenames, you may need to add some logic
  47548. +Options:
  47549. + --help display this help and exit.
  47550. + --version display version info and exit.
  47551. - if [ -d $dst ]
  47552. - then
  47553. - dst="$dst"/`basename $src`
  47554. - else
  47555. - :
  47556. - fi
  47557. -fi
  47558. + -c (ignored)
  47559. + -C install only if different (preserve the last data modification time)
  47560. + -d create directories instead of installing files.
  47561. + -g GROUP $chgrpprog installed files to GROUP.
  47562. + -m MODE $chmodprog installed files to MODE.
  47563. + -o USER $chownprog installed files to USER.
  47564. + -s $stripprog installed files.
  47565. + -t DIRECTORY install into DIRECTORY.
  47566. + -T report an error if DSTFILE is a directory.
  47567. -## this sed command emulates the dirname command
  47568. -dstdir=`echo $dst | sed -e 's,[^/]*$,,;s,/$,,;s,^$,.,'`
  47569. +Environment variables override the default commands:
  47570. + CHGRPPROG CHMODPROG CHOWNPROG CMPPROG CPPROG MKDIRPROG MVPROG
  47571. + RMPROG STRIPPROG
  47572. +"
  47573. -# Make sure that the destination directory exists.
  47574. -# this part is taken from Noah Friedman's mkinstalldirs script
  47575. +while test $# -ne 0; do
  47576. + case $1 in
  47577. + -c) ;;
  47578. -# Skip lots of stat calls in the usual case.
  47579. -if [ ! -d "$dstdir" ]; then
  47580. -defaultIFS='
  47581. - '
  47582. -IFS="${IFS-${defaultIFS}}"
  47583. -
  47584. -oIFS="${IFS}"
  47585. -# Some sh's can't handle IFS=/ for some reason.
  47586. -IFS='%'
  47587. -set - `echo ${dstdir} | sed -e 's@/@%@g' -e 's@^%@/@'`
  47588. -IFS="${oIFS}"
  47589. -
  47590. -pathcomp=''
  47591. -
  47592. -while [ $# -ne 0 ] ; do
  47593. - pathcomp="${pathcomp}${1}"
  47594. - shift
  47595. -
  47596. - if [ ! -d "${pathcomp}" ] ;
  47597. - then
  47598. - $mkdirprog "${pathcomp}"
  47599. - else
  47600. - :
  47601. - fi
  47602. + -C) copy_on_change=true;;
  47603. - pathcomp="${pathcomp}/"
  47604. -done
  47605. -fi
  47606. + -d) dir_arg=true;;
  47607. -if [ x"$dir_arg" != x ]
  47608. -then
  47609. - $doit $instcmd $dst &&
  47610. -
  47611. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dst; else : ; fi &&
  47612. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dst; else : ; fi &&
  47613. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dst; else : ; fi &&
  47614. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dst; else : ; fi
  47615. -else
  47616. + -g) chgrpcmd="$chgrpprog $2"
  47617. + shift;;
  47618. -# If we're going to rename the final executable, determine the name now.
  47619. + --help) echo "$usage"; exit $?;;
  47620. - if [ x"$transformarg" = x ]
  47621. - then
  47622. - dstfile=`basename $dst`
  47623. - else
  47624. - dstfile=`basename $dst $transformbasename |
  47625. - sed $transformarg`$transformbasename
  47626. - fi
  47627. + -m) mode=$2
  47628. + case $mode in
  47629. + *' '* | *' '* | *'
  47630. +'* | *'*'* | *'?'* | *'['*)
  47631. + echo "$0: invalid mode: $mode" >&2
  47632. + exit 1;;
  47633. + esac
  47634. + shift;;
  47635. -# don't allow the sed command to completely eliminate the filename
  47636. + -o) chowncmd="$chownprog $2"
  47637. + shift;;
  47638. - if [ x"$dstfile" = x ]
  47639. - then
  47640. - dstfile=`basename $dst`
  47641. - else
  47642. - :
  47643. - fi
  47644. + -s) stripcmd=$stripprog;;
  47645. -# Make a temp file name in the proper directory.
  47646. + -t) dst_arg=$2
  47647. + shift;;
  47648. - dsttmp=$dstdir/#inst.$$#
  47649. + -T) no_target_directory=true;;
  47650. -# Move or copy the file name to the temp name
  47651. + --version) echo "$0 $scriptversion"; exit $?;;
  47652. - $doit $instcmd $src $dsttmp &&
  47653. + --) shift
  47654. + break;;
  47655. - trap "rm -f ${dsttmp}" 0 &&
  47656. + -*) echo "$0: invalid option: $1" >&2
  47657. + exit 1;;
  47658. -# and set any options; do chmod last to preserve setuid bits
  47659. + *) break;;
  47660. + esac
  47661. + shift
  47662. +done
  47663. -# If any of these fail, we abort the whole thing. If we want to
  47664. -# ignore errors from any of these, just make sure not to ignore
  47665. -# errors from the above "$doit $instcmd $src $dsttmp" command.
  47666. +if test $# -ne 0 && test -z "$dir_arg$dst_arg"; then
  47667. + # When -d is used, all remaining arguments are directories to create.
  47668. + # When -t is used, the destination is already specified.
  47669. + # Otherwise, the last argument is the destination. Remove it from $@.
  47670. + for arg
  47671. + do
  47672. + if test -n "$dst_arg"; then
  47673. + # $@ is not empty: it contains at least $arg.
  47674. + set fnord "$@" "$dst_arg"
  47675. + shift # fnord
  47676. + fi
  47677. + shift # arg
  47678. + dst_arg=$arg
  47679. + done
  47680. +fi
  47681. - if [ x"$chowncmd" != x ]; then $doit $chowncmd $dsttmp; else :;fi &&
  47682. - if [ x"$chgrpcmd" != x ]; then $doit $chgrpcmd $dsttmp; else :;fi &&
  47683. - if [ x"$stripcmd" != x ]; then $doit $stripcmd $dsttmp; else :;fi &&
  47684. - if [ x"$chmodcmd" != x ]; then $doit $chmodcmd $dsttmp; else :;fi &&
  47685. +if test $# -eq 0; then
  47686. + if test -z "$dir_arg"; then
  47687. + echo "$0: no input file specified." >&2
  47688. + exit 1
  47689. + fi
  47690. + # It's OK to call `install-sh -d' without argument.
  47691. + # This can happen when creating conditional directories.
  47692. + exit 0
  47693. +fi
  47694. -# Now rename the file to the real destination.
  47695. +if test -z "$dir_arg"; then
  47696. + trap '(exit $?); exit' 1 2 13 15
  47697. - $doit $rmcmd -f $dstdir/$dstfile &&
  47698. - $doit $mvcmd $dsttmp $dstdir/$dstfile
  47699. + # Set umask so as not to create temps with too-generous modes.
  47700. + # However, 'strip' requires both read and write access to temps.
  47701. + case $mode in
  47702. + # Optimize common cases.
  47703. + *644) cp_umask=133;;
  47704. + *755) cp_umask=22;;
  47705. +
  47706. + *[0-7])
  47707. + if test -z "$stripcmd"; then
  47708. + u_plus_rw=
  47709. + else
  47710. + u_plus_rw='% 200'
  47711. + fi
  47712. + cp_umask=`expr '(' 777 - $mode % 1000 ')' $u_plus_rw`;;
  47713. + *)
  47714. + if test -z "$stripcmd"; then
  47715. + u_plus_rw=
  47716. + else
  47717. + u_plus_rw=,u+rw
  47718. + fi
  47719. + cp_umask=$mode$u_plus_rw;;
  47720. + esac
  47721. +fi
  47722. -fi &&
  47723. +for src
  47724. +do
  47725. + # Protect names starting with `-'.
  47726. + case $src in
  47727. + -*) src=./$src;;
  47728. + esac
  47729. +
  47730. + if test -n "$dir_arg"; then
  47731. + dst=$src
  47732. + dstdir=$dst
  47733. + test -d "$dstdir"
  47734. + dstdir_status=$?
  47735. + else
  47736. +
  47737. + # Waiting for this to be detected by the "$cpprog $src $dsttmp" command
  47738. + # might cause directories to be created, which would be especially bad
  47739. + # if $src (and thus $dsttmp) contains '*'.
  47740. + if test ! -f "$src" && test ! -d "$src"; then
  47741. + echo "$0: $src does not exist." >&2
  47742. + exit 1
  47743. + fi
  47744. +
  47745. + if test -z "$dst_arg"; then
  47746. + echo "$0: no destination specified." >&2
  47747. + exit 1
  47748. + fi
  47749. +
  47750. + dst=$dst_arg
  47751. + # Protect names starting with `-'.
  47752. + case $dst in
  47753. + -*) dst=./$dst;;
  47754. + esac
  47755. + # If destination is a directory, append the input filename; won't work
  47756. + # if double slashes aren't ignored.
  47757. + if test -d "$dst"; then
  47758. + if test -n "$no_target_directory"; then
  47759. + echo "$0: $dst_arg: Is a directory" >&2
  47760. + exit 1
  47761. + fi
  47762. + dstdir=$dst
  47763. + dst=$dstdir/`basename "$src"`
  47764. + dstdir_status=0
  47765. + else
  47766. + # Prefer dirname, but fall back on a substitute if dirname fails.
  47767. + dstdir=`
  47768. + (dirname "$dst") 2>/dev/null ||
  47769. + expr X"$dst" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  47770. + X"$dst" : 'X\(//\)[^/]' \| \
  47771. + X"$dst" : 'X\(//\)$' \| \
  47772. + X"$dst" : 'X\(/\)' \| . 2>/dev/null ||
  47773. + echo X"$dst" |
  47774. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  47775. + s//\1/
  47776. + q
  47777. + }
  47778. + /^X\(\/\/\)[^/].*/{
  47779. + s//\1/
  47780. + q
  47781. + }
  47782. + /^X\(\/\/\)$/{
  47783. + s//\1/
  47784. + q
  47785. + }
  47786. + /^X\(\/\).*/{
  47787. + s//\1/
  47788. + q
  47789. + }
  47790. + s/.*/./; q'
  47791. + `
  47792. +
  47793. + test -d "$dstdir"
  47794. + dstdir_status=$?
  47795. + fi
  47796. + fi
  47797. +
  47798. + obsolete_mkdir_used=false
  47799. +
  47800. + if test $dstdir_status != 0; then
  47801. + case $posix_mkdir in
  47802. + '')
  47803. + # Create intermediate dirs using mode 755 as modified by the umask.
  47804. + # This is like FreeBSD 'install' as of 1997-10-28.
  47805. + umask=`umask`
  47806. + case $stripcmd.$umask in
  47807. + # Optimize common cases.
  47808. + *[2367][2367]) mkdir_umask=$umask;;
  47809. + .*0[02][02] | .[02][02] | .[02]) mkdir_umask=22;;
  47810. +
  47811. + *[0-7])
  47812. + mkdir_umask=`expr $umask + 22 \
  47813. + - $umask % 100 % 40 + $umask % 20 \
  47814. + - $umask % 10 % 4 + $umask % 2
  47815. + `;;
  47816. + *) mkdir_umask=$umask,go-w;;
  47817. + esac
  47818. +
  47819. + # With -d, create the new directory with the user-specified mode.
  47820. + # Otherwise, rely on $mkdir_umask.
  47821. + if test -n "$dir_arg"; then
  47822. + mkdir_mode=-m$mode
  47823. + else
  47824. + mkdir_mode=
  47825. + fi
  47826. +
  47827. + posix_mkdir=false
  47828. + case $umask in
  47829. + *[123567][0-7][0-7])
  47830. + # POSIX mkdir -p sets u+wx bits regardless of umask, which
  47831. + # is incompatible with FreeBSD 'install' when (umask & 300) != 0.
  47832. + ;;
  47833. + *)
  47834. + tmpdir=${TMPDIR-/tmp}/ins$RANDOM-$$
  47835. + trap 'ret=$?; rmdir "$tmpdir/d" "$tmpdir" 2>/dev/null; exit $ret' 0
  47836. +
  47837. + if (umask $mkdir_umask &&
  47838. + exec $mkdirprog $mkdir_mode -p -- "$tmpdir/d") >/dev/null 2>&1
  47839. + then
  47840. + if test -z "$dir_arg" || {
  47841. + # Check for POSIX incompatibilities with -m.
  47842. + # HP-UX 11.23 and IRIX 6.5 mkdir -m -p sets group- or
  47843. + # other-writeable bit of parent directory when it shouldn't.
  47844. + # FreeBSD 6.1 mkdir -m -p sets mode of existing directory.
  47845. + ls_ld_tmpdir=`ls -ld "$tmpdir"`
  47846. + case $ls_ld_tmpdir in
  47847. + d????-?r-*) different_mode=700;;
  47848. + d????-?--*) different_mode=755;;
  47849. + *) false;;
  47850. + esac &&
  47851. + $mkdirprog -m$different_mode -p -- "$tmpdir" && {
  47852. + ls_ld_tmpdir_1=`ls -ld "$tmpdir"`
  47853. + test "$ls_ld_tmpdir" = "$ls_ld_tmpdir_1"
  47854. + }
  47855. + }
  47856. + then posix_mkdir=:
  47857. + fi
  47858. + rmdir "$tmpdir/d" "$tmpdir"
  47859. + else
  47860. + # Remove any dirs left behind by ancient mkdir implementations.
  47861. + rmdir ./$mkdir_mode ./-p ./-- 2>/dev/null
  47862. + fi
  47863. + trap '' 0;;
  47864. + esac;;
  47865. + esac
  47866. +
  47867. + if
  47868. + $posix_mkdir && (
  47869. + umask $mkdir_umask &&
  47870. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir"
  47871. + )
  47872. + then :
  47873. + else
  47874. +
  47875. + # The umask is ridiculous, or mkdir does not conform to POSIX,
  47876. + # or it failed possibly due to a race condition. Create the
  47877. + # directory the slow way, step by step, checking for races as we go.
  47878. +
  47879. + case $dstdir in
  47880. + /*) prefix='/';;
  47881. + -*) prefix='./';;
  47882. + *) prefix='';;
  47883. + esac
  47884. +
  47885. + eval "$initialize_posix_glob"
  47886. +
  47887. + oIFS=$IFS
  47888. + IFS=/
  47889. + $posix_glob set -f
  47890. + set fnord $dstdir
  47891. + shift
  47892. + $posix_glob set +f
  47893. + IFS=$oIFS
  47894. +
  47895. + prefixes=
  47896. +
  47897. + for d
  47898. + do
  47899. + test -z "$d" && continue
  47900. +
  47901. + prefix=$prefix$d
  47902. + if test -d "$prefix"; then
  47903. + prefixes=
  47904. + else
  47905. + if $posix_mkdir; then
  47906. + (umask=$mkdir_umask &&
  47907. + $doit_exec $mkdirprog $mkdir_mode -p -- "$dstdir") && break
  47908. + # Don't fail if two instances are running concurrently.
  47909. + test -d "$prefix" || exit 1
  47910. + else
  47911. + case $prefix in
  47912. + *\'*) qprefix=`echo "$prefix" | sed "s/'/'\\\\\\\\''/g"`;;
  47913. + *) qprefix=$prefix;;
  47914. + esac
  47915. + prefixes="$prefixes '$qprefix'"
  47916. + fi
  47917. + fi
  47918. + prefix=$prefix/
  47919. + done
  47920. +
  47921. + if test -n "$prefixes"; then
  47922. + # Don't fail if two instances are running concurrently.
  47923. + (umask $mkdir_umask &&
  47924. + eval "\$doit_exec \$mkdirprog $prefixes") ||
  47925. + test -d "$dstdir" || exit 1
  47926. + obsolete_mkdir_used=true
  47927. + fi
  47928. + fi
  47929. + fi
  47930. +
  47931. + if test -n "$dir_arg"; then
  47932. + { test -z "$chowncmd" || $doit $chowncmd "$dst"; } &&
  47933. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dst"; } &&
  47934. + { test "$obsolete_mkdir_used$chowncmd$chgrpcmd" = false ||
  47935. + test -z "$chmodcmd" || $doit $chmodcmd $mode "$dst"; } || exit 1
  47936. + else
  47937. +
  47938. + # Make a couple of temp file names in the proper directory.
  47939. + dsttmp=$dstdir/_inst.$$_
  47940. + rmtmp=$dstdir/_rm.$$_
  47941. +
  47942. + # Trap to clean up those temp files at exit.
  47943. + trap 'ret=$?; rm -f "$dsttmp" "$rmtmp" && exit $ret' 0
  47944. +
  47945. + # Copy the file name to the temp name.
  47946. + (umask $cp_umask && $doit_exec $cpprog "$src" "$dsttmp") &&
  47947. +
  47948. + # and set any options; do chmod last to preserve setuid bits.
  47949. + #
  47950. + # If any of these fail, we abort the whole thing. If we want to
  47951. + # ignore errors from any of these, just make sure not to ignore
  47952. + # errors from the above "$doit $cpprog $src $dsttmp" command.
  47953. + #
  47954. + { test -z "$chowncmd" || $doit $chowncmd "$dsttmp"; } &&
  47955. + { test -z "$chgrpcmd" || $doit $chgrpcmd "$dsttmp"; } &&
  47956. + { test -z "$stripcmd" || $doit $stripcmd "$dsttmp"; } &&
  47957. + { test -z "$chmodcmd" || $doit $chmodcmd $mode "$dsttmp"; } &&
  47958. +
  47959. + # If -C, don't bother to copy if it wouldn't change the file.
  47960. + if $copy_on_change &&
  47961. + old=`LC_ALL=C ls -dlL "$dst" 2>/dev/null` &&
  47962. + new=`LC_ALL=C ls -dlL "$dsttmp" 2>/dev/null` &&
  47963. +
  47964. + eval "$initialize_posix_glob" &&
  47965. + $posix_glob set -f &&
  47966. + set X $old && old=:$2:$4:$5:$6 &&
  47967. + set X $new && new=:$2:$4:$5:$6 &&
  47968. + $posix_glob set +f &&
  47969. +
  47970. + test "$old" = "$new" &&
  47971. + $cmpprog "$dst" "$dsttmp" >/dev/null 2>&1
  47972. + then
  47973. + rm -f "$dsttmp"
  47974. + else
  47975. + # Rename the file to the real destination.
  47976. + $doit $mvcmd -f "$dsttmp" "$dst" 2>/dev/null ||
  47977. +
  47978. + # The rename failed, perhaps because mv can't rename something else
  47979. + # to itself, or perhaps because mv is so ancient that it does not
  47980. + # support -f.
  47981. + {
  47982. + # Now remove or move aside any old file at destination location.
  47983. + # We try this two ways since rm can't unlink itself on some
  47984. + # systems and the destination file might be busy for other
  47985. + # reasons. In this case, the final cleanup might fail but the new
  47986. + # file should still install successfully.
  47987. + {
  47988. + test ! -f "$dst" ||
  47989. + $doit $rmcmd -f "$dst" 2>/dev/null ||
  47990. + { $doit $mvcmd -f "$dst" "$rmtmp" 2>/dev/null &&
  47991. + { $doit $rmcmd -f "$rmtmp" 2>/dev/null; :; }
  47992. + } ||
  47993. + { echo "$0: cannot unlink or rename $dst" >&2
  47994. + (exit 1); exit 1
  47995. + }
  47996. + } &&
  47997. +
  47998. + # Now rename the file to the real destination.
  47999. + $doit $mvcmd "$dsttmp" "$dst"
  48000. + }
  48001. + fi || exit 1
  48002. +
  48003. + trap '' 0
  48004. + fi
  48005. +done
  48006. -exit 0
  48007. +# Local variables:
  48008. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  48009. +# time-stamp-start: "scriptversion="
  48010. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  48011. +# time-stamp-time-zone: "UTC"
  48012. +# time-stamp-end: "; # UTC"
  48013. +# End:
  48014. diff -Nur chillispot-1.1.0.orig/ltmain.sh chillispot-1.1.0/ltmain.sh
  48015. --- chillispot-1.1.0.orig/ltmain.sh 2005-01-13 22:19:24.000000000 +0100
  48016. +++ chillispot-1.1.0/ltmain.sh 2011-02-21 17:56:50.114804124 +0100
  48017. @@ -1,4595 +1,3140 @@
  48018. -# ltmain.sh - Provide generalized library-building support services.
  48019. -# NOTE: Changing this file will not affect anything until you rerun configure.
  48020. -#
  48021. -# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004
  48022. -# Free Software Foundation, Inc.
  48023. -# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  48024. -#
  48025. -# This program is free software; you can redistribute it and/or modify
  48026. +# Generated from ltmain.m4sh.
  48027. +
  48028. +# ltmain.sh (GNU libtool) 2.2.6b
  48029. +# Written by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996
  48030. +
  48031. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 2006, 2007 2008 Free Software Foundation, Inc.
  48032. +# This is free software; see the source for copying conditions. There is NO
  48033. +# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  48034. +
  48035. +# GNU Libtool is free software; you can redistribute it and/or modify
  48036. # it under the terms of the GNU General Public License as published by
  48037. # the Free Software Foundation; either version 2 of the License, or
  48038. # (at your option) any later version.
  48039. #
  48040. -# This program is distributed in the hope that it will be useful, but
  48041. +# As a special exception to the GNU General Public License,
  48042. +# if you distribute this file as part of a program or library that
  48043. +# is built using GNU Libtool, you may include this file under the
  48044. +# same distribution terms that you use for the rest of that program.
  48045. +#
  48046. +# GNU Libtool is distributed in the hope that it will be useful, but
  48047. # WITHOUT ANY WARRANTY; without even the implied warranty of
  48048. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  48049. # General Public License for more details.
  48050. #
  48051. # You should have received a copy of the GNU General Public License
  48052. -# along with this program; if not, write to the Free Software
  48053. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  48054. +# along with GNU Libtool; see the file COPYING. If not, a copy
  48055. +# can be downloaded from http://www.gnu.org/licenses/gpl.html,
  48056. +# or obtained by writing to the Free Software Foundation, Inc.,
  48057. +# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  48058. +
  48059. +# Usage: $progname [OPTION]... [MODE-ARG]...
  48060. +#
  48061. +# Provide generalized library-building support services.
  48062. #
  48063. -# As a special exception to the GNU General Public License, if you
  48064. -# distribute this file as part of a program that contains a
  48065. -# configuration script generated by Autoconf, you may include it under
  48066. -# the same distribution terms that you use for the rest of that program.
  48067. +# --config show all configuration variables
  48068. +# --debug enable verbose shell tracing
  48069. +# -n, --dry-run display commands without modifying any files
  48070. +# --features display basic configuration information and exit
  48071. +# --mode=MODE use operation mode MODE
  48072. +# --preserve-dup-deps don't remove duplicate dependency libraries
  48073. +# --quiet, --silent don't print informational messages
  48074. +# --tag=TAG use configuration variables from tag TAG
  48075. +# -v, --verbose print informational messages (default)
  48076. +# --version print version information
  48077. +# -h, --help print short or long help message
  48078. +#
  48079. +# MODE must be one of the following:
  48080. +#
  48081. +# clean remove files from the build directory
  48082. +# compile compile a source file into a libtool object
  48083. +# execute automatically set library path, then run a program
  48084. +# finish complete the installation of libtool libraries
  48085. +# install install libraries or executables
  48086. +# link create a library or an executable
  48087. +# uninstall remove libraries from an installed directory
  48088. +#
  48089. +# MODE-ARGS vary depending on the MODE.
  48090. +# Try `$progname --help --mode=MODE' for a more detailed description of MODE.
  48091. +#
  48092. +# When reporting a bug, please describe a test case to reproduce it and
  48093. +# include the following information:
  48094. +#
  48095. +# host-triplet: $host
  48096. +# shell: $SHELL
  48097. +# compiler: $LTCC
  48098. +# compiler flags: $LTCFLAGS
  48099. +# linker: $LD (gnu? $with_gnu_ld)
  48100. +# $progname: (GNU libtool) 2.2.6b Debian-2.2.6b-2ubuntu1
  48101. +# automake: $automake_version
  48102. +# autoconf: $autoconf_version
  48103. +#
  48104. +# Report bugs to <bug-libtool@gnu.org>.
  48105. +
  48106. +PROGRAM=ltmain.sh
  48107. +PACKAGE=libtool
  48108. +VERSION="2.2.6b Debian-2.2.6b-2ubuntu1"
  48109. +TIMESTAMP=""
  48110. +package_revision=1.3017
  48111. +
  48112. +# Be Bourne compatible
  48113. +if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
  48114. + emulate sh
  48115. + NULLCMD=:
  48116. + # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
  48117. + # is contrary to our usage. Disable this feature.
  48118. + alias -g '${1+"$@"}'='"$@"'
  48119. + setopt NO_GLOB_SUBST
  48120. +else
  48121. + case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
  48122. +fi
  48123. +BIN_SH=xpg4; export BIN_SH # for Tru64
  48124. +DUALCASE=1; export DUALCASE # for MKS sh
  48125. +
  48126. +# NLS nuisances: We save the old values to restore during execute mode.
  48127. +# Only set LANG and LC_ALL to C if already set.
  48128. +# These must not be set unconditionally because not all systems understand
  48129. +# e.g. LANG=C (notably SCO).
  48130. +lt_user_locale=
  48131. +lt_safe_locale=
  48132. +for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  48133. +do
  48134. + eval "if test \"\${$lt_var+set}\" = set; then
  48135. + save_$lt_var=\$$lt_var
  48136. + $lt_var=C
  48137. + export $lt_var
  48138. + lt_user_locale=\"$lt_var=\\\$save_\$lt_var; \$lt_user_locale\"
  48139. + lt_safe_locale=\"$lt_var=C; \$lt_safe_locale\"
  48140. + fi"
  48141. +done
  48142. -basename="s,^.*/,,g"
  48143. +$lt_unset CDPATH
  48144. -# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  48145. -# is ksh but when the shell is invoked as "sh" and the current value of
  48146. -# the _XPG environment variable is not equal to 1 (one), the special
  48147. -# positional parameter $0, within a function call, is the name of the
  48148. -# function.
  48149. -progpath="$0"
  48150. -# RH: define SED for historic ltconfig's generated by Libtool 1.3
  48151. -[ -z "$SED" ] && SED=sed
  48152. -# The name of this program:
  48153. -progname=`echo "$progpath" | $SED $basename`
  48154. -modename="$progname"
  48155. +
  48156. +
  48157. +: ${CP="cp -f"}
  48158. +: ${ECHO="echo"}
  48159. +: ${EGREP="/bin/grep -E"}
  48160. +: ${FGREP="/bin/grep -F"}
  48161. +: ${GREP="/bin/grep"}
  48162. +: ${LN_S="ln -s"}
  48163. +: ${MAKE="make"}
  48164. +: ${MKDIR="mkdir"}
  48165. +: ${MV="mv -f"}
  48166. +: ${RM="rm -f"}
  48167. +: ${SED="/bin/sed"}
  48168. +: ${SHELL="${CONFIG_SHELL-/bin/sh}"}
  48169. +: ${Xsed="$SED -e 1s/^X//"}
  48170. # Global variables:
  48171. EXIT_SUCCESS=0
  48172. EXIT_FAILURE=1
  48173. +EXIT_MISMATCH=63 # $? = 63 is used to indicate version mismatch to missing.
  48174. +EXIT_SKIP=77 # $? = 77 is used to indicate a skipped test to automake.
  48175. -PROGRAM=ltmain.sh
  48176. -PACKAGE=libtool
  48177. -VERSION=1.5.6
  48178. -TIMESTAMP=" (1.1220.2.95 2004/04/11 05:50:42)"
  48179. +exit_status=$EXIT_SUCCESS
  48180. +# Make sure IFS has a sensible default
  48181. +lt_nl='
  48182. +'
  48183. +IFS=" $lt_nl"
  48184. +
  48185. +dirname="s,/[^/]*$,,"
  48186. +basename="s,^.*/,,"
  48187. +
  48188. +# func_dirname_and_basename file append nondir_replacement
  48189. +# perform func_basename and func_dirname in a single function
  48190. +# call:
  48191. +# dirname: Compute the dirname of FILE. If nonempty,
  48192. +# add APPEND to the result, otherwise set result
  48193. +# to NONDIR_REPLACEMENT.
  48194. +# value returned in "$func_dirname_result"
  48195. +# basename: Compute filename of FILE.
  48196. +# value retuned in "$func_basename_result"
  48197. +# Implementation must be kept synchronized with func_dirname
  48198. +# and func_basename. For efficiency, we do not delegate to
  48199. +# those functions but instead duplicate the functionality here.
  48200. +func_dirname_and_basename ()
  48201. +{
  48202. + # Extract subdirectory from the argument.
  48203. + func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"`
  48204. + if test "X$func_dirname_result" = "X${1}"; then
  48205. + func_dirname_result="${3}"
  48206. + else
  48207. + func_dirname_result="$func_dirname_result${2}"
  48208. + fi
  48209. + func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"`
  48210. +}
  48211. -# Check that we have a working $echo.
  48212. -if test "X$1" = X--no-reexec; then
  48213. - # Discard the --no-reexec flag, and continue.
  48214. - shift
  48215. -elif test "X$1" = X--fallback-echo; then
  48216. - # Avoid inline document here, it may be left over
  48217. - :
  48218. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  48219. - # Yippee, $echo works!
  48220. - :
  48221. -else
  48222. - # Restart under the correct shell, and then maybe $echo will work.
  48223. - exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  48224. -fi
  48225. +# Generated shell functions inserted here.
  48226. -if test "X$1" = X--fallback-echo; then
  48227. - # used as fallback echo
  48228. - shift
  48229. - cat <<EOF
  48230. -$*
  48231. -EOF
  48232. - exit $EXIT_SUCCESS
  48233. -fi
  48234. +# Work around backward compatibility issue on IRIX 6.5. On IRIX 6.4+, sh
  48235. +# is ksh but when the shell is invoked as "sh" and the current value of
  48236. +# the _XPG environment variable is not equal to 1 (one), the special
  48237. +# positional parameter $0, within a function call, is the name of the
  48238. +# function.
  48239. +progpath="$0"
  48240. -default_mode=
  48241. -help="Try \`$progname --help' for more information."
  48242. -magic="%%%MAGIC variable%%%"
  48243. -mkdir="mkdir"
  48244. -mv="mv -f"
  48245. -rm="rm -f"
  48246. +# The name of this program:
  48247. +# In the unlikely event $progname began with a '-', it would play havoc with
  48248. +# func_echo (imagine progname=-n), so we prepend ./ in that case:
  48249. +func_dirname_and_basename "$progpath"
  48250. +progname=$func_basename_result
  48251. +case $progname in
  48252. + -*) progname=./$progname ;;
  48253. +esac
  48254. +
  48255. +# Make sure we have an absolute path for reexecution:
  48256. +case $progpath in
  48257. + [\\/]*|[A-Za-z]:\\*) ;;
  48258. + *[\\/]*)
  48259. + progdir=$func_dirname_result
  48260. + progdir=`cd "$progdir" && pwd`
  48261. + progpath="$progdir/$progname"
  48262. + ;;
  48263. + *)
  48264. + save_IFS="$IFS"
  48265. + IFS=:
  48266. + for progdir in $PATH; do
  48267. + IFS="$save_IFS"
  48268. + test -x "$progdir/$progname" && break
  48269. + done
  48270. + IFS="$save_IFS"
  48271. + test -n "$progdir" || progdir=`pwd`
  48272. + progpath="$progdir/$progname"
  48273. + ;;
  48274. +esac
  48275. # Sed substitution that helps us do robust quoting. It backslashifies
  48276. # metacharacters that are still active within double-quoted strings.
  48277. Xsed="${SED}"' -e 1s/^X//'
  48278. -sed_quote_subst='s/\([\\`\\"$\\\\]\)/\\\1/g'
  48279. -# test EBCDIC or ASCII
  48280. -case `echo A|tr A '\301'` in
  48281. - A) # EBCDIC based system
  48282. - SP2NL="tr '\100' '\n'"
  48283. - NL2SP="tr '\r\n' '\100\100'"
  48284. - ;;
  48285. - *) # Assume ASCII based system
  48286. - SP2NL="tr '\040' '\012'"
  48287. - NL2SP="tr '\015\012' '\040\040'"
  48288. - ;;
  48289. -esac
  48290. +sed_quote_subst='s/\([`"$\\]\)/\\\1/g'
  48291. -# NLS nuisances.
  48292. -# Only set LANG and LC_ALL to C if already set.
  48293. -# These must not be set unconditionally because not all systems understand
  48294. -# e.g. LANG=C (notably SCO).
  48295. -# We save the old values to restore during execute mode.
  48296. -if test "${LC_ALL+set}" = set; then
  48297. - save_LC_ALL="$LC_ALL"; LC_ALL=C; export LC_ALL
  48298. -fi
  48299. -if test "${LANG+set}" = set; then
  48300. - save_LANG="$LANG"; LANG=C; export LANG
  48301. -fi
  48302. +# Same as above, but do not quote variable references.
  48303. +double_quote_subst='s/\(["`\\]\)/\\\1/g'
  48304. -# Make sure IFS has a sensible default
  48305. -: ${IFS="
  48306. -"}
  48307. +# Re-`\' parameter expansions in output of double_quote_subst that were
  48308. +# `\'-ed in input to the same. If an odd number of `\' preceded a '$'
  48309. +# in input to double_quote_subst, that '$' was protected from expansion.
  48310. +# Since each input `\' is now two `\'s, look for any number of runs of
  48311. +# four `\'s followed by two `\'s and then a '$'. `\' that '$'.
  48312. +bs='\\'
  48313. +bs2='\\\\'
  48314. +bs4='\\\\\\\\'
  48315. +dollar='\$'
  48316. +sed_double_backslash="\
  48317. + s/$bs4/&\\
  48318. +/g
  48319. + s/^$bs2$dollar/$bs&/
  48320. + s/\\([^$bs]\\)$bs2$dollar/\\1$bs2$bs$dollar/g
  48321. + s/\n//g"
  48322. +
  48323. +# Standard options:
  48324. +opt_dry_run=false
  48325. +opt_help=false
  48326. +opt_quiet=false
  48327. +opt_verbose=false
  48328. +opt_warning=:
  48329. +
  48330. +# func_echo arg...
  48331. +# Echo program name prefixed message, along with the current mode
  48332. +# name if it has been set yet.
  48333. +func_echo ()
  48334. +{
  48335. + $ECHO "$progname${mode+: }$mode: $*"
  48336. +}
  48337. -if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  48338. - $echo "$modename: not configured to build any kind of library" 1>&2
  48339. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  48340. - exit $EXIT_FAILURE
  48341. -fi
  48342. +# func_verbose arg...
  48343. +# Echo program name prefixed message in verbose mode only.
  48344. +func_verbose ()
  48345. +{
  48346. + $opt_verbose && func_echo ${1+"$@"}
  48347. -# Global variables.
  48348. -mode=$default_mode
  48349. -nonopt=
  48350. -prev=
  48351. -prevopt=
  48352. -run=
  48353. -show="$echo"
  48354. -show_help=
  48355. -execute_dlfiles=
  48356. -lo2o="s/\\.lo\$/.${objext}/"
  48357. -o2lo="s/\\.${objext}\$/.lo/"
  48358. + # A bug in bash halts the script if the last line of a function
  48359. + # fails when set -e is in force, so we need another command to
  48360. + # work around that:
  48361. + :
  48362. +}
  48363. -#####################################
  48364. -# Shell function definitions:
  48365. -# This seems to be the best place for them
  48366. +# func_error arg...
  48367. +# Echo program name prefixed message to standard error.
  48368. +func_error ()
  48369. +{
  48370. + $ECHO "$progname${mode+: }$mode: "${1+"$@"} 1>&2
  48371. +}
  48372. -# func_win32_libid arg
  48373. -# return the library type of file 'arg'
  48374. -#
  48375. -# Need a lot of goo to handle *both* DLLs and import libs
  48376. -# Has to be a shell function in order to 'eat' the argument
  48377. -# that is supplied when $file_magic_command is called.
  48378. -func_win32_libid () {
  48379. - win32_libid_type="unknown"
  48380. - win32_fileres=`file -L $1 2>/dev/null`
  48381. - case $win32_fileres in
  48382. - *ar\ archive\ import\ library*) # definitely import
  48383. - win32_libid_type="x86 archive import"
  48384. - ;;
  48385. - *ar\ archive*) # could be an import, or static
  48386. - if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null | \
  48387. - $EGREP -e 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  48388. - win32_nmres=`eval $NM -f posix -A $1 | \
  48389. - sed -n -e '1,100{/ I /{x;/import/!{s/^/import/;h;p;};x;};}'`
  48390. - if test "X$win32_nmres" = "Ximport" ; then
  48391. - win32_libid_type="x86 archive import"
  48392. - else
  48393. - win32_libid_type="x86 archive static"
  48394. - fi
  48395. - fi
  48396. - ;;
  48397. - *DLL*)
  48398. - win32_libid_type="x86 DLL"
  48399. - ;;
  48400. - *executable*) # but shell scripts are "executable" too...
  48401. - case $win32_fileres in
  48402. - *MS\ Windows\ PE\ Intel*)
  48403. - win32_libid_type="x86 DLL"
  48404. - ;;
  48405. - esac
  48406. - ;;
  48407. - esac
  48408. - $echo $win32_libid_type
  48409. +# func_warning arg...
  48410. +# Echo program name prefixed warning message to standard error.
  48411. +func_warning ()
  48412. +{
  48413. + $opt_warning && $ECHO "$progname${mode+: }$mode: warning: "${1+"$@"} 1>&2
  48414. +
  48415. + # bash bug again:
  48416. + :
  48417. }
  48418. +# func_fatal_error arg...
  48419. +# Echo program name prefixed message to standard error, and exit.
  48420. +func_fatal_error ()
  48421. +{
  48422. + func_error ${1+"$@"}
  48423. + exit $EXIT_FAILURE
  48424. +}
  48425. -# func_infer_tag arg
  48426. -# Infer tagged configuration to use if any are available and
  48427. -# if one wasn't chosen via the "--tag" command line option.
  48428. -# Only attempt this if the compiler in the base compile
  48429. -# command doesn't match the default compiler.
  48430. -# arg is usually of the form 'gcc ...'
  48431. -func_infer_tag () {
  48432. - if test -n "$available_tags" && test -z "$tagname"; then
  48433. - CC_quoted=
  48434. - for arg in $CC; do
  48435. - case $arg in
  48436. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48437. - arg="\"$arg\""
  48438. - ;;
  48439. - esac
  48440. - CC_quoted="$CC_quoted $arg"
  48441. - done
  48442. - case $@ in
  48443. - # Blanks in the command may have been stripped by the calling shell,
  48444. - # but not from the CC environment variable when configure was run.
  48445. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*) ;;
  48446. - # Blanks at the start of $base_compile will cause this to fail
  48447. - # if we don't check for them as well.
  48448. - *)
  48449. - for z in $available_tags; do
  48450. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  48451. - # Evaluate the configuration.
  48452. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  48453. - CC_quoted=
  48454. - for arg in $CC; do
  48455. - # Double-quote args containing other shell metacharacters.
  48456. - case $arg in
  48457. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48458. - arg="\"$arg\""
  48459. - ;;
  48460. - esac
  48461. - CC_quoted="$CC_quoted $arg"
  48462. - done
  48463. - case "$@ " in
  48464. - " $CC "* | "$CC "* | " `$echo $CC` "* | "`$echo $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$echo $CC_quoted` "* | "`$echo $CC_quoted` "*)
  48465. - # The compiler in the base compile command matches
  48466. - # the one in the tagged configuration.
  48467. - # Assume this is the tagged configuration we want.
  48468. - tagname=$z
  48469. - break
  48470. - ;;
  48471. - esac
  48472. - fi
  48473. - done
  48474. - # If $tagname still isn't set, then no tagged configuration
  48475. - # was found and let the user know that the "--tag" command
  48476. - # line option must be used.
  48477. - if test -z "$tagname"; then
  48478. - $echo "$modename: unable to infer tagged configuration"
  48479. - $echo "$modename: specify a tag with \`--tag'" 1>&2
  48480. - exit $EXIT_FAILURE
  48481. -# else
  48482. -# $echo "$modename: using $tagname tagged configuration"
  48483. - fi
  48484. - ;;
  48485. - esac
  48486. - fi
  48487. +# func_fatal_help arg...
  48488. +# Echo program name prefixed message to standard error, followed by
  48489. +# a help hint, and exit.
  48490. +func_fatal_help ()
  48491. +{
  48492. + func_error ${1+"$@"}
  48493. + func_fatal_error "$help"
  48494. }
  48495. -# End of Shell function definitions
  48496. -#####################################
  48497. +help="Try \`$progname --help' for more information." ## default
  48498. -# Darwin sucks
  48499. -eval std_shrext=\"$shrext_cmds\"
  48500. -# Parse our command line options once, thoroughly.
  48501. -while test "$#" -gt 0
  48502. -do
  48503. - arg="$1"
  48504. - shift
  48505. +# func_grep expression filename
  48506. +# Check whether EXPRESSION matches any line of FILENAME, without output.
  48507. +func_grep ()
  48508. +{
  48509. + $GREP "$1" "$2" >/dev/null 2>&1
  48510. +}
  48511. - case $arg in
  48512. - -*=*) optarg=`$echo "X$arg" | $Xsed -e 's/[-_a-zA-Z0-9]*=//'` ;;
  48513. - *) optarg= ;;
  48514. - esac
  48515. - # If the previous option needs an argument, assign it.
  48516. - if test -n "$prev"; then
  48517. - case $prev in
  48518. - execute_dlfiles)
  48519. - execute_dlfiles="$execute_dlfiles $arg"
  48520. - ;;
  48521. - tag)
  48522. - tagname="$arg"
  48523. - preserve_args="${preserve_args}=$arg"
  48524. -
  48525. - # Check whether tagname contains only valid characters
  48526. - case $tagname in
  48527. - *[!-_A-Za-z0-9,/]*)
  48528. - $echo "$progname: invalid tag name: $tagname" 1>&2
  48529. - exit $EXIT_FAILURE
  48530. - ;;
  48531. - esac
  48532. +# func_mkdir_p directory-path
  48533. +# Make sure the entire path to DIRECTORY-PATH is available.
  48534. +func_mkdir_p ()
  48535. +{
  48536. + my_directory_path="$1"
  48537. + my_dir_list=
  48538. - case $tagname in
  48539. - CC)
  48540. - # Don't test for the "default" C tag, as we know, it's there, but
  48541. - # not specially marked.
  48542. - ;;
  48543. - *)
  48544. - if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "$progpath" > /dev/null; then
  48545. - taglist="$taglist $tagname"
  48546. - # Evaluate the configuration.
  48547. - eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$tagname'$/,/^# ### END LIBTOOL TAG CONFIG: '$tagname'$/p' < $progpath`"
  48548. - else
  48549. - $echo "$progname: ignoring unknown tag $tagname" 1>&2
  48550. - fi
  48551. - ;;
  48552. + if test -n "$my_directory_path" && test "$opt_dry_run" != ":"; then
  48553. +
  48554. + # Protect directory names starting with `-'
  48555. + case $my_directory_path in
  48556. + -*) my_directory_path="./$my_directory_path" ;;
  48557. esac
  48558. - ;;
  48559. - *)
  48560. - eval "$prev=\$arg"
  48561. - ;;
  48562. - esac
  48563. - prev=
  48564. - prevopt=
  48565. - continue
  48566. - fi
  48567. + # While some portion of DIR does not yet exist...
  48568. + while test ! -d "$my_directory_path"; do
  48569. + # ...make a list in topmost first order. Use a colon delimited
  48570. + # list incase some portion of path contains whitespace.
  48571. + my_dir_list="$my_directory_path:$my_dir_list"
  48572. - # Have we seen a non-optional argument yet?
  48573. - case $arg in
  48574. - --help)
  48575. - show_help=yes
  48576. - ;;
  48577. + # If the last portion added has no slash in it, the list is done
  48578. + case $my_directory_path in */*) ;; *) break ;; esac
  48579. - --version)
  48580. - $echo "$PROGRAM (GNU $PACKAGE) $VERSION$TIMESTAMP"
  48581. - $echo
  48582. - $echo "Copyright (C) 2003 Free Software Foundation, Inc."
  48583. - $echo "This is free software; see the source for copying conditions. There is NO"
  48584. - $echo "warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE."
  48585. - exit $EXIT_SUCCESS
  48586. - ;;
  48587. + # ...otherwise throw away the child directory and loop
  48588. + my_directory_path=`$ECHO "X$my_directory_path" | $Xsed -e "$dirname"`
  48589. + done
  48590. + my_dir_list=`$ECHO "X$my_dir_list" | $Xsed -e 's,:*$,,'`
  48591. - --config)
  48592. - ${SED} -e '1,/^# ### BEGIN LIBTOOL CONFIG/d' -e '/^# ### END LIBTOOL CONFIG/,$d' $progpath
  48593. - # Now print the configurations for the tags.
  48594. - for tagname in $taglist; do
  48595. - ${SED} -n -e "/^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$/,/^# ### END LIBTOOL TAG CONFIG: $tagname$/p" < "$progpath"
  48596. - done
  48597. - exit $EXIT_SUCCESS
  48598. - ;;
  48599. + save_mkdir_p_IFS="$IFS"; IFS=':'
  48600. + for my_dir in $my_dir_list; do
  48601. + IFS="$save_mkdir_p_IFS"
  48602. + # mkdir can fail with a `File exist' error if two processes
  48603. + # try to create one of the directories concurrently. Don't
  48604. + # stop in that case!
  48605. + $MKDIR "$my_dir" 2>/dev/null || :
  48606. + done
  48607. + IFS="$save_mkdir_p_IFS"
  48608. - --debug)
  48609. - $echo "$progname: enabling shell trace mode"
  48610. - set -x
  48611. - preserve_args="$preserve_args $arg"
  48612. - ;;
  48613. + # Bail out if we (or some other process) failed to create a directory.
  48614. + test -d "$my_directory_path" || \
  48615. + func_fatal_error "Failed to create \`$1'"
  48616. + fi
  48617. +}
  48618. - --dry-run | -n)
  48619. - run=:
  48620. - ;;
  48621. - --features)
  48622. - $echo "host: $host"
  48623. - if test "$build_libtool_libs" = yes; then
  48624. - $echo "enable shared libraries"
  48625. - else
  48626. - $echo "disable shared libraries"
  48627. - fi
  48628. - if test "$build_old_libs" = yes; then
  48629. - $echo "enable static libraries"
  48630. +# func_mktempdir [string]
  48631. +# Make a temporary directory that won't clash with other running
  48632. +# libtool processes, and avoids race conditions if possible. If
  48633. +# given, STRING is the basename for that directory.
  48634. +func_mktempdir ()
  48635. +{
  48636. + my_template="${TMPDIR-/tmp}/${1-$progname}"
  48637. +
  48638. + if test "$opt_dry_run" = ":"; then
  48639. + # Return a directory name, but don't create it in dry-run mode
  48640. + my_tmpdir="${my_template}-$$"
  48641. else
  48642. - $echo "disable static libraries"
  48643. - fi
  48644. - exit $EXIT_SUCCESS
  48645. - ;;
  48646. - --finish) mode="finish" ;;
  48647. + # If mktemp works, use that first and foremost
  48648. + my_tmpdir=`mktemp -d "${my_template}-XXXXXXXX" 2>/dev/null`
  48649. - --mode) prevopt="--mode" prev=mode ;;
  48650. - --mode=*) mode="$optarg" ;;
  48651. + if test ! -d "$my_tmpdir"; then
  48652. + # Failing that, at least try and use $RANDOM to avoid a race
  48653. + my_tmpdir="${my_template}-${RANDOM-0}$$"
  48654. - --preserve-dup-deps) duplicate_deps="yes" ;;
  48655. + save_mktempdir_umask=`umask`
  48656. + umask 0077
  48657. + $MKDIR "$my_tmpdir"
  48658. + umask $save_mktempdir_umask
  48659. + fi
  48660. - --quiet | --silent)
  48661. - show=:
  48662. - preserve_args="$preserve_args $arg"
  48663. - ;;
  48664. + # If we're not in dry-run mode, bomb out on failure
  48665. + test -d "$my_tmpdir" || \
  48666. + func_fatal_error "cannot create temporary directory \`$my_tmpdir'"
  48667. + fi
  48668. - --tag) prevopt="--tag" prev=tag ;;
  48669. - --tag=*)
  48670. - set tag "$optarg" ${1+"$@"}
  48671. - shift
  48672. - prev=tag
  48673. - preserve_args="$preserve_args --tag"
  48674. - ;;
  48675. + $ECHO "X$my_tmpdir" | $Xsed
  48676. +}
  48677. - -dlopen)
  48678. - prevopt="-dlopen"
  48679. - prev=execute_dlfiles
  48680. - ;;
  48681. - -*)
  48682. - $echo "$modename: unrecognized option \`$arg'" 1>&2
  48683. - $echo "$help" 1>&2
  48684. - exit $EXIT_FAILURE
  48685. - ;;
  48686. +# func_quote_for_eval arg
  48687. +# Aesthetically quote ARG to be evaled later.
  48688. +# This function returns two values: FUNC_QUOTE_FOR_EVAL_RESULT
  48689. +# is double-quoted, suitable for a subsequent eval, whereas
  48690. +# FUNC_QUOTE_FOR_EVAL_UNQUOTED_RESULT has merely all characters
  48691. +# which are still active within double quotes backslashified.
  48692. +func_quote_for_eval ()
  48693. +{
  48694. + case $1 in
  48695. + *[\\\`\"\$]*)
  48696. + func_quote_for_eval_unquoted_result=`$ECHO "X$1" | $Xsed -e "$sed_quote_subst"` ;;
  48697. + *)
  48698. + func_quote_for_eval_unquoted_result="$1" ;;
  48699. + esac
  48700. - *)
  48701. - nonopt="$arg"
  48702. - break
  48703. - ;;
  48704. - esac
  48705. -done
  48706. + case $func_quote_for_eval_unquoted_result in
  48707. + # Double-quote args containing shell metacharacters to delay
  48708. + # word splitting, command substitution and and variable
  48709. + # expansion for a subsequent eval.
  48710. + # Many Bourne shells cannot handle close brackets correctly
  48711. + # in scan sets, so we specify it separately.
  48712. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48713. + func_quote_for_eval_result="\"$func_quote_for_eval_unquoted_result\""
  48714. + ;;
  48715. + *)
  48716. + func_quote_for_eval_result="$func_quote_for_eval_unquoted_result"
  48717. + esac
  48718. +}
  48719. -if test -n "$prevopt"; then
  48720. - $echo "$modename: option \`$prevopt' requires an argument" 1>&2
  48721. - $echo "$help" 1>&2
  48722. - exit $EXIT_FAILURE
  48723. -fi
  48724. -# If this variable is set in any of the actions, the command in it
  48725. -# will be execed at the end. This prevents here-documents from being
  48726. -# left over by shells.
  48727. -exec_cmd=
  48728. +# func_quote_for_expand arg
  48729. +# Aesthetically quote ARG to be evaled later; same as above,
  48730. +# but do not quote variable references.
  48731. +func_quote_for_expand ()
  48732. +{
  48733. + case $1 in
  48734. + *[\\\`\"]*)
  48735. + my_arg=`$ECHO "X$1" | $Xsed \
  48736. + -e "$double_quote_subst" -e "$sed_double_backslash"` ;;
  48737. + *)
  48738. + my_arg="$1" ;;
  48739. + esac
  48740. -if test -z "$show_help"; then
  48741. + case $my_arg in
  48742. + # Double-quote args containing shell metacharacters to delay
  48743. + # word splitting and command substitution for a subsequent eval.
  48744. + # Many Bourne shells cannot handle close brackets correctly
  48745. + # in scan sets, so we specify it separately.
  48746. + *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48747. + my_arg="\"$my_arg\""
  48748. + ;;
  48749. + esac
  48750. - # Infer the operation mode.
  48751. - if test -z "$mode"; then
  48752. - $echo "*** Warning: inferring the mode of operation is deprecated." 1>&2
  48753. - $echo "*** Future versions of Libtool will require -mode=MODE be specified." 1>&2
  48754. - case $nonopt in
  48755. - *cc | cc* | *++ | gcc* | *-gcc* | g++* | xlc*)
  48756. - mode=link
  48757. - for arg
  48758. - do
  48759. - case $arg in
  48760. - -c)
  48761. - mode=compile
  48762. - break
  48763. - ;;
  48764. - esac
  48765. - done
  48766. - ;;
  48767. - *db | *dbx | *strace | *truss)
  48768. - mode=execute
  48769. - ;;
  48770. - *install*|cp|mv)
  48771. - mode=install
  48772. - ;;
  48773. - *rm)
  48774. - mode=uninstall
  48775. - ;;
  48776. - *)
  48777. - # If we have no mode, but dlfiles were specified, then do execute mode.
  48778. - test -n "$execute_dlfiles" && mode=execute
  48779. + func_quote_for_expand_result="$my_arg"
  48780. +}
  48781. - # Just use the default operation mode.
  48782. - if test -z "$mode"; then
  48783. - if test -n "$nonopt"; then
  48784. - $echo "$modename: warning: cannot infer operation mode from \`$nonopt'" 1>&2
  48785. - else
  48786. - $echo "$modename: warning: cannot infer operation mode without MODE-ARGS" 1>&2
  48787. - fi
  48788. +
  48789. +# func_show_eval cmd [fail_exp]
  48790. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  48791. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  48792. +# is given, then evaluate it.
  48793. +func_show_eval ()
  48794. +{
  48795. + my_cmd="$1"
  48796. + my_fail_exp="${2-:}"
  48797. +
  48798. + ${opt_silent-false} || {
  48799. + func_quote_for_expand "$my_cmd"
  48800. + eval "func_echo $func_quote_for_expand_result"
  48801. + }
  48802. +
  48803. + if ${opt_dry_run-false}; then :; else
  48804. + eval "$my_cmd"
  48805. + my_status=$?
  48806. + if test "$my_status" -eq 0; then :; else
  48807. + eval "(exit $my_status); $my_fail_exp"
  48808. fi
  48809. - ;;
  48810. - esac
  48811. - fi
  48812. + fi
  48813. +}
  48814. - # Only execute mode is allowed to have -dlopen flags.
  48815. - if test -n "$execute_dlfiles" && test "$mode" != execute; then
  48816. - $echo "$modename: unrecognized option \`-dlopen'" 1>&2
  48817. - $echo "$help" 1>&2
  48818. - exit $EXIT_FAILURE
  48819. - fi
  48820. - # Change the help message to a mode-specific one.
  48821. - generic_help="$help"
  48822. - help="Try \`$modename --help --mode=$mode' for more information."
  48823. +# func_show_eval_locale cmd [fail_exp]
  48824. +# Unless opt_silent is true, then output CMD. Then, if opt_dryrun is
  48825. +# not true, evaluate CMD. If the evaluation of CMD fails, and FAIL_EXP
  48826. +# is given, then evaluate it. Use the saved locale for evaluation.
  48827. +func_show_eval_locale ()
  48828. +{
  48829. + my_cmd="$1"
  48830. + my_fail_exp="${2-:}"
  48831. - # These modes are in order of execution frequency so that they run quickly.
  48832. - case $mode in
  48833. - # libtool compile mode
  48834. - compile)
  48835. - modename="$modename: compile"
  48836. - # Get the compilation command and the source file.
  48837. - base_compile=
  48838. - srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  48839. - suppress_opt=yes
  48840. - suppress_output=
  48841. - arg_mode=normal
  48842. - libobj=
  48843. - later=
  48844. + ${opt_silent-false} || {
  48845. + func_quote_for_expand "$my_cmd"
  48846. + eval "func_echo $func_quote_for_expand_result"
  48847. + }
  48848. +
  48849. + if ${opt_dry_run-false}; then :; else
  48850. + eval "$lt_user_locale
  48851. + $my_cmd"
  48852. + my_status=$?
  48853. + eval "$lt_safe_locale"
  48854. + if test "$my_status" -eq 0; then :; else
  48855. + eval "(exit $my_status); $my_fail_exp"
  48856. + fi
  48857. + fi
  48858. +}
  48859. - for arg
  48860. - do
  48861. - case "$arg_mode" in
  48862. - arg )
  48863. - # do not "continue". Instead, add this to base_compile
  48864. - lastarg="$arg"
  48865. - arg_mode=normal
  48866. - ;;
  48867. - target )
  48868. - libobj="$arg"
  48869. - arg_mode=normal
  48870. - continue
  48871. - ;;
  48872. - normal )
  48873. - # Accept any command-line options.
  48874. - case $arg in
  48875. - -o)
  48876. - if test -n "$libobj" ; then
  48877. - $echo "$modename: you cannot specify \`-o' more than once" 1>&2
  48878. - exit $EXIT_FAILURE
  48879. - fi
  48880. - arg_mode=target
  48881. - continue
  48882. - ;;
  48883. - -static | -prefer-pic | -prefer-non-pic)
  48884. - later="$later $arg"
  48885. - continue
  48886. - ;;
  48887. - -no-suppress)
  48888. - suppress_opt=no
  48889. - continue
  48890. - ;;
  48891. +# func_version
  48892. +# Echo version message to standard output and exit.
  48893. +func_version ()
  48894. +{
  48895. + $SED -n '/^# '$PROGRAM' (GNU /,/# warranty; / {
  48896. + s/^# //
  48897. + s/^# *$//
  48898. + s/\((C)\)[ 0-9,-]*\( [1-9][0-9]*\)/\1\2/
  48899. + p
  48900. + }' < "$progpath"
  48901. + exit $?
  48902. +}
  48903. - -Xcompiler)
  48904. - arg_mode=arg # the next one goes into the "base_compile" arg list
  48905. - continue # The current "srcfile" will either be retained or
  48906. - ;; # replaced later. I would guess that would be a bug.
  48907. +# func_usage
  48908. +# Echo short help message to standard output and exit.
  48909. +func_usage ()
  48910. +{
  48911. + $SED -n '/^# Usage:/,/# -h/ {
  48912. + s/^# //
  48913. + s/^# *$//
  48914. + s/\$progname/'$progname'/
  48915. + p
  48916. + }' < "$progpath"
  48917. + $ECHO
  48918. + $ECHO "run \`$progname --help | more' for full usage"
  48919. + exit $?
  48920. +}
  48921. - -Wc,*)
  48922. - args=`$echo "X$arg" | $Xsed -e "s/^-Wc,//"`
  48923. - lastarg=
  48924. - save_ifs="$IFS"; IFS=','
  48925. - for arg in $args; do
  48926. - IFS="$save_ifs"
  48927. +# func_help
  48928. +# Echo long help message to standard output and exit.
  48929. +func_help ()
  48930. +{
  48931. + $SED -n '/^# Usage:/,/# Report bugs to/ {
  48932. + s/^# //
  48933. + s/^# *$//
  48934. + s*\$progname*'$progname'*
  48935. + s*\$host*'"$host"'*
  48936. + s*\$SHELL*'"$SHELL"'*
  48937. + s*\$LTCC*'"$LTCC"'*
  48938. + s*\$LTCFLAGS*'"$LTCFLAGS"'*
  48939. + s*\$LD*'"$LD"'*
  48940. + s/\$with_gnu_ld/'"$with_gnu_ld"'/
  48941. + s/\$automake_version/'"`(automake --version) 2>/dev/null |$SED 1q`"'/
  48942. + s/\$autoconf_version/'"`(autoconf --version) 2>/dev/null |$SED 1q`"'/
  48943. + p
  48944. + }' < "$progpath"
  48945. + exit $?
  48946. +}
  48947. - # Double-quote args containing other shell metacharacters.
  48948. - # Many Bourne shells cannot handle close brackets correctly
  48949. - # in scan sets, so we specify it separately.
  48950. - case $arg in
  48951. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48952. - arg="\"$arg\""
  48953. - ;;
  48954. - esac
  48955. - lastarg="$lastarg $arg"
  48956. - done
  48957. - IFS="$save_ifs"
  48958. - lastarg=`$echo "X$lastarg" | $Xsed -e "s/^ //"`
  48959. +# func_missing_arg argname
  48960. +# Echo program name prefixed message to standard error and set global
  48961. +# exit_cmd.
  48962. +func_missing_arg ()
  48963. +{
  48964. + func_error "missing argument for $1"
  48965. + exit_cmd=exit
  48966. +}
  48967. - # Add the arguments to base_compile.
  48968. - base_compile="$base_compile $lastarg"
  48969. - continue
  48970. - ;;
  48971. +exit_cmd=:
  48972. - * )
  48973. - # Accept the current argument as the source file.
  48974. - # The previous "srcfile" becomes the current argument.
  48975. - #
  48976. - lastarg="$srcfile"
  48977. - srcfile="$arg"
  48978. - ;;
  48979. - esac # case $arg
  48980. - ;;
  48981. - esac # case $arg_mode
  48982. - # Aesthetically quote the previous argument.
  48983. - lastarg=`$echo "X$lastarg" | $Xsed -e "$sed_quote_subst"`
  48984. - case $lastarg in
  48985. - # Double-quote args containing other shell metacharacters.
  48986. - # Many Bourne shells cannot handle close brackets correctly
  48987. - # in scan sets, so we specify it separately.
  48988. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  48989. - lastarg="\"$lastarg\""
  48990. - ;;
  48991. - esac
  48992. - base_compile="$base_compile $lastarg"
  48993. - done # for arg
  48994. - case $arg_mode in
  48995. - arg)
  48996. - $echo "$modename: you must specify an argument for -Xcompile"
  48997. - exit $EXIT_FAILURE
  48998. - ;;
  48999. - target)
  49000. - $echo "$modename: you must specify a target with \`-o'" 1>&2
  49001. - exit $EXIT_FAILURE
  49002. - ;;
  49003. - *)
  49004. - # Get the name of the library object.
  49005. - [ -z "$libobj" ] && libobj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%'`
  49006. - ;;
  49007. - esac
  49008. +# Check that we have a working $ECHO.
  49009. +if test "X$1" = X--no-reexec; then
  49010. + # Discard the --no-reexec flag, and continue.
  49011. + shift
  49012. +elif test "X$1" = X--fallback-echo; then
  49013. + # Avoid inline document here, it may be left over
  49014. + :
  49015. +elif test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t'; then
  49016. + # Yippee, $ECHO works!
  49017. + :
  49018. +else
  49019. + # Restart under the correct shell, and then maybe $ECHO will work.
  49020. + exec $SHELL "$progpath" --no-reexec ${1+"$@"}
  49021. +fi
  49022. - # Recognize several different file suffixes.
  49023. - # If the user specifies -o file.o, it is replaced with file.lo
  49024. - xform='[cCFSifmso]'
  49025. - case $libobj in
  49026. - *.ada) xform=ada ;;
  49027. - *.adb) xform=adb ;;
  49028. - *.ads) xform=ads ;;
  49029. - *.asm) xform=asm ;;
  49030. - *.c++) xform=c++ ;;
  49031. - *.cc) xform=cc ;;
  49032. - *.ii) xform=ii ;;
  49033. - *.class) xform=class ;;
  49034. - *.cpp) xform=cpp ;;
  49035. - *.cxx) xform=cxx ;;
  49036. - *.f90) xform=f90 ;;
  49037. - *.for) xform=for ;;
  49038. - *.java) xform=java ;;
  49039. - esac
  49040. +if test "X$1" = X--fallback-echo; then
  49041. + # used as fallback echo
  49042. + shift
  49043. + cat <<EOF
  49044. +$*
  49045. +EOF
  49046. + exit $EXIT_SUCCESS
  49047. +fi
  49048. - libobj=`$echo "X$libobj" | $Xsed -e "s/\.$xform$/.lo/"`
  49049. +magic="%%%MAGIC variable%%%"
  49050. +magic_exe="%%%MAGIC EXE variable%%%"
  49051. - case $libobj in
  49052. - *.lo) obj=`$echo "X$libobj" | $Xsed -e "$lo2o"` ;;
  49053. - *)
  49054. - $echo "$modename: cannot determine name of library object from \`$libobj'" 1>&2
  49055. - exit $EXIT_FAILURE
  49056. - ;;
  49057. - esac
  49058. +# Global variables.
  49059. +# $mode is unset
  49060. +nonopt=
  49061. +execute_dlfiles=
  49062. +preserve_args=
  49063. +lo2o="s/\\.lo\$/.${objext}/"
  49064. +o2lo="s/\\.${objext}\$/.lo/"
  49065. +extracted_archives=
  49066. +extracted_serial=0
  49067. - func_infer_tag $base_compile
  49068. +opt_dry_run=false
  49069. +opt_duplicate_deps=false
  49070. +opt_silent=false
  49071. +opt_debug=:
  49072. - for arg in $later; do
  49073. - case $arg in
  49074. - -static)
  49075. - build_old_libs=yes
  49076. - continue
  49077. - ;;
  49078. +# If this variable is set in any of the actions, the command in it
  49079. +# will be execed at the end. This prevents here-documents from being
  49080. +# left over by shells.
  49081. +exec_cmd=
  49082. - -prefer-pic)
  49083. - pic_mode=yes
  49084. - continue
  49085. - ;;
  49086. +# func_fatal_configuration arg...
  49087. +# Echo program name prefixed message to standard error, followed by
  49088. +# a configuration failure hint, and exit.
  49089. +func_fatal_configuration ()
  49090. +{
  49091. + func_error ${1+"$@"}
  49092. + func_error "See the $PACKAGE documentation for more information."
  49093. + func_fatal_error "Fatal configuration error."
  49094. +}
  49095. - -prefer-non-pic)
  49096. - pic_mode=no
  49097. - continue
  49098. - ;;
  49099. - esac
  49100. +
  49101. +# func_config
  49102. +# Display the configuration for all the tags in this script.
  49103. +func_config ()
  49104. +{
  49105. + re_begincf='^# ### BEGIN LIBTOOL'
  49106. + re_endcf='^# ### END LIBTOOL'
  49107. +
  49108. + # Default configuration.
  49109. + $SED "1,/$re_begincf CONFIG/d;/$re_endcf CONFIG/,\$d" < "$progpath"
  49110. +
  49111. + # Now print the configurations for the tags.
  49112. + for tagname in $taglist; do
  49113. + $SED -n "/$re_begincf TAG CONFIG: $tagname\$/,/$re_endcf TAG CONFIG: $tagname\$/p" < "$progpath"
  49114. done
  49115. - objname=`$echo "X$obj" | $Xsed -e 's%^.*/%%'`
  49116. - xdir=`$echo "X$obj" | $Xsed -e 's%/[^/]*$%%'`
  49117. - if test "X$xdir" = "X$obj"; then
  49118. - xdir=
  49119. - else
  49120. - xdir=$xdir/
  49121. - fi
  49122. - lobj=${xdir}$objdir/$objname
  49123. + exit $?
  49124. +}
  49125. - if test -z "$base_compile"; then
  49126. - $echo "$modename: you must specify a compilation command" 1>&2
  49127. - $echo "$help" 1>&2
  49128. - exit $EXIT_FAILURE
  49129. +# func_features
  49130. +# Display the features supported by this script.
  49131. +func_features ()
  49132. +{
  49133. + $ECHO "host: $host"
  49134. + if test "$build_libtool_libs" = yes; then
  49135. + $ECHO "enable shared libraries"
  49136. + else
  49137. + $ECHO "disable shared libraries"
  49138. fi
  49139. -
  49140. - # Delete any leftover library objects.
  49141. if test "$build_old_libs" = yes; then
  49142. - removelist="$obj $lobj $libobj ${libobj}T"
  49143. + $ECHO "enable static libraries"
  49144. else
  49145. - removelist="$lobj $libobj ${libobj}T"
  49146. + $ECHO "disable static libraries"
  49147. fi
  49148. - $run $rm $removelist
  49149. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  49150. + exit $?
  49151. +}
  49152. - # On Cygwin there's no "real" PIC flag so we must build both object types
  49153. - case $host_os in
  49154. - cygwin* | mingw* | pw32* | os2*)
  49155. - pic_mode=default
  49156. +# func_enable_tag tagname
  49157. +# Verify that TAGNAME is valid, and either flag an error and exit, or
  49158. +# enable the TAGNAME tag. We also add TAGNAME to the global $taglist
  49159. +# variable here.
  49160. +func_enable_tag ()
  49161. +{
  49162. + # Global variable:
  49163. + tagname="$1"
  49164. +
  49165. + re_begincf="^# ### BEGIN LIBTOOL TAG CONFIG: $tagname\$"
  49166. + re_endcf="^# ### END LIBTOOL TAG CONFIG: $tagname\$"
  49167. + sed_extractcf="/$re_begincf/,/$re_endcf/p"
  49168. +
  49169. + # Validate tagname.
  49170. + case $tagname in
  49171. + *[!-_A-Za-z0-9,/]*)
  49172. + func_fatal_error "invalid tag name: $tagname"
  49173. ;;
  49174. - esac
  49175. - if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  49176. - # non-PIC code in shared libraries is not supported
  49177. - pic_mode=default
  49178. - fi
  49179. + esac
  49180. - # Calculate the filename of the output object if compiler does
  49181. - # not support -o with -c
  49182. - if test "$compiler_c_o" = no; then
  49183. - output_obj=`$echo "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  49184. - lockfile="$output_obj.lock"
  49185. - removelist="$removelist $output_obj $lockfile"
  49186. - trap "$run $rm $removelist; exit $EXIT_FAILURE" 1 2 15
  49187. - else
  49188. - output_obj=
  49189. - need_locks=no
  49190. - lockfile=
  49191. - fi
  49192. + # Don't test for the "default" C tag, as we know it's
  49193. + # there but not specially marked.
  49194. + case $tagname in
  49195. + CC) ;;
  49196. + *)
  49197. + if $GREP "$re_begincf" "$progpath" >/dev/null 2>&1; then
  49198. + taglist="$taglist $tagname"
  49199. - # Lock this critical section if it is needed
  49200. - # We use this script file to make the link, it avoids creating a new file
  49201. - if test "$need_locks" = yes; then
  49202. - until $run ln "$progpath" "$lockfile" 2>/dev/null; do
  49203. - $show "Waiting for $lockfile to be removed"
  49204. - sleep 2
  49205. - done
  49206. - elif test "$need_locks" = warn; then
  49207. - if test -f "$lockfile"; then
  49208. - $echo "\
  49209. -*** ERROR, $lockfile exists and contains:
  49210. -`cat $lockfile 2>/dev/null`
  49211. + # Evaluate the configuration. Be careful to quote the path
  49212. + # and the sed script, to avoid splitting on whitespace, but
  49213. + # also don't use non-portable quotes within backquotes within
  49214. + # quotes we have to do it in 2 steps:
  49215. + extractedcf=`$SED -n -e "$sed_extractcf" < "$progpath"`
  49216. + eval "$extractedcf"
  49217. + else
  49218. + func_error "ignoring unknown tag $tagname"
  49219. + fi
  49220. + ;;
  49221. + esac
  49222. +}
  49223. -This indicates that another process is trying to use the same
  49224. -temporary object file, and libtool could not work around it because
  49225. -your compiler does not support \`-c' and \`-o' together. If you
  49226. -repeat this compilation, it may succeed, by chance, but you had better
  49227. -avoid parallel builds (make -j) in this platform, or get a better
  49228. -compiler."
  49229. +# Parse options once, thoroughly. This comes as soon as possible in
  49230. +# the script to make things like `libtool --version' happen quickly.
  49231. +{
  49232. - $run $rm $removelist
  49233. - exit $EXIT_FAILURE
  49234. - fi
  49235. - $echo $srcfile > "$lockfile"
  49236. - fi
  49237. + # Shorthand for --mode=foo, only valid as the first argument
  49238. + case $1 in
  49239. + clean|clea|cle|cl)
  49240. + shift; set dummy --mode clean ${1+"$@"}; shift
  49241. + ;;
  49242. + compile|compil|compi|comp|com|co|c)
  49243. + shift; set dummy --mode compile ${1+"$@"}; shift
  49244. + ;;
  49245. + execute|execut|execu|exec|exe|ex|e)
  49246. + shift; set dummy --mode execute ${1+"$@"}; shift
  49247. + ;;
  49248. + finish|finis|fini|fin|fi|f)
  49249. + shift; set dummy --mode finish ${1+"$@"}; shift
  49250. + ;;
  49251. + install|instal|insta|inst|ins|in|i)
  49252. + shift; set dummy --mode install ${1+"$@"}; shift
  49253. + ;;
  49254. + link|lin|li|l)
  49255. + shift; set dummy --mode link ${1+"$@"}; shift
  49256. + ;;
  49257. + uninstall|uninstal|uninsta|uninst|unins|unin|uni|un|u)
  49258. + shift; set dummy --mode uninstall ${1+"$@"}; shift
  49259. + ;;
  49260. + esac
  49261. - if test -n "$fix_srcfile_path"; then
  49262. - eval srcfile=\"$fix_srcfile_path\"
  49263. - fi
  49264. + # Parse non-mode specific arguments:
  49265. + while test "$#" -gt 0; do
  49266. + opt="$1"
  49267. + shift
  49268. - $run $rm "$libobj" "${libobj}T"
  49269. + case $opt in
  49270. + --config) func_config ;;
  49271. - # Create a libtool object file (analogous to a ".la" file),
  49272. - # but don't create it if we're doing a dry run.
  49273. - test -z "$run" && cat > ${libobj}T <<EOF
  49274. -# $libobj - a libtool object file
  49275. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  49276. -#
  49277. -# Please DO NOT delete this file!
  49278. -# It is necessary for linking the library.
  49279. + --debug) preserve_args="$preserve_args $opt"
  49280. + func_echo "enabling shell trace mode"
  49281. + opt_debug='set -x'
  49282. + $opt_debug
  49283. + ;;
  49284. -# Name of the PIC object.
  49285. -EOF
  49286. + -dlopen) test "$#" -eq 0 && func_missing_arg "$opt" && break
  49287. + execute_dlfiles="$execute_dlfiles $1"
  49288. + shift
  49289. + ;;
  49290. - # Only build a PIC object if we are building libtool libraries.
  49291. - if test "$build_libtool_libs" = yes; then
  49292. - # Without this assignment, base_compile gets emptied.
  49293. - fbsd_hideous_sh_bug=$base_compile
  49294. + --dry-run | -n) opt_dry_run=: ;;
  49295. + --features) func_features ;;
  49296. + --finish) mode="finish" ;;
  49297. +
  49298. + --mode) test "$#" -eq 0 && func_missing_arg "$opt" && break
  49299. + case $1 in
  49300. + # Valid mode arguments:
  49301. + clean) ;;
  49302. + compile) ;;
  49303. + execute) ;;
  49304. + finish) ;;
  49305. + install) ;;
  49306. + link) ;;
  49307. + relink) ;;
  49308. + uninstall) ;;
  49309. +
  49310. + # Catch anything else as an error
  49311. + *) func_error "invalid argument for $opt"
  49312. + exit_cmd=exit
  49313. + break
  49314. + ;;
  49315. + esac
  49316. - if test "$pic_mode" != no; then
  49317. - command="$base_compile $srcfile $pic_flag"
  49318. - else
  49319. - # Don't build PIC code
  49320. - command="$base_compile $srcfile"
  49321. - fi
  49322. + mode="$1"
  49323. + shift
  49324. + ;;
  49325. - if test ! -d "${xdir}$objdir"; then
  49326. - $show "$mkdir ${xdir}$objdir"
  49327. - $run $mkdir ${xdir}$objdir
  49328. - status=$?
  49329. - if test "$status" -ne 0 && test ! -d "${xdir}$objdir"; then
  49330. - exit $status
  49331. - fi
  49332. - fi
  49333. + --preserve-dup-deps)
  49334. + opt_duplicate_deps=: ;;
  49335. - if test -z "$output_obj"; then
  49336. - # Place PIC objects in $objdir
  49337. - command="$command -o $lobj"
  49338. - fi
  49339. + --quiet|--silent) preserve_args="$preserve_args $opt"
  49340. + opt_silent=:
  49341. + ;;
  49342. - $run $rm "$lobj" "$output_obj"
  49343. + --verbose| -v) preserve_args="$preserve_args $opt"
  49344. + opt_silent=false
  49345. + ;;
  49346. - $show "$command"
  49347. - if $run eval "$command"; then :
  49348. - else
  49349. - test -n "$output_obj" && $run $rm $removelist
  49350. - exit $EXIT_FAILURE
  49351. - fi
  49352. + --tag) test "$#" -eq 0 && func_missing_arg "$opt" && break
  49353. + preserve_args="$preserve_args $opt $1"
  49354. + func_enable_tag "$1" # tagname is set here
  49355. + shift
  49356. + ;;
  49357. - if test "$need_locks" = warn &&
  49358. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  49359. - $echo "\
  49360. -*** ERROR, $lockfile contains:
  49361. -`cat $lockfile 2>/dev/null`
  49362. + # Separate optargs to long options:
  49363. + -dlopen=*|--mode=*|--tag=*)
  49364. + func_opt_split "$opt"
  49365. + set dummy "$func_opt_split_opt" "$func_opt_split_arg" ${1+"$@"}
  49366. + shift
  49367. + ;;
  49368. -but it should contain:
  49369. -$srcfile
  49370. + -\?|-h) func_usage ;;
  49371. + --help) opt_help=: ;;
  49372. + --version) func_version ;;
  49373. -This indicates that another process is trying to use the same
  49374. -temporary object file, and libtool could not work around it because
  49375. -your compiler does not support \`-c' and \`-o' together. If you
  49376. -repeat this compilation, it may succeed, by chance, but you had better
  49377. -avoid parallel builds (make -j) in this platform, or get a better
  49378. -compiler."
  49379. + -*) func_fatal_help "unrecognized option \`$opt'" ;;
  49380. - $run $rm $removelist
  49381. - exit $EXIT_FAILURE
  49382. - fi
  49383. + *) nonopt="$opt"
  49384. + break
  49385. + ;;
  49386. + esac
  49387. + done
  49388. - # Just move the object if needed, then go on to compile the next one
  49389. - if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  49390. - $show "$mv $output_obj $lobj"
  49391. - if $run $mv $output_obj $lobj; then :
  49392. - else
  49393. - error=$?
  49394. - $run $rm $removelist
  49395. - exit $error
  49396. - fi
  49397. - fi
  49398. - # Append the name of the PIC object to the libtool object file.
  49399. - test -z "$run" && cat >> ${libobj}T <<EOF
  49400. -pic_object='$objdir/$objname'
  49401. + case $host in
  49402. + *cygwin* | *mingw* | *pw32* | *cegcc*)
  49403. + # don't eliminate duplications in $postdeps and $predeps
  49404. + opt_duplicate_compiler_generated_deps=:
  49405. + ;;
  49406. + *)
  49407. + opt_duplicate_compiler_generated_deps=$opt_duplicate_deps
  49408. + ;;
  49409. + esac
  49410. -EOF
  49411. + # Having warned about all mis-specified options, bail out if
  49412. + # anything was wrong.
  49413. + $exit_cmd $EXIT_FAILURE
  49414. +}
  49415. - # Allow error messages only from the first compilation.
  49416. - if test "$suppress_opt" = yes; then
  49417. - suppress_output=' >/dev/null 2>&1'
  49418. +# func_check_version_match
  49419. +# Ensure that we are using m4 macros, and libtool script from the same
  49420. +# release of libtool.
  49421. +func_check_version_match ()
  49422. +{
  49423. + if test "$package_revision" != "$macro_revision"; then
  49424. + if test "$VERSION" != "$macro_version"; then
  49425. + if test -z "$macro_version"; then
  49426. + cat >&2 <<_LT_EOF
  49427. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  49428. +$progname: definition of this LT_INIT comes from an older release.
  49429. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  49430. +$progname: and run autoconf again.
  49431. +_LT_EOF
  49432. + else
  49433. + cat >&2 <<_LT_EOF
  49434. +$progname: Version mismatch error. This is $PACKAGE $VERSION, but the
  49435. +$progname: definition of this LT_INIT comes from $PACKAGE $macro_version.
  49436. +$progname: You should recreate aclocal.m4 with macros from $PACKAGE $VERSION
  49437. +$progname: and run autoconf again.
  49438. +_LT_EOF
  49439. fi
  49440. else
  49441. - # No PIC object so indicate it doesn't exist in the libtool
  49442. - # object file.
  49443. - test -z "$run" && cat >> ${libobj}T <<EOF
  49444. -pic_object=none
  49445. -
  49446. -EOF
  49447. + cat >&2 <<_LT_EOF
  49448. +$progname: Version mismatch error. This is $PACKAGE $VERSION, revision $package_revision,
  49449. +$progname: but the definition of this LT_INIT comes from revision $macro_revision.
  49450. +$progname: You should recreate aclocal.m4 with macros from revision $package_revision
  49451. +$progname: of $PACKAGE $VERSION and run autoconf again.
  49452. +_LT_EOF
  49453. fi
  49454. - # Only build a position-dependent object if we build old libraries.
  49455. - if test "$build_old_libs" = yes; then
  49456. - if test "$pic_mode" != yes; then
  49457. - # Don't build PIC code
  49458. - command="$base_compile $srcfile"
  49459. - else
  49460. - command="$base_compile $srcfile $pic_flag"
  49461. - fi
  49462. - if test "$compiler_c_o" = yes; then
  49463. - command="$command -o $obj"
  49464. - fi
  49465. + exit $EXIT_MISMATCH
  49466. + fi
  49467. +}
  49468. - # Suppress compiler output if we already did a PIC compilation.
  49469. - command="$command$suppress_output"
  49470. - $run $rm "$obj" "$output_obj"
  49471. - $show "$command"
  49472. - if $run eval "$command"; then :
  49473. - else
  49474. - $run $rm $removelist
  49475. - exit $EXIT_FAILURE
  49476. - fi
  49477. - if test "$need_locks" = warn &&
  49478. - test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  49479. - $echo "\
  49480. -*** ERROR, $lockfile contains:
  49481. -`cat $lockfile 2>/dev/null`
  49482. +## ----------- ##
  49483. +## Main. ##
  49484. +## ----------- ##
  49485. +
  49486. +$opt_help || {
  49487. + # Sanity checks first:
  49488. + func_check_version_match
  49489. -but it should contain:
  49490. -$srcfile
  49491. + if test "$build_libtool_libs" != yes && test "$build_old_libs" != yes; then
  49492. + func_fatal_configuration "not configured to build any kind of library"
  49493. + fi
  49494. -This indicates that another process is trying to use the same
  49495. -temporary object file, and libtool could not work around it because
  49496. -your compiler does not support \`-c' and \`-o' together. If you
  49497. -repeat this compilation, it may succeed, by chance, but you had better
  49498. -avoid parallel builds (make -j) in this platform, or get a better
  49499. -compiler."
  49500. + test -z "$mode" && func_fatal_error "error: you must specify a MODE."
  49501. - $run $rm $removelist
  49502. - exit $EXIT_FAILURE
  49503. - fi
  49504. - # Just move the object if needed
  49505. - if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  49506. - $show "$mv $output_obj $obj"
  49507. - if $run $mv $output_obj $obj; then :
  49508. - else
  49509. - error=$?
  49510. - $run $rm $removelist
  49511. - exit $error
  49512. - fi
  49513. - fi
  49514. + # Darwin sucks
  49515. + eval std_shrext=\"$shrext_cmds\"
  49516. - # Append the name of the non-PIC object the libtool object file.
  49517. - # Only append if the libtool object file exists.
  49518. - test -z "$run" && cat >> ${libobj}T <<EOF
  49519. -# Name of the non-PIC object.
  49520. -non_pic_object='$objname'
  49521. -EOF
  49522. - else
  49523. - # Append the name of the non-PIC object the libtool object file.
  49524. - # Only append if the libtool object file exists.
  49525. - test -z "$run" && cat >> ${libobj}T <<EOF
  49526. -# Name of the non-PIC object.
  49527. -non_pic_object=none
  49528. + # Only execute mode is allowed to have -dlopen flags.
  49529. + if test -n "$execute_dlfiles" && test "$mode" != execute; then
  49530. + func_error "unrecognized option \`-dlopen'"
  49531. + $ECHO "$help" 1>&2
  49532. + exit $EXIT_FAILURE
  49533. + fi
  49534. -EOF
  49535. + # Change the help message to a mode-specific one.
  49536. + generic_help="$help"
  49537. + help="Try \`$progname --help --mode=$mode' for more information."
  49538. +}
  49539. +
  49540. +
  49541. +# func_lalib_p file
  49542. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  49543. +# This function is only a basic sanity check; it will hardly flush out
  49544. +# determined imposters.
  49545. +func_lalib_p ()
  49546. +{
  49547. + test -f "$1" &&
  49548. + $SED -e 4q "$1" 2>/dev/null \
  49549. + | $GREP "^# Generated by .*$PACKAGE" > /dev/null 2>&1
  49550. +}
  49551. +
  49552. +# func_lalib_unsafe_p file
  49553. +# True iff FILE is a libtool `.la' library or `.lo' object file.
  49554. +# This function implements the same check as func_lalib_p without
  49555. +# resorting to external programs. To this end, it redirects stdin and
  49556. +# closes it afterwards, without saving the original file descriptor.
  49557. +# As a safety measure, use it only where a negative result would be
  49558. +# fatal anyway. Works if `file' does not exist.
  49559. +func_lalib_unsafe_p ()
  49560. +{
  49561. + lalib_p=no
  49562. + if test -f "$1" && test -r "$1" && exec 5<&0 <"$1"; then
  49563. + for lalib_p_l in 1 2 3 4
  49564. + do
  49565. + read lalib_p_line
  49566. + case "$lalib_p_line" in
  49567. + \#\ Generated\ by\ *$PACKAGE* ) lalib_p=yes; break;;
  49568. + esac
  49569. + done
  49570. + exec 0<&5 5<&-
  49571. fi
  49572. + test "$lalib_p" = yes
  49573. +}
  49574. - $run $mv "${libobj}T" "${libobj}"
  49575. +# func_ltwrapper_script_p file
  49576. +# True iff FILE is a libtool wrapper script
  49577. +# This function is only a basic sanity check; it will hardly flush out
  49578. +# determined imposters.
  49579. +func_ltwrapper_script_p ()
  49580. +{
  49581. + func_lalib_p "$1"
  49582. +}
  49583. +
  49584. +# func_ltwrapper_executable_p file
  49585. +# True iff FILE is a libtool wrapper executable
  49586. +# This function is only a basic sanity check; it will hardly flush out
  49587. +# determined imposters.
  49588. +func_ltwrapper_executable_p ()
  49589. +{
  49590. + func_ltwrapper_exec_suffix=
  49591. + case $1 in
  49592. + *.exe) ;;
  49593. + *) func_ltwrapper_exec_suffix=.exe ;;
  49594. + esac
  49595. + $GREP "$magic_exe" "$1$func_ltwrapper_exec_suffix" >/dev/null 2>&1
  49596. +}
  49597. - # Unlock the critical section if it was locked
  49598. - if test "$need_locks" != no; then
  49599. - $run $rm "$lockfile"
  49600. +# func_ltwrapper_scriptname file
  49601. +# Assumes file is an ltwrapper_executable
  49602. +# uses $file to determine the appropriate filename for a
  49603. +# temporary ltwrapper_script.
  49604. +func_ltwrapper_scriptname ()
  49605. +{
  49606. + func_ltwrapper_scriptname_result=""
  49607. + if func_ltwrapper_executable_p "$1"; then
  49608. + func_dirname_and_basename "$1" "" "."
  49609. + func_stripname '' '.exe' "$func_basename_result"
  49610. + func_ltwrapper_scriptname_result="$func_dirname_result/$objdir/${func_stripname_result}_ltshwrapper"
  49611. fi
  49612. +}
  49613. - exit $EXIT_SUCCESS
  49614. - ;;
  49615. +# func_ltwrapper_p file
  49616. +# True iff FILE is a libtool wrapper script or wrapper executable
  49617. +# This function is only a basic sanity check; it will hardly flush out
  49618. +# determined imposters.
  49619. +func_ltwrapper_p ()
  49620. +{
  49621. + func_ltwrapper_script_p "$1" || func_ltwrapper_executable_p "$1"
  49622. +}
  49623. - # libtool link mode
  49624. - link | relink)
  49625. - modename="$modename: link"
  49626. - case $host in
  49627. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  49628. - # It is impossible to link a dll without this setting, and
  49629. - # we shouldn't force the makefile maintainer to figure out
  49630. - # which system we are compiling for in order to pass an extra
  49631. - # flag for every libtool invocation.
  49632. - # allow_undefined=no
  49633. - # FIXME: Unfortunately, there are problems with the above when trying
  49634. - # to make a dll which has undefined symbols, in which case not
  49635. - # even a static library is built. For now, we need to specify
  49636. - # -no-undefined on the libtool link line when we can be certain
  49637. - # that all symbols are satisfied, otherwise we get a static library.
  49638. - allow_undefined=yes
  49639. - ;;
  49640. - *)
  49641. - allow_undefined=yes
  49642. - ;;
  49643. - esac
  49644. - libtool_args="$nonopt"
  49645. - base_compile="$nonopt $@"
  49646. - compile_command="$nonopt"
  49647. - finalize_command="$nonopt"
  49648. +# func_execute_cmds commands fail_cmd
  49649. +# Execute tilde-delimited COMMANDS.
  49650. +# If FAIL_CMD is given, eval that upon failure.
  49651. +# FAIL_CMD may read-access the current command in variable CMD!
  49652. +func_execute_cmds ()
  49653. +{
  49654. + $opt_debug
  49655. + save_ifs=$IFS; IFS='~'
  49656. + for cmd in $1; do
  49657. + IFS=$save_ifs
  49658. + eval cmd=\"$cmd\"
  49659. + func_show_eval "$cmd" "${2-:}"
  49660. + done
  49661. + IFS=$save_ifs
  49662. +}
  49663. - compile_rpath=
  49664. - finalize_rpath=
  49665. - compile_shlibpath=
  49666. - finalize_shlibpath=
  49667. - convenience=
  49668. - old_convenience=
  49669. - deplibs=
  49670. - old_deplibs=
  49671. - compiler_flags=
  49672. - linker_flags=
  49673. - dllsearchpath=
  49674. - lib_search_path=`pwd`
  49675. - inst_prefix_dir=
  49676. - avoid_version=no
  49677. - dlfiles=
  49678. - dlprefiles=
  49679. - dlself=no
  49680. - export_dynamic=no
  49681. - export_symbols=
  49682. - export_symbols_regex=
  49683. - generated=
  49684. - libobjs=
  49685. - ltlibs=
  49686. - module=no
  49687. - no_install=no
  49688. - objs=
  49689. - non_pic_objects=
  49690. - precious_files_regex=
  49691. - prefer_static_libs=no
  49692. - preload=no
  49693. - prev=
  49694. - prevarg=
  49695. - release=
  49696. - rpath=
  49697. - xrpath=
  49698. - perm_rpath=
  49699. - temp_rpath=
  49700. - thread_safe=no
  49701. - vinfo=
  49702. - vinfo_number=no
  49703. +# func_source file
  49704. +# Source FILE, adding directory component if necessary.
  49705. +# Note that it is not necessary on cygwin/mingw to append a dot to
  49706. +# FILE even if both FILE and FILE.exe exist: automatic-append-.exe
  49707. +# behavior happens only for exec(3), not for open(2)! Also, sourcing
  49708. +# `FILE.' does not work on cygwin managed mounts.
  49709. +func_source ()
  49710. +{
  49711. + $opt_debug
  49712. + case $1 in
  49713. + */* | *\\*) . "$1" ;;
  49714. + *) . "./$1" ;;
  49715. + esac
  49716. +}
  49717. - func_infer_tag $base_compile
  49718. - # We need to know -static, to get the right output filenames.
  49719. - for arg
  49720. - do
  49721. - case $arg in
  49722. - -all-static | -static)
  49723. - if test "X$arg" = "X-all-static"; then
  49724. - if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  49725. - $echo "$modename: warning: complete static linking is impossible in this configuration" 1>&2
  49726. - fi
  49727. - if test -n "$link_static_flag"; then
  49728. - dlopen_self=$dlopen_self_static
  49729. - fi
  49730. - else
  49731. - if test -z "$pic_flag" && test -n "$link_static_flag"; then
  49732. - dlopen_self=$dlopen_self_static
  49733. +# func_infer_tag arg
  49734. +# Infer tagged configuration to use if any are available and
  49735. +# if one wasn't chosen via the "--tag" command line option.
  49736. +# Only attempt this if the compiler in the base compile
  49737. +# command doesn't match the default compiler.
  49738. +# arg is usually of the form 'gcc ...'
  49739. +func_infer_tag ()
  49740. +{
  49741. + $opt_debug
  49742. + if test -n "$available_tags" && test -z "$tagname"; then
  49743. + CC_quoted=
  49744. + for arg in $CC; do
  49745. + func_quote_for_eval "$arg"
  49746. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  49747. + done
  49748. + case $@ in
  49749. + # Blanks in the command may have been stripped by the calling shell,
  49750. + # but not from the CC environment variable when configure was run.
  49751. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*) ;;
  49752. + # Blanks at the start of $base_compile will cause this to fail
  49753. + # if we don't check for them as well.
  49754. + *)
  49755. + for z in $available_tags; do
  49756. + if $GREP "^# ### BEGIN LIBTOOL TAG CONFIG: $z$" < "$progpath" > /dev/null; then
  49757. + # Evaluate the configuration.
  49758. + eval "`${SED} -n -e '/^# ### BEGIN LIBTOOL TAG CONFIG: '$z'$/,/^# ### END LIBTOOL TAG CONFIG: '$z'$/p' < $progpath`"
  49759. + CC_quoted=
  49760. + for arg in $CC; do
  49761. + # Double-quote args containing other shell metacharacters.
  49762. + func_quote_for_eval "$arg"
  49763. + CC_quoted="$CC_quoted $func_quote_for_eval_result"
  49764. + done
  49765. + case "$@ " in
  49766. + " $CC "* | "$CC "* | " `$ECHO $CC` "* | "`$ECHO $CC` "* | " $CC_quoted"* | "$CC_quoted "* | " `$ECHO $CC_quoted` "* | "`$ECHO $CC_quoted` "*)
  49767. + # The compiler in the base compile command matches
  49768. + # the one in the tagged configuration.
  49769. + # Assume this is the tagged configuration we want.
  49770. + tagname=$z
  49771. + break
  49772. + ;;
  49773. + esac
  49774. fi
  49775. + done
  49776. + # If $tagname still isn't set, then no tagged configuration
  49777. + # was found and let the user know that the "--tag" command
  49778. + # line option must be used.
  49779. + if test -z "$tagname"; then
  49780. + func_echo "unable to infer tagged configuration"
  49781. + func_fatal_error "specify a tag with \`--tag'"
  49782. +# else
  49783. +# func_verbose "using $tagname tagged configuration"
  49784. fi
  49785. - build_libtool_libs=no
  49786. - build_old_libs=yes
  49787. - prefer_static_libs=yes
  49788. - break
  49789. ;;
  49790. esac
  49791. - done
  49792. + fi
  49793. +}
  49794. - # See if our shared archives depend on static archives.
  49795. - test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  49796. - # Go through the arguments, transforming them on the way.
  49797. - while test "$#" -gt 0; do
  49798. - arg="$1"
  49799. - shift
  49800. - case $arg in
  49801. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  49802. - qarg=\"`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`\" ### testsuite: skip nested quoting test
  49803. - ;;
  49804. - *) qarg=$arg ;;
  49805. - esac
  49806. - libtool_args="$libtool_args $qarg"
  49807. - # If the previous option needs an argument, assign it.
  49808. - if test -n "$prev"; then
  49809. - case $prev in
  49810. - output)
  49811. - compile_command="$compile_command @OUTPUT@"
  49812. - finalize_command="$finalize_command @OUTPUT@"
  49813. - ;;
  49814. - esac
  49815. +# func_write_libtool_object output_name pic_name nonpic_name
  49816. +# Create a libtool object file (analogous to a ".la" file),
  49817. +# but don't create it if we're doing a dry run.
  49818. +func_write_libtool_object ()
  49819. +{
  49820. + write_libobj=${1}
  49821. + if test "$build_libtool_libs" = yes; then
  49822. + write_lobj=\'${2}\'
  49823. + else
  49824. + write_lobj=none
  49825. + fi
  49826. - case $prev in
  49827. - dlfiles|dlprefiles)
  49828. - if test "$preload" = no; then
  49829. - # Add the symbol object into the linking commands.
  49830. - compile_command="$compile_command @SYMFILE@"
  49831. - finalize_command="$finalize_command @SYMFILE@"
  49832. - preload=yes
  49833. - fi
  49834. - case $arg in
  49835. - *.la | *.lo) ;; # We handle these cases below.
  49836. - force)
  49837. - if test "$dlself" = no; then
  49838. - dlself=needless
  49839. - export_dynamic=yes
  49840. - fi
  49841. - prev=
  49842. - continue
  49843. - ;;
  49844. - self)
  49845. - if test "$prev" = dlprefiles; then
  49846. - dlself=yes
  49847. - elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  49848. - dlself=yes
  49849. - else
  49850. - dlself=needless
  49851. - export_dynamic=yes
  49852. - fi
  49853. - prev=
  49854. - continue
  49855. - ;;
  49856. - *)
  49857. - if test "$prev" = dlfiles; then
  49858. - dlfiles="$dlfiles $arg"
  49859. - else
  49860. - dlprefiles="$dlprefiles $arg"
  49861. - fi
  49862. - prev=
  49863. - continue
  49864. - ;;
  49865. - esac
  49866. - ;;
  49867. - expsyms)
  49868. - export_symbols="$arg"
  49869. - if test ! -f "$arg"; then
  49870. - $echo "$modename: symbol file \`$arg' does not exist"
  49871. - exit $EXIT_FAILURE
  49872. - fi
  49873. - prev=
  49874. - continue
  49875. - ;;
  49876. - expsyms_regex)
  49877. - export_symbols_regex="$arg"
  49878. - prev=
  49879. - continue
  49880. - ;;
  49881. - inst_prefix)
  49882. - inst_prefix_dir="$arg"
  49883. - prev=
  49884. - continue
  49885. - ;;
  49886. - precious_regex)
  49887. - precious_files_regex="$arg"
  49888. - prev=
  49889. - continue
  49890. - ;;
  49891. - release)
  49892. - release="-$arg"
  49893. - prev=
  49894. - continue
  49895. - ;;
  49896. - objectlist)
  49897. - if test -f "$arg"; then
  49898. - save_arg=$arg
  49899. - moreargs=
  49900. - for fil in `cat $save_arg`
  49901. - do
  49902. -# moreargs="$moreargs $fil"
  49903. - arg=$fil
  49904. - # A libtool-controlled object.
  49905. -
  49906. - # Check to see that this really is a libtool object.
  49907. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  49908. - pic_object=
  49909. - non_pic_object=
  49910. -
  49911. - # Read the .lo file
  49912. - # If there is no directory component, then add one.
  49913. - case $arg in
  49914. - */* | *\\*) . $arg ;;
  49915. - *) . ./$arg ;;
  49916. - esac
  49917. -
  49918. - if test -z "$pic_object" || \
  49919. - test -z "$non_pic_object" ||
  49920. - test "$pic_object" = none && \
  49921. - test "$non_pic_object" = none; then
  49922. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  49923. - exit $EXIT_FAILURE
  49924. - fi
  49925. -
  49926. - # Extract subdirectory from the argument.
  49927. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  49928. - if test "X$xdir" = "X$arg"; then
  49929. - xdir=
  49930. - else
  49931. - xdir="$xdir/"
  49932. - fi
  49933. + if test "$build_old_libs" = yes; then
  49934. + write_oldobj=\'${3}\'
  49935. + else
  49936. + write_oldobj=none
  49937. + fi
  49938. - if test "$pic_object" != none; then
  49939. - # Prepend the subdirectory the object is found in.
  49940. - pic_object="$xdir$pic_object"
  49941. + $opt_dry_run || {
  49942. + cat >${write_libobj}T <<EOF
  49943. +# $write_libobj - a libtool object file
  49944. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  49945. +#
  49946. +# Please DO NOT delete this file!
  49947. +# It is necessary for linking the library.
  49948. - if test "$prev" = dlfiles; then
  49949. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  49950. - dlfiles="$dlfiles $pic_object"
  49951. - prev=
  49952. - continue
  49953. - else
  49954. - # If libtool objects are unsupported, then we need to preload.
  49955. - prev=dlprefiles
  49956. - fi
  49957. - fi
  49958. +# Name of the PIC object.
  49959. +pic_object=$write_lobj
  49960. - # CHECK ME: I think I busted this. -Ossama
  49961. - if test "$prev" = dlprefiles; then
  49962. - # Preload the old-style object.
  49963. - dlprefiles="$dlprefiles $pic_object"
  49964. - prev=
  49965. - fi
  49966. +# Name of the non-PIC object
  49967. +non_pic_object=$write_oldobj
  49968. - # A PIC object.
  49969. - libobjs="$libobjs $pic_object"
  49970. - arg="$pic_object"
  49971. - fi
  49972. +EOF
  49973. + $MV "${write_libobj}T" "${write_libobj}"
  49974. + }
  49975. +}
  49976. - # Non-PIC object.
  49977. - if test "$non_pic_object" != none; then
  49978. - # Prepend the subdirectory the object is found in.
  49979. - non_pic_object="$xdir$non_pic_object"
  49980. +# func_mode_compile arg...
  49981. +func_mode_compile ()
  49982. +{
  49983. + $opt_debug
  49984. + # Get the compilation command and the source file.
  49985. + base_compile=
  49986. + srcfile="$nonopt" # always keep a non-empty value in "srcfile"
  49987. + suppress_opt=yes
  49988. + suppress_output=
  49989. + arg_mode=normal
  49990. + libobj=
  49991. + later=
  49992. + pie_flag=
  49993. - # A standard non-PIC object
  49994. - non_pic_objects="$non_pic_objects $non_pic_object"
  49995. - if test -z "$pic_object" || test "$pic_object" = none ; then
  49996. - arg="$non_pic_object"
  49997. - fi
  49998. - fi
  49999. - else
  50000. - # Only an error if not doing a dry-run.
  50001. - if test -z "$run"; then
  50002. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  50003. - exit $EXIT_FAILURE
  50004. - else
  50005. - # Dry-run case.
  50006. + for arg
  50007. + do
  50008. + case $arg_mode in
  50009. + arg )
  50010. + # do not "continue". Instead, add this to base_compile
  50011. + lastarg="$arg"
  50012. + arg_mode=normal
  50013. + ;;
  50014. - # Extract subdirectory from the argument.
  50015. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50016. - if test "X$xdir" = "X$arg"; then
  50017. - xdir=
  50018. - else
  50019. - xdir="$xdir/"
  50020. - fi
  50021. + target )
  50022. + libobj="$arg"
  50023. + arg_mode=normal
  50024. + continue
  50025. + ;;
  50026. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  50027. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  50028. - libobjs="$libobjs $pic_object"
  50029. - non_pic_objects="$non_pic_objects $non_pic_object"
  50030. - fi
  50031. - fi
  50032. - done
  50033. - else
  50034. - $echo "$modename: link input file \`$save_arg' does not exist"
  50035. - exit $EXIT_FAILURE
  50036. - fi
  50037. - arg=$save_arg
  50038. - prev=
  50039. - continue
  50040. - ;;
  50041. - rpath | xrpath)
  50042. - # We need an absolute path.
  50043. - case $arg in
  50044. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  50045. - *)
  50046. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  50047. - exit $EXIT_FAILURE
  50048. - ;;
  50049. - esac
  50050. - if test "$prev" = rpath; then
  50051. - case "$rpath " in
  50052. - *" $arg "*) ;;
  50053. - *) rpath="$rpath $arg" ;;
  50054. - esac
  50055. - else
  50056. - case "$xrpath " in
  50057. - *" $arg "*) ;;
  50058. - *) xrpath="$xrpath $arg" ;;
  50059. - esac
  50060. - fi
  50061. - prev=
  50062. + normal )
  50063. + # Accept any command-line options.
  50064. + case $arg in
  50065. + -o)
  50066. + test -n "$libobj" && \
  50067. + func_fatal_error "you cannot specify \`-o' more than once"
  50068. + arg_mode=target
  50069. continue
  50070. ;;
  50071. - xcompiler)
  50072. - compiler_flags="$compiler_flags $qarg"
  50073. - prev=
  50074. - compile_command="$compile_command $qarg"
  50075. - finalize_command="$finalize_command $qarg"
  50076. +
  50077. + -pie | -fpie | -fPIE)
  50078. + pie_flag="$pie_flag $arg"
  50079. continue
  50080. ;;
  50081. - xlinker)
  50082. - linker_flags="$linker_flags $qarg"
  50083. - compiler_flags="$compiler_flags $wl$qarg"
  50084. - prev=
  50085. - compile_command="$compile_command $wl$qarg"
  50086. - finalize_command="$finalize_command $wl$qarg"
  50087. +
  50088. + -shared | -static | -prefer-pic | -prefer-non-pic)
  50089. + later="$later $arg"
  50090. continue
  50091. ;;
  50092. - xcclinker)
  50093. - linker_flags="$linker_flags $qarg"
  50094. - compiler_flags="$compiler_flags $qarg"
  50095. - prev=
  50096. - compile_command="$compile_command $qarg"
  50097. - finalize_command="$finalize_command $qarg"
  50098. +
  50099. + -no-suppress)
  50100. + suppress_opt=no
  50101. continue
  50102. ;;
  50103. - shrext)
  50104. - shrext_cmds="$arg"
  50105. - prev=
  50106. +
  50107. + -Xcompiler)
  50108. + arg_mode=arg # the next one goes into the "base_compile" arg list
  50109. + continue # The current "srcfile" will either be retained or
  50110. + ;; # replaced later. I would guess that would be a bug.
  50111. +
  50112. + -Wc,*)
  50113. + func_stripname '-Wc,' '' "$arg"
  50114. + args=$func_stripname_result
  50115. + lastarg=
  50116. + save_ifs="$IFS"; IFS=','
  50117. + for arg in $args; do
  50118. + IFS="$save_ifs"
  50119. + func_quote_for_eval "$arg"
  50120. + lastarg="$lastarg $func_quote_for_eval_result"
  50121. + done
  50122. + IFS="$save_ifs"
  50123. + func_stripname ' ' '' "$lastarg"
  50124. + lastarg=$func_stripname_result
  50125. +
  50126. + # Add the arguments to base_compile.
  50127. + base_compile="$base_compile $lastarg"
  50128. continue
  50129. ;;
  50130. +
  50131. *)
  50132. - eval "$prev=\"\$arg\""
  50133. - prev=
  50134. - continue
  50135. + # Accept the current argument as the source file.
  50136. + # The previous "srcfile" becomes the current argument.
  50137. + #
  50138. + lastarg="$srcfile"
  50139. + srcfile="$arg"
  50140. ;;
  50141. - esac
  50142. - fi # test -n "$prev"
  50143. -
  50144. - prevarg="$arg"
  50145. -
  50146. - case $arg in
  50147. - -all-static)
  50148. - if test -n "$link_static_flag"; then
  50149. - compile_command="$compile_command $link_static_flag"
  50150. - finalize_command="$finalize_command $link_static_flag"
  50151. - fi
  50152. - continue
  50153. - ;;
  50154. -
  50155. - -allow-undefined)
  50156. - # FIXME: remove this flag sometime in the future.
  50157. - $echo "$modename: \`-allow-undefined' is deprecated because it is the default" 1>&2
  50158. - continue
  50159. + esac # case $arg
  50160. ;;
  50161. + esac # case $arg_mode
  50162. - -avoid-version)
  50163. - avoid_version=yes
  50164. - continue
  50165. - ;;
  50166. + # Aesthetically quote the previous argument.
  50167. + func_quote_for_eval "$lastarg"
  50168. + base_compile="$base_compile $func_quote_for_eval_result"
  50169. + done # for arg
  50170. - -dlopen)
  50171. - prev=dlfiles
  50172. - continue
  50173. - ;;
  50174. + case $arg_mode in
  50175. + arg)
  50176. + func_fatal_error "you must specify an argument for -Xcompile"
  50177. + ;;
  50178. + target)
  50179. + func_fatal_error "you must specify a target with \`-o'"
  50180. + ;;
  50181. + *)
  50182. + # Get the name of the library object.
  50183. + test -z "$libobj" && {
  50184. + func_basename "$srcfile"
  50185. + libobj="$func_basename_result"
  50186. + }
  50187. + ;;
  50188. + esac
  50189. - -dlpreopen)
  50190. - prev=dlprefiles
  50191. - continue
  50192. - ;;
  50193. + # Recognize several different file suffixes.
  50194. + # If the user specifies -o file.o, it is replaced with file.lo
  50195. + case $libobj in
  50196. + *.[cCFSifmso] | \
  50197. + *.ada | *.adb | *.ads | *.asm | \
  50198. + *.c++ | *.cc | *.ii | *.class | *.cpp | *.cxx | \
  50199. + *.[fF][09]? | *.for | *.java | *.obj | *.sx)
  50200. + func_xform "$libobj"
  50201. + libobj=$func_xform_result
  50202. + ;;
  50203. + esac
  50204. - -export-dynamic)
  50205. - export_dynamic=yes
  50206. - continue
  50207. - ;;
  50208. + case $libobj in
  50209. + *.lo) func_lo2o "$libobj"; obj=$func_lo2o_result ;;
  50210. + *)
  50211. + func_fatal_error "cannot determine name of library object from \`$libobj'"
  50212. + ;;
  50213. + esac
  50214. - -export-symbols | -export-symbols-regex)
  50215. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  50216. - $echo "$modename: more than one -exported-symbols argument is not allowed"
  50217. - exit $EXIT_FAILURE
  50218. - fi
  50219. - if test "X$arg" = "X-export-symbols"; then
  50220. - prev=expsyms
  50221. - else
  50222. - prev=expsyms_regex
  50223. - fi
  50224. - continue
  50225. - ;;
  50226. + func_infer_tag $base_compile
  50227. - -inst-prefix-dir)
  50228. - prev=inst_prefix
  50229. + for arg in $later; do
  50230. + case $arg in
  50231. + -shared)
  50232. + test "$build_libtool_libs" != yes && \
  50233. + func_fatal_configuration "can not build a shared library"
  50234. + build_old_libs=no
  50235. continue
  50236. ;;
  50237. - # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  50238. - # so, if we see these flags be careful not to treat them like -L
  50239. - -L[A-Z][A-Z]*:*)
  50240. - case $with_gcc/$host in
  50241. - no/*-*-irix* | /*-*-irix*)
  50242. - compile_command="$compile_command $arg"
  50243. - finalize_command="$finalize_command $arg"
  50244. - ;;
  50245. - esac
  50246. + -static)
  50247. + build_libtool_libs=no
  50248. + build_old_libs=yes
  50249. continue
  50250. ;;
  50251. - -L*)
  50252. - dir=`$echo "X$arg" | $Xsed -e 's/^-L//'`
  50253. - # We need an absolute path.
  50254. - case $dir in
  50255. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  50256. - *)
  50257. - absdir=`cd "$dir" && pwd`
  50258. - if test -z "$absdir"; then
  50259. - $echo "$modename: cannot determine absolute directory name of \`$dir'" 1>&2
  50260. - exit $EXIT_FAILURE
  50261. - fi
  50262. - dir="$absdir"
  50263. - ;;
  50264. - esac
  50265. - case "$deplibs " in
  50266. - *" -L$dir "*) ;;
  50267. - *)
  50268. - deplibs="$deplibs -L$dir"
  50269. - lib_search_path="$lib_search_path $dir"
  50270. - ;;
  50271. - esac
  50272. - case $host in
  50273. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  50274. - case :$dllsearchpath: in
  50275. - *":$dir:"*) ;;
  50276. - *) dllsearchpath="$dllsearchpath:$dir";;
  50277. - esac
  50278. - ;;
  50279. - esac
  50280. + -prefer-pic)
  50281. + pic_mode=yes
  50282. continue
  50283. ;;
  50284. - -l*)
  50285. - if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  50286. - case $host in
  50287. - *-*-cygwin* | *-*-pw32* | *-*-beos*)
  50288. - # These systems don't actually have a C or math library (as such)
  50289. - continue
  50290. - ;;
  50291. - *-*-mingw* | *-*-os2*)
  50292. - # These systems don't actually have a C library (as such)
  50293. - test "X$arg" = "X-lc" && continue
  50294. - ;;
  50295. - *-*-openbsd* | *-*-freebsd*)
  50296. - # Do not include libc due to us having libc/libc_r.
  50297. - test "X$arg" = "X-lc" && continue
  50298. - ;;
  50299. - *-*-rhapsody* | *-*-darwin1.[012])
  50300. - # Rhapsody C and math libraries are in the System framework
  50301. - deplibs="$deplibs -framework System"
  50302. - continue
  50303. - esac
  50304. - elif test "X$arg" = "X-lc_r"; then
  50305. - case $host in
  50306. - *-*-openbsd* | *-*-freebsd*)
  50307. - # Do not include libc_r directly, use -pthread flag.
  50308. - continue
  50309. - ;;
  50310. - esac
  50311. - fi
  50312. - deplibs="$deplibs $arg"
  50313. + -prefer-non-pic)
  50314. + pic_mode=no
  50315. continue
  50316. ;;
  50317. + esac
  50318. + done
  50319. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  50320. - deplibs="$deplibs $arg"
  50321. - continue
  50322. - ;;
  50323. + func_quote_for_eval "$libobj"
  50324. + test "X$libobj" != "X$func_quote_for_eval_result" \
  50325. + && $ECHO "X$libobj" | $GREP '[]~#^*{};<>?"'"'"' &()|`$[]' \
  50326. + && func_warning "libobj name \`$libobj' may not contain shell special characters."
  50327. + func_dirname_and_basename "$obj" "/" ""
  50328. + objname="$func_basename_result"
  50329. + xdir="$func_dirname_result"
  50330. + lobj=${xdir}$objdir/$objname
  50331. - -module)
  50332. - module=yes
  50333. - continue
  50334. - ;;
  50335. + test -z "$base_compile" && \
  50336. + func_fatal_help "you must specify a compilation command"
  50337. - # gcc -m* arguments should be passed to the linker via $compiler_flags
  50338. - # in order to pass architecture information to the linker
  50339. - # (e.g. 32 vs 64-bit). This may also be accomplished via -Wl,-mfoo
  50340. - # but this is not reliable with gcc because gcc may use -mfoo to
  50341. - # select a different linker, different libraries, etc, while
  50342. - # -Wl,-mfoo simply passes -mfoo to the linker.
  50343. - -m*)
  50344. - # Unknown arguments in both finalize_command and compile_command need
  50345. - # to be aesthetically quoted because they are evaled later.
  50346. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50347. - case $arg in
  50348. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50349. - arg="\"$arg\""
  50350. - ;;
  50351. - esac
  50352. - compile_command="$compile_command $arg"
  50353. - finalize_command="$finalize_command $arg"
  50354. - if test "$with_gcc" = "yes" ; then
  50355. - compiler_flags="$compiler_flags $arg"
  50356. - fi
  50357. - continue
  50358. - ;;
  50359. + # Delete any leftover library objects.
  50360. + if test "$build_old_libs" = yes; then
  50361. + removelist="$obj $lobj $libobj ${libobj}T"
  50362. + else
  50363. + removelist="$lobj $libobj ${libobj}T"
  50364. + fi
  50365. - -shrext)
  50366. - prev=shrext
  50367. - continue
  50368. - ;;
  50369. + # On Cygwin there's no "real" PIC flag so we must build both object types
  50370. + case $host_os in
  50371. + cygwin* | mingw* | pw32* | os2* | cegcc*)
  50372. + pic_mode=default
  50373. + ;;
  50374. + esac
  50375. + if test "$pic_mode" = no && test "$deplibs_check_method" != pass_all; then
  50376. + # non-PIC code in shared libraries is not supported
  50377. + pic_mode=default
  50378. + fi
  50379. - -no-fast-install)
  50380. - fast_install=no
  50381. - continue
  50382. - ;;
  50383. + # Calculate the filename of the output object if compiler does
  50384. + # not support -o with -c
  50385. + if test "$compiler_c_o" = no; then
  50386. + output_obj=`$ECHO "X$srcfile" | $Xsed -e 's%^.*/%%' -e 's%\.[^.]*$%%'`.${objext}
  50387. + lockfile="$output_obj.lock"
  50388. + else
  50389. + output_obj=
  50390. + need_locks=no
  50391. + lockfile=
  50392. + fi
  50393. - -no-install)
  50394. - case $host in
  50395. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  50396. - # The PATH hackery in wrapper scripts is required on Windows
  50397. - # in order for the loader to find any dlls it needs.
  50398. - $echo "$modename: warning: \`-no-install' is ignored for $host" 1>&2
  50399. - $echo "$modename: warning: assuming \`-no-fast-install' instead" 1>&2
  50400. - fast_install=no
  50401. - ;;
  50402. - *) no_install=yes ;;
  50403. - esac
  50404. - continue
  50405. - ;;
  50406. + # Lock this critical section if it is needed
  50407. + # We use this script file to make the link, it avoids creating a new file
  50408. + if test "$need_locks" = yes; then
  50409. + until $opt_dry_run || ln "$progpath" "$lockfile" 2>/dev/null; do
  50410. + func_echo "Waiting for $lockfile to be removed"
  50411. + sleep 2
  50412. + done
  50413. + elif test "$need_locks" = warn; then
  50414. + if test -f "$lockfile"; then
  50415. + $ECHO "\
  50416. +*** ERROR, $lockfile exists and contains:
  50417. +`cat $lockfile 2>/dev/null`
  50418. - -no-undefined)
  50419. - allow_undefined=no
  50420. - continue
  50421. - ;;
  50422. +This indicates that another process is trying to use the same
  50423. +temporary object file, and libtool could not work around it because
  50424. +your compiler does not support \`-c' and \`-o' together. If you
  50425. +repeat this compilation, it may succeed, by chance, but you had better
  50426. +avoid parallel builds (make -j) in this platform, or get a better
  50427. +compiler."
  50428. - -objectlist)
  50429. - prev=objectlist
  50430. - continue
  50431. - ;;
  50432. + $opt_dry_run || $RM $removelist
  50433. + exit $EXIT_FAILURE
  50434. + fi
  50435. + removelist="$removelist $output_obj"
  50436. + $ECHO "$srcfile" > "$lockfile"
  50437. + fi
  50438. - -o) prev=output ;;
  50439. + $opt_dry_run || $RM $removelist
  50440. + removelist="$removelist $lockfile"
  50441. + trap '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE' 1 2 15
  50442. - -precious-files-regex)
  50443. - prev=precious_regex
  50444. - continue
  50445. - ;;
  50446. + if test -n "$fix_srcfile_path"; then
  50447. + eval srcfile=\"$fix_srcfile_path\"
  50448. + fi
  50449. + func_quote_for_eval "$srcfile"
  50450. + qsrcfile=$func_quote_for_eval_result
  50451. - -release)
  50452. - prev=release
  50453. - continue
  50454. - ;;
  50455. + # Only build a PIC object if we are building libtool libraries.
  50456. + if test "$build_libtool_libs" = yes; then
  50457. + # Without this assignment, base_compile gets emptied.
  50458. + fbsd_hideous_sh_bug=$base_compile
  50459. - -rpath)
  50460. - prev=rpath
  50461. - continue
  50462. - ;;
  50463. + if test "$pic_mode" != no; then
  50464. + command="$base_compile $qsrcfile $pic_flag"
  50465. + else
  50466. + # Don't build PIC code
  50467. + command="$base_compile $qsrcfile"
  50468. + fi
  50469. - -R)
  50470. - prev=xrpath
  50471. - continue
  50472. - ;;
  50473. + func_mkdir_p "$xdir$objdir"
  50474. - -R*)
  50475. - dir=`$echo "X$arg" | $Xsed -e 's/^-R//'`
  50476. - # We need an absolute path.
  50477. - case $dir in
  50478. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  50479. - *)
  50480. - $echo "$modename: only absolute run-paths are allowed" 1>&2
  50481. - exit $EXIT_FAILURE
  50482. - ;;
  50483. - esac
  50484. - case "$xrpath " in
  50485. - *" $dir "*) ;;
  50486. - *) xrpath="$xrpath $dir" ;;
  50487. - esac
  50488. - continue
  50489. - ;;
  50490. + if test -z "$output_obj"; then
  50491. + # Place PIC objects in $objdir
  50492. + command="$command -o $lobj"
  50493. + fi
  50494. - -static)
  50495. - # The effects of -static are defined in a previous loop.
  50496. - # We used to do the same as -all-static on platforms that
  50497. - # didn't have a PIC flag, but the assumption that the effects
  50498. - # would be equivalent was wrong. It would break on at least
  50499. - # Digital Unix and AIX.
  50500. - continue
  50501. - ;;
  50502. + func_show_eval_locale "$command" \
  50503. + 'test -n "$output_obj" && $RM $removelist; exit $EXIT_FAILURE'
  50504. - -thread-safe)
  50505. - thread_safe=yes
  50506. - continue
  50507. - ;;
  50508. + if test "$need_locks" = warn &&
  50509. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  50510. + $ECHO "\
  50511. +*** ERROR, $lockfile contains:
  50512. +`cat $lockfile 2>/dev/null`
  50513. - -version-info)
  50514. - prev=vinfo
  50515. - continue
  50516. - ;;
  50517. - -version-number)
  50518. - prev=vinfo
  50519. - vinfo_number=yes
  50520. - continue
  50521. - ;;
  50522. +but it should contain:
  50523. +$srcfile
  50524. - -Wc,*)
  50525. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wc,//'`
  50526. - arg=
  50527. - save_ifs="$IFS"; IFS=','
  50528. - for flag in $args; do
  50529. - IFS="$save_ifs"
  50530. - case $flag in
  50531. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50532. - flag="\"$flag\""
  50533. - ;;
  50534. - esac
  50535. - arg="$arg $wl$flag"
  50536. - compiler_flags="$compiler_flags $flag"
  50537. - done
  50538. - IFS="$save_ifs"
  50539. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  50540. - ;;
  50541. +This indicates that another process is trying to use the same
  50542. +temporary object file, and libtool could not work around it because
  50543. +your compiler does not support \`-c' and \`-o' together. If you
  50544. +repeat this compilation, it may succeed, by chance, but you had better
  50545. +avoid parallel builds (make -j) in this platform, or get a better
  50546. +compiler."
  50547. - -Wl,*)
  50548. - args=`$echo "X$arg" | $Xsed -e "$sed_quote_subst" -e 's/^-Wl,//'`
  50549. - arg=
  50550. - save_ifs="$IFS"; IFS=','
  50551. - for flag in $args; do
  50552. - IFS="$save_ifs"
  50553. - case $flag in
  50554. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50555. - flag="\"$flag\""
  50556. - ;;
  50557. - esac
  50558. - arg="$arg $wl$flag"
  50559. - compiler_flags="$compiler_flags $wl$flag"
  50560. - linker_flags="$linker_flags $flag"
  50561. - done
  50562. - IFS="$save_ifs"
  50563. - arg=`$echo "X$arg" | $Xsed -e "s/^ //"`
  50564. - ;;
  50565. + $opt_dry_run || $RM $removelist
  50566. + exit $EXIT_FAILURE
  50567. + fi
  50568. - -Xcompiler)
  50569. - prev=xcompiler
  50570. - continue
  50571. - ;;
  50572. + # Just move the object if needed, then go on to compile the next one
  50573. + if test -n "$output_obj" && test "X$output_obj" != "X$lobj"; then
  50574. + func_show_eval '$MV "$output_obj" "$lobj"' \
  50575. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  50576. + fi
  50577. - -Xlinker)
  50578. - prev=xlinker
  50579. - continue
  50580. - ;;
  50581. + # Allow error messages only from the first compilation.
  50582. + if test "$suppress_opt" = yes; then
  50583. + suppress_output=' >/dev/null 2>&1'
  50584. + fi
  50585. + fi
  50586. - -XCClinker)
  50587. - prev=xcclinker
  50588. - continue
  50589. - ;;
  50590. + # Only build a position-dependent object if we build old libraries.
  50591. + if test "$build_old_libs" = yes; then
  50592. + if test "$pic_mode" != yes; then
  50593. + # Don't build PIC code
  50594. + command="$base_compile $qsrcfile$pie_flag"
  50595. + else
  50596. + command="$base_compile $qsrcfile $pic_flag"
  50597. + fi
  50598. + if test "$compiler_c_o" = yes; then
  50599. + command="$command -o $obj"
  50600. + fi
  50601. - # Some other compiler flag.
  50602. - -* | +*)
  50603. - # Unknown arguments in both finalize_command and compile_command need
  50604. - # to be aesthetically quoted because they are evaled later.
  50605. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50606. - case $arg in
  50607. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50608. - arg="\"$arg\""
  50609. - ;;
  50610. - esac
  50611. - ;;
  50612. + # Suppress compiler output if we already did a PIC compilation.
  50613. + command="$command$suppress_output"
  50614. + func_show_eval_locale "$command" \
  50615. + '$opt_dry_run || $RM $removelist; exit $EXIT_FAILURE'
  50616. - *.$objext)
  50617. - # A standard object.
  50618. - objs="$objs $arg"
  50619. - ;;
  50620. + if test "$need_locks" = warn &&
  50621. + test "X`cat $lockfile 2>/dev/null`" != "X$srcfile"; then
  50622. + $ECHO "\
  50623. +*** ERROR, $lockfile contains:
  50624. +`cat $lockfile 2>/dev/null`
  50625. - *.lo)
  50626. - # A libtool-controlled object.
  50627. +but it should contain:
  50628. +$srcfile
  50629. - # Check to see that this really is a libtool object.
  50630. - if (${SED} -e '2q' $arg | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  50631. - pic_object=
  50632. - non_pic_object=
  50633. +This indicates that another process is trying to use the same
  50634. +temporary object file, and libtool could not work around it because
  50635. +your compiler does not support \`-c' and \`-o' together. If you
  50636. +repeat this compilation, it may succeed, by chance, but you had better
  50637. +avoid parallel builds (make -j) in this platform, or get a better
  50638. +compiler."
  50639. - # Read the .lo file
  50640. - # If there is no directory component, then add one.
  50641. - case $arg in
  50642. - */* | *\\*) . $arg ;;
  50643. - *) . ./$arg ;;
  50644. - esac
  50645. + $opt_dry_run || $RM $removelist
  50646. + exit $EXIT_FAILURE
  50647. + fi
  50648. - if test -z "$pic_object" || \
  50649. - test -z "$non_pic_object" ||
  50650. - test "$pic_object" = none && \
  50651. - test "$non_pic_object" = none; then
  50652. - $echo "$modename: cannot find name of object for \`$arg'" 1>&2
  50653. - exit $EXIT_FAILURE
  50654. - fi
  50655. + # Just move the object if needed
  50656. + if test -n "$output_obj" && test "X$output_obj" != "X$obj"; then
  50657. + func_show_eval '$MV "$output_obj" "$obj"' \
  50658. + 'error=$?; $opt_dry_run || $RM $removelist; exit $error'
  50659. + fi
  50660. + fi
  50661. - # Extract subdirectory from the argument.
  50662. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50663. - if test "X$xdir" = "X$arg"; then
  50664. - xdir=
  50665. - else
  50666. - xdir="$xdir/"
  50667. - fi
  50668. + $opt_dry_run || {
  50669. + func_write_libtool_object "$libobj" "$objdir/$objname" "$objname"
  50670. - if test "$pic_object" != none; then
  50671. - # Prepend the subdirectory the object is found in.
  50672. - pic_object="$xdir$pic_object"
  50673. + # Unlock the critical section if it was locked
  50674. + if test "$need_locks" != no; then
  50675. + removelist=$lockfile
  50676. + $RM "$lockfile"
  50677. + fi
  50678. + }
  50679. - if test "$prev" = dlfiles; then
  50680. - if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  50681. - dlfiles="$dlfiles $pic_object"
  50682. - prev=
  50683. - continue
  50684. - else
  50685. - # If libtool objects are unsupported, then we need to preload.
  50686. - prev=dlprefiles
  50687. - fi
  50688. - fi
  50689. + exit $EXIT_SUCCESS
  50690. +}
  50691. - # CHECK ME: I think I busted this. -Ossama
  50692. - if test "$prev" = dlprefiles; then
  50693. - # Preload the old-style object.
  50694. - dlprefiles="$dlprefiles $pic_object"
  50695. - prev=
  50696. - fi
  50697. +$opt_help || {
  50698. +test "$mode" = compile && func_mode_compile ${1+"$@"}
  50699. +}
  50700. - # A PIC object.
  50701. - libobjs="$libobjs $pic_object"
  50702. - arg="$pic_object"
  50703. - fi
  50704. +func_mode_help ()
  50705. +{
  50706. + # We need to display help for each of the modes.
  50707. + case $mode in
  50708. + "")
  50709. + # Generic help is extracted from the usage comments
  50710. + # at the start of this file.
  50711. + func_help
  50712. + ;;
  50713. - # Non-PIC object.
  50714. - if test "$non_pic_object" != none; then
  50715. - # Prepend the subdirectory the object is found in.
  50716. - non_pic_object="$xdir$non_pic_object"
  50717. + clean)
  50718. + $ECHO \
  50719. +"Usage: $progname [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  50720. - # A standard non-PIC object
  50721. - non_pic_objects="$non_pic_objects $non_pic_object"
  50722. - if test -z "$pic_object" || test "$pic_object" = none ; then
  50723. - arg="$non_pic_object"
  50724. - fi
  50725. - fi
  50726. - else
  50727. - # Only an error if not doing a dry-run.
  50728. - if test -z "$run"; then
  50729. - $echo "$modename: \`$arg' is not a valid libtool object" 1>&2
  50730. - exit $EXIT_FAILURE
  50731. - else
  50732. - # Dry-run case.
  50733. +Remove files from the build directory.
  50734. - # Extract subdirectory from the argument.
  50735. - xdir=`$echo "X$arg" | $Xsed -e 's%/[^/]*$%%'`
  50736. - if test "X$xdir" = "X$arg"; then
  50737. - xdir=
  50738. - else
  50739. - xdir="$xdir/"
  50740. - fi
  50741. +RM is the name of the program to use to delete files associated with each FILE
  50742. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  50743. +to RM.
  50744. - pic_object=`$echo "X${xdir}${objdir}/${arg}" | $Xsed -e "$lo2o"`
  50745. - non_pic_object=`$echo "X${xdir}${arg}" | $Xsed -e "$lo2o"`
  50746. - libobjs="$libobjs $pic_object"
  50747. - non_pic_objects="$non_pic_objects $non_pic_object"
  50748. - fi
  50749. - fi
  50750. - ;;
  50751. +If FILE is a libtool library, object or program, all the files associated
  50752. +with it are deleted. Otherwise, only FILE itself is deleted using RM."
  50753. + ;;
  50754. - *.$libext)
  50755. - # An archive.
  50756. - deplibs="$deplibs $arg"
  50757. - old_deplibs="$old_deplibs $arg"
  50758. - continue
  50759. - ;;
  50760. + compile)
  50761. + $ECHO \
  50762. +"Usage: $progname [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  50763. - *.la)
  50764. - # A libtool-controlled library.
  50765. +Compile a source file into a libtool library object.
  50766. - if test "$prev" = dlfiles; then
  50767. - # This library was specified with -dlopen.
  50768. - dlfiles="$dlfiles $arg"
  50769. - prev=
  50770. - elif test "$prev" = dlprefiles; then
  50771. - # The library was specified with -dlpreopen.
  50772. - dlprefiles="$dlprefiles $arg"
  50773. - prev=
  50774. - else
  50775. - deplibs="$deplibs $arg"
  50776. - fi
  50777. - continue
  50778. - ;;
  50779. +This mode accepts the following additional options:
  50780. - # Some other compiler argument.
  50781. - *)
  50782. - # Unknown arguments in both finalize_command and compile_command need
  50783. - # to be aesthetically quoted because they are evaled later.
  50784. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  50785. - case $arg in
  50786. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*|"")
  50787. - arg="\"$arg\""
  50788. - ;;
  50789. - esac
  50790. - ;;
  50791. - esac # arg
  50792. + -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  50793. + -no-suppress do not suppress compiler output for multiple passes
  50794. + -prefer-pic try to building PIC objects only
  50795. + -prefer-non-pic try to building non-PIC objects only
  50796. + -shared do not build a \`.o' file suitable for static linking
  50797. + -static only build a \`.o' file suitable for static linking
  50798. - # Now actually substitute the argument into the commands.
  50799. - if test -n "$arg"; then
  50800. - compile_command="$compile_command $arg"
  50801. - finalize_command="$finalize_command $arg"
  50802. - fi
  50803. - done # argument parsing loop
  50804. +COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  50805. +from the given SOURCEFILE.
  50806. - if test -n "$prev"; then
  50807. - $echo "$modename: the \`$prevarg' option requires an argument" 1>&2
  50808. - $echo "$help" 1>&2
  50809. - exit $EXIT_FAILURE
  50810. - fi
  50811. +The output file name is determined by removing the directory component from
  50812. +SOURCEFILE, then substituting the C source code suffix \`.c' with the
  50813. +library object suffix, \`.lo'."
  50814. + ;;
  50815. - if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  50816. - eval arg=\"$export_dynamic_flag_spec\"
  50817. - compile_command="$compile_command $arg"
  50818. - finalize_command="$finalize_command $arg"
  50819. - fi
  50820. + execute)
  50821. + $ECHO \
  50822. +"Usage: $progname [OPTION]... --mode=execute COMMAND [ARGS]...
  50823. - oldlibs=
  50824. - # calculate the name of the file, without its directory
  50825. - outputname=`$echo "X$output" | $Xsed -e 's%^.*/%%'`
  50826. - libobjs_save="$libobjs"
  50827. +Automatically set library path, then run a program.
  50828. - if test -n "$shlibpath_var"; then
  50829. - # get the directories listed in $shlibpath_var
  50830. - eval shlib_search_path=\`\$echo \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  50831. - else
  50832. - shlib_search_path=
  50833. - fi
  50834. - eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  50835. - eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  50836. +This mode accepts the following additional options:
  50837. - output_objdir=`$echo "X$output" | $Xsed -e 's%/[^/]*$%%'`
  50838. - if test "X$output_objdir" = "X$output"; then
  50839. - output_objdir="$objdir"
  50840. - else
  50841. - output_objdir="$output_objdir/$objdir"
  50842. - fi
  50843. - # Create the object directory.
  50844. - if test ! -d "$output_objdir"; then
  50845. - $show "$mkdir $output_objdir"
  50846. - $run $mkdir $output_objdir
  50847. - status=$?
  50848. - if test "$status" -ne 0 && test ! -d "$output_objdir"; then
  50849. - exit $status
  50850. - fi
  50851. - fi
  50852. + -dlopen FILE add the directory containing FILE to the library path
  50853. - # Determine the type of output
  50854. - case $output in
  50855. - "")
  50856. - $echo "$modename: you must specify an output file" 1>&2
  50857. - $echo "$help" 1>&2
  50858. - exit $EXIT_FAILURE
  50859. - ;;
  50860. - *.$libext) linkmode=oldlib ;;
  50861. - *.lo | *.$objext) linkmode=obj ;;
  50862. - *.la) linkmode=lib ;;
  50863. - *) linkmode=prog ;; # Anything else should be a program.
  50864. - esac
  50865. +This mode sets the library path environment variable according to \`-dlopen'
  50866. +flags.
  50867. - case $host in
  50868. - *cygwin* | *mingw* | *pw32*)
  50869. - # don't eliminate duplications in $postdeps and $predeps
  50870. - duplicate_compiler_generated_deps=yes
  50871. - ;;
  50872. - *)
  50873. - duplicate_compiler_generated_deps=$duplicate_deps
  50874. - ;;
  50875. - esac
  50876. - specialdeplibs=
  50877. +If any of the ARGS are libtool executable wrappers, then they are translated
  50878. +into their corresponding uninstalled binary, and any of their required library
  50879. +directories are added to the library path.
  50880. - libs=
  50881. - # Find all interdependent deplibs by searching for libraries
  50882. - # that are linked more than once (e.g. -la -lb -la)
  50883. - for deplib in $deplibs; do
  50884. - if test "X$duplicate_deps" = "Xyes" ; then
  50885. - case "$libs " in
  50886. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  50887. - esac
  50888. - fi
  50889. - libs="$libs $deplib"
  50890. - done
  50891. +Then, COMMAND is executed, with ARGS as arguments."
  50892. + ;;
  50893. - if test "$linkmode" = lib; then
  50894. - libs="$predeps $libs $compiler_lib_search_path $postdeps"
  50895. + finish)
  50896. + $ECHO \
  50897. +"Usage: $progname [OPTION]... --mode=finish [LIBDIR]...
  50898. - # Compute libraries that are listed more than once in $predeps
  50899. - # $postdeps and mark them as special (i.e., whose duplicates are
  50900. - # not to be eliminated).
  50901. - pre_post_deps=
  50902. - if test "X$duplicate_compiler_generated_deps" = "Xyes" ; then
  50903. - for pre_post_dep in $predeps $postdeps; do
  50904. - case "$pre_post_deps " in
  50905. - *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  50906. - esac
  50907. - pre_post_deps="$pre_post_deps $pre_post_dep"
  50908. - done
  50909. - fi
  50910. - pre_post_deps=
  50911. - fi
  50912. +Complete the installation of libtool libraries.
  50913. - deplibs=
  50914. - newdependency_libs=
  50915. - newlib_search_path=
  50916. - need_relink=no # whether we're linking any uninstalled libtool libraries
  50917. - notinst_deplibs= # not-installed libtool libraries
  50918. - notinst_path= # paths that contain not-installed libtool libraries
  50919. - case $linkmode in
  50920. - lib)
  50921. - passes="conv link"
  50922. - for file in $dlfiles $dlprefiles; do
  50923. - case $file in
  50924. - *.la) ;;
  50925. - *)
  50926. - $echo "$modename: libraries can \`-dlopen' only libtool libraries: $file" 1>&2
  50927. - exit $EXIT_FAILURE
  50928. - ;;
  50929. - esac
  50930. - done
  50931. - ;;
  50932. - prog)
  50933. - compile_deplibs=
  50934. - finalize_deplibs=
  50935. - alldeplibs=no
  50936. - newdlfiles=
  50937. - newdlprefiles=
  50938. - passes="conv scan dlopen dlpreopen link"
  50939. - ;;
  50940. - *) passes="conv"
  50941. - ;;
  50942. - esac
  50943. - for pass in $passes; do
  50944. - if test "$linkmode,$pass" = "lib,link" ||
  50945. - test "$linkmode,$pass" = "prog,scan"; then
  50946. - libs="$deplibs"
  50947. - deplibs=
  50948. - fi
  50949. - if test "$linkmode" = prog; then
  50950. - case $pass in
  50951. - dlopen) libs="$dlfiles" ;;
  50952. - dlpreopen) libs="$dlprefiles" ;;
  50953. - link) libs="$deplibs %DEPLIBS% $dependency_libs" ;;
  50954. - esac
  50955. - fi
  50956. - if test "$pass" = dlopen; then
  50957. - # Collect dlpreopened libraries
  50958. - save_deplibs="$deplibs"
  50959. - deplibs=
  50960. - fi
  50961. - for deplib in $libs; do
  50962. - lib=
  50963. - found=no
  50964. - case $deplib in
  50965. - -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe)
  50966. - if test "$linkmode,$pass" = "prog,link"; then
  50967. - compile_deplibs="$deplib $compile_deplibs"
  50968. - finalize_deplibs="$deplib $finalize_deplibs"
  50969. - else
  50970. - deplibs="$deplib $deplibs"
  50971. - fi
  50972. - continue
  50973. - ;;
  50974. - -l*)
  50975. - if test "$linkmode" != lib && test "$linkmode" != prog; then
  50976. - $echo "$modename: warning: \`-l' is ignored for archives/objects" 1>&2
  50977. - continue
  50978. - fi
  50979. - if test "$pass" = conv; then
  50980. - deplibs="$deplib $deplibs"
  50981. - continue
  50982. - fi
  50983. - name=`$echo "X$deplib" | $Xsed -e 's/^-l//'`
  50984. - for searchdir in $newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path; do
  50985. - for search_ext in .la $std_shrext .so .a; do
  50986. - # Search the libtool library
  50987. - lib="$searchdir/lib${name}${search_ext}"
  50988. - if test -f "$lib"; then
  50989. - if test "$search_ext" = ".la"; then
  50990. - found=yes
  50991. - else
  50992. - found=no
  50993. - fi
  50994. - break 2
  50995. - fi
  50996. - done
  50997. - done
  50998. - if test "$found" != yes; then
  50999. - # deplib doesn't seem to be a libtool library
  51000. - if test "$linkmode,$pass" = "prog,link"; then
  51001. - compile_deplibs="$deplib $compile_deplibs"
  51002. - finalize_deplibs="$deplib $finalize_deplibs"
  51003. - else
  51004. - deplibs="$deplib $deplibs"
  51005. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  51006. - fi
  51007. - continue
  51008. - else # deplib is a libtool library
  51009. - # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  51010. - # We need to do some special things here, and not later.
  51011. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  51012. - case " $predeps $postdeps " in
  51013. - *" $deplib "*)
  51014. - if (${SED} -e '2q' $lib |
  51015. - grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  51016. - library_names=
  51017. - old_library=
  51018. - case $lib in
  51019. - */* | *\\*) . $lib ;;
  51020. - *) . ./$lib ;;
  51021. - esac
  51022. - for l in $old_library $library_names; do
  51023. - ll="$l"
  51024. - done
  51025. - if test "X$ll" = "X$old_library" ; then # only static version available
  51026. - found=no
  51027. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  51028. - test "X$ladir" = "X$lib" && ladir="."
  51029. - lib=$ladir/$old_library
  51030. - if test "$linkmode,$pass" = "prog,link"; then
  51031. - compile_deplibs="$deplib $compile_deplibs"
  51032. - finalize_deplibs="$deplib $finalize_deplibs"
  51033. - else
  51034. - deplibs="$deplib $deplibs"
  51035. - test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  51036. - fi
  51037. - continue
  51038. - fi
  51039. - fi
  51040. - ;;
  51041. - *) ;;
  51042. - esac
  51043. - fi
  51044. - fi
  51045. - ;; # -l
  51046. - -L*)
  51047. - case $linkmode in
  51048. - lib)
  51049. - deplibs="$deplib $deplibs"
  51050. - test "$pass" = conv && continue
  51051. - newdependency_libs="$deplib $newdependency_libs"
  51052. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  51053. - ;;
  51054. - prog)
  51055. - if test "$pass" = conv; then
  51056. - deplibs="$deplib $deplibs"
  51057. - continue
  51058. - fi
  51059. - if test "$pass" = scan; then
  51060. - deplibs="$deplib $deplibs"
  51061. - else
  51062. - compile_deplibs="$deplib $compile_deplibs"
  51063. - finalize_deplibs="$deplib $finalize_deplibs"
  51064. - fi
  51065. - newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`
  51066. - ;;
  51067. - *)
  51068. - $echo "$modename: warning: \`-L' is ignored for archives/objects" 1>&2
  51069. - ;;
  51070. - esac # linkmode
  51071. - continue
  51072. - ;; # -L
  51073. - -R*)
  51074. - if test "$pass" = link; then
  51075. - dir=`$echo "X$deplib" | $Xsed -e 's/^-R//'`
  51076. - # Make sure the xrpath contains only unique directories.
  51077. - case "$xrpath " in
  51078. - *" $dir "*) ;;
  51079. - *) xrpath="$xrpath $dir" ;;
  51080. - esac
  51081. - fi
  51082. - deplibs="$deplib $deplibs"
  51083. - continue
  51084. - ;;
  51085. - *.la) lib="$deplib" ;;
  51086. - *.$libext)
  51087. - if test "$pass" = conv; then
  51088. - deplibs="$deplib $deplibs"
  51089. - continue
  51090. - fi
  51091. - case $linkmode in
  51092. - lib)
  51093. - if test "$deplibs_check_method" != pass_all; then
  51094. - $echo
  51095. - $echo "*** Warning: Trying to link with static lib archive $deplib."
  51096. - $echo "*** I have the capability to make that library automatically link in when"
  51097. - $echo "*** you link to this library. But I can only do this if you have a"
  51098. - $echo "*** shared version of the library, which you do not appear to have"
  51099. - $echo "*** because the file extensions .$libext of this argument makes me believe"
  51100. - $echo "*** that it is just a static archive that I should not used here."
  51101. - else
  51102. - $echo
  51103. - $echo "*** Warning: Linking the shared library $output against the"
  51104. - $echo "*** static library $deplib is not portable!"
  51105. - deplibs="$deplib $deplibs"
  51106. - fi
  51107. - continue
  51108. - ;;
  51109. - prog)
  51110. - if test "$pass" != link; then
  51111. - deplibs="$deplib $deplibs"
  51112. - else
  51113. - compile_deplibs="$deplib $compile_deplibs"
  51114. - finalize_deplibs="$deplib $finalize_deplibs"
  51115. - fi
  51116. - continue
  51117. - ;;
  51118. - esac # linkmode
  51119. - ;; # *.$libext
  51120. - *.lo | *.$objext)
  51121. - if test "$pass" = conv; then
  51122. - deplibs="$deplib $deplibs"
  51123. - elif test "$linkmode" = prog; then
  51124. - if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  51125. - # If there is no dlopen support or we're linking statically,
  51126. - # we need to preload.
  51127. - newdlprefiles="$newdlprefiles $deplib"
  51128. - compile_deplibs="$deplib $compile_deplibs"
  51129. - finalize_deplibs="$deplib $finalize_deplibs"
  51130. - else
  51131. - newdlfiles="$newdlfiles $deplib"
  51132. - fi
  51133. - fi
  51134. - continue
  51135. - ;;
  51136. - %DEPLIBS%)
  51137. - alldeplibs=yes
  51138. - continue
  51139. - ;;
  51140. - esac # case $deplib
  51141. - if test "$found" = yes || test -f "$lib"; then :
  51142. - else
  51143. - $echo "$modename: cannot find the library \`$lib'" 1>&2
  51144. - exit $EXIT_FAILURE
  51145. - fi
  51146. +Each LIBDIR is a directory that contains libtool libraries.
  51147. - # Check to see that this really is a libtool archive.
  51148. - if (${SED} -e '2q' $lib | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  51149. - else
  51150. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  51151. - exit $EXIT_FAILURE
  51152. - fi
  51153. +The commands that this mode executes may require superuser privileges. Use
  51154. +the \`--dry-run' option if you just want to see what would be executed."
  51155. + ;;
  51156. - ladir=`$echo "X$lib" | $Xsed -e 's%/[^/]*$%%'`
  51157. - test "X$ladir" = "X$lib" && ladir="."
  51158. + install)
  51159. + $ECHO \
  51160. +"Usage: $progname [OPTION]... --mode=install INSTALL-COMMAND...
  51161. - dlname=
  51162. - dlopen=
  51163. - dlpreopen=
  51164. - libdir=
  51165. - library_names=
  51166. - old_library=
  51167. - # If the library was installed with an old release of libtool,
  51168. - # it will not redefine variables installed, or shouldnotlink
  51169. - installed=yes
  51170. - shouldnotlink=no
  51171. +Install executables or libraries.
  51172. - # Read the .la file
  51173. - case $lib in
  51174. - */* | *\\*) . $lib ;;
  51175. - *) . ./$lib ;;
  51176. - esac
  51177. +INSTALL-COMMAND is the installation command. The first component should be
  51178. +either the \`install' or \`cp' program.
  51179. - if test "$linkmode,$pass" = "lib,link" ||
  51180. - test "$linkmode,$pass" = "prog,scan" ||
  51181. - { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  51182. - test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  51183. - test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  51184. - fi
  51185. +The following components of INSTALL-COMMAND are treated specially:
  51186. - if test "$pass" = conv; then
  51187. - # Only check for convenience libraries
  51188. - deplibs="$lib $deplibs"
  51189. - if test -z "$libdir"; then
  51190. - if test -z "$old_library"; then
  51191. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  51192. - exit $EXIT_FAILURE
  51193. - fi
  51194. - # It is a libtool convenience library, so add in its objects.
  51195. - convenience="$convenience $ladir/$objdir/$old_library"
  51196. - old_convenience="$old_convenience $ladir/$objdir/$old_library"
  51197. - tmp_libs=
  51198. - for deplib in $dependency_libs; do
  51199. - deplibs="$deplib $deplibs"
  51200. - if test "X$duplicate_deps" = "Xyes" ; then
  51201. - case "$tmp_libs " in
  51202. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51203. - esac
  51204. - fi
  51205. - tmp_libs="$tmp_libs $deplib"
  51206. - done
  51207. - elif test "$linkmode" != prog && test "$linkmode" != lib; then
  51208. - $echo "$modename: \`$lib' is not a convenience library" 1>&2
  51209. - exit $EXIT_FAILURE
  51210. - fi
  51211. - continue
  51212. - fi # $pass = conv
  51213. + -inst-prefix PREFIX-DIR Use PREFIX-DIR as a staging area for installation
  51214. +The rest of the components are interpreted as arguments to that command (only
  51215. +BSD-compatible install options are recognized)."
  51216. + ;;
  51217. - # Get the name of the library we link against.
  51218. - linklib=
  51219. - for l in $old_library $library_names; do
  51220. - linklib="$l"
  51221. - done
  51222. - if test -z "$linklib"; then
  51223. - $echo "$modename: cannot find name of link library for \`$lib'" 1>&2
  51224. - exit $EXIT_FAILURE
  51225. - fi
  51226. + link)
  51227. + $ECHO \
  51228. +"Usage: $progname [OPTION]... --mode=link LINK-COMMAND...
  51229. - # This library was specified with -dlopen.
  51230. - if test "$pass" = dlopen; then
  51231. - if test -z "$libdir"; then
  51232. - $echo "$modename: cannot -dlopen a convenience library: \`$lib'" 1>&2
  51233. - exit $EXIT_FAILURE
  51234. - fi
  51235. - if test -z "$dlname" ||
  51236. - test "$dlopen_support" != yes ||
  51237. - test "$build_libtool_libs" = no; then
  51238. - # If there is no dlname, no dlopen support or we're linking
  51239. - # statically, we need to preload. We also need to preload any
  51240. - # dependent libraries so libltdl's deplib preloader doesn't
  51241. - # bomb out in the load deplibs phase.
  51242. - dlprefiles="$dlprefiles $lib $dependency_libs"
  51243. - else
  51244. - newdlfiles="$newdlfiles $lib"
  51245. - fi
  51246. - continue
  51247. - fi # $pass = dlopen
  51248. +Link object files or libraries together to form another library, or to
  51249. +create an executable program.
  51250. - # We need an absolute path.
  51251. - case $ladir in
  51252. - [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  51253. - *)
  51254. - abs_ladir=`cd "$ladir" && pwd`
  51255. - if test -z "$abs_ladir"; then
  51256. - $echo "$modename: warning: cannot determine absolute directory name of \`$ladir'" 1>&2
  51257. - $echo "$modename: passing it literally to the linker, although it might fail" 1>&2
  51258. - abs_ladir="$ladir"
  51259. - fi
  51260. - ;;
  51261. - esac
  51262. - laname=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  51263. +LINK-COMMAND is a command using the C compiler that you would use to create
  51264. +a program from several object files.
  51265. - # Find the relevant object directory and library name.
  51266. - if test "X$installed" = Xyes; then
  51267. - if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  51268. - $echo "$modename: warning: library \`$lib' was moved." 1>&2
  51269. - dir="$ladir"
  51270. - absdir="$abs_ladir"
  51271. - libdir="$abs_ladir"
  51272. - else
  51273. - dir="$libdir"
  51274. - absdir="$libdir"
  51275. - fi
  51276. - else
  51277. - dir="$ladir/$objdir"
  51278. - absdir="$abs_ladir/$objdir"
  51279. - # Remove this search path later
  51280. - notinst_path="$notinst_path $abs_ladir"
  51281. - fi # $installed = yes
  51282. - name=`$echo "X$laname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  51283. +The following components of LINK-COMMAND are treated specially:
  51284. - # This library was specified with -dlpreopen.
  51285. - if test "$pass" = dlpreopen; then
  51286. - if test -z "$libdir"; then
  51287. - $echo "$modename: cannot -dlpreopen a convenience library: \`$lib'" 1>&2
  51288. - exit $EXIT_FAILURE
  51289. - fi
  51290. - # Prefer using a static library (so that no silly _DYNAMIC symbols
  51291. - # are required to link).
  51292. - if test -n "$old_library"; then
  51293. - newdlprefiles="$newdlprefiles $dir/$old_library"
  51294. - # Otherwise, use the dlname, so that lt_dlopen finds it.
  51295. - elif test -n "$dlname"; then
  51296. - newdlprefiles="$newdlprefiles $dir/$dlname"
  51297. - else
  51298. - newdlprefiles="$newdlprefiles $dir/$linklib"
  51299. - fi
  51300. - fi # $pass = dlpreopen
  51301. + -all-static do not do any dynamic linking at all
  51302. + -avoid-version do not add a version suffix if possible
  51303. + -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  51304. + -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  51305. + -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  51306. + -export-symbols SYMFILE
  51307. + try to export only the symbols listed in SYMFILE
  51308. + -export-symbols-regex REGEX
  51309. + try to export only the symbols matching REGEX
  51310. + -LLIBDIR search LIBDIR for required installed libraries
  51311. + -lNAME OUTPUT-FILE requires the installed library libNAME
  51312. + -module build a library that can dlopened
  51313. + -no-fast-install disable the fast-install mode
  51314. + -no-install link a not-installable executable
  51315. + -no-undefined declare that a library does not refer to external symbols
  51316. + -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  51317. + -objectlist FILE Use a list of object files found in FILE to specify objects
  51318. + -precious-files-regex REGEX
  51319. + don't remove output files matching REGEX
  51320. + -release RELEASE specify package release information
  51321. + -rpath LIBDIR the created library will eventually be installed in LIBDIR
  51322. + -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  51323. + -shared only do dynamic linking of libtool libraries
  51324. + -shrext SUFFIX override the standard shared library file extension
  51325. + -static do not do any dynamic linking of uninstalled libtool libraries
  51326. + -static-libtool-libs
  51327. + do not do any dynamic linking of libtool libraries
  51328. + -version-info CURRENT[:REVISION[:AGE]]
  51329. + specify library version info [each variable defaults to 0]
  51330. + -weak LIBNAME declare that the target provides the LIBNAME interface
  51331. - if test -z "$libdir"; then
  51332. - # Link the convenience library
  51333. - if test "$linkmode" = lib; then
  51334. - deplibs="$dir/$old_library $deplibs"
  51335. - elif test "$linkmode,$pass" = "prog,link"; then
  51336. - compile_deplibs="$dir/$old_library $compile_deplibs"
  51337. - finalize_deplibs="$dir/$old_library $finalize_deplibs"
  51338. - else
  51339. - deplibs="$lib $deplibs" # used for prog,scan pass
  51340. - fi
  51341. - continue
  51342. - fi
  51343. +All other options (arguments beginning with \`-') are ignored.
  51344. +Every other argument is treated as a filename. Files ending in \`.la' are
  51345. +treated as uninstalled libtool libraries, other files are standard or library
  51346. +object files.
  51347. - if test "$linkmode" = prog && test "$pass" != link; then
  51348. - newlib_search_path="$newlib_search_path $ladir"
  51349. - deplibs="$lib $deplibs"
  51350. +If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  51351. +only library objects (\`.lo' files) may be specified, and \`-rpath' is
  51352. +required, except when creating a convenience library.
  51353. - linkalldeplibs=no
  51354. - if test "$link_all_deplibs" != no || test -z "$library_names" ||
  51355. - test "$build_libtool_libs" = no; then
  51356. - linkalldeplibs=yes
  51357. - fi
  51358. +If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  51359. +using \`ar' and \`ranlib', or on Windows using \`lib'.
  51360. - tmp_libs=
  51361. - for deplib in $dependency_libs; do
  51362. - case $deplib in
  51363. - -L*) newlib_search_path="$newlib_search_path "`$echo "X$deplib" | $Xsed -e 's/^-L//'`;; ### testsuite: skip nested quoting test
  51364. - esac
  51365. - # Need to link against all dependency_libs?
  51366. - if test "$linkalldeplibs" = yes; then
  51367. - deplibs="$deplib $deplibs"
  51368. - else
  51369. - # Need to hardcode shared library paths
  51370. - # or/and link against static libraries
  51371. - newdependency_libs="$deplib $newdependency_libs"
  51372. - fi
  51373. - if test "X$duplicate_deps" = "Xyes" ; then
  51374. - case "$tmp_libs " in
  51375. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51376. - esac
  51377. - fi
  51378. - tmp_libs="$tmp_libs $deplib"
  51379. - done # for deplib
  51380. - continue
  51381. - fi # $linkmode = prog...
  51382. +If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  51383. +is created, otherwise an executable program is created."
  51384. + ;;
  51385. - if test "$linkmode,$pass" = "prog,link"; then
  51386. - if test -n "$library_names" &&
  51387. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  51388. - # We need to hardcode the library path
  51389. - if test -n "$shlibpath_var"; then
  51390. - # Make sure the rpath contains only unique directories.
  51391. - case "$temp_rpath " in
  51392. - *" $dir "*) ;;
  51393. - *" $absdir "*) ;;
  51394. - *) temp_rpath="$temp_rpath $dir" ;;
  51395. - esac
  51396. - fi
  51397. + uninstall)
  51398. + $ECHO \
  51399. +"Usage: $progname [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  51400. - # Hardcode the library path.
  51401. - # Skip directories that are in the system default run-time
  51402. - # search path.
  51403. - case " $sys_lib_dlsearch_path " in
  51404. - *" $absdir "*) ;;
  51405. - *)
  51406. - case "$compile_rpath " in
  51407. - *" $absdir "*) ;;
  51408. - *) compile_rpath="$compile_rpath $absdir"
  51409. - esac
  51410. - ;;
  51411. - esac
  51412. - case " $sys_lib_dlsearch_path " in
  51413. - *" $libdir "*) ;;
  51414. - *)
  51415. - case "$finalize_rpath " in
  51416. - *" $libdir "*) ;;
  51417. - *) finalize_rpath="$finalize_rpath $libdir"
  51418. - esac
  51419. - ;;
  51420. - esac
  51421. - fi # $linkmode,$pass = prog,link...
  51422. +Remove libraries from an installation directory.
  51423. - if test "$alldeplibs" = yes &&
  51424. - { test "$deplibs_check_method" = pass_all ||
  51425. - { test "$build_libtool_libs" = yes &&
  51426. - test -n "$library_names"; }; }; then
  51427. - # We only need to search for static libraries
  51428. - continue
  51429. - fi
  51430. - fi
  51431. +RM is the name of the program to use to delete files associated with each FILE
  51432. +(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  51433. +to RM.
  51434. - link_static=no # Whether the deplib will be linked statically
  51435. - if test -n "$library_names" &&
  51436. - { test "$prefer_static_libs" = no || test -z "$old_library"; }; then
  51437. - if test "$installed" = no; then
  51438. - notinst_deplibs="$notinst_deplibs $lib"
  51439. - need_relink=yes
  51440. - fi
  51441. - # This is a shared library
  51442. +If FILE is a libtool library, all the files associated with it are deleted.
  51443. +Otherwise, only FILE itself is deleted using RM."
  51444. + ;;
  51445. - # Warn about portability, can't link against -module's on
  51446. - # some systems (darwin)
  51447. - if test "$shouldnotlink" = yes && test "$pass" = link ; then
  51448. - $echo
  51449. - if test "$linkmode" = prog; then
  51450. - $echo "*** Warning: Linking the executable $output against the loadable module"
  51451. - else
  51452. - $echo "*** Warning: Linking the shared library $output against the loadable module"
  51453. - fi
  51454. - $echo "*** $linklib is not portable!"
  51455. - fi
  51456. - if test "$linkmode" = lib &&
  51457. - test "$hardcode_into_libs" = yes; then
  51458. - # Hardcode the library path.
  51459. - # Skip directories that are in the system default run-time
  51460. - # search path.
  51461. - case " $sys_lib_dlsearch_path " in
  51462. - *" $absdir "*) ;;
  51463. - *)
  51464. - case "$compile_rpath " in
  51465. - *" $absdir "*) ;;
  51466. - *) compile_rpath="$compile_rpath $absdir"
  51467. - esac
  51468. - ;;
  51469. - esac
  51470. - case " $sys_lib_dlsearch_path " in
  51471. - *" $libdir "*) ;;
  51472. - *)
  51473. - case "$finalize_rpath " in
  51474. - *" $libdir "*) ;;
  51475. - *) finalize_rpath="$finalize_rpath $libdir"
  51476. - esac
  51477. - ;;
  51478. - esac
  51479. - fi
  51480. + *)
  51481. + func_fatal_help "invalid operation mode \`$mode'"
  51482. + ;;
  51483. + esac
  51484. - if test -n "$old_archive_from_expsyms_cmds"; then
  51485. - # figure out the soname
  51486. - set dummy $library_names
  51487. - realname="$2"
  51488. - shift; shift
  51489. - libname=`eval \\$echo \"$libname_spec\"`
  51490. - # use dlname if we got it. it's perfectly good, no?
  51491. - if test -n "$dlname"; then
  51492. - soname="$dlname"
  51493. - elif test -n "$soname_spec"; then
  51494. - # bleh windows
  51495. - case $host in
  51496. - *cygwin* | mingw*)
  51497. - major=`expr $current - $age`
  51498. - versuffix="-$major"
  51499. - ;;
  51500. - esac
  51501. - eval soname=\"$soname_spec\"
  51502. - else
  51503. - soname="$realname"
  51504. - fi
  51505. + $ECHO
  51506. + $ECHO "Try \`$progname --help' for more information about other modes."
  51507. - # Make a new name for the extract_expsyms_cmds to use
  51508. - soroot="$soname"
  51509. - soname=`$echo $soroot | ${SED} -e 's/^.*\///'`
  51510. - newlib="libimp-`$echo $soname | ${SED} 's/^lib//;s/\.dll$//'`.a"
  51511. + exit $?
  51512. +}
  51513. - # If the library has no export list, then create one now
  51514. - if test -f "$output_objdir/$soname-def"; then :
  51515. - else
  51516. - $show "extracting exported symbol list from \`$soname'"
  51517. - save_ifs="$IFS"; IFS='~'
  51518. - cmds=$extract_expsyms_cmds
  51519. - for cmd in $cmds; do
  51520. - IFS="$save_ifs"
  51521. - eval cmd=\"$cmd\"
  51522. - $show "$cmd"
  51523. - $run eval "$cmd" || exit $?
  51524. - done
  51525. - IFS="$save_ifs"
  51526. - fi
  51527. + # Now that we've collected a possible --mode arg, show help if necessary
  51528. + $opt_help && func_mode_help
  51529. - # Create $newlib
  51530. - if test -f "$output_objdir/$newlib"; then :; else
  51531. - $show "generating import library for \`$soname'"
  51532. - save_ifs="$IFS"; IFS='~'
  51533. - cmds=$old_archive_from_expsyms_cmds
  51534. - for cmd in $cmds; do
  51535. - IFS="$save_ifs"
  51536. - eval cmd=\"$cmd\"
  51537. - $show "$cmd"
  51538. - $run eval "$cmd" || exit $?
  51539. - done
  51540. - IFS="$save_ifs"
  51541. - fi
  51542. - # make sure the library variables are pointing to the new library
  51543. - dir=$output_objdir
  51544. - linklib=$newlib
  51545. - fi # test -n "$old_archive_from_expsyms_cmds"
  51546. - if test "$linkmode" = prog || test "$mode" != relink; then
  51547. - add_shlibpath=
  51548. - add_dir=
  51549. - add=
  51550. - lib_linked=yes
  51551. - case $hardcode_action in
  51552. - immediate | unsupported)
  51553. - if test "$hardcode_direct" = no; then
  51554. - add="$dir/$linklib"
  51555. - case $host in
  51556. - *-*-sco3.2v5* ) add_dir="-L$dir" ;;
  51557. - *-*-darwin* )
  51558. - # if the lib is a module then we can not link against
  51559. - # it, someone is ignoring the new warnings I added
  51560. - if /usr/bin/file -L $add 2> /dev/null | $EGREP "bundle" >/dev/null ; then
  51561. - $echo "** Warning, lib $linklib is a module, not a shared library"
  51562. - if test -z "$old_library" ; then
  51563. - $echo
  51564. - $echo "** And there doesn't seem to be a static archive available"
  51565. - $echo "** The link will probably fail, sorry"
  51566. - else
  51567. - add="$dir/$old_library"
  51568. - fi
  51569. - fi
  51570. - esac
  51571. - elif test "$hardcode_minus_L" = no; then
  51572. - case $host in
  51573. - *-*-sunos*) add_shlibpath="$dir" ;;
  51574. - esac
  51575. - add_dir="-L$dir"
  51576. - add="-l$name"
  51577. - elif test "$hardcode_shlibpath_var" = no; then
  51578. - add_shlibpath="$dir"
  51579. - add="-l$name"
  51580. - else
  51581. - lib_linked=no
  51582. - fi
  51583. - ;;
  51584. - relink)
  51585. - if test "$hardcode_direct" = yes; then
  51586. - add="$dir/$linklib"
  51587. - elif test "$hardcode_minus_L" = yes; then
  51588. - add_dir="-L$dir"
  51589. - # Try looking first in the location we're being installed to.
  51590. - if test -n "$inst_prefix_dir"; then
  51591. - case "$libdir" in
  51592. - [\\/]*)
  51593. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51594. - ;;
  51595. - esac
  51596. - fi
  51597. - add="-l$name"
  51598. - elif test "$hardcode_shlibpath_var" = yes; then
  51599. - add_shlibpath="$dir"
  51600. - add="-l$name"
  51601. - else
  51602. - lib_linked=no
  51603. - fi
  51604. - ;;
  51605. - *) lib_linked=no ;;
  51606. - esac
  51607. +# func_mode_execute arg...
  51608. +func_mode_execute ()
  51609. +{
  51610. + $opt_debug
  51611. + # The first argument is the command name.
  51612. + cmd="$nonopt"
  51613. + test -z "$cmd" && \
  51614. + func_fatal_help "you must specify a COMMAND"
  51615. - if test "$lib_linked" != yes; then
  51616. - $echo "$modename: configuration error: unsupported hardcode properties"
  51617. - exit $EXIT_FAILURE
  51618. - fi
  51619. + # Handle -dlopen flags immediately.
  51620. + for file in $execute_dlfiles; do
  51621. + test -f "$file" \
  51622. + || func_fatal_help "\`$file' is not a file"
  51623. - if test -n "$add_shlibpath"; then
  51624. - case :$compile_shlibpath: in
  51625. - *":$add_shlibpath:"*) ;;
  51626. - *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  51627. - esac
  51628. - fi
  51629. - if test "$linkmode" = prog; then
  51630. - test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  51631. - test -n "$add" && compile_deplibs="$add $compile_deplibs"
  51632. - else
  51633. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  51634. - test -n "$add" && deplibs="$add $deplibs"
  51635. - if test "$hardcode_direct" != yes && \
  51636. - test "$hardcode_minus_L" != yes && \
  51637. - test "$hardcode_shlibpath_var" = yes; then
  51638. - case :$finalize_shlibpath: in
  51639. - *":$libdir:"*) ;;
  51640. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  51641. - esac
  51642. - fi
  51643. - fi
  51644. - fi
  51645. + dir=
  51646. + case $file in
  51647. + *.la)
  51648. + # Check to see that this really is a libtool archive.
  51649. + func_lalib_unsafe_p "$file" \
  51650. + || func_fatal_help "\`$lib' is not a valid libtool archive"
  51651. - if test "$linkmode" = prog || test "$mode" = relink; then
  51652. - add_shlibpath=
  51653. - add_dir=
  51654. - add=
  51655. - # Finalize command for both is simple: just hardcode it.
  51656. - if test "$hardcode_direct" = yes; then
  51657. - add="$libdir/$linklib"
  51658. - elif test "$hardcode_minus_L" = yes; then
  51659. - add_dir="-L$libdir"
  51660. - add="-l$name"
  51661. - elif test "$hardcode_shlibpath_var" = yes; then
  51662. - case :$finalize_shlibpath: in
  51663. - *":$libdir:"*) ;;
  51664. - *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  51665. - esac
  51666. - add="-l$name"
  51667. - elif test "$hardcode_automatic" = yes; then
  51668. - if test -n "$inst_prefix_dir" &&
  51669. - test -f "$inst_prefix_dir$libdir/$linklib" ; then
  51670. - add="$inst_prefix_dir$libdir/$linklib"
  51671. - else
  51672. - add="$libdir/$linklib"
  51673. - fi
  51674. - else
  51675. - # We cannot seem to hardcode it, guess we'll fake it.
  51676. - add_dir="-L$libdir"
  51677. - # Try looking first in the location we're being installed to.
  51678. - if test -n "$inst_prefix_dir"; then
  51679. - case "$libdir" in
  51680. - [\\/]*)
  51681. - add_dir="$add_dir -L$inst_prefix_dir$libdir"
  51682. - ;;
  51683. - esac
  51684. - fi
  51685. - add="-l$name"
  51686. - fi
  51687. + # Read the libtool library.
  51688. + dlname=
  51689. + library_names=
  51690. + func_source "$file"
  51691. - if test "$linkmode" = prog; then
  51692. - test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  51693. - test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  51694. - else
  51695. - test -n "$add_dir" && deplibs="$add_dir $deplibs"
  51696. - test -n "$add" && deplibs="$add $deplibs"
  51697. - fi
  51698. - fi
  51699. - elif test "$linkmode" = prog; then
  51700. - # Here we assume that one of hardcode_direct or hardcode_minus_L
  51701. - # is not unsupported. This is valid on all known static and
  51702. - # shared platforms.
  51703. - if test "$hardcode_direct" != unsupported; then
  51704. - test -n "$old_library" && linklib="$old_library"
  51705. - compile_deplibs="$dir/$linklib $compile_deplibs"
  51706. - finalize_deplibs="$dir/$linklib $finalize_deplibs"
  51707. - else
  51708. - compile_deplibs="-l$name -L$dir $compile_deplibs"
  51709. - finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  51710. - fi
  51711. - elif test "$build_libtool_libs" = yes; then
  51712. - # Not a shared library
  51713. - if test "$deplibs_check_method" != pass_all; then
  51714. - # We're trying link a shared library against a static one
  51715. - # but the system doesn't support it.
  51716. + # Skip this library if it cannot be dlopened.
  51717. + if test -z "$dlname"; then
  51718. + # Warn if it was a shared library.
  51719. + test -n "$library_names" && \
  51720. + func_warning "\`$file' was not linked with \`-export-dynamic'"
  51721. + continue
  51722. + fi
  51723. - # Just print a warning and add the library to dependency_libs so
  51724. - # that the program can be linked against the static library.
  51725. - $echo
  51726. - $echo "*** Warning: This system can not link to static lib archive $lib."
  51727. - $echo "*** I have the capability to make that library automatically link in when"
  51728. - $echo "*** you link to this library. But I can only do this if you have a"
  51729. - $echo "*** shared version of the library, which you do not appear to have."
  51730. - if test "$module" = yes; then
  51731. - $echo "*** But as you try to build a module library, libtool will still create "
  51732. - $echo "*** a static module, that should work as long as the dlopening application"
  51733. - $echo "*** is linked with the -dlopen flag to resolve symbols at runtime."
  51734. - if test -z "$global_symbol_pipe"; then
  51735. - $echo
  51736. - $echo "*** However, this would only work if libtool was able to extract symbol"
  51737. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  51738. - $echo "*** not find such a program. So, this module is probably useless."
  51739. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  51740. - fi
  51741. - if test "$build_old_libs" = no; then
  51742. - build_libtool_libs=module
  51743. - build_old_libs=yes
  51744. - else
  51745. - build_libtool_libs=no
  51746. - fi
  51747. - fi
  51748. - else
  51749. - convenience="$convenience $dir/$old_library"
  51750. - old_convenience="$old_convenience $dir/$old_library"
  51751. - deplibs="$dir/$old_library $deplibs"
  51752. - link_static=yes
  51753. - fi
  51754. - fi # link shared/static library?
  51755. + func_dirname "$file" "" "."
  51756. + dir="$func_dirname_result"
  51757. - if test "$linkmode" = lib; then
  51758. - if test -n "$dependency_libs" &&
  51759. - { test "$hardcode_into_libs" != yes ||
  51760. - test "$build_old_libs" = yes ||
  51761. - test "$link_static" = yes; }; then
  51762. - # Extract -R from dependency_libs
  51763. - temp_deplibs=
  51764. - for libdir in $dependency_libs; do
  51765. - case $libdir in
  51766. - -R*) temp_xrpath=`$echo "X$libdir" | $Xsed -e 's/^-R//'`
  51767. - case " $xrpath " in
  51768. - *" $temp_xrpath "*) ;;
  51769. - *) xrpath="$xrpath $temp_xrpath";;
  51770. - esac;;
  51771. - *) temp_deplibs="$temp_deplibs $libdir";;
  51772. - esac
  51773. - done
  51774. - dependency_libs="$temp_deplibs"
  51775. + if test -f "$dir/$objdir/$dlname"; then
  51776. + dir="$dir/$objdir"
  51777. + else
  51778. + if test ! -f "$dir/$dlname"; then
  51779. + func_fatal_error "cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'"
  51780. fi
  51781. + fi
  51782. + ;;
  51783. - newlib_search_path="$newlib_search_path $absdir"
  51784. - # Link against this library
  51785. - test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  51786. - # ... and its dependency_libs
  51787. - tmp_libs=
  51788. - for deplib in $dependency_libs; do
  51789. - newdependency_libs="$deplib $newdependency_libs"
  51790. - if test "X$duplicate_deps" = "Xyes" ; then
  51791. - case "$tmp_libs " in
  51792. - *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  51793. - esac
  51794. - fi
  51795. - tmp_libs="$tmp_libs $deplib"
  51796. - done
  51797. + *.lo)
  51798. + # Just add the directory containing the .lo file.
  51799. + func_dirname "$file" "" "."
  51800. + dir="$func_dirname_result"
  51801. + ;;
  51802. - if test "$link_all_deplibs" != no; then
  51803. - # Add the search paths of all dependency libraries
  51804. - for deplib in $dependency_libs; do
  51805. - case $deplib in
  51806. - -L*) path="$deplib" ;;
  51807. - *.la)
  51808. - dir=`$echo "X$deplib" | $Xsed -e 's%/[^/]*$%%'`
  51809. - test "X$dir" = "X$deplib" && dir="."
  51810. - # We need an absolute path.
  51811. - case $dir in
  51812. - [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  51813. - *)
  51814. - absdir=`cd "$dir" && pwd`
  51815. - if test -z "$absdir"; then
  51816. - $echo "$modename: warning: cannot determine absolute directory name of \`$dir'" 1>&2
  51817. - absdir="$dir"
  51818. - fi
  51819. - ;;
  51820. - esac
  51821. - if grep "^installed=no" $deplib > /dev/null; then
  51822. - path="$absdir/$objdir"
  51823. - else
  51824. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  51825. - if test -z "$libdir"; then
  51826. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  51827. - exit $EXIT_FAILURE
  51828. - fi
  51829. - if test "$absdir" != "$libdir"; then
  51830. - $echo "$modename: warning: \`$deplib' seems to be moved" 1>&2
  51831. - fi
  51832. - path="$absdir"
  51833. - fi
  51834. - depdepl=
  51835. - case $host in
  51836. - *-*-darwin*)
  51837. - # we do not want to link against static libs,
  51838. - # but need to link against shared
  51839. - eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  51840. - if test -n "$deplibrary_names" ; then
  51841. - for tmp in $deplibrary_names ; do
  51842. - depdepl=$tmp
  51843. - done
  51844. - if test -f "$path/$depdepl" ; then
  51845. - depdepl="$path/$depdepl"
  51846. - fi
  51847. - # do not add paths which are already there
  51848. - case " $newlib_search_path " in
  51849. - *" $path "*) ;;
  51850. - *) newlib_search_path="$newlib_search_path $path";;
  51851. - esac
  51852. - fi
  51853. - path=""
  51854. - ;;
  51855. - *)
  51856. - path="-L$path"
  51857. - ;;
  51858. - esac
  51859. - ;;
  51860. - -l*)
  51861. - case $host in
  51862. - *-*-darwin*)
  51863. - # Again, we only want to link against shared libraries
  51864. - eval tmp_libs=`$echo "X$deplib" | $Xsed -e "s,^\-l,,"`
  51865. - for tmp in $newlib_search_path ; do
  51866. - if test -f "$tmp/lib$tmp_libs.dylib" ; then
  51867. - eval depdepl="$tmp/lib$tmp_libs.dylib"
  51868. - break
  51869. - fi
  51870. - done
  51871. - path=""
  51872. - ;;
  51873. - *) continue ;;
  51874. - esac
  51875. - ;;
  51876. - *) continue ;;
  51877. - esac
  51878. - case " $deplibs " in
  51879. - *" $depdepl "*) ;;
  51880. - *) deplibs="$depdepl $deplibs" ;;
  51881. - esac
  51882. - case " $deplibs " in
  51883. - *" $path "*) ;;
  51884. - *) deplibs="$deplibs $path" ;;
  51885. - esac
  51886. - done
  51887. - fi # link_all_deplibs != no
  51888. - fi # linkmode = lib
  51889. - done # for deplib in $libs
  51890. - dependency_libs="$newdependency_libs"
  51891. - if test "$pass" = dlpreopen; then
  51892. - # Link the dlpreopened libraries before other libraries
  51893. - for deplib in $save_deplibs; do
  51894. - deplibs="$deplib $deplibs"
  51895. - done
  51896. - fi
  51897. - if test "$pass" != dlopen; then
  51898. - if test "$pass" != conv; then
  51899. - # Make sure lib_search_path contains only unique directories.
  51900. - lib_search_path=
  51901. - for dir in $newlib_search_path; do
  51902. - case "$lib_search_path " in
  51903. - *" $dir "*) ;;
  51904. - *) lib_search_path="$lib_search_path $dir" ;;
  51905. - esac
  51906. - done
  51907. - newlib_search_path=
  51908. - fi
  51909. -
  51910. - if test "$linkmode,$pass" != "prog,link"; then
  51911. - vars="deplibs"
  51912. - else
  51913. - vars="compile_deplibs finalize_deplibs"
  51914. - fi
  51915. - for var in $vars dependency_libs; do
  51916. - # Add libraries to $var in reverse order
  51917. - eval tmp_libs=\"\$$var\"
  51918. - new_libs=
  51919. - for deplib in $tmp_libs; do
  51920. - # FIXME: Pedantically, this is the right thing to do, so
  51921. - # that some nasty dependency loop isn't accidentally
  51922. - # broken:
  51923. - #new_libs="$deplib $new_libs"
  51924. - # Pragmatically, this seems to cause very few problems in
  51925. - # practice:
  51926. - case $deplib in
  51927. - -L*) new_libs="$deplib $new_libs" ;;
  51928. - -R*) ;;
  51929. - *)
  51930. - # And here is the reason: when a library appears more
  51931. - # than once as an explicit dependence of a library, or
  51932. - # is implicitly linked in more than once by the
  51933. - # compiler, it is considered special, and multiple
  51934. - # occurrences thereof are not removed. Compare this
  51935. - # with having the same library being listed as a
  51936. - # dependency of multiple other libraries: in this case,
  51937. - # we know (pedantically, we assume) the library does not
  51938. - # need to be listed more than once, so we keep only the
  51939. - # last copy. This is not always right, but it is rare
  51940. - # enough that we require users that really mean to play
  51941. - # such unportable linking tricks to link the library
  51942. - # using -Wl,-lname, so that libtool does not consider it
  51943. - # for duplicate removal.
  51944. - case " $specialdeplibs " in
  51945. - *" $deplib "*) new_libs="$deplib $new_libs" ;;
  51946. - *)
  51947. - case " $new_libs " in
  51948. - *" $deplib "*) ;;
  51949. - *) new_libs="$deplib $new_libs" ;;
  51950. - esac
  51951. - ;;
  51952. - esac
  51953. - ;;
  51954. - esac
  51955. - done
  51956. - tmp_libs=
  51957. - for deplib in $new_libs; do
  51958. - case $deplib in
  51959. - -L*)
  51960. - case " $tmp_libs " in
  51961. - *" $deplib "*) ;;
  51962. - *) tmp_libs="$tmp_libs $deplib" ;;
  51963. - esac
  51964. - ;;
  51965. - *) tmp_libs="$tmp_libs $deplib" ;;
  51966. - esac
  51967. - done
  51968. - eval $var=\"$tmp_libs\"
  51969. - done # for var
  51970. - fi
  51971. - # Last step: remove runtime libs from dependency_libs
  51972. - # (they stay in deplibs)
  51973. - tmp_libs=
  51974. - for i in $dependency_libs ; do
  51975. - case " $predeps $postdeps $compiler_lib_search_path " in
  51976. - *" $i "*)
  51977. - i=""
  51978. - ;;
  51979. - esac
  51980. - if test -n "$i" ; then
  51981. - tmp_libs="$tmp_libs $i"
  51982. - fi
  51983. - done
  51984. - dependency_libs=$tmp_libs
  51985. - done # for pass
  51986. - if test "$linkmode" = prog; then
  51987. - dlfiles="$newdlfiles"
  51988. - dlprefiles="$newdlprefiles"
  51989. - fi
  51990. -
  51991. - case $linkmode in
  51992. - oldlib)
  51993. - if test -n "$deplibs"; then
  51994. - $echo "$modename: warning: \`-l' and \`-L' are ignored for archives" 1>&2
  51995. - fi
  51996. -
  51997. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  51998. - $echo "$modename: warning: \`-dlopen' is ignored for archives" 1>&2
  51999. - fi
  52000. -
  52001. - if test -n "$rpath"; then
  52002. - $echo "$modename: warning: \`-rpath' is ignored for archives" 1>&2
  52003. - fi
  52004. -
  52005. - if test -n "$xrpath"; then
  52006. - $echo "$modename: warning: \`-R' is ignored for archives" 1>&2
  52007. - fi
  52008. -
  52009. - if test -n "$vinfo"; then
  52010. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for archives" 1>&2
  52011. - fi
  52012. + *)
  52013. + func_warning "\`-dlopen' is ignored for non-libtool libraries and objects"
  52014. + continue
  52015. + ;;
  52016. + esac
  52017. - if test -n "$release"; then
  52018. - $echo "$modename: warning: \`-release' is ignored for archives" 1>&2
  52019. - fi
  52020. + # Get the absolute pathname.
  52021. + absdir=`cd "$dir" && pwd`
  52022. + test -n "$absdir" && dir="$absdir"
  52023. - if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  52024. - $echo "$modename: warning: \`-export-symbols' is ignored for archives" 1>&2
  52025. + # Now add the directory to shlibpath_var.
  52026. + if eval "test -z \"\$$shlibpath_var\""; then
  52027. + eval "$shlibpath_var=\"\$dir\""
  52028. + else
  52029. + eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  52030. fi
  52031. + done
  52032. - # Now set the variables for building old libraries.
  52033. - build_libtool_libs=no
  52034. - oldlibs="$output"
  52035. - objs="$objs$old_deplibs"
  52036. - ;;
  52037. + # This variable tells wrapper scripts just to set shlibpath_var
  52038. + # rather than running their programs.
  52039. + libtool_execute_magic="$magic"
  52040. - lib)
  52041. - # Make sure we only generate libraries of the form `libNAME.la'.
  52042. - case $outputname in
  52043. - lib*)
  52044. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//' -e 's/^lib//'`
  52045. - eval shared_ext=\"$shrext_cmds\"
  52046. - eval libname=\"$libname_spec\"
  52047. - ;;
  52048. + # Check if any of the arguments is a wrapper script.
  52049. + args=
  52050. + for file
  52051. + do
  52052. + case $file in
  52053. + -*) ;;
  52054. *)
  52055. - if test "$module" = no; then
  52056. - $echo "$modename: libtool library \`$output' must begin with \`lib'" 1>&2
  52057. - $echo "$help" 1>&2
  52058. - exit $EXIT_FAILURE
  52059. - fi
  52060. - if test "$need_lib_prefix" != no; then
  52061. - # Add the "lib" prefix for modules if required
  52062. - name=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  52063. - eval shared_ext=\"$shrext_cmds\"
  52064. - eval libname=\"$libname_spec\"
  52065. - else
  52066. - libname=`$echo "X$outputname" | $Xsed -e 's/\.la$//'`
  52067. + # Do a test to see if this is really a libtool program.
  52068. + if func_ltwrapper_script_p "$file"; then
  52069. + func_source "$file"
  52070. + # Transform arg to wrapped name.
  52071. + file="$progdir/$program"
  52072. + elif func_ltwrapper_executable_p "$file"; then
  52073. + func_ltwrapper_scriptname "$file"
  52074. + func_source "$func_ltwrapper_scriptname_result"
  52075. + # Transform arg to wrapped name.
  52076. + file="$progdir/$program"
  52077. fi
  52078. ;;
  52079. esac
  52080. + # Quote arguments (to preserve shell metacharacters).
  52081. + func_quote_for_eval "$file"
  52082. + args="$args $func_quote_for_eval_result"
  52083. + done
  52084. - if test -n "$objs"; then
  52085. - if test "$deplibs_check_method" != pass_all; then
  52086. - $echo "$modename: cannot build libtool library \`$output' from non-libtool objects on this host:$objs" 2>&1
  52087. - exit $EXIT_FAILURE
  52088. - else
  52089. - $echo
  52090. - $echo "*** Warning: Linking the shared library $output against the non-libtool"
  52091. - $echo "*** objects $objs is not portable!"
  52092. - libobjs="$libobjs $objs"
  52093. - fi
  52094. + if test "X$opt_dry_run" = Xfalse; then
  52095. + if test -n "$shlibpath_var"; then
  52096. + # Export the shlibpath_var.
  52097. + eval "export $shlibpath_var"
  52098. fi
  52099. - if test "$dlself" != no; then
  52100. - $echo "$modename: warning: \`-dlopen self' is ignored for libtool libraries" 1>&2
  52101. - fi
  52102. + # Restore saved environment variables
  52103. + for lt_var in LANG LANGUAGE LC_ALL LC_CTYPE LC_COLLATE LC_MESSAGES
  52104. + do
  52105. + eval "if test \"\${save_$lt_var+set}\" = set; then
  52106. + $lt_var=\$save_$lt_var; export $lt_var
  52107. + else
  52108. + $lt_unset $lt_var
  52109. + fi"
  52110. + done
  52111. - set dummy $rpath
  52112. - if test "$#" -gt 2; then
  52113. - $echo "$modename: warning: ignoring multiple \`-rpath's for a libtool library" 1>&2
  52114. + # Now prepare to actually exec the command.
  52115. + exec_cmd="\$cmd$args"
  52116. + else
  52117. + # Display what would be done.
  52118. + if test -n "$shlibpath_var"; then
  52119. + eval "\$ECHO \"\$shlibpath_var=\$$shlibpath_var\""
  52120. + $ECHO "export $shlibpath_var"
  52121. fi
  52122. - install_libdir="$2"
  52123. + $ECHO "$cmd$args"
  52124. + exit $EXIT_SUCCESS
  52125. + fi
  52126. +}
  52127. - oldlibs=
  52128. - if test -z "$rpath"; then
  52129. - if test "$build_libtool_libs" = yes; then
  52130. - # Building a libtool convenience library.
  52131. - # Some compilers have problems with a `.al' extension so
  52132. - # convenience libraries should have the same extension an
  52133. - # archive normally would.
  52134. - oldlibs="$output_objdir/$libname.$libext $oldlibs"
  52135. - build_libtool_libs=convenience
  52136. - build_old_libs=yes
  52137. - fi
  52138. +test "$mode" = execute && func_mode_execute ${1+"$@"}
  52139. - if test -n "$vinfo"; then
  52140. - $echo "$modename: warning: \`-version-info/-version-number' is ignored for convenience libraries" 1>&2
  52141. - fi
  52142. - if test -n "$release"; then
  52143. - $echo "$modename: warning: \`-release' is ignored for convenience libraries" 1>&2
  52144. - fi
  52145. - else
  52146. +# func_mode_finish arg...
  52147. +func_mode_finish ()
  52148. +{
  52149. + $opt_debug
  52150. + libdirs="$nonopt"
  52151. + admincmds=
  52152. - # Parse the version information argument.
  52153. - save_ifs="$IFS"; IFS=':'
  52154. - set dummy $vinfo 0 0 0
  52155. - IFS="$save_ifs"
  52156. + if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  52157. + for dir
  52158. + do
  52159. + libdirs="$libdirs $dir"
  52160. + done
  52161. - if test -n "$8"; then
  52162. - $echo "$modename: too many parameters to \`-version-info'" 1>&2
  52163. - $echo "$help" 1>&2
  52164. - exit $EXIT_FAILURE
  52165. + for libdir in $libdirs; do
  52166. + if test -n "$finish_cmds"; then
  52167. + # Do each command in the finish commands.
  52168. + func_execute_cmds "$finish_cmds" 'admincmds="$admincmds
  52169. +'"$cmd"'"'
  52170. + fi
  52171. + if test -n "$finish_eval"; then
  52172. + # Do the single finish_eval.
  52173. + eval cmds=\"$finish_eval\"
  52174. + $opt_dry_run || eval "$cmds" || admincmds="$admincmds
  52175. + $cmds"
  52176. fi
  52177. + done
  52178. + fi
  52179. - # convert absolute version numbers to libtool ages
  52180. - # this retains compatibility with .la files and attempts
  52181. - # to make the code below a bit more comprehensible
  52182. + # Exit here if they wanted silent mode.
  52183. + $opt_silent && exit $EXIT_SUCCESS
  52184. - case $vinfo_number in
  52185. - yes)
  52186. - number_major="$2"
  52187. - number_minor="$3"
  52188. - number_revision="$4"
  52189. - #
  52190. - # There are really only two kinds -- those that
  52191. - # use the current revision as the major version
  52192. - # and those that subtract age and use age as
  52193. - # a minor version. But, then there is irix
  52194. - # which has an extra 1 added just for fun
  52195. - #
  52196. - case $version_type in
  52197. - darwin|linux|osf|windows)
  52198. - current=`expr $number_major + $number_minor`
  52199. - age="$number_minor"
  52200. - revision="$number_revision"
  52201. - ;;
  52202. - freebsd-aout|freebsd-elf|sunos)
  52203. - current="$number_major"
  52204. - revision="$number_minor"
  52205. - age="0"
  52206. - ;;
  52207. - irix|nonstopux)
  52208. - current=`expr $number_major + $number_minor - 1`
  52209. - age="$number_minor"
  52210. - revision="$number_minor"
  52211. - ;;
  52212. - esac
  52213. - ;;
  52214. - no)
  52215. - current="$2"
  52216. - revision="$3"
  52217. - age="$4"
  52218. - ;;
  52219. - esac
  52220. -
  52221. - # Check that each of the things are valid numbers.
  52222. - case $current in
  52223. - [0-9]*) ;;
  52224. - *)
  52225. - $echo "$modename: CURRENT \`$current' is not a nonnegative integer" 1>&2
  52226. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52227. - exit $EXIT_FAILURE
  52228. - ;;
  52229. - esac
  52230. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  52231. + $ECHO "Libraries have been installed in:"
  52232. + for libdir in $libdirs; do
  52233. + $ECHO " $libdir"
  52234. + done
  52235. + $ECHO
  52236. + $ECHO "If you ever happen to want to link against installed libraries"
  52237. + $ECHO "in a given directory, LIBDIR, you must either use libtool, and"
  52238. + $ECHO "specify the full pathname of the library, or use the \`-LLIBDIR'"
  52239. + $ECHO "flag during linking and do at least one of the following:"
  52240. + if test -n "$shlibpath_var"; then
  52241. + $ECHO " - add LIBDIR to the \`$shlibpath_var' environment variable"
  52242. + $ECHO " during execution"
  52243. + fi
  52244. + if test -n "$runpath_var"; then
  52245. + $ECHO " - add LIBDIR to the \`$runpath_var' environment variable"
  52246. + $ECHO " during linking"
  52247. + fi
  52248. + if test -n "$hardcode_libdir_flag_spec"; then
  52249. + libdir=LIBDIR
  52250. + eval flag=\"$hardcode_libdir_flag_spec\"
  52251. - case $revision in
  52252. - [0-9]*) ;;
  52253. - *)
  52254. - $echo "$modename: REVISION \`$revision' is not a nonnegative integer" 1>&2
  52255. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52256. - exit $EXIT_FAILURE
  52257. - ;;
  52258. - esac
  52259. + $ECHO " - use the \`$flag' linker flag"
  52260. + fi
  52261. + if test -n "$admincmds"; then
  52262. + $ECHO " - have your system administrator run these commands:$admincmds"
  52263. + fi
  52264. + if test -f /etc/ld.so.conf; then
  52265. + $ECHO " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  52266. + fi
  52267. + $ECHO
  52268. - case $age in
  52269. - [0-9]*) ;;
  52270. - *)
  52271. - $echo "$modename: AGE \`$age' is not a nonnegative integer" 1>&2
  52272. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52273. - exit $EXIT_FAILURE
  52274. - ;;
  52275. - esac
  52276. + $ECHO "See any operating system documentation about shared libraries for"
  52277. + case $host in
  52278. + solaris2.[6789]|solaris2.1[0-9])
  52279. + $ECHO "more information, such as the ld(1), crle(1) and ld.so(8) manual"
  52280. + $ECHO "pages."
  52281. + ;;
  52282. + *)
  52283. + $ECHO "more information, such as the ld(1) and ld.so(8) manual pages."
  52284. + ;;
  52285. + esac
  52286. + $ECHO "X----------------------------------------------------------------------" | $Xsed
  52287. + exit $EXIT_SUCCESS
  52288. +}
  52289. - if test "$age" -gt "$current"; then
  52290. - $echo "$modename: AGE \`$age' is greater than the current interface number \`$current'" 1>&2
  52291. - $echo "$modename: \`$vinfo' is not valid version information" 1>&2
  52292. - exit $EXIT_FAILURE
  52293. - fi
  52294. +test "$mode" = finish && func_mode_finish ${1+"$@"}
  52295. - # Calculate the version variables.
  52296. - major=
  52297. - versuffix=
  52298. - verstring=
  52299. - case $version_type in
  52300. - none) ;;
  52301. - darwin)
  52302. - # Like Linux, but with the current version available in
  52303. - # verstring for coding it into the library header
  52304. - major=.`expr $current - $age`
  52305. - versuffix="$major.$age.$revision"
  52306. - # Darwin ld doesn't like 0 for these options...
  52307. - minor_current=`expr $current + 1`
  52308. - verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  52309. - ;;
  52310. +# func_mode_install arg...
  52311. +func_mode_install ()
  52312. +{
  52313. + $opt_debug
  52314. + # There may be an optional sh(1) argument at the beginning of
  52315. + # install_prog (especially on Windows NT).
  52316. + if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  52317. + # Allow the use of GNU shtool's install command.
  52318. + $ECHO "X$nonopt" | $GREP shtool >/dev/null; then
  52319. + # Aesthetically quote it.
  52320. + func_quote_for_eval "$nonopt"
  52321. + install_prog="$func_quote_for_eval_result "
  52322. + arg=$1
  52323. + shift
  52324. + else
  52325. + install_prog=
  52326. + arg=$nonopt
  52327. + fi
  52328. - freebsd-aout)
  52329. - major=".$current"
  52330. - versuffix=".$current.$revision";
  52331. - ;;
  52332. + # The real first argument should be the name of the installation program.
  52333. + # Aesthetically quote it.
  52334. + func_quote_for_eval "$arg"
  52335. + install_prog="$install_prog$func_quote_for_eval_result"
  52336. - freebsd-elf)
  52337. - major=".$current"
  52338. - versuffix=".$current";
  52339. - ;;
  52340. + # We need to accept at least all the BSD install flags.
  52341. + dest=
  52342. + files=
  52343. + opts=
  52344. + prev=
  52345. + install_type=
  52346. + isdir=no
  52347. + stripme=
  52348. + for arg
  52349. + do
  52350. + if test -n "$dest"; then
  52351. + files="$files $dest"
  52352. + dest=$arg
  52353. + continue
  52354. + fi
  52355. - irix | nonstopux)
  52356. - major=`expr $current - $age + 1`
  52357. + case $arg in
  52358. + -d) isdir=yes ;;
  52359. + -f)
  52360. + case " $install_prog " in
  52361. + *[\\\ /]cp\ *) ;;
  52362. + *) prev=$arg ;;
  52363. + esac
  52364. + ;;
  52365. + -g | -m | -o)
  52366. + prev=$arg
  52367. + ;;
  52368. + -s)
  52369. + stripme=" -s"
  52370. + continue
  52371. + ;;
  52372. + -*)
  52373. + ;;
  52374. + *)
  52375. + # If the previous option needed an argument, then skip it.
  52376. + if test -n "$prev"; then
  52377. + prev=
  52378. + else
  52379. + dest=$arg
  52380. + continue
  52381. + fi
  52382. + ;;
  52383. + esac
  52384. - case $version_type in
  52385. - nonstopux) verstring_prefix=nonstopux ;;
  52386. - *) verstring_prefix=sgi ;;
  52387. - esac
  52388. - verstring="$verstring_prefix$major.$revision"
  52389. + # Aesthetically quote the argument.
  52390. + func_quote_for_eval "$arg"
  52391. + install_prog="$install_prog $func_quote_for_eval_result"
  52392. + done
  52393. - # Add in all the interfaces that we are compatible with.
  52394. - loop=$revision
  52395. - while test "$loop" -ne 0; do
  52396. - iface=`expr $revision - $loop`
  52397. - loop=`expr $loop - 1`
  52398. - verstring="$verstring_prefix$major.$iface:$verstring"
  52399. - done
  52400. + test -z "$install_prog" && \
  52401. + func_fatal_help "you must specify an install program"
  52402. - # Before this point, $major must not contain `.'.
  52403. - major=.$major
  52404. - versuffix="$major.$revision"
  52405. - ;;
  52406. + test -n "$prev" && \
  52407. + func_fatal_help "the \`$prev' option requires an argument"
  52408. - linux)
  52409. - major=.`expr $current - $age`
  52410. - versuffix="$major.$age.$revision"
  52411. - ;;
  52412. + if test -z "$files"; then
  52413. + if test -z "$dest"; then
  52414. + func_fatal_help "no file or destination specified"
  52415. + else
  52416. + func_fatal_help "you must specify a destination"
  52417. + fi
  52418. + fi
  52419. - osf)
  52420. - major=.`expr $current - $age`
  52421. - versuffix=".$current.$age.$revision"
  52422. - verstring="$current.$age.$revision"
  52423. + # Strip any trailing slash from the destination.
  52424. + func_stripname '' '/' "$dest"
  52425. + dest=$func_stripname_result
  52426. - # Add in all the interfaces that we are compatible with.
  52427. - loop=$age
  52428. - while test "$loop" -ne 0; do
  52429. - iface=`expr $current - $loop`
  52430. - loop=`expr $loop - 1`
  52431. - verstring="$verstring:${iface}.0"
  52432. - done
  52433. + # Check to see that the destination is a directory.
  52434. + test -d "$dest" && isdir=yes
  52435. + if test "$isdir" = yes; then
  52436. + destdir="$dest"
  52437. + destname=
  52438. + else
  52439. + func_dirname_and_basename "$dest" "" "."
  52440. + destdir="$func_dirname_result"
  52441. + destname="$func_basename_result"
  52442. - # Make executables depend on our current version.
  52443. - verstring="$verstring:${current}.0"
  52444. + # Not a directory, so check to see that there is only one file specified.
  52445. + set dummy $files; shift
  52446. + test "$#" -gt 1 && \
  52447. + func_fatal_help "\`$dest' is not a directory"
  52448. + fi
  52449. + case $destdir in
  52450. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  52451. + *)
  52452. + for file in $files; do
  52453. + case $file in
  52454. + *.lo) ;;
  52455. + *)
  52456. + func_fatal_help "\`$destdir' must be an absolute directory name"
  52457. ;;
  52458. + esac
  52459. + done
  52460. + ;;
  52461. + esac
  52462. - sunos)
  52463. - major=".$current"
  52464. - versuffix=".$current.$revision"
  52465. - ;;
  52466. + # This variable tells wrapper scripts just to set variables rather
  52467. + # than running their programs.
  52468. + libtool_install_magic="$magic"
  52469. - windows)
  52470. - # Use '-' rather than '.', since we only want one
  52471. - # extension on DOS 8.3 filesystems.
  52472. - major=`expr $current - $age`
  52473. - versuffix="-$major"
  52474. - ;;
  52475. + staticlibs=
  52476. + future_libdirs=
  52477. + current_libdirs=
  52478. + for file in $files; do
  52479. - *)
  52480. - $echo "$modename: unknown library version type \`$version_type'" 1>&2
  52481. - $echo "Fatal configuration error. See the $PACKAGE docs for more information." 1>&2
  52482. - exit $EXIT_FAILURE
  52483. - ;;
  52484. - esac
  52485. + # Do each installation.
  52486. + case $file in
  52487. + *.$libext)
  52488. + # Do the static libraries later.
  52489. + staticlibs="$staticlibs $file"
  52490. + ;;
  52491. - # Clear the version info if we defaulted, and they specified a release.
  52492. - if test -z "$vinfo" && test -n "$release"; then
  52493. - major=
  52494. - case $version_type in
  52495. - darwin)
  52496. - # we can't check for "0.0" in archive_cmds due to quoting
  52497. - # problems, so we reset it completely
  52498. - verstring=
  52499. - ;;
  52500. - *)
  52501. - verstring="0.0"
  52502. - ;;
  52503. + *.la)
  52504. + # Check to see that this really is a libtool archive.
  52505. + func_lalib_unsafe_p "$file" \
  52506. + || func_fatal_help "\`$file' is not a valid libtool archive"
  52507. +
  52508. + library_names=
  52509. + old_library=
  52510. + relink_command=
  52511. + func_source "$file"
  52512. +
  52513. + # Add the libdir to current_libdirs if it is the destination.
  52514. + if test "X$destdir" = "X$libdir"; then
  52515. + case "$current_libdirs " in
  52516. + *" $libdir "*) ;;
  52517. + *) current_libdirs="$current_libdirs $libdir" ;;
  52518. + esac
  52519. + else
  52520. + # Note the libdir as a future libdir.
  52521. + case "$future_libdirs " in
  52522. + *" $libdir "*) ;;
  52523. + *) future_libdirs="$future_libdirs $libdir" ;;
  52524. esac
  52525. - if test "$need_version" = no; then
  52526. - versuffix=
  52527. - else
  52528. - versuffix=".0.0"
  52529. - fi
  52530. fi
  52531. - # Remove version info from name if versioning should be avoided
  52532. - if test "$avoid_version" = yes && test "$need_version" = no; then
  52533. - major=
  52534. - versuffix=
  52535. - verstring=""
  52536. - fi
  52537. + func_dirname "$file" "/" ""
  52538. + dir="$func_dirname_result"
  52539. + dir="$dir$objdir"
  52540. - # Check to see if the archive will have undefined symbols.
  52541. - if test "$allow_undefined" = yes; then
  52542. - if test "$allow_undefined_flag" = unsupported; then
  52543. - $echo "$modename: warning: undefined symbols not allowed in $host shared libraries" 1>&2
  52544. - build_libtool_libs=no
  52545. - build_old_libs=yes
  52546. + if test -n "$relink_command"; then
  52547. + # Determine the prefix the user has applied to our future dir.
  52548. + inst_prefix_dir=`$ECHO "X$destdir" | $Xsed -e "s%$libdir\$%%"`
  52549. +
  52550. + # Don't allow the user to place us outside of our expected
  52551. + # location b/c this prevents finding dependent libraries that
  52552. + # are installed to the same prefix.
  52553. + # At present, this check doesn't affect windows .dll's that
  52554. + # are installed into $libdir/../bin (currently, that works fine)
  52555. + # but it's something to keep an eye on.
  52556. + test "$inst_prefix_dir" = "$destdir" && \
  52557. + func_fatal_error "error: cannot install \`$file' to a directory not ending in $libdir"
  52558. +
  52559. + if test -n "$inst_prefix_dir"; then
  52560. + # Stick the inst_prefix_dir data into the link command.
  52561. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  52562. + else
  52563. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "s%@inst_prefix_dir@%%"`
  52564. fi
  52565. - else
  52566. - # Don't allow undefined symbols.
  52567. - allow_undefined_flag="$no_undefined_flag"
  52568. +
  52569. + func_warning "relinking \`$file'"
  52570. + func_show_eval "$relink_command" \
  52571. + 'func_fatal_error "error: relink \`$file'\'' with the above command before installing it"'
  52572. fi
  52573. - fi
  52574. - if test "$mode" != relink; then
  52575. - # Remove our outputs, but don't remove object files since they
  52576. - # may have been created when compiling PIC objects.
  52577. - removelist=
  52578. - tempremovelist=`$echo "$output_objdir/*"`
  52579. - for p in $tempremovelist; do
  52580. - case $p in
  52581. - *.$objext)
  52582. - ;;
  52583. - $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  52584. - if test "X$precious_files_regex" != "X"; then
  52585. - if echo $p | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  52586. - then
  52587. - continue
  52588. - fi
  52589. - fi
  52590. - removelist="$removelist $p"
  52591. - ;;
  52592. - *) ;;
  52593. + # See the names of the shared library.
  52594. + set dummy $library_names; shift
  52595. + if test -n "$1"; then
  52596. + realname="$1"
  52597. + shift
  52598. +
  52599. + srcname="$realname"
  52600. + test -n "$relink_command" && srcname="$realname"T
  52601. +
  52602. + # Install the shared library and build the symlinks.
  52603. + func_show_eval "$install_prog $dir/$srcname $destdir/$realname" \
  52604. + 'exit $?'
  52605. + tstripme="$stripme"
  52606. + case $host_os in
  52607. + cygwin* | mingw* | pw32* | cegcc*)
  52608. + case $realname in
  52609. + *.dll.a)
  52610. + tstripme=""
  52611. + ;;
  52612. + esac
  52613. + ;;
  52614. esac
  52615. - done
  52616. - if test -n "$removelist"; then
  52617. - $show "${rm}r $removelist"
  52618. - $run ${rm}r $removelist
  52619. + if test -n "$tstripme" && test -n "$striplib"; then
  52620. + func_show_eval "$striplib $destdir/$realname" 'exit $?'
  52621. + fi
  52622. +
  52623. + if test "$#" -gt 0; then
  52624. + # Delete the old symlinks, and create new ones.
  52625. + # Try `ln -sf' first, because the `ln' binary might depend on
  52626. + # the symlink we replace! Solaris /bin/ln does not understand -f,
  52627. + # so we also need to try rm && ln -s.
  52628. + for linkname
  52629. + do
  52630. + test "$linkname" != "$realname" \
  52631. + && func_show_eval "(cd $destdir && { $LN_S -f $realname $linkname || { $RM $linkname && $LN_S $realname $linkname; }; })"
  52632. + done
  52633. + fi
  52634. +
  52635. + # Do each command in the postinstall commands.
  52636. + lib="$destdir/$realname"
  52637. + func_execute_cmds "$postinstall_cmds" 'exit $?'
  52638. fi
  52639. - fi
  52640. - # Now set the variables for building old libraries.
  52641. - if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  52642. - oldlibs="$oldlibs $output_objdir/$libname.$libext"
  52643. + # Install the pseudo-library for information purposes.
  52644. + func_basename "$file"
  52645. + name="$func_basename_result"
  52646. + instname="$dir/$name"i
  52647. + func_show_eval "$install_prog $instname $destdir/$name" 'exit $?'
  52648. - # Transform .lo files to .o files.
  52649. - oldobjs="$objs "`$echo "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  52650. - fi
  52651. + # Maybe install the static library, too.
  52652. + test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  52653. + ;;
  52654. - # Eliminate all temporary directories.
  52655. - for path in $notinst_path; do
  52656. - lib_search_path=`$echo "$lib_search_path " | ${SED} -e 's% $path % %g'`
  52657. - deplibs=`$echo "$deplibs " | ${SED} -e 's% -L$path % %g'`
  52658. - dependency_libs=`$echo "$dependency_libs " | ${SED} -e 's% -L$path % %g'`
  52659. - done
  52660. + *.lo)
  52661. + # Install (i.e. copy) a libtool object.
  52662. - if test -n "$xrpath"; then
  52663. - # If the user specified any rpath flags, then add them.
  52664. - temp_xrpath=
  52665. - for libdir in $xrpath; do
  52666. - temp_xrpath="$temp_xrpath -R$libdir"
  52667. - case "$finalize_rpath " in
  52668. - *" $libdir "*) ;;
  52669. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  52670. - esac
  52671. - done
  52672. - if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  52673. - dependency_libs="$temp_xrpath $dependency_libs"
  52674. + # Figure out destination file name, if it wasn't already specified.
  52675. + if test -n "$destname"; then
  52676. + destfile="$destdir/$destname"
  52677. + else
  52678. + func_basename "$file"
  52679. + destfile="$func_basename_result"
  52680. + destfile="$destdir/$destfile"
  52681. fi
  52682. - fi
  52683. - # Make sure dlfiles contains only unique files that won't be dlpreopened
  52684. - old_dlfiles="$dlfiles"
  52685. - dlfiles=
  52686. - for lib in $old_dlfiles; do
  52687. - case " $dlprefiles $dlfiles " in
  52688. - *" $lib "*) ;;
  52689. - *) dlfiles="$dlfiles $lib" ;;
  52690. + # Deduce the name of the destination old-style object file.
  52691. + case $destfile in
  52692. + *.lo)
  52693. + func_lo2o "$destfile"
  52694. + staticdest=$func_lo2o_result
  52695. + ;;
  52696. + *.$objext)
  52697. + staticdest="$destfile"
  52698. + destfile=
  52699. + ;;
  52700. + *)
  52701. + func_fatal_help "cannot copy a libtool object to \`$destfile'"
  52702. + ;;
  52703. esac
  52704. - done
  52705. - # Make sure dlprefiles contains only unique files
  52706. - old_dlprefiles="$dlprefiles"
  52707. - dlprefiles=
  52708. - for lib in $old_dlprefiles; do
  52709. - case "$dlprefiles " in
  52710. - *" $lib "*) ;;
  52711. - *) dlprefiles="$dlprefiles $lib" ;;
  52712. - esac
  52713. - done
  52714. + # Install the libtool object if requested.
  52715. + test -n "$destfile" && \
  52716. + func_show_eval "$install_prog $file $destfile" 'exit $?'
  52717. - if test "$build_libtool_libs" = yes; then
  52718. - if test -n "$rpath"; then
  52719. - case $host in
  52720. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos*)
  52721. - # these systems don't actually have a c library (as such)!
  52722. - ;;
  52723. - *-*-rhapsody* | *-*-darwin1.[012])
  52724. - # Rhapsody C library is in the System framework
  52725. - deplibs="$deplibs -framework System"
  52726. + # Install the old object if enabled.
  52727. + if test "$build_old_libs" = yes; then
  52728. + # Deduce the name of the old-style object file.
  52729. + func_lo2o "$file"
  52730. + staticobj=$func_lo2o_result
  52731. + func_show_eval "$install_prog \$staticobj \$staticdest" 'exit $?'
  52732. + fi
  52733. + exit $EXIT_SUCCESS
  52734. + ;;
  52735. +
  52736. + *)
  52737. + # Figure out destination file name, if it wasn't already specified.
  52738. + if test -n "$destname"; then
  52739. + destfile="$destdir/$destname"
  52740. + else
  52741. + func_basename "$file"
  52742. + destfile="$func_basename_result"
  52743. + destfile="$destdir/$destfile"
  52744. + fi
  52745. +
  52746. + # If the file is missing, and there is a .exe on the end, strip it
  52747. + # because it is most likely a libtool script we actually want to
  52748. + # install
  52749. + stripped_ext=""
  52750. + case $file in
  52751. + *.exe)
  52752. + if test ! -f "$file"; then
  52753. + func_stripname '' '.exe' "$file"
  52754. + file=$func_stripname_result
  52755. + stripped_ext=".exe"
  52756. + fi
  52757. ;;
  52758. - *-*-netbsd*)
  52759. - # Don't link with libc until the a.out ld.so is fixed.
  52760. + esac
  52761. +
  52762. + # Do a test to see if this is really a libtool program.
  52763. + case $host in
  52764. + *cygwin* | *mingw*)
  52765. + if func_ltwrapper_executable_p "$file"; then
  52766. + func_ltwrapper_scriptname "$file"
  52767. + wrapper=$func_ltwrapper_scriptname_result
  52768. + else
  52769. + func_stripname '' '.exe' "$file"
  52770. + wrapper=$func_stripname_result
  52771. + fi
  52772. ;;
  52773. - *-*-openbsd* | *-*-freebsd*)
  52774. - # Do not include libc due to us having libc/libc_r.
  52775. - test "X$arg" = "X-lc" && continue
  52776. + *)
  52777. + wrapper=$file
  52778. ;;
  52779. - *)
  52780. - # Add libc to deplibs on all other systems if necessary.
  52781. - if test "$build_libtool_need_lc" = "yes"; then
  52782. - deplibs="$deplibs -lc"
  52783. + esac
  52784. + if func_ltwrapper_script_p "$wrapper"; then
  52785. + notinst_deplibs=
  52786. + relink_command=
  52787. +
  52788. + func_source "$wrapper"
  52789. +
  52790. + # Check the variables that should have been set.
  52791. + test -z "$generated_by_libtool_version" && \
  52792. + func_fatal_error "invalid libtool wrapper script \`$wrapper'"
  52793. +
  52794. + finalize=yes
  52795. + for lib in $notinst_deplibs; do
  52796. + # Check to see that each library is installed.
  52797. + libdir=
  52798. + if test -f "$lib"; then
  52799. + func_source "$lib"
  52800. fi
  52801. - ;;
  52802. - esac
  52803. - fi
  52804. + libfile="$libdir/"`$ECHO "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  52805. + if test -n "$libdir" && test ! -f "$libfile"; then
  52806. + func_warning "\`$lib' has not been installed in \`$libdir'"
  52807. + finalize=no
  52808. + fi
  52809. + done
  52810. - # Transform deplibs into only deplibs that can be linked in shared.
  52811. - name_save=$name
  52812. - libname_save=$libname
  52813. - release_save=$release
  52814. - versuffix_save=$versuffix
  52815. - major_save=$major
  52816. - # I'm not sure if I'm treating the release correctly. I think
  52817. - # release should show up in the -l (ie -lgmp5) so we don't want to
  52818. - # add it in twice. Is that correct?
  52819. - release=""
  52820. - versuffix=""
  52821. - major=""
  52822. - newdeplibs=
  52823. - droppeddeps=no
  52824. - case $deplibs_check_method in
  52825. - pass_all)
  52826. - # Don't check for shared/static. Everything works.
  52827. - # This might be a little naive. We might want to check
  52828. - # whether the library exists or not. But this is on
  52829. - # osf3 & osf4 and I'm not really sure... Just
  52830. - # implementing what was already the behavior.
  52831. - newdeplibs=$deplibs
  52832. - ;;
  52833. - test_compile)
  52834. - # This code stresses the "libraries are programs" paradigm to its
  52835. - # limits. Maybe even breaks it. We compile a program, linking it
  52836. - # against the deplibs as a proxy for the library. Then we can check
  52837. - # whether they linked in statically or dynamically with ldd.
  52838. - $rm conftest.c
  52839. - cat > conftest.c <<EOF
  52840. - int main() { return 0; }
  52841. -EOF
  52842. - $rm conftest
  52843. - $LTCC -o conftest conftest.c $deplibs
  52844. - if test "$?" -eq 0 ; then
  52845. - ldd_output=`ldd conftest`
  52846. - for i in $deplibs; do
  52847. - name="`expr $i : '-l\(.*\)'`"
  52848. - # If $name is empty we are operating on a -L argument.
  52849. - if test "$name" != "" && test "$name" -ne "0"; then
  52850. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52851. - case " $predeps $postdeps " in
  52852. - *" $i "*)
  52853. - newdeplibs="$newdeplibs $i"
  52854. - i=""
  52855. - ;;
  52856. - esac
  52857. + relink_command=
  52858. + func_source "$wrapper"
  52859. +
  52860. + outputname=
  52861. + if test "$fast_install" = no && test -n "$relink_command"; then
  52862. + $opt_dry_run || {
  52863. + if test "$finalize" = yes; then
  52864. + tmpdir=`func_mktempdir`
  52865. + func_basename "$file$stripped_ext"
  52866. + file="$func_basename_result"
  52867. + outputname="$tmpdir/$file"
  52868. + # Replace the output file specification.
  52869. + relink_command=`$ECHO "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  52870. +
  52871. + $opt_silent || {
  52872. + func_quote_for_expand "$relink_command"
  52873. + eval "func_echo $func_quote_for_expand_result"
  52874. + }
  52875. + if eval "$relink_command"; then :
  52876. + else
  52877. + func_error "error: relink \`$file' with the above command before installing it"
  52878. + $opt_dry_run || ${RM}r "$tmpdir"
  52879. + continue
  52880. fi
  52881. - if test -n "$i" ; then
  52882. - libname=`eval \\$echo \"$libname_spec\"`
  52883. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  52884. - set dummy $deplib_matches
  52885. - deplib_match=$2
  52886. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52887. - newdeplibs="$newdeplibs $i"
  52888. - else
  52889. - droppeddeps=yes
  52890. - $echo
  52891. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  52892. - $echo "*** I have the capability to make that library automatically link in when"
  52893. - $echo "*** you link to this library. But I can only do this if you have a"
  52894. - $echo "*** shared version of the library, which I believe you do not have"
  52895. - $echo "*** because a test_compile did reveal that the linker did not use it for"
  52896. - $echo "*** its dynamic dependency list that programs get resolved with at runtime."
  52897. - fi
  52898. - fi
  52899. + file="$outputname"
  52900. else
  52901. - newdeplibs="$newdeplibs $i"
  52902. + func_warning "cannot relink \`$file'"
  52903. fi
  52904. - done
  52905. + }
  52906. else
  52907. - # Error occurred in the first compile. Let's try to salvage
  52908. - # the situation: Compile a separate program for each library.
  52909. - for i in $deplibs; do
  52910. - name="`expr $i : '-l\(.*\)'`"
  52911. - # If $name is empty we are operating on a -L argument.
  52912. - if test "$name" != "" && test "$name" != "0"; then
  52913. - $rm conftest
  52914. - $LTCC -o conftest conftest.c $i
  52915. - # Did it work?
  52916. - if test "$?" -eq 0 ; then
  52917. - ldd_output=`ldd conftest`
  52918. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52919. - case " $predeps $postdeps " in
  52920. - *" $i "*)
  52921. - newdeplibs="$newdeplibs $i"
  52922. - i=""
  52923. - ;;
  52924. - esac
  52925. - fi
  52926. - if test -n "$i" ; then
  52927. - libname=`eval \\$echo \"$libname_spec\"`
  52928. - deplib_matches=`eval \\$echo \"$library_names_spec\"`
  52929. - set dummy $deplib_matches
  52930. - deplib_match=$2
  52931. - if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  52932. - newdeplibs="$newdeplibs $i"
  52933. - else
  52934. - droppeddeps=yes
  52935. - $echo
  52936. - $echo "*** Warning: dynamic linker does not accept needed library $i."
  52937. - $echo "*** I have the capability to make that library automatically link in when"
  52938. - $echo "*** you link to this library. But I can only do this if you have a"
  52939. - $echo "*** shared version of the library, which you do not appear to have"
  52940. - $echo "*** because a test_compile did reveal that the linker did not use this one"
  52941. - $echo "*** as a dynamic dependency that programs can get resolved with at runtime."
  52942. - fi
  52943. - fi
  52944. - else
  52945. - droppeddeps=yes
  52946. - $echo
  52947. - $echo "*** Warning! Library $i is needed by this library but I was not able to"
  52948. - $echo "*** make it link in! You will probably need to install it or some"
  52949. - $echo "*** library that it depends on before this library will be fully"
  52950. - $echo "*** functional. Installing it before continuing would be even better."
  52951. - fi
  52952. - else
  52953. - newdeplibs="$newdeplibs $i"
  52954. - fi
  52955. - done
  52956. - fi
  52957. - ;;
  52958. - file_magic*)
  52959. - set dummy $deplibs_check_method
  52960. - file_magic_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  52961. - for a_deplib in $deplibs; do
  52962. - name="`expr $a_deplib : '-l\(.*\)'`"
  52963. - # If $name is empty we are operating on a -L argument.
  52964. - if test "$name" != "" && test "$name" != "0"; then
  52965. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  52966. - case " $predeps $postdeps " in
  52967. - *" $a_deplib "*)
  52968. - newdeplibs="$newdeplibs $a_deplib"
  52969. - a_deplib=""
  52970. - ;;
  52971. - esac
  52972. - fi
  52973. - if test -n "$a_deplib" ; then
  52974. - libname=`eval \\$echo \"$libname_spec\"`
  52975. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  52976. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  52977. - for potent_lib in $potential_libs; do
  52978. - # Follow soft links.
  52979. - if ls -lLd "$potent_lib" 2>/dev/null \
  52980. - | grep " -> " >/dev/null; then
  52981. - continue
  52982. - fi
  52983. - # The statement above tries to avoid entering an
  52984. - # endless loop below, in case of cyclic links.
  52985. - # We might still enter an endless loop, since a link
  52986. - # loop can be closed while we follow links,
  52987. - # but so what?
  52988. - potlib="$potent_lib"
  52989. - while test -h "$potlib" 2>/dev/null; do
  52990. - potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  52991. - case $potliblink in
  52992. - [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  52993. - *) potlib=`$echo "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  52994. - esac
  52995. - done
  52996. - if eval $file_magic_cmd \"\$potlib\" 2>/dev/null \
  52997. - | ${SED} 10q \
  52998. - | $EGREP "$file_magic_regex" > /dev/null; then
  52999. - newdeplibs="$newdeplibs $a_deplib"
  53000. - a_deplib=""
  53001. - break 2
  53002. - fi
  53003. - done
  53004. - done
  53005. - fi
  53006. - if test -n "$a_deplib" ; then
  53007. - droppeddeps=yes
  53008. - $echo
  53009. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  53010. - $echo "*** I have the capability to make that library automatically link in when"
  53011. - $echo "*** you link to this library. But I can only do this if you have a"
  53012. - $echo "*** shared version of the library, which you do not appear to have"
  53013. - $echo "*** because I did check the linker path looking for a file starting"
  53014. - if test -z "$potlib" ; then
  53015. - $echo "*** with $libname but no candidates were found. (...for file magic test)"
  53016. - else
  53017. - $echo "*** with $libname and none of the candidates passed a file format test"
  53018. - $echo "*** using a file magic. Last file checked: $potlib"
  53019. - fi
  53020. - fi
  53021. - else
  53022. - # Add a -L argument.
  53023. - newdeplibs="$newdeplibs $a_deplib"
  53024. - fi
  53025. - done # Gone through all deplibs.
  53026. - ;;
  53027. - match_pattern*)
  53028. - set dummy $deplibs_check_method
  53029. - match_pattern_regex=`expr "$deplibs_check_method" : "$2 \(.*\)"`
  53030. - for a_deplib in $deplibs; do
  53031. - name="`expr $a_deplib : '-l\(.*\)'`"
  53032. - # If $name is empty we are operating on a -L argument.
  53033. - if test -n "$name" && test "$name" != "0"; then
  53034. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53035. - case " $predeps $postdeps " in
  53036. - *" $a_deplib "*)
  53037. - newdeplibs="$newdeplibs $a_deplib"
  53038. - a_deplib=""
  53039. - ;;
  53040. - esac
  53041. - fi
  53042. - if test -n "$a_deplib" ; then
  53043. - libname=`eval \\$echo \"$libname_spec\"`
  53044. - for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  53045. - potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  53046. - for potent_lib in $potential_libs; do
  53047. - potlib="$potent_lib" # see symlink-check above in file_magic test
  53048. - if eval $echo \"$potent_lib\" 2>/dev/null \
  53049. - | ${SED} 10q \
  53050. - | $EGREP "$match_pattern_regex" > /dev/null; then
  53051. - newdeplibs="$newdeplibs $a_deplib"
  53052. - a_deplib=""
  53053. - break 2
  53054. - fi
  53055. - done
  53056. - done
  53057. - fi
  53058. - if test -n "$a_deplib" ; then
  53059. - droppeddeps=yes
  53060. - $echo
  53061. - $echo "*** Warning: linker path does not have real file for library $a_deplib."
  53062. - $echo "*** I have the capability to make that library automatically link in when"
  53063. - $echo "*** you link to this library. But I can only do this if you have a"
  53064. - $echo "*** shared version of the library, which you do not appear to have"
  53065. - $echo "*** because I did check the linker path looking for a file starting"
  53066. - if test -z "$potlib" ; then
  53067. - $echo "*** with $libname but no candidates were found. (...for regex pattern test)"
  53068. - else
  53069. - $echo "*** with $libname and none of the candidates passed a file format test"
  53070. - $echo "*** using a regex pattern. Last file checked: $potlib"
  53071. - fi
  53072. - fi
  53073. - else
  53074. - # Add a -L argument.
  53075. - newdeplibs="$newdeplibs $a_deplib"
  53076. - fi
  53077. - done # Gone through all deplibs.
  53078. - ;;
  53079. - none | unknown | *)
  53080. - newdeplibs=""
  53081. - tmp_deplibs=`$echo "X $deplibs" | $Xsed -e 's/ -lc$//' \
  53082. - -e 's/ -[LR][^ ]*//g'`
  53083. - if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  53084. - for i in $predeps $postdeps ; do
  53085. - # can't use Xsed below, because $i might contain '/'
  53086. - tmp_deplibs=`$echo "X $tmp_deplibs" | ${SED} -e "1s,^X,," -e "s,$i,,"`
  53087. - done
  53088. - fi
  53089. - if $echo "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' \
  53090. - | grep . >/dev/null; then
  53091. - $echo
  53092. - if test "X$deplibs_check_method" = "Xnone"; then
  53093. - $echo "*** Warning: inter-library dependencies are not supported in this platform."
  53094. - else
  53095. - $echo "*** Warning: inter-library dependencies are not known to be supported."
  53096. - fi
  53097. - $echo "*** All declared inter-library dependencies are being dropped."
  53098. - droppeddeps=yes
  53099. + # Install the binary that we compiled earlier.
  53100. + file=`$ECHO "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  53101. fi
  53102. + fi
  53103. +
  53104. + # remove .exe since cygwin /usr/bin/install will append another
  53105. + # one anyway
  53106. + case $install_prog,$host in
  53107. + */usr/bin/install*,*cygwin*)
  53108. + case $file:$destfile in
  53109. + *.exe:*.exe)
  53110. + # this is ok
  53111. + ;;
  53112. + *.exe:*)
  53113. + destfile=$destfile.exe
  53114. + ;;
  53115. + *:*.exe)
  53116. + func_stripname '' '.exe' "$destfile"
  53117. + destfile=$func_stripname_result
  53118. + ;;
  53119. + esac
  53120. ;;
  53121. esac
  53122. - versuffix=$versuffix_save
  53123. - major=$major_save
  53124. - release=$release_save
  53125. - libname=$libname_save
  53126. - name=$name_save
  53127. + func_show_eval "$install_prog\$stripme \$file \$destfile" 'exit $?'
  53128. + $opt_dry_run || if test -n "$outputname"; then
  53129. + ${RM}r "$tmpdir"
  53130. + fi
  53131. + ;;
  53132. + esac
  53133. + done
  53134. - case $host in
  53135. - *-*-rhapsody* | *-*-darwin1.[012])
  53136. - # On Rhapsody replace the C library is the System framework
  53137. - newdeplibs=`$echo "X $newdeplibs" | $Xsed -e 's/ -lc / -framework System /'`
  53138. - ;;
  53139. - esac
  53140. + for file in $staticlibs; do
  53141. + func_basename "$file"
  53142. + name="$func_basename_result"
  53143. - if test "$droppeddeps" = yes; then
  53144. - if test "$module" = yes; then
  53145. - $echo
  53146. - $echo "*** Warning: libtool could not satisfy all declared inter-library"
  53147. - $echo "*** dependencies of module $libname. Therefore, libtool will create"
  53148. - $echo "*** a static module, that should work as long as the dlopening"
  53149. - $echo "*** application is linked with the -dlopen flag."
  53150. - if test -z "$global_symbol_pipe"; then
  53151. - $echo
  53152. - $echo "*** However, this would only work if libtool was able to extract symbol"
  53153. - $echo "*** lists from a program, using \`nm' or equivalent, but libtool could"
  53154. - $echo "*** not find such a program. So, this module is probably useless."
  53155. - $echo "*** \`nm' from GNU binutils and a full rebuild may help."
  53156. - fi
  53157. - if test "$build_old_libs" = no; then
  53158. - oldlibs="$output_objdir/$libname.$libext"
  53159. - build_libtool_libs=module
  53160. - build_old_libs=yes
  53161. - else
  53162. - build_libtool_libs=no
  53163. - fi
  53164. - else
  53165. - $echo "*** The inter-library dependencies that have been dropped here will be"
  53166. - $echo "*** automatically added whenever a program is linked with this library"
  53167. - $echo "*** or is declared to -dlopen it."
  53168. + # Set up the ranlib parameters.
  53169. + oldlib="$destdir/$name"
  53170. - if test "$allow_undefined" = no; then
  53171. - $echo
  53172. - $echo "*** Since this library must not contain undefined symbols,"
  53173. - $echo "*** because either the platform does not support them or"
  53174. - $echo "*** it was explicitly requested with -no-undefined,"
  53175. - $echo "*** libtool will only create a static version of it."
  53176. - if test "$build_old_libs" = no; then
  53177. - oldlibs="$output_objdir/$libname.$libext"
  53178. - build_libtool_libs=module
  53179. - build_old_libs=yes
  53180. - else
  53181. - build_libtool_libs=no
  53182. - fi
  53183. - fi
  53184. - fi
  53185. - fi
  53186. - # Done checking deplibs!
  53187. - deplibs=$newdeplibs
  53188. + func_show_eval "$install_prog \$file \$oldlib" 'exit $?'
  53189. +
  53190. + if test -n "$stripme" && test -n "$old_striplib"; then
  53191. + func_show_eval "$old_striplib $oldlib" 'exit $?'
  53192. fi
  53193. - # All the library-specific variables (install_libdir is set above).
  53194. - library_names=
  53195. - old_library=
  53196. - dlname=
  53197. + # Do each command in the postinstall commands.
  53198. + func_execute_cmds "$old_postinstall_cmds" 'exit $?'
  53199. + done
  53200. - # Test again, we may have decided not to build it any more
  53201. - if test "$build_libtool_libs" = yes; then
  53202. - if test "$hardcode_into_libs" = yes; then
  53203. - # Hardcode the library paths
  53204. - hardcode_libdirs=
  53205. - dep_rpath=
  53206. - rpath="$finalize_rpath"
  53207. - test "$mode" != relink && rpath="$compile_rpath$rpath"
  53208. - for libdir in $rpath; do
  53209. - if test -n "$hardcode_libdir_flag_spec"; then
  53210. - if test -n "$hardcode_libdir_separator"; then
  53211. - if test -z "$hardcode_libdirs"; then
  53212. - hardcode_libdirs="$libdir"
  53213. - else
  53214. - # Just accumulate the unique libdirs.
  53215. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  53216. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  53217. - ;;
  53218. - *)
  53219. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  53220. - ;;
  53221. - esac
  53222. - fi
  53223. - else
  53224. - eval flag=\"$hardcode_libdir_flag_spec\"
  53225. - dep_rpath="$dep_rpath $flag"
  53226. - fi
  53227. - elif test -n "$runpath_var"; then
  53228. - case "$perm_rpath " in
  53229. - *" $libdir "*) ;;
  53230. - *) perm_rpath="$perm_rpath $libdir" ;;
  53231. - esac
  53232. - fi
  53233. - done
  53234. - # Substitute the hardcoded libdirs into the rpath.
  53235. - if test -n "$hardcode_libdir_separator" &&
  53236. - test -n "$hardcode_libdirs"; then
  53237. - libdir="$hardcode_libdirs"
  53238. - if test -n "$hardcode_libdir_flag_spec_ld"; then
  53239. - eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  53240. - else
  53241. - eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  53242. - fi
  53243. - fi
  53244. - if test -n "$runpath_var" && test -n "$perm_rpath"; then
  53245. - # We should set the runpath_var.
  53246. - rpath=
  53247. - for dir in $perm_rpath; do
  53248. - rpath="$rpath$dir:"
  53249. - done
  53250. - eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  53251. - fi
  53252. - test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  53253. - fi
  53254. + test -n "$future_libdirs" && \
  53255. + func_warning "remember to run \`$progname --finish$future_libdirs'"
  53256. - shlibpath="$finalize_shlibpath"
  53257. - test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  53258. - if test -n "$shlibpath"; then
  53259. - eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  53260. - fi
  53261. + if test -n "$current_libdirs"; then
  53262. + # Maybe just do a dry run.
  53263. + $opt_dry_run && current_libdirs=" -n$current_libdirs"
  53264. + exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  53265. + else
  53266. + exit $EXIT_SUCCESS
  53267. + fi
  53268. +}
  53269. - # Get the real and link names of the library.
  53270. - eval shared_ext=\"$shrext_cmds\"
  53271. - eval library_names=\"$library_names_spec\"
  53272. - set dummy $library_names
  53273. - realname="$2"
  53274. - shift; shift
  53275. +test "$mode" = install && func_mode_install ${1+"$@"}
  53276. - if test -n "$soname_spec"; then
  53277. - eval soname=\"$soname_spec\"
  53278. - else
  53279. - soname="$realname"
  53280. - fi
  53281. - if test -z "$dlname"; then
  53282. - dlname=$soname
  53283. - fi
  53284. - lib="$output_objdir/$realname"
  53285. - for link
  53286. - do
  53287. - linknames="$linknames $link"
  53288. - done
  53289. +# func_generate_dlsyms outputname originator pic_p
  53290. +# Extract symbols from dlprefiles and create ${outputname}S.o with
  53291. +# a dlpreopen symbol table.
  53292. +func_generate_dlsyms ()
  53293. +{
  53294. + $opt_debug
  53295. + my_outputname="$1"
  53296. + my_originator="$2"
  53297. + my_pic_p="${3-no}"
  53298. + my_prefix=`$ECHO "$my_originator" | sed 's%[^a-zA-Z0-9]%_%g'`
  53299. + my_dlsyms=
  53300. +
  53301. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53302. + if test -n "$NM" && test -n "$global_symbol_pipe"; then
  53303. + my_dlsyms="${my_outputname}S.c"
  53304. + else
  53305. + func_error "not configured to extract global symbols from dlpreopened files"
  53306. + fi
  53307. + fi
  53308. - # Use standard objects if they are pic
  53309. - test -z "$pic_flag" && libobjs=`$echo "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53310. + if test -n "$my_dlsyms"; then
  53311. + case $my_dlsyms in
  53312. + "") ;;
  53313. + *.c)
  53314. + # Discover the nlist of each of the dlfiles.
  53315. + nlist="$output_objdir/${my_outputname}.nm"
  53316. - # Prepare the list of exported symbols
  53317. - if test -z "$export_symbols"; then
  53318. - if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  53319. - $show "generating symbol list for \`$libname.la'"
  53320. - export_symbols="$output_objdir/$libname.exp"
  53321. - $run $rm $export_symbols
  53322. - cmds=$export_symbols_cmds
  53323. - save_ifs="$IFS"; IFS='~'
  53324. - for cmd in $cmds; do
  53325. - IFS="$save_ifs"
  53326. - eval cmd=\"$cmd\"
  53327. - if len=`expr "X$cmd" : ".*"` &&
  53328. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  53329. - $show "$cmd"
  53330. - $run eval "$cmd" || exit $?
  53331. - skipped_export=false
  53332. - else
  53333. - # The command line is too long to execute in one step.
  53334. - $show "using reloadable object file for export list..."
  53335. - skipped_export=:
  53336. - fi
  53337. - done
  53338. - IFS="$save_ifs"
  53339. - if test -n "$export_symbols_regex"; then
  53340. - $show "$EGREP -e \"$export_symbols_regex\" \"$export_symbols\" > \"${export_symbols}T\""
  53341. - $run eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  53342. - $show "$mv \"${export_symbols}T\" \"$export_symbols\""
  53343. - $run eval '$mv "${export_symbols}T" "$export_symbols"'
  53344. - fi
  53345. - fi
  53346. - fi
  53347. + func_show_eval "$RM $nlist ${nlist}S ${nlist}T"
  53348. - if test -n "$export_symbols" && test -n "$include_expsyms"; then
  53349. - $run eval '$echo "X$include_expsyms" | $SP2NL >> "$export_symbols"'
  53350. - fi
  53351. + # Parse the name list into a source file.
  53352. + func_verbose "creating $output_objdir/$my_dlsyms"
  53353. - tmp_deplibs=
  53354. - for test_deplib in $deplibs; do
  53355. - case " $convenience " in
  53356. - *" $test_deplib "*) ;;
  53357. - *)
  53358. - tmp_deplibs="$tmp_deplibs $test_deplib"
  53359. - ;;
  53360. - esac
  53361. - done
  53362. - deplibs="$tmp_deplibs"
  53363. + $opt_dry_run || $ECHO > "$output_objdir/$my_dlsyms" "\
  53364. +/* $my_dlsyms - symbol resolution table for \`$my_outputname' dlsym emulation. */
  53365. +/* Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION */
  53366. - if test -n "$convenience"; then
  53367. - if test -n "$whole_archive_flag_spec"; then
  53368. - save_libobjs=$libobjs
  53369. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  53370. - else
  53371. - gentop="$output_objdir/${outputname}x"
  53372. - $show "${rm}r $gentop"
  53373. - $run ${rm}r "$gentop"
  53374. - $show "$mkdir $gentop"
  53375. - $run $mkdir "$gentop"
  53376. - status=$?
  53377. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  53378. - exit $status
  53379. - fi
  53380. - generated="$generated $gentop"
  53381. -
  53382. - for xlib in $convenience; do
  53383. - # Extract the objects.
  53384. - case $xlib in
  53385. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  53386. - *) xabs=`pwd`"/$xlib" ;;
  53387. - esac
  53388. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  53389. - xdir="$gentop/$xlib"
  53390. +#ifdef __cplusplus
  53391. +extern \"C\" {
  53392. +#endif
  53393. - $show "${rm}r $xdir"
  53394. - $run ${rm}r "$xdir"
  53395. - $show "$mkdir $xdir"
  53396. - $run $mkdir "$xdir"
  53397. - status=$?
  53398. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  53399. - exit $status
  53400. - fi
  53401. - # We will extract separately just the conflicting names and we will no
  53402. - # longer touch any unique names. It is faster to leave these extract
  53403. - # automatically by $AR in one run.
  53404. - $show "(cd $xdir && $AR x $xabs)"
  53405. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  53406. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  53407. - :
  53408. - else
  53409. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  53410. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  53411. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  53412. - do
  53413. - i=1
  53414. - while test "$i" -le "$count"
  53415. - do
  53416. - # Put our $i before any first dot (extension)
  53417. - # Never overwrite any file
  53418. - name_to="$name"
  53419. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  53420. - do
  53421. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  53422. - done
  53423. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  53424. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  53425. - i=`expr $i + 1`
  53426. - done
  53427. - done
  53428. - fi
  53429. +/* External symbol declarations for the compiler. */\
  53430. +"
  53431. - libobjs="$libobjs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  53432. - done
  53433. - fi
  53434. - fi
  53435. + if test "$dlself" = yes; then
  53436. + func_verbose "generating symbol list for \`$output'"
  53437. - if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  53438. - eval flag=\"$thread_safe_flag_spec\"
  53439. - linker_flags="$linker_flags $flag"
  53440. - fi
  53441. + $opt_dry_run || echo ': @PROGRAM@ ' > "$nlist"
  53442. - # Make a backup of the uninstalled library when relinking
  53443. - if test "$mode" = relink; then
  53444. - $run eval '(cd $output_objdir && $rm ${realname}U && $mv $realname ${realname}U)' || exit $?
  53445. - fi
  53446. + # Add our own program objects to the symbol list.
  53447. + progfiles=`$ECHO "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  53448. + for progfile in $progfiles; do
  53449. + func_verbose "extracting global C symbols from \`$progfile'"
  53450. + $opt_dry_run || eval "$NM $progfile | $global_symbol_pipe >> '$nlist'"
  53451. + done
  53452. - # Do each of the archive commands.
  53453. - if test "$module" = yes && test -n "$module_cmds" ; then
  53454. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  53455. - eval test_cmds=\"$module_expsym_cmds\"
  53456. - cmds=$module_expsym_cmds
  53457. + if test -n "$exclude_expsyms"; then
  53458. + $opt_dry_run || {
  53459. + eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  53460. + eval '$MV "$nlist"T "$nlist"'
  53461. + }
  53462. + fi
  53463. +
  53464. + if test -n "$export_symbols_regex"; then
  53465. + $opt_dry_run || {
  53466. + eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  53467. + eval '$MV "$nlist"T "$nlist"'
  53468. + }
  53469. + fi
  53470. +
  53471. + # Prepare the list of exported symbols
  53472. + if test -z "$export_symbols"; then
  53473. + export_symbols="$output_objdir/$outputname.exp"
  53474. + $opt_dry_run || {
  53475. + $RM $export_symbols
  53476. + eval "${SED} -n -e '/^: @PROGRAM@ $/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  53477. + case $host in
  53478. + *cygwin* | *mingw* | *cegcc* )
  53479. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53480. + eval 'cat "$export_symbols" >> "$output_objdir/$outputname.def"'
  53481. + ;;
  53482. + esac
  53483. + }
  53484. else
  53485. - eval test_cmds=\"$module_cmds\"
  53486. - cmds=$module_cmds
  53487. - fi
  53488. - else
  53489. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  53490. - eval test_cmds=\"$archive_expsym_cmds\"
  53491. - cmds=$archive_expsym_cmds
  53492. - else
  53493. - eval test_cmds=\"$archive_cmds\"
  53494. - cmds=$archive_cmds
  53495. + $opt_dry_run || {
  53496. + eval "${SED} -e 's/\([].[*^$]\)/\\\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$outputname.exp"'
  53497. + eval '$GREP -f "$output_objdir/$outputname.exp" < "$nlist" > "$nlist"T'
  53498. + eval '$MV "$nlist"T "$nlist"'
  53499. + case $host in
  53500. + *cygwin | *mingw* | *cegcc* )
  53501. + eval "echo EXPORTS "'> "$output_objdir/$outputname.def"'
  53502. + eval 'cat "$nlist" >> "$output_objdir/$outputname.def"'
  53503. + ;;
  53504. + esac
  53505. + }
  53506. fi
  53507. fi
  53508. - if test "X$skipped_export" != "X:" && len=`expr "X$test_cmds" : ".*"` &&
  53509. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  53510. - :
  53511. - else
  53512. - # The command line is too long to link in one step, link piecewise.
  53513. - $echo "creating reloadable object files..."
  53514. + for dlprefile in $dlprefiles; do
  53515. + func_verbose "extracting global C symbols from \`$dlprefile'"
  53516. + func_basename "$dlprefile"
  53517. + name="$func_basename_result"
  53518. + $opt_dry_run || {
  53519. + eval '$ECHO ": $name " >> "$nlist"'
  53520. + eval "$NM $dlprefile 2>/dev/null | $global_symbol_pipe >> '$nlist'"
  53521. + }
  53522. + done
  53523. - # Save the value of $output and $libobjs because we want to
  53524. - # use them later. If we have whole_archive_flag_spec, we
  53525. - # want to use save_libobjs as it was before
  53526. - # whole_archive_flag_spec was expanded, because we can't
  53527. - # assume the linker understands whole_archive_flag_spec.
  53528. - # This may have to be revisited, in case too many
  53529. - # convenience libraries get linked in and end up exceeding
  53530. - # the spec.
  53531. - if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  53532. - save_libobjs=$libobjs
  53533. + $opt_dry_run || {
  53534. + # Make sure we have at least an empty file.
  53535. + test -f "$nlist" || : > "$nlist"
  53536. +
  53537. + if test -n "$exclude_expsyms"; then
  53538. + $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  53539. + $MV "$nlist"T "$nlist"
  53540. fi
  53541. - save_output=$output
  53542. - # Clear the reloadable object creation command queue and
  53543. - # initialize k to one.
  53544. - test_cmds=
  53545. - concat_cmds=
  53546. - objlist=
  53547. - delfiles=
  53548. - last_robj=
  53549. - k=1
  53550. - output=$output_objdir/$save_output-${k}.$objext
  53551. - # Loop over the list of objects to be linked.
  53552. - for obj in $save_libobjs
  53553. - do
  53554. - eval test_cmds=\"$reload_cmds $objlist $last_robj\"
  53555. - if test "X$objlist" = X ||
  53556. - { len=`expr "X$test_cmds" : ".*"` &&
  53557. - test "$len" -le "$max_cmd_len"; }; then
  53558. - objlist="$objlist $obj"
  53559. - else
  53560. - # The command $test_cmds is almost too long, add a
  53561. - # command to the queue.
  53562. - if test "$k" -eq 1 ; then
  53563. - # The first file doesn't have a previous command to add.
  53564. - eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  53565. + # Try sorting and uniquifying the output.
  53566. + if $GREP -v "^: " < "$nlist" |
  53567. + if sort -k 3 </dev/null >/dev/null 2>&1; then
  53568. + sort -k 3
  53569. else
  53570. - # All subsequent reloadable object files will link in
  53571. - # the last one created.
  53572. - eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj\"
  53573. - fi
  53574. - last_robj=$output_objdir/$save_output-${k}.$objext
  53575. - k=`expr $k + 1`
  53576. - output=$output_objdir/$save_output-${k}.$objext
  53577. - objlist=$obj
  53578. - len=1
  53579. - fi
  53580. - done
  53581. - # Handle the remaining objects by creating one last
  53582. - # reloadable object file. All subsequent reloadable object
  53583. - # files will link in the last one created.
  53584. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  53585. - eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  53586. + sort +2
  53587. + fi |
  53588. + uniq > "$nlist"S; then
  53589. + :
  53590. + else
  53591. + $GREP -v "^: " < "$nlist" > "$nlist"S
  53592. + fi
  53593. - if ${skipped_export-false}; then
  53594. - $show "generating symbol list for \`$libname.la'"
  53595. - export_symbols="$output_objdir/$libname.exp"
  53596. - $run $rm $export_symbols
  53597. - libobjs=$output
  53598. - # Append the command to create the export file.
  53599. - eval concat_cmds=\"\$concat_cmds~$export_symbols_cmds\"
  53600. - fi
  53601. -
  53602. - # Set up a command to remove the reloadale object files
  53603. - # after they are used.
  53604. - i=0
  53605. - while test "$i" -lt "$k"
  53606. - do
  53607. - i=`expr $i + 1`
  53608. - delfiles="$delfiles $output_objdir/$save_output-${i}.$objext"
  53609. - done
  53610. + if test -f "$nlist"S; then
  53611. + eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$my_dlsyms"'
  53612. + else
  53613. + $ECHO '/* NONE */' >> "$output_objdir/$my_dlsyms"
  53614. + fi
  53615. - $echo "creating a temporary reloadable object file: $output"
  53616. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  53617. - # Loop through the commands generated above and execute them.
  53618. - save_ifs="$IFS"; IFS='~'
  53619. - for cmd in $concat_cmds; do
  53620. - IFS="$save_ifs"
  53621. - $show "$cmd"
  53622. - $run eval "$cmd" || exit $?
  53623. - done
  53624. - IFS="$save_ifs"
  53625. +/* The mapping between symbol names and symbols. */
  53626. +typedef struct {
  53627. + const char *name;
  53628. + void *address;
  53629. +} lt_dlsymlist;
  53630. +"
  53631. + case $host in
  53632. + *cygwin* | *mingw* | *cegcc* )
  53633. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  53634. +/* DATA imports from DLLs on WIN32 con't be const, because
  53635. + runtime relocations are performed -- see ld's documentation
  53636. + on pseudo-relocs. */"
  53637. + lt_dlsym_const= ;;
  53638. + *osf5*)
  53639. + echo >> "$output_objdir/$my_dlsyms" "\
  53640. +/* This system does not cope well with relocations in const data */"
  53641. + lt_dlsym_const= ;;
  53642. + *)
  53643. + lt_dlsym_const=const ;;
  53644. + esac
  53645. - libobjs=$output
  53646. - # Restore the value of output.
  53647. - output=$save_output
  53648. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  53649. +extern $lt_dlsym_const lt_dlsymlist
  53650. +lt_${my_prefix}_LTX_preloaded_symbols[];
  53651. +$lt_dlsym_const lt_dlsymlist
  53652. +lt_${my_prefix}_LTX_preloaded_symbols[] =
  53653. +{\
  53654. + { \"$my_originator\", (void *) 0 },"
  53655. - if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  53656. - eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  53657. - fi
  53658. - # Expand the library linking commands again to reset the
  53659. - # value of $libobjs for piecewise linking.
  53660. + case $need_lib_prefix in
  53661. + no)
  53662. + eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$my_dlsyms"
  53663. + ;;
  53664. + *)
  53665. + eval "$global_symbol_to_c_name_address_lib_prefix" < "$nlist" >> "$output_objdir/$my_dlsyms"
  53666. + ;;
  53667. + esac
  53668. + $ECHO >> "$output_objdir/$my_dlsyms" "\
  53669. + {0, (void *) 0}
  53670. +};
  53671. - # Do each of the archive commands.
  53672. - if test "$module" = yes && test -n "$module_cmds" ; then
  53673. - if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  53674. - cmds=$module_expsym_cmds
  53675. - else
  53676. - cmds=$module_cmds
  53677. - fi
  53678. - else
  53679. - if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  53680. - cmds=$archive_expsym_cmds
  53681. - else
  53682. - cmds=$archive_cmds
  53683. - fi
  53684. - fi
  53685. +/* This works around a problem in FreeBSD linker */
  53686. +#ifdef FREEBSD_WORKAROUND
  53687. +static const void *lt_preloaded_setup() {
  53688. + return lt_${my_prefix}_LTX_preloaded_symbols;
  53689. +}
  53690. +#endif
  53691. - # Append the command to remove the reloadable object files
  53692. - # to the just-reset $cmds.
  53693. - eval cmds=\"\$cmds~\$rm $delfiles\"
  53694. - fi
  53695. - save_ifs="$IFS"; IFS='~'
  53696. - for cmd in $cmds; do
  53697. - IFS="$save_ifs"
  53698. - eval cmd=\"$cmd\"
  53699. - $show "$cmd"
  53700. - $run eval "$cmd" || exit $?
  53701. +#ifdef __cplusplus
  53702. +}
  53703. +#endif\
  53704. +"
  53705. + } # !$opt_dry_run
  53706. +
  53707. + pic_flag_for_symtable=
  53708. + case "$compile_command " in
  53709. + *" -static "*) ;;
  53710. + *)
  53711. + case $host in
  53712. + # compiling the symbol table file with pic_flag works around
  53713. + # a FreeBSD bug that causes programs to crash when -lm is
  53714. + # linked before any other PIC object. But we must not use
  53715. + # pic_flag when linking with -static. The problem exists in
  53716. + # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  53717. + *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  53718. + pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND" ;;
  53719. + *-*-hpux*)
  53720. + pic_flag_for_symtable=" $pic_flag" ;;
  53721. + *)
  53722. + if test "X$my_pic_p" != Xno; then
  53723. + pic_flag_for_symtable=" $pic_flag"
  53724. + fi
  53725. + ;;
  53726. + esac
  53727. + ;;
  53728. + esac
  53729. + symtab_cflags=
  53730. + for arg in $LTCFLAGS; do
  53731. + case $arg in
  53732. + -pie | -fpie | -fPIE) ;;
  53733. + *) symtab_cflags="$symtab_cflags $arg" ;;
  53734. + esac
  53735. done
  53736. - IFS="$save_ifs"
  53737. - # Restore the uninstalled library and exit
  53738. - if test "$mode" = relink; then
  53739. - $run eval '(cd $output_objdir && $rm ${realname}T && $mv $realname ${realname}T && $mv "$realname"U $realname)' || exit $?
  53740. - exit $EXIT_SUCCESS
  53741. - fi
  53742. + # Now compile the dynamic symbol file.
  53743. + func_show_eval '(cd $output_objdir && $LTCC$symtab_cflags -c$no_builtin_flag$pic_flag_for_symtable "$my_dlsyms")' 'exit $?'
  53744. - # Create links to the real library.
  53745. - for linkname in $linknames; do
  53746. - if test "$realname" != "$linkname"; then
  53747. - $show "(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)"
  53748. - $run eval '(cd $output_objdir && $rm $linkname && $LN_S $realname $linkname)' || exit $?
  53749. + # Clean up the generated files.
  53750. + func_show_eval '$RM "$output_objdir/$my_dlsyms" "$nlist" "${nlist}S" "${nlist}T"'
  53751. +
  53752. + # Transform the symbol file into the correct name.
  53753. + symfileobj="$output_objdir/${my_outputname}S.$objext"
  53754. + case $host in
  53755. + *cygwin* | *mingw* | *cegcc* )
  53756. + if test -f "$output_objdir/$my_outputname.def"; then
  53757. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  53758. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/$my_outputname.def $symfileobj%"`
  53759. + else
  53760. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  53761. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  53762. fi
  53763. - done
  53764. + ;;
  53765. + *)
  53766. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  53767. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$symfileobj%"`
  53768. + ;;
  53769. + esac
  53770. + ;;
  53771. + *)
  53772. + func_fatal_error "unknown suffix for \`$my_dlsyms'"
  53773. + ;;
  53774. + esac
  53775. + else
  53776. + # We keep going just in case the user didn't refer to
  53777. + # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  53778. + # really was required.
  53779. +
  53780. + # Nullify the symbol file.
  53781. + compile_command=`$ECHO "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  53782. + finalize_command=`$ECHO "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  53783. + fi
  53784. +}
  53785. - # If -module or -export-dynamic was specified, set the dlname.
  53786. - if test "$module" = yes || test "$export_dynamic" = yes; then
  53787. - # On all known operating systems, these are identical.
  53788. - dlname="$soname"
  53789. - fi
  53790. - fi
  53791. +# func_win32_libid arg
  53792. +# return the library type of file 'arg'
  53793. +#
  53794. +# Need a lot of goo to handle *both* DLLs and import libs
  53795. +# Has to be a shell function in order to 'eat' the argument
  53796. +# that is supplied when $file_magic_command is called.
  53797. +func_win32_libid ()
  53798. +{
  53799. + $opt_debug
  53800. + win32_libid_type="unknown"
  53801. + win32_fileres=`file -L $1 2>/dev/null`
  53802. + case $win32_fileres in
  53803. + *ar\ archive\ import\ library*) # definitely import
  53804. + win32_libid_type="x86 archive import"
  53805. + ;;
  53806. + *ar\ archive*) # could be an import, or static
  53807. + if eval $OBJDUMP -f $1 | $SED -e '10q' 2>/dev/null |
  53808. + $EGREP 'file format pe-i386(.*architecture: i386)?' >/dev/null ; then
  53809. + win32_nmres=`eval $NM -f posix -A $1 |
  53810. + $SED -n -e '
  53811. + 1,100{
  53812. + / I /{
  53813. + s,.*,import,
  53814. + p
  53815. + q
  53816. + }
  53817. + }'`
  53818. + case $win32_nmres in
  53819. + import*) win32_libid_type="x86 archive import";;
  53820. + *) win32_libid_type="x86 archive static";;
  53821. + esac
  53822. + fi
  53823. + ;;
  53824. + *DLL*)
  53825. + win32_libid_type="x86 DLL"
  53826. + ;;
  53827. + *executable*) # but shell scripts are "executable" too...
  53828. + case $win32_fileres in
  53829. + *MS\ Windows\ PE\ Intel*)
  53830. + win32_libid_type="x86 DLL"
  53831. ;;
  53832. + esac
  53833. + ;;
  53834. + esac
  53835. + $ECHO "$win32_libid_type"
  53836. +}
  53837. - obj)
  53838. - if test -n "$deplibs"; then
  53839. - $echo "$modename: warning: \`-l' and \`-L' are ignored for objects" 1>&2
  53840. - fi
  53841. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  53842. - $echo "$modename: warning: \`-dlopen' is ignored for objects" 1>&2
  53843. - fi
  53844. - if test -n "$rpath"; then
  53845. - $echo "$modename: warning: \`-rpath' is ignored for objects" 1>&2
  53846. - fi
  53847. +# func_extract_an_archive dir oldlib
  53848. +func_extract_an_archive ()
  53849. +{
  53850. + $opt_debug
  53851. + f_ex_an_ar_dir="$1"; shift
  53852. + f_ex_an_ar_oldlib="$1"
  53853. + func_show_eval "(cd \$f_ex_an_ar_dir && $AR x \"\$f_ex_an_ar_oldlib\")" 'exit $?'
  53854. + if ($AR t "$f_ex_an_ar_oldlib" | sort | sort -uc >/dev/null 2>&1); then
  53855. + :
  53856. + else
  53857. + func_fatal_error "object name conflicts in archive: $f_ex_an_ar_dir/$f_ex_an_ar_oldlib"
  53858. + fi
  53859. +}
  53860. - if test -n "$xrpath"; then
  53861. - $echo "$modename: warning: \`-R' is ignored for objects" 1>&2
  53862. - fi
  53863. - if test -n "$vinfo"; then
  53864. - $echo "$modename: warning: \`-version-info' is ignored for objects" 1>&2
  53865. - fi
  53866. +# func_extract_archives gentop oldlib ...
  53867. +func_extract_archives ()
  53868. +{
  53869. + $opt_debug
  53870. + my_gentop="$1"; shift
  53871. + my_oldlibs=${1+"$@"}
  53872. + my_oldobjs=""
  53873. + my_xlib=""
  53874. + my_xabs=""
  53875. + my_xdir=""
  53876. +
  53877. + for my_xlib in $my_oldlibs; do
  53878. + # Extract the objects.
  53879. + case $my_xlib in
  53880. + [\\/]* | [A-Za-z]:[\\/]*) my_xabs="$my_xlib" ;;
  53881. + *) my_xabs=`pwd`"/$my_xlib" ;;
  53882. + esac
  53883. + func_basename "$my_xlib"
  53884. + my_xlib="$func_basename_result"
  53885. + my_xlib_u=$my_xlib
  53886. + while :; do
  53887. + case " $extracted_archives " in
  53888. + *" $my_xlib_u "*)
  53889. + func_arith $extracted_serial + 1
  53890. + extracted_serial=$func_arith_result
  53891. + my_xlib_u=lt$extracted_serial-$my_xlib ;;
  53892. + *) break ;;
  53893. + esac
  53894. + done
  53895. + extracted_archives="$extracted_archives $my_xlib_u"
  53896. + my_xdir="$my_gentop/$my_xlib_u"
  53897. - if test -n "$release"; then
  53898. - $echo "$modename: warning: \`-release' is ignored for objects" 1>&2
  53899. - fi
  53900. + func_mkdir_p "$my_xdir"
  53901. - case $output in
  53902. - *.lo)
  53903. - if test -n "$objs$old_deplibs"; then
  53904. - $echo "$modename: cannot build library object \`$output' from non-libtool objects" 1>&2
  53905. - exit $EXIT_FAILURE
  53906. - fi
  53907. - libobj="$output"
  53908. - obj=`$echo "X$output" | $Xsed -e "$lo2o"`
  53909. + case $host in
  53910. + *-darwin*)
  53911. + func_verbose "Extracting $my_xabs"
  53912. + # Do not bother doing anything if just a dry run
  53913. + $opt_dry_run || {
  53914. + darwin_orig_dir=`pwd`
  53915. + cd $my_xdir || exit $?
  53916. + darwin_archive=$my_xabs
  53917. + darwin_curdir=`pwd`
  53918. + darwin_base_archive=`basename "$darwin_archive"`
  53919. + darwin_arches=`$LIPO -info "$darwin_archive" 2>/dev/null | $GREP Architectures 2>/dev/null || true`
  53920. + if test -n "$darwin_arches"; then
  53921. + darwin_arches=`$ECHO "$darwin_arches" | $SED -e 's/.*are://'`
  53922. + darwin_arch=
  53923. + func_verbose "$darwin_base_archive has multiple architectures $darwin_arches"
  53924. + for darwin_arch in $darwin_arches ; do
  53925. + func_mkdir_p "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  53926. + $LIPO -thin $darwin_arch -output "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}" "${darwin_archive}"
  53927. + cd "unfat-$$/${darwin_base_archive}-${darwin_arch}"
  53928. + func_extract_an_archive "`pwd`" "${darwin_base_archive}"
  53929. + cd "$darwin_curdir"
  53930. + $RM "unfat-$$/${darwin_base_archive}-${darwin_arch}/${darwin_base_archive}"
  53931. + done # $darwin_arches
  53932. + ## Okay now we've a bunch of thin objects, gotta fatten them up :)
  53933. + darwin_filelist=`find unfat-$$ -type f -name \*.o -print -o -name \*.lo -print | $SED -e "$basename" | sort -u`
  53934. + darwin_file=
  53935. + darwin_files=
  53936. + for darwin_file in $darwin_filelist; do
  53937. + darwin_files=`find unfat-$$ -name $darwin_file -print | $NL2SP`
  53938. + $LIPO -create -output "$darwin_file" $darwin_files
  53939. + done # $darwin_filelist
  53940. + $RM -rf unfat-$$
  53941. + cd "$darwin_orig_dir"
  53942. + else
  53943. + cd $darwin_orig_dir
  53944. + func_extract_an_archive "$my_xdir" "$my_xabs"
  53945. + fi # $darwin_arches
  53946. + } # !$opt_dry_run
  53947. ;;
  53948. *)
  53949. - libobj=
  53950. - obj="$output"
  53951. + func_extract_an_archive "$my_xdir" "$my_xabs"
  53952. ;;
  53953. esac
  53954. + my_oldobjs="$my_oldobjs "`find $my_xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  53955. + done
  53956. - # Delete the old objects.
  53957. - $run $rm $obj $libobj
  53958. + func_extract_archives_result="$my_oldobjs"
  53959. +}
  53960. - # Objects from convenience libraries. This assumes
  53961. - # single-version convenience libraries. Whenever we create
  53962. - # different ones for PIC/non-PIC, this we'll have to duplicate
  53963. - # the extraction.
  53964. - reload_conv_objs=
  53965. - gentop=
  53966. - # reload_cmds runs $LD directly, so let us get rid of
  53967. - # -Wl from whole_archive_flag_spec
  53968. - wl=
  53969. - if test -n "$convenience"; then
  53970. - if test -n "$whole_archive_flag_spec"; then
  53971. - eval reload_conv_objs=\"\$reload_objs $whole_archive_flag_spec\"
  53972. - else
  53973. - gentop="$output_objdir/${obj}x"
  53974. - $show "${rm}r $gentop"
  53975. - $run ${rm}r "$gentop"
  53976. - $show "$mkdir $gentop"
  53977. - $run $mkdir "$gentop"
  53978. - status=$?
  53979. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  53980. - exit $status
  53981. - fi
  53982. - generated="$generated $gentop"
  53983. - for xlib in $convenience; do
  53984. - # Extract the objects.
  53985. - case $xlib in
  53986. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  53987. - *) xabs=`pwd`"/$xlib" ;;
  53988. - esac
  53989. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  53990. - xdir="$gentop/$xlib"
  53991. +# func_emit_wrapper_part1 [arg=no]
  53992. +#
  53993. +# Emit the first part of a libtool wrapper script on stdout.
  53994. +# For more information, see the description associated with
  53995. +# func_emit_wrapper(), below.
  53996. +func_emit_wrapper_part1 ()
  53997. +{
  53998. + func_emit_wrapper_part1_arg1=no
  53999. + if test -n "$1" ; then
  54000. + func_emit_wrapper_part1_arg1=$1
  54001. + fi
  54002. - $show "${rm}r $xdir"
  54003. - $run ${rm}r "$xdir"
  54004. - $show "$mkdir $xdir"
  54005. - $run $mkdir "$xdir"
  54006. - status=$?
  54007. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  54008. - exit $status
  54009. - fi
  54010. - # We will extract separately just the conflicting names and we will no
  54011. - # longer touch any unique names. It is faster to leave these extract
  54012. - # automatically by $AR in one run.
  54013. - $show "(cd $xdir && $AR x $xabs)"
  54014. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  54015. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  54016. - :
  54017. - else
  54018. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  54019. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  54020. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  54021. - do
  54022. - i=1
  54023. - while test "$i" -le "$count"
  54024. - do
  54025. - # Put our $i before any first dot (extension)
  54026. - # Never overwrite any file
  54027. - name_to="$name"
  54028. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  54029. - do
  54030. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  54031. - done
  54032. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  54033. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  54034. - i=`expr $i + 1`
  54035. - done
  54036. - done
  54037. - fi
  54038. + $ECHO "\
  54039. +#! $SHELL
  54040. - reload_conv_objs="$reload_objs "`find $xdir -name \*.$objext -print -o -name \*.lo -print | $NL2SP`
  54041. - done
  54042. - fi
  54043. - fi
  54044. -
  54045. - # Create the old-style object.
  54046. - 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
  54047. -
  54048. - output="$obj"
  54049. - cmds=$reload_cmds
  54050. - save_ifs="$IFS"; IFS='~'
  54051. - for cmd in $cmds; do
  54052. - IFS="$save_ifs"
  54053. - eval cmd=\"$cmd\"
  54054. - $show "$cmd"
  54055. - $run eval "$cmd" || exit $?
  54056. - done
  54057. - IFS="$save_ifs"
  54058. +# $output - temporary wrapper script for $objdir/$outputname
  54059. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  54060. +#
  54061. +# The $output program cannot be directly executed until all the libtool
  54062. +# libraries that it depends on are installed.
  54063. +#
  54064. +# This wrapper script should never be moved out of the build directory.
  54065. +# If it is, it will not operate correctly.
  54066. - # Exit if we aren't doing a library object file.
  54067. - if test -z "$libobj"; then
  54068. - if test -n "$gentop"; then
  54069. - $show "${rm}r $gentop"
  54070. - $run ${rm}r $gentop
  54071. - fi
  54072. +# Sed substitution that helps us do robust quoting. It backslashifies
  54073. +# metacharacters that are still active within double-quoted strings.
  54074. +Xsed='${SED} -e 1s/^X//'
  54075. +sed_quote_subst='$sed_quote_subst'
  54076. - exit $EXIT_SUCCESS
  54077. - fi
  54078. +# Be Bourne compatible
  54079. +if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then
  54080. + emulate sh
  54081. + NULLCMD=:
  54082. + # Zsh 3.x and 4.x performs word splitting on \${1+\"\$@\"}, which
  54083. + # is contrary to our usage. Disable this feature.
  54084. + alias -g '\${1+\"\$@\"}'='\"\$@\"'
  54085. + setopt NO_GLOB_SUBST
  54086. +else
  54087. + case \`(set -o) 2>/dev/null\` in *posix*) set -o posix;; esac
  54088. +fi
  54089. +BIN_SH=xpg4; export BIN_SH # for Tru64
  54090. +DUALCASE=1; export DUALCASE # for MKS sh
  54091. - if test "$build_libtool_libs" != yes; then
  54092. - if test -n "$gentop"; then
  54093. - $show "${rm}r $gentop"
  54094. - $run ${rm}r $gentop
  54095. - fi
  54096. +# The HP-UX ksh and POSIX shell print the target directory to stdout
  54097. +# if CDPATH is set.
  54098. +(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  54099. - # Create an invalid libtool object if no PIC, so that we don't
  54100. - # accidentally link it into a program.
  54101. - # $show "echo timestamp > $libobj"
  54102. - # $run eval "echo timestamp > $libobj" || exit $?
  54103. - exit $EXIT_SUCCESS
  54104. - fi
  54105. +relink_command=\"$relink_command\"
  54106. - if test -n "$pic_flag" || test "$pic_mode" != default; then
  54107. - # Only do commands if we really have different PIC objects.
  54108. - reload_objs="$libobjs $reload_conv_objs"
  54109. - output="$libobj"
  54110. - cmds=$reload_cmds
  54111. - save_ifs="$IFS"; IFS='~'
  54112. - for cmd in $cmds; do
  54113. - IFS="$save_ifs"
  54114. - eval cmd=\"$cmd\"
  54115. - $show "$cmd"
  54116. - $run eval "$cmd" || exit $?
  54117. - done
  54118. - IFS="$save_ifs"
  54119. - fi
  54120. +# This environment variable determines our operation mode.
  54121. +if test \"\$libtool_install_magic\" = \"$magic\"; then
  54122. + # install mode needs the following variables:
  54123. + generated_by_libtool_version='$macro_version'
  54124. + notinst_deplibs='$notinst_deplibs'
  54125. +else
  54126. + # When we are sourced in execute mode, \$file and \$ECHO are already set.
  54127. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  54128. + ECHO=\"$qecho\"
  54129. + file=\"\$0\"
  54130. + # Make sure echo works.
  54131. + if test \"X\$1\" = X--no-reexec; then
  54132. + # Discard the --no-reexec flag, and continue.
  54133. + shift
  54134. + elif test \"X\`{ \$ECHO '\t'; } 2>/dev/null\`\" = 'X\t'; then
  54135. + # Yippee, \$ECHO works!
  54136. + :
  54137. + else
  54138. + # Restart under the correct shell, and then maybe \$ECHO will work.
  54139. + exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  54140. + fi
  54141. + fi\
  54142. +"
  54143. + $ECHO "\
  54144. - if test -n "$gentop"; then
  54145. - $show "${rm}r $gentop"
  54146. - $run ${rm}r $gentop
  54147. - fi
  54148. + # Find the directory that this script lives in.
  54149. + thisdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  54150. + test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  54151. - exit $EXIT_SUCCESS
  54152. - ;;
  54153. + # Follow symbolic links until we get to the real thisdir.
  54154. + file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  54155. + while test -n \"\$file\"; do
  54156. + destdir=\`\$ECHO \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  54157. - prog)
  54158. - case $host in
  54159. - *cygwin*) output=`$echo $output | ${SED} -e 's,.exe$,,;s,$,.exe,'` ;;
  54160. + # If there was a directory component, then change thisdir.
  54161. + if test \"x\$destdir\" != \"x\$file\"; then
  54162. + case \"\$destdir\" in
  54163. + [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  54164. + *) thisdir=\"\$thisdir/\$destdir\" ;;
  54165. esac
  54166. - if test -n "$vinfo"; then
  54167. - $echo "$modename: warning: \`-version-info' is ignored for programs" 1>&2
  54168. - fi
  54169. + fi
  54170. - if test -n "$release"; then
  54171. - $echo "$modename: warning: \`-release' is ignored for programs" 1>&2
  54172. - fi
  54173. + file=\`\$ECHO \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  54174. + file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  54175. + done
  54176. +"
  54177. +}
  54178. +# end: func_emit_wrapper_part1
  54179. - if test "$preload" = yes; then
  54180. - if test "$dlopen_support" = unknown && test "$dlopen_self" = unknown &&
  54181. - test "$dlopen_self_static" = unknown; then
  54182. - $echo "$modename: warning: \`AC_LIBTOOL_DLOPEN' not used. Assuming no dlopen support."
  54183. - fi
  54184. - fi
  54185. +# func_emit_wrapper_part2 [arg=no]
  54186. +#
  54187. +# Emit the second part of a libtool wrapper script on stdout.
  54188. +# For more information, see the description associated with
  54189. +# func_emit_wrapper(), below.
  54190. +func_emit_wrapper_part2 ()
  54191. +{
  54192. + func_emit_wrapper_part2_arg1=no
  54193. + if test -n "$1" ; then
  54194. + func_emit_wrapper_part2_arg1=$1
  54195. + fi
  54196. +
  54197. + $ECHO "\
  54198. +
  54199. + # Usually 'no', except on cygwin/mingw when embedded into
  54200. + # the cwrapper.
  54201. + WRAPPER_SCRIPT_BELONGS_IN_OBJDIR=$func_emit_wrapper_part2_arg1
  54202. + if test \"\$WRAPPER_SCRIPT_BELONGS_IN_OBJDIR\" = \"yes\"; then
  54203. + # special case for '.'
  54204. + if test \"\$thisdir\" = \".\"; then
  54205. + thisdir=\`pwd\`
  54206. + fi
  54207. + # remove .libs from thisdir
  54208. + case \"\$thisdir\" in
  54209. + *[\\\\/]$objdir ) thisdir=\`\$ECHO \"X\$thisdir\" | \$Xsed -e 's%[\\\\/][^\\\\/]*$%%'\` ;;
  54210. + $objdir ) thisdir=. ;;
  54211. + esac
  54212. + fi
  54213. - case $host in
  54214. - *-*-rhapsody* | *-*-darwin1.[012])
  54215. - # On Rhapsody replace the C library is the System framework
  54216. - compile_deplibs=`$echo "X $compile_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  54217. - finalize_deplibs=`$echo "X $finalize_deplibs" | $Xsed -e 's/ -lc / -framework System /'`
  54218. - ;;
  54219. - esac
  54220. + # Try to get the absolute directory name.
  54221. + absdir=\`cd \"\$thisdir\" && pwd\`
  54222. + test -n \"\$absdir\" && thisdir=\"\$absdir\"
  54223. +"
  54224. - case $host in
  54225. - *darwin*)
  54226. - # Don't allow lazy linking, it breaks C++ global constructors
  54227. - if test "$tagname" = CXX ; then
  54228. - compile_command="$compile_command ${wl}-bind_at_load"
  54229. - finalize_command="$finalize_command ${wl}-bind_at_load"
  54230. - fi
  54231. - ;;
  54232. - esac
  54233. + if test "$fast_install" = yes; then
  54234. + $ECHO "\
  54235. + program=lt-'$outputname'$exeext
  54236. + progdir=\"\$thisdir/$objdir\"
  54237. - compile_command="$compile_command $compile_deplibs"
  54238. - finalize_command="$finalize_command $finalize_deplibs"
  54239. + if test ! -f \"\$progdir/\$program\" ||
  54240. + { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  54241. + test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  54242. - if test -n "$rpath$xrpath"; then
  54243. - # If the user specified any rpath flags, then add them.
  54244. - for libdir in $rpath $xrpath; do
  54245. - # This is the magic to use -rpath.
  54246. - case "$finalize_rpath " in
  54247. - *" $libdir "*) ;;
  54248. - *) finalize_rpath="$finalize_rpath $libdir" ;;
  54249. - esac
  54250. - done
  54251. - fi
  54252. + file=\"\$\$-\$program\"
  54253. - # Now hardcode the library paths
  54254. - rpath=
  54255. - hardcode_libdirs=
  54256. - for libdir in $compile_rpath $finalize_rpath; do
  54257. - if test -n "$hardcode_libdir_flag_spec"; then
  54258. - if test -n "$hardcode_libdir_separator"; then
  54259. - if test -z "$hardcode_libdirs"; then
  54260. - hardcode_libdirs="$libdir"
  54261. - else
  54262. - # Just accumulate the unique libdirs.
  54263. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  54264. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  54265. - ;;
  54266. - *)
  54267. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  54268. - ;;
  54269. - esac
  54270. - fi
  54271. - else
  54272. - eval flag=\"$hardcode_libdir_flag_spec\"
  54273. - rpath="$rpath $flag"
  54274. - fi
  54275. - elif test -n "$runpath_var"; then
  54276. - case "$perm_rpath " in
  54277. - *" $libdir "*) ;;
  54278. - *) perm_rpath="$perm_rpath $libdir" ;;
  54279. - esac
  54280. - fi
  54281. - case $host in
  54282. - *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2*)
  54283. - case :$dllsearchpath: in
  54284. - *":$libdir:"*) ;;
  54285. - *) dllsearchpath="$dllsearchpath:$libdir";;
  54286. - esac
  54287. - ;;
  54288. - esac
  54289. - done
  54290. - # Substitute the hardcoded libdirs into the rpath.
  54291. - if test -n "$hardcode_libdir_separator" &&
  54292. - test -n "$hardcode_libdirs"; then
  54293. - libdir="$hardcode_libdirs"
  54294. - eval rpath=\" $hardcode_libdir_flag_spec\"
  54295. - fi
  54296. - compile_rpath="$rpath"
  54297. + if test ! -d \"\$progdir\"; then
  54298. + $MKDIR \"\$progdir\"
  54299. + else
  54300. + $RM \"\$progdir/\$file\"
  54301. + fi"
  54302. - rpath=
  54303. - hardcode_libdirs=
  54304. - for libdir in $finalize_rpath; do
  54305. - if test -n "$hardcode_libdir_flag_spec"; then
  54306. - if test -n "$hardcode_libdir_separator"; then
  54307. - if test -z "$hardcode_libdirs"; then
  54308. - hardcode_libdirs="$libdir"
  54309. - else
  54310. - # Just accumulate the unique libdirs.
  54311. - case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  54312. - *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  54313. - ;;
  54314. - *)
  54315. - hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  54316. - ;;
  54317. - esac
  54318. - fi
  54319. - else
  54320. - eval flag=\"$hardcode_libdir_flag_spec\"
  54321. - rpath="$rpath $flag"
  54322. - fi
  54323. - elif test -n "$runpath_var"; then
  54324. - case "$finalize_perm_rpath " in
  54325. - *" $libdir "*) ;;
  54326. - *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  54327. - esac
  54328. - fi
  54329. - done
  54330. - # Substitute the hardcoded libdirs into the rpath.
  54331. - if test -n "$hardcode_libdir_separator" &&
  54332. - test -n "$hardcode_libdirs"; then
  54333. - libdir="$hardcode_libdirs"
  54334. - eval rpath=\" $hardcode_libdir_flag_spec\"
  54335. - fi
  54336. - finalize_rpath="$rpath"
  54337. + $ECHO "\
  54338. - if test -n "$libobjs" && test "$build_old_libs" = yes; then
  54339. - # Transform all the library objects into standard objects.
  54340. - compile_command=`$echo "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54341. - finalize_command=`$echo "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54342. + # relink executable if necessary
  54343. + if test -n \"\$relink_command\"; then
  54344. + if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  54345. + else
  54346. + $ECHO \"\$relink_command_output\" >&2
  54347. + $RM \"\$progdir/\$file\"
  54348. + exit 1
  54349. fi
  54350. + fi
  54351. - dlsyms=
  54352. - if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  54353. - if test -n "$NM" && test -n "$global_symbol_pipe"; then
  54354. - dlsyms="${outputname}S.c"
  54355. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  54356. + { $RM \"\$progdir/\$program\";
  54357. + $MV \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  54358. + $RM \"\$progdir/\$file\"
  54359. + fi"
  54360. else
  54361. - $echo "$modename: not configured to extract global symbols from dlpreopened files" 1>&2
  54362. + $ECHO "\
  54363. + program='$outputname'
  54364. + progdir=\"\$thisdir/$objdir\"
  54365. +"
  54366. fi
  54367. - fi
  54368. - if test -n "$dlsyms"; then
  54369. - case $dlsyms in
  54370. - "") ;;
  54371. - *.c)
  54372. - # Discover the nlist of each of the dlfiles.
  54373. - nlist="$output_objdir/${outputname}.nm"
  54374. + $ECHO "\
  54375. - $show "$rm $nlist ${nlist}S ${nlist}T"
  54376. - $run $rm "$nlist" "${nlist}S" "${nlist}T"
  54377. + if test -f \"\$progdir/\$program\"; then"
  54378. - # Parse the name list into a source file.
  54379. - $show "creating $output_objdir/$dlsyms"
  54380. + # Export our shlibpath_var if we have one.
  54381. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  54382. + $ECHO "\
  54383. + # Add our own library path to $shlibpath_var
  54384. + $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  54385. - test -z "$run" && $echo > "$output_objdir/$dlsyms" "\
  54386. -/* $dlsyms - symbol resolution table for \`$outputname' dlsym emulation. */
  54387. -/* Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP */
  54388. + # Some systems cannot cope with colon-terminated $shlibpath_var
  54389. + # The second colon is a workaround for a bug in BeOS R4 sed
  54390. + $shlibpath_var=\`\$ECHO \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  54391. -#ifdef __cplusplus
  54392. -extern \"C\" {
  54393. -#endif
  54394. + export $shlibpath_var
  54395. +"
  54396. + fi
  54397. -/* Prevent the only kind of declaration conflicts we can make. */
  54398. -#define lt_preloaded_symbols some_other_symbol
  54399. + # fixup the dll searchpath if we need to.
  54400. + if test -n "$dllsearchpath"; then
  54401. + $ECHO "\
  54402. + # Add the dll search path components to the executable PATH
  54403. + PATH=$dllsearchpath:\$PATH
  54404. +"
  54405. + fi
  54406. -/* External symbol declarations for the compiler. */\
  54407. + $ECHO "\
  54408. + if test \"\$libtool_execute_magic\" != \"$magic\"; then
  54409. + # Run the actual program with our arguments.
  54410. +"
  54411. + case $host in
  54412. + # Backslashes separate directories on plain windows
  54413. + *-*-mingw | *-*-os2* | *-cegcc*)
  54414. + $ECHO "\
  54415. + exec \"\$progdir\\\\\$program\" \${1+\"\$@\"}
  54416. "
  54417. + ;;
  54418. - if test "$dlself" = yes; then
  54419. - $show "generating symbol list for \`$output'"
  54420. + *)
  54421. + $ECHO "\
  54422. + exec \"\$progdir/\$program\" \${1+\"\$@\"}
  54423. +"
  54424. + ;;
  54425. + esac
  54426. + $ECHO "\
  54427. + \$ECHO \"\$0: cannot exec \$program \$*\" 1>&2
  54428. + exit 1
  54429. + fi
  54430. + else
  54431. + # The program doesn't exist.
  54432. + \$ECHO \"\$0: error: \\\`\$progdir/\$program' does not exist\" 1>&2
  54433. + \$ECHO \"This script is just a wrapper for \$program.\" 1>&2
  54434. + $ECHO \"See the $PACKAGE documentation for more information.\" 1>&2
  54435. + exit 1
  54436. + fi
  54437. +fi\
  54438. +"
  54439. +}
  54440. +# end: func_emit_wrapper_part2
  54441. - test -z "$run" && $echo ': @PROGRAM@ ' > "$nlist"
  54442. - # Add our own program objects to the symbol list.
  54443. - progfiles=`$echo "X$objs$old_deplibs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  54444. - for arg in $progfiles; do
  54445. - $show "extracting global C symbols from \`$arg'"
  54446. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  54447. - done
  54448. -
  54449. - if test -n "$exclude_expsyms"; then
  54450. - $run eval '$EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T'
  54451. - $run eval '$mv "$nlist"T "$nlist"'
  54452. - fi
  54453. -
  54454. - if test -n "$export_symbols_regex"; then
  54455. - $run eval '$EGREP -e "$export_symbols_regex" "$nlist" > "$nlist"T'
  54456. - $run eval '$mv "$nlist"T "$nlist"'
  54457. - fi
  54458. -
  54459. - # Prepare the list of exported symbols
  54460. - if test -z "$export_symbols"; then
  54461. - export_symbols="$output_objdir/$output.exp"
  54462. - $run $rm $export_symbols
  54463. - $run eval "${SED} -n -e '/^: @PROGRAM@$/d' -e 's/^.* \(.*\)$/\1/p' "'< "$nlist" > "$export_symbols"'
  54464. - else
  54465. - $run eval "${SED} -e 's/\([][.*^$]\)/\\\1/g' -e 's/^/ /' -e 's/$/$/'"' < "$export_symbols" > "$output_objdir/$output.exp"'
  54466. - $run eval 'grep -f "$output_objdir/$output.exp" < "$nlist" > "$nlist"T'
  54467. - $run eval 'mv "$nlist"T "$nlist"'
  54468. - fi
  54469. - fi
  54470. -
  54471. - for arg in $dlprefiles; do
  54472. - $show "extracting global C symbols from \`$arg'"
  54473. - name=`$echo "$arg" | ${SED} -e 's%^.*/%%'`
  54474. - $run eval '$echo ": $name " >> "$nlist"'
  54475. - $run eval "$NM $arg | $global_symbol_pipe >> '$nlist'"
  54476. - done
  54477. -
  54478. - if test -z "$run"; then
  54479. - # Make sure we have at least an empty file.
  54480. - test -f "$nlist" || : > "$nlist"
  54481. -
  54482. - if test -n "$exclude_expsyms"; then
  54483. - $EGREP -v " ($exclude_expsyms)$" "$nlist" > "$nlist"T
  54484. - $mv "$nlist"T "$nlist"
  54485. - fi
  54486. -
  54487. - # Try sorting and uniquifying the output.
  54488. - if grep -v "^: " < "$nlist" |
  54489. - if sort -k 3 </dev/null >/dev/null 2>&1; then
  54490. - sort -k 3
  54491. - else
  54492. - sort +2
  54493. - fi |
  54494. - uniq > "$nlist"S; then
  54495. - :
  54496. - else
  54497. - grep -v "^: " < "$nlist" > "$nlist"S
  54498. - fi
  54499. -
  54500. - if test -f "$nlist"S; then
  54501. - eval "$global_symbol_to_cdecl"' < "$nlist"S >> "$output_objdir/$dlsyms"'
  54502. - else
  54503. - $echo '/* NONE */' >> "$output_objdir/$dlsyms"
  54504. - fi
  54505. -
  54506. - $echo >> "$output_objdir/$dlsyms" "\
  54507. -
  54508. -#undef lt_preloaded_symbols
  54509. -
  54510. -#if defined (__STDC__) && __STDC__
  54511. -# define lt_ptr void *
  54512. -#else
  54513. -# define lt_ptr char *
  54514. -# define const
  54515. -#endif
  54516. +# func_emit_wrapper [arg=no]
  54517. +#
  54518. +# Emit a libtool wrapper script on stdout.
  54519. +# Don't directly open a file because we may want to
  54520. +# incorporate the script contents within a cygwin/mingw
  54521. +# wrapper executable. Must ONLY be called from within
  54522. +# func_mode_link because it depends on a number of variables
  54523. +# set therein.
  54524. +#
  54525. +# ARG is the value that the WRAPPER_SCRIPT_BELONGS_IN_OBJDIR
  54526. +# variable will take. If 'yes', then the emitted script
  54527. +# will assume that the directory in which it is stored is
  54528. +# the $objdir directory. This is a cygwin/mingw-specific
  54529. +# behavior.
  54530. +func_emit_wrapper ()
  54531. +{
  54532. + func_emit_wrapper_arg1=no
  54533. + if test -n "$1" ; then
  54534. + func_emit_wrapper_arg1=$1
  54535. + fi
  54536. -/* The mapping between symbol names and symbols. */
  54537. -const struct {
  54538. - const char *name;
  54539. - lt_ptr address;
  54540. + # split this up so that func_emit_cwrapperexe_src
  54541. + # can call each part independently.
  54542. + func_emit_wrapper_part1 "${func_emit_wrapper_arg1}"
  54543. + func_emit_wrapper_part2 "${func_emit_wrapper_arg1}"
  54544. }
  54545. -lt_preloaded_symbols[] =
  54546. -{\
  54547. -"
  54548. -
  54549. - eval "$global_symbol_to_c_name_address" < "$nlist" >> "$output_objdir/$dlsyms"
  54550. - $echo >> "$output_objdir/$dlsyms" "\
  54551. - {0, (lt_ptr) 0}
  54552. -};
  54553. -/* This works around a problem in FreeBSD linker */
  54554. -#ifdef FREEBSD_WORKAROUND
  54555. -static const void *lt_preloaded_setup() {
  54556. - return lt_preloaded_symbols;
  54557. +# func_to_host_path arg
  54558. +#
  54559. +# Convert paths to host format when used with build tools.
  54560. +# Intended for use with "native" mingw (where libtool itself
  54561. +# is running under the msys shell), or in the following cross-
  54562. +# build environments:
  54563. +# $build $host
  54564. +# mingw (msys) mingw [e.g. native]
  54565. +# cygwin mingw
  54566. +# *nix + wine mingw
  54567. +# where wine is equipped with the `winepath' executable.
  54568. +# In the native mingw case, the (msys) shell automatically
  54569. +# converts paths for any non-msys applications it launches,
  54570. +# but that facility isn't available from inside the cwrapper.
  54571. +# Similar accommodations are necessary for $host mingw and
  54572. +# $build cygwin. Calling this function does no harm for other
  54573. +# $host/$build combinations not listed above.
  54574. +#
  54575. +# ARG is the path (on $build) that should be converted to
  54576. +# the proper representation for $host. The result is stored
  54577. +# in $func_to_host_path_result.
  54578. +func_to_host_path ()
  54579. +{
  54580. + func_to_host_path_result="$1"
  54581. + if test -n "$1" ; then
  54582. + case $host in
  54583. + *mingw* )
  54584. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  54585. + case $build in
  54586. + *mingw* ) # actually, msys
  54587. + # awkward: cmd appends spaces to result
  54588. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  54589. + func_to_host_path_tmp1=`( cmd //c echo "$1" |\
  54590. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  54591. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  54592. + $SED -e "$lt_sed_naive_backslashify"`
  54593. + ;;
  54594. + *cygwin* )
  54595. + func_to_host_path_tmp1=`cygpath -w "$1"`
  54596. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  54597. + $SED -e "$lt_sed_naive_backslashify"`
  54598. + ;;
  54599. + * )
  54600. + # Unfortunately, winepath does not exit with a non-zero
  54601. + # error code, so we are forced to check the contents of
  54602. + # stdout. On the other hand, if the command is not
  54603. + # found, the shell will set an exit code of 127 and print
  54604. + # *an error message* to stdout. So we must check for both
  54605. + # error code of zero AND non-empty stdout, which explains
  54606. + # the odd construction:
  54607. + func_to_host_path_tmp1=`winepath -w "$1" 2>/dev/null`
  54608. + if test "$?" -eq 0 && test -n "${func_to_host_path_tmp1}"; then
  54609. + func_to_host_path_result=`echo "$func_to_host_path_tmp1" |\
  54610. + $SED -e "$lt_sed_naive_backslashify"`
  54611. + else
  54612. + # Allow warning below.
  54613. + func_to_host_path_result=""
  54614. + fi
  54615. + ;;
  54616. + esac
  54617. + if test -z "$func_to_host_path_result" ; then
  54618. + func_error "Could not determine host path corresponding to"
  54619. + func_error " '$1'"
  54620. + func_error "Continuing, but uninstalled executables may not work."
  54621. + # Fallback:
  54622. + func_to_host_path_result="$1"
  54623. + fi
  54624. + ;;
  54625. + esac
  54626. + fi
  54627. }
  54628. -#endif
  54629. +# end: func_to_host_path
  54630. -#ifdef __cplusplus
  54631. +# func_to_host_pathlist arg
  54632. +#
  54633. +# Convert pathlists to host format when used with build tools.
  54634. +# See func_to_host_path(), above. This function supports the
  54635. +# following $build/$host combinations (but does no harm for
  54636. +# combinations not listed here):
  54637. +# $build $host
  54638. +# mingw (msys) mingw [e.g. native]
  54639. +# cygwin mingw
  54640. +# *nix + wine mingw
  54641. +#
  54642. +# Path separators are also converted from $build format to
  54643. +# $host format. If ARG begins or ends with a path separator
  54644. +# character, it is preserved (but converted to $host format)
  54645. +# on output.
  54646. +#
  54647. +# ARG is a pathlist (on $build) that should be converted to
  54648. +# the proper representation on $host. The result is stored
  54649. +# in $func_to_host_pathlist_result.
  54650. +func_to_host_pathlist ()
  54651. +{
  54652. + func_to_host_pathlist_result="$1"
  54653. + if test -n "$1" ; then
  54654. + case $host in
  54655. + *mingw* )
  54656. + lt_sed_naive_backslashify='s|\\\\*|\\|g;s|/|\\|g;s|\\|\\\\|g'
  54657. + # Remove leading and trailing path separator characters from
  54658. + # ARG. msys behavior is inconsistent here, cygpath turns them
  54659. + # into '.;' and ';.', and winepath ignores them completely.
  54660. + func_to_host_pathlist_tmp2="$1"
  54661. + # Once set for this call, this variable should not be
  54662. + # reassigned. It is used in tha fallback case.
  54663. + func_to_host_pathlist_tmp1=`echo "$func_to_host_pathlist_tmp2" |\
  54664. + $SED -e 's|^:*||' -e 's|:*$||'`
  54665. + case $build in
  54666. + *mingw* ) # Actually, msys.
  54667. + # Awkward: cmd appends spaces to result.
  54668. + lt_sed_strip_trailing_spaces="s/[ ]*\$//"
  54669. + func_to_host_pathlist_tmp2=`( cmd //c echo "$func_to_host_pathlist_tmp1" |\
  54670. + $SED -e "$lt_sed_strip_trailing_spaces" ) 2>/dev/null || echo ""`
  54671. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  54672. + $SED -e "$lt_sed_naive_backslashify"`
  54673. + ;;
  54674. + *cygwin* )
  54675. + func_to_host_pathlist_tmp2=`cygpath -w -p "$func_to_host_pathlist_tmp1"`
  54676. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp2" |\
  54677. + $SED -e "$lt_sed_naive_backslashify"`
  54678. + ;;
  54679. + * )
  54680. + # unfortunately, winepath doesn't convert pathlists
  54681. + func_to_host_pathlist_result=""
  54682. + func_to_host_pathlist_oldIFS=$IFS
  54683. + IFS=:
  54684. + for func_to_host_pathlist_f in $func_to_host_pathlist_tmp1 ; do
  54685. + IFS=$func_to_host_pathlist_oldIFS
  54686. + if test -n "$func_to_host_pathlist_f" ; then
  54687. + func_to_host_path "$func_to_host_pathlist_f"
  54688. + if test -n "$func_to_host_path_result" ; then
  54689. + if test -z "$func_to_host_pathlist_result" ; then
  54690. + func_to_host_pathlist_result="$func_to_host_path_result"
  54691. + else
  54692. + func_to_host_pathlist_result="$func_to_host_pathlist_result;$func_to_host_path_result"
  54693. + fi
  54694. + fi
  54695. + fi
  54696. + IFS=:
  54697. + done
  54698. + IFS=$func_to_host_pathlist_oldIFS
  54699. + ;;
  54700. + esac
  54701. + if test -z "$func_to_host_pathlist_result" ; then
  54702. + func_error "Could not determine the host path(s) corresponding to"
  54703. + func_error " '$1'"
  54704. + func_error "Continuing, but uninstalled executables may not work."
  54705. + # Fallback. This may break if $1 contains DOS-style drive
  54706. + # specifications. The fix is not to complicate the expression
  54707. + # below, but for the user to provide a working wine installation
  54708. + # with winepath so that path translation in the cross-to-mingw
  54709. + # case works properly.
  54710. + lt_replace_pathsep_nix_to_dos="s|:|;|g"
  54711. + func_to_host_pathlist_result=`echo "$func_to_host_pathlist_tmp1" |\
  54712. + $SED -e "$lt_replace_pathsep_nix_to_dos"`
  54713. + fi
  54714. + # Now, add the leading and trailing path separators back
  54715. + case "$1" in
  54716. + :* ) func_to_host_pathlist_result=";$func_to_host_pathlist_result"
  54717. + ;;
  54718. + esac
  54719. + case "$1" in
  54720. + *: ) func_to_host_pathlist_result="$func_to_host_pathlist_result;"
  54721. + ;;
  54722. + esac
  54723. + ;;
  54724. + esac
  54725. + fi
  54726. }
  54727. -#endif\
  54728. -"
  54729. - fi
  54730. -
  54731. - pic_flag_for_symtable=
  54732. - case $host in
  54733. - # compiling the symbol table file with pic_flag works around
  54734. - # a FreeBSD bug that causes programs to crash when -lm is
  54735. - # linked before any other PIC object. But we must not use
  54736. - # pic_flag when linking with -static. The problem exists in
  54737. - # FreeBSD 2.2.6 and is fixed in FreeBSD 3.1.
  54738. - *-*-freebsd2*|*-*-freebsd3.0*|*-*-freebsdelf3.0*)
  54739. - case "$compile_command " in
  54740. - *" -static "*) ;;
  54741. - *) pic_flag_for_symtable=" $pic_flag -DFREEBSD_WORKAROUND";;
  54742. - esac;;
  54743. - *-*-hpux*)
  54744. - case "$compile_command " in
  54745. - *" -static "*) ;;
  54746. - *) pic_flag_for_symtable=" $pic_flag";;
  54747. - esac
  54748. - esac
  54749. -
  54750. - # Now compile the dynamic symbol file.
  54751. - $show "(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable \"$dlsyms\")"
  54752. - $run eval '(cd $output_objdir && $LTCC -c$no_builtin_flag$pic_flag_for_symtable "$dlsyms")' || exit $?
  54753. -
  54754. - # Clean up the generated files.
  54755. - $show "$rm $output_objdir/$dlsyms $nlist ${nlist}S ${nlist}T"
  54756. - $run $rm "$output_objdir/$dlsyms" "$nlist" "${nlist}S" "${nlist}T"
  54757. -
  54758. - # Transform the symbol file into the correct name.
  54759. - compile_command=`$echo "X$compile_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  54760. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s%@SYMFILE@%$output_objdir/${outputname}S.${objext}%"`
  54761. - ;;
  54762. - *)
  54763. - $echo "$modename: unknown suffix for \`$dlsyms'" 1>&2
  54764. - exit $EXIT_FAILURE
  54765. - ;;
  54766. - esac
  54767. - else
  54768. - # We keep going just in case the user didn't refer to
  54769. - # lt_preloaded_symbols. The linker will fail if global_symbol_pipe
  54770. - # really was required.
  54771. -
  54772. - # Nullify the symbol file.
  54773. - compile_command=`$echo "X$compile_command" | $Xsed -e "s% @SYMFILE@%%"`
  54774. - finalize_command=`$echo "X$finalize_command" | $Xsed -e "s% @SYMFILE@%%"`
  54775. - fi
  54776. -
  54777. - if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  54778. - # Replace the output file specification.
  54779. - compile_command=`$echo "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  54780. - link_command="$compile_command$compile_rpath"
  54781. -
  54782. - # We have no uninstalled library dependencies, so finalize right now.
  54783. - $show "$link_command"
  54784. - $run eval "$link_command"
  54785. - status=$?
  54786. -
  54787. - # Delete the generated files.
  54788. - if test -n "$dlsyms"; then
  54789. - $show "$rm $output_objdir/${outputname}S.${objext}"
  54790. - $run $rm "$output_objdir/${outputname}S.${objext}"
  54791. - fi
  54792. -
  54793. - exit $status
  54794. - fi
  54795. -
  54796. - if test -n "$shlibpath_var"; then
  54797. - # We should set the shlibpath_var
  54798. - rpath=
  54799. - for dir in $temp_rpath; do
  54800. - case $dir in
  54801. - [\\/]* | [A-Za-z]:[\\/]*)
  54802. - # Absolute path.
  54803. - rpath="$rpath$dir:"
  54804. - ;;
  54805. - *)
  54806. - # Relative path: add a thisdir entry.
  54807. - rpath="$rpath\$thisdir/$dir:"
  54808. - ;;
  54809. - esac
  54810. - done
  54811. - temp_rpath="$rpath"
  54812. - fi
  54813. -
  54814. - if test -n "$compile_shlibpath$finalize_shlibpath"; then
  54815. - compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  54816. - fi
  54817. - if test -n "$finalize_shlibpath"; then
  54818. - finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  54819. - fi
  54820. -
  54821. - compile_var=
  54822. - finalize_var=
  54823. - if test -n "$runpath_var"; then
  54824. - if test -n "$perm_rpath"; then
  54825. - # We should set the runpath_var.
  54826. - rpath=
  54827. - for dir in $perm_rpath; do
  54828. - rpath="$rpath$dir:"
  54829. - done
  54830. - compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54831. - fi
  54832. - if test -n "$finalize_perm_rpath"; then
  54833. - # We should set the runpath_var.
  54834. - rpath=
  54835. - for dir in $finalize_perm_rpath; do
  54836. - rpath="$rpath$dir:"
  54837. - done
  54838. - finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  54839. - fi
  54840. - fi
  54841. -
  54842. - if test "$no_install" = yes; then
  54843. - # We don't need to create a wrapper script.
  54844. - link_command="$compile_var$compile_command$compile_rpath"
  54845. - # Replace the output file specification.
  54846. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  54847. - # Delete the old output file.
  54848. - $run $rm $output
  54849. - # Link the executable and exit
  54850. - $show "$link_command"
  54851. - $run eval "$link_command" || exit $?
  54852. - exit $EXIT_SUCCESS
  54853. - fi
  54854. -
  54855. - if test "$hardcode_action" = relink; then
  54856. - # Fast installation is not supported
  54857. - link_command="$compile_var$compile_command$compile_rpath"
  54858. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  54859. -
  54860. - $echo "$modename: warning: this platform does not like uninstalled shared libraries" 1>&2
  54861. - $echo "$modename: \`$output' will be relinked during installation" 1>&2
  54862. - else
  54863. - if test "$fast_install" != no; then
  54864. - link_command="$finalize_var$compile_command$finalize_rpath"
  54865. - if test "$fast_install" = yes; then
  54866. - relink_command=`$echo "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  54867. - else
  54868. - # fast_install is set to needless
  54869. - relink_command=
  54870. - fi
  54871. - else
  54872. - link_command="$compile_var$compile_command$compile_rpath"
  54873. - relink_command="$finalize_var$finalize_command$finalize_rpath"
  54874. - fi
  54875. - fi
  54876. -
  54877. - # Replace the output file specification.
  54878. - link_command=`$echo "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  54879. -
  54880. - # Delete the old output files.
  54881. - $run $rm $output $output_objdir/$outputname $output_objdir/lt-$outputname
  54882. -
  54883. - $show "$link_command"
  54884. - $run eval "$link_command" || exit $?
  54885. -
  54886. - # Now create the wrapper script.
  54887. - $show "creating $output"
  54888. -
  54889. - # Quote the relink command for shipping.
  54890. - if test -n "$relink_command"; then
  54891. - # Preserve any variables that may affect compiler behavior
  54892. - for var in $variables_saved_for_relink; do
  54893. - if eval test -z \"\${$var+set}\"; then
  54894. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  54895. - elif eval var_value=\$$var; test -z "$var_value"; then
  54896. - relink_command="$var=; export $var; $relink_command"
  54897. - else
  54898. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  54899. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  54900. - fi
  54901. - done
  54902. - relink_command="(cd `pwd`; $relink_command)"
  54903. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  54904. - fi
  54905. -
  54906. - # Quote $echo for shipping.
  54907. - if test "X$echo" = "X$SHELL $progpath --fallback-echo"; then
  54908. - case $progpath in
  54909. - [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  54910. - *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  54911. - esac
  54912. - qecho=`$echo "X$qecho" | $Xsed -e "$sed_quote_subst"`
  54913. - else
  54914. - qecho=`$echo "X$echo" | $Xsed -e "$sed_quote_subst"`
  54915. - fi
  54916. -
  54917. - # Only actually do things if our run command is non-null.
  54918. - if test -z "$run"; then
  54919. - # win32 will think the script is a binary if it has
  54920. - # a .exe suffix, so we strip it off here.
  54921. - case $output in
  54922. - *.exe) output=`$echo $output|${SED} 's,.exe$,,'` ;;
  54923. - esac
  54924. - # test for cygwin because mv fails w/o .exe extensions
  54925. - case $host in
  54926. - *cygwin*)
  54927. - exeext=.exe
  54928. - outputname=`$echo $outputname|${SED} 's,.exe$,,'` ;;
  54929. - *) exeext= ;;
  54930. - esac
  54931. - case $host in
  54932. - *cygwin* | *mingw* )
  54933. - cwrappersource=`$echo ${objdir}/lt-${output}.c`
  54934. - cwrapper=`$echo ${output}.exe`
  54935. - $rm $cwrappersource $cwrapper
  54936. - trap "$rm $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  54937. +# end: func_to_host_pathlist
  54938. - cat > $cwrappersource <<EOF
  54939. +# func_emit_cwrapperexe_src
  54940. +# emit the source code for a wrapper executable on stdout
  54941. +# Must ONLY be called from within func_mode_link because
  54942. +# it depends on a number of variable set therein.
  54943. +func_emit_cwrapperexe_src ()
  54944. +{
  54945. + cat <<EOF
  54946. /* $cwrappersource - temporary wrapper executable for $objdir/$outputname
  54947. - Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  54948. + Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  54949. The $output program cannot be directly executed until all the libtool
  54950. libraries that it depends on are installed.
  54951. @@ -4597,18 +3142,40 @@
  54952. This wrapper executable should never be moved out of the build directory.
  54953. If it is, it will not operate correctly.
  54954. - Currently, it simply execs the wrapper *script* "/bin/sh $output",
  54955. + Currently, it simply execs the wrapper *script* "$SHELL $output",
  54956. but could eventually absorb all of the scripts functionality and
  54957. exec $objdir/$outputname directly.
  54958. */
  54959. EOF
  54960. - cat >> $cwrappersource<<"EOF"
  54961. + cat <<"EOF"
  54962. #include <stdio.h>
  54963. #include <stdlib.h>
  54964. -#include <unistd.h>
  54965. +#ifdef _MSC_VER
  54966. +# include <direct.h>
  54967. +# include <process.h>
  54968. +# include <io.h>
  54969. +# define setmode _setmode
  54970. +#else
  54971. +# include <unistd.h>
  54972. +# include <stdint.h>
  54973. +# ifdef __CYGWIN__
  54974. +# include <io.h>
  54975. +# define HAVE_SETENV
  54976. +# ifdef __STRICT_ANSI__
  54977. +char *realpath (const char *, char *);
  54978. +int putenv (char *);
  54979. +int setenv (const char *, const char *, int);
  54980. +# endif
  54981. +# endif
  54982. +#endif
  54983. #include <malloc.h>
  54984. #include <stdarg.h>
  54985. #include <assert.h>
  54986. +#include <string.h>
  54987. +#include <ctype.h>
  54988. +#include <errno.h>
  54989. +#include <fcntl.h>
  54990. +#include <sys/stat.h>
  54991. #if defined(PATH_MAX)
  54992. # define LT_PATHMAX PATH_MAX
  54993. @@ -4618,154 +3185,657 @@
  54994. # define LT_PATHMAX 1024
  54995. #endif
  54996. +#ifndef S_IXOTH
  54997. +# define S_IXOTH 0
  54998. +#endif
  54999. +#ifndef S_IXGRP
  55000. +# define S_IXGRP 0
  55001. +#endif
  55002. +
  55003. +#ifdef _MSC_VER
  55004. +# define S_IXUSR _S_IEXEC
  55005. +# define stat _stat
  55006. +# ifndef _INTPTR_T_DEFINED
  55007. +# define intptr_t int
  55008. +# endif
  55009. +#endif
  55010. +
  55011. #ifndef DIR_SEPARATOR
  55012. -#define DIR_SEPARATOR '/'
  55013. +# define DIR_SEPARATOR '/'
  55014. +# define PATH_SEPARATOR ':'
  55015. #endif
  55016. #if defined (_WIN32) || defined (__MSDOS__) || defined (__DJGPP__) || \
  55017. defined (__OS2__)
  55018. -#define HAVE_DOS_BASED_FILE_SYSTEM
  55019. -#ifndef DIR_SEPARATOR_2
  55020. -#define DIR_SEPARATOR_2 '\\'
  55021. -#endif
  55022. +# define HAVE_DOS_BASED_FILE_SYSTEM
  55023. +# define FOPEN_WB "wb"
  55024. +# ifndef DIR_SEPARATOR_2
  55025. +# define DIR_SEPARATOR_2 '\\'
  55026. +# endif
  55027. +# ifndef PATH_SEPARATOR_2
  55028. +# define PATH_SEPARATOR_2 ';'
  55029. +# endif
  55030. #endif
  55031. #ifndef DIR_SEPARATOR_2
  55032. # define IS_DIR_SEPARATOR(ch) ((ch) == DIR_SEPARATOR)
  55033. #else /* DIR_SEPARATOR_2 */
  55034. # define IS_DIR_SEPARATOR(ch) \
  55035. - (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  55036. + (((ch) == DIR_SEPARATOR) || ((ch) == DIR_SEPARATOR_2))
  55037. #endif /* DIR_SEPARATOR_2 */
  55038. +#ifndef PATH_SEPARATOR_2
  55039. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR)
  55040. +#else /* PATH_SEPARATOR_2 */
  55041. +# define IS_PATH_SEPARATOR(ch) ((ch) == PATH_SEPARATOR_2)
  55042. +#endif /* PATH_SEPARATOR_2 */
  55043. +
  55044. +#ifdef __CYGWIN__
  55045. +# define FOPEN_WB "wb"
  55046. +#endif
  55047. +
  55048. +#ifndef FOPEN_WB
  55049. +# define FOPEN_WB "w"
  55050. +#endif
  55051. +#ifndef _O_BINARY
  55052. +# define _O_BINARY 0
  55053. +#endif
  55054. +
  55055. #define XMALLOC(type, num) ((type *) xmalloc ((num) * sizeof(type)))
  55056. #define XFREE(stale) do { \
  55057. if (stale) { free ((void *) stale); stale = 0; } \
  55058. } while (0)
  55059. +#undef LTWRAPPER_DEBUGPRINTF
  55060. +#if defined DEBUGWRAPPER
  55061. +# define LTWRAPPER_DEBUGPRINTF(args) ltwrapper_debugprintf args
  55062. +static void
  55063. +ltwrapper_debugprintf (const char *fmt, ...)
  55064. +{
  55065. + va_list args;
  55066. + va_start (args, fmt);
  55067. + (void) vfprintf (stderr, fmt, args);
  55068. + va_end (args);
  55069. +}
  55070. +#else
  55071. +# define LTWRAPPER_DEBUGPRINTF(args)
  55072. +#endif
  55073. +
  55074. const char *program_name = NULL;
  55075. -void * xmalloc (size_t num);
  55076. -char * xstrdup (const char *string);
  55077. -char * basename (const char *name);
  55078. -char * fnqualify(const char *path);
  55079. -char * strendzap(char *str, const char *pat);
  55080. +void *xmalloc (size_t num);
  55081. +char *xstrdup (const char *string);
  55082. +const char *base_name (const char *name);
  55083. +char *find_executable (const char *wrapper);
  55084. +char *chase_symlinks (const char *pathspec);
  55085. +int make_executable (const char *path);
  55086. +int check_executable (const char *path);
  55087. +char *strendzap (char *str, const char *pat);
  55088. void lt_fatal (const char *message, ...);
  55089. +void lt_setenv (const char *name, const char *value);
  55090. +char *lt_extend_str (const char *orig_value, const char *add, int to_end);
  55091. +void lt_opt_process_env_set (const char *arg);
  55092. +void lt_opt_process_env_prepend (const char *arg);
  55093. +void lt_opt_process_env_append (const char *arg);
  55094. +int lt_split_name_value (const char *arg, char** name, char** value);
  55095. +void lt_update_exe_path (const char *name, const char *value);
  55096. +void lt_update_lib_path (const char *name, const char *value);
  55097. -int
  55098. -main (int argc, char *argv[])
  55099. -{
  55100. - char **newargz;
  55101. - int i;
  55102. +static const char *script_text_part1 =
  55103. +EOF
  55104. +
  55105. + func_emit_wrapper_part1 yes |
  55106. + $SED -e 's/\([\\"]\)/\\\1/g' \
  55107. + -e 's/^/ "/' -e 's/$/\\n"/'
  55108. + echo ";"
  55109. + cat <<EOF
  55110. - program_name = (char *) xstrdup ((char *) basename (argv[0]));
  55111. - newargz = XMALLOC(char *, argc+2);
  55112. +static const char *script_text_part2 =
  55113. +EOF
  55114. + func_emit_wrapper_part2 yes |
  55115. + $SED -e 's/\([\\"]\)/\\\1/g' \
  55116. + -e 's/^/ "/' -e 's/$/\\n"/'
  55117. + echo ";"
  55118. +
  55119. + cat <<EOF
  55120. +const char * MAGIC_EXE = "$magic_exe";
  55121. +const char * LIB_PATH_VARNAME = "$shlibpath_var";
  55122. EOF
  55123. - cat >> $cwrappersource <<EOF
  55124. - newargz[0] = "$SHELL";
  55125. + if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  55126. + func_to_host_pathlist "$temp_rpath"
  55127. + cat <<EOF
  55128. +const char * LIB_PATH_VALUE = "$func_to_host_pathlist_result";
  55129. +EOF
  55130. + else
  55131. + cat <<"EOF"
  55132. +const char * LIB_PATH_VALUE = "";
  55133. EOF
  55134. + fi
  55135. - cat >> $cwrappersource <<"EOF"
  55136. - newargz[1] = fnqualify(argv[0]);
  55137. - /* we know the script has the same name, without the .exe */
  55138. - /* so make sure newargz[1] doesn't end in .exe */
  55139. - strendzap(newargz[1],".exe");
  55140. - for (i = 1; i < argc; i++)
  55141. - newargz[i+1] = xstrdup(argv[i]);
  55142. - newargz[argc+1] = NULL;
  55143. + if test -n "$dllsearchpath"; then
  55144. + func_to_host_pathlist "$dllsearchpath:"
  55145. + cat <<EOF
  55146. +const char * EXE_PATH_VARNAME = "PATH";
  55147. +const char * EXE_PATH_VALUE = "$func_to_host_pathlist_result";
  55148. +EOF
  55149. + else
  55150. + cat <<"EOF"
  55151. +const char * EXE_PATH_VARNAME = "";
  55152. +const char * EXE_PATH_VALUE = "";
  55153. EOF
  55154. + fi
  55155. - cat >> $cwrappersource <<EOF
  55156. - execv("$SHELL",newargz);
  55157. + if test "$fast_install" = yes; then
  55158. + cat <<EOF
  55159. +const char * TARGET_PROGRAM_NAME = "lt-$outputname"; /* hopefully, no .exe */
  55160. EOF
  55161. + else
  55162. + cat <<EOF
  55163. +const char * TARGET_PROGRAM_NAME = "$outputname"; /* hopefully, no .exe */
  55164. +EOF
  55165. + fi
  55166. - cat >> $cwrappersource <<"EOF"
  55167. -}
  55168. -void *
  55169. -xmalloc (size_t num)
  55170. -{
  55171. - void * p = (void *) malloc (num);
  55172. - if (!p)
  55173. - lt_fatal ("Memory exhausted");
  55174. + cat <<"EOF"
  55175. - return p;
  55176. -}
  55177. +#define LTWRAPPER_OPTION_PREFIX "--lt-"
  55178. +#define LTWRAPPER_OPTION_PREFIX_LENGTH 5
  55179. -char *
  55180. -xstrdup (const char *string)
  55181. -{
  55182. - return string ? strcpy ((char *) xmalloc (strlen (string) + 1), string) : NULL
  55183. -;
  55184. -}
  55185. +static const size_t opt_prefix_len = LTWRAPPER_OPTION_PREFIX_LENGTH;
  55186. +static const char *ltwrapper_option_prefix = LTWRAPPER_OPTION_PREFIX;
  55187. -char *
  55188. -basename (const char *name)
  55189. -{
  55190. - const char *base;
  55191. +static const char *dumpscript_opt = LTWRAPPER_OPTION_PREFIX "dump-script";
  55192. -#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55193. - /* Skip over the disk name in MSDOS pathnames. */
  55194. - if (isalpha (name[0]) && name[1] == ':')
  55195. - name += 2;
  55196. -#endif
  55197. +static const size_t env_set_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 7;
  55198. +static const char *env_set_opt = LTWRAPPER_OPTION_PREFIX "env-set";
  55199. + /* argument is putenv-style "foo=bar", value of foo is set to bar */
  55200. - for (base = name; *name; name++)
  55201. - if (IS_DIR_SEPARATOR (*name))
  55202. +static const size_t env_prepend_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 11;
  55203. +static const char *env_prepend_opt = LTWRAPPER_OPTION_PREFIX "env-prepend";
  55204. + /* argument is putenv-style "foo=bar", new value of foo is bar${foo} */
  55205. +
  55206. +static const size_t env_append_opt_len = LTWRAPPER_OPTION_PREFIX_LENGTH + 10;
  55207. +static const char *env_append_opt = LTWRAPPER_OPTION_PREFIX "env-append";
  55208. + /* argument is putenv-style "foo=bar", new value of foo is ${foo}bar */
  55209. +
  55210. +int
  55211. +main (int argc, char *argv[])
  55212. +{
  55213. + char **newargz;
  55214. + int newargc;
  55215. + char *tmp_pathspec;
  55216. + char *actual_cwrapper_path;
  55217. + char *actual_cwrapper_name;
  55218. + char *target_name;
  55219. + char *lt_argv_zero;
  55220. + intptr_t rval = 127;
  55221. +
  55222. + int i;
  55223. +
  55224. + program_name = (char *) xstrdup (base_name (argv[0]));
  55225. + LTWRAPPER_DEBUGPRINTF (("(main) argv[0] : %s\n", argv[0]));
  55226. + LTWRAPPER_DEBUGPRINTF (("(main) program_name : %s\n", program_name));
  55227. +
  55228. + /* very simple arg parsing; don't want to rely on getopt */
  55229. + for (i = 1; i < argc; i++)
  55230. + {
  55231. + if (strcmp (argv[i], dumpscript_opt) == 0)
  55232. + {
  55233. +EOF
  55234. + case "$host" in
  55235. + *mingw* | *cygwin* )
  55236. + # make stdout use "unix" line endings
  55237. + echo " setmode(1,_O_BINARY);"
  55238. + ;;
  55239. + esac
  55240. +
  55241. + cat <<"EOF"
  55242. + printf ("%s", script_text_part1);
  55243. + printf ("%s", script_text_part2);
  55244. + return 0;
  55245. + }
  55246. + }
  55247. +
  55248. + newargz = XMALLOC (char *, argc + 1);
  55249. + tmp_pathspec = find_executable (argv[0]);
  55250. + if (tmp_pathspec == NULL)
  55251. + lt_fatal ("Couldn't find %s", argv[0]);
  55252. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (before symlink chase) at : %s\n",
  55253. + tmp_pathspec));
  55254. +
  55255. + actual_cwrapper_path = chase_symlinks (tmp_pathspec);
  55256. + LTWRAPPER_DEBUGPRINTF (("(main) found exe (after symlink chase) at : %s\n",
  55257. + actual_cwrapper_path));
  55258. + XFREE (tmp_pathspec);
  55259. +
  55260. + actual_cwrapper_name = xstrdup( base_name (actual_cwrapper_path));
  55261. + strendzap (actual_cwrapper_path, actual_cwrapper_name);
  55262. +
  55263. + /* wrapper name transforms */
  55264. + strendzap (actual_cwrapper_name, ".exe");
  55265. + tmp_pathspec = lt_extend_str (actual_cwrapper_name, ".exe", 1);
  55266. + XFREE (actual_cwrapper_name);
  55267. + actual_cwrapper_name = tmp_pathspec;
  55268. + tmp_pathspec = 0;
  55269. +
  55270. + /* target_name transforms -- use actual target program name; might have lt- prefix */
  55271. + target_name = xstrdup (base_name (TARGET_PROGRAM_NAME));
  55272. + strendzap (target_name, ".exe");
  55273. + tmp_pathspec = lt_extend_str (target_name, ".exe", 1);
  55274. + XFREE (target_name);
  55275. + target_name = tmp_pathspec;
  55276. + tmp_pathspec = 0;
  55277. +
  55278. + LTWRAPPER_DEBUGPRINTF (("(main) libtool target name: %s\n",
  55279. + target_name));
  55280. +EOF
  55281. +
  55282. + cat <<EOF
  55283. + newargz[0] =
  55284. + XMALLOC (char, (strlen (actual_cwrapper_path) +
  55285. + strlen ("$objdir") + 1 + strlen (actual_cwrapper_name) + 1));
  55286. + strcpy (newargz[0], actual_cwrapper_path);
  55287. + strcat (newargz[0], "$objdir");
  55288. + strcat (newargz[0], "/");
  55289. +EOF
  55290. +
  55291. + cat <<"EOF"
  55292. + /* stop here, and copy so we don't have to do this twice */
  55293. + tmp_pathspec = xstrdup (newargz[0]);
  55294. +
  55295. + /* do NOT want the lt- prefix here, so use actual_cwrapper_name */
  55296. + strcat (newargz[0], actual_cwrapper_name);
  55297. +
  55298. + /* DO want the lt- prefix here if it exists, so use target_name */
  55299. + lt_argv_zero = lt_extend_str (tmp_pathspec, target_name, 1);
  55300. + XFREE (tmp_pathspec);
  55301. + tmp_pathspec = NULL;
  55302. +EOF
  55303. +
  55304. + case $host_os in
  55305. + mingw*)
  55306. + cat <<"EOF"
  55307. + {
  55308. + char* p;
  55309. + while ((p = strchr (newargz[0], '\\')) != NULL)
  55310. + {
  55311. + *p = '/';
  55312. + }
  55313. + while ((p = strchr (lt_argv_zero, '\\')) != NULL)
  55314. + {
  55315. + *p = '/';
  55316. + }
  55317. + }
  55318. +EOF
  55319. + ;;
  55320. + esac
  55321. +
  55322. + cat <<"EOF"
  55323. + XFREE (target_name);
  55324. + XFREE (actual_cwrapper_path);
  55325. + XFREE (actual_cwrapper_name);
  55326. +
  55327. + lt_setenv ("BIN_SH", "xpg4"); /* for Tru64 */
  55328. + lt_setenv ("DUALCASE", "1"); /* for MSK sh */
  55329. + lt_update_lib_path (LIB_PATH_VARNAME, LIB_PATH_VALUE);
  55330. + lt_update_exe_path (EXE_PATH_VARNAME, EXE_PATH_VALUE);
  55331. +
  55332. + newargc=0;
  55333. + for (i = 1; i < argc; i++)
  55334. + {
  55335. + if (strncmp (argv[i], env_set_opt, env_set_opt_len) == 0)
  55336. + {
  55337. + if (argv[i][env_set_opt_len] == '=')
  55338. + {
  55339. + const char *p = argv[i] + env_set_opt_len + 1;
  55340. + lt_opt_process_env_set (p);
  55341. + }
  55342. + else if (argv[i][env_set_opt_len] == '\0' && i + 1 < argc)
  55343. + {
  55344. + lt_opt_process_env_set (argv[++i]); /* don't copy */
  55345. + }
  55346. + else
  55347. + lt_fatal ("%s missing required argument", env_set_opt);
  55348. + continue;
  55349. + }
  55350. + if (strncmp (argv[i], env_prepend_opt, env_prepend_opt_len) == 0)
  55351. + {
  55352. + if (argv[i][env_prepend_opt_len] == '=')
  55353. + {
  55354. + const char *p = argv[i] + env_prepend_opt_len + 1;
  55355. + lt_opt_process_env_prepend (p);
  55356. + }
  55357. + else if (argv[i][env_prepend_opt_len] == '\0' && i + 1 < argc)
  55358. + {
  55359. + lt_opt_process_env_prepend (argv[++i]); /* don't copy */
  55360. + }
  55361. + else
  55362. + lt_fatal ("%s missing required argument", env_prepend_opt);
  55363. + continue;
  55364. + }
  55365. + if (strncmp (argv[i], env_append_opt, env_append_opt_len) == 0)
  55366. + {
  55367. + if (argv[i][env_append_opt_len] == '=')
  55368. + {
  55369. + const char *p = argv[i] + env_append_opt_len + 1;
  55370. + lt_opt_process_env_append (p);
  55371. + }
  55372. + else if (argv[i][env_append_opt_len] == '\0' && i + 1 < argc)
  55373. + {
  55374. + lt_opt_process_env_append (argv[++i]); /* don't copy */
  55375. + }
  55376. + else
  55377. + lt_fatal ("%s missing required argument", env_append_opt);
  55378. + continue;
  55379. + }
  55380. + if (strncmp (argv[i], ltwrapper_option_prefix, opt_prefix_len) == 0)
  55381. + {
  55382. + /* however, if there is an option in the LTWRAPPER_OPTION_PREFIX
  55383. + namespace, but it is not one of the ones we know about and
  55384. + have already dealt with, above (inluding dump-script), then
  55385. + report an error. Otherwise, targets might begin to believe
  55386. + they are allowed to use options in the LTWRAPPER_OPTION_PREFIX
  55387. + namespace. The first time any user complains about this, we'll
  55388. + need to make LTWRAPPER_OPTION_PREFIX a configure-time option
  55389. + or a configure.ac-settable value.
  55390. + */
  55391. + lt_fatal ("Unrecognized option in %s namespace: '%s'",
  55392. + ltwrapper_option_prefix, argv[i]);
  55393. + }
  55394. + /* otherwise ... */
  55395. + newargz[++newargc] = xstrdup (argv[i]);
  55396. + }
  55397. + newargz[++newargc] = NULL;
  55398. +
  55399. + LTWRAPPER_DEBUGPRINTF (("(main) lt_argv_zero : %s\n", (lt_argv_zero ? lt_argv_zero : "<NULL>")));
  55400. + for (i = 0; i < newargc; i++)
  55401. + {
  55402. + LTWRAPPER_DEBUGPRINTF (("(main) newargz[%d] : %s\n", i, (newargz[i] ? newargz[i] : "<NULL>")));
  55403. + }
  55404. +
  55405. +EOF
  55406. +
  55407. + case $host_os in
  55408. + mingw*)
  55409. + cat <<"EOF"
  55410. + /* execv doesn't actually work on mingw as expected on unix */
  55411. + rval = _spawnv (_P_WAIT, lt_argv_zero, (const char * const *) newargz);
  55412. + if (rval == -1)
  55413. + {
  55414. + /* failed to start process */
  55415. + LTWRAPPER_DEBUGPRINTF (("(main) failed to launch target \"%s\": errno = %d\n", lt_argv_zero, errno));
  55416. + return 127;
  55417. + }
  55418. + return rval;
  55419. +EOF
  55420. + ;;
  55421. + *)
  55422. + cat <<"EOF"
  55423. + execv (lt_argv_zero, newargz);
  55424. + return rval; /* =127, but avoids unused variable warning */
  55425. +EOF
  55426. + ;;
  55427. + esac
  55428. +
  55429. + cat <<"EOF"
  55430. +}
  55431. +
  55432. +void *
  55433. +xmalloc (size_t num)
  55434. +{
  55435. + void *p = (void *) malloc (num);
  55436. + if (!p)
  55437. + lt_fatal ("Memory exhausted");
  55438. +
  55439. + return p;
  55440. +}
  55441. +
  55442. +char *
  55443. +xstrdup (const char *string)
  55444. +{
  55445. + return string ? strcpy ((char *) xmalloc (strlen (string) + 1),
  55446. + string) : NULL;
  55447. +}
  55448. +
  55449. +const char *
  55450. +base_name (const char *name)
  55451. +{
  55452. + const char *base;
  55453. +
  55454. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55455. + /* Skip over the disk name in MSDOS pathnames. */
  55456. + if (isalpha ((unsigned char) name[0]) && name[1] == ':')
  55457. + name += 2;
  55458. +#endif
  55459. +
  55460. + for (base = name; *name; name++)
  55461. + if (IS_DIR_SEPARATOR (*name))
  55462. base = name + 1;
  55463. - return (char *) base;
  55464. + return base;
  55465. +}
  55466. +
  55467. +int
  55468. +check_executable (const char *path)
  55469. +{
  55470. + struct stat st;
  55471. +
  55472. + LTWRAPPER_DEBUGPRINTF (("(check_executable) : %s\n",
  55473. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  55474. + if ((!path) || (!*path))
  55475. + return 0;
  55476. +
  55477. + if ((stat (path, &st) >= 0)
  55478. + && (st.st_mode & (S_IXUSR | S_IXGRP | S_IXOTH)))
  55479. + return 1;
  55480. + else
  55481. + return 0;
  55482. }
  55483. +int
  55484. +make_executable (const char *path)
  55485. +{
  55486. + int rval = 0;
  55487. + struct stat st;
  55488. +
  55489. + LTWRAPPER_DEBUGPRINTF (("(make_executable) : %s\n",
  55490. + path ? (*path ? path : "EMPTY!") : "NULL!"));
  55491. + if ((!path) || (!*path))
  55492. + return 0;
  55493. +
  55494. + if (stat (path, &st) >= 0)
  55495. + {
  55496. + rval = chmod (path, st.st_mode | S_IXOTH | S_IXGRP | S_IXUSR);
  55497. + }
  55498. + return rval;
  55499. +}
  55500. +
  55501. +/* Searches for the full path of the wrapper. Returns
  55502. + newly allocated full path name if found, NULL otherwise
  55503. + Does not chase symlinks, even on platforms that support them.
  55504. +*/
  55505. char *
  55506. -fnqualify(const char *path)
  55507. +find_executable (const char *wrapper)
  55508. {
  55509. - size_t size;
  55510. - char *p;
  55511. + int has_slash = 0;
  55512. + const char *p;
  55513. + const char *p_next;
  55514. + /* static buffer for getcwd */
  55515. char tmp[LT_PATHMAX + 1];
  55516. + int tmp_len;
  55517. + char *concat_name;
  55518. +
  55519. + LTWRAPPER_DEBUGPRINTF (("(find_executable) : %s\n",
  55520. + wrapper ? (*wrapper ? wrapper : "EMPTY!") : "NULL!"));
  55521. - assert(path != NULL);
  55522. + if ((wrapper == NULL) || (*wrapper == '\0'))
  55523. + return NULL;
  55524. - /* Is it qualified already? */
  55525. + /* Absolute path? */
  55526. #if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55527. - if (isalpha (path[0]) && path[1] == ':')
  55528. - return xstrdup (path);
  55529. + if (isalpha ((unsigned char) wrapper[0]) && wrapper[1] == ':')
  55530. + {
  55531. + concat_name = xstrdup (wrapper);
  55532. + if (check_executable (concat_name))
  55533. + return concat_name;
  55534. + XFREE (concat_name);
  55535. + }
  55536. + else
  55537. + {
  55538. +#endif
  55539. + if (IS_DIR_SEPARATOR (wrapper[0]))
  55540. + {
  55541. + concat_name = xstrdup (wrapper);
  55542. + if (check_executable (concat_name))
  55543. + return concat_name;
  55544. + XFREE (concat_name);
  55545. + }
  55546. +#if defined (HAVE_DOS_BASED_FILE_SYSTEM)
  55547. + }
  55548. #endif
  55549. - if (IS_DIR_SEPARATOR (path[0]))
  55550. - return xstrdup (path);
  55551. - /* prepend the current directory */
  55552. - /* doesn't handle '~' */
  55553. + for (p = wrapper; *p; p++)
  55554. + if (*p == '/')
  55555. + {
  55556. + has_slash = 1;
  55557. + break;
  55558. + }
  55559. + if (!has_slash)
  55560. + {
  55561. + /* no slashes; search PATH */
  55562. + const char *path = getenv ("PATH");
  55563. + if (path != NULL)
  55564. + {
  55565. + for (p = path; *p; p = p_next)
  55566. + {
  55567. + const char *q;
  55568. + size_t p_len;
  55569. + for (q = p; *q; q++)
  55570. + if (IS_PATH_SEPARATOR (*q))
  55571. + break;
  55572. + p_len = q - p;
  55573. + p_next = (*q == '\0' ? q : q + 1);
  55574. + if (p_len == 0)
  55575. + {
  55576. + /* empty path: current directory */
  55577. + if (getcwd (tmp, LT_PATHMAX) == NULL)
  55578. + lt_fatal ("getcwd failed");
  55579. + tmp_len = strlen (tmp);
  55580. + concat_name =
  55581. + XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  55582. + memcpy (concat_name, tmp, tmp_len);
  55583. + concat_name[tmp_len] = '/';
  55584. + strcpy (concat_name + tmp_len + 1, wrapper);
  55585. + }
  55586. + else
  55587. + {
  55588. + concat_name =
  55589. + XMALLOC (char, p_len + 1 + strlen (wrapper) + 1);
  55590. + memcpy (concat_name, p, p_len);
  55591. + concat_name[p_len] = '/';
  55592. + strcpy (concat_name + p_len + 1, wrapper);
  55593. + }
  55594. + if (check_executable (concat_name))
  55595. + return concat_name;
  55596. + XFREE (concat_name);
  55597. + }
  55598. + }
  55599. + /* not found in PATH; assume curdir */
  55600. + }
  55601. + /* Relative path | not found in path: prepend cwd */
  55602. if (getcwd (tmp, LT_PATHMAX) == NULL)
  55603. lt_fatal ("getcwd failed");
  55604. - size = strlen(tmp) + 1 + strlen(path) + 1; /* +2 for '/' and '\0' */
  55605. - p = XMALLOC(char, size);
  55606. - sprintf(p, "%s%c%s", tmp, DIR_SEPARATOR, path);
  55607. - return p;
  55608. + tmp_len = strlen (tmp);
  55609. + concat_name = XMALLOC (char, tmp_len + 1 + strlen (wrapper) + 1);
  55610. + memcpy (concat_name, tmp, tmp_len);
  55611. + concat_name[tmp_len] = '/';
  55612. + strcpy (concat_name + tmp_len + 1, wrapper);
  55613. +
  55614. + if (check_executable (concat_name))
  55615. + return concat_name;
  55616. + XFREE (concat_name);
  55617. + return NULL;
  55618. +}
  55619. +
  55620. +char *
  55621. +chase_symlinks (const char *pathspec)
  55622. +{
  55623. +#ifndef S_ISLNK
  55624. + return xstrdup (pathspec);
  55625. +#else
  55626. + char buf[LT_PATHMAX];
  55627. + struct stat s;
  55628. + char *tmp_pathspec = xstrdup (pathspec);
  55629. + char *p;
  55630. + int has_symlinks = 0;
  55631. + while (strlen (tmp_pathspec) && !has_symlinks)
  55632. + {
  55633. + LTWRAPPER_DEBUGPRINTF (("checking path component for symlinks: %s\n",
  55634. + tmp_pathspec));
  55635. + if (lstat (tmp_pathspec, &s) == 0)
  55636. + {
  55637. + if (S_ISLNK (s.st_mode) != 0)
  55638. + {
  55639. + has_symlinks = 1;
  55640. + break;
  55641. + }
  55642. +
  55643. + /* search backwards for last DIR_SEPARATOR */
  55644. + p = tmp_pathspec + strlen (tmp_pathspec) - 1;
  55645. + while ((p > tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  55646. + p--;
  55647. + if ((p == tmp_pathspec) && (!IS_DIR_SEPARATOR (*p)))
  55648. + {
  55649. + /* no more DIR_SEPARATORS left */
  55650. + break;
  55651. + }
  55652. + *p = '\0';
  55653. + }
  55654. + else
  55655. + {
  55656. + char *errstr = strerror (errno);
  55657. + lt_fatal ("Error accessing file %s (%s)", tmp_pathspec, errstr);
  55658. + }
  55659. + }
  55660. + XFREE (tmp_pathspec);
  55661. +
  55662. + if (!has_symlinks)
  55663. + {
  55664. + return xstrdup (pathspec);
  55665. + }
  55666. +
  55667. + tmp_pathspec = realpath (pathspec, buf);
  55668. + if (tmp_pathspec == 0)
  55669. + {
  55670. + lt_fatal ("Could not follow symlinks for %s", pathspec);
  55671. + }
  55672. + return xstrdup (tmp_pathspec);
  55673. +#endif
  55674. }
  55675. char *
  55676. -strendzap(char *str, const char *pat)
  55677. +strendzap (char *str, const char *pat)
  55678. {
  55679. size_t len, patlen;
  55680. - assert(str != NULL);
  55681. - assert(pat != NULL);
  55682. + assert (str != NULL);
  55683. + assert (pat != NULL);
  55684. - len = strlen(str);
  55685. - patlen = strlen(pat);
  55686. + len = strlen (str);
  55687. + patlen = strlen (pat);
  55688. if (patlen <= len)
  55689. - {
  55690. - str += len - patlen;
  55691. - if (strcmp(str, pat) == 0)
  55692. - *str = '\0';
  55693. - }
  55694. + {
  55695. + str += len - patlen;
  55696. + if (strcmp (str, pat) == 0)
  55697. + *str = '\0';
  55698. + }
  55699. return str;
  55700. }
  55701. static void
  55702. -lt_error_core (int exit_status, const char * mode,
  55703. - const char * message, va_list ap)
  55704. +lt_error_core (int exit_status, const char *mode,
  55705. + const char *message, va_list ap)
  55706. {
  55707. fprintf (stderr, "%s: %s: ", program_name, mode);
  55708. vfprintf (stderr, message, ap);
  55709. @@ -4783,1230 +3853,4351 @@
  55710. lt_error_core (EXIT_FAILURE, "FATAL", message, ap);
  55711. va_end (ap);
  55712. }
  55713. +
  55714. +void
  55715. +lt_setenv (const char *name, const char *value)
  55716. +{
  55717. + LTWRAPPER_DEBUGPRINTF (("(lt_setenv) setting '%s' to '%s'\n",
  55718. + (name ? name : "<NULL>"),
  55719. + (value ? value : "<NULL>")));
  55720. + {
  55721. +#ifdef HAVE_SETENV
  55722. + /* always make a copy, for consistency with !HAVE_SETENV */
  55723. + char *str = xstrdup (value);
  55724. + setenv (name, str, 1);
  55725. +#else
  55726. + int len = strlen (name) + 1 + strlen (value) + 1;
  55727. + char *str = XMALLOC (char, len);
  55728. + sprintf (str, "%s=%s", name, value);
  55729. + if (putenv (str) != EXIT_SUCCESS)
  55730. + {
  55731. + XFREE (str);
  55732. + }
  55733. +#endif
  55734. + }
  55735. +}
  55736. +
  55737. +char *
  55738. +lt_extend_str (const char *orig_value, const char *add, int to_end)
  55739. +{
  55740. + char *new_value;
  55741. + if (orig_value && *orig_value)
  55742. + {
  55743. + int orig_value_len = strlen (orig_value);
  55744. + int add_len = strlen (add);
  55745. + new_value = XMALLOC (char, add_len + orig_value_len + 1);
  55746. + if (to_end)
  55747. + {
  55748. + strcpy (new_value, orig_value);
  55749. + strcpy (new_value + orig_value_len, add);
  55750. + }
  55751. + else
  55752. + {
  55753. + strcpy (new_value, add);
  55754. + strcpy (new_value + add_len, orig_value);
  55755. + }
  55756. + }
  55757. + else
  55758. + {
  55759. + new_value = xstrdup (add);
  55760. + }
  55761. + return new_value;
  55762. +}
  55763. +
  55764. +int
  55765. +lt_split_name_value (const char *arg, char** name, char** value)
  55766. +{
  55767. + const char *p;
  55768. + int len;
  55769. + if (!arg || !*arg)
  55770. + return 1;
  55771. +
  55772. + p = strchr (arg, (int)'=');
  55773. +
  55774. + if (!p)
  55775. + return 1;
  55776. +
  55777. + *value = xstrdup (++p);
  55778. +
  55779. + len = strlen (arg) - strlen (*value);
  55780. + *name = XMALLOC (char, len);
  55781. + strncpy (*name, arg, len-1);
  55782. + (*name)[len - 1] = '\0';
  55783. +
  55784. + return 0;
  55785. +}
  55786. +
  55787. +void
  55788. +lt_opt_process_env_set (const char *arg)
  55789. +{
  55790. + char *name = NULL;
  55791. + char *value = NULL;
  55792. +
  55793. + if (lt_split_name_value (arg, &name, &value) != 0)
  55794. + {
  55795. + XFREE (name);
  55796. + XFREE (value);
  55797. + lt_fatal ("bad argument for %s: '%s'", env_set_opt, arg);
  55798. + }
  55799. +
  55800. + lt_setenv (name, value);
  55801. + XFREE (name);
  55802. + XFREE (value);
  55803. +}
  55804. +
  55805. +void
  55806. +lt_opt_process_env_prepend (const char *arg)
  55807. +{
  55808. + char *name = NULL;
  55809. + char *value = NULL;
  55810. + char *new_value = NULL;
  55811. +
  55812. + if (lt_split_name_value (arg, &name, &value) != 0)
  55813. + {
  55814. + XFREE (name);
  55815. + XFREE (value);
  55816. + lt_fatal ("bad argument for %s: '%s'", env_prepend_opt, arg);
  55817. + }
  55818. +
  55819. + new_value = lt_extend_str (getenv (name), value, 0);
  55820. + lt_setenv (name, new_value);
  55821. + XFREE (new_value);
  55822. + XFREE (name);
  55823. + XFREE (value);
  55824. +}
  55825. +
  55826. +void
  55827. +lt_opt_process_env_append (const char *arg)
  55828. +{
  55829. + char *name = NULL;
  55830. + char *value = NULL;
  55831. + char *new_value = NULL;
  55832. +
  55833. + if (lt_split_name_value (arg, &name, &value) != 0)
  55834. + {
  55835. + XFREE (name);
  55836. + XFREE (value);
  55837. + lt_fatal ("bad argument for %s: '%s'", env_append_opt, arg);
  55838. + }
  55839. +
  55840. + new_value = lt_extend_str (getenv (name), value, 1);
  55841. + lt_setenv (name, new_value);
  55842. + XFREE (new_value);
  55843. + XFREE (name);
  55844. + XFREE (value);
  55845. +}
  55846. +
  55847. +void
  55848. +lt_update_exe_path (const char *name, const char *value)
  55849. +{
  55850. + LTWRAPPER_DEBUGPRINTF (("(lt_update_exe_path) modifying '%s' by prepending '%s'\n",
  55851. + (name ? name : "<NULL>"),
  55852. + (value ? value : "<NULL>")));
  55853. +
  55854. + if (name && *name && value && *value)
  55855. + {
  55856. + char *new_value = lt_extend_str (getenv (name), value, 0);
  55857. + /* some systems can't cope with a ':'-terminated path #' */
  55858. + int len = strlen (new_value);
  55859. + while (((len = strlen (new_value)) > 0) && IS_PATH_SEPARATOR (new_value[len-1]))
  55860. + {
  55861. + new_value[len-1] = '\0';
  55862. + }
  55863. + lt_setenv (name, new_value);
  55864. + XFREE (new_value);
  55865. + }
  55866. +}
  55867. +
  55868. +void
  55869. +lt_update_lib_path (const char *name, const char *value)
  55870. +{
  55871. + LTWRAPPER_DEBUGPRINTF (("(lt_update_lib_path) modifying '%s' by prepending '%s'\n",
  55872. + (name ? name : "<NULL>"),
  55873. + (value ? value : "<NULL>")));
  55874. +
  55875. + if (name && *name && value && *value)
  55876. + {
  55877. + char *new_value = lt_extend_str (getenv (name), value, 0);
  55878. + lt_setenv (name, new_value);
  55879. + XFREE (new_value);
  55880. + }
  55881. +}
  55882. +
  55883. +
  55884. EOF
  55885. - # we should really use a build-platform specific compiler
  55886. - # here, but OTOH, the wrappers (shell script and this C one)
  55887. - # are only useful if you want to execute the "real" binary.
  55888. - # Since the "real" binary is built for $host, then this
  55889. - # wrapper might as well be built for $host, too.
  55890. - $run $LTCC -s -o $cwrapper $cwrappersource
  55891. +}
  55892. +# end: func_emit_cwrapperexe_src
  55893. +
  55894. +# func_mode_link arg...
  55895. +func_mode_link ()
  55896. +{
  55897. + $opt_debug
  55898. + case $host in
  55899. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  55900. + # It is impossible to link a dll without this setting, and
  55901. + # we shouldn't force the makefile maintainer to figure out
  55902. + # which system we are compiling for in order to pass an extra
  55903. + # flag for every libtool invocation.
  55904. + # allow_undefined=no
  55905. +
  55906. + # FIXME: Unfortunately, there are problems with the above when trying
  55907. + # to make a dll which has undefined symbols, in which case not
  55908. + # even a static library is built. For now, we need to specify
  55909. + # -no-undefined on the libtool link line when we can be certain
  55910. + # that all symbols are satisfied, otherwise we get a static library.
  55911. + allow_undefined=yes
  55912. + ;;
  55913. + *)
  55914. + allow_undefined=yes
  55915. + ;;
  55916. + esac
  55917. + libtool_args=$nonopt
  55918. + base_compile="$nonopt $@"
  55919. + compile_command=$nonopt
  55920. + finalize_command=$nonopt
  55921. +
  55922. + compile_rpath=
  55923. + finalize_rpath=
  55924. + compile_shlibpath=
  55925. + finalize_shlibpath=
  55926. + convenience=
  55927. + old_convenience=
  55928. + deplibs=
  55929. + old_deplibs=
  55930. + compiler_flags=
  55931. + linker_flags=
  55932. + dllsearchpath=
  55933. + lib_search_path=`pwd`
  55934. + inst_prefix_dir=
  55935. + new_inherited_linker_flags=
  55936. +
  55937. + avoid_version=no
  55938. + dlfiles=
  55939. + dlprefiles=
  55940. + dlself=no
  55941. + export_dynamic=no
  55942. + export_symbols=
  55943. + export_symbols_regex=
  55944. + generated=
  55945. + libobjs=
  55946. + ltlibs=
  55947. + module=no
  55948. + no_install=no
  55949. + objs=
  55950. + non_pic_objects=
  55951. + precious_files_regex=
  55952. + prefer_static_libs=no
  55953. + preload=no
  55954. + prev=
  55955. + prevarg=
  55956. + release=
  55957. + rpath=
  55958. + xrpath=
  55959. + perm_rpath=
  55960. + temp_rpath=
  55961. + thread_safe=no
  55962. + vinfo=
  55963. + vinfo_number=no
  55964. + weak_libs=
  55965. + single_module="${wl}-single_module"
  55966. + func_infer_tag $base_compile
  55967. +
  55968. + # We need to know -static, to get the right output filenames.
  55969. + for arg
  55970. + do
  55971. + case $arg in
  55972. + -shared)
  55973. + test "$build_libtool_libs" != yes && \
  55974. + func_fatal_configuration "can not build a shared library"
  55975. + build_old_libs=no
  55976. + break
  55977. + ;;
  55978. + -all-static | -static | -static-libtool-libs)
  55979. + case $arg in
  55980. + -all-static)
  55981. + if test "$build_libtool_libs" = yes && test -z "$link_static_flag"; then
  55982. + func_warning "complete static linking is impossible in this configuration"
  55983. + fi
  55984. + if test -n "$link_static_flag"; then
  55985. + dlopen_self=$dlopen_self_static
  55986. + fi
  55987. + prefer_static_libs=yes
  55988. + ;;
  55989. + -static)
  55990. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  55991. + dlopen_self=$dlopen_self_static
  55992. + fi
  55993. + prefer_static_libs=built
  55994. + ;;
  55995. + -static-libtool-libs)
  55996. + if test -z "$pic_flag" && test -n "$link_static_flag"; then
  55997. + dlopen_self=$dlopen_self_static
  55998. + fi
  55999. + prefer_static_libs=yes
  56000. + ;;
  56001. + esac
  56002. + build_libtool_libs=no
  56003. + build_old_libs=yes
  56004. + break
  56005. + ;;
  56006. + esac
  56007. + done
  56008. +
  56009. + # See if our shared archives depend on static archives.
  56010. + test -n "$old_archive_from_new_cmds" && build_old_libs=yes
  56011. +
  56012. + # Go through the arguments, transforming them on the way.
  56013. + while test "$#" -gt 0; do
  56014. + arg="$1"
  56015. + shift
  56016. + func_quote_for_eval "$arg"
  56017. + qarg=$func_quote_for_eval_unquoted_result
  56018. + func_append libtool_args " $func_quote_for_eval_result"
  56019. +
  56020. + # If the previous option needs an argument, assign it.
  56021. + if test -n "$prev"; then
  56022. + case $prev in
  56023. + output)
  56024. + func_append compile_command " @OUTPUT@"
  56025. + func_append finalize_command " @OUTPUT@"
  56026. + ;;
  56027. + esac
  56028. +
  56029. + case $prev in
  56030. + dlfiles|dlprefiles)
  56031. + if test "$preload" = no; then
  56032. + # Add the symbol object into the linking commands.
  56033. + func_append compile_command " @SYMFILE@"
  56034. + func_append finalize_command " @SYMFILE@"
  56035. + preload=yes
  56036. + fi
  56037. + case $arg in
  56038. + *.la | *.lo) ;; # We handle these cases below.
  56039. + force)
  56040. + if test "$dlself" = no; then
  56041. + dlself=needless
  56042. + export_dynamic=yes
  56043. + fi
  56044. + prev=
  56045. + continue
  56046. + ;;
  56047. + self)
  56048. + if test "$prev" = dlprefiles; then
  56049. + dlself=yes
  56050. + elif test "$prev" = dlfiles && test "$dlopen_self" != yes; then
  56051. + dlself=yes
  56052. + else
  56053. + dlself=needless
  56054. + export_dynamic=yes
  56055. + fi
  56056. + prev=
  56057. + continue
  56058. + ;;
  56059. + *)
  56060. + if test "$prev" = dlfiles; then
  56061. + dlfiles="$dlfiles $arg"
  56062. + else
  56063. + dlprefiles="$dlprefiles $arg"
  56064. + fi
  56065. + prev=
  56066. + continue
  56067. + ;;
  56068. + esac
  56069. + ;;
  56070. + expsyms)
  56071. + export_symbols="$arg"
  56072. + test -f "$arg" \
  56073. + || func_fatal_error "symbol file \`$arg' does not exist"
  56074. + prev=
  56075. + continue
  56076. + ;;
  56077. + expsyms_regex)
  56078. + export_symbols_regex="$arg"
  56079. + prev=
  56080. + continue
  56081. + ;;
  56082. + framework)
  56083. + case $host in
  56084. + *-*-darwin*)
  56085. + case "$deplibs " in
  56086. + *" $qarg.ltframework "*) ;;
  56087. + *) deplibs="$deplibs $qarg.ltframework" # this is fixed later
  56088. + ;;
  56089. + esac
  56090. + ;;
  56091. + esac
  56092. + prev=
  56093. + continue
  56094. + ;;
  56095. + inst_prefix)
  56096. + inst_prefix_dir="$arg"
  56097. + prev=
  56098. + continue
  56099. + ;;
  56100. + objectlist)
  56101. + if test -f "$arg"; then
  56102. + save_arg=$arg
  56103. + moreargs=
  56104. + for fil in `cat "$save_arg"`
  56105. + do
  56106. +# moreargs="$moreargs $fil"
  56107. + arg=$fil
  56108. + # A libtool-controlled object.
  56109. +
  56110. + # Check to see that this really is a libtool object.
  56111. + if func_lalib_unsafe_p "$arg"; then
  56112. + pic_object=
  56113. + non_pic_object=
  56114. +
  56115. + # Read the .lo file
  56116. + func_source "$arg"
  56117. +
  56118. + if test -z "$pic_object" ||
  56119. + test -z "$non_pic_object" ||
  56120. + test "$pic_object" = none &&
  56121. + test "$non_pic_object" = none; then
  56122. + func_fatal_error "cannot find name of object for \`$arg'"
  56123. + fi
  56124. +
  56125. + # Extract subdirectory from the argument.
  56126. + func_dirname "$arg" "/" ""
  56127. + xdir="$func_dirname_result"
  56128. +
  56129. + if test "$pic_object" != none; then
  56130. + # Prepend the subdirectory the object is found in.
  56131. + pic_object="$xdir$pic_object"
  56132. +
  56133. + if test "$prev" = dlfiles; then
  56134. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  56135. + dlfiles="$dlfiles $pic_object"
  56136. + prev=
  56137. + continue
  56138. + else
  56139. + # If libtool objects are unsupported, then we need to preload.
  56140. + prev=dlprefiles
  56141. + fi
  56142. + fi
  56143. +
  56144. + # CHECK ME: I think I busted this. -Ossama
  56145. + if test "$prev" = dlprefiles; then
  56146. + # Preload the old-style object.
  56147. + dlprefiles="$dlprefiles $pic_object"
  56148. + prev=
  56149. + fi
  56150. +
  56151. + # A PIC object.
  56152. + func_append libobjs " $pic_object"
  56153. + arg="$pic_object"
  56154. + fi
  56155. +
  56156. + # Non-PIC object.
  56157. + if test "$non_pic_object" != none; then
  56158. + # Prepend the subdirectory the object is found in.
  56159. + non_pic_object="$xdir$non_pic_object"
  56160. +
  56161. + # A standard non-PIC object
  56162. + func_append non_pic_objects " $non_pic_object"
  56163. + if test -z "$pic_object" || test "$pic_object" = none ; then
  56164. + arg="$non_pic_object"
  56165. + fi
  56166. + else
  56167. + # If the PIC object exists, use it instead.
  56168. + # $xdir was prepended to $pic_object above.
  56169. + non_pic_object="$pic_object"
  56170. + func_append non_pic_objects " $non_pic_object"
  56171. + fi
  56172. + else
  56173. + # Only an error if not doing a dry-run.
  56174. + if $opt_dry_run; then
  56175. + # Extract subdirectory from the argument.
  56176. + func_dirname "$arg" "/" ""
  56177. + xdir="$func_dirname_result"
  56178. +
  56179. + func_lo2o "$arg"
  56180. + pic_object=$xdir$objdir/$func_lo2o_result
  56181. + non_pic_object=$xdir$func_lo2o_result
  56182. + func_append libobjs " $pic_object"
  56183. + func_append non_pic_objects " $non_pic_object"
  56184. + else
  56185. + func_fatal_error "\`$arg' is not a valid libtool object"
  56186. + fi
  56187. + fi
  56188. + done
  56189. + else
  56190. + func_fatal_error "link input file \`$arg' does not exist"
  56191. + fi
  56192. + arg=$save_arg
  56193. + prev=
  56194. + continue
  56195. + ;;
  56196. + precious_regex)
  56197. + precious_files_regex="$arg"
  56198. + prev=
  56199. + continue
  56200. + ;;
  56201. + release)
  56202. + release="-$arg"
  56203. + prev=
  56204. + continue
  56205. + ;;
  56206. + rpath | xrpath)
  56207. + # We need an absolute path.
  56208. + case $arg in
  56209. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  56210. + *)
  56211. + func_fatal_error "only absolute run-paths are allowed"
  56212. + ;;
  56213. + esac
  56214. + if test "$prev" = rpath; then
  56215. + case "$rpath " in
  56216. + *" $arg "*) ;;
  56217. + *) rpath="$rpath $arg" ;;
  56218. + esac
  56219. + else
  56220. + case "$xrpath " in
  56221. + *" $arg "*) ;;
  56222. + *) xrpath="$xrpath $arg" ;;
  56223. + esac
  56224. + fi
  56225. + prev=
  56226. + continue
  56227. + ;;
  56228. + shrext)
  56229. + shrext_cmds="$arg"
  56230. + prev=
  56231. + continue
  56232. + ;;
  56233. + weak)
  56234. + weak_libs="$weak_libs $arg"
  56235. + prev=
  56236. + continue
  56237. + ;;
  56238. + xcclinker)
  56239. + linker_flags="$linker_flags $qarg"
  56240. + compiler_flags="$compiler_flags $qarg"
  56241. + prev=
  56242. + func_append compile_command " $qarg"
  56243. + func_append finalize_command " $qarg"
  56244. + continue
  56245. + ;;
  56246. + xcompiler)
  56247. + compiler_flags="$compiler_flags $qarg"
  56248. + prev=
  56249. + func_append compile_command " $qarg"
  56250. + func_append finalize_command " $qarg"
  56251. + continue
  56252. + ;;
  56253. + xlinker)
  56254. + linker_flags="$linker_flags $qarg"
  56255. + compiler_flags="$compiler_flags $wl$qarg"
  56256. + prev=
  56257. + func_append compile_command " $wl$qarg"
  56258. + func_append finalize_command " $wl$qarg"
  56259. + continue
  56260. + ;;
  56261. + *)
  56262. + eval "$prev=\"\$arg\""
  56263. + prev=
  56264. + continue
  56265. + ;;
  56266. + esac
  56267. + fi # test -n "$prev"
  56268. +
  56269. + prevarg="$arg"
  56270. +
  56271. + case $arg in
  56272. + -all-static)
  56273. + if test -n "$link_static_flag"; then
  56274. + # See comment for -static flag below, for more details.
  56275. + func_append compile_command " $link_static_flag"
  56276. + func_append finalize_command " $link_static_flag"
  56277. + fi
  56278. + continue
  56279. + ;;
  56280. +
  56281. + -allow-undefined)
  56282. + # FIXME: remove this flag sometime in the future.
  56283. + func_fatal_error "\`-allow-undefined' must not be used because it is the default"
  56284. + ;;
  56285. +
  56286. + -avoid-version)
  56287. + avoid_version=yes
  56288. + continue
  56289. + ;;
  56290. +
  56291. + -dlopen)
  56292. + prev=dlfiles
  56293. + continue
  56294. + ;;
  56295. +
  56296. + -dlpreopen)
  56297. + prev=dlprefiles
  56298. + continue
  56299. + ;;
  56300. +
  56301. + -export-dynamic)
  56302. + export_dynamic=yes
  56303. + continue
  56304. + ;;
  56305. +
  56306. + -export-symbols | -export-symbols-regex)
  56307. + if test -n "$export_symbols" || test -n "$export_symbols_regex"; then
  56308. + func_fatal_error "more than one -exported-symbols argument is not allowed"
  56309. + fi
  56310. + if test "X$arg" = "X-export-symbols"; then
  56311. + prev=expsyms
  56312. + else
  56313. + prev=expsyms_regex
  56314. + fi
  56315. + continue
  56316. + ;;
  56317. +
  56318. + -framework)
  56319. + prev=framework
  56320. + continue
  56321. + ;;
  56322. +
  56323. + -inst-prefix-dir)
  56324. + prev=inst_prefix
  56325. + continue
  56326. + ;;
  56327. +
  56328. + # The native IRIX linker understands -LANG:*, -LIST:* and -LNO:*
  56329. + # so, if we see these flags be careful not to treat them like -L
  56330. + -L[A-Z][A-Z]*:*)
  56331. + case $with_gcc/$host in
  56332. + no/*-*-irix* | /*-*-irix*)
  56333. + func_append compile_command " $arg"
  56334. + func_append finalize_command " $arg"
  56335. + ;;
  56336. + esac
  56337. + continue
  56338. + ;;
  56339. +
  56340. + -L*)
  56341. + func_stripname '-L' '' "$arg"
  56342. + dir=$func_stripname_result
  56343. + if test -z "$dir"; then
  56344. + if test "$#" -gt 0; then
  56345. + func_fatal_error "require no space between \`-L' and \`$1'"
  56346. + else
  56347. + func_fatal_error "need path for \`-L' option"
  56348. + fi
  56349. + fi
  56350. + # We need an absolute path.
  56351. + case $dir in
  56352. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  56353. + *)
  56354. + absdir=`cd "$dir" && pwd`
  56355. + test -z "$absdir" && \
  56356. + func_fatal_error "cannot determine absolute directory name of \`$dir'"
  56357. + dir="$absdir"
  56358. + ;;
  56359. + esac
  56360. + case "$deplibs " in
  56361. + *" -L$dir "*) ;;
  56362. + *)
  56363. + deplibs="$deplibs -L$dir"
  56364. + lib_search_path="$lib_search_path $dir"
  56365. + ;;
  56366. + esac
  56367. + case $host in
  56368. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  56369. + testbindir=`$ECHO "X$dir" | $Xsed -e 's*/lib$*/bin*'`
  56370. + case :$dllsearchpath: in
  56371. + *":$dir:"*) ;;
  56372. + ::) dllsearchpath=$dir;;
  56373. + *) dllsearchpath="$dllsearchpath:$dir";;
  56374. + esac
  56375. + case :$dllsearchpath: in
  56376. + *":$testbindir:"*) ;;
  56377. + ::) dllsearchpath=$testbindir;;
  56378. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  56379. + esac
  56380. + ;;
  56381. + esac
  56382. + continue
  56383. + ;;
  56384. +
  56385. + -l*)
  56386. + if test "X$arg" = "X-lc" || test "X$arg" = "X-lm"; then
  56387. + case $host in
  56388. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-beos* | *-cegcc*)
  56389. + # These systems don't actually have a C or math library (as such)
  56390. + continue
  56391. + ;;
  56392. + *-*-os2*)
  56393. + # These systems don't actually have a C library (as such)
  56394. + test "X$arg" = "X-lc" && continue
  56395. + ;;
  56396. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56397. + # Do not include libc due to us having libc/libc_r.
  56398. + test "X$arg" = "X-lc" && continue
  56399. + ;;
  56400. + *-*-rhapsody* | *-*-darwin1.[012])
  56401. + # Rhapsody C and math libraries are in the System framework
  56402. + deplibs="$deplibs System.ltframework"
  56403. + continue
  56404. + ;;
  56405. + *-*-sco3.2v5* | *-*-sco5v6*)
  56406. + # Causes problems with __ctype
  56407. + test "X$arg" = "X-lc" && continue
  56408. + ;;
  56409. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  56410. + # Compiler inserts libc in the correct place for threads to work
  56411. + test "X$arg" = "X-lc" && continue
  56412. + ;;
  56413. + esac
  56414. + elif test "X$arg" = "X-lc_r"; then
  56415. + case $host in
  56416. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  56417. + # Do not include libc_r directly, use -pthread flag.
  56418. + continue
  56419. + ;;
  56420. + esac
  56421. + fi
  56422. + deplibs="$deplibs $arg"
  56423. + continue
  56424. + ;;
  56425. +
  56426. + -module)
  56427. + module=yes
  56428. + continue
  56429. + ;;
  56430. +
  56431. + # Tru64 UNIX uses -model [arg] to determine the layout of C++
  56432. + # classes, name mangling, and exception handling.
  56433. + # Darwin uses the -arch flag to determine output architecture.
  56434. + -model|-arch|-isysroot)
  56435. + compiler_flags="$compiler_flags $arg"
  56436. + func_append compile_command " $arg"
  56437. + func_append finalize_command " $arg"
  56438. + prev=xcompiler
  56439. + continue
  56440. + ;;
  56441. +
  56442. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  56443. + compiler_flags="$compiler_flags $arg"
  56444. + func_append compile_command " $arg"
  56445. + func_append finalize_command " $arg"
  56446. + case "$new_inherited_linker_flags " in
  56447. + *" $arg "*) ;;
  56448. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $arg" ;;
  56449. + esac
  56450. + continue
  56451. + ;;
  56452. +
  56453. + -multi_module)
  56454. + single_module="${wl}-multi_module"
  56455. + continue
  56456. + ;;
  56457. +
  56458. + -no-fast-install)
  56459. + fast_install=no
  56460. + continue
  56461. + ;;
  56462. +
  56463. + -no-install)
  56464. + case $host in
  56465. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-darwin* | *-cegcc*)
  56466. + # The PATH hackery in wrapper scripts is required on Windows
  56467. + # and Darwin in order for the loader to find any dlls it needs.
  56468. + func_warning "\`-no-install' is ignored for $host"
  56469. + func_warning "assuming \`-no-fast-install' instead"
  56470. + fast_install=no
  56471. + ;;
  56472. + *) no_install=yes ;;
  56473. + esac
  56474. + continue
  56475. + ;;
  56476. +
  56477. + -no-undefined)
  56478. + allow_undefined=no
  56479. + continue
  56480. + ;;
  56481. +
  56482. + -objectlist)
  56483. + prev=objectlist
  56484. + continue
  56485. + ;;
  56486. +
  56487. + -o) prev=output ;;
  56488. +
  56489. + -precious-files-regex)
  56490. + prev=precious_regex
  56491. + continue
  56492. + ;;
  56493. +
  56494. + -release)
  56495. + prev=release
  56496. + continue
  56497. + ;;
  56498. +
  56499. + -rpath)
  56500. + prev=rpath
  56501. + continue
  56502. + ;;
  56503. +
  56504. + -R)
  56505. + prev=xrpath
  56506. + continue
  56507. + ;;
  56508. +
  56509. + -R*)
  56510. + func_stripname '-R' '' "$arg"
  56511. + dir=$func_stripname_result
  56512. + # We need an absolute path.
  56513. + case $dir in
  56514. + [\\/]* | [A-Za-z]:[\\/]*) ;;
  56515. + *)
  56516. + func_fatal_error "only absolute run-paths are allowed"
  56517. + ;;
  56518. + esac
  56519. + case "$xrpath " in
  56520. + *" $dir "*) ;;
  56521. + *) xrpath="$xrpath $dir" ;;
  56522. + esac
  56523. + continue
  56524. + ;;
  56525. +
  56526. + -shared)
  56527. + # The effects of -shared are defined in a previous loop.
  56528. + continue
  56529. + ;;
  56530. +
  56531. + -shrext)
  56532. + prev=shrext
  56533. + continue
  56534. + ;;
  56535. +
  56536. + -static | -static-libtool-libs)
  56537. + # The effects of -static are defined in a previous loop.
  56538. + # We used to do the same as -all-static on platforms that
  56539. + # didn't have a PIC flag, but the assumption that the effects
  56540. + # would be equivalent was wrong. It would break on at least
  56541. + # Digital Unix and AIX.
  56542. + continue
  56543. + ;;
  56544. +
  56545. + -thread-safe)
  56546. + thread_safe=yes
  56547. + continue
  56548. + ;;
  56549. +
  56550. + -version-info)
  56551. + prev=vinfo
  56552. + continue
  56553. + ;;
  56554. +
  56555. + -version-number)
  56556. + prev=vinfo
  56557. + vinfo_number=yes
  56558. + continue
  56559. + ;;
  56560. +
  56561. + -weak)
  56562. + prev=weak
  56563. + continue
  56564. + ;;
  56565. +
  56566. + -Wc,*)
  56567. + func_stripname '-Wc,' '' "$arg"
  56568. + args=$func_stripname_result
  56569. + arg=
  56570. + save_ifs="$IFS"; IFS=','
  56571. + for flag in $args; do
  56572. + IFS="$save_ifs"
  56573. + func_quote_for_eval "$flag"
  56574. + arg="$arg $wl$func_quote_for_eval_result"
  56575. + compiler_flags="$compiler_flags $func_quote_for_eval_result"
  56576. + done
  56577. + IFS="$save_ifs"
  56578. + func_stripname ' ' '' "$arg"
  56579. + arg=$func_stripname_result
  56580. + ;;
  56581. +
  56582. + -Wl,*)
  56583. + func_stripname '-Wl,' '' "$arg"
  56584. + args=$func_stripname_result
  56585. + arg=
  56586. + save_ifs="$IFS"; IFS=','
  56587. + for flag in $args; do
  56588. + IFS="$save_ifs"
  56589. + func_quote_for_eval "$flag"
  56590. + arg="$arg $wl$func_quote_for_eval_result"
  56591. + compiler_flags="$compiler_flags $wl$func_quote_for_eval_result"
  56592. + linker_flags="$linker_flags $func_quote_for_eval_result"
  56593. + done
  56594. + IFS="$save_ifs"
  56595. + func_stripname ' ' '' "$arg"
  56596. + arg=$func_stripname_result
  56597. + ;;
  56598. +
  56599. + -Xcompiler)
  56600. + prev=xcompiler
  56601. + continue
  56602. + ;;
  56603. +
  56604. + -Xlinker)
  56605. + prev=xlinker
  56606. + continue
  56607. + ;;
  56608. +
  56609. + -XCClinker)
  56610. + prev=xcclinker
  56611. + continue
  56612. + ;;
  56613. +
  56614. + # -msg_* for osf cc
  56615. + -msg_*)
  56616. + func_quote_for_eval "$arg"
  56617. + arg="$func_quote_for_eval_result"
  56618. + ;;
  56619. +
  56620. + # -64, -mips[0-9] enable 64-bit mode on the SGI compiler
  56621. + # -r[0-9][0-9]* specifies the processor on the SGI compiler
  56622. + # -xarch=*, -xtarget=* enable 64-bit mode on the Sun compiler
  56623. + # +DA*, +DD* enable 64-bit mode on the HP compiler
  56624. + # -q* pass through compiler args for the IBM compiler
  56625. + # -m*, -t[45]*, -txscale* pass through architecture-specific
  56626. + # compiler args for GCC
  56627. + # -F/path gives path to uninstalled frameworks, gcc on darwin
  56628. + # -p, -pg, --coverage, -fprofile-* pass through profiling flag for GCC
  56629. + # @file GCC response files
  56630. + -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
  56631. + -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-fstack-protector*|-flto*)
  56632. + func_quote_for_eval "$arg"
  56633. + arg="$func_quote_for_eval_result"
  56634. + func_append compile_command " $arg"
  56635. + func_append finalize_command " $arg"
  56636. + compiler_flags="$compiler_flags $arg"
  56637. + continue
  56638. + ;;
  56639. +
  56640. + # Some other compiler flag.
  56641. + -* | +*)
  56642. + func_quote_for_eval "$arg"
  56643. + arg="$func_quote_for_eval_result"
  56644. + ;;
  56645. +
  56646. + *.$objext)
  56647. + # A standard object.
  56648. + objs="$objs $arg"
  56649. + ;;
  56650. +
  56651. + *.lo)
  56652. + # A libtool-controlled object.
  56653. +
  56654. + # Check to see that this really is a libtool object.
  56655. + if func_lalib_unsafe_p "$arg"; then
  56656. + pic_object=
  56657. + non_pic_object=
  56658. +
  56659. + # Read the .lo file
  56660. + func_source "$arg"
  56661. +
  56662. + if test -z "$pic_object" ||
  56663. + test -z "$non_pic_object" ||
  56664. + test "$pic_object" = none &&
  56665. + test "$non_pic_object" = none; then
  56666. + func_fatal_error "cannot find name of object for \`$arg'"
  56667. + fi
  56668. +
  56669. + # Extract subdirectory from the argument.
  56670. + func_dirname "$arg" "/" ""
  56671. + xdir="$func_dirname_result"
  56672. +
  56673. + if test "$pic_object" != none; then
  56674. + # Prepend the subdirectory the object is found in.
  56675. + pic_object="$xdir$pic_object"
  56676. +
  56677. + if test "$prev" = dlfiles; then
  56678. + if test "$build_libtool_libs" = yes && test "$dlopen_support" = yes; then
  56679. + dlfiles="$dlfiles $pic_object"
  56680. + prev=
  56681. + continue
  56682. + else
  56683. + # If libtool objects are unsupported, then we need to preload.
  56684. + prev=dlprefiles
  56685. + fi
  56686. + fi
  56687. +
  56688. + # CHECK ME: I think I busted this. -Ossama
  56689. + if test "$prev" = dlprefiles; then
  56690. + # Preload the old-style object.
  56691. + dlprefiles="$dlprefiles $pic_object"
  56692. + prev=
  56693. + fi
  56694. +
  56695. + # A PIC object.
  56696. + func_append libobjs " $pic_object"
  56697. + arg="$pic_object"
  56698. + fi
  56699. +
  56700. + # Non-PIC object.
  56701. + if test "$non_pic_object" != none; then
  56702. + # Prepend the subdirectory the object is found in.
  56703. + non_pic_object="$xdir$non_pic_object"
  56704. +
  56705. + # A standard non-PIC object
  56706. + func_append non_pic_objects " $non_pic_object"
  56707. + if test -z "$pic_object" || test "$pic_object" = none ; then
  56708. + arg="$non_pic_object"
  56709. + fi
  56710. + else
  56711. + # If the PIC object exists, use it instead.
  56712. + # $xdir was prepended to $pic_object above.
  56713. + non_pic_object="$pic_object"
  56714. + func_append non_pic_objects " $non_pic_object"
  56715. + fi
  56716. + else
  56717. + # Only an error if not doing a dry-run.
  56718. + if $opt_dry_run; then
  56719. + # Extract subdirectory from the argument.
  56720. + func_dirname "$arg" "/" ""
  56721. + xdir="$func_dirname_result"
  56722. +
  56723. + func_lo2o "$arg"
  56724. + pic_object=$xdir$objdir/$func_lo2o_result
  56725. + non_pic_object=$xdir$func_lo2o_result
  56726. + func_append libobjs " $pic_object"
  56727. + func_append non_pic_objects " $non_pic_object"
  56728. + else
  56729. + func_fatal_error "\`$arg' is not a valid libtool object"
  56730. + fi
  56731. + fi
  56732. + ;;
  56733. +
  56734. + *.$libext)
  56735. + # An archive.
  56736. + deplibs="$deplibs $arg"
  56737. + old_deplibs="$old_deplibs $arg"
  56738. + continue
  56739. + ;;
  56740. +
  56741. + *.la)
  56742. + # A libtool-controlled library.
  56743. +
  56744. + if test "$prev" = dlfiles; then
  56745. + # This library was specified with -dlopen.
  56746. + dlfiles="$dlfiles $arg"
  56747. + prev=
  56748. + elif test "$prev" = dlprefiles; then
  56749. + # The library was specified with -dlpreopen.
  56750. + dlprefiles="$dlprefiles $arg"
  56751. + prev=
  56752. + else
  56753. + deplibs="$deplibs $arg"
  56754. + fi
  56755. + continue
  56756. + ;;
  56757. +
  56758. + # Some other compiler argument.
  56759. + *)
  56760. + # Unknown arguments in both finalize_command and compile_command need
  56761. + # to be aesthetically quoted because they are evaled later.
  56762. + func_quote_for_eval "$arg"
  56763. + arg="$func_quote_for_eval_result"
  56764. + ;;
  56765. + esac # arg
  56766. +
  56767. + # Now actually substitute the argument into the commands.
  56768. + if test -n "$arg"; then
  56769. + func_append compile_command " $arg"
  56770. + func_append finalize_command " $arg"
  56771. + fi
  56772. + done # argument parsing loop
  56773. +
  56774. + test -n "$prev" && \
  56775. + func_fatal_help "the \`$prevarg' option requires an argument"
  56776. +
  56777. + if test "$export_dynamic" = yes && test -n "$export_dynamic_flag_spec"; then
  56778. + eval arg=\"$export_dynamic_flag_spec\"
  56779. + func_append compile_command " $arg"
  56780. + func_append finalize_command " $arg"
  56781. + fi
  56782. +
  56783. + oldlibs=
  56784. + # calculate the name of the file, without its directory
  56785. + func_basename "$output"
  56786. + outputname="$func_basename_result"
  56787. + libobjs_save="$libobjs"
  56788. +
  56789. + if test -n "$shlibpath_var"; then
  56790. + # get the directories listed in $shlibpath_var
  56791. + eval shlib_search_path=\`\$ECHO \"X\${$shlibpath_var}\" \| \$Xsed -e \'s/:/ /g\'\`
  56792. + else
  56793. + shlib_search_path=
  56794. + fi
  56795. + eval sys_lib_search_path=\"$sys_lib_search_path_spec\"
  56796. + eval sys_lib_dlsearch_path=\"$sys_lib_dlsearch_path_spec\"
  56797. +
  56798. + func_dirname "$output" "/" ""
  56799. + output_objdir="$func_dirname_result$objdir"
  56800. + # Create the object directory.
  56801. + func_mkdir_p "$output_objdir"
  56802. +
  56803. + # Determine the type of output
  56804. + case $output in
  56805. + "")
  56806. + func_fatal_help "you must specify an output file"
  56807. + ;;
  56808. + *.$libext) linkmode=oldlib ;;
  56809. + *.lo | *.$objext) linkmode=obj ;;
  56810. + *.la) linkmode=lib ;;
  56811. + *) linkmode=prog ;; # Anything else should be a program.
  56812. + esac
  56813. +
  56814. + specialdeplibs=
  56815. +
  56816. + libs=
  56817. + # Find all interdependent deplibs by searching for libraries
  56818. + # that are linked more than once (e.g. -la -lb -la)
  56819. + for deplib in $deplibs; do
  56820. + if $opt_duplicate_deps ; then
  56821. + case "$libs " in
  56822. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  56823. + esac
  56824. + fi
  56825. + libs="$libs $deplib"
  56826. + done
  56827. +
  56828. + if test "$linkmode" = lib; then
  56829. + libs="$predeps $libs $compiler_lib_search_path $postdeps"
  56830. +
  56831. + # Compute libraries that are listed more than once in $predeps
  56832. + # $postdeps and mark them as special (i.e., whose duplicates are
  56833. + # not to be eliminated).
  56834. + pre_post_deps=
  56835. + if $opt_duplicate_compiler_generated_deps; then
  56836. + for pre_post_dep in $predeps $postdeps; do
  56837. + case "$pre_post_deps " in
  56838. + *" $pre_post_dep "*) specialdeplibs="$specialdeplibs $pre_post_deps" ;;
  56839. + esac
  56840. + pre_post_deps="$pre_post_deps $pre_post_dep"
  56841. + done
  56842. + fi
  56843. + pre_post_deps=
  56844. + fi
  56845. +
  56846. + deplibs=
  56847. + newdependency_libs=
  56848. + newlib_search_path=
  56849. + need_relink=no # whether we're linking any uninstalled libtool libraries
  56850. + notinst_deplibs= # not-installed libtool libraries
  56851. + notinst_path= # paths that contain not-installed libtool libraries
  56852. +
  56853. + case $linkmode in
  56854. + lib)
  56855. + passes="conv dlpreopen link"
  56856. + for file in $dlfiles $dlprefiles; do
  56857. + case $file in
  56858. + *.la) ;;
  56859. + *)
  56860. + func_fatal_help "libraries can \`-dlopen' only libtool libraries: $file"
  56861. + ;;
  56862. + esac
  56863. + done
  56864. + ;;
  56865. + prog)
  56866. + compile_deplibs=
  56867. + finalize_deplibs=
  56868. + alldeplibs=no
  56869. + newdlfiles=
  56870. + newdlprefiles=
  56871. + passes="conv scan dlopen dlpreopen link"
  56872. + ;;
  56873. + *) passes="conv"
  56874. + ;;
  56875. + esac
  56876. +
  56877. + for pass in $passes; do
  56878. + # The preopen pass in lib mode reverses $deplibs; put it back here
  56879. + # so that -L comes before libs that need it for instance...
  56880. + if test "$linkmode,$pass" = "lib,link"; then
  56881. + ## FIXME: Find the place where the list is rebuilt in the wrong
  56882. + ## order, and fix it there properly
  56883. + tmp_deplibs=
  56884. + for deplib in $deplibs; do
  56885. + tmp_deplibs="$deplib $tmp_deplibs"
  56886. + done
  56887. + deplibs="$tmp_deplibs"
  56888. + fi
  56889. +
  56890. + if test "$linkmode,$pass" = "lib,link" ||
  56891. + test "$linkmode,$pass" = "prog,scan"; then
  56892. + libs="$deplibs"
  56893. + deplibs=
  56894. + fi
  56895. + if test "$linkmode" = prog; then
  56896. + case $pass in
  56897. + dlopen) libs="$dlfiles" ;;
  56898. + dlpreopen) libs="$dlprefiles" ;;
  56899. + link)
  56900. + libs="$deplibs %DEPLIBS%"
  56901. + test "X$link_all_deplibs" != Xno && libs="$libs $dependency_libs"
  56902. + ;;
  56903. + esac
  56904. + fi
  56905. + if test "$linkmode,$pass" = "lib,dlpreopen"; then
  56906. + # Collect and forward deplibs of preopened libtool libs
  56907. + for lib in $dlprefiles; do
  56908. + # Ignore non-libtool-libs
  56909. + dependency_libs=
  56910. + case $lib in
  56911. + *.la) func_source "$lib" ;;
  56912. + esac
  56913. +
  56914. + # Collect preopened libtool deplibs, except any this library
  56915. + # has declared as weak libs
  56916. + for deplib in $dependency_libs; do
  56917. + deplib_base=`$ECHO "X$deplib" | $Xsed -e "$basename"`
  56918. + case " $weak_libs " in
  56919. + *" $deplib_base "*) ;;
  56920. + *) deplibs="$deplibs $deplib" ;;
  56921. + esac
  56922. + done
  56923. + done
  56924. + libs="$dlprefiles"
  56925. + fi
  56926. + if test "$pass" = dlopen; then
  56927. + # Collect dlpreopened libraries
  56928. + save_deplibs="$deplibs"
  56929. + deplibs=
  56930. + fi
  56931. +
  56932. + for deplib in $libs; do
  56933. + lib=
  56934. + found=no
  56935. + case $deplib in
  56936. + -mt|-mthreads|-kthread|-Kthread|-pthread|-pthreads|--thread-safe|-threads)
  56937. + if test "$linkmode,$pass" = "prog,link"; then
  56938. + compile_deplibs="$deplib $compile_deplibs"
  56939. + finalize_deplibs="$deplib $finalize_deplibs"
  56940. + else
  56941. + compiler_flags="$compiler_flags $deplib"
  56942. + if test "$linkmode" = lib ; then
  56943. + case "$new_inherited_linker_flags " in
  56944. + *" $deplib "*) ;;
  56945. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  56946. + esac
  56947. + fi
  56948. + fi
  56949. + continue
  56950. + ;;
  56951. + -l*)
  56952. + if test "$linkmode" != lib && test "$linkmode" != prog; then
  56953. + func_warning "\`-l' is ignored for archives/objects"
  56954. + continue
  56955. + fi
  56956. + func_stripname '-l' '' "$deplib"
  56957. + name=$func_stripname_result
  56958. + if test "$linkmode" = lib; then
  56959. + searchdirs="$newlib_search_path $lib_search_path $compiler_lib_search_dirs $sys_lib_search_path $shlib_search_path"
  56960. + else
  56961. + searchdirs="$newlib_search_path $lib_search_path $sys_lib_search_path $shlib_search_path"
  56962. + fi
  56963. + for searchdir in $searchdirs; do
  56964. + for search_ext in .la $std_shrext .so .a; do
  56965. + # Search the libtool library
  56966. + lib="$searchdir/lib${name}${search_ext}"
  56967. + if test -f "$lib"; then
  56968. + if test "$search_ext" = ".la"; then
  56969. + found=yes
  56970. + else
  56971. + found=no
  56972. + fi
  56973. + break 2
  56974. + fi
  56975. + done
  56976. + done
  56977. + if test "$found" != yes; then
  56978. + # deplib doesn't seem to be a libtool library
  56979. + if test "$linkmode,$pass" = "prog,link"; then
  56980. + compile_deplibs="$deplib $compile_deplibs"
  56981. + finalize_deplibs="$deplib $finalize_deplibs"
  56982. + else
  56983. + deplibs="$deplib $deplibs"
  56984. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  56985. + fi
  56986. + continue
  56987. + else # deplib is a libtool library
  56988. + # If $allow_libtool_libs_with_static_runtimes && $deplib is a stdlib,
  56989. + # We need to do some special things here, and not later.
  56990. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  56991. + case " $predeps $postdeps " in
  56992. + *" $deplib "*)
  56993. + if func_lalib_p "$lib"; then
  56994. + library_names=
  56995. + old_library=
  56996. + func_source "$lib"
  56997. + for l in $old_library $library_names; do
  56998. + ll="$l"
  56999. + done
  57000. + if test "X$ll" = "X$old_library" ; then # only static version available
  57001. + found=no
  57002. + func_dirname "$lib" "" "."
  57003. + ladir="$func_dirname_result"
  57004. + lib=$ladir/$old_library
  57005. + if test "$linkmode,$pass" = "prog,link"; then
  57006. + compile_deplibs="$deplib $compile_deplibs"
  57007. + finalize_deplibs="$deplib $finalize_deplibs"
  57008. + else
  57009. + deplibs="$deplib $deplibs"
  57010. + test "$linkmode" = lib && newdependency_libs="$deplib $newdependency_libs"
  57011. + fi
  57012. + continue
  57013. + fi
  57014. + fi
  57015. + ;;
  57016. + *) ;;
  57017. + esac
  57018. + fi
  57019. + fi
  57020. + ;; # -l
  57021. + *.ltframework)
  57022. + if test "$linkmode,$pass" = "prog,link"; then
  57023. + compile_deplibs="$deplib $compile_deplibs"
  57024. + finalize_deplibs="$deplib $finalize_deplibs"
  57025. + else
  57026. + deplibs="$deplib $deplibs"
  57027. + if test "$linkmode" = lib ; then
  57028. + case "$new_inherited_linker_flags " in
  57029. + *" $deplib "*) ;;
  57030. + * ) new_inherited_linker_flags="$new_inherited_linker_flags $deplib" ;;
  57031. + esac
  57032. + fi
  57033. + fi
  57034. + continue
  57035. + ;;
  57036. + -L*)
  57037. + case $linkmode in
  57038. + lib)
  57039. + deplibs="$deplib $deplibs"
  57040. + test "$pass" = conv && continue
  57041. + newdependency_libs="$deplib $newdependency_libs"
  57042. + func_stripname '-L' '' "$deplib"
  57043. + newlib_search_path="$newlib_search_path $func_stripname_result"
  57044. + ;;
  57045. + prog)
  57046. + if test "$pass" = conv; then
  57047. + deplibs="$deplib $deplibs"
  57048. + continue
  57049. + fi
  57050. + if test "$pass" = scan; then
  57051. + deplibs="$deplib $deplibs"
  57052. + else
  57053. + compile_deplibs="$deplib $compile_deplibs"
  57054. + finalize_deplibs="$deplib $finalize_deplibs"
  57055. + fi
  57056. + func_stripname '-L' '' "$deplib"
  57057. + newlib_search_path="$newlib_search_path $func_stripname_result"
  57058. + ;;
  57059. + *)
  57060. + func_warning "\`-L' is ignored for archives/objects"
  57061. + ;;
  57062. + esac # linkmode
  57063. + continue
  57064. + ;; # -L
  57065. + -R*)
  57066. + if test "$pass" = link; then
  57067. + func_stripname '-R' '' "$deplib"
  57068. + dir=$func_stripname_result
  57069. + # Make sure the xrpath contains only unique directories.
  57070. + case "$xrpath " in
  57071. + *" $dir "*) ;;
  57072. + *) xrpath="$xrpath $dir" ;;
  57073. + esac
  57074. + fi
  57075. + deplibs="$deplib $deplibs"
  57076. + continue
  57077. + ;;
  57078. + *.la) lib="$deplib" ;;
  57079. + *.$libext)
  57080. + if test "$pass" = conv; then
  57081. + deplibs="$deplib $deplibs"
  57082. + continue
  57083. + fi
  57084. + case $linkmode in
  57085. + lib)
  57086. + # Linking convenience modules into shared libraries is allowed,
  57087. + # but linking other static libraries is non-portable.
  57088. + case " $dlpreconveniencelibs " in
  57089. + *" $deplib "*) ;;
  57090. + *)
  57091. + valid_a_lib=no
  57092. + case $deplibs_check_method in
  57093. + match_pattern*)
  57094. + set dummy $deplibs_check_method; shift
  57095. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  57096. + if eval "\$ECHO \"X$deplib\"" 2>/dev/null | $Xsed -e 10q \
  57097. + | $EGREP "$match_pattern_regex" > /dev/null; then
  57098. + valid_a_lib=yes
  57099. + fi
  57100. + ;;
  57101. + pass_all)
  57102. + valid_a_lib=yes
  57103. + ;;
  57104. + esac
  57105. + if test "$valid_a_lib" != yes; then
  57106. + $ECHO
  57107. + $ECHO "*** Warning: Trying to link with static lib archive $deplib."
  57108. + $ECHO "*** I have the capability to make that library automatically link in when"
  57109. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57110. + $ECHO "*** shared version of the library, which you do not appear to have"
  57111. + $ECHO "*** because the file extensions .$libext of this argument makes me believe"
  57112. + $ECHO "*** that it is just a static archive that I should not use here."
  57113. + else
  57114. + $ECHO
  57115. + $ECHO "*** Warning: Linking the shared library $output against the"
  57116. + $ECHO "*** static library $deplib is not portable!"
  57117. + deplibs="$deplib $deplibs"
  57118. + fi
  57119. + ;;
  57120. + esac
  57121. + continue
  57122. + ;;
  57123. + prog)
  57124. + if test "$pass" != link; then
  57125. + deplibs="$deplib $deplibs"
  57126. + else
  57127. + compile_deplibs="$deplib $compile_deplibs"
  57128. + finalize_deplibs="$deplib $finalize_deplibs"
  57129. + fi
  57130. + continue
  57131. + ;;
  57132. + esac # linkmode
  57133. + ;; # *.$libext
  57134. + *.lo | *.$objext)
  57135. + if test "$pass" = conv; then
  57136. + deplibs="$deplib $deplibs"
  57137. + elif test "$linkmode" = prog; then
  57138. + if test "$pass" = dlpreopen || test "$dlopen_support" != yes || test "$build_libtool_libs" = no; then
  57139. + # If there is no dlopen support or we're linking statically,
  57140. + # we need to preload.
  57141. + newdlprefiles="$newdlprefiles $deplib"
  57142. + compile_deplibs="$deplib $compile_deplibs"
  57143. + finalize_deplibs="$deplib $finalize_deplibs"
  57144. + else
  57145. + newdlfiles="$newdlfiles $deplib"
  57146. + fi
  57147. + fi
  57148. + continue
  57149. + ;;
  57150. + %DEPLIBS%)
  57151. + alldeplibs=yes
  57152. + continue
  57153. + ;;
  57154. + esac # case $deplib
  57155. +
  57156. + if test "$found" = yes || test -f "$lib"; then :
  57157. + else
  57158. + func_fatal_error "cannot find the library \`$lib' or unhandled argument \`$deplib'"
  57159. + fi
  57160. +
  57161. + # Check to see that this really is a libtool archive.
  57162. + func_lalib_unsafe_p "$lib" \
  57163. + || func_fatal_error "\`$lib' is not a valid libtool archive"
  57164. +
  57165. + func_dirname "$lib" "" "."
  57166. + ladir="$func_dirname_result"
  57167. +
  57168. + dlname=
  57169. + dlopen=
  57170. + dlpreopen=
  57171. + libdir=
  57172. + library_names=
  57173. + old_library=
  57174. + inherited_linker_flags=
  57175. + # If the library was installed with an old release of libtool,
  57176. + # it will not redefine variables installed, or shouldnotlink
  57177. + installed=yes
  57178. + shouldnotlink=no
  57179. + avoidtemprpath=
  57180. +
  57181. +
  57182. + # Read the .la file
  57183. + func_source "$lib"
  57184. +
  57185. + # Convert "-framework foo" to "foo.ltframework"
  57186. + if test -n "$inherited_linker_flags"; then
  57187. + tmp_inherited_linker_flags=`$ECHO "X$inherited_linker_flags" | $Xsed -e 's/-framework \([^ $]*\)/\1.ltframework/g'`
  57188. + for tmp_inherited_linker_flag in $tmp_inherited_linker_flags; do
  57189. + case " $new_inherited_linker_flags " in
  57190. + *" $tmp_inherited_linker_flag "*) ;;
  57191. + *) new_inherited_linker_flags="$new_inherited_linker_flags $tmp_inherited_linker_flag";;
  57192. + esac
  57193. + done
  57194. + fi
  57195. + dependency_libs=`$ECHO "X $dependency_libs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57196. + if test "$linkmode,$pass" = "lib,link" ||
  57197. + test "$linkmode,$pass" = "prog,scan" ||
  57198. + { test "$linkmode" != prog && test "$linkmode" != lib; }; then
  57199. + test -n "$dlopen" && dlfiles="$dlfiles $dlopen"
  57200. + test -n "$dlpreopen" && dlprefiles="$dlprefiles $dlpreopen"
  57201. + fi
  57202. +
  57203. + if test "$pass" = conv; then
  57204. + # Only check for convenience libraries
  57205. + deplibs="$lib $deplibs"
  57206. + if test -z "$libdir"; then
  57207. + if test -z "$old_library"; then
  57208. + func_fatal_error "cannot find name of link library for \`$lib'"
  57209. + fi
  57210. + # It is a libtool convenience library, so add in its objects.
  57211. + convenience="$convenience $ladir/$objdir/$old_library"
  57212. + old_convenience="$old_convenience $ladir/$objdir/$old_library"
  57213. + tmp_libs=
  57214. + for deplib in $dependency_libs; do
  57215. + deplibs="$deplib $deplibs"
  57216. + if $opt_duplicate_deps ; then
  57217. + case "$tmp_libs " in
  57218. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57219. + esac
  57220. + fi
  57221. + tmp_libs="$tmp_libs $deplib"
  57222. + done
  57223. + elif test "$linkmode" != prog && test "$linkmode" != lib; then
  57224. + func_fatal_error "\`$lib' is not a convenience library"
  57225. + fi
  57226. + continue
  57227. + fi # $pass = conv
  57228. +
  57229. +
  57230. + # Get the name of the library we link against.
  57231. + linklib=
  57232. + for l in $old_library $library_names; do
  57233. + linklib="$l"
  57234. + done
  57235. + if test -z "$linklib"; then
  57236. + func_fatal_error "cannot find name of link library for \`$lib'"
  57237. + fi
  57238. +
  57239. + # This library was specified with -dlopen.
  57240. + if test "$pass" = dlopen; then
  57241. + if test -z "$libdir"; then
  57242. + func_fatal_error "cannot -dlopen a convenience library: \`$lib'"
  57243. + fi
  57244. + if test -z "$dlname" ||
  57245. + test "$dlopen_support" != yes ||
  57246. + test "$build_libtool_libs" = no; then
  57247. + # If there is no dlname, no dlopen support or we're linking
  57248. + # statically, we need to preload. We also need to preload any
  57249. + # dependent libraries so libltdl's deplib preloader doesn't
  57250. + # bomb out in the load deplibs phase.
  57251. + dlprefiles="$dlprefiles $lib $dependency_libs"
  57252. + else
  57253. + newdlfiles="$newdlfiles $lib"
  57254. + fi
  57255. + continue
  57256. + fi # $pass = dlopen
  57257. +
  57258. + # We need an absolute path.
  57259. + case $ladir in
  57260. + [\\/]* | [A-Za-z]:[\\/]*) abs_ladir="$ladir" ;;
  57261. + *)
  57262. + abs_ladir=`cd "$ladir" && pwd`
  57263. + if test -z "$abs_ladir"; then
  57264. + func_warning "cannot determine absolute directory name of \`$ladir'"
  57265. + func_warning "passing it literally to the linker, although it might fail"
  57266. + abs_ladir="$ladir"
  57267. + fi
  57268. + ;;
  57269. + esac
  57270. + func_basename "$lib"
  57271. + laname="$func_basename_result"
  57272. +
  57273. + # Find the relevant object directory and library name.
  57274. + if test "X$installed" = Xyes; then
  57275. + if test ! -f "$libdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  57276. + func_warning "library \`$lib' was moved."
  57277. + dir="$ladir"
  57278. + absdir="$abs_ladir"
  57279. + libdir="$abs_ladir"
  57280. + else
  57281. + dir="$libdir"
  57282. + absdir="$libdir"
  57283. + fi
  57284. + test "X$hardcode_automatic" = Xyes && avoidtemprpath=yes
  57285. + else
  57286. + if test ! -f "$ladir/$objdir/$linklib" && test -f "$abs_ladir/$linklib"; then
  57287. + dir="$ladir"
  57288. + absdir="$abs_ladir"
  57289. + # Remove this search path later
  57290. + notinst_path="$notinst_path $abs_ladir"
  57291. + else
  57292. + dir="$ladir/$objdir"
  57293. + absdir="$abs_ladir/$objdir"
  57294. + # Remove this search path later
  57295. + notinst_path="$notinst_path $abs_ladir"
  57296. + fi
  57297. + fi # $installed = yes
  57298. + func_stripname 'lib' '.la' "$laname"
  57299. + name=$func_stripname_result
  57300. +
  57301. + # This library was specified with -dlpreopen.
  57302. + if test "$pass" = dlpreopen; then
  57303. + if test -z "$libdir" && test "$linkmode" = prog; then
  57304. + func_fatal_error "only libraries may -dlpreopen a convenience library: \`$lib'"
  57305. + fi
  57306. + # Prefer using a static library (so that no silly _DYNAMIC symbols
  57307. + # are required to link).
  57308. + if test -n "$old_library"; then
  57309. + newdlprefiles="$newdlprefiles $dir/$old_library"
  57310. + # Keep a list of preopened convenience libraries to check
  57311. + # that they are being used correctly in the link pass.
  57312. + test -z "$libdir" && \
  57313. + dlpreconveniencelibs="$dlpreconveniencelibs $dir/$old_library"
  57314. + # Otherwise, use the dlname, so that lt_dlopen finds it.
  57315. + elif test -n "$dlname"; then
  57316. + newdlprefiles="$newdlprefiles $dir/$dlname"
  57317. + else
  57318. + newdlprefiles="$newdlprefiles $dir/$linklib"
  57319. + fi
  57320. + fi # $pass = dlpreopen
  57321. +
  57322. + if test -z "$libdir"; then
  57323. + # Link the convenience library
  57324. + if test "$linkmode" = lib; then
  57325. + deplibs="$dir/$old_library $deplibs"
  57326. + elif test "$linkmode,$pass" = "prog,link"; then
  57327. + compile_deplibs="$dir/$old_library $compile_deplibs"
  57328. + finalize_deplibs="$dir/$old_library $finalize_deplibs"
  57329. + else
  57330. + deplibs="$lib $deplibs" # used for prog,scan pass
  57331. + fi
  57332. + continue
  57333. + fi
  57334. +
  57335. +
  57336. + if test "$linkmode" = prog && test "$pass" != link; then
  57337. + newlib_search_path="$newlib_search_path $ladir"
  57338. + deplibs="$lib $deplibs"
  57339. +
  57340. + linkalldeplibs=no
  57341. + if test "$link_all_deplibs" != no || test -z "$library_names" ||
  57342. + test "$build_libtool_libs" = no; then
  57343. + linkalldeplibs=yes
  57344. + fi
  57345. +
  57346. + tmp_libs=
  57347. + for deplib in $dependency_libs; do
  57348. + case $deplib in
  57349. + -L*) func_stripname '-L' '' "$deplib"
  57350. + newlib_search_path="$newlib_search_path $func_stripname_result"
  57351. + ;;
  57352. + esac
  57353. + # Need to link against all dependency_libs?
  57354. + if test "$linkalldeplibs" = yes; then
  57355. + deplibs="$deplib $deplibs"
  57356. + else
  57357. + # Need to hardcode shared library paths
  57358. + # or/and link against static libraries
  57359. + newdependency_libs="$deplib $newdependency_libs"
  57360. + fi
  57361. + if $opt_duplicate_deps ; then
  57362. + case "$tmp_libs " in
  57363. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57364. + esac
  57365. + fi
  57366. + tmp_libs="$tmp_libs $deplib"
  57367. + done # for deplib
  57368. + continue
  57369. + fi # $linkmode = prog...
  57370. +
  57371. + if test "$linkmode,$pass" = "prog,link"; then
  57372. + if test -n "$library_names" &&
  57373. + { { test "$prefer_static_libs" = no ||
  57374. + test "$prefer_static_libs,$installed" = "built,yes"; } ||
  57375. + test -z "$old_library"; }; then
  57376. + # We need to hardcode the library path
  57377. + if test -n "$shlibpath_var" && test -z "$avoidtemprpath" ; then
  57378. + # Make sure the rpath contains only unique directories.
  57379. + case "$temp_rpath:" in
  57380. + *"$absdir:"*) ;;
  57381. + *) temp_rpath="$temp_rpath$absdir:" ;;
  57382. + esac
  57383. + fi
  57384. +
  57385. + # Hardcode the library path.
  57386. + # Skip directories that are in the system default run-time
  57387. + # search path.
  57388. + case " $sys_lib_dlsearch_path " in
  57389. + *" $absdir "*) ;;
  57390. + *)
  57391. + case "$compile_rpath " in
  57392. + *" $absdir "*) ;;
  57393. + *) compile_rpath="$compile_rpath $absdir"
  57394. + esac
  57395. + ;;
  57396. + esac
  57397. + case " $sys_lib_dlsearch_path " in
  57398. + *" $libdir "*) ;;
  57399. + *)
  57400. + case "$finalize_rpath " in
  57401. + *" $libdir "*) ;;
  57402. + *) finalize_rpath="$finalize_rpath $libdir"
  57403. + esac
  57404. + ;;
  57405. + esac
  57406. + fi # $linkmode,$pass = prog,link...
  57407. +
  57408. + if test "$alldeplibs" = yes &&
  57409. + { test "$deplibs_check_method" = pass_all ||
  57410. + { test "$build_libtool_libs" = yes &&
  57411. + test -n "$library_names"; }; }; then
  57412. + # We only need to search for static libraries
  57413. + continue
  57414. + fi
  57415. + fi
  57416. +
  57417. + link_static=no # Whether the deplib will be linked statically
  57418. + use_static_libs=$prefer_static_libs
  57419. + if test "$use_static_libs" = built && test "$installed" = yes; then
  57420. + use_static_libs=no
  57421. + fi
  57422. + if test -n "$library_names" &&
  57423. + { test "$use_static_libs" = no || test -z "$old_library"; }; then
  57424. + case $host in
  57425. + *cygwin* | *mingw* | *cegcc*)
  57426. + # No point in relinking DLLs because paths are not encoded
  57427. + notinst_deplibs="$notinst_deplibs $lib"
  57428. + need_relink=no
  57429. + ;;
  57430. + *)
  57431. + if test "$installed" = no; then
  57432. + notinst_deplibs="$notinst_deplibs $lib"
  57433. + need_relink=yes
  57434. + fi
  57435. + ;;
  57436. + esac
  57437. + # This is a shared library
  57438. +
  57439. + # Warn about portability, can't link against -module's on some
  57440. + # systems (darwin). Don't bleat about dlopened modules though!
  57441. + dlopenmodule=""
  57442. + for dlpremoduletest in $dlprefiles; do
  57443. + if test "X$dlpremoduletest" = "X$lib"; then
  57444. + dlopenmodule="$dlpremoduletest"
  57445. + break
  57446. + fi
  57447. + done
  57448. + if test -z "$dlopenmodule" && test "$shouldnotlink" = yes && test "$pass" = link; then
  57449. + $ECHO
  57450. + if test "$linkmode" = prog; then
  57451. + $ECHO "*** Warning: Linking the executable $output against the loadable module"
  57452. + else
  57453. + $ECHO "*** Warning: Linking the shared library $output against the loadable module"
  57454. + fi
  57455. + $ECHO "*** $linklib is not portable!"
  57456. + fi
  57457. + if test "$linkmode" = lib &&
  57458. + test "$hardcode_into_libs" = yes; then
  57459. + # Hardcode the library path.
  57460. + # Skip directories that are in the system default run-time
  57461. + # search path.
  57462. + case " $sys_lib_dlsearch_path " in
  57463. + *" $absdir "*) ;;
  57464. + *)
  57465. + case "$compile_rpath " in
  57466. + *" $absdir "*) ;;
  57467. + *) compile_rpath="$compile_rpath $absdir"
  57468. + esac
  57469. + ;;
  57470. + esac
  57471. + case " $sys_lib_dlsearch_path " in
  57472. + *" $libdir "*) ;;
  57473. + *)
  57474. + case "$finalize_rpath " in
  57475. + *" $libdir "*) ;;
  57476. + *) finalize_rpath="$finalize_rpath $libdir"
  57477. + esac
  57478. + ;;
  57479. + esac
  57480. + fi
  57481. +
  57482. + if test -n "$old_archive_from_expsyms_cmds"; then
  57483. + # figure out the soname
  57484. + set dummy $library_names
  57485. + shift
  57486. + realname="$1"
  57487. + shift
  57488. + libname=`eval "\\$ECHO \"$libname_spec\""`
  57489. + # use dlname if we got it. it's perfectly good, no?
  57490. + if test -n "$dlname"; then
  57491. + soname="$dlname"
  57492. + elif test -n "$soname_spec"; then
  57493. + # bleh windows
  57494. + case $host in
  57495. + *cygwin* | mingw* | *cegcc*)
  57496. + func_arith $current - $age
  57497. + major=$func_arith_result
  57498. + versuffix="-$major"
  57499. + ;;
  57500. + esac
  57501. + eval soname=\"$soname_spec\"
  57502. + else
  57503. + soname="$realname"
  57504. + fi
  57505. +
  57506. + # Make a new name for the extract_expsyms_cmds to use
  57507. + soroot="$soname"
  57508. + func_basename "$soroot"
  57509. + soname="$func_basename_result"
  57510. + func_stripname 'lib' '.dll' "$soname"
  57511. + newlib=libimp-$func_stripname_result.a
  57512. +
  57513. + # If the library has no export list, then create one now
  57514. + if test -f "$output_objdir/$soname-def"; then :
  57515. + else
  57516. + func_verbose "extracting exported symbol list from \`$soname'"
  57517. + func_execute_cmds "$extract_expsyms_cmds" 'exit $?'
  57518. + fi
  57519. +
  57520. + # Create $newlib
  57521. + if test -f "$output_objdir/$newlib"; then :; else
  57522. + func_verbose "generating import library for \`$soname'"
  57523. + func_execute_cmds "$old_archive_from_expsyms_cmds" 'exit $?'
  57524. + fi
  57525. + # make sure the library variables are pointing to the new library
  57526. + dir=$output_objdir
  57527. + linklib=$newlib
  57528. + fi # test -n "$old_archive_from_expsyms_cmds"
  57529. +
  57530. + if test "$linkmode" = prog || test "$mode" != relink; then
  57531. + add_shlibpath=
  57532. + add_dir=
  57533. + add=
  57534. + lib_linked=yes
  57535. + case $hardcode_action in
  57536. + immediate | unsupported)
  57537. + if test "$hardcode_direct" = no; then
  57538. + add="$dir/$linklib"
  57539. + case $host in
  57540. + *-*-sco3.2v5.0.[024]*) add_dir="-L$dir" ;;
  57541. + *-*-sysv4*uw2*) add_dir="-L$dir" ;;
  57542. + *-*-sysv5OpenUNIX* | *-*-sysv5UnixWare7.[01].[10]* | \
  57543. + *-*-unixware7*) add_dir="-L$dir" ;;
  57544. + *-*-darwin* )
  57545. + # if the lib is a (non-dlopened) module then we can not
  57546. + # link against it, someone is ignoring the earlier warnings
  57547. + if /usr/bin/file -L $add 2> /dev/null |
  57548. + $GREP ": [^:]* bundle" >/dev/null ; then
  57549. + if test "X$dlopenmodule" != "X$lib"; then
  57550. + $ECHO "*** Warning: lib $linklib is a module, not a shared library"
  57551. + if test -z "$old_library" ; then
  57552. + $ECHO
  57553. + $ECHO "*** And there doesn't seem to be a static archive available"
  57554. + $ECHO "*** The link will probably fail, sorry"
  57555. + else
  57556. + add="$dir/$old_library"
  57557. + fi
  57558. + elif test -n "$old_library"; then
  57559. + add="$dir/$old_library"
  57560. + fi
  57561. + fi
  57562. + esac
  57563. + elif test "$hardcode_minus_L" = no; then
  57564. + case $host in
  57565. + *-*-sunos*) add_shlibpath="$dir" ;;
  57566. + esac
  57567. + add_dir="-L$dir"
  57568. + add="-l$name"
  57569. + elif test "$hardcode_shlibpath_var" = no; then
  57570. + add_shlibpath="$dir"
  57571. + add="-l$name"
  57572. + else
  57573. + lib_linked=no
  57574. + fi
  57575. + ;;
  57576. + relink)
  57577. + if test "$hardcode_direct" = yes &&
  57578. + test "$hardcode_direct_absolute" = no; then
  57579. + add="$dir/$linklib"
  57580. + elif test "$hardcode_minus_L" = yes; then
  57581. + add_dir="-L$dir"
  57582. + # Try looking first in the location we're being installed to.
  57583. + if test -n "$inst_prefix_dir"; then
  57584. + case $libdir in
  57585. + [\\/]*)
  57586. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57587. + ;;
  57588. + esac
  57589. + fi
  57590. + add="-l$name"
  57591. + elif test "$hardcode_shlibpath_var" = yes; then
  57592. + add_shlibpath="$dir"
  57593. + add="-l$name"
  57594. + else
  57595. + lib_linked=no
  57596. + fi
  57597. + ;;
  57598. + *) lib_linked=no ;;
  57599. + esac
  57600. +
  57601. + if test "$lib_linked" != yes; then
  57602. + func_fatal_configuration "unsupported hardcode properties"
  57603. + fi
  57604. +
  57605. + if test -n "$add_shlibpath"; then
  57606. + case :$compile_shlibpath: in
  57607. + *":$add_shlibpath:"*) ;;
  57608. + *) compile_shlibpath="$compile_shlibpath$add_shlibpath:" ;;
  57609. + esac
  57610. + fi
  57611. + if test "$linkmode" = prog; then
  57612. + test -n "$add_dir" && compile_deplibs="$add_dir $compile_deplibs"
  57613. + test -n "$add" && compile_deplibs="$add $compile_deplibs"
  57614. + else
  57615. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57616. + test -n "$add" && deplibs="$add $deplibs"
  57617. + if test "$hardcode_direct" != yes &&
  57618. + test "$hardcode_minus_L" != yes &&
  57619. + test "$hardcode_shlibpath_var" = yes; then
  57620. + case :$finalize_shlibpath: in
  57621. + *":$libdir:"*) ;;
  57622. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57623. + esac
  57624. + fi
  57625. + fi
  57626. + fi
  57627. +
  57628. + if test "$linkmode" = prog || test "$mode" = relink; then
  57629. + add_shlibpath=
  57630. + add_dir=
  57631. + add=
  57632. + # Finalize command for both is simple: just hardcode it.
  57633. + if test "$hardcode_direct" = yes &&
  57634. + test "$hardcode_direct_absolute" = no; then
  57635. + add="$libdir/$linklib"
  57636. + elif test "$hardcode_minus_L" = yes; then
  57637. + add_dir="-L$libdir"
  57638. + add="-l$name"
  57639. + elif test "$hardcode_shlibpath_var" = yes; then
  57640. + case :$finalize_shlibpath: in
  57641. + *":$libdir:"*) ;;
  57642. + *) finalize_shlibpath="$finalize_shlibpath$libdir:" ;;
  57643. + esac
  57644. + add="-l$name"
  57645. + elif test "$hardcode_automatic" = yes; then
  57646. + if test -n "$inst_prefix_dir" &&
  57647. + test -f "$inst_prefix_dir$libdir/$linklib" ; then
  57648. + add="$inst_prefix_dir$libdir/$linklib"
  57649. + else
  57650. + add="$libdir/$linklib"
  57651. + fi
  57652. + else
  57653. + # We cannot seem to hardcode it, guess we'll fake it.
  57654. + add_dir="-L$libdir"
  57655. + # Try looking first in the location we're being installed to.
  57656. + if test -n "$inst_prefix_dir"; then
  57657. + case $libdir in
  57658. + [\\/]*)
  57659. + add_dir="$add_dir -L$inst_prefix_dir$libdir"
  57660. + ;;
  57661. + esac
  57662. + fi
  57663. + add="-l$name"
  57664. + fi
  57665. +
  57666. + if test "$linkmode" = prog; then
  57667. + test -n "$add_dir" && finalize_deplibs="$add_dir $finalize_deplibs"
  57668. + test -n "$add" && finalize_deplibs="$add $finalize_deplibs"
  57669. + else
  57670. + test -n "$add_dir" && deplibs="$add_dir $deplibs"
  57671. + test -n "$add" && deplibs="$add $deplibs"
  57672. + fi
  57673. + fi
  57674. + elif test "$linkmode" = prog; then
  57675. + # Here we assume that one of hardcode_direct or hardcode_minus_L
  57676. + # is not unsupported. This is valid on all known static and
  57677. + # shared platforms.
  57678. + if test "$hardcode_direct" != unsupported; then
  57679. + test -n "$old_library" && linklib="$old_library"
  57680. + compile_deplibs="$dir/$linklib $compile_deplibs"
  57681. + finalize_deplibs="$dir/$linklib $finalize_deplibs"
  57682. + else
  57683. + compile_deplibs="-l$name -L$dir $compile_deplibs"
  57684. + finalize_deplibs="-l$name -L$dir $finalize_deplibs"
  57685. + fi
  57686. + elif test "$build_libtool_libs" = yes; then
  57687. + # Not a shared library
  57688. + if test "$deplibs_check_method" != pass_all; then
  57689. + # We're trying link a shared library against a static one
  57690. + # but the system doesn't support it.
  57691. +
  57692. + # Just print a warning and add the library to dependency_libs so
  57693. + # that the program can be linked against the static library.
  57694. + $ECHO
  57695. + $ECHO "*** Warning: This system can not link to static lib archive $lib."
  57696. + $ECHO "*** I have the capability to make that library automatically link in when"
  57697. + $ECHO "*** you link to this library. But I can only do this if you have a"
  57698. + $ECHO "*** shared version of the library, which you do not appear to have."
  57699. + if test "$module" = yes; then
  57700. + $ECHO "*** But as you try to build a module library, libtool will still create "
  57701. + $ECHO "*** a static module, that should work as long as the dlopening application"
  57702. + $ECHO "*** is linked with the -dlopen flag to resolve symbols at runtime."
  57703. + if test -z "$global_symbol_pipe"; then
  57704. + $ECHO
  57705. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  57706. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  57707. + $ECHO "*** not find such a program. So, this module is probably useless."
  57708. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  57709. + fi
  57710. + if test "$build_old_libs" = no; then
  57711. + build_libtool_libs=module
  57712. + build_old_libs=yes
  57713. + else
  57714. + build_libtool_libs=no
  57715. + fi
  57716. + fi
  57717. + else
  57718. + deplibs="$dir/$old_library $deplibs"
  57719. + link_static=yes
  57720. + fi
  57721. + fi # link shared/static library?
  57722. +
  57723. + if test "$linkmode" = lib; then
  57724. + if test -n "$dependency_libs" &&
  57725. + { test "$hardcode_into_libs" != yes ||
  57726. + test "$build_old_libs" = yes ||
  57727. + test "$link_static" = yes; }; then
  57728. + # Extract -R from dependency_libs
  57729. + temp_deplibs=
  57730. + for libdir in $dependency_libs; do
  57731. + case $libdir in
  57732. + -R*) func_stripname '-R' '' "$libdir"
  57733. + temp_xrpath=$func_stripname_result
  57734. + case " $xrpath " in
  57735. + *" $temp_xrpath "*) ;;
  57736. + *) xrpath="$xrpath $temp_xrpath";;
  57737. + esac;;
  57738. + *) temp_deplibs="$temp_deplibs $libdir";;
  57739. + esac
  57740. + done
  57741. + dependency_libs="$temp_deplibs"
  57742. + fi
  57743. +
  57744. + newlib_search_path="$newlib_search_path $absdir"
  57745. + # Link against this library
  57746. + test "$link_static" = no && newdependency_libs="$abs_ladir/$laname $newdependency_libs"
  57747. + # ... and its dependency_libs
  57748. + tmp_libs=
  57749. + for deplib in $dependency_libs; do
  57750. + newdependency_libs="$deplib $newdependency_libs"
  57751. + if $opt_duplicate_deps ; then
  57752. + case "$tmp_libs " in
  57753. + *" $deplib "*) specialdeplibs="$specialdeplibs $deplib" ;;
  57754. + esac
  57755. + fi
  57756. + tmp_libs="$tmp_libs $deplib"
  57757. + done
  57758. +
  57759. + if test "$link_all_deplibs" != no; then
  57760. + # Add the search paths of all dependency libraries
  57761. + for deplib in $dependency_libs; do
  57762. + path=
  57763. + case $deplib in
  57764. + -L*) path="$deplib" ;;
  57765. + *.la)
  57766. + func_dirname "$deplib" "" "."
  57767. + dir="$func_dirname_result"
  57768. + # We need an absolute path.
  57769. + case $dir in
  57770. + [\\/]* | [A-Za-z]:[\\/]*) absdir="$dir" ;;
  57771. + *)
  57772. + absdir=`cd "$dir" && pwd`
  57773. + if test -z "$absdir"; then
  57774. + func_warning "cannot determine absolute directory name of \`$dir'"
  57775. + absdir="$dir"
  57776. + fi
  57777. + ;;
  57778. + esac
  57779. + if $GREP "^installed=no" $deplib > /dev/null; then
  57780. + case $host in
  57781. + *-*-darwin*)
  57782. + depdepl=
  57783. + eval deplibrary_names=`${SED} -n -e 's/^library_names=\(.*\)$/\1/p' $deplib`
  57784. + if test -n "$deplibrary_names" ; then
  57785. + for tmp in $deplibrary_names ; do
  57786. + depdepl=$tmp
  57787. + done
  57788. + if test -f "$absdir/$objdir/$depdepl" ; then
  57789. + depdepl="$absdir/$objdir/$depdepl"
  57790. + darwin_install_name=`${OTOOL} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57791. + if test -z "$darwin_install_name"; then
  57792. + darwin_install_name=`${OTOOL64} -L $depdepl | awk '{if (NR == 2) {print $1;exit}}'`
  57793. + fi
  57794. + compiler_flags="$compiler_flags ${wl}-dylib_file ${wl}${darwin_install_name}:${depdepl}"
  57795. + linker_flags="$linker_flags -dylib_file ${darwin_install_name}:${depdepl}"
  57796. + path=
  57797. + fi
  57798. + fi
  57799. + ;;
  57800. + *)
  57801. + path="-L$absdir/$objdir"
  57802. + ;;
  57803. + esac
  57804. + else
  57805. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  57806. + test -z "$libdir" && \
  57807. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  57808. + test "$absdir" != "$libdir" && \
  57809. + func_warning "\`$deplib' seems to be moved"
  57810. +
  57811. + path="-L$absdir"
  57812. + fi
  57813. + ;;
  57814. + esac
  57815. + case " $deplibs " in
  57816. + *" $path "*) ;;
  57817. + *) deplibs="$path $deplibs" ;;
  57818. + esac
  57819. + done
  57820. + fi # link_all_deplibs != no
  57821. + fi # linkmode = lib
  57822. + done # for deplib in $libs
  57823. + if test "$pass" = link; then
  57824. + if test "$linkmode" = "prog"; then
  57825. + compile_deplibs="$new_inherited_linker_flags $compile_deplibs"
  57826. + finalize_deplibs="$new_inherited_linker_flags $finalize_deplibs"
  57827. + else
  57828. + compiler_flags="$compiler_flags "`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  57829. + fi
  57830. + fi
  57831. + dependency_libs="$newdependency_libs"
  57832. + if test "$pass" = dlpreopen; then
  57833. + # Link the dlpreopened libraries before other libraries
  57834. + for deplib in $save_deplibs; do
  57835. + deplibs="$deplib $deplibs"
  57836. + done
  57837. + fi
  57838. + if test "$pass" != dlopen; then
  57839. + if test "$pass" != conv; then
  57840. + # Make sure lib_search_path contains only unique directories.
  57841. + lib_search_path=
  57842. + for dir in $newlib_search_path; do
  57843. + case "$lib_search_path " in
  57844. + *" $dir "*) ;;
  57845. + *) lib_search_path="$lib_search_path $dir" ;;
  57846. + esac
  57847. + done
  57848. + newlib_search_path=
  57849. + fi
  57850. +
  57851. + if test "$linkmode,$pass" != "prog,link"; then
  57852. + vars="deplibs"
  57853. + else
  57854. + vars="compile_deplibs finalize_deplibs"
  57855. + fi
  57856. + for var in $vars dependency_libs; do
  57857. + # Add libraries to $var in reverse order
  57858. + eval tmp_libs=\"\$$var\"
  57859. + new_libs=
  57860. + for deplib in $tmp_libs; do
  57861. + # FIXME: Pedantically, this is the right thing to do, so
  57862. + # that some nasty dependency loop isn't accidentally
  57863. + # broken:
  57864. + #new_libs="$deplib $new_libs"
  57865. + # Pragmatically, this seems to cause very few problems in
  57866. + # practice:
  57867. + case $deplib in
  57868. + -L*) new_libs="$deplib $new_libs" ;;
  57869. + -R*) ;;
  57870. + *)
  57871. + # And here is the reason: when a library appears more
  57872. + # than once as an explicit dependence of a library, or
  57873. + # is implicitly linked in more than once by the
  57874. + # compiler, it is considered special, and multiple
  57875. + # occurrences thereof are not removed. Compare this
  57876. + # with having the same library being listed as a
  57877. + # dependency of multiple other libraries: in this case,
  57878. + # we know (pedantically, we assume) the library does not
  57879. + # need to be listed more than once, so we keep only the
  57880. + # last copy. This is not always right, but it is rare
  57881. + # enough that we require users that really mean to play
  57882. + # such unportable linking tricks to link the library
  57883. + # using -Wl,-lname, so that libtool does not consider it
  57884. + # for duplicate removal.
  57885. + case " $specialdeplibs " in
  57886. + *" $deplib "*) new_libs="$deplib $new_libs" ;;
  57887. + *)
  57888. + case " $new_libs " in
  57889. + *" $deplib "*) ;;
  57890. + *) new_libs="$deplib $new_libs" ;;
  57891. + esac
  57892. + ;;
  57893. + esac
  57894. + ;;
  57895. + esac
  57896. + done
  57897. + tmp_libs=
  57898. + for deplib in $new_libs; do
  57899. + case $deplib in
  57900. + -L*)
  57901. + case " $tmp_libs " in
  57902. + *" $deplib "*) ;;
  57903. + *) tmp_libs="$tmp_libs $deplib" ;;
  57904. + esac
  57905. + ;;
  57906. + *) tmp_libs="$tmp_libs $deplib" ;;
  57907. + esac
  57908. + done
  57909. + eval $var=\"$tmp_libs\"
  57910. + done # for var
  57911. + fi
  57912. + # Last step: remove runtime libs from dependency_libs
  57913. + # (they stay in deplibs)
  57914. + tmp_libs=
  57915. + for i in $dependency_libs ; do
  57916. + case " $predeps $postdeps $compiler_lib_search_path " in
  57917. + *" $i "*)
  57918. + i=""
  57919. + ;;
  57920. + esac
  57921. + if test -n "$i" ; then
  57922. + tmp_libs="$tmp_libs $i"
  57923. + fi
  57924. + done
  57925. + dependency_libs=$tmp_libs
  57926. + done # for pass
  57927. + if test "$linkmode" = prog; then
  57928. + dlfiles="$newdlfiles"
  57929. + fi
  57930. + if test "$linkmode" = prog || test "$linkmode" = lib; then
  57931. + dlprefiles="$newdlprefiles"
  57932. + fi
  57933. +
  57934. + case $linkmode in
  57935. + oldlib)
  57936. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  57937. + func_warning "\`-dlopen' is ignored for archives"
  57938. + fi
  57939. +
  57940. + case " $deplibs" in
  57941. + *\ -l* | *\ -L*)
  57942. + func_warning "\`-l' and \`-L' are ignored for archives" ;;
  57943. + esac
  57944. +
  57945. + test -n "$rpath" && \
  57946. + func_warning "\`-rpath' is ignored for archives"
  57947. +
  57948. + test -n "$xrpath" && \
  57949. + func_warning "\`-R' is ignored for archives"
  57950. +
  57951. + test -n "$vinfo" && \
  57952. + func_warning "\`-version-info/-version-number' is ignored for archives"
  57953. +
  57954. + test -n "$release" && \
  57955. + func_warning "\`-release' is ignored for archives"
  57956. +
  57957. + test -n "$export_symbols$export_symbols_regex" && \
  57958. + func_warning "\`-export-symbols' is ignored for archives"
  57959. +
  57960. + # Now set the variables for building old libraries.
  57961. + build_libtool_libs=no
  57962. + oldlibs="$output"
  57963. + objs="$objs$old_deplibs"
  57964. + ;;
  57965. +
  57966. + lib)
  57967. + # Make sure we only generate libraries of the form `libNAME.la'.
  57968. + case $outputname in
  57969. + lib*)
  57970. + func_stripname 'lib' '.la' "$outputname"
  57971. + name=$func_stripname_result
  57972. + eval shared_ext=\"$shrext_cmds\"
  57973. + eval libname=\"$libname_spec\"
  57974. + ;;
  57975. + *)
  57976. + test "$module" = no && \
  57977. + func_fatal_help "libtool library \`$output' must begin with \`lib'"
  57978. +
  57979. + if test "$need_lib_prefix" != no; then
  57980. + # Add the "lib" prefix for modules if required
  57981. + func_stripname '' '.la' "$outputname"
  57982. + name=$func_stripname_result
  57983. + eval shared_ext=\"$shrext_cmds\"
  57984. + eval libname=\"$libname_spec\"
  57985. + else
  57986. + func_stripname '' '.la' "$outputname"
  57987. + libname=$func_stripname_result
  57988. + fi
  57989. + ;;
  57990. + esac
  57991. +
  57992. + if test -n "$objs"; then
  57993. + if test "$deplibs_check_method" != pass_all; then
  57994. + func_fatal_error "cannot build libtool library \`$output' from non-libtool objects on this host:$objs"
  57995. + else
  57996. + $ECHO
  57997. + $ECHO "*** Warning: Linking the shared library $output against the non-libtool"
  57998. + $ECHO "*** objects $objs is not portable!"
  57999. + libobjs="$libobjs $objs"
  58000. + fi
  58001. + fi
  58002. +
  58003. + test "$dlself" != no && \
  58004. + func_warning "\`-dlopen self' is ignored for libtool libraries"
  58005. +
  58006. + set dummy $rpath
  58007. + shift
  58008. + test "$#" -gt 1 && \
  58009. + func_warning "ignoring multiple \`-rpath's for a libtool library"
  58010. +
  58011. + install_libdir="$1"
  58012. +
  58013. + oldlibs=
  58014. + if test -z "$rpath"; then
  58015. + if test "$build_libtool_libs" = yes; then
  58016. + # Building a libtool convenience library.
  58017. + # Some compilers have problems with a `.al' extension so
  58018. + # convenience libraries should have the same extension an
  58019. + # archive normally would.
  58020. + oldlibs="$output_objdir/$libname.$libext $oldlibs"
  58021. + build_libtool_libs=convenience
  58022. + build_old_libs=yes
  58023. + fi
  58024. +
  58025. + test -n "$vinfo" && \
  58026. + func_warning "\`-version-info/-version-number' is ignored for convenience libraries"
  58027. +
  58028. + test -n "$release" && \
  58029. + func_warning "\`-release' is ignored for convenience libraries"
  58030. + else
  58031. +
  58032. + # Parse the version information argument.
  58033. + save_ifs="$IFS"; IFS=':'
  58034. + set dummy $vinfo 0 0 0
  58035. + shift
  58036. + IFS="$save_ifs"
  58037. +
  58038. + test -n "$7" && \
  58039. + func_fatal_help "too many parameters to \`-version-info'"
  58040. +
  58041. + # convert absolute version numbers to libtool ages
  58042. + # this retains compatibility with .la files and attempts
  58043. + # to make the code below a bit more comprehensible
  58044. +
  58045. + case $vinfo_number in
  58046. + yes)
  58047. + number_major="$1"
  58048. + number_minor="$2"
  58049. + number_revision="$3"
  58050. + #
  58051. + # There are really only two kinds -- those that
  58052. + # use the current revision as the major version
  58053. + # and those that subtract age and use age as
  58054. + # a minor version. But, then there is irix
  58055. + # which has an extra 1 added just for fun
  58056. + #
  58057. + case $version_type in
  58058. + darwin|linux|osf|windows|none)
  58059. + func_arith $number_major + $number_minor
  58060. + current=$func_arith_result
  58061. + age="$number_minor"
  58062. + revision="$number_revision"
  58063. + ;;
  58064. + freebsd-aout|freebsd-elf|sunos)
  58065. + current="$number_major"
  58066. + revision="$number_minor"
  58067. + age="0"
  58068. + ;;
  58069. + irix|nonstopux)
  58070. + func_arith $number_major + $number_minor
  58071. + current=$func_arith_result
  58072. + age="$number_minor"
  58073. + revision="$number_minor"
  58074. + lt_irix_increment=no
  58075. + ;;
  58076. + *)
  58077. + func_fatal_configuration "$modename: unknown library version type \`$version_type'"
  58078. + ;;
  58079. + esac
  58080. + ;;
  58081. + no)
  58082. + current="$1"
  58083. + revision="$2"
  58084. + age="$3"
  58085. + ;;
  58086. + esac
  58087. +
  58088. + # Check that each of the things are valid numbers.
  58089. + case $current in
  58090. + 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]) ;;
  58091. + *)
  58092. + func_error "CURRENT \`$current' must be a nonnegative integer"
  58093. + func_fatal_error "\`$vinfo' is not valid version information"
  58094. + ;;
  58095. + esac
  58096. +
  58097. + case $revision in
  58098. + 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]) ;;
  58099. + *)
  58100. + func_error "REVISION \`$revision' must be a nonnegative integer"
  58101. + func_fatal_error "\`$vinfo' is not valid version information"
  58102. + ;;
  58103. + esac
  58104. +
  58105. + case $age in
  58106. + 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]) ;;
  58107. + *)
  58108. + func_error "AGE \`$age' must be a nonnegative integer"
  58109. + func_fatal_error "\`$vinfo' is not valid version information"
  58110. + ;;
  58111. + esac
  58112. +
  58113. + if test "$age" -gt "$current"; then
  58114. + func_error "AGE \`$age' is greater than the current interface number \`$current'"
  58115. + func_fatal_error "\`$vinfo' is not valid version information"
  58116. + fi
  58117. +
  58118. + # Calculate the version variables.
  58119. + major=
  58120. + versuffix=
  58121. + verstring=
  58122. + case $version_type in
  58123. + none) ;;
  58124. +
  58125. + darwin)
  58126. + # Like Linux, but with the current version available in
  58127. + # verstring for coding it into the library header
  58128. + func_arith $current - $age
  58129. + major=.$func_arith_result
  58130. + versuffix="$major.$age.$revision"
  58131. + # Darwin ld doesn't like 0 for these options...
  58132. + func_arith $current + 1
  58133. + minor_current=$func_arith_result
  58134. + xlcverstring="${wl}-compatibility_version ${wl}$minor_current ${wl}-current_version ${wl}$minor_current.$revision"
  58135. + verstring="-compatibility_version $minor_current -current_version $minor_current.$revision"
  58136. + ;;
  58137. +
  58138. + freebsd-aout)
  58139. + major=".$current"
  58140. + versuffix=".$current.$revision";
  58141. + ;;
  58142. +
  58143. + freebsd-elf)
  58144. + major=".$current"
  58145. + versuffix=".$current"
  58146. + ;;
  58147. +
  58148. + irix | nonstopux)
  58149. + if test "X$lt_irix_increment" = "Xno"; then
  58150. + func_arith $current - $age
  58151. + else
  58152. + func_arith $current - $age + 1
  58153. + fi
  58154. + major=$func_arith_result
  58155. +
  58156. + case $version_type in
  58157. + nonstopux) verstring_prefix=nonstopux ;;
  58158. + *) verstring_prefix=sgi ;;
  58159. + esac
  58160. + verstring="$verstring_prefix$major.$revision"
  58161. +
  58162. + # Add in all the interfaces that we are compatible with.
  58163. + loop=$revision
  58164. + while test "$loop" -ne 0; do
  58165. + func_arith $revision - $loop
  58166. + iface=$func_arith_result
  58167. + func_arith $loop - 1
  58168. + loop=$func_arith_result
  58169. + verstring="$verstring_prefix$major.$iface:$verstring"
  58170. + done
  58171. +
  58172. + # Before this point, $major must not contain `.'.
  58173. + major=.$major
  58174. + versuffix="$major.$revision"
  58175. + ;;
  58176. +
  58177. + linux)
  58178. + func_arith $current - $age
  58179. + major=.$func_arith_result
  58180. + versuffix="$major.$age.$revision"
  58181. + ;;
  58182. +
  58183. + osf)
  58184. + func_arith $current - $age
  58185. + major=.$func_arith_result
  58186. + versuffix=".$current.$age.$revision"
  58187. + verstring="$current.$age.$revision"
  58188. +
  58189. + # Add in all the interfaces that we are compatible with.
  58190. + loop=$age
  58191. + while test "$loop" -ne 0; do
  58192. + func_arith $current - $loop
  58193. + iface=$func_arith_result
  58194. + func_arith $loop - 1
  58195. + loop=$func_arith_result
  58196. + verstring="$verstring:${iface}.0"
  58197. + done
  58198. +
  58199. + # Make executables depend on our current version.
  58200. + verstring="$verstring:${current}.0"
  58201. + ;;
  58202. +
  58203. + qnx)
  58204. + major=".$current"
  58205. + versuffix=".$current"
  58206. + ;;
  58207. +
  58208. + sunos)
  58209. + major=".$current"
  58210. + versuffix=".$current.$revision"
  58211. + ;;
  58212. +
  58213. + windows)
  58214. + # Use '-' rather than '.', since we only want one
  58215. + # extension on DOS 8.3 filesystems.
  58216. + func_arith $current - $age
  58217. + major=$func_arith_result
  58218. + versuffix="-$major"
  58219. + ;;
  58220. +
  58221. + *)
  58222. + func_fatal_configuration "unknown library version type \`$version_type'"
  58223. + ;;
  58224. + esac
  58225. +
  58226. + # Clear the version info if we defaulted, and they specified a release.
  58227. + if test -z "$vinfo" && test -n "$release"; then
  58228. + major=
  58229. + case $version_type in
  58230. + darwin)
  58231. + # we can't check for "0.0" in archive_cmds due to quoting
  58232. + # problems, so we reset it completely
  58233. + verstring=
  58234. + ;;
  58235. + *)
  58236. + verstring="0.0"
  58237. + ;;
  58238. + esac
  58239. + if test "$need_version" = no; then
  58240. + versuffix=
  58241. + else
  58242. + versuffix=".0.0"
  58243. + fi
  58244. + fi
  58245. +
  58246. + # Remove version info from name if versioning should be avoided
  58247. + if test "$avoid_version" = yes && test "$need_version" = no; then
  58248. + major=
  58249. + versuffix=
  58250. + verstring=""
  58251. + fi
  58252. +
  58253. + # Check to see if the archive will have undefined symbols.
  58254. + if test "$allow_undefined" = yes; then
  58255. + if test "$allow_undefined_flag" = unsupported; then
  58256. + func_warning "undefined symbols not allowed in $host shared libraries"
  58257. + build_libtool_libs=no
  58258. + build_old_libs=yes
  58259. + fi
  58260. + else
  58261. + # Don't allow undefined symbols.
  58262. + allow_undefined_flag="$no_undefined_flag"
  58263. + fi
  58264. +
  58265. + fi
  58266. +
  58267. + func_generate_dlsyms "$libname" "$libname" "yes"
  58268. + libobjs="$libobjs $symfileobj"
  58269. + test "X$libobjs" = "X " && libobjs=
  58270. +
  58271. + if test "$mode" != relink; then
  58272. + # Remove our outputs, but don't remove object files since they
  58273. + # may have been created when compiling PIC objects.
  58274. + removelist=
  58275. + tempremovelist=`$ECHO "$output_objdir/*"`
  58276. + for p in $tempremovelist; do
  58277. + case $p in
  58278. + *.$objext | *.gcno)
  58279. + ;;
  58280. + $output_objdir/$outputname | $output_objdir/$libname.* | $output_objdir/${libname}${release}.*)
  58281. + if test "X$precious_files_regex" != "X"; then
  58282. + if $ECHO "$p" | $EGREP -e "$precious_files_regex" >/dev/null 2>&1
  58283. + then
  58284. + continue
  58285. + fi
  58286. + fi
  58287. + removelist="$removelist $p"
  58288. + ;;
  58289. + *) ;;
  58290. + esac
  58291. + done
  58292. + test -n "$removelist" && \
  58293. + func_show_eval "${RM}r \$removelist"
  58294. + fi
  58295. +
  58296. + # Now set the variables for building old libraries.
  58297. + if test "$build_old_libs" = yes && test "$build_libtool_libs" != convenience ; then
  58298. + oldlibs="$oldlibs $output_objdir/$libname.$libext"
  58299. +
  58300. + # Transform .lo files to .o files.
  58301. + oldobjs="$objs "`$ECHO "X$libobjs" | $SP2NL | $Xsed -e '/\.'${libext}'$/d' -e "$lo2o" | $NL2SP`
  58302. + fi
  58303. +
  58304. + # Eliminate all temporary directories.
  58305. + #for path in $notinst_path; do
  58306. + # lib_search_path=`$ECHO "X$lib_search_path " | $Xsed -e "s% $path % %g"`
  58307. + # deplibs=`$ECHO "X$deplibs " | $Xsed -e "s% -L$path % %g"`
  58308. + # dependency_libs=`$ECHO "X$dependency_libs " | $Xsed -e "s% -L$path % %g"`
  58309. + #done
  58310. +
  58311. + if test -n "$xrpath"; then
  58312. + # If the user specified any rpath flags, then add them.
  58313. + temp_xrpath=
  58314. + for libdir in $xrpath; do
  58315. + temp_xrpath="$temp_xrpath -R$libdir"
  58316. + case "$finalize_rpath " in
  58317. + *" $libdir "*) ;;
  58318. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  58319. + esac
  58320. + done
  58321. + if test "$hardcode_into_libs" != yes || test "$build_old_libs" = yes; then
  58322. + dependency_libs="$temp_xrpath $dependency_libs"
  58323. + fi
  58324. + fi
  58325. +
  58326. + # Make sure dlfiles contains only unique files that won't be dlpreopened
  58327. + old_dlfiles="$dlfiles"
  58328. + dlfiles=
  58329. + for lib in $old_dlfiles; do
  58330. + case " $dlprefiles $dlfiles " in
  58331. + *" $lib "*) ;;
  58332. + *) dlfiles="$dlfiles $lib" ;;
  58333. + esac
  58334. + done
  58335. +
  58336. + # Make sure dlprefiles contains only unique files
  58337. + old_dlprefiles="$dlprefiles"
  58338. + dlprefiles=
  58339. + for lib in $old_dlprefiles; do
  58340. + case "$dlprefiles " in
  58341. + *" $lib "*) ;;
  58342. + *) dlprefiles="$dlprefiles $lib" ;;
  58343. + esac
  58344. + done
  58345. +
  58346. + if test "$build_libtool_libs" = yes; then
  58347. + if test -n "$rpath"; then
  58348. + case $host in
  58349. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-*-beos* | *-cegcc*)
  58350. + # these systems don't actually have a c library (as such)!
  58351. + ;;
  58352. + *-*-rhapsody* | *-*-darwin1.[012])
  58353. + # Rhapsody C library is in the System framework
  58354. + deplibs="$deplibs System.ltframework"
  58355. + ;;
  58356. + *-*-netbsd*)
  58357. + # Don't link with libc until the a.out ld.so is fixed.
  58358. + ;;
  58359. + *-*-openbsd* | *-*-freebsd* | *-*-dragonfly*)
  58360. + # Do not include libc due to us having libc/libc_r.
  58361. + ;;
  58362. + *-*-sco3.2v5* | *-*-sco5v6*)
  58363. + # Causes problems with __ctype
  58364. + ;;
  58365. + *-*-sysv4.2uw2* | *-*-sysv5* | *-*-unixware* | *-*-OpenUNIX*)
  58366. + # Compiler inserts libc in the correct place for threads to work
  58367. + ;;
  58368. + *)
  58369. + # Add libc to deplibs on all other systems if necessary.
  58370. + if test "$build_libtool_need_lc" = "yes"; then
  58371. + deplibs="$deplibs -lc"
  58372. + fi
  58373. + ;;
  58374. + esac
  58375. + fi
  58376. +
  58377. + # Transform deplibs into only deplibs that can be linked in shared.
  58378. + name_save=$name
  58379. + libname_save=$libname
  58380. + release_save=$release
  58381. + versuffix_save=$versuffix
  58382. + major_save=$major
  58383. + # I'm not sure if I'm treating the release correctly. I think
  58384. + # release should show up in the -l (ie -lgmp5) so we don't want to
  58385. + # add it in twice. Is that correct?
  58386. + release=""
  58387. + versuffix=""
  58388. + major=""
  58389. + newdeplibs=
  58390. + droppeddeps=no
  58391. + case $deplibs_check_method in
  58392. + pass_all)
  58393. + # Don't check for shared/static. Everything works.
  58394. + # This might be a little naive. We might want to check
  58395. + # whether the library exists or not. But this is on
  58396. + # osf3 & osf4 and I'm not really sure... Just
  58397. + # implementing what was already the behavior.
  58398. + newdeplibs=$deplibs
  58399. + ;;
  58400. + test_compile)
  58401. + # This code stresses the "libraries are programs" paradigm to its
  58402. + # limits. Maybe even breaks it. We compile a program, linking it
  58403. + # against the deplibs as a proxy for the library. Then we can check
  58404. + # whether they linked in statically or dynamically with ldd.
  58405. + $opt_dry_run || $RM conftest.c
  58406. + cat > conftest.c <<EOF
  58407. + int main() { return 0; }
  58408. +EOF
  58409. + $opt_dry_run || $RM conftest
  58410. + if $LTCC $LTCFLAGS -o conftest conftest.c $deplibs; then
  58411. + ldd_output=`ldd conftest`
  58412. + for i in $deplibs; do
  58413. + case $i in
  58414. + -l*)
  58415. + func_stripname -l '' "$i"
  58416. + name=$func_stripname_result
  58417. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58418. + case " $predeps $postdeps " in
  58419. + *" $i "*)
  58420. + newdeplibs="$newdeplibs $i"
  58421. + i=""
  58422. + ;;
  58423. + esac
  58424. + fi
  58425. + if test -n "$i" ; then
  58426. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58427. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58428. + set dummy $deplib_matches; shift
  58429. + deplib_match=$1
  58430. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58431. + newdeplibs="$newdeplibs $i"
  58432. + else
  58433. + droppeddeps=yes
  58434. + $ECHO
  58435. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58436. + $ECHO "*** I have the capability to make that library automatically link in when"
  58437. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58438. + $ECHO "*** shared version of the library, which I believe you do not have"
  58439. + $ECHO "*** because a test_compile did reveal that the linker did not use it for"
  58440. + $ECHO "*** its dynamic dependency list that programs get resolved with at runtime."
  58441. + fi
  58442. + fi
  58443. + ;;
  58444. + *)
  58445. + newdeplibs="$newdeplibs $i"
  58446. + ;;
  58447. + esac
  58448. + done
  58449. + else
  58450. + # Error occurred in the first compile. Let's try to salvage
  58451. + # the situation: Compile a separate program for each library.
  58452. + for i in $deplibs; do
  58453. + case $i in
  58454. + -l*)
  58455. + func_stripname -l '' "$i"
  58456. + name=$func_stripname_result
  58457. + $opt_dry_run || $RM conftest
  58458. + if $LTCC $LTCFLAGS -o conftest conftest.c $i; then
  58459. + ldd_output=`ldd conftest`
  58460. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58461. + case " $predeps $postdeps " in
  58462. + *" $i "*)
  58463. + newdeplibs="$newdeplibs $i"
  58464. + i=""
  58465. + ;;
  58466. + esac
  58467. + fi
  58468. + if test -n "$i" ; then
  58469. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58470. + deplib_matches=`eval "\\$ECHO \"$library_names_spec\""`
  58471. + set dummy $deplib_matches; shift
  58472. + deplib_match=$1
  58473. + if test `expr "$ldd_output" : ".*$deplib_match"` -ne 0 ; then
  58474. + newdeplibs="$newdeplibs $i"
  58475. + else
  58476. + droppeddeps=yes
  58477. + $ECHO
  58478. + $ECHO "*** Warning: dynamic linker does not accept needed library $i."
  58479. + $ECHO "*** I have the capability to make that library automatically link in when"
  58480. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58481. + $ECHO "*** shared version of the library, which you do not appear to have"
  58482. + $ECHO "*** because a test_compile did reveal that the linker did not use this one"
  58483. + $ECHO "*** as a dynamic dependency that programs can get resolved with at runtime."
  58484. + fi
  58485. + fi
  58486. + else
  58487. + droppeddeps=yes
  58488. + $ECHO
  58489. + $ECHO "*** Warning! Library $i is needed by this library but I was not able to"
  58490. + $ECHO "*** make it link in! You will probably need to install it or some"
  58491. + $ECHO "*** library that it depends on before this library will be fully"
  58492. + $ECHO "*** functional. Installing it before continuing would be even better."
  58493. + fi
  58494. + ;;
  58495. + *)
  58496. + newdeplibs="$newdeplibs $i"
  58497. + ;;
  58498. + esac
  58499. + done
  58500. + fi
  58501. + ;;
  58502. + file_magic*)
  58503. + set dummy $deplibs_check_method; shift
  58504. + file_magic_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58505. + for a_deplib in $deplibs; do
  58506. + case $a_deplib in
  58507. + -l*)
  58508. + func_stripname -l '' "$a_deplib"
  58509. + name=$func_stripname_result
  58510. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58511. + case " $predeps $postdeps " in
  58512. + *" $a_deplib "*)
  58513. + newdeplibs="$newdeplibs $a_deplib"
  58514. + a_deplib=""
  58515. + ;;
  58516. + esac
  58517. + fi
  58518. + if test -n "$a_deplib" ; then
  58519. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58520. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58521. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58522. + for potent_lib in $potential_libs; do
  58523. + # Follow soft links.
  58524. + if ls -lLd "$potent_lib" 2>/dev/null |
  58525. + $GREP " -> " >/dev/null; then
  58526. + continue
  58527. + fi
  58528. + # The statement above tries to avoid entering an
  58529. + # endless loop below, in case of cyclic links.
  58530. + # We might still enter an endless loop, since a link
  58531. + # loop can be closed while we follow links,
  58532. + # but so what?
  58533. + potlib="$potent_lib"
  58534. + while test -h "$potlib" 2>/dev/null; do
  58535. + potliblink=`ls -ld $potlib | ${SED} 's/.* -> //'`
  58536. + case $potliblink in
  58537. + [\\/]* | [A-Za-z]:[\\/]*) potlib="$potliblink";;
  58538. + *) potlib=`$ECHO "X$potlib" | $Xsed -e 's,[^/]*$,,'`"$potliblink";;
  58539. + esac
  58540. + done
  58541. + if eval $file_magic_cmd \"\$potlib\" 2>/dev/null |
  58542. + $SED -e 10q |
  58543. + $EGREP "$file_magic_regex" > /dev/null; then
  58544. + newdeplibs="$newdeplibs $a_deplib"
  58545. + a_deplib=""
  58546. + break 2
  58547. + fi
  58548. + done
  58549. + done
  58550. + fi
  58551. + if test -n "$a_deplib" ; then
  58552. + droppeddeps=yes
  58553. + $ECHO
  58554. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  58555. + $ECHO "*** I have the capability to make that library automatically link in when"
  58556. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58557. + $ECHO "*** shared version of the library, which you do not appear to have"
  58558. + $ECHO "*** because I did check the linker path looking for a file starting"
  58559. + if test -z "$potlib" ; then
  58560. + $ECHO "*** with $libname but no candidates were found. (...for file magic test)"
  58561. + else
  58562. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  58563. + $ECHO "*** using a file magic. Last file checked: $potlib"
  58564. + fi
  58565. + fi
  58566. + ;;
  58567. + *)
  58568. + # Add a -L argument.
  58569. + newdeplibs="$newdeplibs $a_deplib"
  58570. + ;;
  58571. + esac
  58572. + done # Gone through all deplibs.
  58573. + ;;
  58574. + match_pattern*)
  58575. + set dummy $deplibs_check_method; shift
  58576. + match_pattern_regex=`expr "$deplibs_check_method" : "$1 \(.*\)"`
  58577. + for a_deplib in $deplibs; do
  58578. + case $a_deplib in
  58579. + -l*)
  58580. + func_stripname -l '' "$a_deplib"
  58581. + name=$func_stripname_result
  58582. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58583. + case " $predeps $postdeps " in
  58584. + *" $a_deplib "*)
  58585. + newdeplibs="$newdeplibs $a_deplib"
  58586. + a_deplib=""
  58587. + ;;
  58588. + esac
  58589. + fi
  58590. + if test -n "$a_deplib" ; then
  58591. + libname=`eval "\\$ECHO \"$libname_spec\""`
  58592. + for i in $lib_search_path $sys_lib_search_path $shlib_search_path; do
  58593. + potential_libs=`ls $i/$libname[.-]* 2>/dev/null`
  58594. + for potent_lib in $potential_libs; do
  58595. + potlib="$potent_lib" # see symlink-check above in file_magic test
  58596. + if eval "\$ECHO \"X$potent_lib\"" 2>/dev/null | $Xsed -e 10q | \
  58597. + $EGREP "$match_pattern_regex" > /dev/null; then
  58598. + newdeplibs="$newdeplibs $a_deplib"
  58599. + a_deplib=""
  58600. + break 2
  58601. + fi
  58602. + done
  58603. + done
  58604. + fi
  58605. + if test -n "$a_deplib" ; then
  58606. + droppeddeps=yes
  58607. + $ECHO
  58608. + $ECHO "*** Warning: linker path does not have real file for library $a_deplib."
  58609. + $ECHO "*** I have the capability to make that library automatically link in when"
  58610. + $ECHO "*** you link to this library. But I can only do this if you have a"
  58611. + $ECHO "*** shared version of the library, which you do not appear to have"
  58612. + $ECHO "*** because I did check the linker path looking for a file starting"
  58613. + if test -z "$potlib" ; then
  58614. + $ECHO "*** with $libname but no candidates were found. (...for regex pattern test)"
  58615. + else
  58616. + $ECHO "*** with $libname and none of the candidates passed a file format test"
  58617. + $ECHO "*** using a regex pattern. Last file checked: $potlib"
  58618. + fi
  58619. + fi
  58620. + ;;
  58621. + *)
  58622. + # Add a -L argument.
  58623. + newdeplibs="$newdeplibs $a_deplib"
  58624. + ;;
  58625. + esac
  58626. + done # Gone through all deplibs.
  58627. + ;;
  58628. + none | unknown | *)
  58629. + newdeplibs=""
  58630. + tmp_deplibs=`$ECHO "X $deplibs" | $Xsed \
  58631. + -e 's/ -lc$//' -e 's/ -[LR][^ ]*//g'`
  58632. + if test "X$allow_libtool_libs_with_static_runtimes" = "Xyes" ; then
  58633. + for i in $predeps $postdeps ; do
  58634. + # can't use Xsed below, because $i might contain '/'
  58635. + tmp_deplibs=`$ECHO "X $tmp_deplibs" | $Xsed -e "s,$i,,"`
  58636. + done
  58637. + fi
  58638. + if $ECHO "X $tmp_deplibs" | $Xsed -e 's/[ ]//g' |
  58639. + $GREP . >/dev/null; then
  58640. + $ECHO
  58641. + if test "X$deplibs_check_method" = "Xnone"; then
  58642. + $ECHO "*** Warning: inter-library dependencies are not supported in this platform."
  58643. + else
  58644. + $ECHO "*** Warning: inter-library dependencies are not known to be supported."
  58645. + fi
  58646. + $ECHO "*** All declared inter-library dependencies are being dropped."
  58647. + droppeddeps=yes
  58648. + fi
  58649. + ;;
  58650. + esac
  58651. + versuffix=$versuffix_save
  58652. + major=$major_save
  58653. + release=$release_save
  58654. + libname=$libname_save
  58655. + name=$name_save
  58656. +
  58657. + case $host in
  58658. + *-*-rhapsody* | *-*-darwin1.[012])
  58659. + # On Rhapsody replace the C library with the System framework
  58660. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  58661. ;;
  58662. esac
  58663. - $rm $output
  58664. - trap "$rm $output; exit $EXIT_FAILURE" 1 2 15
  58665. - $echo > $output "\
  58666. -#! $SHELL
  58667. -
  58668. -# $output - temporary wrapper script for $objdir/$outputname
  58669. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  58670. -#
  58671. -# The $output program cannot be directly executed until all the libtool
  58672. -# libraries that it depends on are installed.
  58673. -#
  58674. -# This wrapper script should never be moved out of the build directory.
  58675. -# If it is, it will not operate correctly.
  58676. -
  58677. -# Sed substitution that helps us do robust quoting. It backslashifies
  58678. -# metacharacters that are still active within double-quoted strings.
  58679. -Xsed='${SED} -e 1s/^X//'
  58680. -sed_quote_subst='$sed_quote_subst'
  58681. -
  58682. -# The HP-UX ksh and POSIX shell print the target directory to stdout
  58683. -# if CDPATH is set.
  58684. -if test \"\${CDPATH+set}\" = set; then CDPATH=:; export CDPATH; fi
  58685. -
  58686. -relink_command=\"$relink_command\"
  58687. -
  58688. -# This environment variable determines our operation mode.
  58689. -if test \"\$libtool_install_magic\" = \"$magic\"; then
  58690. - # install mode needs the following variable:
  58691. - notinst_deplibs='$notinst_deplibs'
  58692. -else
  58693. - # When we are sourced in execute mode, \$file and \$echo are already set.
  58694. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58695. - echo=\"$qecho\"
  58696. - file=\"\$0\"
  58697. - # Make sure echo works.
  58698. - if test \"X\$1\" = X--no-reexec; then
  58699. - # Discard the --no-reexec flag, and continue.
  58700. - shift
  58701. - elif test \"X\`(\$echo '\t') 2>/dev/null\`\" = 'X\t'; then
  58702. - # Yippee, \$echo works!
  58703. - :
  58704. - else
  58705. - # Restart under the correct shell, and then maybe \$echo will work.
  58706. - exec $SHELL \"\$0\" --no-reexec \${1+\"\$@\"}
  58707. - fi
  58708. - fi\
  58709. -"
  58710. - $echo >> $output "\
  58711. -
  58712. - # Find the directory that this script lives in.
  58713. - thisdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*$%%'\`
  58714. - test \"x\$thisdir\" = \"x\$file\" && thisdir=.
  58715. -
  58716. - # Follow symbolic links until we get to the real thisdir.
  58717. - file=\`ls -ld \"\$file\" | ${SED} -n 's/.*-> //p'\`
  58718. - while test -n \"\$file\"; do
  58719. - destdir=\`\$echo \"X\$file\" | \$Xsed -e 's%/[^/]*\$%%'\`
  58720. + if test "$droppeddeps" = yes; then
  58721. + if test "$module" = yes; then
  58722. + $ECHO
  58723. + $ECHO "*** Warning: libtool could not satisfy all declared inter-library"
  58724. + $ECHO "*** dependencies of module $libname. Therefore, libtool will create"
  58725. + $ECHO "*** a static module, that should work as long as the dlopening"
  58726. + $ECHO "*** application is linked with the -dlopen flag."
  58727. + if test -z "$global_symbol_pipe"; then
  58728. + $ECHO
  58729. + $ECHO "*** However, this would only work if libtool was able to extract symbol"
  58730. + $ECHO "*** lists from a program, using \`nm' or equivalent, but libtool could"
  58731. + $ECHO "*** not find such a program. So, this module is probably useless."
  58732. + $ECHO "*** \`nm' from GNU binutils and a full rebuild may help."
  58733. + fi
  58734. + if test "$build_old_libs" = no; then
  58735. + oldlibs="$output_objdir/$libname.$libext"
  58736. + build_libtool_libs=module
  58737. + build_old_libs=yes
  58738. + else
  58739. + build_libtool_libs=no
  58740. + fi
  58741. + else
  58742. + $ECHO "*** The inter-library dependencies that have been dropped here will be"
  58743. + $ECHO "*** automatically added whenever a program is linked with this library"
  58744. + $ECHO "*** or is declared to -dlopen it."
  58745. - # If there was a directory component, then change thisdir.
  58746. - if test \"x\$destdir\" != \"x\$file\"; then
  58747. - case \"\$destdir\" in
  58748. - [\\\\/]* | [A-Za-z]:[\\\\/]*) thisdir=\"\$destdir\" ;;
  58749. - *) thisdir=\"\$thisdir/\$destdir\" ;;
  58750. + if test "$allow_undefined" = no; then
  58751. + $ECHO
  58752. + $ECHO "*** Since this library must not contain undefined symbols,"
  58753. + $ECHO "*** because either the platform does not support them or"
  58754. + $ECHO "*** it was explicitly requested with -no-undefined,"
  58755. + $ECHO "*** libtool will only create a static version of it."
  58756. + if test "$build_old_libs" = no; then
  58757. + oldlibs="$output_objdir/$libname.$libext"
  58758. + build_libtool_libs=module
  58759. + build_old_libs=yes
  58760. + else
  58761. + build_libtool_libs=no
  58762. + fi
  58763. + fi
  58764. + fi
  58765. + fi
  58766. + # Done checking deplibs!
  58767. + deplibs=$newdeplibs
  58768. + fi
  58769. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  58770. + case $host in
  58771. + *-*-darwin*)
  58772. + newdeplibs=`$ECHO "X $newdeplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58773. + new_inherited_linker_flags=`$ECHO "X $new_inherited_linker_flags" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58774. + deplibs=`$ECHO "X $deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  58775. + ;;
  58776. esac
  58777. - fi
  58778. -
  58779. - file=\`\$echo \"X\$file\" | \$Xsed -e 's%^.*/%%'\`
  58780. - file=\`ls -ld \"\$thisdir/\$file\" | ${SED} -n 's/.*-> //p'\`
  58781. - done
  58782. - # Try to get the absolute directory name.
  58783. - absdir=\`cd \"\$thisdir\" && pwd\`
  58784. - test -n \"\$absdir\" && thisdir=\"\$absdir\"
  58785. -"
  58786. -
  58787. - if test "$fast_install" = yes; then
  58788. - $echo >> $output "\
  58789. - program=lt-'$outputname'$exeext
  58790. - progdir=\"\$thisdir/$objdir\"
  58791. -
  58792. - if test ! -f \"\$progdir/\$program\" || \\
  58793. - { file=\`ls -1dt \"\$progdir/\$program\" \"\$progdir/../\$program\" 2>/dev/null | ${SED} 1q\`; \\
  58794. - test \"X\$file\" != \"X\$progdir/\$program\"; }; then
  58795. + # move library search paths that coincide with paths to not yet
  58796. + # installed libraries to the beginning of the library search list
  58797. + new_libs=
  58798. + for path in $notinst_path; do
  58799. + case " $new_libs " in
  58800. + *" -L$path/$objdir "*) ;;
  58801. + *)
  58802. + case " $deplibs " in
  58803. + *" -L$path/$objdir "*)
  58804. + new_libs="$new_libs -L$path/$objdir" ;;
  58805. + esac
  58806. + ;;
  58807. + esac
  58808. + done
  58809. + for deplib in $deplibs; do
  58810. + case $deplib in
  58811. + -L*)
  58812. + case " $new_libs " in
  58813. + *" $deplib "*) ;;
  58814. + *) new_libs="$new_libs $deplib" ;;
  58815. + esac
  58816. + ;;
  58817. + *) new_libs="$new_libs $deplib" ;;
  58818. + esac
  58819. + done
  58820. + deplibs="$new_libs"
  58821. - file=\"\$\$-\$program\"
  58822. + # All the library-specific variables (install_libdir is set above).
  58823. + library_names=
  58824. + old_library=
  58825. + dlname=
  58826. - if test ! -d \"\$progdir\"; then
  58827. - $mkdir \"\$progdir\"
  58828. - else
  58829. - $rm \"\$progdir/\$file\"
  58830. - fi"
  58831. + # Test again, we may have decided not to build it any more
  58832. + if test "$build_libtool_libs" = yes; then
  58833. + if test "$hardcode_into_libs" = yes; then
  58834. + # Hardcode the library paths
  58835. + hardcode_libdirs=
  58836. + dep_rpath=
  58837. + rpath="$finalize_rpath"
  58838. + test "$mode" != relink && rpath="$compile_rpath$rpath"
  58839. + for libdir in $rpath; do
  58840. + if test -n "$hardcode_libdir_flag_spec"; then
  58841. + if test -n "$hardcode_libdir_separator"; then
  58842. + if test -z "$hardcode_libdirs"; then
  58843. + hardcode_libdirs="$libdir"
  58844. + else
  58845. + # Just accumulate the unique libdirs.
  58846. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  58847. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  58848. + ;;
  58849. + *)
  58850. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  58851. + ;;
  58852. + esac
  58853. + fi
  58854. + else
  58855. + eval flag=\"$hardcode_libdir_flag_spec\"
  58856. + dep_rpath="$dep_rpath $flag"
  58857. + fi
  58858. + elif test -n "$runpath_var"; then
  58859. + case "$perm_rpath " in
  58860. + *" $libdir "*) ;;
  58861. + *) perm_rpath="$perm_rpath $libdir" ;;
  58862. + esac
  58863. + fi
  58864. + done
  58865. + # Substitute the hardcoded libdirs into the rpath.
  58866. + if test -n "$hardcode_libdir_separator" &&
  58867. + test -n "$hardcode_libdirs"; then
  58868. + libdir="$hardcode_libdirs"
  58869. + if test -n "$hardcode_libdir_flag_spec_ld"; then
  58870. + eval dep_rpath=\"$hardcode_libdir_flag_spec_ld\"
  58871. + else
  58872. + eval dep_rpath=\"$hardcode_libdir_flag_spec\"
  58873. + fi
  58874. + fi
  58875. + if test -n "$runpath_var" && test -n "$perm_rpath"; then
  58876. + # We should set the runpath_var.
  58877. + rpath=
  58878. + for dir in $perm_rpath; do
  58879. + rpath="$rpath$dir:"
  58880. + done
  58881. + eval "$runpath_var='$rpath\$$runpath_var'; export $runpath_var"
  58882. + fi
  58883. + test -n "$dep_rpath" && deplibs="$dep_rpath $deplibs"
  58884. + fi
  58885. - $echo >> $output "\
  58886. + shlibpath="$finalize_shlibpath"
  58887. + test "$mode" != relink && shlibpath="$compile_shlibpath$shlibpath"
  58888. + if test -n "$shlibpath"; then
  58889. + eval "$shlibpath_var='$shlibpath\$$shlibpath_var'; export $shlibpath_var"
  58890. + fi
  58891. - # relink executable if necessary
  58892. - if test -n \"\$relink_command\"; then
  58893. - if relink_command_output=\`eval \$relink_command 2>&1\`; then :
  58894. - else
  58895. - $echo \"\$relink_command_output\" >&2
  58896. - $rm \"\$progdir/\$file\"
  58897. - exit $EXIT_FAILURE
  58898. - fi
  58899. - fi
  58900. + # Get the real and link names of the library.
  58901. + eval shared_ext=\"$shrext_cmds\"
  58902. + eval library_names=\"$library_names_spec\"
  58903. + set dummy $library_names
  58904. + shift
  58905. + realname="$1"
  58906. + shift
  58907. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\" 2>/dev/null ||
  58908. - { $rm \"\$progdir/\$program\";
  58909. - $mv \"\$progdir/\$file\" \"\$progdir/\$program\"; }
  58910. - $rm \"\$progdir/\$file\"
  58911. - fi"
  58912. + if test -n "$soname_spec"; then
  58913. + eval soname=\"$soname_spec\"
  58914. else
  58915. - $echo >> $output "\
  58916. - program='$outputname'
  58917. - progdir=\"\$thisdir/$objdir\"
  58918. -"
  58919. + soname="$realname"
  58920. fi
  58921. -
  58922. - $echo >> $output "\
  58923. -
  58924. - if test -f \"\$progdir/\$program\"; then"
  58925. -
  58926. - # Export our shlibpath_var if we have one.
  58927. - if test "$shlibpath_overrides_runpath" = yes && test -n "$shlibpath_var" && test -n "$temp_rpath"; then
  58928. - $echo >> $output "\
  58929. - # Add our own library path to $shlibpath_var
  58930. - $shlibpath_var=\"$temp_rpath\$$shlibpath_var\"
  58931. -
  58932. - # Some systems cannot cope with colon-terminated $shlibpath_var
  58933. - # The second colon is a workaround for a bug in BeOS R4 sed
  58934. - $shlibpath_var=\`\$echo \"X\$$shlibpath_var\" | \$Xsed -e 's/::*\$//'\`
  58935. -
  58936. - export $shlibpath_var
  58937. -"
  58938. + if test -z "$dlname"; then
  58939. + dlname=$soname
  58940. fi
  58941. - # fixup the dll searchpath if we need to.
  58942. - if test -n "$dllsearchpath"; then
  58943. - $echo >> $output "\
  58944. - # Add the dll search path components to the executable PATH
  58945. - PATH=$dllsearchpath:\$PATH
  58946. -"
  58947. - fi
  58948. + lib="$output_objdir/$realname"
  58949. + linknames=
  58950. + for link
  58951. + do
  58952. + linknames="$linknames $link"
  58953. + done
  58954. - $echo >> $output "\
  58955. - if test \"\$libtool_execute_magic\" != \"$magic\"; then
  58956. - # Run the actual program with our arguments.
  58957. -"
  58958. - case $host in
  58959. - # Backslashes separate directories on plain windows
  58960. - *-*-mingw | *-*-os2*)
  58961. - $echo >> $output "\
  58962. - exec \$progdir\\\\\$program \${1+\"\$@\"}
  58963. -"
  58964. - ;;
  58965. + # Use standard objects if they are pic
  58966. + test -z "$pic_flag" && libobjs=`$ECHO "X$libobjs" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  58967. + test "X$libobjs" = "X " && libobjs=
  58968. - *)
  58969. - $echo >> $output "\
  58970. - exec \$progdir/\$program \${1+\"\$@\"}
  58971. -"
  58972. + delfiles=
  58973. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  58974. + $opt_dry_run || cp "$export_symbols" "$output_objdir/$libname.uexp"
  58975. + export_symbols="$output_objdir/$libname.uexp"
  58976. + delfiles="$delfiles $export_symbols"
  58977. + fi
  58978. +
  58979. + orig_export_symbols=
  58980. + case $host_os in
  58981. + cygwin* | mingw* | cegcc*)
  58982. + if test -n "$export_symbols" && test -z "$export_symbols_regex"; then
  58983. + # exporting using user supplied symfile
  58984. + if test "x`$SED 1q $export_symbols`" != xEXPORTS; then
  58985. + # and it's NOT already a .def file. Must figure out
  58986. + # which of the given symbols are data symbols and tag
  58987. + # them as such. So, trigger use of export_symbols_cmds.
  58988. + # export_symbols gets reassigned inside the "prepare
  58989. + # the list of exported symbols" if statement, so the
  58990. + # include_expsyms logic still works.
  58991. + orig_export_symbols="$export_symbols"
  58992. + export_symbols=
  58993. + always_export_symbols=yes
  58994. + fi
  58995. + fi
  58996. ;;
  58997. esac
  58998. - $echo >> $output "\
  58999. - \$echo \"\$0: cannot exec \$program \${1+\"\$@\"}\"
  59000. - exit $EXIT_FAILURE
  59001. - fi
  59002. - else
  59003. - # The program doesn't exist.
  59004. - \$echo \"\$0: error: \$progdir/\$program does not exist\" 1>&2
  59005. - \$echo \"This script is just a wrapper for \$program.\" 1>&2
  59006. - $echo \"See the $PACKAGE documentation for more information.\" 1>&2
  59007. - exit $EXIT_FAILURE
  59008. - fi
  59009. -fi\
  59010. -"
  59011. - chmod +x $output
  59012. - fi
  59013. - exit $EXIT_SUCCESS
  59014. - ;;
  59015. - esac
  59016. -
  59017. - # See if we need to build an old-fashioned archive.
  59018. - for oldlib in $oldlibs; do
  59019. - if test "$build_libtool_libs" = convenience; then
  59020. - oldobjs="$libobjs_save"
  59021. - addlibs="$convenience"
  59022. - build_libtool_libs=no
  59023. - else
  59024. - if test "$build_libtool_libs" = module; then
  59025. - oldobjs="$libobjs_save"
  59026. - build_libtool_libs=no
  59027. - else
  59028. - oldobjs="$old_deplibs $non_pic_objects"
  59029. + # Prepare the list of exported symbols
  59030. + if test -z "$export_symbols"; then
  59031. + if test "$always_export_symbols" = yes || test -n "$export_symbols_regex"; then
  59032. + func_verbose "generating symbol list for \`$libname.la'"
  59033. + export_symbols="$output_objdir/$libname.exp"
  59034. + $opt_dry_run || $RM $export_symbols
  59035. + cmds=$export_symbols_cmds
  59036. + save_ifs="$IFS"; IFS='~'
  59037. + for cmd in $cmds; do
  59038. + IFS="$save_ifs"
  59039. + eval cmd=\"$cmd\"
  59040. + func_len " $cmd"
  59041. + len=$func_len_result
  59042. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59043. + func_show_eval "$cmd" 'exit $?'
  59044. + skipped_export=false
  59045. + else
  59046. + # The command line is too long to execute in one step.
  59047. + func_verbose "using reloadable object file for export list..."
  59048. + skipped_export=:
  59049. + # Break out early, otherwise skipped_export may be
  59050. + # set to false by a later but shorter cmd.
  59051. + break
  59052. + fi
  59053. + done
  59054. + IFS="$save_ifs"
  59055. + if test -n "$export_symbols_regex" && test "X$skipped_export" != "X:"; then
  59056. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  59057. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  59058. + fi
  59059. + fi
  59060. fi
  59061. - addlibs="$old_convenience"
  59062. - fi
  59063. - if test -n "$addlibs"; then
  59064. - gentop="$output_objdir/${outputname}x"
  59065. - $show "${rm}r $gentop"
  59066. - $run ${rm}r "$gentop"
  59067. - $show "$mkdir $gentop"
  59068. - $run $mkdir "$gentop"
  59069. - status=$?
  59070. - if test "$status" -ne 0 && test ! -d "$gentop"; then
  59071. - exit $status
  59072. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  59073. + tmp_export_symbols="$export_symbols"
  59074. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  59075. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  59076. + fi
  59077. +
  59078. + if test "X$skipped_export" != "X:" && test -n "$orig_export_symbols"; then
  59079. + # The given exports_symbols file has to be filtered, so filter it.
  59080. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  59081. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  59082. + # 's' commands which not all seds can handle. GNU sed should be fine
  59083. + # though. Also, the filter scales superlinearly with the number of
  59084. + # global variables. join(1) would be nice here, but unfortunately
  59085. + # isn't a blessed tool.
  59086. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  59087. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  59088. + export_symbols=$output_objdir/$libname.def
  59089. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  59090. fi
  59091. - generated="$generated $gentop"
  59092. - # Add in members from convenience archives.
  59093. - for xlib in $addlibs; do
  59094. - # Extract the objects.
  59095. - case $xlib in
  59096. - [\\/]* | [A-Za-z]:[\\/]*) xabs="$xlib" ;;
  59097. - *) xabs=`pwd`"/$xlib" ;;
  59098. + tmp_deplibs=
  59099. + for test_deplib in $deplibs; do
  59100. + case " $convenience " in
  59101. + *" $test_deplib "*) ;;
  59102. + *)
  59103. + tmp_deplibs="$tmp_deplibs $test_deplib"
  59104. + ;;
  59105. esac
  59106. - xlib=`$echo "X$xlib" | $Xsed -e 's%^.*/%%'`
  59107. - xdir="$gentop/$xlib"
  59108. + done
  59109. + deplibs="$tmp_deplibs"
  59110. - $show "${rm}r $xdir"
  59111. - $run ${rm}r "$xdir"
  59112. - $show "$mkdir $xdir"
  59113. - $run $mkdir "$xdir"
  59114. - status=$?
  59115. - if test "$status" -ne 0 && test ! -d "$xdir"; then
  59116. - exit $status
  59117. - fi
  59118. - # We will extract separately just the conflicting names and we will no
  59119. - # longer touch any unique names. It is faster to leave these extract
  59120. - # automatically by $AR in one run.
  59121. - $show "(cd $xdir && $AR x $xabs)"
  59122. - $run eval "(cd \$xdir && $AR x \$xabs)" || exit $?
  59123. - if ($AR t "$xabs" | sort | sort -uc >/dev/null 2>&1); then
  59124. - :
  59125. + if test -n "$convenience"; then
  59126. + if test -n "$whole_archive_flag_spec" &&
  59127. + test "$compiler_needs_object" = yes &&
  59128. + test -z "$libobjs"; then
  59129. + # extract the archives, so we have objects to list.
  59130. + # TODO: could optimize this to just extract one archive.
  59131. + whole_archive_flag_spec=
  59132. + fi
  59133. + if test -n "$whole_archive_flag_spec"; then
  59134. + save_libobjs=$libobjs
  59135. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  59136. + test "X$libobjs" = "X " && libobjs=
  59137. else
  59138. - $echo "$modename: warning: object name conflicts; renaming object files" 1>&2
  59139. - $echo "$modename: warning: to ensure that they will not overwrite" 1>&2
  59140. - $AR t "$xabs" | sort | uniq -cd | while read -r count name
  59141. - do
  59142. - i=1
  59143. - while test "$i" -le "$count"
  59144. - do
  59145. - # Put our $i before any first dot (extension)
  59146. - # Never overwrite any file
  59147. - name_to="$name"
  59148. - while test "X$name_to" = "X$name" || test -f "$xdir/$name_to"
  59149. - do
  59150. - name_to=`$echo "X$name_to" | $Xsed -e "s/\([^.]*\)/\1-$i/"`
  59151. - done
  59152. - $show "(cd $xdir && $AR xN $i $xabs '$name' && $mv '$name' '$name_to')"
  59153. - $run eval "(cd \$xdir && $AR xN $i \$xabs '$name' && $mv '$name' '$name_to')" || exit $?
  59154. - i=`expr $i + 1`
  59155. - done
  59156. - done
  59157. + gentop="$output_objdir/${outputname}x"
  59158. + generated="$generated $gentop"
  59159. +
  59160. + func_extract_archives $gentop $convenience
  59161. + libobjs="$libobjs $func_extract_archives_result"
  59162. + test "X$libobjs" = "X " && libobjs=
  59163. fi
  59164. + fi
  59165. - oldobjs="$oldobjs "`find $xdir -name \*.${objext} -print -o -name \*.lo -print | $NL2SP`
  59166. - done
  59167. - fi
  59168. + if test "$thread_safe" = yes && test -n "$thread_safe_flag_spec"; then
  59169. + eval flag=\"$thread_safe_flag_spec\"
  59170. + linker_flags="$linker_flags $flag"
  59171. + fi
  59172. - # Do each command in the archive commands.
  59173. - if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  59174. - cmds=$old_archive_from_new_cmds
  59175. - else
  59176. - eval cmds=\"$old_archive_cmds\"
  59177. + # Make a backup of the uninstalled library when relinking
  59178. + if test "$mode" = relink; then
  59179. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}U && $MV $realname ${realname}U)' || exit $?
  59180. + fi
  59181. - if len=`expr "X$cmds" : ".*"` &&
  59182. - test "$len" -le "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59183. - cmds=$old_archive_cmds
  59184. - else
  59185. - # the command line is too long to link in one step, link in parts
  59186. - $echo "using piecewise archive linking..."
  59187. - save_RANLIB=$RANLIB
  59188. - RANLIB=:
  59189. - objlist=
  59190. - concat_cmds=
  59191. - save_oldobjs=$oldobjs
  59192. - # GNU ar 2.10+ was changed to match POSIX; thus no paths are
  59193. - # encoded into archives. This makes 'ar r' malfunction in
  59194. - # this piecewise linking case whenever conflicting object
  59195. - # names appear in distinct ar calls; check, warn and compensate.
  59196. - if (for obj in $save_oldobjs
  59197. - do
  59198. - $echo "X$obj" | $Xsed -e 's%^.*/%%'
  59199. - done | sort | sort -uc >/dev/null 2>&1); then
  59200. - :
  59201. + # Do each of the archive commands.
  59202. + if test "$module" = yes && test -n "$module_cmds" ; then
  59203. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  59204. + eval test_cmds=\"$module_expsym_cmds\"
  59205. + cmds=$module_expsym_cmds
  59206. else
  59207. - $echo "$modename: warning: object name conflicts; overriding AR_FLAGS to 'cq'" 1>&2
  59208. - $echo "$modename: warning: to ensure that POSIX-compatible ar will work" 1>&2
  59209. - AR_FLAGS=cq
  59210. + eval test_cmds=\"$module_cmds\"
  59211. + cmds=$module_cmds
  59212. fi
  59213. - # Is there a better way of finding the last object in the list?
  59214. - for obj in $save_oldobjs
  59215. - do
  59216. - last_oldobj=$obj
  59217. - done
  59218. - for obj in $save_oldobjs
  59219. - do
  59220. - oldobjs="$objlist $obj"
  59221. - objlist="$objlist $obj"
  59222. - eval test_cmds=\"$old_archive_cmds\"
  59223. - if len=`expr "X$test_cmds" : ".*"` &&
  59224. - test "$len" -le "$max_cmd_len"; then
  59225. - :
  59226. - else
  59227. - # the above command should be used before it gets too long
  59228. - oldobjs=$objlist
  59229. - if test "$obj" = "$last_oldobj" ; then
  59230. - RANLIB=$save_RANLIB
  59231. - fi
  59232. - test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59233. - eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  59234. - objlist=
  59235. - fi
  59236. - done
  59237. - RANLIB=$save_RANLIB
  59238. - oldobjs=$objlist
  59239. - if test "X$oldobjs" = "X" ; then
  59240. - eval cmds=\"\$concat_cmds\"
  59241. + else
  59242. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  59243. + eval test_cmds=\"$archive_expsym_cmds\"
  59244. + cmds=$archive_expsym_cmds
  59245. else
  59246. - eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  59247. + eval test_cmds=\"$archive_cmds\"
  59248. + cmds=$archive_cmds
  59249. fi
  59250. fi
  59251. - fi
  59252. - save_ifs="$IFS"; IFS='~'
  59253. - for cmd in $cmds; do
  59254. - eval cmd=\"$cmd\"
  59255. - IFS="$save_ifs"
  59256. - $show "$cmd"
  59257. - $run eval "$cmd" || exit $?
  59258. - done
  59259. - IFS="$save_ifs"
  59260. - done
  59261. -
  59262. - if test -n "$generated"; then
  59263. - $show "${rm}r$generated"
  59264. - $run ${rm}r$generated
  59265. - fi
  59266. -
  59267. - # Now create the libtool archive.
  59268. - case $output in
  59269. - *.la)
  59270. - old_library=
  59271. - test "$build_old_libs" = yes && old_library="$libname.$libext"
  59272. - $show "creating $output"
  59273. - # Preserve any variables that may affect compiler behavior
  59274. - for var in $variables_saved_for_relink; do
  59275. - if eval test -z \"\${$var+set}\"; then
  59276. - relink_command="{ test -z \"\${$var+set}\" || unset $var || { $var=; export $var; }; }; $relink_command"
  59277. - elif eval var_value=\$$var; test -z "$var_value"; then
  59278. - relink_command="$var=; export $var; $relink_command"
  59279. + if test "X$skipped_export" != "X:" &&
  59280. + func_len " $test_cmds" &&
  59281. + len=$func_len_result &&
  59282. + test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  59283. + :
  59284. else
  59285. - var_value=`$echo "X$var_value" | $Xsed -e "$sed_quote_subst"`
  59286. - relink_command="$var=\"$var_value\"; export $var; $relink_command"
  59287. - fi
  59288. - done
  59289. - # Quote the link command for shipping.
  59290. - relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  59291. - relink_command=`$echo "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  59292. - if test "$hardcode_automatic" = yes ; then
  59293. - relink_command=
  59294. - fi
  59295. + # The command line is too long to link in one step, link piecewise
  59296. + # or, if using GNU ld and skipped_export is not :, use a linker
  59297. + # script.
  59298. +
  59299. + # Save the value of $output and $libobjs because we want to
  59300. + # use them later. If we have whole_archive_flag_spec, we
  59301. + # want to use save_libobjs as it was before
  59302. + # whole_archive_flag_spec was expanded, because we can't
  59303. + # assume the linker understands whole_archive_flag_spec.
  59304. + # This may have to be revisited, in case too many
  59305. + # convenience libraries get linked in and end up exceeding
  59306. + # the spec.
  59307. + if test -z "$convenience" || test -z "$whole_archive_flag_spec"; then
  59308. + save_libobjs=$libobjs
  59309. + fi
  59310. + save_output=$output
  59311. + output_la=`$ECHO "X$output" | $Xsed -e "$basename"`
  59312. + # Clear the reloadable object creation command queue and
  59313. + # initialize k to one.
  59314. + test_cmds=
  59315. + concat_cmds=
  59316. + objlist=
  59317. + last_robj=
  59318. + k=1
  59319. - # Only create the output if not a dry run.
  59320. - if test -z "$run"; then
  59321. - for installed in no yes; do
  59322. - if test "$installed" = yes; then
  59323. - if test -z "$install_libdir"; then
  59324. - break
  59325. + if test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "$with_gnu_ld" = yes; then
  59326. + output=${output_objdir}/${output_la}.lnkscript
  59327. + func_verbose "creating GNU ld script: $output"
  59328. + $ECHO 'INPUT (' > $output
  59329. + for obj in $save_libobjs
  59330. + do
  59331. + $ECHO "$obj" >> $output
  59332. + done
  59333. + $ECHO ')' >> $output
  59334. + delfiles="$delfiles $output"
  59335. + elif test -n "$save_libobjs" && test "X$skipped_export" != "X:" && test "X$file_list_spec" != X; then
  59336. + output=${output_objdir}/${output_la}.lnk
  59337. + func_verbose "creating linker input file list: $output"
  59338. + : > $output
  59339. + set x $save_libobjs
  59340. + shift
  59341. + firstobj=
  59342. + if test "$compiler_needs_object" = yes; then
  59343. + firstobj="$1 "
  59344. + shift
  59345. fi
  59346. - output="$output_objdir/$outputname"i
  59347. - # Replace all uninstalled libtool libraries with the installed ones
  59348. - newdependency_libs=
  59349. - for deplib in $dependency_libs; do
  59350. - case $deplib in
  59351. - *.la)
  59352. - name=`$echo "X$deplib" | $Xsed -e 's%^.*/%%'`
  59353. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  59354. - if test -z "$libdir"; then
  59355. - $echo "$modename: \`$deplib' is not a valid libtool archive" 1>&2
  59356. - exit $EXIT_FAILURE
  59357. - fi
  59358. - newdependency_libs="$newdependency_libs $libdir/$name"
  59359. - ;;
  59360. - *) newdependency_libs="$newdependency_libs $deplib" ;;
  59361. - esac
  59362. + for obj
  59363. + do
  59364. + $ECHO "$obj" >> $output
  59365. done
  59366. - dependency_libs="$newdependency_libs"
  59367. - newdlfiles=
  59368. - for lib in $dlfiles; do
  59369. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  59370. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  59371. - if test -z "$libdir"; then
  59372. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  59373. - exit $EXIT_FAILURE
  59374. + delfiles="$delfiles $output"
  59375. + output=$firstobj\"$file_list_spec$output\"
  59376. + else
  59377. + if test -n "$save_libobjs"; then
  59378. + func_verbose "creating reloadable object files..."
  59379. + output=$output_objdir/$output_la-${k}.$objext
  59380. + eval test_cmds=\"$reload_cmds\"
  59381. + func_len " $test_cmds"
  59382. + len0=$func_len_result
  59383. + len=$len0
  59384. +
  59385. + # Loop over the list of objects to be linked.
  59386. + for obj in $save_libobjs
  59387. + do
  59388. + func_len " $obj"
  59389. + func_arith $len + $func_len_result
  59390. + len=$func_arith_result
  59391. + if test "X$objlist" = X ||
  59392. + test "$len" -lt "$max_cmd_len"; then
  59393. + func_append objlist " $obj"
  59394. + else
  59395. + # The command $test_cmds is almost too long, add a
  59396. + # command to the queue.
  59397. + if test "$k" -eq 1 ; then
  59398. + # The first file doesn't have a previous command to add.
  59399. + eval concat_cmds=\"$reload_cmds $objlist $last_robj\"
  59400. + else
  59401. + # All subsequent reloadable object files will link in
  59402. + # the last one created.
  59403. + eval concat_cmds=\"\$concat_cmds~$reload_cmds $objlist $last_robj~\$RM $last_robj\"
  59404. + fi
  59405. + last_robj=$output_objdir/$output_la-${k}.$objext
  59406. + func_arith $k + 1
  59407. + k=$func_arith_result
  59408. + output=$output_objdir/$output_la-${k}.$objext
  59409. + objlist=$obj
  59410. + func_len " $last_robj"
  59411. + func_arith $len0 + $func_len_result
  59412. + len=$func_arith_result
  59413. + fi
  59414. + done
  59415. + # Handle the remaining objects by creating one last
  59416. + # reloadable object file. All subsequent reloadable object
  59417. + # files will link in the last one created.
  59418. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59419. + eval concat_cmds=\"\${concat_cmds}$reload_cmds $objlist $last_robj\"
  59420. + if test -n "$last_robj"; then
  59421. + eval concat_cmds=\"\${concat_cmds}~\$RM $last_robj\"
  59422. fi
  59423. - newdlfiles="$newdlfiles $libdir/$name"
  59424. - done
  59425. - dlfiles="$newdlfiles"
  59426. - newdlprefiles=
  59427. - for lib in $dlprefiles; do
  59428. - name=`$echo "X$lib" | $Xsed -e 's%^.*/%%'`
  59429. - eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  59430. - if test -z "$libdir"; then
  59431. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  59432. - exit $EXIT_FAILURE
  59433. + delfiles="$delfiles $output"
  59434. +
  59435. + else
  59436. + output=
  59437. + fi
  59438. +
  59439. + if ${skipped_export-false}; then
  59440. + func_verbose "generating symbol list for \`$libname.la'"
  59441. + export_symbols="$output_objdir/$libname.exp"
  59442. + $opt_dry_run || $RM $export_symbols
  59443. + libobjs=$output
  59444. + # Append the command to create the export file.
  59445. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  59446. + eval concat_cmds=\"\$concat_cmds$export_symbols_cmds\"
  59447. + if test -n "$last_robj"; then
  59448. + eval concat_cmds=\"\$concat_cmds~\$RM $last_robj\"
  59449. fi
  59450. - newdlprefiles="$newdlprefiles $libdir/$name"
  59451. + fi
  59452. +
  59453. + test -n "$save_libobjs" &&
  59454. + func_verbose "creating a temporary reloadable object file: $output"
  59455. +
  59456. + # Loop through the commands generated above and execute them.
  59457. + save_ifs="$IFS"; IFS='~'
  59458. + for cmd in $concat_cmds; do
  59459. + IFS="$save_ifs"
  59460. + $opt_silent || {
  59461. + func_quote_for_expand "$cmd"
  59462. + eval "func_echo $func_quote_for_expand_result"
  59463. + }
  59464. + $opt_dry_run || eval "$cmd" || {
  59465. + lt_exit=$?
  59466. +
  59467. + # Restore the uninstalled library and exit
  59468. + if test "$mode" = relink; then
  59469. + ( cd "$output_objdir" && \
  59470. + $RM "${realname}T" && \
  59471. + $MV "${realname}U" "$realname" )
  59472. + fi
  59473. +
  59474. + exit $lt_exit
  59475. + }
  59476. done
  59477. - dlprefiles="$newdlprefiles"
  59478. + IFS="$save_ifs"
  59479. +
  59480. + if test -n "$export_symbols_regex" && ${skipped_export-false}; then
  59481. + func_show_eval '$EGREP -e "$export_symbols_regex" "$export_symbols" > "${export_symbols}T"'
  59482. + func_show_eval '$MV "${export_symbols}T" "$export_symbols"'
  59483. + fi
  59484. + fi
  59485. +
  59486. + if ${skipped_export-false}; then
  59487. + if test -n "$export_symbols" && test -n "$include_expsyms"; then
  59488. + tmp_export_symbols="$export_symbols"
  59489. + test -n "$orig_export_symbols" && tmp_export_symbols="$orig_export_symbols"
  59490. + $opt_dry_run || eval '$ECHO "X$include_expsyms" | $Xsed | $SP2NL >> "$tmp_export_symbols"'
  59491. + fi
  59492. +
  59493. + if test -n "$orig_export_symbols"; then
  59494. + # The given exports_symbols file has to be filtered, so filter it.
  59495. + func_verbose "filter symbol list for \`$libname.la' to tag DATA exports"
  59496. + # FIXME: $output_objdir/$libname.filter potentially contains lots of
  59497. + # 's' commands which not all seds can handle. GNU sed should be fine
  59498. + # though. Also, the filter scales superlinearly with the number of
  59499. + # global variables. join(1) would be nice here, but unfortunately
  59500. + # isn't a blessed tool.
  59501. + $opt_dry_run || $SED -e '/[ ,]DATA/!d;s,\(.*\)\([ \,].*\),s|^\1$|\1\2|,' < $export_symbols > $output_objdir/$libname.filter
  59502. + delfiles="$delfiles $export_symbols $output_objdir/$libname.filter"
  59503. + export_symbols=$output_objdir/$libname.def
  59504. + $opt_dry_run || $SED -f $output_objdir/$libname.filter < $orig_export_symbols > $export_symbols
  59505. + fi
  59506. + fi
  59507. +
  59508. + libobjs=$output
  59509. + # Restore the value of output.
  59510. + output=$save_output
  59511. +
  59512. + if test -n "$convenience" && test -n "$whole_archive_flag_spec"; then
  59513. + eval libobjs=\"\$libobjs $whole_archive_flag_spec\"
  59514. + test "X$libobjs" = "X " && libobjs=
  59515. + fi
  59516. + # Expand the library linking commands again to reset the
  59517. + # value of $libobjs for piecewise linking.
  59518. +
  59519. + # Do each of the archive commands.
  59520. + if test "$module" = yes && test -n "$module_cmds" ; then
  59521. + if test -n "$export_symbols" && test -n "$module_expsym_cmds"; then
  59522. + cmds=$module_expsym_cmds
  59523. + else
  59524. + cmds=$module_cmds
  59525. + fi
  59526. else
  59527. - newdlfiles=
  59528. - for lib in $dlfiles; do
  59529. - case $lib in
  59530. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59531. - *) abs=`pwd`"/$lib" ;;
  59532. - esac
  59533. - newdlfiles="$newdlfiles $abs"
  59534. - done
  59535. - dlfiles="$newdlfiles"
  59536. - newdlprefiles=
  59537. - for lib in $dlprefiles; do
  59538. - case $lib in
  59539. - [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  59540. - *) abs=`pwd`"/$lib" ;;
  59541. - esac
  59542. - newdlprefiles="$newdlprefiles $abs"
  59543. - done
  59544. - dlprefiles="$newdlprefiles"
  59545. + if test -n "$export_symbols" && test -n "$archive_expsym_cmds"; then
  59546. + cmds=$archive_expsym_cmds
  59547. + else
  59548. + cmds=$archive_cmds
  59549. + fi
  59550. fi
  59551. - $rm $output
  59552. - # place dlname in correct position for cygwin
  59553. - tdlname=$dlname
  59554. - case $host,$output,$installed,$module,$dlname in
  59555. - *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  59556. - esac
  59557. - $echo > $output "\
  59558. -# $outputname - a libtool library file
  59559. -# Generated by $PROGRAM - GNU $PACKAGE $VERSION$TIMESTAMP
  59560. -#
  59561. -# Please DO NOT delete this file!
  59562. -# It is necessary for linking the library.
  59563. + fi
  59564. -# The name that we can dlopen(3).
  59565. -dlname='$tdlname'
  59566. + if test -n "$delfiles"; then
  59567. + # Append the command to remove temporary files to $cmds.
  59568. + eval cmds=\"\$cmds~\$RM $delfiles\"
  59569. + fi
  59570. -# Names of this library.
  59571. -library_names='$library_names'
  59572. + # Add any objects from preloaded convenience libraries
  59573. + if test -n "$dlprefiles"; then
  59574. + gentop="$output_objdir/${outputname}x"
  59575. + generated="$generated $gentop"
  59576. -# The name of the static archive.
  59577. -old_library='$old_library'
  59578. + func_extract_archives $gentop $dlprefiles
  59579. + libobjs="$libobjs $func_extract_archives_result"
  59580. + test "X$libobjs" = "X " && libobjs=
  59581. + fi
  59582. -# Libraries that this one depends upon.
  59583. -dependency_libs='$dependency_libs'
  59584. + save_ifs="$IFS"; IFS='~'
  59585. + for cmd in $cmds; do
  59586. + IFS="$save_ifs"
  59587. + eval cmd=\"$cmd\"
  59588. + $opt_silent || {
  59589. + func_quote_for_expand "$cmd"
  59590. + eval "func_echo $func_quote_for_expand_result"
  59591. + }
  59592. + $opt_dry_run || eval "$cmd" || {
  59593. + lt_exit=$?
  59594. +
  59595. + # Restore the uninstalled library and exit
  59596. + if test "$mode" = relink; then
  59597. + ( cd "$output_objdir" && \
  59598. + $RM "${realname}T" && \
  59599. + $MV "${realname}U" "$realname" )
  59600. + fi
  59601. -# Version information for $libname.
  59602. -current=$current
  59603. -age=$age
  59604. -revision=$revision
  59605. + exit $lt_exit
  59606. + }
  59607. + done
  59608. + IFS="$save_ifs"
  59609. -# Is this an already installed library?
  59610. -installed=$installed
  59611. + # Restore the uninstalled library and exit
  59612. + if test "$mode" = relink; then
  59613. + $opt_dry_run || eval '(cd $output_objdir && $RM ${realname}T && $MV $realname ${realname}T && $MV ${realname}U $realname)' || exit $?
  59614. -# Should we warn about portability when linking against -modules?
  59615. -shouldnotlink=$module
  59616. + if test -n "$convenience"; then
  59617. + if test -z "$whole_archive_flag_spec"; then
  59618. + func_show_eval '${RM}r "$gentop"'
  59619. + fi
  59620. + fi
  59621. -# Files to dlopen/dlpreopen
  59622. -dlopen='$dlfiles'
  59623. -dlpreopen='$dlprefiles'
  59624. + exit $EXIT_SUCCESS
  59625. + fi
  59626. -# Directory that this library needs to be installed in:
  59627. -libdir='$install_libdir'"
  59628. - if test "$installed" = no && test "$need_relink" = yes; then
  59629. - $echo >> $output "\
  59630. -relink_command=\"$relink_command\""
  59631. + # Create links to the real library.
  59632. + for linkname in $linknames; do
  59633. + if test "$realname" != "$linkname"; then
  59634. + func_show_eval '(cd "$output_objdir" && $RM "$linkname" && $LN_S "$realname" "$linkname")' 'exit $?'
  59635. fi
  59636. done
  59637. - fi
  59638. - # Do a symbolic link so that the libtool archive can be found in
  59639. - # LD_LIBRARY_PATH before the program is installed.
  59640. - $show "(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)"
  59641. - $run eval '(cd $output_objdir && $rm $outputname && $LN_S ../$outputname $outputname)' || exit $?
  59642. + # If -module or -export-dynamic was specified, set the dlname.
  59643. + if test "$module" = yes || test "$export_dynamic" = yes; then
  59644. + # On all known operating systems, these are identical.
  59645. + dlname="$soname"
  59646. + fi
  59647. + fi
  59648. ;;
  59649. - esac
  59650. - exit $EXIT_SUCCESS
  59651. - ;;
  59652. - # libtool install mode
  59653. - install)
  59654. - modename="$modename: install"
  59655. + obj)
  59656. + if test -n "$dlfiles$dlprefiles" || test "$dlself" != no; then
  59657. + func_warning "\`-dlopen' is ignored for objects"
  59658. + fi
  59659. - # There may be an optional sh(1) argument at the beginning of
  59660. - # install_prog (especially on Windows NT).
  59661. - if test "$nonopt" = "$SHELL" || test "$nonopt" = /bin/sh ||
  59662. - # Allow the use of GNU shtool's install command.
  59663. - $echo "X$nonopt" | $Xsed | grep shtool > /dev/null; then
  59664. - # Aesthetically quote it.
  59665. - arg=`$echo "X$nonopt" | $Xsed -e "$sed_quote_subst"`
  59666. - case $arg in
  59667. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  59668. - arg="\"$arg\""
  59669. - ;;
  59670. + case " $deplibs" in
  59671. + *\ -l* | *\ -L*)
  59672. + func_warning "\`-l' and \`-L' are ignored for objects" ;;
  59673. esac
  59674. - install_prog="$arg "
  59675. - arg="$1"
  59676. - shift
  59677. - else
  59678. - install_prog=
  59679. - arg="$nonopt"
  59680. - fi
  59681. - # The real first argument should be the name of the installation program.
  59682. - # Aesthetically quote it.
  59683. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  59684. - case $arg in
  59685. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  59686. - arg="\"$arg\""
  59687. - ;;
  59688. - esac
  59689. - install_prog="$install_prog$arg"
  59690. + test -n "$rpath" && \
  59691. + func_warning "\`-rpath' is ignored for objects"
  59692. - # We need to accept at least all the BSD install flags.
  59693. - dest=
  59694. - files=
  59695. - opts=
  59696. - prev=
  59697. - install_type=
  59698. - isdir=no
  59699. - stripme=
  59700. - for arg
  59701. - do
  59702. - if test -n "$dest"; then
  59703. - files="$files $dest"
  59704. - dest="$arg"
  59705. - continue
  59706. - fi
  59707. + test -n "$xrpath" && \
  59708. + func_warning "\`-R' is ignored for objects"
  59709. - case $arg in
  59710. - -d) isdir=yes ;;
  59711. - -f) prev="-f" ;;
  59712. - -g) prev="-g" ;;
  59713. - -m) prev="-m" ;;
  59714. - -o) prev="-o" ;;
  59715. - -s)
  59716. - stripme=" -s"
  59717. - continue
  59718. - ;;
  59719. - -*) ;;
  59720. + test -n "$vinfo" && \
  59721. + func_warning "\`-version-info' is ignored for objects"
  59722. + test -n "$release" && \
  59723. + func_warning "\`-release' is ignored for objects"
  59724. +
  59725. + case $output in
  59726. + *.lo)
  59727. + test -n "$objs$old_deplibs" && \
  59728. + func_fatal_error "cannot build library object \`$output' from non-libtool objects"
  59729. +
  59730. + libobj=$output
  59731. + func_lo2o "$libobj"
  59732. + obj=$func_lo2o_result
  59733. + ;;
  59734. *)
  59735. - # If the previous option needed an argument, then skip it.
  59736. - if test -n "$prev"; then
  59737. - prev=
  59738. - else
  59739. - dest="$arg"
  59740. - continue
  59741. - fi
  59742. + libobj=
  59743. + obj="$output"
  59744. ;;
  59745. esac
  59746. - # Aesthetically quote the argument.
  59747. - arg=`$echo "X$arg" | $Xsed -e "$sed_quote_subst"`
  59748. - case $arg in
  59749. - *[\[\~\#\^\&\*\(\)\{\}\|\;\<\>\?\'\ \ ]*|*]*)
  59750. - arg="\"$arg\""
  59751. - ;;
  59752. - esac
  59753. - install_prog="$install_prog $arg"
  59754. - done
  59755. + # Delete the old objects.
  59756. + $opt_dry_run || $RM $obj $libobj
  59757. - if test -z "$install_prog"; then
  59758. - $echo "$modename: you must specify an install program" 1>&2
  59759. - $echo "$help" 1>&2
  59760. - exit $EXIT_FAILURE
  59761. - fi
  59762. + # Objects from convenience libraries. This assumes
  59763. + # single-version convenience libraries. Whenever we create
  59764. + # different ones for PIC/non-PIC, this we'll have to duplicate
  59765. + # the extraction.
  59766. + reload_conv_objs=
  59767. + gentop=
  59768. + # reload_cmds runs $LD directly, so let us get rid of
  59769. + # -Wl from whole_archive_flag_spec and hope we can get by with
  59770. + # turning comma into space..
  59771. + wl=
  59772. - if test -n "$prev"; then
  59773. - $echo "$modename: the \`$prev' option requires an argument" 1>&2
  59774. - $echo "$help" 1>&2
  59775. - exit $EXIT_FAILURE
  59776. - fi
  59777. + if test -n "$convenience"; then
  59778. + if test -n "$whole_archive_flag_spec"; then
  59779. + eval tmp_whole_archive_flags=\"$whole_archive_flag_spec\"
  59780. + reload_conv_objs=$reload_objs\ `$ECHO "X$tmp_whole_archive_flags" | $Xsed -e 's|,| |g'`
  59781. + else
  59782. + gentop="$output_objdir/${obj}x"
  59783. + generated="$generated $gentop"
  59784. - if test -z "$files"; then
  59785. - if test -z "$dest"; then
  59786. - $echo "$modename: no file or destination specified" 1>&2
  59787. - else
  59788. - $echo "$modename: you must specify a destination" 1>&2
  59789. + func_extract_archives $gentop $convenience
  59790. + reload_conv_objs="$reload_objs $func_extract_archives_result"
  59791. + fi
  59792. fi
  59793. - $echo "$help" 1>&2
  59794. - exit $EXIT_FAILURE
  59795. - fi
  59796. - # Strip any trailing slash from the destination.
  59797. - dest=`$echo "X$dest" | $Xsed -e 's%/$%%'`
  59798. + # Create the old-style object.
  59799. + 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
  59800. - # Check to see that the destination is a directory.
  59801. - test -d "$dest" && isdir=yes
  59802. - if test "$isdir" = yes; then
  59803. - destdir="$dest"
  59804. - destname=
  59805. - else
  59806. - destdir=`$echo "X$dest" | $Xsed -e 's%/[^/]*$%%'`
  59807. - test "X$destdir" = "X$dest" && destdir=.
  59808. - destname=`$echo "X$dest" | $Xsed -e 's%^.*/%%'`
  59809. + output="$obj"
  59810. + func_execute_cmds "$reload_cmds" 'exit $?'
  59811. - # Not a directory, so check to see that there is only one file specified.
  59812. - set dummy $files
  59813. - if test "$#" -gt 2; then
  59814. - $echo "$modename: \`$dest' is not a directory" 1>&2
  59815. - $echo "$help" 1>&2
  59816. - exit $EXIT_FAILURE
  59817. + # Exit if we aren't doing a library object file.
  59818. + if test -z "$libobj"; then
  59819. + if test -n "$gentop"; then
  59820. + func_show_eval '${RM}r "$gentop"'
  59821. + fi
  59822. +
  59823. + exit $EXIT_SUCCESS
  59824. fi
  59825. - fi
  59826. - case $destdir in
  59827. - [\\/]* | [A-Za-z]:[\\/]*) ;;
  59828. - *)
  59829. - for file in $files; do
  59830. - case $file in
  59831. - *.lo) ;;
  59832. - *)
  59833. - $echo "$modename: \`$destdir' must be an absolute directory name" 1>&2
  59834. - $echo "$help" 1>&2
  59835. - exit $EXIT_FAILURE
  59836. - ;;
  59837. - esac
  59838. - done
  59839. +
  59840. + if test "$build_libtool_libs" != yes; then
  59841. + if test -n "$gentop"; then
  59842. + func_show_eval '${RM}r "$gentop"'
  59843. + fi
  59844. +
  59845. + # Create an invalid libtool object if no PIC, so that we don't
  59846. + # accidentally link it into a program.
  59847. + # $show "echo timestamp > $libobj"
  59848. + # $opt_dry_run || eval "echo timestamp > $libobj" || exit $?
  59849. + exit $EXIT_SUCCESS
  59850. + fi
  59851. +
  59852. + if test -n "$pic_flag" || test "$pic_mode" != default; then
  59853. + # Only do commands if we really have different PIC objects.
  59854. + reload_objs="$libobjs $reload_conv_objs"
  59855. + output="$libobj"
  59856. + func_execute_cmds "$reload_cmds" 'exit $?'
  59857. + fi
  59858. +
  59859. + if test -n "$gentop"; then
  59860. + func_show_eval '${RM}r "$gentop"'
  59861. + fi
  59862. +
  59863. + exit $EXIT_SUCCESS
  59864. ;;
  59865. - esac
  59866. - # This variable tells wrapper scripts just to set variables rather
  59867. - # than running their programs.
  59868. - libtool_install_magic="$magic"
  59869. + prog)
  59870. + case $host in
  59871. + *cygwin*) func_stripname '' '.exe' "$output"
  59872. + output=$func_stripname_result.exe;;
  59873. + esac
  59874. + test -n "$vinfo" && \
  59875. + func_warning "\`-version-info' is ignored for programs"
  59876. - staticlibs=
  59877. - future_libdirs=
  59878. - current_libdirs=
  59879. - for file in $files; do
  59880. + test -n "$release" && \
  59881. + func_warning "\`-release' is ignored for programs"
  59882. - # Do each installation.
  59883. - case $file in
  59884. - *.$libext)
  59885. - # Do the static libraries later.
  59886. - staticlibs="$staticlibs $file"
  59887. + test "$preload" = yes \
  59888. + && test "$dlopen_support" = unknown \
  59889. + && test "$dlopen_self" = unknown \
  59890. + && test "$dlopen_self_static" = unknown && \
  59891. + func_warning "\`LT_INIT([dlopen])' not used. Assuming no dlopen support."
  59892. +
  59893. + case $host in
  59894. + *-*-rhapsody* | *-*-darwin1.[012])
  59895. + # On Rhapsody replace the C library is the System framework
  59896. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59897. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's/ -lc / System.ltframework /'`
  59898. ;;
  59899. + esac
  59900. - *.la)
  59901. - # Check to see that this really is a libtool archive.
  59902. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  59903. - else
  59904. - $echo "$modename: \`$file' is not a valid libtool archive" 1>&2
  59905. - $echo "$help" 1>&2
  59906. - exit $EXIT_FAILURE
  59907. + case $host in
  59908. + *-*-darwin*)
  59909. + # Don't allow lazy linking, it breaks C++ global constructors
  59910. + # But is supposedly fixed on 10.4 or later (yay!).
  59911. + if test "$tagname" = CXX ; then
  59912. + case ${MACOSX_DEPLOYMENT_TARGET-10.0} in
  59913. + 10.[0123])
  59914. + compile_command="$compile_command ${wl}-bind_at_load"
  59915. + finalize_command="$finalize_command ${wl}-bind_at_load"
  59916. + ;;
  59917. + esac
  59918. fi
  59919. + # Time to change all our "foo.ltframework" stuff back to "-framework foo"
  59920. + compile_deplibs=`$ECHO "X $compile_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59921. + finalize_deplibs=`$ECHO "X $finalize_deplibs" | $Xsed -e 's% \([^ $]*\).ltframework% -framework \1%g'`
  59922. + ;;
  59923. + esac
  59924. - library_names=
  59925. - old_library=
  59926. - relink_command=
  59927. - # If there is no directory component, then add one.
  59928. - case $file in
  59929. - */* | *\\*) . $file ;;
  59930. - *) . ./$file ;;
  59931. +
  59932. + # move library search paths that coincide with paths to not yet
  59933. + # installed libraries to the beginning of the library search list
  59934. + new_libs=
  59935. + for path in $notinst_path; do
  59936. + case " $new_libs " in
  59937. + *" -L$path/$objdir "*) ;;
  59938. + *)
  59939. + case " $compile_deplibs " in
  59940. + *" -L$path/$objdir "*)
  59941. + new_libs="$new_libs -L$path/$objdir" ;;
  59942. + esac
  59943. + ;;
  59944. + esac
  59945. + done
  59946. + for deplib in $compile_deplibs; do
  59947. + case $deplib in
  59948. + -L*)
  59949. + case " $new_libs " in
  59950. + *" $deplib "*) ;;
  59951. + *) new_libs="$new_libs $deplib" ;;
  59952. + esac
  59953. + ;;
  59954. + *) new_libs="$new_libs $deplib" ;;
  59955. esac
  59956. + done
  59957. + compile_deplibs="$new_libs"
  59958. - # Add the libdir to current_libdirs if it is the destination.
  59959. - if test "X$destdir" = "X$libdir"; then
  59960. - case "$current_libdirs " in
  59961. +
  59962. + compile_command="$compile_command $compile_deplibs"
  59963. + finalize_command="$finalize_command $finalize_deplibs"
  59964. +
  59965. + if test -n "$rpath$xrpath"; then
  59966. + # If the user specified any rpath flags, then add them.
  59967. + for libdir in $rpath $xrpath; do
  59968. + # This is the magic to use -rpath.
  59969. + case "$finalize_rpath " in
  59970. *" $libdir "*) ;;
  59971. - *) current_libdirs="$current_libdirs $libdir" ;;
  59972. + *) finalize_rpath="$finalize_rpath $libdir" ;;
  59973. esac
  59974. - else
  59975. - # Note the libdir as a future libdir.
  59976. - case "$future_libdirs " in
  59977. + done
  59978. + fi
  59979. +
  59980. + # Now hardcode the library paths
  59981. + rpath=
  59982. + hardcode_libdirs=
  59983. + for libdir in $compile_rpath $finalize_rpath; do
  59984. + if test -n "$hardcode_libdir_flag_spec"; then
  59985. + if test -n "$hardcode_libdir_separator"; then
  59986. + if test -z "$hardcode_libdirs"; then
  59987. + hardcode_libdirs="$libdir"
  59988. + else
  59989. + # Just accumulate the unique libdirs.
  59990. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  59991. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  59992. + ;;
  59993. + *)
  59994. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  59995. + ;;
  59996. + esac
  59997. + fi
  59998. + else
  59999. + eval flag=\"$hardcode_libdir_flag_spec\"
  60000. + rpath="$rpath $flag"
  60001. + fi
  60002. + elif test -n "$runpath_var"; then
  60003. + case "$perm_rpath " in
  60004. *" $libdir "*) ;;
  60005. - *) future_libdirs="$future_libdirs $libdir" ;;
  60006. + *) perm_rpath="$perm_rpath $libdir" ;;
  60007. esac
  60008. fi
  60009. + case $host in
  60010. + *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-os2* | *-cegcc*)
  60011. + testbindir=`${ECHO} "$libdir" | ${SED} -e 's*/lib$*/bin*'`
  60012. + case :$dllsearchpath: in
  60013. + *":$libdir:"*) ;;
  60014. + ::) dllsearchpath=$libdir;;
  60015. + *) dllsearchpath="$dllsearchpath:$libdir";;
  60016. + esac
  60017. + case :$dllsearchpath: in
  60018. + *":$testbindir:"*) ;;
  60019. + ::) dllsearchpath=$testbindir;;
  60020. + *) dllsearchpath="$dllsearchpath:$testbindir";;
  60021. + esac
  60022. + ;;
  60023. + esac
  60024. + done
  60025. + # Substitute the hardcoded libdirs into the rpath.
  60026. + if test -n "$hardcode_libdir_separator" &&
  60027. + test -n "$hardcode_libdirs"; then
  60028. + libdir="$hardcode_libdirs"
  60029. + eval rpath=\" $hardcode_libdir_flag_spec\"
  60030. + fi
  60031. + compile_rpath="$rpath"
  60032. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`/
  60033. - test "X$dir" = "X$file/" && dir=
  60034. - dir="$dir$objdir"
  60035. -
  60036. - if test -n "$relink_command"; then
  60037. - # Determine the prefix the user has applied to our future dir.
  60038. - inst_prefix_dir=`$echo "$destdir" | $SED "s%$libdir\$%%"`
  60039. -
  60040. - # Don't allow the user to place us outside of our expected
  60041. - # location b/c this prevents finding dependent libraries that
  60042. - # are installed to the same prefix.
  60043. - # At present, this check doesn't affect windows .dll's that
  60044. - # are installed into $libdir/../bin (currently, that works fine)
  60045. - # but it's something to keep an eye on.
  60046. - if test "$inst_prefix_dir" = "$destdir"; then
  60047. - $echo "$modename: error: cannot install \`$file' to a directory not ending in $libdir" 1>&2
  60048. - exit $EXIT_FAILURE
  60049. - fi
  60050. -
  60051. - if test -n "$inst_prefix_dir"; then
  60052. - # Stick the inst_prefix_dir data into the link command.
  60053. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%-inst-prefix-dir $inst_prefix_dir%"`
  60054. - else
  60055. - relink_command=`$echo "$relink_command" | $SED "s%@inst_prefix_dir@%%"`
  60056. - fi
  60057. -
  60058. - $echo "$modename: warning: relinking \`$file'" 1>&2
  60059. - $show "$relink_command"
  60060. - if $run eval "$relink_command"; then :
  60061. + rpath=
  60062. + hardcode_libdirs=
  60063. + for libdir in $finalize_rpath; do
  60064. + if test -n "$hardcode_libdir_flag_spec"; then
  60065. + if test -n "$hardcode_libdir_separator"; then
  60066. + if test -z "$hardcode_libdirs"; then
  60067. + hardcode_libdirs="$libdir"
  60068. + else
  60069. + # Just accumulate the unique libdirs.
  60070. + case $hardcode_libdir_separator$hardcode_libdirs$hardcode_libdir_separator in
  60071. + *"$hardcode_libdir_separator$libdir$hardcode_libdir_separator"*)
  60072. + ;;
  60073. + *)
  60074. + hardcode_libdirs="$hardcode_libdirs$hardcode_libdir_separator$libdir"
  60075. + ;;
  60076. + esac
  60077. + fi
  60078. else
  60079. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  60080. - exit $EXIT_FAILURE
  60081. + eval flag=\"$hardcode_libdir_flag_spec\"
  60082. + rpath="$rpath $flag"
  60083. fi
  60084. + elif test -n "$runpath_var"; then
  60085. + case "$finalize_perm_rpath " in
  60086. + *" $libdir "*) ;;
  60087. + *) finalize_perm_rpath="$finalize_perm_rpath $libdir" ;;
  60088. + esac
  60089. fi
  60090. + done
  60091. + # Substitute the hardcoded libdirs into the rpath.
  60092. + if test -n "$hardcode_libdir_separator" &&
  60093. + test -n "$hardcode_libdirs"; then
  60094. + libdir="$hardcode_libdirs"
  60095. + eval rpath=\" $hardcode_libdir_flag_spec\"
  60096. + fi
  60097. + finalize_rpath="$rpath"
  60098. - # See the names of the shared library.
  60099. - set dummy $library_names
  60100. - if test -n "$2"; then
  60101. - realname="$2"
  60102. - shift
  60103. - shift
  60104. + if test -n "$libobjs" && test "$build_old_libs" = yes; then
  60105. + # Transform all the library objects into standard objects.
  60106. + compile_command=`$ECHO "X$compile_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  60107. + finalize_command=`$ECHO "X$finalize_command" | $SP2NL | $Xsed -e "$lo2o" | $NL2SP`
  60108. + fi
  60109. - srcname="$realname"
  60110. - test -n "$relink_command" && srcname="$realname"T
  60111. + func_generate_dlsyms "$outputname" "@PROGRAM@" "no"
  60112. - # Install the shared library and build the symlinks.
  60113. - $show "$install_prog $dir/$srcname $destdir/$realname"
  60114. - $run eval "$install_prog $dir/$srcname $destdir/$realname" || exit $?
  60115. - if test -n "$stripme" && test -n "$striplib"; then
  60116. - $show "$striplib $destdir/$realname"
  60117. - $run eval "$striplib $destdir/$realname" || exit $?
  60118. - fi
  60119. + # template prelinking step
  60120. + if test -n "$prelink_cmds"; then
  60121. + func_execute_cmds "$prelink_cmds" 'exit $?'
  60122. + fi
  60123. - if test "$#" -gt 0; then
  60124. - # Delete the old symlinks, and create new ones.
  60125. - for linkname
  60126. - do
  60127. - if test "$linkname" != "$realname"; then
  60128. - $show "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  60129. - $run eval "(cd $destdir && $rm $linkname && $LN_S $realname $linkname)"
  60130. - fi
  60131. - done
  60132. - fi
  60133. + wrappers_required=yes
  60134. + case $host in
  60135. + *cygwin* | *mingw* )
  60136. + if test "$build_libtool_libs" != yes; then
  60137. + wrappers_required=no
  60138. + fi
  60139. + ;;
  60140. + *cegcc)
  60141. + # Disable wrappers for cegcc, we are cross compiling anyway.
  60142. + wrappers_required=no
  60143. + ;;
  60144. + *)
  60145. + if test "$need_relink" = no || test "$build_libtool_libs" != yes; then
  60146. + wrappers_required=no
  60147. + fi
  60148. + ;;
  60149. + esac
  60150. + if test "$wrappers_required" = no; then
  60151. + # Replace the output file specification.
  60152. + compile_command=`$ECHO "X$compile_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  60153. + link_command="$compile_command$compile_rpath"
  60154. - # Do each command in the postinstall commands.
  60155. - lib="$destdir/$realname"
  60156. - cmds=$postinstall_cmds
  60157. - save_ifs="$IFS"; IFS='~'
  60158. - for cmd in $cmds; do
  60159. - IFS="$save_ifs"
  60160. - eval cmd=\"$cmd\"
  60161. - $show "$cmd"
  60162. - $run eval "$cmd" || exit $?
  60163. - done
  60164. - IFS="$save_ifs"
  60165. - fi
  60166. + # We have no uninstalled library dependencies, so finalize right now.
  60167. + exit_status=0
  60168. + func_show_eval "$link_command" 'exit_status=$?'
  60169. - # Install the pseudo-library for information purposes.
  60170. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60171. - instname="$dir/$name"i
  60172. - $show "$install_prog $instname $destdir/$name"
  60173. - $run eval "$install_prog $instname $destdir/$name" || exit $?
  60174. + # Delete the generated files.
  60175. + if test -f "$output_objdir/${outputname}S.${objext}"; then
  60176. + func_show_eval '$RM "$output_objdir/${outputname}S.${objext}"'
  60177. + fi
  60178. - # Maybe install the static library, too.
  60179. - test -n "$old_library" && staticlibs="$staticlibs $dir/$old_library"
  60180. - ;;
  60181. + exit $exit_status
  60182. + fi
  60183. - *.lo)
  60184. - # Install (i.e. copy) a libtool object.
  60185. + if test -n "$compile_shlibpath$finalize_shlibpath"; then
  60186. + compile_command="$shlibpath_var=\"$compile_shlibpath$finalize_shlibpath\$$shlibpath_var\" $compile_command"
  60187. + fi
  60188. + if test -n "$finalize_shlibpath"; then
  60189. + finalize_command="$shlibpath_var=\"$finalize_shlibpath\$$shlibpath_var\" $finalize_command"
  60190. + fi
  60191. - # Figure out destination file name, if it wasn't already specified.
  60192. - if test -n "$destname"; then
  60193. - destfile="$destdir/$destname"
  60194. - else
  60195. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60196. - destfile="$destdir/$destfile"
  60197. + compile_var=
  60198. + finalize_var=
  60199. + if test -n "$runpath_var"; then
  60200. + if test -n "$perm_rpath"; then
  60201. + # We should set the runpath_var.
  60202. + rpath=
  60203. + for dir in $perm_rpath; do
  60204. + rpath="$rpath$dir:"
  60205. + done
  60206. + compile_var="$runpath_var=\"$rpath\$$runpath_var\" "
  60207. fi
  60208. -
  60209. - # Deduce the name of the destination old-style object file.
  60210. - case $destfile in
  60211. - *.lo)
  60212. - staticdest=`$echo "X$destfile" | $Xsed -e "$lo2o"`
  60213. - ;;
  60214. - *.$objext)
  60215. - staticdest="$destfile"
  60216. - destfile=
  60217. - ;;
  60218. - *)
  60219. - $echo "$modename: cannot copy a libtool object to \`$destfile'" 1>&2
  60220. - $echo "$help" 1>&2
  60221. - exit $EXIT_FAILURE
  60222. - ;;
  60223. - esac
  60224. -
  60225. - # Install the libtool object if requested.
  60226. - if test -n "$destfile"; then
  60227. - $show "$install_prog $file $destfile"
  60228. - $run eval "$install_prog $file $destfile" || exit $?
  60229. + if test -n "$finalize_perm_rpath"; then
  60230. + # We should set the runpath_var.
  60231. + rpath=
  60232. + for dir in $finalize_perm_rpath; do
  60233. + rpath="$rpath$dir:"
  60234. + done
  60235. + finalize_var="$runpath_var=\"$rpath\$$runpath_var\" "
  60236. fi
  60237. + fi
  60238. - # Install the old object if enabled.
  60239. - if test "$build_old_libs" = yes; then
  60240. - # Deduce the name of the old-style object file.
  60241. - staticobj=`$echo "X$file" | $Xsed -e "$lo2o"`
  60242. -
  60243. - $show "$install_prog $staticobj $staticdest"
  60244. - $run eval "$install_prog \$staticobj \$staticdest" || exit $?
  60245. - fi
  60246. + if test "$no_install" = yes; then
  60247. + # We don't need to create a wrapper script.
  60248. + link_command="$compile_var$compile_command$compile_rpath"
  60249. + # Replace the output file specification.
  60250. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output"'%g'`
  60251. + # Delete the old output file.
  60252. + $opt_dry_run || $RM $output
  60253. + # Link the executable and exit
  60254. + func_show_eval "$link_command" 'exit $?'
  60255. exit $EXIT_SUCCESS
  60256. - ;;
  60257. + fi
  60258. - *)
  60259. - # Figure out destination file name, if it wasn't already specified.
  60260. - if test -n "$destname"; then
  60261. - destfile="$destdir/$destname"
  60262. + if test "$hardcode_action" = relink; then
  60263. + # Fast installation is not supported
  60264. + link_command="$compile_var$compile_command$compile_rpath"
  60265. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  60266. +
  60267. + func_warning "this platform does not like uninstalled shared libraries"
  60268. + func_warning "\`$output' will be relinked during installation"
  60269. + else
  60270. + if test "$fast_install" != no; then
  60271. + link_command="$finalize_var$compile_command$finalize_rpath"
  60272. + if test "$fast_install" = yes; then
  60273. + relink_command=`$ECHO "X$compile_var$compile_command$compile_rpath" | $Xsed -e 's%@OUTPUT@%\$progdir/\$file%g'`
  60274. + else
  60275. + # fast_install is set to needless
  60276. + relink_command=
  60277. + fi
  60278. else
  60279. - destfile=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60280. - destfile="$destdir/$destfile"
  60281. + link_command="$compile_var$compile_command$compile_rpath"
  60282. + relink_command="$finalize_var$finalize_command$finalize_rpath"
  60283. fi
  60284. + fi
  60285. - # If the file is missing, and there is a .exe on the end, strip it
  60286. - # because it is most likely a libtool script we actually want to
  60287. - # install
  60288. - stripped_ext=""
  60289. - case $file in
  60290. - *.exe)
  60291. - if test ! -f "$file"; then
  60292. - file=`$echo $file|${SED} 's,.exe$,,'`
  60293. - stripped_ext=".exe"
  60294. - fi
  60295. - ;;
  60296. - esac
  60297. -
  60298. - # Do a test to see if this is really a libtool program.
  60299. - case $host in
  60300. - *cygwin*|*mingw*)
  60301. - wrapper=`$echo $file | ${SED} -e 's,.exe$,,'`
  60302. - ;;
  60303. - *)
  60304. - wrapper=$file
  60305. - ;;
  60306. - esac
  60307. - if (${SED} -e '4q' $wrapper | grep "^# Generated by .*$PACKAGE")>/dev/null 2>&1; then
  60308. - notinst_deplibs=
  60309. - relink_command=
  60310. -
  60311. - # To insure that "foo" is sourced, and not "foo.exe",
  60312. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  60313. - # which disallows the automatic-append-.exe behavior.
  60314. - case $build in
  60315. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  60316. - *) wrapperdot=${wrapper} ;;
  60317. - esac
  60318. - # If there is no directory component, then add one.
  60319. - case $file in
  60320. - */* | *\\*) . ${wrapperdot} ;;
  60321. - *) . ./${wrapperdot} ;;
  60322. - esac
  60323. -
  60324. - # Check the variables that should have been set.
  60325. - if test -z "$notinst_deplibs"; then
  60326. - $echo "$modename: invalid libtool wrapper script \`$wrapper'" 1>&2
  60327. - exit $EXIT_FAILURE
  60328. - fi
  60329. + # Replace the output file specification.
  60330. + link_command=`$ECHO "X$link_command" | $Xsed -e 's%@OUTPUT@%'"$output_objdir/$outputname"'%g'`
  60331. - finalize=yes
  60332. - for lib in $notinst_deplibs; do
  60333. - # Check to see that each library is installed.
  60334. - libdir=
  60335. - if test -f "$lib"; then
  60336. - # If there is no directory component, then add one.
  60337. - case $lib in
  60338. - */* | *\\*) . $lib ;;
  60339. - *) . ./$lib ;;
  60340. - esac
  60341. - fi
  60342. - libfile="$libdir/"`$echo "X$lib" | $Xsed -e 's%^.*/%%g'` ### testsuite: skip nested quoting test
  60343. - if test -n "$libdir" && test ! -f "$libfile"; then
  60344. - $echo "$modename: warning: \`$lib' has not been installed in \`$libdir'" 1>&2
  60345. - finalize=no
  60346. - fi
  60347. - done
  60348. + # Delete the old output files.
  60349. + $opt_dry_run || $RM $output $output_objdir/$outputname $output_objdir/lt-$outputname
  60350. - relink_command=
  60351. - # To insure that "foo" is sourced, and not "foo.exe",
  60352. - # finese the cygwin/MSYS system by explicitly sourcing "foo."
  60353. - # which disallows the automatic-append-.exe behavior.
  60354. - case $build in
  60355. - *cygwin* | *mingw*) wrapperdot=${wrapper}. ;;
  60356. - *) wrapperdot=${wrapper} ;;
  60357. - esac
  60358. - # If there is no directory component, then add one.
  60359. - case $file in
  60360. - */* | *\\*) . ${wrapperdot} ;;
  60361. - *) . ./${wrapperdot} ;;
  60362. - esac
  60363. + func_show_eval "$link_command" 'exit $?'
  60364. - outputname=
  60365. - if test "$fast_install" = no && test -n "$relink_command"; then
  60366. - if test "$finalize" = yes && test -z "$run"; then
  60367. - tmpdir="/tmp"
  60368. - test -n "$TMPDIR" && tmpdir="$TMPDIR"
  60369. - tmpdir="$tmpdir/libtool-$$"
  60370. - save_umask=`umask`
  60371. - umask 0077
  60372. - if $mkdir "$tmpdir"; then
  60373. - umask $save_umask
  60374. - else
  60375. - umask $save_umask
  60376. - $echo "$modename: error: cannot create temporary directory \`$tmpdir'" 1>&2
  60377. - continue
  60378. - fi
  60379. - file=`$echo "X$file$stripped_ext" | $Xsed -e 's%^.*/%%'`
  60380. - outputname="$tmpdir/$file"
  60381. - # Replace the output file specification.
  60382. - relink_command=`$echo "X$relink_command" | $Xsed -e 's%@OUTPUT@%'"$outputname"'%g'`
  60383. + # Now create the wrapper script.
  60384. + func_verbose "creating $output"
  60385. - $show "$relink_command"
  60386. - if $run eval "$relink_command"; then :
  60387. - else
  60388. - $echo "$modename: error: relink \`$file' with the above command before installing it" 1>&2
  60389. - ${rm}r "$tmpdir"
  60390. - continue
  60391. - fi
  60392. - file="$outputname"
  60393. - else
  60394. - $echo "$modename: warning: cannot relink \`$file'" 1>&2
  60395. - fi
  60396. + # Quote the relink command for shipping.
  60397. + if test -n "$relink_command"; then
  60398. + # Preserve any variables that may affect compiler behavior
  60399. + for var in $variables_saved_for_relink; do
  60400. + if eval test -z \"\${$var+set}\"; then
  60401. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  60402. + elif eval var_value=\$$var; test -z "$var_value"; then
  60403. + relink_command="$var=; export $var; $relink_command"
  60404. else
  60405. - # Install the binary that we compiled earlier.
  60406. - file=`$echo "X$file$stripped_ext" | $Xsed -e "s%\([^/]*\)$%$objdir/\1%"`
  60407. + func_quote_for_eval "$var_value"
  60408. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  60409. fi
  60410. - fi
  60411. + done
  60412. + relink_command="(cd `pwd`; $relink_command)"
  60413. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60414. + fi
  60415. - # remove .exe since cygwin /usr/bin/install will append another
  60416. - # one anyways
  60417. - case $install_prog,$host in
  60418. - */usr/bin/install*,*cygwin*)
  60419. - case $file:$destfile in
  60420. - *.exe:*.exe)
  60421. - # this is ok
  60422. - ;;
  60423. - *.exe:*)
  60424. - destfile=$destfile.exe
  60425. - ;;
  60426. - *:*.exe)
  60427. - destfile=`$echo $destfile | ${SED} -e 's,.exe$,,'`
  60428. - ;;
  60429. - esac
  60430. - ;;
  60431. + # Quote $ECHO for shipping.
  60432. + if test "X$ECHO" = "X$SHELL $progpath --fallback-echo"; then
  60433. + case $progpath in
  60434. + [\\/]* | [A-Za-z]:[\\/]*) qecho="$SHELL $progpath --fallback-echo";;
  60435. + *) qecho="$SHELL `pwd`/$progpath --fallback-echo";;
  60436. esac
  60437. - $show "$install_prog$stripme $file $destfile"
  60438. - $run eval "$install_prog\$stripme \$file \$destfile" || exit $?
  60439. - test -n "$outputname" && ${rm}r "$tmpdir"
  60440. - ;;
  60441. - esac
  60442. - done
  60443. + qecho=`$ECHO "X$qecho" | $Xsed -e "$sed_quote_subst"`
  60444. + else
  60445. + qecho=`$ECHO "X$ECHO" | $Xsed -e "$sed_quote_subst"`
  60446. + fi
  60447. - for file in $staticlibs; do
  60448. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  60449. + # Only actually do things if not in dry run mode.
  60450. + $opt_dry_run || {
  60451. + # win32 will think the script is a binary if it has
  60452. + # a .exe suffix, so we strip it off here.
  60453. + case $output in
  60454. + *.exe) func_stripname '' '.exe' "$output"
  60455. + output=$func_stripname_result ;;
  60456. + esac
  60457. + # test for cygwin because mv fails w/o .exe extensions
  60458. + case $host in
  60459. + *cygwin*)
  60460. + exeext=.exe
  60461. + func_stripname '' '.exe' "$outputname"
  60462. + outputname=$func_stripname_result ;;
  60463. + *) exeext= ;;
  60464. + esac
  60465. + case $host in
  60466. + *cygwin* | *mingw* )
  60467. + func_dirname_and_basename "$output" "" "."
  60468. + output_name=$func_basename_result
  60469. + output_path=$func_dirname_result
  60470. + cwrappersource="$output_path/$objdir/lt-$output_name.c"
  60471. + cwrapper="$output_path/$output_name.exe"
  60472. + $RM $cwrappersource $cwrapper
  60473. + trap "$RM $cwrappersource $cwrapper; exit $EXIT_FAILURE" 1 2 15
  60474. +
  60475. + func_emit_cwrapperexe_src > $cwrappersource
  60476. +
  60477. + # The wrapper executable is built using the $host compiler,
  60478. + # because it contains $host paths and files. If cross-
  60479. + # compiling, it, like the target executable, must be
  60480. + # executed on the $host or under an emulation environment.
  60481. + $opt_dry_run || {
  60482. + $LTCC $LTCFLAGS -o $cwrapper $cwrappersource
  60483. + $STRIP $cwrapper
  60484. + }
  60485. +
  60486. + # Now, create the wrapper script for func_source use:
  60487. + func_ltwrapper_scriptname $cwrapper
  60488. + $RM $func_ltwrapper_scriptname_result
  60489. + trap "$RM $func_ltwrapper_scriptname_result; exit $EXIT_FAILURE" 1 2 15
  60490. + $opt_dry_run || {
  60491. + # note: this script will not be executed, so do not chmod.
  60492. + if test "x$build" = "x$host" ; then
  60493. + $cwrapper --lt-dump-script > $func_ltwrapper_scriptname_result
  60494. + else
  60495. + func_emit_wrapper no > $func_ltwrapper_scriptname_result
  60496. + fi
  60497. + }
  60498. + ;;
  60499. + * )
  60500. + $RM $output
  60501. + trap "$RM $output; exit $EXIT_FAILURE" 1 2 15
  60502. - # Set up the ranlib parameters.
  60503. - oldlib="$destdir/$name"
  60504. + func_emit_wrapper no > $output
  60505. + chmod +x $output
  60506. + ;;
  60507. + esac
  60508. + }
  60509. + exit $EXIT_SUCCESS
  60510. + ;;
  60511. + esac
  60512. - $show "$install_prog $file $oldlib"
  60513. - $run eval "$install_prog \$file \$oldlib" || exit $?
  60514. + # See if we need to build an old-fashioned archive.
  60515. + for oldlib in $oldlibs; do
  60516. - if test -n "$stripme" && test -n "$old_striplib"; then
  60517. - $show "$old_striplib $oldlib"
  60518. - $run eval "$old_striplib $oldlib" || exit $?
  60519. + if test "$build_libtool_libs" = convenience; then
  60520. + oldobjs="$libobjs_save $symfileobj"
  60521. + addlibs="$convenience"
  60522. + build_libtool_libs=no
  60523. + else
  60524. + if test "$build_libtool_libs" = module; then
  60525. + oldobjs="$libobjs_save"
  60526. + build_libtool_libs=no
  60527. + else
  60528. + oldobjs="$old_deplibs $non_pic_objects"
  60529. + if test "$preload" = yes && test -f "$symfileobj"; then
  60530. + oldobjs="$oldobjs $symfileobj"
  60531. + fi
  60532. + fi
  60533. + addlibs="$old_convenience"
  60534. fi
  60535. - # Do each command in the postinstall commands.
  60536. - cmds=$old_postinstall_cmds
  60537. - save_ifs="$IFS"; IFS='~'
  60538. - for cmd in $cmds; do
  60539. - IFS="$save_ifs"
  60540. - eval cmd=\"$cmd\"
  60541. - $show "$cmd"
  60542. - $run eval "$cmd" || exit $?
  60543. - done
  60544. - IFS="$save_ifs"
  60545. - done
  60546. + if test -n "$addlibs"; then
  60547. + gentop="$output_objdir/${outputname}x"
  60548. + generated="$generated $gentop"
  60549. - if test -n "$future_libdirs"; then
  60550. - $echo "$modename: warning: remember to run \`$progname --finish$future_libdirs'" 1>&2
  60551. - fi
  60552. + func_extract_archives $gentop $addlibs
  60553. + oldobjs="$oldobjs $func_extract_archives_result"
  60554. + fi
  60555. - if test -n "$current_libdirs"; then
  60556. - # Maybe just do a dry run.
  60557. - test -n "$run" && current_libdirs=" -n$current_libdirs"
  60558. - exec_cmd='$SHELL $progpath $preserve_args --finish$current_libdirs'
  60559. - else
  60560. - exit $EXIT_SUCCESS
  60561. - fi
  60562. - ;;
  60563. + # Do each command in the archive commands.
  60564. + if test -n "$old_archive_from_new_cmds" && test "$build_libtool_libs" = yes; then
  60565. + cmds=$old_archive_from_new_cmds
  60566. + else
  60567. - # libtool finish mode
  60568. - finish)
  60569. - modename="$modename: finish"
  60570. - libdirs="$nonopt"
  60571. - admincmds=
  60572. + # Add any objects from preloaded convenience libraries
  60573. + if test -n "$dlprefiles"; then
  60574. + gentop="$output_objdir/${outputname}x"
  60575. + generated="$generated $gentop"
  60576. - if test -n "$finish_cmds$finish_eval" && test -n "$libdirs"; then
  60577. - for dir
  60578. - do
  60579. - libdirs="$libdirs $dir"
  60580. - done
  60581. + func_extract_archives $gentop $dlprefiles
  60582. + oldobjs="$oldobjs $func_extract_archives_result"
  60583. + fi
  60584. - for libdir in $libdirs; do
  60585. - if test -n "$finish_cmds"; then
  60586. - # Do each command in the finish commands.
  60587. - cmds=$finish_cmds
  60588. - save_ifs="$IFS"; IFS='~'
  60589. - for cmd in $cmds; do
  60590. - IFS="$save_ifs"
  60591. - eval cmd=\"$cmd\"
  60592. - $show "$cmd"
  60593. - $run eval "$cmd" || admincmds="$admincmds
  60594. - $cmd"
  60595. + # POSIX demands no paths to be encoded in archives. We have
  60596. + # to avoid creating archives with duplicate basenames if we
  60597. + # might have to extract them afterwards, e.g., when creating a
  60598. + # static archive out of a convenience library, or when linking
  60599. + # the entirety of a libtool archive into another (currently
  60600. + # not supported by libtool).
  60601. + if (for obj in $oldobjs
  60602. + do
  60603. + func_basename "$obj"
  60604. + $ECHO "$func_basename_result"
  60605. + done | sort | sort -uc >/dev/null 2>&1); then
  60606. + :
  60607. + else
  60608. + $ECHO "copying selected object files to avoid basename conflicts..."
  60609. + gentop="$output_objdir/${outputname}x"
  60610. + generated="$generated $gentop"
  60611. + func_mkdir_p "$gentop"
  60612. + save_oldobjs=$oldobjs
  60613. + oldobjs=
  60614. + counter=1
  60615. + for obj in $save_oldobjs
  60616. + do
  60617. + func_basename "$obj"
  60618. + objbase="$func_basename_result"
  60619. + case " $oldobjs " in
  60620. + " ") oldobjs=$obj ;;
  60621. + *[\ /]"$objbase "*)
  60622. + while :; do
  60623. + # Make sure we don't pick an alternate name that also
  60624. + # overlaps.
  60625. + newobj=lt$counter-$objbase
  60626. + func_arith $counter + 1
  60627. + counter=$func_arith_result
  60628. + case " $oldobjs " in
  60629. + *[\ /]"$newobj "*) ;;
  60630. + *) if test ! -f "$gentop/$newobj"; then break; fi ;;
  60631. + esac
  60632. + done
  60633. + func_show_eval "ln $obj $gentop/$newobj || cp $obj $gentop/$newobj"
  60634. + oldobjs="$oldobjs $gentop/$newobj"
  60635. + ;;
  60636. + *) oldobjs="$oldobjs $obj" ;;
  60637. + esac
  60638. done
  60639. - IFS="$save_ifs"
  60640. - fi
  60641. - if test -n "$finish_eval"; then
  60642. - # Do the single finish_eval.
  60643. - eval cmds=\"$finish_eval\"
  60644. - $run eval "$cmds" || admincmds="$admincmds
  60645. - $cmds"
  60646. fi
  60647. - done
  60648. - fi
  60649. -
  60650. - # Exit here if they wanted silent mode.
  60651. - test "$show" = : && exit $EXIT_SUCCESS
  60652. + eval cmds=\"$old_archive_cmds\"
  60653. - $echo "----------------------------------------------------------------------"
  60654. - $echo "Libraries have been installed in:"
  60655. - for libdir in $libdirs; do
  60656. - $echo " $libdir"
  60657. + func_len " $cmds"
  60658. + len=$func_len_result
  60659. + if test "$len" -lt "$max_cmd_len" || test "$max_cmd_len" -le -1; then
  60660. + cmds=$old_archive_cmds
  60661. + else
  60662. + # the command line is too long to link in one step, link in parts
  60663. + func_verbose "using piecewise archive linking..."
  60664. + save_RANLIB=$RANLIB
  60665. + RANLIB=:
  60666. + objlist=
  60667. + concat_cmds=
  60668. + save_oldobjs=$oldobjs
  60669. + oldobjs=
  60670. + # Is there a better way of finding the last object in the list?
  60671. + for obj in $save_oldobjs
  60672. + do
  60673. + last_oldobj=$obj
  60674. + done
  60675. + eval test_cmds=\"$old_archive_cmds\"
  60676. + func_len " $test_cmds"
  60677. + len0=$func_len_result
  60678. + len=$len0
  60679. + for obj in $save_oldobjs
  60680. + do
  60681. + func_len " $obj"
  60682. + func_arith $len + $func_len_result
  60683. + len=$func_arith_result
  60684. + func_append objlist " $obj"
  60685. + if test "$len" -lt "$max_cmd_len"; then
  60686. + :
  60687. + else
  60688. + # the above command should be used before it gets too long
  60689. + oldobjs=$objlist
  60690. + if test "$obj" = "$last_oldobj" ; then
  60691. + RANLIB=$save_RANLIB
  60692. + fi
  60693. + test -z "$concat_cmds" || concat_cmds=$concat_cmds~
  60694. + eval concat_cmds=\"\${concat_cmds}$old_archive_cmds\"
  60695. + objlist=
  60696. + len=$len0
  60697. + fi
  60698. + done
  60699. + RANLIB=$save_RANLIB
  60700. + oldobjs=$objlist
  60701. + if test "X$oldobjs" = "X" ; then
  60702. + eval cmds=\"\$concat_cmds\"
  60703. + else
  60704. + eval cmds=\"\$concat_cmds~\$old_archive_cmds\"
  60705. + fi
  60706. + fi
  60707. + fi
  60708. + func_execute_cmds "$cmds" 'exit $?'
  60709. done
  60710. - $echo
  60711. - $echo "If you ever happen to want to link against installed libraries"
  60712. - $echo "in a given directory, LIBDIR, you must either use libtool, and"
  60713. - $echo "specify the full pathname of the library, or use the \`-LLIBDIR'"
  60714. - $echo "flag during linking and do at least one of the following:"
  60715. - if test -n "$shlibpath_var"; then
  60716. - $echo " - add LIBDIR to the \`$shlibpath_var' environment variable"
  60717. - $echo " during execution"
  60718. - fi
  60719. - if test -n "$runpath_var"; then
  60720. - $echo " - add LIBDIR to the \`$runpath_var' environment variable"
  60721. - $echo " during linking"
  60722. - fi
  60723. - if test -n "$hardcode_libdir_flag_spec"; then
  60724. - libdir=LIBDIR
  60725. - eval flag=\"$hardcode_libdir_flag_spec\"
  60726. -
  60727. - $echo " - use the \`$flag' linker flag"
  60728. - fi
  60729. - if test -n "$admincmds"; then
  60730. - $echo " - have your system administrator run these commands:$admincmds"
  60731. - fi
  60732. - if test -f /etc/ld.so.conf; then
  60733. - $echo " - have your system administrator add LIBDIR to \`/etc/ld.so.conf'"
  60734. - fi
  60735. - $echo
  60736. - $echo "See any operating system documentation about shared libraries for"
  60737. - $echo "more information, such as the ld(1) and ld.so(8) manual pages."
  60738. - $echo "----------------------------------------------------------------------"
  60739. - exit $EXIT_SUCCESS
  60740. - ;;
  60741. - # libtool execute mode
  60742. - execute)
  60743. - modename="$modename: execute"
  60744. -
  60745. - # The first argument is the command name.
  60746. - cmd="$nonopt"
  60747. - if test -z "$cmd"; then
  60748. - $echo "$modename: you must specify a COMMAND" 1>&2
  60749. - $echo "$help"
  60750. - exit $EXIT_FAILURE
  60751. - fi
  60752. + test -n "$generated" && \
  60753. + func_show_eval "${RM}r$generated"
  60754. - # Handle -dlopen flags immediately.
  60755. - for file in $execute_dlfiles; do
  60756. - if test ! -f "$file"; then
  60757. - $echo "$modename: \`$file' is not a file" 1>&2
  60758. - $echo "$help" 1>&2
  60759. - exit $EXIT_FAILURE
  60760. - fi
  60761. + # Now create the libtool archive.
  60762. + case $output in
  60763. + *.la)
  60764. + old_library=
  60765. + test "$build_old_libs" = yes && old_library="$libname.$libext"
  60766. + func_verbose "creating $output"
  60767. - dir=
  60768. - case $file in
  60769. - *.la)
  60770. - # Check to see that this really is a libtool archive.
  60771. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then :
  60772. + # Preserve any variables that may affect compiler behavior
  60773. + for var in $variables_saved_for_relink; do
  60774. + if eval test -z \"\${$var+set}\"; then
  60775. + relink_command="{ test -z \"\${$var+set}\" || $lt_unset $var || { $var=; export $var; }; }; $relink_command"
  60776. + elif eval var_value=\$$var; test -z "$var_value"; then
  60777. + relink_command="$var=; export $var; $relink_command"
  60778. else
  60779. - $echo "$modename: \`$lib' is not a valid libtool archive" 1>&2
  60780. - $echo "$help" 1>&2
  60781. - exit $EXIT_FAILURE
  60782. + func_quote_for_eval "$var_value"
  60783. + relink_command="$var=$func_quote_for_eval_result; export $var; $relink_command"
  60784. fi
  60785. + done
  60786. + # Quote the link command for shipping.
  60787. + relink_command="(cd `pwd`; $SHELL $progpath $preserve_args --mode=relink $libtool_args @inst_prefix_dir@)"
  60788. + relink_command=`$ECHO "X$relink_command" | $Xsed -e "$sed_quote_subst"`
  60789. + if test "$hardcode_automatic" = yes ; then
  60790. + relink_command=
  60791. + fi
  60792. - # Read the libtool library.
  60793. - dlname=
  60794. - library_names=
  60795. + # Only create the output if not a dry run.
  60796. + $opt_dry_run || {
  60797. + for installed in no yes; do
  60798. + if test "$installed" = yes; then
  60799. + if test -z "$install_libdir"; then
  60800. + break
  60801. + fi
  60802. + output="$output_objdir/$outputname"i
  60803. + # Replace all uninstalled libtool libraries with the installed ones
  60804. + newdependency_libs=
  60805. + for deplib in $dependency_libs; do
  60806. + case $deplib in
  60807. + *.la)
  60808. + func_basename "$deplib"
  60809. + name="$func_basename_result"
  60810. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $deplib`
  60811. + test -z "$libdir" && \
  60812. + func_fatal_error "\`$deplib' is not a valid libtool archive"
  60813. + newdependency_libs="$newdependency_libs $libdir/$name"
  60814. + ;;
  60815. + *) newdependency_libs="$newdependency_libs $deplib" ;;
  60816. + esac
  60817. + done
  60818. + dependency_libs="$newdependency_libs"
  60819. + newdlfiles=
  60820. +
  60821. + for lib in $dlfiles; do
  60822. + case $lib in
  60823. + *.la)
  60824. + func_basename "$lib"
  60825. + name="$func_basename_result"
  60826. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60827. + test -z "$libdir" && \
  60828. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60829. + newdlfiles="$newdlfiles $libdir/$name"
  60830. + ;;
  60831. + *) newdlfiles="$newdlfiles $lib" ;;
  60832. + esac
  60833. + done
  60834. + dlfiles="$newdlfiles"
  60835. + newdlprefiles=
  60836. + for lib in $dlprefiles; do
  60837. + case $lib in
  60838. + *.la)
  60839. + # Only pass preopened files to the pseudo-archive (for
  60840. + # eventual linking with the app. that links it) if we
  60841. + # didn't already link the preopened objects directly into
  60842. + # the library:
  60843. + func_basename "$lib"
  60844. + name="$func_basename_result"
  60845. + eval libdir=`${SED} -n -e 's/^libdir=\(.*\)$/\1/p' $lib`
  60846. + test -z "$libdir" && \
  60847. + func_fatal_error "\`$lib' is not a valid libtool archive"
  60848. + newdlprefiles="$newdlprefiles $libdir/$name"
  60849. + ;;
  60850. + esac
  60851. + done
  60852. + dlprefiles="$newdlprefiles"
  60853. + else
  60854. + newdlfiles=
  60855. + for lib in $dlfiles; do
  60856. + case $lib in
  60857. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60858. + *) abs=`pwd`"/$lib" ;;
  60859. + esac
  60860. + newdlfiles="$newdlfiles $abs"
  60861. + done
  60862. + dlfiles="$newdlfiles"
  60863. + newdlprefiles=
  60864. + for lib in $dlprefiles; do
  60865. + case $lib in
  60866. + [\\/]* | [A-Za-z]:[\\/]*) abs="$lib" ;;
  60867. + *) abs=`pwd`"/$lib" ;;
  60868. + esac
  60869. + newdlprefiles="$newdlprefiles $abs"
  60870. + done
  60871. + dlprefiles="$newdlprefiles"
  60872. + fi
  60873. + $RM $output
  60874. + # place dlname in correct position for cygwin
  60875. + tdlname=$dlname
  60876. + case $host,$output,$installed,$module,$dlname in
  60877. + *cygwin*,*lai,yes,no,*.dll | *mingw*,*lai,yes,no,*.dll | *cegcc*,*lai,yes,no,*.dll) tdlname=../bin/$dlname ;;
  60878. + esac
  60879. + $ECHO > $output "\
  60880. +# $outputname - a libtool library file
  60881. +# Generated by $PROGRAM (GNU $PACKAGE$TIMESTAMP) $VERSION
  60882. +#
  60883. +# Please DO NOT delete this file!
  60884. +# It is necessary for linking the library.
  60885. - # If there is no directory component, then add one.
  60886. - case $file in
  60887. - */* | *\\*) . $file ;;
  60888. - *) . ./$file ;;
  60889. - esac
  60890. +# The name that we can dlopen(3).
  60891. +dlname='$tdlname'
  60892. - # Skip this library if it cannot be dlopened.
  60893. - if test -z "$dlname"; then
  60894. - # Warn if it was a shared library.
  60895. - test -n "$library_names" && $echo "$modename: warning: \`$file' was not linked with \`-export-dynamic'"
  60896. - continue
  60897. - fi
  60898. +# Names of this library.
  60899. +library_names='$library_names'
  60900. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60901. - test "X$dir" = "X$file" && dir=.
  60902. +# The name of the static archive.
  60903. +old_library='$old_library'
  60904. - if test -f "$dir/$objdir/$dlname"; then
  60905. - dir="$dir/$objdir"
  60906. - else
  60907. - $echo "$modename: cannot find \`$dlname' in \`$dir' or \`$dir/$objdir'" 1>&2
  60908. - exit $EXIT_FAILURE
  60909. - fi
  60910. - ;;
  60911. +# Linker flags that can not go in dependency_libs.
  60912. +inherited_linker_flags='$new_inherited_linker_flags'
  60913. - *.lo)
  60914. - # Just add the directory containing the .lo file.
  60915. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  60916. - test "X$dir" = "X$file" && dir=.
  60917. - ;;
  60918. +# Libraries that this one depends upon.
  60919. +dependency_libs='$dependency_libs'
  60920. - *)
  60921. - $echo "$modename: warning \`-dlopen' is ignored for non-libtool libraries and objects" 1>&2
  60922. - continue
  60923. - ;;
  60924. - esac
  60925. +# Names of additional weak libraries provided by this library
  60926. +weak_library_names='$weak_libs'
  60927. - # Get the absolute pathname.
  60928. - absdir=`cd "$dir" && pwd`
  60929. - test -n "$absdir" && dir="$absdir"
  60930. +# Version information for $libname.
  60931. +current=$current
  60932. +age=$age
  60933. +revision=$revision
  60934. - # Now add the directory to shlibpath_var.
  60935. - if eval "test -z \"\$$shlibpath_var\""; then
  60936. - eval "$shlibpath_var=\"\$dir\""
  60937. - else
  60938. - eval "$shlibpath_var=\"\$dir:\$$shlibpath_var\""
  60939. - fi
  60940. - done
  60941. +# Is this an already installed library?
  60942. +installed=$installed
  60943. - # This variable tells wrapper scripts just to set shlibpath_var
  60944. - # rather than running their programs.
  60945. - libtool_execute_magic="$magic"
  60946. +# Should we warn about portability when linking against -modules?
  60947. +shouldnotlink=$module
  60948. - # Check if any of the arguments is a wrapper script.
  60949. - args=
  60950. - for file
  60951. - do
  60952. - case $file in
  60953. - -*) ;;
  60954. - *)
  60955. - # Do a test to see if this is really a libtool program.
  60956. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  60957. - # If there is no directory component, then add one.
  60958. - case $file in
  60959. - */* | *\\*) . $file ;;
  60960. - *) . ./$file ;;
  60961. - esac
  60962. +# Files to dlopen/dlpreopen
  60963. +dlopen='$dlfiles'
  60964. +dlpreopen='$dlprefiles'
  60965. - # Transform arg to wrapped name.
  60966. - file="$progdir/$program"
  60967. - fi
  60968. - ;;
  60969. - esac
  60970. - # Quote arguments (to preserve shell metacharacters).
  60971. - file=`$echo "X$file" | $Xsed -e "$sed_quote_subst"`
  60972. - args="$args \"$file\""
  60973. - done
  60974. +# Directory that this library needs to be installed in:
  60975. +libdir='$install_libdir'"
  60976. + if test "$installed" = no && test "$need_relink" = yes; then
  60977. + $ECHO >> $output "\
  60978. +relink_command=\"$relink_command\""
  60979. + fi
  60980. + done
  60981. + }
  60982. - if test -z "$run"; then
  60983. - if test -n "$shlibpath_var"; then
  60984. - # Export the shlibpath_var.
  60985. - eval "export $shlibpath_var"
  60986. - fi
  60987. + # Do a symbolic link so that the libtool archive can be found in
  60988. + # LD_LIBRARY_PATH before the program is installed.
  60989. + func_show_eval '( cd "$output_objdir" && $RM "$outputname" && $LN_S "../$outputname" "$outputname" )' 'exit $?'
  60990. + ;;
  60991. + esac
  60992. + exit $EXIT_SUCCESS
  60993. +}
  60994. - # Restore saved environment variables
  60995. - if test "${save_LC_ALL+set}" = set; then
  60996. - LC_ALL="$save_LC_ALL"; export LC_ALL
  60997. - fi
  60998. - if test "${save_LANG+set}" = set; then
  60999. - LANG="$save_LANG"; export LANG
  61000. - fi
  61001. +{ test "$mode" = link || test "$mode" = relink; } &&
  61002. + func_mode_link ${1+"$@"}
  61003. - # Now prepare to actually exec the command.
  61004. - exec_cmd="\$cmd$args"
  61005. - else
  61006. - # Display what would be done.
  61007. - if test -n "$shlibpath_var"; then
  61008. - eval "\$echo \"\$shlibpath_var=\$$shlibpath_var\""
  61009. - $echo "export $shlibpath_var"
  61010. - fi
  61011. - $echo "$cmd$args"
  61012. - exit $EXIT_SUCCESS
  61013. - fi
  61014. - ;;
  61015. - # libtool clean and uninstall mode
  61016. - clean | uninstall)
  61017. - modename="$modename: $mode"
  61018. - rm="$nonopt"
  61019. +# func_mode_uninstall arg...
  61020. +func_mode_uninstall ()
  61021. +{
  61022. + $opt_debug
  61023. + RM="$nonopt"
  61024. files=
  61025. rmforce=
  61026. exit_status=0
  61027. @@ -6018,30 +8209,28 @@
  61028. for arg
  61029. do
  61030. case $arg in
  61031. - -f) rm="$rm $arg"; rmforce=yes ;;
  61032. - -*) rm="$rm $arg" ;;
  61033. + -f) RM="$RM $arg"; rmforce=yes ;;
  61034. + -*) RM="$RM $arg" ;;
  61035. *) files="$files $arg" ;;
  61036. esac
  61037. done
  61038. - if test -z "$rm"; then
  61039. - $echo "$modename: you must specify an RM program" 1>&2
  61040. - $echo "$help" 1>&2
  61041. - exit $EXIT_FAILURE
  61042. - fi
  61043. + test -z "$RM" && \
  61044. + func_fatal_help "you must specify an RM program"
  61045. rmdirs=
  61046. origobjdir="$objdir"
  61047. for file in $files; do
  61048. - dir=`$echo "X$file" | $Xsed -e 's%/[^/]*$%%'`
  61049. - if test "X$dir" = "X$file"; then
  61050. - dir=.
  61051. + func_dirname "$file" "" "."
  61052. + dir="$func_dirname_result"
  61053. + if test "X$dir" = X.; then
  61054. objdir="$origobjdir"
  61055. else
  61056. objdir="$dir/$origobjdir"
  61057. fi
  61058. - name=`$echo "X$file" | $Xsed -e 's%^.*/%%'`
  61059. + func_basename "$file"
  61060. + name="$func_basename_result"
  61061. test "$mode" = uninstall && objdir="$dir"
  61062. # Remember objdir for removal later, being careful to avoid duplicates
  61063. @@ -6053,9 +8242,9 @@
  61064. fi
  61065. # Don't error if the file doesn't exist and rm -f was used.
  61066. - if (test -L "$file") >/dev/null 2>&1 \
  61067. - || (test -h "$file") >/dev/null 2>&1 \
  61068. - || test -f "$file"; then
  61069. + if { test -L "$file"; } >/dev/null 2>&1 ||
  61070. + { test -h "$file"; } >/dev/null 2>&1 ||
  61071. + test -f "$file"; then
  61072. :
  61073. elif test -d "$file"; then
  61074. exit_status=1
  61075. @@ -6069,69 +8258,56 @@
  61076. case $name in
  61077. *.la)
  61078. # Possibly a libtool archive, so verify it.
  61079. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  61080. - . $dir/$name
  61081. + if func_lalib_p "$file"; then
  61082. + func_source $dir/$name
  61083. # Delete the libtool libraries and symlinks.
  61084. for n in $library_names; do
  61085. rmfiles="$rmfiles $objdir/$n"
  61086. done
  61087. test -n "$old_library" && rmfiles="$rmfiles $objdir/$old_library"
  61088. - test "$mode" = clean && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  61089. - if test "$mode" = uninstall; then
  61090. + case "$mode" in
  61091. + clean)
  61092. + case " $library_names " in
  61093. + # " " in the beginning catches empty $dlname
  61094. + *" $dlname "*) ;;
  61095. + *) rmfiles="$rmfiles $objdir/$dlname" ;;
  61096. + esac
  61097. + test -n "$libdir" && rmfiles="$rmfiles $objdir/$name $objdir/${name}i"
  61098. + ;;
  61099. + uninstall)
  61100. if test -n "$library_names"; then
  61101. # Do each command in the postuninstall commands.
  61102. - cmds=$postuninstall_cmds
  61103. - save_ifs="$IFS"; IFS='~'
  61104. - for cmd in $cmds; do
  61105. - IFS="$save_ifs"
  61106. - eval cmd=\"$cmd\"
  61107. - $show "$cmd"
  61108. - $run eval "$cmd"
  61109. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  61110. - exit_status=1
  61111. - fi
  61112. - done
  61113. - IFS="$save_ifs"
  61114. + func_execute_cmds "$postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  61115. fi
  61116. if test -n "$old_library"; then
  61117. # Do each command in the old_postuninstall commands.
  61118. - cmds=$old_postuninstall_cmds
  61119. - save_ifs="$IFS"; IFS='~'
  61120. - for cmd in $cmds; do
  61121. - IFS="$save_ifs"
  61122. - eval cmd=\"$cmd\"
  61123. - $show "$cmd"
  61124. - $run eval "$cmd"
  61125. - if test "$?" -ne 0 && test "$rmforce" != yes; then
  61126. - exit_status=1
  61127. - fi
  61128. - done
  61129. - IFS="$save_ifs"
  61130. + func_execute_cmds "$old_postuninstall_cmds" 'test "$rmforce" = yes || exit_status=1'
  61131. fi
  61132. # FIXME: should reinstall the best remaining shared library.
  61133. - fi
  61134. + ;;
  61135. + esac
  61136. fi
  61137. ;;
  61138. *.lo)
  61139. # Possibly a libtool object, so verify it.
  61140. - if (${SED} -e '2q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  61141. + if func_lalib_p "$file"; then
  61142. # Read the .lo file
  61143. - . $dir/$name
  61144. + func_source $dir/$name
  61145. # Add PIC object to the list of files to remove.
  61146. - if test -n "$pic_object" \
  61147. - && test "$pic_object" != none; then
  61148. + if test -n "$pic_object" &&
  61149. + test "$pic_object" != none; then
  61150. rmfiles="$rmfiles $dir/$pic_object"
  61151. fi
  61152. # Add non-PIC object to the list of files to remove.
  61153. - if test -n "$non_pic_object" \
  61154. - && test "$non_pic_object" != none; then
  61155. + if test -n "$non_pic_object" &&
  61156. + test "$non_pic_object" != none; then
  61157. rmfiles="$rmfiles $dir/$non_pic_object"
  61158. fi
  61159. fi
  61160. @@ -6142,17 +8318,26 @@
  61161. noexename=$name
  61162. case $file in
  61163. *.exe)
  61164. - file=`$echo $file|${SED} 's,.exe$,,'`
  61165. - noexename=`$echo $name|${SED} 's,.exe$,,'`
  61166. + func_stripname '' '.exe' "$file"
  61167. + file=$func_stripname_result
  61168. + func_stripname '' '.exe' "$name"
  61169. + noexename=$func_stripname_result
  61170. # $file with .exe has already been added to rmfiles,
  61171. # add $file without .exe
  61172. rmfiles="$rmfiles $file"
  61173. ;;
  61174. esac
  61175. # Do a test to see if this is a libtool program.
  61176. - if (${SED} -e '4q' $file | grep "^# Generated by .*$PACKAGE") >/dev/null 2>&1; then
  61177. - relink_command=
  61178. - . $dir/$noexename
  61179. + if func_ltwrapper_p "$file"; then
  61180. + if func_ltwrapper_executable_p "$file"; then
  61181. + func_ltwrapper_scriptname "$file"
  61182. + relink_command=
  61183. + func_source $func_ltwrapper_scriptname_result
  61184. + rmfiles="$rmfiles $func_ltwrapper_scriptname_result"
  61185. + else
  61186. + relink_command=
  61187. + func_source $dir/$noexename
  61188. + fi
  61189. # note $name still contains .exe if it was in $file originally
  61190. # as does the version of $file that was added into $rmfiles
  61191. @@ -6167,237 +8352,38 @@
  61192. fi
  61193. ;;
  61194. esac
  61195. - $show "$rm $rmfiles"
  61196. - $run $rm $rmfiles || exit_status=1
  61197. + func_show_eval "$RM $rmfiles" 'exit_status=1'
  61198. done
  61199. objdir="$origobjdir"
  61200. # Try to remove the ${objdir}s in the directories where we deleted files
  61201. for dir in $rmdirs; do
  61202. if test -d "$dir"; then
  61203. - $show "rmdir $dir"
  61204. - $run rmdir $dir >/dev/null 2>&1
  61205. + func_show_eval "rmdir $dir >/dev/null 2>&1"
  61206. fi
  61207. done
  61208. exit $exit_status
  61209. - ;;
  61210. +}
  61211. - "")
  61212. - $echo "$modename: you must specify a MODE" 1>&2
  61213. - $echo "$generic_help" 1>&2
  61214. - exit $EXIT_FAILURE
  61215. - ;;
  61216. - esac
  61217. +{ test "$mode" = uninstall || test "$mode" = clean; } &&
  61218. + func_mode_uninstall ${1+"$@"}
  61219. - if test -z "$exec_cmd"; then
  61220. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  61221. - $echo "$generic_help" 1>&2
  61222. - exit $EXIT_FAILURE
  61223. - fi
  61224. -fi # test -z "$show_help"
  61225. +test -z "$mode" && {
  61226. + help="$generic_help"
  61227. + func_fatal_help "you must specify a MODE"
  61228. +}
  61229. +
  61230. +test -z "$exec_cmd" && \
  61231. + func_fatal_help "invalid operation mode \`$mode'"
  61232. if test -n "$exec_cmd"; then
  61233. - eval exec $exec_cmd
  61234. + eval exec "$exec_cmd"
  61235. exit $EXIT_FAILURE
  61236. fi
  61237. -# We need to display help for each of the modes.
  61238. -case $mode in
  61239. -"") $echo \
  61240. -"Usage: $modename [OPTION]... [MODE-ARG]...
  61241. -
  61242. -Provide generalized library-building support services.
  61243. -
  61244. - --config show all configuration variables
  61245. - --debug enable verbose shell tracing
  61246. --n, --dry-run display commands without modifying any files
  61247. - --features display basic configuration information and exit
  61248. - --finish same as \`--mode=finish'
  61249. - --help display this help message and exit
  61250. - --mode=MODE use operation mode MODE [default=inferred from MODE-ARGS]
  61251. - --quiet same as \`--silent'
  61252. - --silent don't print informational messages
  61253. - --tag=TAG use configuration variables from tag TAG
  61254. - --version print version information
  61255. -
  61256. -MODE must be one of the following:
  61257. -
  61258. - clean remove files from the build directory
  61259. - compile compile a source file into a libtool object
  61260. - execute automatically set library path, then run a program
  61261. - finish complete the installation of libtool libraries
  61262. - install install libraries or executables
  61263. - link create a library or an executable
  61264. - uninstall remove libraries from an installed directory
  61265. -
  61266. -MODE-ARGS vary depending on the MODE. Try \`$modename --help --mode=MODE' for
  61267. -a more detailed description of MODE.
  61268. -
  61269. -Report bugs to <bug-libtool@gnu.org>."
  61270. - exit $EXIT_SUCCESS
  61271. - ;;
  61272. -
  61273. -clean)
  61274. - $echo \
  61275. -"Usage: $modename [OPTION]... --mode=clean RM [RM-OPTION]... FILE...
  61276. -
  61277. -Remove files from the build directory.
  61278. -
  61279. -RM is the name of the program to use to delete files associated with each FILE
  61280. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  61281. -to RM.
  61282. -
  61283. -If FILE is a libtool library, object or program, all the files associated
  61284. -with it are deleted. Otherwise, only FILE itself is deleted using RM."
  61285. - ;;
  61286. -
  61287. -compile)
  61288. - $echo \
  61289. -"Usage: $modename [OPTION]... --mode=compile COMPILE-COMMAND... SOURCEFILE
  61290. -
  61291. -Compile a source file into a libtool library object.
  61292. -
  61293. -This mode accepts the following additional options:
  61294. -
  61295. - -o OUTPUT-FILE set the output file name to OUTPUT-FILE
  61296. - -prefer-pic try to building PIC objects only
  61297. - -prefer-non-pic try to building non-PIC objects only
  61298. - -static always build a \`.o' file suitable for static linking
  61299. -
  61300. -COMPILE-COMMAND is a command to be used in creating a \`standard' object file
  61301. -from the given SOURCEFILE.
  61302. -
  61303. -The output file name is determined by removing the directory component from
  61304. -SOURCEFILE, then substituting the C source code suffix \`.c' with the
  61305. -library object suffix, \`.lo'."
  61306. - ;;
  61307. -
  61308. -execute)
  61309. - $echo \
  61310. -"Usage: $modename [OPTION]... --mode=execute COMMAND [ARGS]...
  61311. -
  61312. -Automatically set library path, then run a program.
  61313. -
  61314. -This mode accepts the following additional options:
  61315. -
  61316. - -dlopen FILE add the directory containing FILE to the library path
  61317. -
  61318. -This mode sets the library path environment variable according to \`-dlopen'
  61319. -flags.
  61320. -
  61321. -If any of the ARGS are libtool executable wrappers, then they are translated
  61322. -into their corresponding uninstalled binary, and any of their required library
  61323. -directories are added to the library path.
  61324. -
  61325. -Then, COMMAND is executed, with ARGS as arguments."
  61326. - ;;
  61327. -
  61328. -finish)
  61329. - $echo \
  61330. -"Usage: $modename [OPTION]... --mode=finish [LIBDIR]...
  61331. -
  61332. -Complete the installation of libtool libraries.
  61333. -
  61334. -Each LIBDIR is a directory that contains libtool libraries.
  61335. -
  61336. -The commands that this mode executes may require superuser privileges. Use
  61337. -the \`--dry-run' option if you just want to see what would be executed."
  61338. - ;;
  61339. -
  61340. -install)
  61341. - $echo \
  61342. -"Usage: $modename [OPTION]... --mode=install INSTALL-COMMAND...
  61343. -
  61344. -Install executables or libraries.
  61345. -
  61346. -INSTALL-COMMAND is the installation command. The first component should be
  61347. -either the \`install' or \`cp' program.
  61348. -
  61349. -The rest of the components are interpreted as arguments to that command (only
  61350. -BSD-compatible install options are recognized)."
  61351. - ;;
  61352. -
  61353. -link)
  61354. - $echo \
  61355. -"Usage: $modename [OPTION]... --mode=link LINK-COMMAND...
  61356. -
  61357. -Link object files or libraries together to form another library, or to
  61358. -create an executable program.
  61359. -
  61360. -LINK-COMMAND is a command using the C compiler that you would use to create
  61361. -a program from several object files.
  61362. -
  61363. -The following components of LINK-COMMAND are treated specially:
  61364. -
  61365. - -all-static do not do any dynamic linking at all
  61366. - -avoid-version do not add a version suffix if possible
  61367. - -dlopen FILE \`-dlpreopen' FILE if it cannot be dlopened at runtime
  61368. - -dlpreopen FILE link in FILE and add its symbols to lt_preloaded_symbols
  61369. - -export-dynamic allow symbols from OUTPUT-FILE to be resolved with dlsym(3)
  61370. - -export-symbols SYMFILE
  61371. - try to export only the symbols listed in SYMFILE
  61372. - -export-symbols-regex REGEX
  61373. - try to export only the symbols matching REGEX
  61374. - -LLIBDIR search LIBDIR for required installed libraries
  61375. - -lNAME OUTPUT-FILE requires the installed library libNAME
  61376. - -module build a library that can dlopened
  61377. - -no-fast-install disable the fast-install mode
  61378. - -no-install link a not-installable executable
  61379. - -no-undefined declare that a library does not refer to external symbols
  61380. - -o OUTPUT-FILE create OUTPUT-FILE from the specified objects
  61381. - -objectlist FILE Use a list of object files found in FILE to specify objects
  61382. - -precious-files-regex REGEX
  61383. - don't remove output files matching REGEX
  61384. - -release RELEASE specify package release information
  61385. - -rpath LIBDIR the created library will eventually be installed in LIBDIR
  61386. - -R[ ]LIBDIR add LIBDIR to the runtime path of programs and libraries
  61387. - -static do not do any dynamic linking of libtool libraries
  61388. - -version-info CURRENT[:REVISION[:AGE]]
  61389. - specify library version info [each variable defaults to 0]
  61390. -
  61391. -All other options (arguments beginning with \`-') are ignored.
  61392. -
  61393. -Every other argument is treated as a filename. Files ending in \`.la' are
  61394. -treated as uninstalled libtool libraries, other files are standard or library
  61395. -object files.
  61396. -
  61397. -If the OUTPUT-FILE ends in \`.la', then a libtool library is created,
  61398. -only library objects (\`.lo' files) may be specified, and \`-rpath' is
  61399. -required, except when creating a convenience library.
  61400. -
  61401. -If OUTPUT-FILE ends in \`.a' or \`.lib', then a standard library is created
  61402. -using \`ar' and \`ranlib', or on Windows using \`lib'.
  61403. -
  61404. -If OUTPUT-FILE ends in \`.lo' or \`.${objext}', then a reloadable object file
  61405. -is created, otherwise an executable program is created."
  61406. - ;;
  61407. -
  61408. -uninstall)
  61409. - $echo \
  61410. -"Usage: $modename [OPTION]... --mode=uninstall RM [RM-OPTION]... FILE...
  61411. -
  61412. -Remove libraries from an installation directory.
  61413. -
  61414. -RM is the name of the program to use to delete files associated with each FILE
  61415. -(typically \`/bin/rm'). RM-OPTIONS are options (such as \`-f') to be passed
  61416. -to RM.
  61417. +exit $exit_status
  61418. -If FILE is a libtool library, all the files associated with it are deleted.
  61419. -Otherwise, only FILE itself is deleted using RM."
  61420. - ;;
  61421. -
  61422. -*)
  61423. - $echo "$modename: invalid operation mode \`$mode'" 1>&2
  61424. - $echo "$help" 1>&2
  61425. - exit $EXIT_FAILURE
  61426. - ;;
  61427. -esac
  61428. -
  61429. -$echo
  61430. -$echo "Try \`$modename --help' for more information about other modes."
  61431. -
  61432. -exit $EXIT_SUCCESS
  61433. # The TAGs below are defined such that we never get into a situation
  61434. # in which we disable both kinds of libraries. Given conflicting
  61435. @@ -6416,10 +8402,12 @@
  61436. # ### END LIBTOOL TAG CONFIG: disable-shared
  61437. # ### BEGIN LIBTOOL TAG CONFIG: disable-static
  61438. -build_old_libs=`case $build_libtool_libs in yes) $echo no;; *) $echo yes;; esac`
  61439. +build_old_libs=`case $build_libtool_libs in yes) echo no;; *) echo yes;; esac`
  61440. # ### END LIBTOOL TAG CONFIG: disable-static
  61441. # Local Variables:
  61442. # mode:shell-script
  61443. # sh-indentation:2
  61444. # End:
  61445. +# vi:sw=2
  61446. +
  61447. diff -Nur chillispot-1.1.0.orig/Makefile.in chillispot-1.1.0/Makefile.in
  61448. --- chillispot-1.1.0.orig/Makefile.in 2006-09-24 21:34:58.000000000 +0200
  61449. +++ chillispot-1.1.0/Makefile.in 2011-02-21 17:56:54.054802534 +0100
  61450. @@ -1,8 +1,9 @@
  61451. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  61452. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  61453. # @configure_input@
  61454. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  61455. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  61456. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  61457. +# Inc.
  61458. # This Makefile.in is free software; the Free Software Foundation
  61459. # gives unlimited permission to copy and/or distribute it,
  61460. # with or without modifications, as long as this notice is preserved.
  61461. @@ -13,15 +14,12 @@
  61462. # PARTICULAR PURPOSE.
  61463. @SET_MAKE@
  61464. -srcdir = @srcdir@
  61465. -top_srcdir = @top_srcdir@
  61466. VPATH = @srcdir@
  61467. pkgdatadir = $(datadir)/@PACKAGE@
  61468. -pkglibdir = $(libdir)/@PACKAGE@
  61469. pkgincludedir = $(includedir)/@PACKAGE@
  61470. -top_builddir = .
  61471. +pkglibdir = $(libdir)/@PACKAGE@
  61472. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  61473. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  61474. -INSTALL = @INSTALL@
  61475. install_sh_DATA = $(install_sh) -c -m 644
  61476. install_sh_PROGRAM = $(install_sh) -c
  61477. install_sh_SCRIPT = $(install_sh) -c
  61478. @@ -35,29 +33,36 @@
  61479. POST_UNINSTALL = :
  61480. build_triplet = @build@
  61481. host_triplet = @host@
  61482. +subdir = .
  61483. DIST_COMMON = README $(am__configure_deps) $(srcdir)/Makefile.am \
  61484. $(srcdir)/Makefile.in $(srcdir)/chillispot.spec.in \
  61485. $(srcdir)/config.h.in $(top_srcdir)/configure AUTHORS COPYING \
  61486. ChangeLog INSTALL NEWS config.guess config.sub depcomp \
  61487. install-sh ltmain.sh missing mkinstalldirs
  61488. -subdir = .
  61489. ACLOCAL_M4 = $(top_srcdir)/aclocal.m4
  61490. am__aclocal_m4_deps = $(top_srcdir)/configure.in
  61491. am__configure_deps = $(am__aclocal_m4_deps) $(CONFIGURE_DEPENDENCIES) \
  61492. $(ACLOCAL_M4)
  61493. am__CONFIG_DISTCLEAN_FILES = config.status config.cache config.log \
  61494. - configure.lineno configure.status.lineno
  61495. + configure.lineno config.status.lineno
  61496. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  61497. CONFIG_HEADER = config.h
  61498. CONFIG_CLEAN_FILES = chillispot.spec
  61499. +CONFIG_CLEAN_VPATH_FILES =
  61500. SOURCES =
  61501. DIST_SOURCES =
  61502. RECURSIVE_TARGETS = all-recursive check-recursive dvi-recursive \
  61503. html-recursive info-recursive install-data-recursive \
  61504. - install-exec-recursive install-info-recursive \
  61505. - install-recursive installcheck-recursive installdirs-recursive \
  61506. - pdf-recursive ps-recursive uninstall-info-recursive \
  61507. - uninstall-recursive
  61508. + install-dvi-recursive install-exec-recursive \
  61509. + install-html-recursive install-info-recursive \
  61510. + install-pdf-recursive install-ps-recursive install-recursive \
  61511. + installcheck-recursive installdirs-recursive pdf-recursive \
  61512. + ps-recursive uninstall-recursive
  61513. +RECURSIVE_CLEAN_TARGETS = mostlyclean-recursive clean-recursive \
  61514. + distclean-recursive maintainer-clean-recursive
  61515. +AM_RECURSIVE_TARGETS = $(RECURSIVE_TARGETS:-recursive=) \
  61516. + $(RECURSIVE_CLEAN_TARGETS:-recursive=) tags TAGS ctags CTAGS \
  61517. + distdir dist dist-all distcheck
  61518. ETAGS = etags
  61519. CTAGS = ctags
  61520. DIST_SUBDIRS = $(SUBDIRS)
  61521. @@ -65,16 +70,39 @@
  61522. distdir = $(PACKAGE)-$(VERSION)
  61523. top_distdir = $(distdir)
  61524. am__remove_distdir = \
  61525. - { test ! -d $(distdir) \
  61526. - || { find $(distdir) -type d ! -perm -200 -exec chmod u+w {} ';' \
  61527. - && rm -fr $(distdir); }; }
  61528. + { test ! -d "$(distdir)" \
  61529. + || { find "$(distdir)" -type d ! -perm -200 -exec chmod u+w {} ';' \
  61530. + && rm -fr "$(distdir)"; }; }
  61531. +am__relativize = \
  61532. + dir0=`pwd`; \
  61533. + sed_first='s,^\([^/]*\)/.*$$,\1,'; \
  61534. + sed_rest='s,^[^/]*/*,,'; \
  61535. + sed_last='s,^.*/\([^/]*\)$$,\1,'; \
  61536. + sed_butlast='s,/*[^/]*$$,,'; \
  61537. + while test -n "$$dir1"; do \
  61538. + first=`echo "$$dir1" | sed -e "$$sed_first"`; \
  61539. + if test "$$first" != "."; then \
  61540. + if test "$$first" = ".."; then \
  61541. + dir2=`echo "$$dir0" | sed -e "$$sed_last"`/"$$dir2"; \
  61542. + dir0=`echo "$$dir0" | sed -e "$$sed_butlast"`; \
  61543. + else \
  61544. + first2=`echo "$$dir2" | sed -e "$$sed_first"`; \
  61545. + if test "$$first2" = "$$first"; then \
  61546. + dir2=`echo "$$dir2" | sed -e "$$sed_rest"`; \
  61547. + else \
  61548. + dir2="../$$dir2"; \
  61549. + fi; \
  61550. + dir0="$$dir0"/"$$first"; \
  61551. + fi; \
  61552. + fi; \
  61553. + dir1=`echo "$$dir1" | sed -e "$$sed_rest"`; \
  61554. + done; \
  61555. + reldir="$$dir2"
  61556. DIST_ARCHIVES = $(distdir).tar.gz
  61557. GZIP_ENV = --best
  61558. distuninstallcheck_listfiles = find . -type f -print
  61559. distcleancheck_listfiles = find . -type f -print
  61560. ACLOCAL = @ACLOCAL@
  61561. -AMDEP_FALSE = @AMDEP_FALSE@
  61562. -AMDEP_TRUE = @AMDEP_TRUE@
  61563. AMTAR = @AMTAR@
  61564. AR = @AR@
  61565. AUTOCONF = @AUTOCONF@
  61566. @@ -86,55 +114,59 @@
  61567. CFLAGS = @CFLAGS@
  61568. CPP = @CPP@
  61569. CPPFLAGS = @CPPFLAGS@
  61570. -CXX = @CXX@
  61571. -CXXCPP = @CXXCPP@
  61572. -CXXDEPMODE = @CXXDEPMODE@
  61573. -CXXFLAGS = @CXXFLAGS@
  61574. CYGPATH_W = @CYGPATH_W@
  61575. DEFS = @DEFS@
  61576. DEPDIR = @DEPDIR@
  61577. -ECHO = @ECHO@
  61578. +DSYMUTIL = @DSYMUTIL@
  61579. +DUMPBIN = @DUMPBIN@
  61580. ECHO_C = @ECHO_C@
  61581. ECHO_N = @ECHO_N@
  61582. ECHO_T = @ECHO_T@
  61583. EGREP = @EGREP@
  61584. EXEEXT = @EXEEXT@
  61585. -F77 = @F77@
  61586. -FFLAGS = @FFLAGS@
  61587. +FGREP = @FGREP@
  61588. +GREP = @GREP@
  61589. +INSTALL = @INSTALL@
  61590. INSTALL_DATA = @INSTALL_DATA@
  61591. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  61592. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  61593. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  61594. +LD = @LD@
  61595. LDFLAGS = @LDFLAGS@
  61596. LIBOBJS = @LIBOBJS@
  61597. LIBS = @LIBS@
  61598. LIBTOOL = @LIBTOOL@
  61599. +LIPO = @LIPO@
  61600. LN_S = @LN_S@
  61601. LTLIBOBJS = @LTLIBOBJS@
  61602. MAKEINFO = @MAKEINFO@
  61603. +MKDIR_P = @MKDIR_P@
  61604. +NM = @NM@
  61605. +NMEDIT = @NMEDIT@
  61606. +OBJDUMP = @OBJDUMP@
  61607. OBJEXT = @OBJEXT@
  61608. +OTOOL = @OTOOL@
  61609. +OTOOL64 = @OTOOL64@
  61610. PACKAGE = @PACKAGE@
  61611. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  61612. PACKAGE_NAME = @PACKAGE_NAME@
  61613. PACKAGE_STRING = @PACKAGE_STRING@
  61614. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  61615. +PACKAGE_URL = @PACKAGE_URL@
  61616. PACKAGE_VERSION = @PACKAGE_VERSION@
  61617. PATH_SEPARATOR = @PATH_SEPARATOR@
  61618. RANLIB = @RANLIB@
  61619. +SED = @SED@
  61620. SET_MAKE = @SET_MAKE@
  61621. SHELL = @SHELL@
  61622. STRIP = @STRIP@
  61623. VERSION = @VERSION@
  61624. -ac_ct_AR = @ac_ct_AR@
  61625. +abs_builddir = @abs_builddir@
  61626. +abs_srcdir = @abs_srcdir@
  61627. +abs_top_builddir = @abs_top_builddir@
  61628. +abs_top_srcdir = @abs_top_srcdir@
  61629. ac_ct_CC = @ac_ct_CC@
  61630. -ac_ct_CXX = @ac_ct_CXX@
  61631. -ac_ct_F77 = @ac_ct_F77@
  61632. -ac_ct_RANLIB = @ac_ct_RANLIB@
  61633. -ac_ct_STRIP = @ac_ct_STRIP@
  61634. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  61635. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  61636. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  61637. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  61638. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  61639. am__include = @am__include@
  61640. am__leading_dot = @am__leading_dot@
  61641. am__quote = @am__quote@
  61642. @@ -146,28 +178,41 @@
  61643. build_cpu = @build_cpu@
  61644. build_os = @build_os@
  61645. build_vendor = @build_vendor@
  61646. +builddir = @builddir@
  61647. datadir = @datadir@
  61648. +datarootdir = @datarootdir@
  61649. +docdir = @docdir@
  61650. +dvidir = @dvidir@
  61651. exec_prefix = @exec_prefix@
  61652. host = @host@
  61653. host_alias = @host_alias@
  61654. host_cpu = @host_cpu@
  61655. host_os = @host_os@
  61656. host_vendor = @host_vendor@
  61657. +htmldir = @htmldir@
  61658. includedir = @includedir@
  61659. infodir = @infodir@
  61660. install_sh = @install_sh@
  61661. libdir = @libdir@
  61662. libexecdir = @libexecdir@
  61663. +localedir = @localedir@
  61664. localstatedir = @localstatedir@
  61665. +lt_ECHO = @lt_ECHO@
  61666. mandir = @mandir@
  61667. mkdir_p = @mkdir_p@
  61668. oldincludedir = @oldincludedir@
  61669. +pdfdir = @pdfdir@
  61670. prefix = @prefix@
  61671. program_transform_name = @program_transform_name@
  61672. +psdir = @psdir@
  61673. sbindir = @sbindir@
  61674. sharedstatedir = @sharedstatedir@
  61675. +srcdir = @srcdir@
  61676. sysconfdir = @sysconfdir@
  61677. target_alias = @target_alias@
  61678. +top_build_prefix = @top_build_prefix@
  61679. +top_builddir = @top_builddir@
  61680. +top_srcdir = @top_srcdir@
  61681. SUBDIRS = src doc
  61682. all: config.h
  61683. $(MAKE) $(AM_MAKEFLAGS) all-recursive
  61684. @@ -179,15 +224,15 @@
  61685. @for dep in $?; do \
  61686. case '$(am__configure_deps)' in \
  61687. *$$dep*) \
  61688. - echo ' cd $(srcdir) && $(AUTOMAKE) --gnu '; \
  61689. - cd $(srcdir) && $(AUTOMAKE) --gnu \
  61690. + echo ' cd $(srcdir) && $(AUTOMAKE) --gnu'; \
  61691. + $(am__cd) $(srcdir) && $(AUTOMAKE) --gnu \
  61692. && exit 0; \
  61693. exit 1;; \
  61694. esac; \
  61695. done; \
  61696. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  61697. - cd $(top_srcdir) && \
  61698. - $(AUTOMAKE) --gnu Makefile
  61699. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu Makefile'; \
  61700. + $(am__cd) $(top_srcdir) && \
  61701. + $(AUTOMAKE) --gnu Makefile
  61702. .PRECIOUS: Makefile
  61703. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  61704. @case '$?' in \
  61705. @@ -203,21 +248,22 @@
  61706. $(SHELL) ./config.status --recheck
  61707. $(top_srcdir)/configure: $(am__configure_deps)
  61708. - cd $(srcdir) && $(AUTOCONF)
  61709. + $(am__cd) $(srcdir) && $(AUTOCONF)
  61710. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  61711. - cd $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61712. + $(am__cd) $(srcdir) && $(ACLOCAL) $(ACLOCAL_AMFLAGS)
  61713. +$(am__aclocal_m4_deps):
  61714. config.h: stamp-h1
  61715. @if test ! -f $@; then \
  61716. rm -f stamp-h1; \
  61717. - $(MAKE) stamp-h1; \
  61718. + $(MAKE) $(AM_MAKEFLAGS) stamp-h1; \
  61719. else :; fi
  61720. stamp-h1: $(srcdir)/config.h.in $(top_builddir)/config.status
  61721. @rm -f stamp-h1
  61722. cd $(top_builddir) && $(SHELL) ./config.status config.h
  61723. $(srcdir)/config.h.in: $(am__configure_deps)
  61724. - cd $(top_srcdir) && $(AUTOHEADER)
  61725. + ($(am__cd) $(top_srcdir) && $(AUTOHEADER))
  61726. rm -f stamp-h1
  61727. touch $@
  61728. @@ -233,8 +279,7 @@
  61729. -rm -rf .libs _libs
  61730. distclean-libtool:
  61731. - -rm -f libtool
  61732. -uninstall-info-am:
  61733. + -rm -f libtool config.lt
  61734. # This directory's subdirectories are mostly independent; you can cd
  61735. # into them and run `make' without going through this Makefile.
  61736. @@ -243,7 +288,7 @@
  61737. # (which will cause the Makefiles to be regenerated when you run `make');
  61738. # (2) otherwise, pass the desired values on the `make' command line.
  61739. $(RECURSIVE_TARGETS):
  61740. - @failcom='exit 1'; \
  61741. + @fail= failcom='exit 1'; \
  61742. for f in x $$MAKEFLAGS; do \
  61743. case $$f in \
  61744. *=* | --[!k]*);; \
  61745. @@ -260,16 +305,15 @@
  61746. else \
  61747. local_target="$$target"; \
  61748. fi; \
  61749. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61750. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61751. || eval $$failcom; \
  61752. done; \
  61753. if test "$$dot_seen" = "no"; then \
  61754. $(MAKE) $(AM_MAKEFLAGS) "$$target-am" || exit 1; \
  61755. fi; test -z "$$fail"
  61756. -mostlyclean-recursive clean-recursive distclean-recursive \
  61757. -maintainer-clean-recursive:
  61758. - @failcom='exit 1'; \
  61759. +$(RECURSIVE_CLEAN_TARGETS):
  61760. + @fail= failcom='exit 1'; \
  61761. for f in x $$MAKEFLAGS; do \
  61762. case $$f in \
  61763. *=* | --[!k]*);; \
  61764. @@ -295,16 +339,16 @@
  61765. else \
  61766. local_target="$$target"; \
  61767. fi; \
  61768. - (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61769. + ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$local_target) \
  61770. || eval $$failcom; \
  61771. done && test -z "$$fail"
  61772. tags-recursive:
  61773. list='$(SUBDIRS)'; for subdir in $$list; do \
  61774. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61775. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) tags); \
  61776. done
  61777. ctags-recursive:
  61778. list='$(SUBDIRS)'; for subdir in $$list; do \
  61779. - test "$$subdir" = . || (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61780. + test "$$subdir" = . || ($(am__cd) $$subdir && $(MAKE) $(AM_MAKEFLAGS) ctags); \
  61781. done
  61782. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  61783. @@ -312,14 +356,14 @@
  61784. unique=`for i in $$list; do \
  61785. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61786. done | \
  61787. - $(AWK) ' { files[$$0] = 1; } \
  61788. - END { for (i in files) print i; }'`; \
  61789. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61790. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61791. mkid -fID $$unique
  61792. tags: TAGS
  61793. TAGS: tags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61794. $(TAGS_FILES) $(LISP)
  61795. - tags=; \
  61796. + set x; \
  61797. here=`pwd`; \
  61798. if ($(ETAGS) --etags-include --version) >/dev/null 2>&1; then \
  61799. include_option=--etags-include; \
  61800. @@ -331,93 +375,114 @@
  61801. list='$(SUBDIRS)'; for subdir in $$list; do \
  61802. if test "$$subdir" = .; then :; else \
  61803. test ! -f $$subdir/TAGS || \
  61804. - tags="$$tags $$include_option=$$here/$$subdir/TAGS"; \
  61805. + set "$$@" "$$include_option=$$here/$$subdir/TAGS"; \
  61806. fi; \
  61807. done; \
  61808. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61809. unique=`for i in $$list; do \
  61810. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61811. done | \
  61812. - $(AWK) ' { files[$$0] = 1; } \
  61813. - END { for (i in files) print i; }'`; \
  61814. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  61815. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61816. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61817. + shift; \
  61818. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  61819. test -n "$$unique" || unique=$$empty_fix; \
  61820. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61821. - $$tags $$unique; \
  61822. + if test $$# -gt 0; then \
  61823. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61824. + "$$@" $$unique; \
  61825. + else \
  61826. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  61827. + $$unique; \
  61828. + fi; \
  61829. fi
  61830. ctags: CTAGS
  61831. CTAGS: ctags-recursive $(HEADERS) $(SOURCES) config.h.in $(TAGS_DEPENDENCIES) \
  61832. $(TAGS_FILES) $(LISP)
  61833. - tags=; \
  61834. - here=`pwd`; \
  61835. list='$(SOURCES) $(HEADERS) config.h.in $(LISP) $(TAGS_FILES)'; \
  61836. unique=`for i in $$list; do \
  61837. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  61838. done | \
  61839. - $(AWK) ' { files[$$0] = 1; } \
  61840. - END { for (i in files) print i; }'`; \
  61841. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  61842. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  61843. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  61844. + test -z "$(CTAGS_ARGS)$$unique" \
  61845. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  61846. - $$tags $$unique
  61847. + $$unique
  61848. GTAGS:
  61849. here=`$(am__cd) $(top_builddir) && pwd` \
  61850. - && cd $(top_srcdir) \
  61851. - && gtags -i $(GTAGS_ARGS) $$here
  61852. + && $(am__cd) $(top_srcdir) \
  61853. + && gtags -i $(GTAGS_ARGS) "$$here"
  61854. distclean-tags:
  61855. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  61856. distdir: $(DISTFILES)
  61857. $(am__remove_distdir)
  61858. - mkdir $(distdir)
  61859. - $(mkdir_p) $(distdir)/.
  61860. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  61861. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  61862. - list='$(DISTFILES)'; for file in $$list; do \
  61863. - case $$file in \
  61864. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  61865. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  61866. - esac; \
  61867. + test -d "$(distdir)" || mkdir "$(distdir)"
  61868. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61869. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  61870. + list='$(DISTFILES)'; \
  61871. + dist_files=`for file in $$list; do echo $$file; done | \
  61872. + sed -e "s|^$$srcdirstrip/||;t" \
  61873. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  61874. + case $$dist_files in \
  61875. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  61876. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  61877. + sort -u` ;; \
  61878. + esac; \
  61879. + for file in $$dist_files; do \
  61880. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  61881. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  61882. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  61883. - dir="/$$dir"; \
  61884. - $(mkdir_p) "$(distdir)$$dir"; \
  61885. - else \
  61886. - dir=''; \
  61887. - fi; \
  61888. if test -d $$d/$$file; then \
  61889. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  61890. + if test -d "$(distdir)/$$file"; then \
  61891. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61892. + fi; \
  61893. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  61894. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  61895. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  61896. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  61897. fi; \
  61898. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  61899. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  61900. else \
  61901. - test -f $(distdir)/$$file \
  61902. - || cp -p $$d/$$file $(distdir)/$$file \
  61903. + test -f "$(distdir)/$$file" \
  61904. + || cp -p $$d/$$file "$(distdir)/$$file" \
  61905. || exit 1; \
  61906. fi; \
  61907. done
  61908. - list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61909. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61910. if test "$$subdir" = .; then :; else \
  61911. test -d "$(distdir)/$$subdir" \
  61912. - || $(mkdir_p) "$(distdir)/$$subdir" \
  61913. + || $(MKDIR_P) "$(distdir)/$$subdir" \
  61914. || exit 1; \
  61915. - distdir=`$(am__cd) $(distdir) && pwd`; \
  61916. - top_distdir=`$(am__cd) $(top_distdir) && pwd`; \
  61917. - (cd $$subdir && \
  61918. + fi; \
  61919. + done
  61920. + @list='$(DIST_SUBDIRS)'; for subdir in $$list; do \
  61921. + if test "$$subdir" = .; then :; else \
  61922. + dir1=$$subdir; dir2="$(distdir)/$$subdir"; \
  61923. + $(am__relativize); \
  61924. + new_distdir=$$reldir; \
  61925. + dir1=$$subdir; dir2="$(top_distdir)"; \
  61926. + $(am__relativize); \
  61927. + new_top_distdir=$$reldir; \
  61928. + echo " (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) top_distdir="$$new_top_distdir" distdir="$$new_distdir" \\"; \
  61929. + echo " am__remove_distdir=: am__skip_length_check=: am__skip_mode_fix=: distdir)"; \
  61930. + ($(am__cd) $$subdir && \
  61931. $(MAKE) $(AM_MAKEFLAGS) \
  61932. - top_distdir="$$top_distdir" \
  61933. - distdir="$$distdir/$$subdir" \
  61934. + top_distdir="$$new_top_distdir" \
  61935. + distdir="$$new_distdir" \
  61936. + am__remove_distdir=: \
  61937. + am__skip_length_check=: \
  61938. + am__skip_mode_fix=: \
  61939. distdir) \
  61940. || exit 1; \
  61941. fi; \
  61942. done
  61943. - -find $(distdir) -type d ! -perm -777 -exec chmod a+rwx {} \; -o \
  61944. + -test -n "$(am__skip_mode_fix)" \
  61945. + || find "$(distdir)" -type d ! -perm -755 \
  61946. + -exec chmod u+rwx,go+rx {} \; -o \
  61947. ! -type d ! -perm -444 -links 1 -exec chmod a+r {} \; -o \
  61948. ! -type d ! -perm -400 -exec chmod a+r {} \; -o \
  61949. - ! -type d ! -perm -444 -exec $(SHELL) $(install_sh) -c -m a+r {} {} \; \
  61950. - || chmod -R a+r $(distdir)
  61951. + ! -type d ! -perm -444 -exec $(install_sh) -c -m a+r {} {} \; \
  61952. + || chmod -R a+r "$(distdir)"
  61953. dist-gzip: distdir
  61954. tardir=$(distdir) && $(am__tar) | GZIP=$(GZIP_ENV) gzip -c >$(distdir).tar.gz
  61955. $(am__remove_distdir)
  61956. @@ -426,6 +491,14 @@
  61957. tardir=$(distdir) && $(am__tar) | bzip2 -9 -c >$(distdir).tar.bz2
  61958. $(am__remove_distdir)
  61959. +dist-lzma: distdir
  61960. + tardir=$(distdir) && $(am__tar) | lzma -9 -c >$(distdir).tar.lzma
  61961. + $(am__remove_distdir)
  61962. +
  61963. +dist-xz: distdir
  61964. + tardir=$(distdir) && $(am__tar) | xz -c >$(distdir).tar.xz
  61965. + $(am__remove_distdir)
  61966. +
  61967. dist-tarZ: distdir
  61968. tardir=$(distdir) && $(am__tar) | compress -c >$(distdir).tar.Z
  61969. $(am__remove_distdir)
  61970. @@ -449,13 +522,17 @@
  61971. distcheck: dist
  61972. case '$(DIST_ARCHIVES)' in \
  61973. *.tar.gz*) \
  61974. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).tar.gz | $(am__untar) ;;\
  61975. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).tar.gz | $(am__untar) ;;\
  61976. *.tar.bz2*) \
  61977. - bunzip2 -c $(distdir).tar.bz2 | $(am__untar) ;;\
  61978. + bzip2 -dc $(distdir).tar.bz2 | $(am__untar) ;;\
  61979. + *.tar.lzma*) \
  61980. + lzma -dc $(distdir).tar.lzma | $(am__untar) ;;\
  61981. + *.tar.xz*) \
  61982. + xz -dc $(distdir).tar.xz | $(am__untar) ;;\
  61983. *.tar.Z*) \
  61984. uncompress -c $(distdir).tar.Z | $(am__untar) ;;\
  61985. *.shar.gz*) \
  61986. - GZIP=$(GZIP_ENV) gunzip -c $(distdir).shar.gz | unshar ;;\
  61987. + GZIP=$(GZIP_ENV) gzip -dc $(distdir).shar.gz | unshar ;;\
  61988. *.zip*) \
  61989. unzip $(distdir).zip ;;\
  61990. esac
  61991. @@ -463,9 +540,11 @@
  61992. mkdir $(distdir)/_build
  61993. mkdir $(distdir)/_inst
  61994. chmod a-w $(distdir)
  61995. + test -d $(distdir)/_build || exit 0; \
  61996. dc_install_base=`$(am__cd) $(distdir)/_inst && pwd | sed -e 's,^[^:\\/]:[\\/],/,'` \
  61997. && dc_destdir="$${TMPDIR-/tmp}/am-dc-$$$$/" \
  61998. - && cd $(distdir)/_build \
  61999. + && am__cwd=`pwd` \
  62000. + && $(am__cd) $(distdir)/_build \
  62001. && ../configure --srcdir=.. --prefix="$$dc_install_base" \
  62002. $(DISTCHECK_CONFIGURE_FLAGS) \
  62003. && $(MAKE) $(AM_MAKEFLAGS) \
  62004. @@ -487,13 +566,15 @@
  62005. && rm -rf "$$dc_destdir" \
  62006. && $(MAKE) $(AM_MAKEFLAGS) dist \
  62007. && rm -rf $(DIST_ARCHIVES) \
  62008. - && $(MAKE) $(AM_MAKEFLAGS) distcleancheck
  62009. + && $(MAKE) $(AM_MAKEFLAGS) distcleancheck \
  62010. + && cd "$$am__cwd" \
  62011. + || exit 1
  62012. $(am__remove_distdir)
  62013. @(echo "$(distdir) archives ready for distribution: "; \
  62014. list='$(DIST_ARCHIVES)'; for i in $$list; do echo $$i; done) | \
  62015. - sed -e '1{h;s/./=/g;p;x;}' -e '$${p;x;}'
  62016. + sed -e 1h -e 1s/./=/g -e 1p -e 1x -e '$$p' -e '$$x'
  62017. distuninstallcheck:
  62018. - @cd $(distuninstallcheck_dir) \
  62019. + @$(am__cd) '$(distuninstallcheck_dir)' \
  62020. && test `$(distuninstallcheck_listfiles) | wc -l` -le 1 \
  62021. || { echo "ERROR: files left after uninstall:" ; \
  62022. if test -n "$(DESTDIR)"; then \
  62023. @@ -535,6 +616,7 @@
  62024. distclean-generic:
  62025. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  62026. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  62027. maintainer-clean-generic:
  62028. @echo "This command is intended for maintainers to use"
  62029. @@ -555,18 +637,38 @@
  62030. html: html-recursive
  62031. +html-am:
  62032. +
  62033. info: info-recursive
  62034. info-am:
  62035. install-data-am:
  62036. +install-dvi: install-dvi-recursive
  62037. +
  62038. +install-dvi-am:
  62039. +
  62040. install-exec-am:
  62041. +install-html: install-html-recursive
  62042. +
  62043. +install-html-am:
  62044. +
  62045. install-info: install-info-recursive
  62046. +install-info-am:
  62047. +
  62048. install-man:
  62049. +install-pdf: install-pdf-recursive
  62050. +
  62051. +install-pdf-am:
  62052. +
  62053. +install-ps: install-ps-recursive
  62054. +
  62055. +install-ps-am:
  62056. +
  62057. installcheck-am:
  62058. maintainer-clean: maintainer-clean-recursive
  62059. @@ -587,24 +689,27 @@
  62060. ps-am:
  62061. -uninstall-am: uninstall-info-am
  62062. +uninstall-am:
  62063. -uninstall-info: uninstall-info-recursive
  62064. +.MAKE: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) all \
  62065. + ctags-recursive install-am install-strip tags-recursive
  62066. -.PHONY: $(RECURSIVE_TARGETS) CTAGS GTAGS all all-am am--refresh check \
  62067. - check-am clean clean-generic clean-libtool clean-recursive \
  62068. - ctags ctags-recursive dist dist-all dist-bzip2 dist-gzip \
  62069. - dist-shar dist-tarZ dist-zip distcheck distclean \
  62070. - distclean-generic distclean-hdr distclean-libtool \
  62071. - distclean-recursive distclean-tags distcleancheck distdir \
  62072. +.PHONY: $(RECURSIVE_CLEAN_TARGETS) $(RECURSIVE_TARGETS) CTAGS GTAGS \
  62073. + all all-am am--refresh check check-am clean clean-generic \
  62074. + clean-libtool ctags ctags-recursive dist dist-all dist-bzip2 \
  62075. + dist-gzip dist-lzma dist-shar dist-tarZ dist-xz dist-zip \
  62076. + distcheck distclean distclean-generic distclean-hdr \
  62077. + distclean-libtool distclean-tags distcleancheck distdir \
  62078. distuninstallcheck dvi dvi-am html html-am info info-am \
  62079. - install install-am install-data install-data-am install-exec \
  62080. - install-exec-am install-info install-info-am install-man \
  62081. + install install-am install-data install-data-am install-dvi \
  62082. + install-dvi-am install-exec install-exec-am install-html \
  62083. + install-html-am install-info install-info-am install-man \
  62084. + install-pdf install-pdf-am install-ps install-ps-am \
  62085. install-strip installcheck installcheck-am installdirs \
  62086. installdirs-am maintainer-clean maintainer-clean-generic \
  62087. - maintainer-clean-recursive mostlyclean mostlyclean-generic \
  62088. - mostlyclean-libtool mostlyclean-recursive pdf pdf-am ps ps-am \
  62089. - tags tags-recursive uninstall uninstall-am uninstall-info-am
  62090. + mostlyclean mostlyclean-generic mostlyclean-libtool pdf pdf-am \
  62091. + ps ps-am tags tags-recursive uninstall uninstall-am
  62092. +
  62093. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  62094. # Otherwise a system limit (for SysV at least) may be exceeded.
  62095. diff -Nur chillispot-1.1.0.orig/missing chillispot-1.1.0/missing
  62096. --- chillispot-1.1.0.orig/missing 2004-04-02 20:55:11.000000000 +0200
  62097. +++ chillispot-1.1.0/missing 2011-02-21 17:56:53.524804146 +0100
  62098. @@ -1,6 +1,10 @@
  62099. #! /bin/sh
  62100. # Common stub for a few missing GNU programs while installing.
  62101. -# Copyright (C) 1996, 1997, 1999, 2000, 2002 Free Software Foundation, Inc.
  62102. +
  62103. +scriptversion=2009-04-28.21; # UTC
  62104. +
  62105. +# Copyright (C) 1996, 1997, 1999, 2000, 2002, 2003, 2004, 2005, 2006,
  62106. +# 2008, 2009 Free Software Foundation, Inc.
  62107. # Originally by Fran,cois Pinard <pinard@iro.umontreal.ca>, 1996.
  62108. # This program is free software; you can redistribute it and/or modify
  62109. @@ -14,9 +18,7 @@
  62110. # GNU General Public License for more details.
  62111. # You should have received a copy of the GNU General Public License
  62112. -# along with this program; if not, write to the Free Software
  62113. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
  62114. -# 02111-1307, USA.
  62115. +# along with this program. If not, see <http://www.gnu.org/licenses/>.
  62116. # As a special exception to the GNU General Public License, if you
  62117. # distribute this file as part of a program that contains a
  62118. @@ -29,6 +31,8 @@
  62119. fi
  62120. run=:
  62121. +sed_output='s/.* --output[ =]\([^ ]*\).*/\1/p'
  62122. +sed_minuso='s/.* -o \([^ ]*\).*/\1/p'
  62123. # In the cases where this matters, `missing' is being run in the
  62124. # srcdir already.
  62125. @@ -38,18 +42,24 @@
  62126. configure_ac=configure.in
  62127. fi
  62128. -case "$1" in
  62129. +msg="missing on your system"
  62130. +
  62131. +case $1 in
  62132. --run)
  62133. # Try to run requested program, and just exit if it succeeds.
  62134. run=
  62135. shift
  62136. "$@" && exit 0
  62137. + # Exit code 63 means version mismatch. This often happens
  62138. + # when the user try to use an ancient version of a tool on
  62139. + # a file that requires a minimum version. In this case we
  62140. + # we should proceed has if the program had been absent, or
  62141. + # if --run hadn't been passed.
  62142. + if test $? = 63; then
  62143. + run=:
  62144. + msg="probably too old"
  62145. + fi
  62146. ;;
  62147. -esac
  62148. -
  62149. -# If it does not exist, or fails to run (possibly an outdated version),
  62150. -# try to emulate it.
  62151. -case "$1" in
  62152. -h|--h|--he|--hel|--help)
  62153. echo "\
  62154. @@ -67,6 +77,7 @@
  62155. aclocal touch file \`aclocal.m4'
  62156. autoconf touch file \`configure'
  62157. autoheader touch file \`config.h.in'
  62158. + autom4te touch the output file, or create a stub one
  62159. automake touch all \`Makefile.in' files
  62160. bison create \`y.tab.[ch]', if possible, from existing .[ch]
  62161. flex create \`lex.yy.c', if possible, from existing .c
  62162. @@ -74,11 +85,18 @@
  62163. lex create \`lex.yy.c', if possible, from existing .c
  62164. makeinfo touch the output file
  62165. tar try tar, gnutar, gtar, then tar without non-portable flags
  62166. - yacc create \`y.tab.[ch]', if possible, from existing .[ch]"
  62167. + yacc create \`y.tab.[ch]', if possible, from existing .[ch]
  62168. +
  62169. +Version suffixes to PROGRAM as well as the prefixes \`gnu-', \`gnu', and
  62170. +\`g' are ignored when checking the name.
  62171. +
  62172. +Send bug reports to <bug-automake@gnu.org>."
  62173. + exit $?
  62174. ;;
  62175. -v|--v|--ve|--ver|--vers|--versi|--versio|--version)
  62176. - echo "missing 0.4 - GNU automake"
  62177. + echo "missing $scriptversion (GNU Automake)"
  62178. + exit $?
  62179. ;;
  62180. -*)
  62181. @@ -87,42 +105,69 @@
  62182. exit 1
  62183. ;;
  62184. - aclocal*)
  62185. +esac
  62186. +
  62187. +# normalize program name to check for.
  62188. +program=`echo "$1" | sed '
  62189. + s/^gnu-//; t
  62190. + s/^gnu//; t
  62191. + s/^g//; t'`
  62192. +
  62193. +# Now exit if we have it, but it failed. Also exit now if we
  62194. +# don't have it and --version was passed (most likely to detect
  62195. +# the program). This is about non-GNU programs, so use $1 not
  62196. +# $program.
  62197. +case $1 in
  62198. + lex*|yacc*)
  62199. + # Not GNU programs, they don't have --version.
  62200. + ;;
  62201. +
  62202. + tar*)
  62203. + if test -n "$run"; then
  62204. + echo 1>&2 "ERROR: \`tar' requires --run"
  62205. + exit 1
  62206. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  62207. + exit 1
  62208. + fi
  62209. + ;;
  62210. +
  62211. + *)
  62212. if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62213. # We have it, but it failed.
  62214. exit 1
  62215. + elif test "x$2" = "x--version" || test "x$2" = "x--help"; then
  62216. + # Could not run --version or --help. This is probably someone
  62217. + # running `$TOOL --version' or `$TOOL --help' to check whether
  62218. + # $TOOL exists and not knowing $TOOL uses missing.
  62219. + exit 1
  62220. fi
  62221. + ;;
  62222. +esac
  62223. +# If it does not exist, or fails to run (possibly an outdated version),
  62224. +# try to emulate it.
  62225. +case $program in
  62226. + aclocal*)
  62227. echo 1>&2 "\
  62228. -WARNING: \`$1' is missing on your system. You should only need it if
  62229. +WARNING: \`$1' is $msg. You should only need it if
  62230. you modified \`acinclude.m4' or \`${configure_ac}'. You might want
  62231. to install the \`Automake' and \`Perl' packages. Grab them from
  62232. any GNU archive site."
  62233. touch aclocal.m4
  62234. ;;
  62235. - autoconf)
  62236. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62237. - # We have it, but it failed.
  62238. - exit 1
  62239. - fi
  62240. -
  62241. + autoconf*)
  62242. echo 1>&2 "\
  62243. -WARNING: \`$1' is missing on your system. You should only need it if
  62244. +WARNING: \`$1' is $msg. You should only need it if
  62245. you modified \`${configure_ac}'. You might want to install the
  62246. \`Autoconf' and \`GNU m4' packages. Grab them from any GNU
  62247. archive site."
  62248. touch configure
  62249. ;;
  62250. - autoheader)
  62251. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62252. - # We have it, but it failed.
  62253. - exit 1
  62254. - fi
  62255. -
  62256. + autoheader*)
  62257. echo 1>&2 "\
  62258. -WARNING: \`$1' is missing on your system. You should only need it if
  62259. +WARNING: \`$1' is $msg. You should only need it if
  62260. you modified \`acconfig.h' or \`${configure_ac}'. You might want
  62261. to install the \`Autoconf' and \`GNU m4' packages. Grab them
  62262. from any GNU archive site."
  62263. @@ -130,7 +175,7 @@
  62264. test -z "$files" && files="config.h"
  62265. touch_files=
  62266. for f in $files; do
  62267. - case "$f" in
  62268. + case $f in
  62269. *:*) touch_files="$touch_files "`echo "$f" |
  62270. sed -e 's/^[^:]*://' -e 's/:.*//'`;;
  62271. *) touch_files="$touch_files $f.in";;
  62272. @@ -140,13 +185,8 @@
  62273. ;;
  62274. automake*)
  62275. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62276. - # We have it, but it failed.
  62277. - exit 1
  62278. - fi
  62279. -
  62280. echo 1>&2 "\
  62281. -WARNING: \`$1' is missing on your system. You should only need it if
  62282. +WARNING: \`$1' is $msg. You should only need it if
  62283. you modified \`Makefile.am', \`acinclude.m4' or \`${configure_ac}'.
  62284. You might want to install the \`Automake' and \`Perl' packages.
  62285. Grab them from any GNU archive site."
  62286. @@ -155,21 +195,16 @@
  62287. while read f; do touch "$f"; done
  62288. ;;
  62289. - autom4te)
  62290. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62291. - # We have it, but it failed.
  62292. - exit 1
  62293. - fi
  62294. -
  62295. + autom4te*)
  62296. echo 1>&2 "\
  62297. -WARNING: \`$1' is needed, and you do not seem to have it handy on your
  62298. - system. You might have modified some files without having the
  62299. +WARNING: \`$1' is needed, but is $msg.
  62300. + You might have modified some files without having the
  62301. proper tools for further handling them.
  62302. - You can get \`$1Help2man' as part of \`Autoconf' from any GNU
  62303. + You can get \`$1' as part of \`Autoconf' from any GNU
  62304. archive site."
  62305. - file=`echo "$*" | sed -n 's/.*--output[ =]*\([^ ]*\).*/\1/p'`
  62306. - test -z "$file" && file=`echo "$*" | sed -n 's/.*-o[ ]*\([^ ]*\).*/\1/p'`
  62307. + file=`echo "$*" | sed -n "$sed_output"`
  62308. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  62309. if test -f "$file"; then
  62310. touch $file
  62311. else
  62312. @@ -183,111 +218,108 @@
  62313. fi
  62314. ;;
  62315. - bison|yacc)
  62316. + bison*|yacc*)
  62317. echo 1>&2 "\
  62318. -WARNING: \`$1' is missing on your system. You should only need it if
  62319. +WARNING: \`$1' $msg. You should only need it if
  62320. you modified a \`.y' file. You may need the \`Bison' package
  62321. in order for those modifications to take effect. You can get
  62322. \`Bison' from any GNU archive site."
  62323. rm -f y.tab.c y.tab.h
  62324. - if [ $# -ne 1 ]; then
  62325. + if test $# -ne 1; then
  62326. eval LASTARG="\${$#}"
  62327. - case "$LASTARG" in
  62328. + case $LASTARG in
  62329. *.y)
  62330. SRCFILE=`echo "$LASTARG" | sed 's/y$/c/'`
  62331. - if [ -f "$SRCFILE" ]; then
  62332. + if test -f "$SRCFILE"; then
  62333. cp "$SRCFILE" y.tab.c
  62334. fi
  62335. SRCFILE=`echo "$LASTARG" | sed 's/y$/h/'`
  62336. - if [ -f "$SRCFILE" ]; then
  62337. + if test -f "$SRCFILE"; then
  62338. cp "$SRCFILE" y.tab.h
  62339. fi
  62340. ;;
  62341. esac
  62342. fi
  62343. - if [ ! -f y.tab.h ]; then
  62344. + if test ! -f y.tab.h; then
  62345. echo >y.tab.h
  62346. fi
  62347. - if [ ! -f y.tab.c ]; then
  62348. + if test ! -f y.tab.c; then
  62349. echo 'main() { return 0; }' >y.tab.c
  62350. fi
  62351. ;;
  62352. - lex|flex)
  62353. + lex*|flex*)
  62354. echo 1>&2 "\
  62355. -WARNING: \`$1' is missing on your system. You should only need it if
  62356. +WARNING: \`$1' is $msg. You should only need it if
  62357. you modified a \`.l' file. You may need the \`Flex' package
  62358. in order for those modifications to take effect. You can get
  62359. \`Flex' from any GNU archive site."
  62360. rm -f lex.yy.c
  62361. - if [ $# -ne 1 ]; then
  62362. + if test $# -ne 1; then
  62363. eval LASTARG="\${$#}"
  62364. - case "$LASTARG" in
  62365. + case $LASTARG in
  62366. *.l)
  62367. SRCFILE=`echo "$LASTARG" | sed 's/l$/c/'`
  62368. - if [ -f "$SRCFILE" ]; then
  62369. + if test -f "$SRCFILE"; then
  62370. cp "$SRCFILE" lex.yy.c
  62371. fi
  62372. ;;
  62373. esac
  62374. fi
  62375. - if [ ! -f lex.yy.c ]; then
  62376. + if test ! -f lex.yy.c; then
  62377. echo 'main() { return 0; }' >lex.yy.c
  62378. fi
  62379. ;;
  62380. - help2man)
  62381. - if test -z "$run" && ($1 --version) > /dev/null 2>&1; then
  62382. - # We have it, but it failed.
  62383. - exit 1
  62384. - fi
  62385. -
  62386. + help2man*)
  62387. echo 1>&2 "\
  62388. -WARNING: \`$1' is missing on your system. You should only need it if
  62389. +WARNING: \`$1' is $msg. You should only need it if
  62390. you modified a dependency of a manual page. You may need the
  62391. \`Help2man' package in order for those modifications to take
  62392. effect. You can get \`Help2man' from any GNU archive site."
  62393. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  62394. - if test -z "$file"; then
  62395. - file=`echo "$*" | sed -n 's/.*--output=\([^ ]*\).*/\1/p'`
  62396. - fi
  62397. - if [ -f "$file" ]; then
  62398. + file=`echo "$*" | sed -n "$sed_output"`
  62399. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  62400. + if test -f "$file"; then
  62401. touch $file
  62402. else
  62403. test -z "$file" || exec >$file
  62404. echo ".ab help2man is required to generate this page"
  62405. - exit 1
  62406. + exit $?
  62407. fi
  62408. ;;
  62409. - makeinfo)
  62410. - if test -z "$run" && (makeinfo --version) > /dev/null 2>&1; then
  62411. - # We have makeinfo, but it failed.
  62412. - exit 1
  62413. - fi
  62414. -
  62415. + makeinfo*)
  62416. echo 1>&2 "\
  62417. -WARNING: \`$1' is missing on your system. You should only need it if
  62418. +WARNING: \`$1' is $msg. You should only need it if
  62419. you modified a \`.texi' or \`.texinfo' file, or any other file
  62420. indirectly affecting the aspect of the manual. The spurious
  62421. call might also be the consequence of using a buggy \`make' (AIX,
  62422. DU, IRIX). You might want to install the \`Texinfo' package or
  62423. the \`GNU make' package. Grab either from any GNU archive site."
  62424. - file=`echo "$*" | sed -n 's/.*-o \([^ ]*\).*/\1/p'`
  62425. + # The file to touch is that specified with -o ...
  62426. + file=`echo "$*" | sed -n "$sed_output"`
  62427. + test -z "$file" && file=`echo "$*" | sed -n "$sed_minuso"`
  62428. if test -z "$file"; then
  62429. - file=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  62430. - file=`sed -n '/^@setfilename/ { s/.* \([^ ]*\) *$/\1/; p; q; }' $file`
  62431. - fi
  62432. + # ... or it is the one specified with @setfilename ...
  62433. + infile=`echo "$*" | sed 's/.* \([^ ]*\) *$/\1/'`
  62434. + file=`sed -n '
  62435. + /^@setfilename/{
  62436. + s/.* \([^ ]*\) *$/\1/
  62437. + p
  62438. + q
  62439. + }' $infile`
  62440. + # ... or it is derived from the source name (dir/f.texi becomes f.info)
  62441. + test -z "$file" && file=`echo "$infile" | sed 's,.*/,,;s,.[^.]*$,,'`.info
  62442. + fi
  62443. + # If the file does not exist, the user really needs makeinfo;
  62444. + # let's fail without touching anything.
  62445. + test -f $file || exit 1
  62446. touch $file
  62447. ;;
  62448. - tar)
  62449. + tar*)
  62450. shift
  62451. - if test -n "$run"; then
  62452. - echo 1>&2 "ERROR: \`tar' requires --run"
  62453. - exit 1
  62454. - fi
  62455. # We have already tried tar in the generic part.
  62456. # Look for gnutar/gtar before invocation to avoid ugly error
  62457. @@ -300,13 +332,13 @@
  62458. fi
  62459. firstarg="$1"
  62460. if shift; then
  62461. - case "$firstarg" in
  62462. + case $firstarg in
  62463. *o*)
  62464. firstarg=`echo "$firstarg" | sed s/o//`
  62465. tar "$firstarg" "$@" && exit 0
  62466. ;;
  62467. esac
  62468. - case "$firstarg" in
  62469. + case $firstarg in
  62470. *h*)
  62471. firstarg=`echo "$firstarg" | sed s/h//`
  62472. tar "$firstarg" "$@" && exit 0
  62473. @@ -323,10 +355,10 @@
  62474. *)
  62475. echo 1>&2 "\
  62476. -WARNING: \`$1' is needed, and you do not seem to have it handy on your
  62477. - system. You might have modified some files without having the
  62478. +WARNING: \`$1' is needed, and is $msg.
  62479. + You might have modified some files without having the
  62480. proper tools for further handling them. Check the \`README' file,
  62481. - it often tells you about the needed prerequirements for installing
  62482. + it often tells you about the needed prerequisites for installing
  62483. this package. You may also peek at any GNU archive site, in case
  62484. some other package would contain this missing \`$1' program."
  62485. exit 1
  62486. @@ -334,3 +366,11 @@
  62487. esac
  62488. exit 0
  62489. +
  62490. +# Local variables:
  62491. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  62492. +# time-stamp-start: "scriptversion="
  62493. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  62494. +# time-stamp-time-zone: "UTC"
  62495. +# time-stamp-end: "; # UTC"
  62496. +# End:
  62497. diff -Nur chillispot-1.1.0.orig/mkinstalldirs chillispot-1.1.0/mkinstalldirs
  62498. --- chillispot-1.1.0.orig/mkinstalldirs 2004-04-02 20:55:11.000000000 +0200
  62499. +++ chillispot-1.1.0/mkinstalldirs 2011-02-21 17:56:54.024804613 +0100
  62500. @@ -1,29 +1,59 @@
  62501. #! /bin/sh
  62502. # mkinstalldirs --- make directory hierarchy
  62503. -# Author: Noah Friedman <friedman@prep.ai.mit.edu>
  62504. -# Created: 1993-05-16
  62505. -# Public domain
  62506. +scriptversion=2009-04-28.21; # UTC
  62507. +
  62508. +# Original author: Noah Friedman <friedman@prep.ai.mit.edu>
  62509. +# Created: 1993-05-16
  62510. +# Public domain.
  62511. +#
  62512. +# This file is maintained in Automake, please report
  62513. +# bugs to <bug-automake@gnu.org> or send patches to
  62514. +# <automake-patches@gnu.org>.
  62515. +
  62516. +nl='
  62517. +'
  62518. +IFS=" "" $nl"
  62519. errstatus=0
  62520. -dirmode=""
  62521. +dirmode=
  62522. usage="\
  62523. -Usage: mkinstalldirs [-h] [--help] [-m mode] dir ..."
  62524. +Usage: mkinstalldirs [-h] [--help] [--version] [-m MODE] DIR ...
  62525. +
  62526. +Create each directory DIR (with mode MODE, if specified), including all
  62527. +leading file name components.
  62528. +
  62529. +Report bugs to <bug-automake@gnu.org>."
  62530. # process command line arguments
  62531. while test $# -gt 0 ; do
  62532. - case "${1}" in
  62533. - -h | --help | --h* ) # -h for help
  62534. - echo "${usage}" 1>&2; exit 0 ;;
  62535. - -m ) # -m PERM arg
  62536. - shift
  62537. - test $# -eq 0 && { echo "${usage}" 1>&2; exit 1; }
  62538. - dirmode="${1}"
  62539. - shift ;;
  62540. - -- ) shift; break ;; # stop option processing
  62541. - -* ) echo "${usage}" 1>&2; exit 1 ;; # unknown option
  62542. - * ) break ;; # first non-opt arg
  62543. - esac
  62544. + case $1 in
  62545. + -h | --help | --h*) # -h for help
  62546. + echo "$usage"
  62547. + exit $?
  62548. + ;;
  62549. + -m) # -m PERM arg
  62550. + shift
  62551. + test $# -eq 0 && { echo "$usage" 1>&2; exit 1; }
  62552. + dirmode=$1
  62553. + shift
  62554. + ;;
  62555. + --version)
  62556. + echo "$0 $scriptversion"
  62557. + exit $?
  62558. + ;;
  62559. + --) # stop option processing
  62560. + shift
  62561. + break
  62562. + ;;
  62563. + -*) # unknown option
  62564. + echo "$usage" 1>&2
  62565. + exit 1
  62566. + ;;
  62567. + *) # first non-opt arg
  62568. + break
  62569. + ;;
  62570. + esac
  62571. done
  62572. for file
  62573. @@ -36,64 +66,97 @@
  62574. done
  62575. case $# in
  62576. -0) exit 0 ;;
  62577. + 0) exit 0 ;;
  62578. esac
  62579. +# Solaris 8's mkdir -p isn't thread-safe. If you mkdir -p a/b and
  62580. +# mkdir -p a/c at the same time, both will detect that a is missing,
  62581. +# one will create a, then the other will try to create a and die with
  62582. +# a "File exists" error. This is a problem when calling mkinstalldirs
  62583. +# from a parallel make. We use --version in the probe to restrict
  62584. +# ourselves to GNU mkdir, which is thread-safe.
  62585. case $dirmode in
  62586. -'')
  62587. - if mkdir -p -- . 2>/dev/null; then
  62588. - echo "mkdir -p -- $*"
  62589. - exec mkdir -p -- "$@"
  62590. - fi ;;
  62591. -*)
  62592. - if mkdir -m "$dirmode" -p -- . 2>/dev/null; then
  62593. - echo "mkdir -m $dirmode -p -- $*"
  62594. - exec mkdir -m "$dirmode" -p -- "$@"
  62595. - fi ;;
  62596. + '')
  62597. + if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
  62598. + echo "mkdir -p -- $*"
  62599. + exec mkdir -p -- "$@"
  62600. + else
  62601. + # On NextStep and OpenStep, the `mkdir' command does not
  62602. + # recognize any option. It will interpret all options as
  62603. + # directories to create, and then abort because `.' already
  62604. + # exists.
  62605. + test -d ./-p && rmdir ./-p
  62606. + test -d ./--version && rmdir ./--version
  62607. + fi
  62608. + ;;
  62609. + *)
  62610. + if mkdir -m "$dirmode" -p --version . >/dev/null 2>&1 &&
  62611. + test ! -d ./--version; then
  62612. + echo "mkdir -m $dirmode -p -- $*"
  62613. + exec mkdir -m "$dirmode" -p -- "$@"
  62614. + else
  62615. + # Clean up after NextStep and OpenStep mkdir.
  62616. + for d in ./-m ./-p ./--version "./$dirmode";
  62617. + do
  62618. + test -d $d && rmdir $d
  62619. + done
  62620. + fi
  62621. + ;;
  62622. esac
  62623. for file
  62624. do
  62625. - set fnord `echo ":$file" | sed -ne 's/^:\//#/;s/^://;s/\// /g;s/^#/\//;p'`
  62626. - shift
  62627. + case $file in
  62628. + /*) pathcomp=/ ;;
  62629. + *) pathcomp= ;;
  62630. + esac
  62631. + oIFS=$IFS
  62632. + IFS=/
  62633. + set fnord $file
  62634. + shift
  62635. + IFS=$oIFS
  62636. +
  62637. + for d
  62638. + do
  62639. + test "x$d" = x && continue
  62640. +
  62641. + pathcomp=$pathcomp$d
  62642. + case $pathcomp in
  62643. + -*) pathcomp=./$pathcomp ;;
  62644. + esac
  62645. +
  62646. + if test ! -d "$pathcomp"; then
  62647. + echo "mkdir $pathcomp"
  62648. +
  62649. + mkdir "$pathcomp" || lasterr=$?
  62650. +
  62651. + if test ! -d "$pathcomp"; then
  62652. + errstatus=$lasterr
  62653. + else
  62654. + if test ! -z "$dirmode"; then
  62655. + echo "chmod $dirmode $pathcomp"
  62656. + lasterr=
  62657. + chmod "$dirmode" "$pathcomp" || lasterr=$?
  62658. - pathcomp=
  62659. - for d
  62660. - do
  62661. - pathcomp="$pathcomp$d"
  62662. - case "$pathcomp" in
  62663. - -* ) pathcomp=./$pathcomp ;;
  62664. - esac
  62665. -
  62666. - if test ! -d "$pathcomp"; then
  62667. - echo "mkdir $pathcomp"
  62668. -
  62669. - mkdir "$pathcomp" || lasterr=$?
  62670. -
  62671. - if test ! -d "$pathcomp"; then
  62672. - errstatus=$lasterr
  62673. - else
  62674. - if test ! -z "$dirmode"; then
  62675. - echo "chmod $dirmode $pathcomp"
  62676. -
  62677. - lasterr=""
  62678. - chmod "$dirmode" "$pathcomp" || lasterr=$?
  62679. -
  62680. - if test ! -z "$lasterr"; then
  62681. - errstatus=$lasterr
  62682. - fi
  62683. + if test ! -z "$lasterr"; then
  62684. + errstatus=$lasterr
  62685. fi
  62686. fi
  62687. - fi
  62688. + fi
  62689. + fi
  62690. - pathcomp="$pathcomp/"
  62691. - done
  62692. + pathcomp=$pathcomp/
  62693. + done
  62694. done
  62695. exit $errstatus
  62696. # Local Variables:
  62697. # mode: shell-script
  62698. -# sh-indentation: 3
  62699. +# sh-indentation: 2
  62700. +# eval: (add-hook 'write-file-hooks 'time-stamp)
  62701. +# time-stamp-start: "scriptversion="
  62702. +# time-stamp-format: "%:y-%02m-%02d.%02H"
  62703. +# time-stamp-time-zone: "UTC"
  62704. +# time-stamp-end: "; # UTC"
  62705. # End:
  62706. -# mkinstalldirs ends here
  62707. diff -Nur chillispot-1.1.0.orig/src/Makefile.in chillispot-1.1.0/src/Makefile.in
  62708. --- chillispot-1.1.0.orig/src/Makefile.in 2006-09-24 21:34:57.000000000 +0200
  62709. +++ chillispot-1.1.0/src/Makefile.in 2011-02-21 17:56:53.944802473 +0100
  62710. @@ -1,8 +1,9 @@
  62711. -# Makefile.in generated by automake 1.9.5 from Makefile.am.
  62712. +# Makefile.in generated by automake 1.11.1 from Makefile.am.
  62713. # @configure_input@
  62714. # Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002,
  62715. -# 2003, 2004, 2005 Free Software Foundation, Inc.
  62716. +# 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
  62717. +# Inc.
  62718. # This Makefile.in is free software; the Free Software Foundation
  62719. # gives unlimited permission to copy and/or distribute it,
  62720. # with or without modifications, as long as this notice is preserved.
  62721. @@ -14,17 +15,12 @@
  62722. @SET_MAKE@
  62723. -SOURCES = $(chilli_SOURCES)
  62724. -
  62725. -srcdir = @srcdir@
  62726. -top_srcdir = @top_srcdir@
  62727. VPATH = @srcdir@
  62728. pkgdatadir = $(datadir)/@PACKAGE@
  62729. -pkglibdir = $(libdir)/@PACKAGE@
  62730. pkgincludedir = $(includedir)/@PACKAGE@
  62731. -top_builddir = ..
  62732. +pkglibdir = $(libdir)/@PACKAGE@
  62733. +pkglibexecdir = $(libexecdir)/@PACKAGE@
  62734. am__cd = CDPATH="$${ZSH_VERSION+.}$(PATH_SEPARATOR)" && cd
  62735. -INSTALL = @INSTALL@
  62736. install_sh_DATA = $(install_sh) -c -m 644
  62737. install_sh_PROGRAM = $(install_sh) -c
  62738. install_sh_SCRIPT = $(install_sh) -c
  62739. @@ -48,8 +44,8 @@
  62740. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  62741. CONFIG_HEADER = $(top_builddir)/config.h
  62742. CONFIG_CLEAN_FILES =
  62743. +CONFIG_CLEAN_VPATH_FILES =
  62744. am__installdirs = "$(DESTDIR)$(sbindir)"
  62745. -sbinPROGRAMS_INSTALL = $(INSTALL_PROGRAM)
  62746. PROGRAMS = $(sbin_PROGRAMS)
  62747. am_chilli_OBJECTS = chilli.$(OBJEXT) tun.$(OBJEXT) cmdline.$(OBJEXT) \
  62748. ippool.$(OBJEXT) radius.$(OBJEXT) md5.$(OBJEXT) \
  62749. @@ -57,25 +53,25 @@
  62750. iphash.$(OBJEXT) lookup.$(OBJEXT)
  62751. chilli_OBJECTS = $(am_chilli_OBJECTS)
  62752. chilli_LDADD = $(LDADD)
  62753. -DEFAULT_INCLUDES = -I. -I$(srcdir) -I$(top_builddir)
  62754. +DEFAULT_INCLUDES = -I.@am__isrc@ -I$(top_builddir)
  62755. depcomp = $(SHELL) $(top_srcdir)/depcomp
  62756. am__depfiles_maybe = depfiles
  62757. +am__mv = mv -f
  62758. COMPILE = $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) \
  62759. $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62760. -LTCOMPILE = $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) \
  62761. - $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) \
  62762. - $(AM_CFLAGS) $(CFLAGS)
  62763. +LTCOMPILE = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62764. + --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) \
  62765. + $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
  62766. CCLD = $(CC)
  62767. -LINK = $(LIBTOOL) --tag=CC --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) \
  62768. - $(AM_LDFLAGS) $(LDFLAGS) -o $@
  62769. +LINK = $(LIBTOOL) --tag=CC $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) \
  62770. + --mode=link $(CCLD) $(AM_CFLAGS) $(CFLAGS) $(AM_LDFLAGS) \
  62771. + $(LDFLAGS) -o $@
  62772. SOURCES = $(chilli_SOURCES)
  62773. DIST_SOURCES = $(chilli_SOURCES)
  62774. ETAGS = etags
  62775. CTAGS = ctags
  62776. DISTFILES = $(DIST_COMMON) $(DIST_SOURCES) $(TEXINFOS) $(EXTRA_DIST)
  62777. ACLOCAL = @ACLOCAL@
  62778. -AMDEP_FALSE = @AMDEP_FALSE@
  62779. -AMDEP_TRUE = @AMDEP_TRUE@
  62780. AMTAR = @AMTAR@
  62781. AR = @AR@
  62782. AUTOCONF = @AUTOCONF@
  62783. @@ -87,55 +83,59 @@
  62784. CFLAGS = @CFLAGS@
  62785. CPP = @CPP@
  62786. CPPFLAGS = @CPPFLAGS@
  62787. -CXX = @CXX@
  62788. -CXXCPP = @CXXCPP@
  62789. -CXXDEPMODE = @CXXDEPMODE@
  62790. -CXXFLAGS = @CXXFLAGS@
  62791. CYGPATH_W = @CYGPATH_W@
  62792. DEFS = @DEFS@
  62793. DEPDIR = @DEPDIR@
  62794. -ECHO = @ECHO@
  62795. +DSYMUTIL = @DSYMUTIL@
  62796. +DUMPBIN = @DUMPBIN@
  62797. ECHO_C = @ECHO_C@
  62798. ECHO_N = @ECHO_N@
  62799. ECHO_T = @ECHO_T@
  62800. EGREP = @EGREP@
  62801. EXEEXT = @EXEEXT@
  62802. -F77 = @F77@
  62803. -FFLAGS = @FFLAGS@
  62804. +FGREP = @FGREP@
  62805. +GREP = @GREP@
  62806. +INSTALL = @INSTALL@
  62807. INSTALL_DATA = @INSTALL_DATA@
  62808. INSTALL_PROGRAM = @INSTALL_PROGRAM@
  62809. INSTALL_SCRIPT = @INSTALL_SCRIPT@
  62810. INSTALL_STRIP_PROGRAM = @INSTALL_STRIP_PROGRAM@
  62811. +LD = @LD@
  62812. LDFLAGS = @LDFLAGS@
  62813. LIBOBJS = @LIBOBJS@
  62814. LIBS = @LIBS@
  62815. LIBTOOL = @LIBTOOL@
  62816. +LIPO = @LIPO@
  62817. LN_S = @LN_S@
  62818. LTLIBOBJS = @LTLIBOBJS@
  62819. MAKEINFO = @MAKEINFO@
  62820. +MKDIR_P = @MKDIR_P@
  62821. +NM = @NM@
  62822. +NMEDIT = @NMEDIT@
  62823. +OBJDUMP = @OBJDUMP@
  62824. OBJEXT = @OBJEXT@
  62825. +OTOOL = @OTOOL@
  62826. +OTOOL64 = @OTOOL64@
  62827. PACKAGE = @PACKAGE@
  62828. PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
  62829. PACKAGE_NAME = @PACKAGE_NAME@
  62830. PACKAGE_STRING = @PACKAGE_STRING@
  62831. PACKAGE_TARNAME = @PACKAGE_TARNAME@
  62832. +PACKAGE_URL = @PACKAGE_URL@
  62833. PACKAGE_VERSION = @PACKAGE_VERSION@
  62834. PATH_SEPARATOR = @PATH_SEPARATOR@
  62835. RANLIB = @RANLIB@
  62836. +SED = @SED@
  62837. SET_MAKE = @SET_MAKE@
  62838. SHELL = @SHELL@
  62839. STRIP = @STRIP@
  62840. VERSION = @VERSION@
  62841. -ac_ct_AR = @ac_ct_AR@
  62842. +abs_builddir = @abs_builddir@
  62843. +abs_srcdir = @abs_srcdir@
  62844. +abs_top_builddir = @abs_top_builddir@
  62845. +abs_top_srcdir = @abs_top_srcdir@
  62846. ac_ct_CC = @ac_ct_CC@
  62847. -ac_ct_CXX = @ac_ct_CXX@
  62848. -ac_ct_F77 = @ac_ct_F77@
  62849. -ac_ct_RANLIB = @ac_ct_RANLIB@
  62850. -ac_ct_STRIP = @ac_ct_STRIP@
  62851. -am__fastdepCC_FALSE = @am__fastdepCC_FALSE@
  62852. -am__fastdepCC_TRUE = @am__fastdepCC_TRUE@
  62853. -am__fastdepCXX_FALSE = @am__fastdepCXX_FALSE@
  62854. -am__fastdepCXX_TRUE = @am__fastdepCXX_TRUE@
  62855. +ac_ct_DUMPBIN = @ac_ct_DUMPBIN@
  62856. am__include = @am__include@
  62857. am__leading_dot = @am__leading_dot@
  62858. am__quote = @am__quote@
  62859. @@ -147,28 +147,41 @@
  62860. build_cpu = @build_cpu@
  62861. build_os = @build_os@
  62862. build_vendor = @build_vendor@
  62863. +builddir = @builddir@
  62864. datadir = @datadir@
  62865. +datarootdir = @datarootdir@
  62866. +docdir = @docdir@
  62867. +dvidir = @dvidir@
  62868. exec_prefix = @exec_prefix@
  62869. host = @host@
  62870. host_alias = @host_alias@
  62871. host_cpu = @host_cpu@
  62872. host_os = @host_os@
  62873. host_vendor = @host_vendor@
  62874. +htmldir = @htmldir@
  62875. includedir = @includedir@
  62876. infodir = @infodir@
  62877. install_sh = @install_sh@
  62878. libdir = @libdir@
  62879. libexecdir = @libexecdir@
  62880. +localedir = @localedir@
  62881. localstatedir = @localstatedir@
  62882. +lt_ECHO = @lt_ECHO@
  62883. mandir = @mandir@
  62884. mkdir_p = @mkdir_p@
  62885. oldincludedir = @oldincludedir@
  62886. +pdfdir = @pdfdir@
  62887. prefix = @prefix@
  62888. program_transform_name = @program_transform_name@
  62889. +psdir = @psdir@
  62890. sbindir = @sbindir@
  62891. sharedstatedir = @sharedstatedir@
  62892. +srcdir = @srcdir@
  62893. sysconfdir = @sysconfdir@
  62894. target_alias = @target_alias@
  62895. +top_build_prefix = @top_build_prefix@
  62896. +top_builddir = @top_builddir@
  62897. +top_srcdir = @top_srcdir@
  62898. # add -pg to enable gprof
  62899. AM_CFLAGS = -D_GNU_SOURCE -fno-builtin -DSBINDIR='"$(sbindir)"'
  62900. @@ -181,14 +194,14 @@
  62901. @for dep in $?; do \
  62902. case '$(am__configure_deps)' in \
  62903. *$$dep*) \
  62904. - cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh \
  62905. - && exit 0; \
  62906. + ( cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh ) \
  62907. + && { if test -f $@; then exit 0; else break; fi; }; \
  62908. exit 1;; \
  62909. esac; \
  62910. done; \
  62911. - echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  62912. - cd $(top_srcdir) && \
  62913. - $(AUTOMAKE) --gnu src/Makefile
  62914. + echo ' cd $(top_srcdir) && $(AUTOMAKE) --gnu src/Makefile'; \
  62915. + $(am__cd) $(top_srcdir) && \
  62916. + $(AUTOMAKE) --gnu src/Makefile
  62917. .PRECIOUS: Makefile
  62918. Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status
  62919. @case '$?' in \
  62920. @@ -206,37 +219,53 @@
  62921. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62922. $(ACLOCAL_M4): $(am__aclocal_m4_deps)
  62923. cd $(top_builddir) && $(MAKE) $(AM_MAKEFLAGS) am--refresh
  62924. +$(am__aclocal_m4_deps):
  62925. install-sbinPROGRAMS: $(sbin_PROGRAMS)
  62926. @$(NORMAL_INSTALL)
  62927. - test -z "$(sbindir)" || $(mkdir_p) "$(DESTDIR)$(sbindir)"
  62928. - @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  62929. - p1=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62930. - if test -f $$p \
  62931. - || test -f $$p1 \
  62932. - ; then \
  62933. - f=`echo "$$p1" | sed 's,^.*/,,;$(transform);s/$$/$(EXEEXT)/'`; \
  62934. - echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) '$$p' '$(DESTDIR)$(sbindir)/$$f'"; \
  62935. - $(INSTALL_PROGRAM_ENV) $(LIBTOOL) --mode=install $(sbinPROGRAMS_INSTALL) "$$p" "$(DESTDIR)$(sbindir)/$$f" || exit 1; \
  62936. - else :; fi; \
  62937. - done
  62938. + test -z "$(sbindir)" || $(MKDIR_P) "$(DESTDIR)$(sbindir)"
  62939. + @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
  62940. + for p in $$list; do echo "$$p $$p"; done | \
  62941. + sed 's/$(EXEEXT)$$//' | \
  62942. + while read p p1; do if test -f $$p || test -f $$p1; \
  62943. + then echo "$$p"; echo "$$p"; else :; fi; \
  62944. + done | \
  62945. + sed -e 'p;s,.*/,,;n;h' -e 's|.*|.|' \
  62946. + -e 'p;x;s,.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/' | \
  62947. + sed 'N;N;N;s,\n, ,g' | \
  62948. + $(AWK) 'BEGIN { files["."] = ""; dirs["."] = 1 } \
  62949. + { d=$$3; if (dirs[d] != 1) { print "d", d; dirs[d] = 1 } \
  62950. + if ($$2 == $$4) files[d] = files[d] " " $$1; \
  62951. + else { print "f", $$3 "/" $$4, $$1; } } \
  62952. + END { for (d in files) print "f", d, files[d] }' | \
  62953. + while read type dir files; do \
  62954. + if test "$$dir" = .; then dir=; else dir=/$$dir; fi; \
  62955. + test -z "$$files" || { \
  62956. + echo " $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files '$(DESTDIR)$(sbindir)$$dir'"; \
  62957. + $(INSTALL_PROGRAM_ENV) $(LIBTOOL) $(AM_LIBTOOLFLAGS) $(LIBTOOLFLAGS) --mode=install $(INSTALL_PROGRAM) $$files "$(DESTDIR)$(sbindir)$$dir" || exit $$?; \
  62958. + } \
  62959. + ; done
  62960. uninstall-sbinPROGRAMS:
  62961. @$(NORMAL_UNINSTALL)
  62962. - @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  62963. - f=`echo "$$p" | sed 's,^.*/,,;s/$(EXEEXT)$$//;$(transform);s/$$/$(EXEEXT)/'`; \
  62964. - echo " rm -f '$(DESTDIR)$(sbindir)/$$f'"; \
  62965. - rm -f "$(DESTDIR)$(sbindir)/$$f"; \
  62966. - done
  62967. + @list='$(sbin_PROGRAMS)'; test -n "$(sbindir)" || list=; \
  62968. + files=`for p in $$list; do echo "$$p"; done | \
  62969. + sed -e 'h;s,^.*/,,;s/$(EXEEXT)$$//;$(transform)' \
  62970. + -e 's/$$/$(EXEEXT)/' `; \
  62971. + test -n "$$list" || exit 0; \
  62972. + echo " ( cd '$(DESTDIR)$(sbindir)' && rm -f" $$files ")"; \
  62973. + cd "$(DESTDIR)$(sbindir)" && rm -f $$files
  62974. clean-sbinPROGRAMS:
  62975. - @list='$(sbin_PROGRAMS)'; for p in $$list; do \
  62976. - f=`echo $$p|sed 's/$(EXEEXT)$$//'`; \
  62977. - echo " rm -f $$p $$f"; \
  62978. - rm -f $$p $$f ; \
  62979. - done
  62980. + @list='$(sbin_PROGRAMS)'; test -n "$$list" || exit 0; \
  62981. + echo " rm -f" $$list; \
  62982. + rm -f $$list || exit $$?; \
  62983. + test -n "$(EXEEXT)" || exit 0; \
  62984. + list=`for p in $$list; do echo "$$p"; done | sed 's/$(EXEEXT)$$//'`; \
  62985. + echo " rm -f" $$list; \
  62986. + rm -f $$list
  62987. chilli$(EXEEXT): $(chilli_OBJECTS) $(chilli_DEPENDENCIES)
  62988. @rm -f chilli$(EXEEXT)
  62989. - $(LINK) $(chilli_LDFLAGS) $(chilli_OBJECTS) $(chilli_LDADD) $(LIBS)
  62990. + $(LINK) $(chilli_OBJECTS) $(chilli_LDADD) $(LIBS)
  62991. mostlyclean-compile:
  62992. -rm -f *.$(OBJEXT)
  62993. @@ -257,22 +286,22 @@
  62994. @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/tun.Po@am__quote@
  62995. .c.o:
  62996. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  62997. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  62998. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  62999. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63000. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  63001. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63002. @am__fastdepCC_FALSE@ $(COMPILE) -c $<
  63003. .c.obj:
  63004. -@am__fastdepCC_TRUE@ if $(COMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ `$(CYGPATH_W) '$<'`; \
  63005. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Po"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  63006. +@am__fastdepCC_TRUE@ $(COMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'`
  63007. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po
  63008. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=no @AMDEPBACKSLASH@
  63009. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63010. @am__fastdepCC_FALSE@ $(COMPILE) -c `$(CYGPATH_W) '$<'`
  63011. .c.lo:
  63012. -@am__fastdepCC_TRUE@ if $(LTCOMPILE) -MT $@ -MD -MP -MF "$(DEPDIR)/$*.Tpo" -c -o $@ $<; \
  63013. -@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/$*.Tpo" "$(DEPDIR)/$*.Plo"; else rm -f "$(DEPDIR)/$*.Tpo"; exit 1; fi
  63014. +@am__fastdepCC_TRUE@ $(LTCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $<
  63015. +@am__fastdepCC_TRUE@ $(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Plo
  63016. @AMDEP_TRUE@@am__fastdepCC_FALSE@ source='$<' object='$@' libtool=yes @AMDEPBACKSLASH@
  63017. @AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
  63018. @am__fastdepCC_FALSE@ $(LTCOMPILE) -c -o $@ $<
  63019. @@ -283,82 +312,85 @@
  63020. clean-libtool:
  63021. -rm -rf .libs _libs
  63022. -distclean-libtool:
  63023. - -rm -f libtool
  63024. -uninstall-info-am:
  63025. -
  63026. ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES)
  63027. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63028. unique=`for i in $$list; do \
  63029. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63030. done | \
  63031. - $(AWK) ' { files[$$0] = 1; } \
  63032. - END { for (i in files) print i; }'`; \
  63033. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63034. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63035. mkid -fID $$unique
  63036. tags: TAGS
  63037. TAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63038. $(TAGS_FILES) $(LISP)
  63039. - tags=; \
  63040. + set x; \
  63041. here=`pwd`; \
  63042. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63043. unique=`for i in $$list; do \
  63044. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63045. done | \
  63046. - $(AWK) ' { files[$$0] = 1; } \
  63047. - END { for (i in files) print i; }'`; \
  63048. - if test -z "$(ETAGS_ARGS)$$tags$$unique"; then :; else \
  63049. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63050. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63051. + shift; \
  63052. + if test -z "$(ETAGS_ARGS)$$*$$unique"; then :; else \
  63053. test -n "$$unique" || unique=$$empty_fix; \
  63054. - $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63055. - $$tags $$unique; \
  63056. + if test $$# -gt 0; then \
  63057. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63058. + "$$@" $$unique; \
  63059. + else \
  63060. + $(ETAGS) $(ETAGSFLAGS) $(AM_ETAGSFLAGS) $(ETAGS_ARGS) \
  63061. + $$unique; \
  63062. + fi; \
  63063. fi
  63064. ctags: CTAGS
  63065. CTAGS: $(HEADERS) $(SOURCES) $(TAGS_DEPENDENCIES) \
  63066. $(TAGS_FILES) $(LISP)
  63067. - tags=; \
  63068. - here=`pwd`; \
  63069. list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \
  63070. unique=`for i in $$list; do \
  63071. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \
  63072. done | \
  63073. - $(AWK) ' { files[$$0] = 1; } \
  63074. - END { for (i in files) print i; }'`; \
  63075. - test -z "$(CTAGS_ARGS)$$tags$$unique" \
  63076. + $(AWK) '{ files[$$0] = 1; nonempty = 1; } \
  63077. + END { if (nonempty) { for (i in files) print i; }; }'`; \
  63078. + test -z "$(CTAGS_ARGS)$$unique" \
  63079. || $(CTAGS) $(CTAGSFLAGS) $(AM_CTAGSFLAGS) $(CTAGS_ARGS) \
  63080. - $$tags $$unique
  63081. + $$unique
  63082. GTAGS:
  63083. here=`$(am__cd) $(top_builddir) && pwd` \
  63084. - && cd $(top_srcdir) \
  63085. - && gtags -i $(GTAGS_ARGS) $$here
  63086. + && $(am__cd) $(top_srcdir) \
  63087. + && gtags -i $(GTAGS_ARGS) "$$here"
  63088. distclean-tags:
  63089. -rm -f TAGS ID GTAGS GRTAGS GSYMS GPATH tags
  63090. distdir: $(DISTFILES)
  63091. - @srcdirstrip=`echo "$(srcdir)" | sed 's|.|.|g'`; \
  63092. - topsrcdirstrip=`echo "$(top_srcdir)" | sed 's|.|.|g'`; \
  63093. - list='$(DISTFILES)'; for file in $$list; do \
  63094. - case $$file in \
  63095. - $(srcdir)/*) file=`echo "$$file" | sed "s|^$$srcdirstrip/||"`;; \
  63096. - $(top_srcdir)/*) file=`echo "$$file" | sed "s|^$$topsrcdirstrip/|$(top_builddir)/|"`;; \
  63097. - esac; \
  63098. + @srcdirstrip=`echo "$(srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63099. + topsrcdirstrip=`echo "$(top_srcdir)" | sed 's/[].[^$$\\*]/\\\\&/g'`; \
  63100. + list='$(DISTFILES)'; \
  63101. + dist_files=`for file in $$list; do echo $$file; done | \
  63102. + sed -e "s|^$$srcdirstrip/||;t" \
  63103. + -e "s|^$$topsrcdirstrip/|$(top_builddir)/|;t"`; \
  63104. + case $$dist_files in \
  63105. + */*) $(MKDIR_P) `echo "$$dist_files" | \
  63106. + sed '/\//!d;s|^|$(distdir)/|;s,/[^/]*$$,,' | \
  63107. + sort -u` ;; \
  63108. + esac; \
  63109. + for file in $$dist_files; do \
  63110. if test -f $$file || test -d $$file; then d=.; else d=$(srcdir); fi; \
  63111. - dir=`echo "$$file" | sed -e 's,/[^/]*$$,,'`; \
  63112. - if test "$$dir" != "$$file" && test "$$dir" != "."; then \
  63113. - dir="/$$dir"; \
  63114. - $(mkdir_p) "$(distdir)$$dir"; \
  63115. - else \
  63116. - dir=''; \
  63117. - fi; \
  63118. if test -d $$d/$$file; then \
  63119. + dir=`echo "/$$file" | sed -e 's,/[^/]*$$,,'`; \
  63120. + if test -d "$(distdir)/$$file"; then \
  63121. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63122. + fi; \
  63123. if test -d $(srcdir)/$$file && test $$d != $(srcdir); then \
  63124. - cp -pR $(srcdir)/$$file $(distdir)$$dir || exit 1; \
  63125. + cp -fpR $(srcdir)/$$file "$(distdir)$$dir" || exit 1; \
  63126. + find "$(distdir)/$$file" -type d ! -perm -700 -exec chmod u+rwx {} \;; \
  63127. fi; \
  63128. - cp -pR $$d/$$file $(distdir)$$dir || exit 1; \
  63129. + cp -fpR $$d/$$file "$(distdir)$$dir" || exit 1; \
  63130. else \
  63131. - test -f $(distdir)/$$file \
  63132. - || cp -p $$d/$$file $(distdir)/$$file \
  63133. + test -f "$(distdir)/$$file" \
  63134. + || cp -p $$d/$$file "$(distdir)/$$file" \
  63135. || exit 1; \
  63136. fi; \
  63137. done
  63138. @@ -367,7 +399,7 @@
  63139. all-am: Makefile $(PROGRAMS)
  63140. installdirs:
  63141. for dir in "$(DESTDIR)$(sbindir)"; do \
  63142. - test -z "$$dir" || $(mkdir_p) "$$dir"; \
  63143. + test -z "$$dir" || $(MKDIR_P) "$$dir"; \
  63144. done
  63145. install: install-am
  63146. install-exec: install-exec-am
  63147. @@ -389,6 +421,7 @@
  63148. distclean-generic:
  63149. -test -z "$(CONFIG_CLEAN_FILES)" || rm -f $(CONFIG_CLEAN_FILES)
  63150. + -test . = "$(srcdir)" || test -z "$(CONFIG_CLEAN_VPATH_FILES)" || rm -f $(CONFIG_CLEAN_VPATH_FILES)
  63151. maintainer-clean-generic:
  63152. @echo "This command is intended for maintainers to use"
  63153. @@ -402,7 +435,7 @@
  63154. -rm -rf ./$(DEPDIR)
  63155. -rm -f Makefile
  63156. distclean-am: clean-am distclean-compile distclean-generic \
  63157. - distclean-libtool distclean-tags
  63158. + distclean-tags
  63159. dvi: dvi-am
  63160. @@ -410,18 +443,38 @@
  63161. html: html-am
  63162. +html-am:
  63163. +
  63164. info: info-am
  63165. info-am:
  63166. install-data-am:
  63167. +install-dvi: install-dvi-am
  63168. +
  63169. +install-dvi-am:
  63170. +
  63171. install-exec-am: install-sbinPROGRAMS
  63172. +install-html: install-html-am
  63173. +
  63174. +install-html-am:
  63175. +
  63176. install-info: install-info-am
  63177. +install-info-am:
  63178. +
  63179. install-man:
  63180. +install-pdf: install-pdf-am
  63181. +
  63182. +install-pdf-am:
  63183. +
  63184. +install-ps: install-ps-am
  63185. +
  63186. +install-ps-am:
  63187. +
  63188. installcheck-am:
  63189. maintainer-clean: maintainer-clean-am
  63190. @@ -442,23 +495,27 @@
  63191. ps-am:
  63192. -uninstall-am: uninstall-info-am uninstall-sbinPROGRAMS
  63193. +uninstall-am: uninstall-sbinPROGRAMS
  63194. +
  63195. +.MAKE: install-am install-strip
  63196. .PHONY: CTAGS GTAGS all all-am check check-am clean clean-generic \
  63197. clean-libtool clean-sbinPROGRAMS ctags distclean \
  63198. distclean-compile distclean-generic distclean-libtool \
  63199. distclean-tags distdir dvi dvi-am html html-am info info-am \
  63200. - install install-am install-data install-data-am install-exec \
  63201. - install-exec-am install-info install-info-am install-man \
  63202. + install install-am install-data install-data-am install-dvi \
  63203. + install-dvi-am install-exec install-exec-am install-html \
  63204. + install-html-am install-info install-info-am install-man \
  63205. + install-pdf install-pdf-am install-ps install-ps-am \
  63206. install-sbinPROGRAMS install-strip installcheck \
  63207. installcheck-am installdirs maintainer-clean \
  63208. maintainer-clean-generic mostlyclean mostlyclean-compile \
  63209. mostlyclean-generic mostlyclean-libtool pdf pdf-am ps ps-am \
  63210. - tags uninstall uninstall-am uninstall-info-am \
  63211. - uninstall-sbinPROGRAMS
  63212. + tags uninstall uninstall-am uninstall-sbinPROGRAMS
  63213. # chilli_LDFLAGS = -lcrypt
  63214. +
  63215. # Tell versions [3.59,3.63) of GNU make to not export all variables.
  63216. # Otherwise a system limit (for SysV at least) may be exceeded.
  63217. .NOEXPORT: