300-no_autotools.patch 428 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028
  1. Index: linux-atm-2.4.1/aclocal.m4
  2. ===================================================================
  3. --- linux-atm-2.4.1.orig/aclocal.m4 2007-10-20 19:19:11.710295812 +0200
  4. +++ linux-atm-2.4.1/aclocal.m4 2007-10-20 19:19:17.570629771 +0200
  5. @@ -10,6 +10,825 @@
  6. dnl even the implied warranty of MERCHANTABILITY or FITNESS FOR A
  7. dnl PARTICULAR PURPOSE.
  8. +# lib-prefix.m4 serial 4 (gettext-0.14.2)
  9. +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  10. +dnl This file is free software; the Free Software Foundation
  11. +dnl gives unlimited permission to copy and/or distribute it,
  12. +dnl with or without modifications, as long as this notice is preserved.
  13. +
  14. +dnl From Bruno Haible.
  15. +
  16. +dnl AC_LIB_ARG_WITH is synonymous to AC_ARG_WITH in autoconf-2.13, and
  17. +dnl similar to AC_ARG_WITH in autoconf 2.52...2.57 except that is doesn't
  18. +dnl require excessive bracketing.
  19. +ifdef([AC_HELP_STRING],
  20. +[AC_DEFUN([AC_LIB_ARG_WITH], [AC_ARG_WITH([$1],[[$2]],[$3],[$4])])],
  21. +[AC_DEFUN([AC_][LIB_ARG_WITH], [AC_ARG_WITH([$1],[$2],[$3],[$4])])])
  22. +
  23. +dnl AC_LIB_PREFIX adds to the CPPFLAGS and LDFLAGS the flags that are needed
  24. +dnl to access previously installed libraries. The basic assumption is that
  25. +dnl a user will want packages to use other packages he previously installed
  26. +dnl with the same --prefix option.
  27. +dnl This macro is not needed if only AC_LIB_LINKFLAGS is used to locate
  28. +dnl libraries, but is otherwise very convenient.
  29. +AC_DEFUN([AC_LIB_PREFIX],
  30. +[
  31. + AC_BEFORE([$0], [AC_LIB_LINKFLAGS])
  32. + AC_REQUIRE([AC_PROG_CC])
  33. + AC_REQUIRE([AC_CANONICAL_HOST])
  34. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  35. + dnl By default, look in $includedir and $libdir.
  36. + use_additional=yes
  37. + AC_LIB_WITH_FINAL_PREFIX([
  38. + eval additional_includedir=\"$includedir\"
  39. + eval additional_libdir=\"$libdir\"
  40. + ])
  41. + AC_LIB_ARG_WITH([lib-prefix],
  42. +[ --with-lib-prefix[=DIR] search for libraries in DIR/include and DIR/lib
  43. + --without-lib-prefix don't search for libraries in includedir and libdir],
  44. +[
  45. + if test "X$withval" = "Xno"; then
  46. + use_additional=no
  47. + else
  48. + if test "X$withval" = "X"; then
  49. + AC_LIB_WITH_FINAL_PREFIX([
  50. + eval additional_includedir=\"$includedir\"
  51. + eval additional_libdir=\"$libdir\"
  52. + ])
  53. + else
  54. + additional_includedir="$withval/include"
  55. + additional_libdir="$withval/lib"
  56. + fi
  57. + fi
  58. +])
  59. + if test $use_additional = yes; then
  60. + dnl Potentially add $additional_includedir to $CPPFLAGS.
  61. + dnl But don't add it
  62. + dnl 1. if it's the standard /usr/include,
  63. + dnl 2. if it's already present in $CPPFLAGS,
  64. + dnl 3. if it's /usr/local/include and we are using GCC on Linux,
  65. + dnl 4. if it doesn't exist as a directory.
  66. + if test "X$additional_includedir" != "X/usr/include"; then
  67. + haveit=
  68. + for x in $CPPFLAGS; do
  69. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  70. + if test "X$x" = "X-I$additional_includedir"; then
  71. + haveit=yes
  72. + break
  73. + fi
  74. + done
  75. + if test -z "$haveit"; then
  76. + if test "X$additional_includedir" = "X/usr/local/include"; then
  77. + if test -n "$GCC"; then
  78. + case $host_os in
  79. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  80. + esac
  81. + fi
  82. + fi
  83. + if test -z "$haveit"; then
  84. + if test -d "$additional_includedir"; then
  85. + dnl Really add $additional_includedir to $CPPFLAGS.
  86. + CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }-I$additional_includedir"
  87. + fi
  88. + fi
  89. + fi
  90. + fi
  91. + dnl Potentially add $additional_libdir to $LDFLAGS.
  92. + dnl But don't add it
  93. + dnl 1. if it's the standard /usr/lib,
  94. + dnl 2. if it's already present in $LDFLAGS,
  95. + dnl 3. if it's /usr/local/lib and we are using GCC on Linux,
  96. + dnl 4. if it doesn't exist as a directory.
  97. + if test "X$additional_libdir" != "X/usr/lib"; then
  98. + haveit=
  99. + for x in $LDFLAGS; do
  100. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  101. + if test "X$x" = "X-L$additional_libdir"; then
  102. + haveit=yes
  103. + break
  104. + fi
  105. + done
  106. + if test -z "$haveit"; then
  107. + if test "X$additional_libdir" = "X/usr/local/lib"; then
  108. + if test -n "$GCC"; then
  109. + case $host_os in
  110. + linux*) haveit=yes;;
  111. + esac
  112. + fi
  113. + fi
  114. + if test -z "$haveit"; then
  115. + if test -d "$additional_libdir"; then
  116. + dnl Really add $additional_libdir to $LDFLAGS.
  117. + LDFLAGS="${LDFLAGS}${LDFLAGS:+ }-L$additional_libdir"
  118. + fi
  119. + fi
  120. + fi
  121. + fi
  122. + fi
  123. +])
  124. +
  125. +dnl AC_LIB_PREPARE_PREFIX creates variables acl_final_prefix,
  126. +dnl acl_final_exec_prefix, containing the values to which $prefix and
  127. +dnl $exec_prefix will expand at the end of the configure script.
  128. +AC_DEFUN([AC_LIB_PREPARE_PREFIX],
  129. +[
  130. + dnl Unfortunately, prefix and exec_prefix get only finally determined
  131. + dnl at the end of configure.
  132. + if test "X$prefix" = "XNONE"; then
  133. + acl_final_prefix="$ac_default_prefix"
  134. + else
  135. + acl_final_prefix="$prefix"
  136. + fi
  137. + if test "X$exec_prefix" = "XNONE"; then
  138. + acl_final_exec_prefix='${prefix}'
  139. + else
  140. + acl_final_exec_prefix="$exec_prefix"
  141. + fi
  142. + acl_save_prefix="$prefix"
  143. + prefix="$acl_final_prefix"
  144. + eval acl_final_exec_prefix=\"$acl_final_exec_prefix\"
  145. + prefix="$acl_save_prefix"
  146. +])
  147. +
  148. +dnl AC_LIB_WITH_FINAL_PREFIX([statement]) evaluates statement, with the
  149. +dnl variables prefix and exec_prefix bound to the values they will have
  150. +dnl at the end of the configure script.
  151. +AC_DEFUN([AC_LIB_WITH_FINAL_PREFIX],
  152. +[
  153. + acl_save_prefix="$prefix"
  154. + prefix="$acl_final_prefix"
  155. + acl_save_exec_prefix="$exec_prefix"
  156. + exec_prefix="$acl_final_exec_prefix"
  157. + $1
  158. + exec_prefix="$acl_save_exec_prefix"
  159. + prefix="$acl_save_prefix"
  160. +])
  161. +
  162. +# lib-link.m4 serial 6 (gettext-0.14.3)
  163. +dnl Copyright (C) 2001-2005 Free Software Foundation, Inc.
  164. +dnl This file is free software; the Free Software Foundation
  165. +dnl gives unlimited permission to copy and/or distribute it,
  166. +dnl with or without modifications, as long as this notice is preserved.
  167. +
  168. +dnl From Bruno Haible.
  169. +
  170. +AC_PREREQ(2.50)
  171. +
  172. +dnl AC_LIB_LINKFLAGS(name [, dependencies]) searches for libname and
  173. +dnl the libraries corresponding to explicit and implicit dependencies.
  174. +dnl Sets and AC_SUBSTs the LIB${NAME} and LTLIB${NAME} variables and
  175. +dnl augments the CPPFLAGS variable.
  176. +AC_DEFUN([AC_LIB_LINKFLAGS],
  177. +[
  178. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  179. + AC_REQUIRE([AC_LIB_RPATH])
  180. + define([Name],[translit([$1],[./-], [___])])
  181. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  182. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  183. + AC_CACHE_CHECK([how to link with lib[]$1], [ac_cv_lib[]Name[]_libs], [
  184. + AC_LIB_LINKFLAGS_BODY([$1], [$2])
  185. + ac_cv_lib[]Name[]_libs="$LIB[]NAME"
  186. + ac_cv_lib[]Name[]_ltlibs="$LTLIB[]NAME"
  187. + ac_cv_lib[]Name[]_cppflags="$INC[]NAME"
  188. + ])
  189. + LIB[]NAME="$ac_cv_lib[]Name[]_libs"
  190. + LTLIB[]NAME="$ac_cv_lib[]Name[]_ltlibs"
  191. + INC[]NAME="$ac_cv_lib[]Name[]_cppflags"
  192. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  193. + AC_SUBST([LIB]NAME)
  194. + AC_SUBST([LTLIB]NAME)
  195. + dnl Also set HAVE_LIB[]NAME so that AC_LIB_HAVE_LINKFLAGS can reuse the
  196. + dnl results of this search when this library appears as a dependency.
  197. + HAVE_LIB[]NAME=yes
  198. + undefine([Name])
  199. + undefine([NAME])
  200. +])
  201. +
  202. +dnl AC_LIB_HAVE_LINKFLAGS(name, dependencies, includes, testcode)
  203. +dnl searches for libname and the libraries corresponding to explicit and
  204. +dnl implicit dependencies, together with the specified include files and
  205. +dnl the ability to compile and link the specified testcode. If found, it
  206. +dnl sets and AC_SUBSTs HAVE_LIB${NAME}=yes and the LIB${NAME} and
  207. +dnl LTLIB${NAME} variables and augments the CPPFLAGS variable, and
  208. +dnl #defines HAVE_LIB${NAME} to 1. Otherwise, it sets and AC_SUBSTs
  209. +dnl HAVE_LIB${NAME}=no and LIB${NAME} and LTLIB${NAME} to empty.
  210. +AC_DEFUN([AC_LIB_HAVE_LINKFLAGS],
  211. +[
  212. + AC_REQUIRE([AC_LIB_PREPARE_PREFIX])
  213. + AC_REQUIRE([AC_LIB_RPATH])
  214. + define([Name],[translit([$1],[./-], [___])])
  215. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  216. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  217. +
  218. + dnl Search for lib[]Name and define LIB[]NAME, LTLIB[]NAME and INC[]NAME
  219. + dnl accordingly.
  220. + AC_LIB_LINKFLAGS_BODY([$1], [$2])
  221. +
  222. + dnl Add $INC[]NAME to CPPFLAGS before performing the following checks,
  223. + dnl because if the user has installed lib[]Name and not disabled its use
  224. + dnl via --without-lib[]Name-prefix, he wants to use it.
  225. + ac_save_CPPFLAGS="$CPPFLAGS"
  226. + AC_LIB_APPENDTOVAR([CPPFLAGS], [$INC]NAME)
  227. +
  228. + AC_CACHE_CHECK([for lib[]$1], [ac_cv_lib[]Name], [
  229. + ac_save_LIBS="$LIBS"
  230. + LIBS="$LIBS $LIB[]NAME"
  231. + AC_TRY_LINK([$3], [$4], [ac_cv_lib[]Name=yes], [ac_cv_lib[]Name=no])
  232. + LIBS="$ac_save_LIBS"
  233. + ])
  234. + if test "$ac_cv_lib[]Name" = yes; then
  235. + HAVE_LIB[]NAME=yes
  236. + AC_DEFINE([HAVE_LIB]NAME, 1, [Define if you have the $1 library.])
  237. + AC_MSG_CHECKING([how to link with lib[]$1])
  238. + AC_MSG_RESULT([$LIB[]NAME])
  239. + else
  240. + HAVE_LIB[]NAME=no
  241. + dnl If $LIB[]NAME didn't lead to a usable library, we don't need
  242. + dnl $INC[]NAME either.
  243. + CPPFLAGS="$ac_save_CPPFLAGS"
  244. + LIB[]NAME=
  245. + LTLIB[]NAME=
  246. + fi
  247. + AC_SUBST([HAVE_LIB]NAME)
  248. + AC_SUBST([LIB]NAME)
  249. + AC_SUBST([LTLIB]NAME)
  250. + undefine([Name])
  251. + undefine([NAME])
  252. +])
  253. +
  254. +dnl Determine the platform dependent parameters needed to use rpath:
  255. +dnl libext, shlibext, hardcode_libdir_flag_spec, hardcode_libdir_separator,
  256. +dnl hardcode_direct, hardcode_minus_L.
  257. +AC_DEFUN([AC_LIB_RPATH],
  258. +[
  259. + dnl Tell automake >= 1.10 to complain if config.rpath is missing.
  260. + m4_ifdef([AC_REQUIRE_AUX_FILE], [AC_REQUIRE_AUX_FILE([config.rpath])])
  261. + AC_REQUIRE([AC_PROG_CC]) dnl we use $CC, $GCC, $LDFLAGS
  262. + AC_REQUIRE([AC_LIB_PROG_LD]) dnl we use $LD, $with_gnu_ld
  263. + AC_REQUIRE([AC_CANONICAL_HOST]) dnl we use $host
  264. + AC_REQUIRE([AC_CONFIG_AUX_DIR_DEFAULT]) dnl we use $ac_aux_dir
  265. + AC_CACHE_CHECK([for shared library run path origin], acl_cv_rpath, [
  266. + CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \
  267. + ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh
  268. + . ./conftest.sh
  269. + rm -f ./conftest.sh
  270. + acl_cv_rpath=done
  271. + ])
  272. + wl="$acl_cv_wl"
  273. + libext="$acl_cv_libext"
  274. + shlibext="$acl_cv_shlibext"
  275. + hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec"
  276. + hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator"
  277. + hardcode_direct="$acl_cv_hardcode_direct"
  278. + hardcode_minus_L="$acl_cv_hardcode_minus_L"
  279. + dnl Determine whether the user wants rpath handling at all.
  280. + AC_ARG_ENABLE(rpath,
  281. + [ --disable-rpath do not hardcode runtime library paths],
  282. + :, enable_rpath=yes)
  283. +])
  284. +
  285. +dnl AC_LIB_LINKFLAGS_BODY(name [, dependencies]) searches for libname and
  286. +dnl the libraries corresponding to explicit and implicit dependencies.
  287. +dnl Sets the LIB${NAME}, LTLIB${NAME} and INC${NAME} variables.
  288. +AC_DEFUN([AC_LIB_LINKFLAGS_BODY],
  289. +[
  290. + define([NAME],[translit([$1],[abcdefghijklmnopqrstuvwxyz./-],
  291. + [ABCDEFGHIJKLMNOPQRSTUVWXYZ___])])
  292. + dnl By default, look in $includedir and $libdir.
  293. + use_additional=yes
  294. + AC_LIB_WITH_FINAL_PREFIX([
  295. + eval additional_includedir=\"$includedir\"
  296. + eval additional_libdir=\"$libdir\"
  297. + ])
  298. + AC_LIB_ARG_WITH([lib$1-prefix],
  299. +[ --with-lib$1-prefix[=DIR] search for lib$1 in DIR/include and DIR/lib
  300. + --without-lib$1-prefix don't search for lib$1 in includedir and libdir],
  301. +[
  302. + if test "X$withval" = "Xno"; then
  303. + use_additional=no
  304. + else
  305. + if test "X$withval" = "X"; then
  306. + AC_LIB_WITH_FINAL_PREFIX([
  307. + eval additional_includedir=\"$includedir\"
  308. + eval additional_libdir=\"$libdir\"
  309. + ])
  310. + else
  311. + additional_includedir="$withval/include"
  312. + additional_libdir="$withval/lib"
  313. + fi
  314. + fi
  315. +])
  316. + dnl Search the library and its dependencies in $additional_libdir and
  317. + dnl $LDFLAGS. Using breadth-first-seach.
  318. + LIB[]NAME=
  319. + LTLIB[]NAME=
  320. + INC[]NAME=
  321. + rpathdirs=
  322. + ltrpathdirs=
  323. + names_already_handled=
  324. + names_next_round='$1 $2'
  325. + while test -n "$names_next_round"; do
  326. + names_this_round="$names_next_round"
  327. + names_next_round=
  328. + for name in $names_this_round; do
  329. + already_handled=
  330. + for n in $names_already_handled; do
  331. + if test "$n" = "$name"; then
  332. + already_handled=yes
  333. + break
  334. + fi
  335. + done
  336. + if test -z "$already_handled"; then
  337. + names_already_handled="$names_already_handled $name"
  338. + dnl See if it was already located by an earlier AC_LIB_LINKFLAGS
  339. + dnl or AC_LIB_HAVE_LINKFLAGS call.
  340. + uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'`
  341. + eval value=\"\$HAVE_LIB$uppername\"
  342. + if test -n "$value"; then
  343. + if test "$value" = yes; then
  344. + eval value=\"\$LIB$uppername\"
  345. + test -z "$value" || LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$value"
  346. + eval value=\"\$LTLIB$uppername\"
  347. + test -z "$value" || LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$value"
  348. + else
  349. + dnl An earlier call to AC_LIB_HAVE_LINKFLAGS has determined
  350. + dnl that this library doesn't exist. So just drop it.
  351. + :
  352. + fi
  353. + else
  354. + dnl Search the library lib$name in $additional_libdir and $LDFLAGS
  355. + dnl and the already constructed $LIBNAME/$LTLIBNAME.
  356. + found_dir=
  357. + found_la=
  358. + found_so=
  359. + found_a=
  360. + if test $use_additional = yes; then
  361. + if test -n "$shlibext" && test -f "$additional_libdir/lib$name.$shlibext"; then
  362. + found_dir="$additional_libdir"
  363. + found_so="$additional_libdir/lib$name.$shlibext"
  364. + if test -f "$additional_libdir/lib$name.la"; then
  365. + found_la="$additional_libdir/lib$name.la"
  366. + fi
  367. + else
  368. + if test -f "$additional_libdir/lib$name.$libext"; then
  369. + found_dir="$additional_libdir"
  370. + found_a="$additional_libdir/lib$name.$libext"
  371. + if test -f "$additional_libdir/lib$name.la"; then
  372. + found_la="$additional_libdir/lib$name.la"
  373. + fi
  374. + fi
  375. + fi
  376. + fi
  377. + if test "X$found_dir" = "X"; then
  378. + for x in $LDFLAGS $LTLIB[]NAME; do
  379. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  380. + case "$x" in
  381. + -L*)
  382. + dir=`echo "X$x" | sed -e 's/^X-L//'`
  383. + if test -n "$shlibext" && test -f "$dir/lib$name.$shlibext"; then
  384. + found_dir="$dir"
  385. + found_so="$dir/lib$name.$shlibext"
  386. + if test -f "$dir/lib$name.la"; then
  387. + found_la="$dir/lib$name.la"
  388. + fi
  389. + else
  390. + if test -f "$dir/lib$name.$libext"; then
  391. + found_dir="$dir"
  392. + found_a="$dir/lib$name.$libext"
  393. + if test -f "$dir/lib$name.la"; then
  394. + found_la="$dir/lib$name.la"
  395. + fi
  396. + fi
  397. + fi
  398. + ;;
  399. + esac
  400. + if test "X$found_dir" != "X"; then
  401. + break
  402. + fi
  403. + done
  404. + fi
  405. + if test "X$found_dir" != "X"; then
  406. + dnl Found the library.
  407. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$found_dir -l$name"
  408. + if test "X$found_so" != "X"; then
  409. + dnl Linking with a shared library. We attempt to hardcode its
  410. + dnl directory into the executable's runpath, unless it's the
  411. + dnl standard /usr/lib.
  412. + if test "$enable_rpath" = no || test "X$found_dir" = "X/usr/lib"; then
  413. + dnl No hardcoding is needed.
  414. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  415. + else
  416. + dnl Use an explicit option to hardcode DIR into the resulting
  417. + dnl binary.
  418. + dnl Potentially add DIR to ltrpathdirs.
  419. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  420. + haveit=
  421. + for x in $ltrpathdirs; do
  422. + if test "X$x" = "X$found_dir"; then
  423. + haveit=yes
  424. + break
  425. + fi
  426. + done
  427. + if test -z "$haveit"; then
  428. + ltrpathdirs="$ltrpathdirs $found_dir"
  429. + fi
  430. + dnl The hardcoding into $LIBNAME is system dependent.
  431. + if test "$hardcode_direct" = yes; then
  432. + dnl Using DIR/libNAME.so during linking hardcodes DIR into the
  433. + dnl resulting binary.
  434. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  435. + else
  436. + if test -n "$hardcode_libdir_flag_spec" && test "$hardcode_minus_L" = no; then
  437. + dnl Use an explicit option to hardcode DIR into the resulting
  438. + dnl binary.
  439. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  440. + dnl Potentially add DIR to rpathdirs.
  441. + dnl The rpathdirs will be appended to $LIBNAME at the end.
  442. + haveit=
  443. + for x in $rpathdirs; do
  444. + if test "X$x" = "X$found_dir"; then
  445. + haveit=yes
  446. + break
  447. + fi
  448. + done
  449. + if test -z "$haveit"; then
  450. + rpathdirs="$rpathdirs $found_dir"
  451. + fi
  452. + else
  453. + dnl Rely on "-L$found_dir".
  454. + dnl But don't add it if it's already contained in the LDFLAGS
  455. + dnl or the already constructed $LIBNAME
  456. + haveit=
  457. + for x in $LDFLAGS $LIB[]NAME; do
  458. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  459. + if test "X$x" = "X-L$found_dir"; then
  460. + haveit=yes
  461. + break
  462. + fi
  463. + done
  464. + if test -z "$haveit"; then
  465. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir"
  466. + fi
  467. + if test "$hardcode_minus_L" != no; then
  468. + dnl FIXME: Not sure whether we should use
  469. + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  470. + dnl here.
  471. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_so"
  472. + else
  473. + dnl We cannot use $hardcode_runpath_var and LD_RUN_PATH
  474. + dnl here, because this doesn't fit in flags passed to the
  475. + dnl compiler. So give up. No hardcoding. This affects only
  476. + dnl very old systems.
  477. + dnl FIXME: Not sure whether we should use
  478. + dnl "-L$found_dir -l$name" or "-L$found_dir $found_so"
  479. + dnl here.
  480. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  481. + fi
  482. + fi
  483. + fi
  484. + fi
  485. + else
  486. + if test "X$found_a" != "X"; then
  487. + dnl Linking with a static library.
  488. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$found_a"
  489. + else
  490. + dnl We shouldn't come here, but anyway it's good to have a
  491. + dnl fallback.
  492. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$found_dir -l$name"
  493. + fi
  494. + fi
  495. + dnl Assume the include files are nearby.
  496. + additional_includedir=
  497. + case "$found_dir" in
  498. + */lib | */lib/)
  499. + basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e 's,/lib/*$,,'`
  500. + additional_includedir="$basedir/include"
  501. + ;;
  502. + esac
  503. + if test "X$additional_includedir" != "X"; then
  504. + dnl Potentially add $additional_includedir to $INCNAME.
  505. + dnl But don't add it
  506. + dnl 1. if it's the standard /usr/include,
  507. + dnl 2. if it's /usr/local/include and we are using GCC on Linux,
  508. + dnl 3. if it's already present in $CPPFLAGS or the already
  509. + dnl constructed $INCNAME,
  510. + dnl 4. if it doesn't exist as a directory.
  511. + if test "X$additional_includedir" != "X/usr/include"; then
  512. + haveit=
  513. + if test "X$additional_includedir" = "X/usr/local/include"; then
  514. + if test -n "$GCC"; then
  515. + case $host_os in
  516. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  517. + esac
  518. + fi
  519. + fi
  520. + if test -z "$haveit"; then
  521. + for x in $CPPFLAGS $INC[]NAME; do
  522. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  523. + if test "X$x" = "X-I$additional_includedir"; then
  524. + haveit=yes
  525. + break
  526. + fi
  527. + done
  528. + if test -z "$haveit"; then
  529. + if test -d "$additional_includedir"; then
  530. + dnl Really add $additional_includedir to $INCNAME.
  531. + INC[]NAME="${INC[]NAME}${INC[]NAME:+ }-I$additional_includedir"
  532. + fi
  533. + fi
  534. + fi
  535. + fi
  536. + fi
  537. + dnl Look for dependencies.
  538. + if test -n "$found_la"; then
  539. + dnl Read the .la file. It defines the variables
  540. + dnl dlname, library_names, old_library, dependency_libs, current,
  541. + dnl age, revision, installed, dlopen, dlpreopen, libdir.
  542. + save_libdir="$libdir"
  543. + case "$found_la" in
  544. + */* | *\\*) . "$found_la" ;;
  545. + *) . "./$found_la" ;;
  546. + esac
  547. + libdir="$save_libdir"
  548. + dnl We use only dependency_libs.
  549. + for dep in $dependency_libs; do
  550. + case "$dep" in
  551. + -L*)
  552. + additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'`
  553. + dnl Potentially add $additional_libdir to $LIBNAME and $LTLIBNAME.
  554. + dnl But don't add it
  555. + dnl 1. if it's the standard /usr/lib,
  556. + dnl 2. if it's /usr/local/lib and we are using GCC on Linux,
  557. + dnl 3. if it's already present in $LDFLAGS or the already
  558. + dnl constructed $LIBNAME,
  559. + dnl 4. if it doesn't exist as a directory.
  560. + if test "X$additional_libdir" != "X/usr/lib"; then
  561. + haveit=
  562. + if test "X$additional_libdir" = "X/usr/local/lib"; then
  563. + if test -n "$GCC"; then
  564. + case $host_os in
  565. + linux* | gnu* | k*bsd*-gnu) haveit=yes;;
  566. + esac
  567. + fi
  568. + fi
  569. + if test -z "$haveit"; then
  570. + haveit=
  571. + for x in $LDFLAGS $LIB[]NAME; do
  572. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  573. + if test "X$x" = "X-L$additional_libdir"; then
  574. + haveit=yes
  575. + break
  576. + fi
  577. + done
  578. + if test -z "$haveit"; then
  579. + if test -d "$additional_libdir"; then
  580. + dnl Really add $additional_libdir to $LIBNAME.
  581. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-L$additional_libdir"
  582. + fi
  583. + fi
  584. + haveit=
  585. + for x in $LDFLAGS $LTLIB[]NAME; do
  586. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  587. + if test "X$x" = "X-L$additional_libdir"; then
  588. + haveit=yes
  589. + break
  590. + fi
  591. + done
  592. + if test -z "$haveit"; then
  593. + if test -d "$additional_libdir"; then
  594. + dnl Really add $additional_libdir to $LTLIBNAME.
  595. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-L$additional_libdir"
  596. + fi
  597. + fi
  598. + fi
  599. + fi
  600. + ;;
  601. + -R*)
  602. + dir=`echo "X$dep" | sed -e 's/^X-R//'`
  603. + if test "$enable_rpath" != no; then
  604. + dnl Potentially add DIR to rpathdirs.
  605. + dnl The rpathdirs will be appended to $LIBNAME at the end.
  606. + haveit=
  607. + for x in $rpathdirs; do
  608. + if test "X$x" = "X$dir"; then
  609. + haveit=yes
  610. + break
  611. + fi
  612. + done
  613. + if test -z "$haveit"; then
  614. + rpathdirs="$rpathdirs $dir"
  615. + fi
  616. + dnl Potentially add DIR to ltrpathdirs.
  617. + dnl The ltrpathdirs will be appended to $LTLIBNAME at the end.
  618. + haveit=
  619. + for x in $ltrpathdirs; do
  620. + if test "X$x" = "X$dir"; then
  621. + haveit=yes
  622. + break
  623. + fi
  624. + done
  625. + if test -z "$haveit"; then
  626. + ltrpathdirs="$ltrpathdirs $dir"
  627. + fi
  628. + fi
  629. + ;;
  630. + -l*)
  631. + dnl Handle this in the next round.
  632. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'`
  633. + ;;
  634. + *.la)
  635. + dnl Handle this in the next round. Throw away the .la's
  636. + dnl directory; it is already contained in a preceding -L
  637. + dnl option.
  638. + names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'`
  639. + ;;
  640. + *)
  641. + dnl Most likely an immediate library name.
  642. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$dep"
  643. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }$dep"
  644. + ;;
  645. + esac
  646. + done
  647. + fi
  648. + else
  649. + dnl Didn't find the library; assume it is in the system directories
  650. + dnl known to the linker and runtime loader. (All the system
  651. + dnl directories known to the linker should also be known to the
  652. + dnl runtime loader, otherwise the system is severely misconfigured.)
  653. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }-l$name"
  654. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-l$name"
  655. + fi
  656. + fi
  657. + fi
  658. + done
  659. + done
  660. + if test "X$rpathdirs" != "X"; then
  661. + if test -n "$hardcode_libdir_separator"; then
  662. + dnl Weird platform: only the last -rpath option counts, the user must
  663. + dnl pass all path elements in one option. We can arrange that for a
  664. + dnl single library, but not when more than one $LIBNAMEs are used.
  665. + alldirs=
  666. + for found_dir in $rpathdirs; do
  667. + alldirs="${alldirs}${alldirs:+$hardcode_libdir_separator}$found_dir"
  668. + done
  669. + dnl Note: hardcode_libdir_flag_spec uses $libdir and $wl.
  670. + acl_save_libdir="$libdir"
  671. + libdir="$alldirs"
  672. + eval flag=\"$hardcode_libdir_flag_spec\"
  673. + libdir="$acl_save_libdir"
  674. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  675. + else
  676. + dnl The -rpath options are cumulative.
  677. + for found_dir in $rpathdirs; do
  678. + acl_save_libdir="$libdir"
  679. + libdir="$found_dir"
  680. + eval flag=\"$hardcode_libdir_flag_spec\"
  681. + libdir="$acl_save_libdir"
  682. + LIB[]NAME="${LIB[]NAME}${LIB[]NAME:+ }$flag"
  683. + done
  684. + fi
  685. + fi
  686. + if test "X$ltrpathdirs" != "X"; then
  687. + dnl When using libtool, the option that works for both libraries and
  688. + dnl executables is -R. The -R options are cumulative.
  689. + for found_dir in $ltrpathdirs; do
  690. + LTLIB[]NAME="${LTLIB[]NAME}${LTLIB[]NAME:+ }-R$found_dir"
  691. + done
  692. + fi
  693. +])
  694. +
  695. +dnl AC_LIB_APPENDTOVAR(VAR, CONTENTS) appends the elements of CONTENTS to VAR,
  696. +dnl unless already present in VAR.
  697. +dnl Works only for CPPFLAGS, not for LIB* variables because that sometimes
  698. +dnl contains two or three consecutive elements that belong together.
  699. +AC_DEFUN([AC_LIB_APPENDTOVAR],
  700. +[
  701. + for element in [$2]; do
  702. + haveit=
  703. + for x in $[$1]; do
  704. + AC_LIB_WITH_FINAL_PREFIX([eval x=\"$x\"])
  705. + if test "X$x" = "X$element"; then
  706. + haveit=yes
  707. + break
  708. + fi
  709. + done
  710. + if test -z "$haveit"; then
  711. + [$1]="${[$1]}${[$1]:+ }$element"
  712. + fi
  713. + done
  714. +])
  715. +
  716. +# lib-ld.m4 serial 3 (gettext-0.13)
  717. +dnl Copyright (C) 1996-2003 Free Software Foundation, Inc.
  718. +dnl This file is free software; the Free Software Foundation
  719. +dnl gives unlimited permission to copy and/or distribute it,
  720. +dnl with or without modifications, as long as this notice is preserved.
  721. +
  722. +dnl Subroutines of libtool.m4,
  723. +dnl with replacements s/AC_/AC_LIB/ and s/lt_cv/acl_cv/ to avoid collision
  724. +dnl with libtool.m4.
  725. +
  726. +dnl From libtool-1.4. Sets the variable with_gnu_ld to yes or no.
  727. +AC_DEFUN([AC_LIB_PROG_LD_GNU],
  728. +[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], acl_cv_prog_gnu_ld,
  729. +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  730. +case `$LD -v 2>&1 </dev/null` in
  731. +*GNU* | *'with BFD'*)
  732. + acl_cv_prog_gnu_ld=yes ;;
  733. +*)
  734. + acl_cv_prog_gnu_ld=no ;;
  735. +esac])
  736. +with_gnu_ld=$acl_cv_prog_gnu_ld
  737. +])
  738. +
  739. +dnl From libtool-1.4. Sets the variable LD.
  740. +AC_DEFUN([AC_LIB_PROG_LD],
  741. +[AC_ARG_WITH(gnu-ld,
  742. +[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  743. +test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  744. +AC_REQUIRE([AC_PROG_CC])dnl
  745. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  746. +# Prepare PATH_SEPARATOR.
  747. +# The user is always right.
  748. +if test "${PATH_SEPARATOR+set}" != set; then
  749. + echo "#! /bin/sh" >conf$$.sh
  750. + echo "exit 0" >>conf$$.sh
  751. + chmod +x conf$$.sh
  752. + if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
  753. + PATH_SEPARATOR=';'
  754. + else
  755. + PATH_SEPARATOR=:
  756. + fi
  757. + rm -f conf$$.sh
  758. +fi
  759. +ac_prog=ld
  760. +if test "$GCC" = yes; then
  761. + # Check if gcc -print-prog-name=ld gives a path.
  762. + AC_MSG_CHECKING([for ld used by GCC])
  763. + case $host in
  764. + *-*-mingw*)
  765. + # gcc leaves a trailing carriage return which upsets mingw
  766. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  767. + *)
  768. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  769. + esac
  770. + case $ac_prog in
  771. + # Accept absolute paths.
  772. + [[\\/]* | [A-Za-z]:[\\/]*)]
  773. + [re_direlt='/[^/][^/]*/\.\./']
  774. + # Canonicalize the path of ld
  775. + ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  776. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  777. + ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  778. + done
  779. + test -z "$LD" && LD="$ac_prog"
  780. + ;;
  781. + "")
  782. + # If it fails, then pretend we aren't using GCC.
  783. + ac_prog=ld
  784. + ;;
  785. + *)
  786. + # If it is relative, then search for the first ld in PATH.
  787. + with_gnu_ld=unknown
  788. + ;;
  789. + esac
  790. +elif test "$with_gnu_ld" = yes; then
  791. + AC_MSG_CHECKING([for GNU ld])
  792. +else
  793. + AC_MSG_CHECKING([for non-GNU ld])
  794. +fi
  795. +AC_CACHE_VAL(acl_cv_path_LD,
  796. +[if test -z "$LD"; then
  797. + IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}"
  798. + for ac_dir in $PATH; do
  799. + test -z "$ac_dir" && ac_dir=.
  800. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  801. + acl_cv_path_LD="$ac_dir/$ac_prog"
  802. + # Check to see if the program is GNU ld. I'd rather use --version,
  803. + # but apparently some GNU ld's only accept -v.
  804. + # Break only if it was the GNU/non-GNU ld that we prefer.
  805. + case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in
  806. + *GNU* | *'with BFD'*)
  807. + test "$with_gnu_ld" != no && break ;;
  808. + *)
  809. + test "$with_gnu_ld" != yes && break ;;
  810. + esac
  811. + fi
  812. + done
  813. + IFS="$ac_save_ifs"
  814. +else
  815. + acl_cv_path_LD="$LD" # Let the user override the test with a path.
  816. +fi])
  817. +LD="$acl_cv_path_LD"
  818. +if test -n "$LD"; then
  819. + AC_MSG_RESULT($LD)
  820. +else
  821. + AC_MSG_RESULT(no)
  822. +fi
  823. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  824. +AC_LIB_PROG_LD_GNU
  825. +])
  826. +
  827. # Like AC_CONFIG_HEADER, but automatically create stamp file.
  828. AC_DEFUN([AM_CONFIG_HEADER],
  829. @@ -164,12 +983,64 @@
  830. AC_PROG_LEX
  831. AC_DECL_YYTEXT])
  832. -# libtool.m4 - Configure libtool for the host system. -*-Shell-script-*-
  833. +# libtool.m4 - Configure libtool for the host system. -*-Autoconf-*-
  834. -# serial 46 AC_PROG_LIBTOOL
  835. +# serial 47 AC_PROG_LIBTOOL
  836. +# Debian $Rev: 9373 $
  837. +
  838. +# AC_PROVIDE_IFELSE(MACRO-NAME, IF-PROVIDED, IF-NOT-PROVIDED)
  839. +# -----------------------------------------------------------
  840. +# If this macro is not defined by Autoconf, define it here.
  841. +m4_ifdef([AC_PROVIDE_IFELSE],
  842. + [],
  843. + [m4_define([AC_PROVIDE_IFELSE],
  844. + [m4_ifdef([AC_PROVIDE_$1],
  845. + [$2], [$3])])])
  846. +
  847. +
  848. +# AC_PROG_LIBTOOL
  849. +# ---------------
  850. AC_DEFUN([AC_PROG_LIBTOOL],
  851. +[AC_REQUIRE([_AC_PROG_LIBTOOL])dnl
  852. +dnl If AC_PROG_CXX has already been expanded, run AC_LIBTOOL_CXX
  853. +dnl immediately, otherwise, hook it in at the end of AC_PROG_CXX.
  854. + AC_PROVIDE_IFELSE([AC_PROG_CXX],
  855. + [AC_LIBTOOL_CXX],
  856. + [define([AC_PROG_CXX], defn([AC_PROG_CXX])[AC_LIBTOOL_CXX
  857. + ])])
  858. +dnl And a similar setup for Fortran 77 support
  859. + AC_PROVIDE_IFELSE([AC_PROG_F77],
  860. + [AC_LIBTOOL_F77],
  861. + [define([AC_PROG_F77], defn([AC_PROG_F77])[AC_LIBTOOL_F77
  862. +])])
  863. +
  864. +dnl Quote A][M_PROG_GCJ so that aclocal doesn't bring it in needlessly.
  865. +dnl If either AC_PROG_GCJ or A][M_PROG_GCJ have already been expanded, run
  866. +dnl AC_LIBTOOL_GCJ immediately, otherwise, hook it in at the end of both.
  867. + AC_PROVIDE_IFELSE([AC_PROG_GCJ],
  868. + [AC_LIBTOOL_GCJ],
  869. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],
  870. + [AC_LIBTOOL_GCJ],
  871. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],
  872. + [AC_LIBTOOL_GCJ],
  873. + [ifdef([AC_PROG_GCJ],
  874. + [define([AC_PROG_GCJ], defn([AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  875. + ifdef([A][M_PROG_GCJ],
  876. + [define([A][M_PROG_GCJ], defn([A][M_PROG_GCJ])[AC_LIBTOOL_GCJ])])
  877. + ifdef([LT_AC_PROG_GCJ],
  878. + [define([LT_AC_PROG_GCJ],
  879. + defn([LT_AC_PROG_GCJ])[AC_LIBTOOL_GCJ])])])])
  880. +])])# AC_PROG_LIBTOOL
  881. +
  882. +
  883. +# _AC_PROG_LIBTOOL
  884. +# ----------------
  885. +AC_DEFUN([_AC_PROG_LIBTOOL],
  886. [AC_REQUIRE([AC_LIBTOOL_SETUP])dnl
  887. +AC_BEFORE([$0],[AC_LIBTOOL_CXX])dnl
  888. +AC_BEFORE([$0],[AC_LIBTOOL_F77])dnl
  889. +AC_BEFORE([$0],[AC_LIBTOOL_GCJ])dnl
  890. # This can be used to rebuild libtool when needed
  891. LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh"
  892. @@ -180,10 +1051,13 @@
  893. # Prevent multiple expansion
  894. define([AC_PROG_LIBTOOL], [])
  895. -])
  896. +])# _AC_PROG_LIBTOOL
  897. +
  898. +# AC_LIBTOOL_SETUP
  899. +# ----------------
  900. AC_DEFUN([AC_LIBTOOL_SETUP],
  901. -[AC_PREREQ(2.13)dnl
  902. +[AC_PREREQ(2.50)dnl
  903. AC_REQUIRE([AC_ENABLE_SHARED])dnl
  904. AC_REQUIRE([AC_ENABLE_STATIC])dnl
  905. AC_REQUIRE([AC_ENABLE_FAST_INSTALL])dnl
  906. @@ -193,15 +1067,103 @@
  907. AC_REQUIRE([AC_PROG_LD])dnl
  908. AC_REQUIRE([AC_PROG_LD_RELOAD_FLAG])dnl
  909. AC_REQUIRE([AC_PROG_NM])dnl
  910. -AC_REQUIRE([LT_AC_PROG_SED])dnl
  911. AC_REQUIRE([AC_PROG_LN_S])dnl
  912. AC_REQUIRE([AC_DEPLIBS_CHECK_METHOD])dnl
  913. +# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers!
  914. AC_REQUIRE([AC_OBJEXT])dnl
  915. AC_REQUIRE([AC_EXEEXT])dnl
  916. dnl
  917. +AC_LIBTOOL_SYS_MAX_CMD_LEN
  918. +AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  919. +AC_LIBTOOL_OBJDIR
  920. +
  921. +AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  922. _LT_AC_PROG_ECHO_BACKSLASH
  923. +
  924. +case $host_os in
  925. +aix3*)
  926. + # AIX sometimes has problems with the GCC collect2 program. For some
  927. + # reason, if we set the COLLECT_NAMES environment variable, the problems
  928. + # vanish in a puff of smoke.
  929. + if test "X${COLLECT_NAMES+set}" != Xset; then
  930. + COLLECT_NAMES=
  931. + export COLLECT_NAMES
  932. + fi
  933. + ;;
  934. +esac
  935. +
  936. +# Sed substitution that helps us do robust quoting. It backslashifies
  937. +# metacharacters that are still active within double-quoted strings.
  938. +Xsed='sed -e s/^X//'
  939. +[sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g']
  940. +
  941. +# Same as above, but do not quote variable references.
  942. +[double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g']
  943. +
  944. +# Sed substitution to delay expansion of an escaped shell variable in a
  945. +# double_quote_subst'ed string.
  946. +delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  947. +
  948. +# Sed substitution to avoid accidental globbing in evaled expressions
  949. +no_glob_subst='s/\*/\\\*/g'
  950. +
  951. +# Constants:
  952. +rm="rm -f"
  953. +
  954. +# Global variables:
  955. +default_ofile=libtool
  956. +can_build_shared=yes
  957. +
  958. +# All known linkers require a `.a' archive for static linking (except M$VC,
  959. +# which needs '.lib').
  960. +libext=a
  961. +ltmain="$ac_aux_dir/ltmain.sh"
  962. +ofile="$default_ofile"
  963. +with_gnu_ld="$lt_cv_prog_gnu_ld"
  964. +
  965. +AC_CHECK_TOOL(AR, ar, false)
  966. +AC_CHECK_TOOL(RANLIB, ranlib, :)
  967. +AC_CHECK_TOOL(STRIP, strip, :)
  968. +
  969. +old_CC="$CC"
  970. +old_CFLAGS="$CFLAGS"
  971. +
  972. +# Set sane defaults for various variables
  973. +test -z "$AR" && AR=ar
  974. +test -z "$AR_FLAGS" && AR_FLAGS=cru
  975. +test -z "$AS" && AS=as
  976. +test -z "$CC" && CC=cc
  977. +test -z "$LTCC" && LTCC=$CC
  978. +test -z "$DLLTOOL" && DLLTOOL=dlltool
  979. +test -z "$LD" && LD=ld
  980. +test -z "$LN_S" && LN_S="ln -s"
  981. +test -z "$MAGIC_CMD" && MAGIC_CMD=file
  982. +test -z "$NM" && NM=nm
  983. +test -z "$SED" && SED=sed
  984. +test -z "$OBJDUMP" && OBJDUMP=objdump
  985. +test -z "$RANLIB" && RANLIB=:
  986. +test -z "$STRIP" && STRIP=:
  987. +test -z "$ac_objext" && ac_objext=o
  988. +
  989. +# Determine commands to create old-style static archives.
  990. +old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  991. +old_postinstall_cmds='chmod 644 $oldlib'
  992. +old_postuninstall_cmds=
  993. +
  994. +if test -n "$RANLIB"; then
  995. + case $host_os in
  996. + openbsd*)
  997. + old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  998. + ;;
  999. + *)
  1000. + old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  1001. + ;;
  1002. + esac
  1003. + old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  1004. +fi
  1005. +
  1006. # Only perform the check for file, if the check method requires it
  1007. case $deplibs_check_method in
  1008. file_magic*)
  1009. @@ -211,327 +1173,78 @@
  1010. ;;
  1011. esac
  1012. -AC_CHECK_TOOL(RANLIB, ranlib, :)
  1013. -AC_CHECK_TOOL(STRIP, strip, :)
  1014. -
  1015. -ifdef([AC_PROVIDE_AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  1016. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  1017. +AC_PROVIDE_IFELSE([AC_LIBTOOL_DLOPEN], enable_dlopen=yes, enable_dlopen=no)
  1018. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1019. enable_win32_dll=yes, enable_win32_dll=no)
  1020. -AC_ARG_ENABLE(libtool-lock,
  1021. - [ --disable-libtool-lock avoid locking (might break parallel builds)])
  1022. +AC_ARG_ENABLE([libtool-lock],
  1023. + [AC_HELP_STRING([--disable-libtool-lock],
  1024. + [avoid locking (might break parallel builds)])])
  1025. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1026. -# Some flags need to be propagated to the compiler or linker for good
  1027. -# libtool support.
  1028. -case $host in
  1029. -*-*-irix6*)
  1030. - # Find out which ABI we are using.
  1031. - echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1032. - if AC_TRY_EVAL(ac_compile); then
  1033. - case `/usr/bin/file conftest.$ac_objext` in
  1034. - *32-bit*)
  1035. - LD="${LD-ld} -32"
  1036. - ;;
  1037. - *N32*)
  1038. - LD="${LD-ld} -n32"
  1039. - ;;
  1040. - *64-bit*)
  1041. - LD="${LD-ld} -64"
  1042. - ;;
  1043. - esac
  1044. - fi
  1045. - rm -rf conftest*
  1046. - ;;
  1047. +AC_ARG_WITH([pic],
  1048. + [AC_HELP_STRING([--with-pic],
  1049. + [try to use only PIC/non-PIC objects @<:@default=use both@:>@])],
  1050. + [pic_mode="$withval"],
  1051. + [pic_mode=default])
  1052. +test -z "$pic_mode" && pic_mode=default
  1053. -*-*-sco3.2v5*)
  1054. - # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1055. - SAVE_CFLAGS="$CFLAGS"
  1056. - CFLAGS="$CFLAGS -belf"
  1057. - AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1058. - [AC_LANG_SAVE
  1059. - AC_LANG_C
  1060. - AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1061. - AC_LANG_RESTORE])
  1062. - if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1063. - # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1064. - CFLAGS="$SAVE_CFLAGS"
  1065. - fi
  1066. - ;;
  1067. +# Use C for the default configuration in the libtool script
  1068. +tagname=
  1069. +AC_LIBTOOL_LANG_C_CONFIG
  1070. +_LT_AC_TAGCONFIG
  1071. +])# AC_LIBTOOL_SETUP
  1072. -ifdef([AC_PROVIDE_AC_LIBTOOL_WIN32_DLL],
  1073. -[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1074. - AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1075. - AC_CHECK_TOOL(AS, as, false)
  1076. - AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1077. - # recent cygwin and mingw systems supply a stub DllMain which the user
  1078. - # can override, but on older systems we have to supply one
  1079. - AC_CACHE_CHECK([if libtool should supply DllMain function], lt_cv_need_dllmain,
  1080. - [AC_TRY_LINK([],
  1081. - [extern int __attribute__((__stdcall__)) DllMain(void*, int, void*);
  1082. - DllMain (0, 0, 0);],
  1083. - [lt_cv_need_dllmain=no],[lt_cv_need_dllmain=yes])])
  1084. -
  1085. - case $host/$CC in
  1086. - *-*-cygwin*/gcc*-mno-cygwin*|*-*-mingw*)
  1087. - # old mingw systems require "-dll" to link a DLL, while more recent ones
  1088. - # require "-mdll"
  1089. - SAVE_CFLAGS="$CFLAGS"
  1090. - CFLAGS="$CFLAGS -mdll"
  1091. - AC_CACHE_CHECK([how to link DLLs], lt_cv_cc_dll_switch,
  1092. - [AC_TRY_LINK([], [], [lt_cv_cc_dll_switch=-mdll],[lt_cv_cc_dll_switch=-dll])])
  1093. - CFLAGS="$SAVE_CFLAGS" ;;
  1094. - *-*-cygwin* | *-*-pw32*)
  1095. - # cygwin systems need to pass --dll to the linker, and not link
  1096. - # crt.o which will require a WinMain@16 definition.
  1097. - lt_cv_cc_dll_switch="-Wl,--dll -nostartfiles" ;;
  1098. - esac
  1099. - ;;
  1100. - ])
  1101. -esac
  1102. +# _LT_AC_SYS_COMPILER
  1103. +# -------------------
  1104. +AC_DEFUN([_LT_AC_SYS_COMPILER],
  1105. +[AC_REQUIRE([AC_PROG_CC])dnl
  1106. -_LT_AC_LTCONFIG_HACK
  1107. +# If no C compiler was specified, use CC.
  1108. +LTCC=${LTCC-"$CC"}
  1109. -])
  1110. -
  1111. -# AC_LIBTOOL_HEADER_ASSERT
  1112. -# ------------------------
  1113. -AC_DEFUN([AC_LIBTOOL_HEADER_ASSERT],
  1114. -[AC_CACHE_CHECK([whether $CC supports assert without backlinking],
  1115. - [lt_cv_func_assert_works],
  1116. - [case $host in
  1117. - *-*-solaris*)
  1118. - if test "$GCC" = yes && test "$with_gnu_ld" != yes; then
  1119. - case `$CC --version 2>/dev/null` in
  1120. - [[12]].*) lt_cv_func_assert_works=no ;;
  1121. - *) lt_cv_func_assert_works=yes ;;
  1122. - esac
  1123. - fi
  1124. - ;;
  1125. - esac])
  1126. -
  1127. -if test "x$lt_cv_func_assert_works" = xyes; then
  1128. - AC_CHECK_HEADERS(assert.h)
  1129. -fi
  1130. -])# AC_LIBTOOL_HEADER_ASSERT
  1131. -
  1132. -# _LT_AC_CHECK_DLFCN
  1133. -# --------------------
  1134. -AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1135. -[AC_CHECK_HEADERS(dlfcn.h)
  1136. -])# _LT_AC_CHECK_DLFCN
  1137. -
  1138. -# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1139. -# ---------------------------------
  1140. -AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  1141. -[AC_REQUIRE([AC_CANONICAL_HOST])
  1142. -AC_REQUIRE([AC_PROG_NM])
  1143. -AC_REQUIRE([AC_OBJEXT])
  1144. -# Check for command to grab the raw symbol name followed by C symbol from nm.
  1145. -AC_MSG_CHECKING([command to parse $NM output])
  1146. -AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe], [dnl
  1147. -
  1148. -# These are sane defaults that work on at least a few old systems.
  1149. -# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  1150. -
  1151. -# Character class describing NM global symbol codes.
  1152. -symcode='[[BCDEGRST]]'
  1153. -
  1154. -# Regexp to match symbols that can be accessed directly from C.
  1155. -sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  1156. -
  1157. -# Transform the above into a raw symbol and a C symbol.
  1158. -symxfrm='\1 \2\3 \3'
  1159. -
  1160. -# Transform an extracted symbol line into a proper C declaration
  1161. -lt_cv_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern char \1;/p'"
  1162. -
  1163. -# Transform an extracted symbol line into symbol name and symbol address
  1164. -lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  1165. -
  1166. -# Define system-specific variables.
  1167. -case $host_os in
  1168. -aix*)
  1169. - symcode='[[BCDT]]'
  1170. - ;;
  1171. -cygwin* | mingw* | pw32*)
  1172. - symcode='[[ABCDGISTW]]'
  1173. - ;;
  1174. -hpux*) # Its linker distinguishes data from code symbols
  1175. - lt_cv_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern char \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  1176. - lt_cv_global_symbol_to_c_name_address="sed -n -e 's/^: \([[^ ]]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([[^ ]]*\) \([[^ ]]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'"
  1177. - ;;
  1178. -irix* | nonstopux*)
  1179. - symcode='[[BCDEGRST]]'
  1180. - ;;
  1181. -osf*)
  1182. - symcode='[[BCDEGQRST]]'
  1183. - ;;
  1184. -solaris* | sysv5*)
  1185. - symcode='[[BDT]]'
  1186. - ;;
  1187. -sysv4)
  1188. - symcode='[[DFNSTU]]'
  1189. - ;;
  1190. -esac
  1191. -
  1192. -# Handle CRLF in mingw tool chain
  1193. -opt_cr=
  1194. -case $host_os in
  1195. -mingw*)
  1196. - opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  1197. - ;;
  1198. -esac
  1199. -
  1200. -# If we're using GNU nm, then use its standard symbol codes.
  1201. -if $NM -V 2>&1 | egrep '(GNU|with BFD)' > /dev/null; then
  1202. - symcode='[[ABCDGISTW]]'
  1203. -fi
  1204. -
  1205. -# Try without a prefix undercore, then with it.
  1206. -for ac_symprfx in "" "_"; do
  1207. -
  1208. - # Write the raw and C identifiers.
  1209. -lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  1210. -
  1211. - # Check to see that the pipe works correctly.
  1212. - pipe_works=no
  1213. - rm -f conftest*
  1214. - cat > conftest.$ac_ext <<EOF
  1215. -#ifdef __cplusplus
  1216. -extern "C" {
  1217. -#endif
  1218. -char nm_test_var;
  1219. -void nm_test_func(){}
  1220. -#ifdef __cplusplus
  1221. -}
  1222. -#endif
  1223. -int main(){nm_test_var='a';nm_test_func();return(0);}
  1224. -EOF
  1225. -
  1226. - if AC_TRY_EVAL(ac_compile); then
  1227. - # Now try to grab the symbols.
  1228. - nlist=conftest.nm
  1229. - if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  1230. - # Try sorting and uniquifying the output.
  1231. - if sort "$nlist" | uniq > "$nlist"T; then
  1232. - mv -f "$nlist"T "$nlist"
  1233. - else
  1234. - rm -f "$nlist"T
  1235. - fi
  1236. -
  1237. - # Make sure that we snagged all the symbols we need.
  1238. - if egrep ' nm_test_var$' "$nlist" >/dev/null; then
  1239. - if egrep ' nm_test_func$' "$nlist" >/dev/null; then
  1240. - cat <<EOF > conftest.$ac_ext
  1241. -#ifdef __cplusplus
  1242. -extern "C" {
  1243. -#endif
  1244. -
  1245. -EOF
  1246. - # Now generate the symbol file.
  1247. - eval "$lt_cv_global_symbol_to_cdecl"' < "$nlist" >> conftest.$ac_ext'
  1248. -
  1249. - cat <<EOF >> conftest.$ac_ext
  1250. -#if defined (__STDC__) && __STDC__
  1251. -# define lt_ptr void *
  1252. -#else
  1253. -# define lt_ptr char *
  1254. -# define const
  1255. -#endif
  1256. -
  1257. -/* The mapping between symbol names and symbols. */
  1258. -const struct {
  1259. - const char *name;
  1260. - lt_ptr address;
  1261. -}
  1262. -lt_preloaded_symbols[[]] =
  1263. -{
  1264. -EOF
  1265. - sed "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr) \&\2},/" < "$nlist" >> conftest.$ac_ext
  1266. - cat <<\EOF >> conftest.$ac_ext
  1267. - {0, (lt_ptr) 0}
  1268. -};
  1269. +# Allow CC to be a program name with arguments.
  1270. +compiler=$CC
  1271. +])# _LT_AC_SYS_COMPILER
  1272. -#ifdef __cplusplus
  1273. -}
  1274. -#endif
  1275. -EOF
  1276. - # Now try linking the two files.
  1277. - mv conftest.$ac_objext conftstm.$ac_objext
  1278. - save_LIBS="$LIBS"
  1279. - save_CFLAGS="$CFLAGS"
  1280. - LIBS="conftstm.$ac_objext"
  1281. - CFLAGS="$CFLAGS$no_builtin_flag"
  1282. - if AC_TRY_EVAL(ac_link) && test -s conftest$ac_exeext; then
  1283. - pipe_works=yes
  1284. - fi
  1285. - LIBS="$save_LIBS"
  1286. - CFLAGS="$save_CFLAGS"
  1287. - else
  1288. - echo "cannot find nm_test_func in $nlist" >&AC_FD_CC
  1289. - fi
  1290. - else
  1291. - echo "cannot find nm_test_var in $nlist" >&AC_FD_CC
  1292. - fi
  1293. - else
  1294. - echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AC_FD_CC
  1295. - fi
  1296. - else
  1297. - echo "$progname: failed program was:" >&AC_FD_CC
  1298. - cat conftest.$ac_ext >&5
  1299. - fi
  1300. - rm -f conftest* conftst*
  1301. - # Do not use the global_symbol_pipe unless it works.
  1302. - if test "$pipe_works" = yes; then
  1303. - break
  1304. - else
  1305. - lt_cv_sys_global_symbol_pipe=
  1306. - fi
  1307. -done
  1308. -])
  1309. -global_symbol_pipe="$lt_cv_sys_global_symbol_pipe"
  1310. -if test -z "$lt_cv_sys_global_symbol_pipe"; then
  1311. - global_symbol_to_cdecl=
  1312. - global_symbol_to_c_name_address=
  1313. -else
  1314. - global_symbol_to_cdecl="$lt_cv_global_symbol_to_cdecl"
  1315. - global_symbol_to_c_name_address="$lt_cv_global_symbol_to_c_name_address"
  1316. -fi
  1317. -if test -z "$global_symbol_pipe$global_symbol_to_cdec$global_symbol_to_c_name_address";
  1318. -then
  1319. - AC_MSG_RESULT(failed)
  1320. -else
  1321. - AC_MSG_RESULT(ok)
  1322. -fi
  1323. -]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  1324. +# _LT_AC_SYS_LIBPATH_AIX
  1325. +# ----------------------
  1326. +# Links a minimal program and checks the executable
  1327. +# for the system default hardcoded library path. In most cases,
  1328. +# this is /usr/lib:/lib, but when the MPI compilers are used
  1329. +# the location of the communication and MPI libs are included too.
  1330. +# If we don't find anything, use the default library path according
  1331. +# to the aix ld manual.
  1332. +AC_DEFUN([_LT_AC_SYS_LIBPATH_AIX],
  1333. +[AC_LINK_IFELSE(AC_LANG_PROGRAM,[
  1334. +aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; }
  1335. +}'`
  1336. +# Check for a 64-bit object if we didn't find anything.
  1337. +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; }
  1338. +}'`; fi],[])
  1339. +if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  1340. +])# _LT_AC_SYS_LIBPATH_AIX
  1341. +
  1342. +
  1343. +# _LT_AC_SHELL_INIT(ARG)
  1344. +# ----------------------
  1345. +AC_DEFUN([_LT_AC_SHELL_INIT],
  1346. +[ifdef([AC_DIVERSION_NOTICE],
  1347. + [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1348. + [AC_DIVERT_PUSH(NOTICE)])
  1349. +$1
  1350. +AC_DIVERT_POP
  1351. +])# _LT_AC_SHELL_INIT
  1352. -# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  1353. -# ---------------------------------
  1354. -AC_DEFUN([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR],
  1355. -[# Find the correct PATH separator. Usually this is `:', but
  1356. -# DJGPP uses `;' like DOS.
  1357. -if test "X${PATH_SEPARATOR+set}" != Xset; then
  1358. - UNAME=${UNAME-`uname 2>/dev/null`}
  1359. - case X$UNAME in
  1360. - *-DOS) lt_cv_sys_path_separator=';' ;;
  1361. - *) lt_cv_sys_path_separator=':' ;;
  1362. - esac
  1363. - PATH_SEPARATOR=$lt_cv_sys_path_separator
  1364. -fi
  1365. -])# _LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  1366. # _LT_AC_PROG_ECHO_BACKSLASH
  1367. # --------------------------
  1368. # Add some code to the start of the generated configure script which
  1369. # will find an echo command which doesn't interpret backslashes.
  1370. AC_DEFUN([_LT_AC_PROG_ECHO_BACKSLASH],
  1371. -[ifdef([AC_DIVERSION_NOTICE], [AC_DIVERT_PUSH(AC_DIVERSION_NOTICE)],
  1372. - [AC_DIVERT_PUSH(NOTICE)])
  1373. -_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR
  1374. -
  1375. +[_LT_AC_SHELL_INIT([
  1376. # Check that we are running under the correct shell.
  1377. SHELL=${CONFIG_SHELL-/bin/sh}
  1378. @@ -549,7 +1262,7 @@
  1379. elif test "X[$]1" = X--fallback-echo; then
  1380. # Avoid inline document here, it may be left over
  1381. :
  1382. -elif test "X`($echo '\t') 2>/dev/null`" = 'X\t'; then
  1383. +elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then
  1384. # Yippee, $echo works!
  1385. :
  1386. else
  1387. @@ -561,7 +1274,7 @@
  1388. # used as fallback echo
  1389. shift
  1390. cat <<EOF
  1391. -$*
  1392. +[$]*
  1393. EOF
  1394. exit 0
  1395. fi
  1396. @@ -595,8 +1308,9 @@
  1397. #
  1398. # So, first we look for a working echo in the user's PATH.
  1399. - IFS="${IFS= }"; save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1400. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  1401. for dir in $PATH /usr/ucb; do
  1402. + IFS="$lt_save_ifs"
  1403. if (test -f $dir/echo || test -f $dir/echo$ac_exeext) &&
  1404. test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' &&
  1405. echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` &&
  1406. @@ -605,7 +1319,7 @@
  1407. break
  1408. fi
  1409. done
  1410. - IFS="$save_ifs"
  1411. + IFS="$lt_save_ifs"
  1412. if test "X$echo" = Xecho; then
  1413. # We didn't find a better echo, so look for alternatives.
  1414. @@ -678,47 +1392,328 @@
  1415. fi
  1416. AC_SUBST(ECHO)
  1417. -AC_DIVERT_POP
  1418. -])# _LT_AC_PROG_ECHO_BACKSLASH
  1419. +])])# _LT_AC_PROG_ECHO_BACKSLASH
  1420. -# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1421. -# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1422. -# ------------------------------------------------------------------
  1423. -AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1424. -[if test "$cross_compiling" = yes; then :
  1425. - [$4]
  1426. -else
  1427. - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1428. - lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1429. - lt_status=$lt_dlunknown
  1430. - cat > conftest.$ac_ext <<EOF
  1431. -[#line __oline__ "configure"
  1432. -#include "confdefs.h"
  1433. -#if HAVE_DLFCN_H
  1434. -#include <dlfcn.h>
  1435. -#endif
  1436. +# _LT_AC_LOCK
  1437. +# -----------
  1438. +AC_DEFUN([_LT_AC_LOCK],
  1439. +[AC_ARG_ENABLE([libtool-lock],
  1440. + [AC_HELP_STRING([--disable-libtool-lock],
  1441. + [avoid locking (might break parallel builds)])])
  1442. +test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  1443. -#include <stdio.h>
  1444. +# Some flags need to be propagated to the compiler or linker for good
  1445. +# libtool support.
  1446. +case $host in
  1447. +ia64-*-hpux*)
  1448. + # Find out which ABI we are using.
  1449. + echo 'int i;' > conftest.$ac_ext
  1450. + if AC_TRY_EVAL(ac_compile); then
  1451. + case `/usr/bin/file conftest.$ac_objext` in
  1452. + *ELF-32*)
  1453. + HPUX_IA64_MODE="32"
  1454. + ;;
  1455. + *ELF-64*)
  1456. + HPUX_IA64_MODE="64"
  1457. + ;;
  1458. + esac
  1459. + fi
  1460. + rm -rf conftest*
  1461. + ;;
  1462. +*-*-irix6*)
  1463. + # Find out which ABI we are using.
  1464. + echo '[#]line __oline__ "configure"' > conftest.$ac_ext
  1465. + if AC_TRY_EVAL(ac_compile); then
  1466. + if test "$lt_cv_prog_gnu_ld" = yes; then
  1467. + case `/usr/bin/file conftest.$ac_objext` in
  1468. + *32-bit*)
  1469. + LD="${LD-ld} -melf32bsmip"
  1470. + ;;
  1471. + *N32*)
  1472. + LD="${LD-ld} -melf32bmipn32"
  1473. + ;;
  1474. + *64-bit*)
  1475. + LD="${LD-ld} -melf64bmip"
  1476. + ;;
  1477. + esac
  1478. + else
  1479. + case `/usr/bin/file conftest.$ac_objext` in
  1480. + *32-bit*)
  1481. + LD="${LD-ld} -32"
  1482. + ;;
  1483. + *N32*)
  1484. + LD="${LD-ld} -n32"
  1485. + ;;
  1486. + *64-bit*)
  1487. + LD="${LD-ld} -64"
  1488. + ;;
  1489. + esac
  1490. + fi
  1491. + fi
  1492. + rm -rf conftest*
  1493. + ;;
  1494. -#ifdef RTLD_GLOBAL
  1495. -# define LT_DLGLOBAL RTLD_GLOBAL
  1496. -#else
  1497. -# ifdef DL_GLOBAL
  1498. -# define LT_DLGLOBAL DL_GLOBAL
  1499. -# else
  1500. -# define LT_DLGLOBAL 0
  1501. -# endif
  1502. -#endif
  1503. +x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*)
  1504. + # Find out which ABI we are using.
  1505. + echo 'int i;' > conftest.$ac_ext
  1506. + if AC_TRY_EVAL(ac_compile); then
  1507. + case "`/usr/bin/file conftest.o`" in
  1508. + *32-bit*)
  1509. + case $host in
  1510. + x86_64-*linux*)
  1511. + LD="${LD-ld} -m elf_i386"
  1512. + ;;
  1513. + ppc64-*linux*|powerpc64-*linux*)
  1514. + LD="${LD-ld} -m elf32ppclinux"
  1515. + ;;
  1516. + s390x-*linux*)
  1517. + LD="${LD-ld} -m elf_s390"
  1518. + ;;
  1519. + sparc64-*linux*)
  1520. + LD="${LD-ld} -m elf32_sparc"
  1521. + ;;
  1522. + esac
  1523. + ;;
  1524. + *64-bit*)
  1525. + case $host in
  1526. + x86_64-*linux*)
  1527. + LD="${LD-ld} -m elf_x86_64"
  1528. + ;;
  1529. + ppc*-*linux*|powerpc*-*linux*)
  1530. + LD="${LD-ld} -m elf64ppc"
  1531. + ;;
  1532. + s390*-*linux*)
  1533. + LD="${LD-ld} -m elf64_s390"
  1534. + ;;
  1535. + sparc*-*linux*)
  1536. + LD="${LD-ld} -m elf64_sparc"
  1537. + ;;
  1538. + esac
  1539. + ;;
  1540. + esac
  1541. + fi
  1542. + rm -rf conftest*
  1543. + ;;
  1544. -/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1545. - find out it does not work in some platform. */
  1546. -#ifndef LT_DLLAZY_OR_NOW
  1547. -# ifdef RTLD_LAZY
  1548. -# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1549. -# else
  1550. -# ifdef DL_LAZY
  1551. -# define LT_DLLAZY_OR_NOW DL_LAZY
  1552. +*-*-sco3.2v5*)
  1553. + # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  1554. + SAVE_CFLAGS="$CFLAGS"
  1555. + CFLAGS="$CFLAGS -belf"
  1556. + AC_CACHE_CHECK([whether the C compiler needs -belf], lt_cv_cc_needs_belf,
  1557. + [AC_LANG_PUSH(C)
  1558. + AC_TRY_LINK([],[],[lt_cv_cc_needs_belf=yes],[lt_cv_cc_needs_belf=no])
  1559. + AC_LANG_POP])
  1560. + if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  1561. + # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  1562. + CFLAGS="$SAVE_CFLAGS"
  1563. + fi
  1564. + ;;
  1565. +AC_PROVIDE_IFELSE([AC_LIBTOOL_WIN32_DLL],
  1566. +[*-*-cygwin* | *-*-mingw* | *-*-pw32*)
  1567. + AC_CHECK_TOOL(DLLTOOL, dlltool, false)
  1568. + AC_CHECK_TOOL(AS, as, false)
  1569. + AC_CHECK_TOOL(OBJDUMP, objdump, false)
  1570. + ;;
  1571. + ])
  1572. +esac
  1573. +
  1574. +need_locks="$enable_libtool_lock"
  1575. +
  1576. +])# _LT_AC_LOCK
  1577. +
  1578. +
  1579. +# AC_LIBTOOL_COMPILER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1580. +# [OUTPUT-FILE], [ACTION-SUCCESS], [ACTION-FAILURE])
  1581. +# ----------------------------------------------------------------
  1582. +# Check whether the given compiler option works
  1583. +AC_DEFUN([AC_LIBTOOL_COMPILER_OPTION],
  1584. +[AC_REQUIRE([LT_AC_PROG_SED])
  1585. +AC_CACHE_CHECK([$1], [$2],
  1586. + [$2=no
  1587. + ifelse([$4], , [ac_outfile=conftest.$ac_objext], [ac_outfile=$4])
  1588. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1589. + lt_compiler_flag="$3"
  1590. + # Insert the option either (1) after the last *FLAGS variable, or
  1591. + # (2) before a word containing "conftest.", or (3) at the end.
  1592. + # Note that $ac_compile itself does not contain backslashes and begins
  1593. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1594. + # The option is referenced via a variable to avoid confusing sed.
  1595. + lt_compile=`echo "$ac_compile" | $SED \
  1596. + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1597. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1598. + -e 's:$: $lt_compiler_flag:'`
  1599. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1600. + (eval "$lt_compile" 2>conftest.err)
  1601. + ac_status=$?
  1602. + cat conftest.err >&AS_MESSAGE_LOG_FD
  1603. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1604. + if (exit $ac_status) && test -s "$ac_outfile"; then
  1605. + # The compiler can only warn and ignore the option if not recognized
  1606. + # So say no if there are warnings
  1607. + if test ! -s conftest.err; then
  1608. + $2=yes
  1609. + fi
  1610. + fi
  1611. + $rm conftest*
  1612. +])
  1613. +
  1614. +if test x"[$]$2" = xyes; then
  1615. + ifelse([$5], , :, [$5])
  1616. +else
  1617. + ifelse([$6], , :, [$6])
  1618. +fi
  1619. +])# AC_LIBTOOL_COMPILER_OPTION
  1620. +
  1621. +
  1622. +# AC_LIBTOOL_LINKER_OPTION(MESSAGE, VARIABLE-NAME, FLAGS,
  1623. +# [ACTION-SUCCESS], [ACTION-FAILURE])
  1624. +# ------------------------------------------------------------
  1625. +# Check whether the given compiler option works
  1626. +AC_DEFUN([AC_LIBTOOL_LINKER_OPTION],
  1627. +[AC_CACHE_CHECK([$1], [$2],
  1628. + [$2=no
  1629. + save_LDFLAGS="$LDFLAGS"
  1630. + LDFLAGS="$LDFLAGS $3"
  1631. + printf "$lt_simple_link_test_code" > conftest.$ac_ext
  1632. + if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  1633. + # The compiler can only warn and ignore the option if not recognized
  1634. + # So say no if there are warnings
  1635. + if test -s conftest.err; then
  1636. + # Append any errors to the config.log.
  1637. + cat conftest.err 1>&AS_MESSAGE_LOG_FD
  1638. + else
  1639. + $2=yes
  1640. + fi
  1641. + fi
  1642. + $rm conftest*
  1643. + LDFLAGS="$save_LDFLAGS"
  1644. +])
  1645. +
  1646. +if test x"[$]$2" = xyes; then
  1647. + ifelse([$4], , :, [$4])
  1648. +else
  1649. + ifelse([$5], , :, [$5])
  1650. +fi
  1651. +])# AC_LIBTOOL_LINKER_OPTION
  1652. +
  1653. +
  1654. +# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1655. +# --------------------------
  1656. +AC_DEFUN([AC_LIBTOOL_SYS_MAX_CMD_LEN],
  1657. +[# find the maximum length of command line arguments
  1658. +AC_MSG_CHECKING([the maximum length of command line arguments])
  1659. +AC_CACHE_VAL([lt_cv_sys_max_cmd_len], [dnl
  1660. + i=0
  1661. + teststring="ABCD"
  1662. +
  1663. + case $build_os in
  1664. + msdosdjgpp*)
  1665. + # On DJGPP, this test can blow up pretty badly due to problems in libc
  1666. + # (any single argument exceeding 2000 bytes causes a buffer overrun
  1667. + # during glob expansion). Even if it were fixed, the result of this
  1668. + # check would be larger than it should be.
  1669. + lt_cv_sys_max_cmd_len=12288; # 12K is about right
  1670. + ;;
  1671. +
  1672. + gnu*)
  1673. + # Under GNU Hurd, this test is not required because there is
  1674. + # no limit to the length of command line arguments.
  1675. + # Libtool will interpret -1 as no limit whatsoever
  1676. + lt_cv_sys_max_cmd_len=-1;
  1677. + ;;
  1678. +
  1679. + cygwin* | mingw*)
  1680. + # On Win9x/ME, this test blows up -- it succeeds, but takes
  1681. + # about 5 minutes as the teststring grows exponentially.
  1682. + # Worse, since 9x/ME are not pre-emptively multitasking,
  1683. + # you end up with a "frozen" computer, even though with patience
  1684. + # the test eventually succeeds (with a max line length of 256k).
  1685. + # Instead, let's just punt: use the minimum linelength reported by
  1686. + # all of the supported platforms: 8192 (on NT/2K/XP).
  1687. + lt_cv_sys_max_cmd_len=8192;
  1688. + ;;
  1689. +
  1690. + amigaos*)
  1691. + # On AmigaOS with pdksh, this test takes hours, literally.
  1692. + # So we just punt and use a minimum line length of 8192.
  1693. + lt_cv_sys_max_cmd_len=8192;
  1694. + ;;
  1695. +
  1696. + *)
  1697. + # If test is not a shell built-in, we'll probably end up computing a
  1698. + # maximum length that is only half of the actual maximum length, but
  1699. + # we can't tell.
  1700. + while (test "X"`$CONFIG_SHELL [$]0 --fallback-echo "X$teststring" 2>/dev/null` \
  1701. + = "XX$teststring") >/dev/null 2>&1 &&
  1702. + new_result=`expr "X$teststring" : ".*" 2>&1` &&
  1703. + lt_cv_sys_max_cmd_len=$new_result &&
  1704. + test $i != 17 # 1/2 MB should be enough
  1705. + do
  1706. + i=`expr $i + 1`
  1707. + teststring=$teststring$teststring
  1708. + done
  1709. + teststring=
  1710. + # Add a significant safety factor because C++ compilers can tack on massive
  1711. + # amounts of additional arguments before passing them to the linker.
  1712. + # It appears as though 1/2 is a usable value.
  1713. + lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  1714. + ;;
  1715. + esac
  1716. +])
  1717. +if test -n $lt_cv_sys_max_cmd_len ; then
  1718. + AC_MSG_RESULT($lt_cv_sys_max_cmd_len)
  1719. +else
  1720. + AC_MSG_RESULT(none)
  1721. +fi
  1722. +])# AC_LIBTOOL_SYS_MAX_CMD_LEN
  1723. +
  1724. +
  1725. +# _LT_AC_CHECK_DLFCN
  1726. +# --------------------
  1727. +AC_DEFUN([_LT_AC_CHECK_DLFCN],
  1728. +[AC_CHECK_HEADERS(dlfcn.h)dnl
  1729. +])# _LT_AC_CHECK_DLFCN
  1730. +
  1731. +
  1732. +# _LT_AC_TRY_DLOPEN_SELF (ACTION-IF-TRUE, ACTION-IF-TRUE-W-USCORE,
  1733. +# ACTION-IF-FALSE, ACTION-IF-CROSS-COMPILING)
  1734. +# ------------------------------------------------------------------
  1735. +AC_DEFUN([_LT_AC_TRY_DLOPEN_SELF],
  1736. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1737. +if test "$cross_compiling" = yes; then :
  1738. + [$4]
  1739. +else
  1740. + lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  1741. + lt_status=$lt_dlunknown
  1742. + cat > conftest.$ac_ext <<EOF
  1743. +[#line __oline__ "configure"
  1744. +#include "confdefs.h"
  1745. +
  1746. +#if HAVE_DLFCN_H
  1747. +#include <dlfcn.h>
  1748. +#endif
  1749. +
  1750. +#include <stdio.h>
  1751. +
  1752. +#ifdef RTLD_GLOBAL
  1753. +# define LT_DLGLOBAL RTLD_GLOBAL
  1754. +#else
  1755. +# ifdef DL_GLOBAL
  1756. +# define LT_DLGLOBAL DL_GLOBAL
  1757. +# else
  1758. +# define LT_DLGLOBAL 0
  1759. +# endif
  1760. +#endif
  1761. +
  1762. +/* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  1763. + find out it does not work in some platform. */
  1764. +#ifndef LT_DLLAZY_OR_NOW
  1765. +# ifdef RTLD_LAZY
  1766. +# define LT_DLLAZY_OR_NOW RTLD_LAZY
  1767. +# else
  1768. +# ifdef DL_LAZY
  1769. +# define LT_DLLAZY_OR_NOW DL_LAZY
  1770. # else
  1771. # ifdef RTLD_NOW
  1772. # define LT_DLLAZY_OR_NOW RTLD_NOW
  1773. @@ -769,10 +1764,12 @@
  1774. rm -fr conftest*
  1775. ])# _LT_AC_TRY_DLOPEN_SELF
  1776. +
  1777. # AC_LIBTOOL_DLOPEN_SELF
  1778. # -------------------
  1779. AC_DEFUN([AC_LIBTOOL_DLOPEN_SELF],
  1780. -[if test "x$enable_dlopen" != xyes; then
  1781. +[AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1782. +if test "x$enable_dlopen" != xyes; then
  1783. enable_dlopen=unknown
  1784. enable_dlopen_self=unknown
  1785. enable_dlopen_self_static=unknown
  1786. @@ -787,24 +1784,39 @@
  1787. lt_cv_dlopen_self=yes
  1788. ;;
  1789. - cygwin* | mingw* | pw32*)
  1790. + mingw* | pw32*)
  1791. lt_cv_dlopen="LoadLibrary"
  1792. lt_cv_dlopen_libs=
  1793. ;;
  1794. + cygwin*)
  1795. + lt_cv_dlopen="dlopen"
  1796. + lt_cv_dlopen_libs=
  1797. + ;;
  1798. +
  1799. + darwin*)
  1800. + # if libdl is installed we need to link against it
  1801. + AC_CHECK_LIB([dl], [dlopen],
  1802. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],[
  1803. + lt_cv_dlopen="dyld"
  1804. + lt_cv_dlopen_libs=
  1805. + lt_cv_dlopen_self=yes
  1806. + ])
  1807. + ;;
  1808. +
  1809. *)
  1810. AC_CHECK_FUNC([shl_load],
  1811. - [lt_cv_dlopen="shl_load"],
  1812. + [lt_cv_dlopen="shl_load"],
  1813. [AC_CHECK_LIB([dld], [shl_load],
  1814. - [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1815. + [lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld"],
  1816. [AC_CHECK_FUNC([dlopen],
  1817. [lt_cv_dlopen="dlopen"],
  1818. [AC_CHECK_LIB([dl], [dlopen],
  1819. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1820. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"],
  1821. [AC_CHECK_LIB([svld], [dlopen],
  1822. - [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1823. + [lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"],
  1824. [AC_CHECK_LIB([dld], [dld_link],
  1825. - [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1826. + [lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld"])
  1827. ])
  1828. ])
  1829. ])
  1830. @@ -822,7 +1834,6 @@
  1831. case $lt_cv_dlopen in
  1832. dlopen)
  1833. save_CPPFLAGS="$CPPFLAGS"
  1834. - AC_REQUIRE([_LT_AC_CHECK_DLFCN])dnl
  1835. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  1836. save_LDFLAGS="$LDFLAGS"
  1837. @@ -866,707 +1877,1838 @@
  1838. fi
  1839. ])# AC_LIBTOOL_DLOPEN_SELF
  1840. -AC_DEFUN([_LT_AC_LTCONFIG_HACK],
  1841. -[AC_REQUIRE([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE])dnl
  1842. -# Sed substitution that helps us do robust quoting. It backslashifies
  1843. -# metacharacters that are still active within double-quoted strings.
  1844. -Xsed='sed -e s/^X//'
  1845. -sed_quote_subst='s/\([[\\"\\`$\\\\]]\)/\\\1/g'
  1846. -
  1847. -# Same as above, but do not quote variable references.
  1848. -double_quote_subst='s/\([[\\"\\`\\\\]]\)/\\\1/g'
  1849. -
  1850. -# Sed substitution to delay expansion of an escaped shell variable in a
  1851. -# double_quote_subst'ed string.
  1852. -delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  1853. -# Constants:
  1854. -rm="rm -f"
  1855. +# AC_LIBTOOL_PROG_CC_C_O([TAGNAME])
  1856. +# ---------------------------------
  1857. +# Check to see if options -c and -o are simultaneously supported by compiler
  1858. +AC_DEFUN([AC_LIBTOOL_PROG_CC_C_O],
  1859. +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  1860. +AC_CACHE_CHECK([if $compiler supports -c -o file.$ac_objext],
  1861. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)],
  1862. + [_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=no
  1863. + $rm -r conftest 2>/dev/null
  1864. + mkdir conftest
  1865. + cd conftest
  1866. + mkdir out
  1867. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  1868. +
  1869. + lt_compiler_flag="-o out/conftest2.$ac_objext"
  1870. + # Insert the option either (1) after the last *FLAGS variable, or
  1871. + # (2) before a word containing "conftest.", or (3) at the end.
  1872. + # Note that $ac_compile itself does not contain backslashes and begins
  1873. + # with a dollar sign (not a hyphen), so the echo should work correctly.
  1874. + lt_compile=`echo "$ac_compile" | $SED \
  1875. + -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \
  1876. + -e 's: [[^ ]]*conftest\.: $lt_compiler_flag&:; t' \
  1877. + -e 's:$: $lt_compiler_flag:'`
  1878. + (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&AS_MESSAGE_LOG_FD)
  1879. + (eval "$lt_compile" 2>out/conftest.err)
  1880. + ac_status=$?
  1881. + cat out/conftest.err >&AS_MESSAGE_LOG_FD
  1882. + echo "$as_me:__oline__: \$? = $ac_status" >&AS_MESSAGE_LOG_FD
  1883. + if (exit $ac_status) && test -s out/conftest2.$ac_objext
  1884. + then
  1885. + # The compiler can only warn and ignore the option if not recognized
  1886. + # So say no if there are warnings
  1887. + if test ! -s out/conftest.err; then
  1888. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  1889. + fi
  1890. + fi
  1891. + chmod u+w .
  1892. + $rm conftest*
  1893. + # SGI C++ compiler will create directory out/ii_files/ for
  1894. + # template instantiation
  1895. + test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files
  1896. + $rm out/* && rmdir out
  1897. + cd ..
  1898. + rmdir conftest
  1899. + $rm conftest*
  1900. +])
  1901. +])# AC_LIBTOOL_PROG_CC_C_O
  1902. -# Global variables:
  1903. -default_ofile=libtool
  1904. -can_build_shared=yes
  1905. -# All known linkers require a `.a' archive for static linking (except M$VC,
  1906. -# which needs '.lib').
  1907. -libext=a
  1908. -ltmain="$ac_aux_dir/ltmain.sh"
  1909. -ofile="$default_ofile"
  1910. -with_gnu_ld="$lt_cv_prog_gnu_ld"
  1911. -need_locks="$enable_libtool_lock"
  1912. +# AC_LIBTOOL_SYS_HARD_LINK_LOCKS([TAGNAME])
  1913. +# -----------------------------------------
  1914. +# Check to see if we can do hard links to lock some files if needed
  1915. +AC_DEFUN([AC_LIBTOOL_SYS_HARD_LINK_LOCKS],
  1916. +[AC_REQUIRE([_LT_AC_LOCK])dnl
  1917. -old_CC="$CC"
  1918. -old_CFLAGS="$CFLAGS"
  1919. +hard_links="nottested"
  1920. +if test "$_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)" = no && test "$need_locks" != no; then
  1921. + # do not overwrite the value of need_locks provided by the user
  1922. + AC_MSG_CHECKING([if we can lock with hard links])
  1923. + hard_links=yes
  1924. + $rm conftest*
  1925. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1926. + touch conftest.a
  1927. + ln conftest.a conftest.b 2>&5 || hard_links=no
  1928. + ln conftest.a conftest.b 2>/dev/null && hard_links=no
  1929. + AC_MSG_RESULT([$hard_links])
  1930. + if test "$hard_links" = no; then
  1931. + AC_MSG_WARN([`$CC' does not support `-c -o', so `make -j' may be unsafe])
  1932. + need_locks=warn
  1933. + fi
  1934. +else
  1935. + need_locks=no
  1936. +fi
  1937. +])# AC_LIBTOOL_SYS_HARD_LINK_LOCKS
  1938. -# Set sane defaults for various variables
  1939. -test -z "$AR" && AR=ar
  1940. -test -z "$AR_FLAGS" && AR_FLAGS=cru
  1941. -test -z "$AS" && AS=as
  1942. -test -z "$CC" && CC=cc
  1943. -test -z "$DLLTOOL" && DLLTOOL=dlltool
  1944. -test -z "$LD" && LD=ld
  1945. -test -z "$LN_S" && LN_S="ln -s"
  1946. -test -z "$MAGIC_CMD" && MAGIC_CMD=file
  1947. -test -z "$NM" && NM=nm
  1948. -test -z "$OBJDUMP" && OBJDUMP=objdump
  1949. -test -z "$RANLIB" && RANLIB=:
  1950. -test -z "$STRIP" && STRIP=:
  1951. -test -z "$ac_objext" && ac_objext=o
  1952. -if test x"$host" != x"$build"; then
  1953. - ac_tool_prefix=${host_alias}-
  1954. +# AC_LIBTOOL_OBJDIR
  1955. +# -----------------
  1956. +AC_DEFUN([AC_LIBTOOL_OBJDIR],
  1957. +[AC_CACHE_CHECK([for objdir], [lt_cv_objdir],
  1958. +[rm -f .libs 2>/dev/null
  1959. +mkdir .libs 2>/dev/null
  1960. +if test -d .libs; then
  1961. + lt_cv_objdir=.libs
  1962. else
  1963. - ac_tool_prefix=
  1964. + # MS-DOS does not allow filenames that begin with a dot.
  1965. + lt_cv_objdir=_libs
  1966. fi
  1967. +rmdir .libs 2>/dev/null])
  1968. +objdir=$lt_cv_objdir
  1969. +])# AC_LIBTOOL_OBJDIR
  1970. -# Transform linux* to *-*-linux-gnu*, to support old configure scripts.
  1971. -case $host_os in
  1972. -linux-gnu*) ;;
  1973. -linux*) host=`echo $host | sed 's/^\(.*-.*-linux\)\(.*\)$/\1-gnu\2/'`
  1974. -esac
  1975. -case $host_os in
  1976. -aix3*)
  1977. - # AIX sometimes has problems with the GCC collect2 program. For some
  1978. - # reason, if we set the COLLECT_NAMES environment variable, the problems
  1979. - # vanish in a puff of smoke.
  1980. - if test "X${COLLECT_NAMES+set}" != Xset; then
  1981. - COLLECT_NAMES=
  1982. - export COLLECT_NAMES
  1983. +# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH([TAGNAME])
  1984. +# ----------------------------------------------
  1985. +# Check hardcoding attributes.
  1986. +AC_DEFUN([AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH],
  1987. +[AC_MSG_CHECKING([how to hardcode library paths into programs])
  1988. +_LT_AC_TAGVAR(hardcode_action, $1)=
  1989. +if test -n "$_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)" || \
  1990. + test -n "$_LT_AC_TAGVAR(runpath_var $1)" || \
  1991. + test "X$_LT_AC_TAGVAR(hardcode_automatic, $1)"="Xyes" ; then
  1992. +
  1993. + # We can hardcode non-existant directories.
  1994. + if test "$_LT_AC_TAGVAR(hardcode_direct, $1)" != no &&
  1995. + # If the only mechanism to avoid hardcoding is shlibpath_var, we
  1996. + # have to relink, otherwise we might link with an installed library
  1997. + # when we should be linking with a yet-to-be-installed one
  1998. + ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)" != no &&
  1999. + test "$_LT_AC_TAGVAR(hardcode_minus_L, $1)" != no; then
  2000. + # Linking always hardcodes the temporary library directory.
  2001. + _LT_AC_TAGVAR(hardcode_action, $1)=relink
  2002. + else
  2003. + # We can link without hardcoding, and we can hardcode nonexisting dirs.
  2004. + _LT_AC_TAGVAR(hardcode_action, $1)=immediate
  2005. fi
  2006. - ;;
  2007. -esac
  2008. +else
  2009. + # We cannot hardcode anything, or else we can only hardcode existing
  2010. + # directories.
  2011. + _LT_AC_TAGVAR(hardcode_action, $1)=unsupported
  2012. +fi
  2013. +AC_MSG_RESULT([$_LT_AC_TAGVAR(hardcode_action, $1)])
  2014. -# Determine commands to create old-style static archives.
  2015. -old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs'
  2016. -old_postinstall_cmds='chmod 644 $oldlib'
  2017. -old_postuninstall_cmds=
  2018. +if test "$_LT_AC_TAGVAR(hardcode_action, $1)" = relink; then
  2019. + # Fast installation is not supported
  2020. + enable_fast_install=no
  2021. +elif test "$shlibpath_overrides_runpath" = yes ||
  2022. + test "$enable_shared" = no; then
  2023. + # Fast installation is not necessary
  2024. + enable_fast_install=needless
  2025. +fi
  2026. +])# AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH
  2027. -if test -n "$RANLIB"; then
  2028. +
  2029. +# AC_LIBTOOL_SYS_LIB_STRIP
  2030. +# ------------------------
  2031. +AC_DEFUN([AC_LIBTOOL_SYS_LIB_STRIP],
  2032. +[striplib=
  2033. +old_striplib=
  2034. +AC_MSG_CHECKING([whether stripping libraries is possible])
  2035. +if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  2036. + test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  2037. + test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  2038. + AC_MSG_RESULT([yes])
  2039. +else
  2040. +# FIXME - insert some real tests, host_os isn't really good enough
  2041. case $host_os in
  2042. - openbsd*)
  2043. - old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds"
  2044. - ;;
  2045. - *)
  2046. - old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds"
  2047. + darwin*)
  2048. + if test -n "$STRIP" ; then
  2049. + striplib="$STRIP -x"
  2050. + AC_MSG_RESULT([yes])
  2051. + else
  2052. + AC_MSG_RESULT([no])
  2053. +fi
  2054. + ;;
  2055. + *)
  2056. + AC_MSG_RESULT([no])
  2057. ;;
  2058. esac
  2059. - old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  2060. fi
  2061. +])# AC_LIBTOOL_SYS_LIB_STRIP
  2062. -# Allow CC to be a program name with arguments.
  2063. -set dummy $CC
  2064. -compiler="[$]2"
  2065. -AC_MSG_CHECKING([for objdir])
  2066. -rm -f .libs 2>/dev/null
  2067. -mkdir .libs 2>/dev/null
  2068. -if test -d .libs; then
  2069. - objdir=.libs
  2070. +# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  2071. +# -----------------------------
  2072. +# PORTME Fill in your ld.so characteristics
  2073. +AC_DEFUN([AC_LIBTOOL_SYS_DYNAMIC_LINKER],
  2074. +[AC_MSG_CHECKING([dynamic linker characteristics])
  2075. +library_names_spec=
  2076. +libname_spec='lib$name'
  2077. +soname_spec=
  2078. +shrext_cmds=".so"
  2079. +postinstall_cmds=
  2080. +postuninstall_cmds=
  2081. +finish_cmds=
  2082. +finish_eval=
  2083. +shlibpath_var=
  2084. +shlibpath_overrides_runpath=unknown
  2085. +version_type=none
  2086. +dynamic_linker="$host_os ld.so"
  2087. +sys_lib_dlsearch_path_spec="/lib /usr/lib"
  2088. +if test "$GCC" = yes; then
  2089. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2090. + if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then
  2091. + # if the path contains ";" then we assume it to be the separator
  2092. + # otherwise default to the standard path separator (i.e. ":") - it is
  2093. + # assumed that no part of a normal pathname contains ";" but that should
  2094. + # okay in the real world where ";" in dirpaths is itself problematic.
  2095. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2096. + else
  2097. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2098. + fi
  2099. else
  2100. - # MS-DOS does not allow filenames that begin with a dot.
  2101. - objdir=_libs
  2102. + sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  2103. fi
  2104. -rmdir .libs 2>/dev/null
  2105. -AC_MSG_RESULT($objdir)
  2106. -
  2107. +need_lib_prefix=unknown
  2108. +hardcode_into_libs=no
  2109. -AC_ARG_WITH(pic,
  2110. -[ --with-pic try to use only PIC/non-PIC objects [default=use both]],
  2111. -pic_mode="$withval", pic_mode=default)
  2112. -test -z "$pic_mode" && pic_mode=default
  2113. +# when you set need_version to no, make sure it does not cause -set_version
  2114. +# flags to be left without arguments
  2115. +need_version=unknown
  2116. -# We assume here that the value for lt_cv_prog_cc_pic will not be cached
  2117. -# in isolation, and that seeing it set (from the cache) indicates that
  2118. -# the associated values are set (in the cache) correctly too.
  2119. -AC_MSG_CHECKING([for $compiler option to produce PIC])
  2120. -AC_CACHE_VAL(lt_cv_prog_cc_pic,
  2121. -[ lt_cv_prog_cc_pic=
  2122. - lt_cv_prog_cc_shlib=
  2123. - lt_cv_prog_cc_wl=
  2124. - lt_cv_prog_cc_static=
  2125. - lt_cv_prog_cc_no_builtin=
  2126. - lt_cv_prog_cc_can_build_shared=$can_build_shared
  2127. +case $host_os in
  2128. +aix3*)
  2129. + version_type=linux
  2130. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  2131. + shlibpath_var=LIBPATH
  2132. - if test "$GCC" = yes; then
  2133. - lt_cv_prog_cc_wl='-Wl,'
  2134. - lt_cv_prog_cc_static='-static'
  2135. + # AIX 3 has no versioning support, so we append a major version to the name.
  2136. + soname_spec='${libname}${release}${shared_ext}$major'
  2137. + ;;
  2138. - case $host_os in
  2139. - aix*)
  2140. - # Below there is a dirty hack to force normal static linking with -ldl
  2141. - # The problem is because libdl dynamically linked with both libc and
  2142. - # libC (AIX C++ library), which obviously doesn't included in libraries
  2143. - # list by gcc. This cause undefined symbols with -static flags.
  2144. - # This hack allows C programs to be linked with "-static -ldl", but
  2145. - # not sure about C++ programs.
  2146. - lt_cv_prog_cc_static="$lt_cv_prog_cc_static ${lt_cv_prog_cc_wl}-lC"
  2147. - ;;
  2148. - amigaos*)
  2149. - # FIXME: we need at least 68020 code to build shared libraries, but
  2150. - # adding the `-m68020' flag to GCC prevents building anything better,
  2151. - # like `-m68040'.
  2152. - lt_cv_prog_cc_pic='-m68020 -resident32 -malways-restore-a4'
  2153. - ;;
  2154. - beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  2155. - # PIC is the default for these OSes.
  2156. - ;;
  2157. - darwin* | rhapsody*)
  2158. - # PIC is the default on this platform
  2159. - # Common symbols not allowed in MH_DYLIB files
  2160. - lt_cv_prog_cc_pic='-fno-common'
  2161. - ;;
  2162. - cygwin* | mingw* | pw32* | os2*)
  2163. - # This hack is so that the source file can tell whether it is being
  2164. - # built for inclusion in a dll (and should export symbols for example).
  2165. - lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2166. - ;;
  2167. - sysv4*MP*)
  2168. - if test -d /usr/nec; then
  2169. - lt_cv_prog_cc_pic=-Kconform_pic
  2170. - fi
  2171. - ;;
  2172. - *)
  2173. - lt_cv_prog_cc_pic='-fPIC'
  2174. - ;;
  2175. - esac
  2176. +aix4* | aix5*)
  2177. + version_type=linux
  2178. + need_lib_prefix=no
  2179. + need_version=no
  2180. + hardcode_into_libs=yes
  2181. + if test "$host_cpu" = ia64; then
  2182. + # AIX 5 supports IA64
  2183. + library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  2184. + shlibpath_var=LD_LIBRARY_PATH
  2185. else
  2186. - # PORTME Check for PIC flags for the system compiler.
  2187. + # With GCC up to 2.95.x, collect2 would create an import file
  2188. + # for dependence libraries. The import file would start with
  2189. + # the line `#! .'. This would cause the generated library to
  2190. + # depend on `.', always an invalid library. This was fixed in
  2191. + # development snapshots of GCC prior to 3.0.
  2192. case $host_os in
  2193. - aix3* | aix4* | aix5*)
  2194. - lt_cv_prog_cc_wl='-Wl,'
  2195. - # All AIX code is PIC.
  2196. - if test "$host_cpu" = ia64; then
  2197. - # AIX 5 now supports IA64 processor
  2198. - lt_cv_prog_cc_static='-Bstatic'
  2199. + aix4 | aix4.[[01]] | aix4.[[01]].*)
  2200. + if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  2201. + echo ' yes '
  2202. + echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  2203. + :
  2204. else
  2205. - lt_cv_prog_cc_static='-bnso -bI:/lib/syscalls.exp'
  2206. + can_build_shared=no
  2207. fi
  2208. ;;
  2209. + esac
  2210. + # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  2211. + # soname into executable. Probably we can add versioning support to
  2212. + # collect2, so additional links can be useful in future.
  2213. + if test "$aix_use_runtimelinking" = yes; then
  2214. + # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  2215. + # instead of lib<name>.a to let people know that these are not
  2216. + # typical AIX shared libraries.
  2217. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2218. + else
  2219. + # We preserve .a as extension for shared libraries through AIX4.2
  2220. + # and later when we are not doing run time linking.
  2221. + library_names_spec='${libname}${release}.a $libname.a'
  2222. + soname_spec='${libname}${release}${shared_ext}$major'
  2223. + fi
  2224. + shlibpath_var=LIBPATH
  2225. + fi
  2226. + ;;
  2227. - hpux9* | hpux10* | hpux11*)
  2228. - # Is there a better lt_cv_prog_cc_static that works with the bundled CC?
  2229. - lt_cv_prog_cc_wl='-Wl,'
  2230. - lt_cv_prog_cc_static="${lt_cv_prog_cc_wl}-a ${lt_cv_prog_cc_wl}archive"
  2231. - lt_cv_prog_cc_pic='+Z'
  2232. - ;;
  2233. -
  2234. - irix5* | irix6* | nonstopux*)
  2235. - lt_cv_prog_cc_wl='-Wl,'
  2236. - lt_cv_prog_cc_static='-non_shared'
  2237. - # PIC (with -KPIC) is the default.
  2238. - ;;
  2239. -
  2240. - cygwin* | mingw* | pw32* | os2*)
  2241. - # This hack is so that the source file can tell whether it is being
  2242. - # built for inclusion in a dll (and should export symbols for example).
  2243. - lt_cv_prog_cc_pic='-DDLL_EXPORT'
  2244. - ;;
  2245. -
  2246. - newsos6)
  2247. - lt_cv_prog_cc_pic='-KPIC'
  2248. - lt_cv_prog_cc_static='-Bstatic'
  2249. - ;;
  2250. -
  2251. - osf3* | osf4* | osf5*)
  2252. - # All OSF/1 code is PIC.
  2253. - lt_cv_prog_cc_wl='-Wl,'
  2254. - lt_cv_prog_cc_static='-non_shared'
  2255. - ;;
  2256. +amigaos*)
  2257. + library_names_spec='$libname.ixlibrary $libname.a'
  2258. + # Create ${libname}_ixlibrary.a entries in /sys/libs.
  2259. + 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'
  2260. + ;;
  2261. - sco3.2v5*)
  2262. - lt_cv_prog_cc_pic='-Kpic'
  2263. - lt_cv_prog_cc_static='-dn'
  2264. - lt_cv_prog_cc_shlib='-belf'
  2265. - ;;
  2266. +beos*)
  2267. + library_names_spec='${libname}${shared_ext}'
  2268. + dynamic_linker="$host_os ld.so"
  2269. + shlibpath_var=LIBRARY_PATH
  2270. + ;;
  2271. - solaris*)
  2272. - lt_cv_prog_cc_pic='-KPIC'
  2273. - lt_cv_prog_cc_static='-Bstatic'
  2274. - lt_cv_prog_cc_wl='-Wl,'
  2275. - ;;
  2276. +bsdi4*)
  2277. + version_type=linux
  2278. + need_version=no
  2279. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2280. + soname_spec='${libname}${release}${shared_ext}$major'
  2281. + finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  2282. + shlibpath_var=LD_LIBRARY_PATH
  2283. + sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  2284. + sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  2285. + # the default ld.so.conf also contains /usr/contrib/lib and
  2286. + # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  2287. + # libtool to hard-code these into programs
  2288. + ;;
  2289. - sunos4*)
  2290. - lt_cv_prog_cc_pic='-PIC'
  2291. - lt_cv_prog_cc_static='-Bstatic'
  2292. - lt_cv_prog_cc_wl='-Qoption ld '
  2293. - ;;
  2294. +cygwin* | mingw* | pw32*)
  2295. + version_type=windows
  2296. + shrext_cmds=".dll"
  2297. + need_version=no
  2298. + need_lib_prefix=no
  2299. - sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  2300. - lt_cv_prog_cc_pic='-KPIC'
  2301. - lt_cv_prog_cc_static='-Bstatic'
  2302. - lt_cv_prog_cc_wl='-Wl,'
  2303. - ;;
  2304. + case $GCC,$host_os in
  2305. + yes,cygwin* | yes,mingw* | yes,pw32*)
  2306. + library_names_spec='$libname.dll.a'
  2307. + # DLL is installed to $(libdir)/../bin by postinstall_cmds
  2308. + postinstall_cmds='base_file=`basename \${file}`~
  2309. + dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~
  2310. + dldir=$destdir/`dirname \$dlpath`~
  2311. + test -d \$dldir || mkdir -p \$dldir~
  2312. + $install_prog $dir/$dlname \$dldir/$dlname'
  2313. + postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  2314. + dlpath=$dir/\$dldll~
  2315. + $rm \$dlpath'
  2316. + shlibpath_overrides_runpath=yes
  2317. - uts4*)
  2318. - lt_cv_prog_cc_pic='-pic'
  2319. - lt_cv_prog_cc_static='-Bstatic'
  2320. + case $host_os in
  2321. + cygwin*)
  2322. + # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  2323. + soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2324. + sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib"
  2325. ;;
  2326. -
  2327. - sysv4*MP*)
  2328. - if test -d /usr/nec ;then
  2329. - lt_cv_prog_cc_pic='-Kconform_pic'
  2330. - lt_cv_prog_cc_static='-Bstatic'
  2331. + mingw*)
  2332. + # MinGW DLLs use traditional 'lib' prefix
  2333. + soname_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext}'
  2334. + sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"`
  2335. + if echo "$sys_lib_search_path_spec" | [grep ';[c-zC-Z]:/' >/dev/null]; then
  2336. + # It is most probably a Windows format PATH printed by
  2337. + # mingw gcc, but we are running on Cygwin. Gcc prints its search
  2338. + # path with ; separators, and with drive letters. We can handle the
  2339. + # drive letters (cygwin fileutils understands them), so leave them,
  2340. + # especially as we might pass files found there to a mingw objdump,
  2341. + # which wouldn't understand a cygwinified path. Ahh.
  2342. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  2343. + else
  2344. + sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  2345. fi
  2346. ;;
  2347. -
  2348. - *)
  2349. - lt_cv_prog_cc_can_build_shared=no
  2350. + pw32*)
  2351. + # pw32 DLLs use 'pw' prefix rather than 'lib'
  2352. + library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  2353. ;;
  2354. esac
  2355. - fi
  2356. -])
  2357. -if test -z "$lt_cv_prog_cc_pic"; then
  2358. - AC_MSG_RESULT([none])
  2359. -else
  2360. - AC_MSG_RESULT([$lt_cv_prog_cc_pic])
  2361. -
  2362. - # Check to make sure the pic_flag actually works.
  2363. - AC_MSG_CHECKING([if $compiler PIC flag $lt_cv_prog_cc_pic works])
  2364. - AC_CACHE_VAL(lt_cv_prog_cc_pic_works, [dnl
  2365. - save_CFLAGS="$CFLAGS"
  2366. - CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  2367. - AC_TRY_COMPILE([], [], [dnl
  2368. - case $host_os in
  2369. - hpux9* | hpux10* | hpux11*)
  2370. - # On HP-UX, both CC and GCC only warn that PIC is supported... then
  2371. - # they create non-PIC objects. So, if there were any warnings, we
  2372. - # assume that PIC is not supported.
  2373. - if test -s conftest.err; then
  2374. - lt_cv_prog_cc_pic_works=no
  2375. - else
  2376. - lt_cv_prog_cc_pic_works=yes
  2377. - fi
  2378. - ;;
  2379. - *)
  2380. - lt_cv_prog_cc_pic_works=yes
  2381. - ;;
  2382. - esac
  2383. - ], [dnl
  2384. - lt_cv_prog_cc_pic_works=no
  2385. - ])
  2386. - CFLAGS="$save_CFLAGS"
  2387. - ])
  2388. -
  2389. - if test "X$lt_cv_prog_cc_pic_works" = Xno; then
  2390. - lt_cv_prog_cc_pic=
  2391. - lt_cv_prog_cc_can_build_shared=no
  2392. - else
  2393. - lt_cv_prog_cc_pic=" $lt_cv_prog_cc_pic"
  2394. - fi
  2395. -
  2396. - AC_MSG_RESULT([$lt_cv_prog_cc_pic_works])
  2397. -fi
  2398. -
  2399. -# Check for any special shared library compilation flags.
  2400. -if test -n "$lt_cv_prog_cc_shlib"; then
  2401. - AC_MSG_WARN([\`$CC' requires \`$lt_cv_prog_cc_shlib' to build shared libraries])
  2402. - if echo "$old_CC $old_CFLAGS " | egrep -e "[[ ]]$lt_cv_prog_cc_shlib[[ ]]" >/dev/null; then :
  2403. - else
  2404. - AC_MSG_WARN([add \`$lt_cv_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure])
  2405. - lt_cv_prog_cc_can_build_shared=no
  2406. - fi
  2407. -fi
  2408. -
  2409. -AC_MSG_CHECKING([if $compiler static flag $lt_cv_prog_cc_static works])
  2410. -AC_CACHE_VAL([lt_cv_prog_cc_static_works], [dnl
  2411. - lt_cv_prog_cc_static_works=no
  2412. - save_LDFLAGS="$LDFLAGS"
  2413. - LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  2414. - AC_TRY_LINK([], [], [lt_cv_prog_cc_static_works=yes])
  2415. - LDFLAGS="$save_LDFLAGS"
  2416. -])
  2417. -
  2418. -# Belt *and* braces to stop my trousers falling down:
  2419. -test "X$lt_cv_prog_cc_static_works" = Xno && lt_cv_prog_cc_static=
  2420. -AC_MSG_RESULT([$lt_cv_prog_cc_static_works])
  2421. -
  2422. -pic_flag="$lt_cv_prog_cc_pic"
  2423. -special_shlib_compile_flags="$lt_cv_prog_cc_shlib"
  2424. -wl="$lt_cv_prog_cc_wl"
  2425. -link_static_flag="$lt_cv_prog_cc_static"
  2426. -no_builtin_flag="$lt_cv_prog_cc_no_builtin"
  2427. -can_build_shared="$lt_cv_prog_cc_can_build_shared"
  2428. -
  2429. -
  2430. -# Check to see if options -o and -c are simultaneously supported by compiler
  2431. -AC_MSG_CHECKING([if $compiler supports -c -o file.$ac_objext])
  2432. -AC_CACHE_VAL([lt_cv_compiler_c_o], [
  2433. -$rm -r conftest 2>/dev/null
  2434. -mkdir conftest
  2435. -cd conftest
  2436. -echo "int some_variable = 0;" > conftest.$ac_ext
  2437. -mkdir out
  2438. -# According to Tom Tromey, Ian Lance Taylor reported there are C compilers
  2439. -# that will create temporary files in the current directory regardless of
  2440. -# the output directory. Thus, making CWD read-only will cause this test
  2441. -# to fail, enabling locking or at least warning the user not to do parallel
  2442. -# builds.
  2443. -chmod -w .
  2444. -save_CFLAGS="$CFLAGS"
  2445. -CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  2446. -compiler_c_o=no
  2447. -if { (eval echo configure:__oline__: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  2448. - # The compiler can only warn and ignore the option if not recognized
  2449. - # So say no if there are warnings
  2450. - if test -s out/conftest.err; then
  2451. - lt_cv_compiler_c_o=no
  2452. - else
  2453. - lt_cv_compiler_c_o=yes
  2454. - fi
  2455. -else
  2456. - # Append any errors to the config.log.
  2457. - cat out/conftest.err 1>&AC_FD_CC
  2458. - lt_cv_compiler_c_o=no
  2459. -fi
  2460. -CFLAGS="$save_CFLAGS"
  2461. -chmod u+w .
  2462. -$rm conftest* out/*
  2463. -rmdir out
  2464. -cd ..
  2465. -rmdir conftest
  2466. -$rm -r conftest 2>/dev/null
  2467. -])
  2468. -compiler_c_o=$lt_cv_compiler_c_o
  2469. -AC_MSG_RESULT([$compiler_c_o])
  2470. -
  2471. -if test x"$compiler_c_o" = x"yes"; then
  2472. - # Check to see if we can write to a .lo
  2473. - AC_MSG_CHECKING([if $compiler supports -c -o file.lo])
  2474. - AC_CACHE_VAL([lt_cv_compiler_o_lo], [
  2475. - lt_cv_compiler_o_lo=no
  2476. - save_CFLAGS="$CFLAGS"
  2477. - CFLAGS="$CFLAGS -c -o conftest.lo"
  2478. - save_objext="$ac_objext"
  2479. - ac_objext=lo
  2480. - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  2481. - # The compiler can only warn and ignore the option if not recognized
  2482. - # So say no if there are warnings
  2483. - if test -s conftest.err; then
  2484. - lt_cv_compiler_o_lo=no
  2485. - else
  2486. - lt_cv_compiler_o_lo=yes
  2487. - fi
  2488. - ])
  2489. - ac_objext="$save_objext"
  2490. - CFLAGS="$save_CFLAGS"
  2491. - ])
  2492. - compiler_o_lo=$lt_cv_compiler_o_lo
  2493. - AC_MSG_RESULT([$compiler_o_lo])
  2494. -else
  2495. - compiler_o_lo=no
  2496. -fi
  2497. -
  2498. -# Check to see if we can do hard links to lock some files if needed
  2499. -hard_links="nottested"
  2500. -if test "$compiler_c_o" = no && test "$need_locks" != no; then
  2501. - # do not overwrite the value of need_locks provided by the user
  2502. - AC_MSG_CHECKING([if we can lock with hard links])
  2503. - hard_links=yes
  2504. - $rm conftest*
  2505. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2506. - touch conftest.a
  2507. - ln conftest.a conftest.b 2>&5 || hard_links=no
  2508. - ln conftest.a conftest.b 2>/dev/null && hard_links=no
  2509. - AC_MSG_RESULT([$hard_links])
  2510. - if test "$hard_links" = no; then
  2511. - AC_MSG_WARN([\`$CC' does not support \`-c -o', so \`make -j' may be unsafe])
  2512. - need_locks=warn
  2513. - fi
  2514. -else
  2515. - need_locks=no
  2516. -fi
  2517. + ;;
  2518. -if test "$GCC" = yes; then
  2519. - # Check to see if options -fno-rtti -fno-exceptions are supported by compiler
  2520. - AC_MSG_CHECKING([if $compiler supports -fno-rtti -fno-exceptions])
  2521. - echo "int some_variable = 0;" > conftest.$ac_ext
  2522. - save_CFLAGS="$CFLAGS"
  2523. - CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  2524. - compiler_rtti_exceptions=no
  2525. - AC_TRY_COMPILE([], [int some_variable = 0;], [dnl
  2526. - # The compiler can only warn and ignore the option if not recognized
  2527. - # So say no if there are warnings
  2528. - if test -s conftest.err; then
  2529. - compiler_rtti_exceptions=no
  2530. - else
  2531. - compiler_rtti_exceptions=yes
  2532. - fi
  2533. - ])
  2534. - CFLAGS="$save_CFLAGS"
  2535. - AC_MSG_RESULT([$compiler_rtti_exceptions])
  2536. + *)
  2537. + library_names_spec='${libname}`echo ${release} | $SED -e 's/[[.]]/-/g'`${versuffix}${shared_ext} $libname.lib'
  2538. + ;;
  2539. + esac
  2540. + dynamic_linker='Win32 ld.exe'
  2541. + # FIXME: first we should search . and the directory the executable is in
  2542. + shlibpath_var=PATH
  2543. + ;;
  2544. - if test "$compiler_rtti_exceptions" = "yes"; then
  2545. - no_builtin_flag=' -fno-builtin -fno-rtti -fno-exceptions'
  2546. +darwin* | rhapsody*)
  2547. + dynamic_linker="$host_os dyld"
  2548. + version_type=darwin
  2549. + need_lib_prefix=no
  2550. + need_version=no
  2551. + library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  2552. + soname_spec='${libname}${release}${major}$shared_ext'
  2553. + shlibpath_overrides_runpath=yes
  2554. + shlibpath_var=DYLD_LIBRARY_PATH
  2555. + shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)'
  2556. + # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same.
  2557. + if test "$GCC" = yes; then
  2558. + 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"`
  2559. else
  2560. - no_builtin_flag=' -fno-builtin'
  2561. + sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib'
  2562. fi
  2563. -fi
  2564. -
  2565. -# See if the linker supports building shared libraries.
  2566. -AC_MSG_CHECKING([whether the linker ($LD) supports shared libraries])
  2567. -
  2568. -allow_undefined_flag=
  2569. -no_undefined_flag=
  2570. -need_lib_prefix=unknown
  2571. -need_version=unknown
  2572. -# when you set need_version to no, make sure it does not cause -set_version
  2573. -# flags to be left without arguments
  2574. -archive_cmds=
  2575. -archive_expsym_cmds=
  2576. -old_archive_from_new_cmds=
  2577. -old_archive_from_expsyms_cmds=
  2578. -export_dynamic_flag_spec=
  2579. -whole_archive_flag_spec=
  2580. -thread_safe_flag_spec=
  2581. -hardcode_into_libs=no
  2582. -hardcode_libdir_flag_spec=
  2583. -hardcode_libdir_separator=
  2584. -hardcode_direct=no
  2585. -hardcode_minus_L=no
  2586. -hardcode_shlibpath_var=unsupported
  2587. -runpath_var=
  2588. -link_all_deplibs=unknown
  2589. -always_export_symbols=no
  2590. -export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | sed '\''s/.* //'\'' | sort | uniq > $export_symbols'
  2591. -# include_expsyms should be a list of space-separated symbols to be *always*
  2592. -# included in the symbol list
  2593. -include_expsyms=
  2594. -# exclude_expsyms can be an egrep regular expression of symbols to exclude
  2595. -# it will be wrapped by ` (' and `)$', so one must not match beginning or
  2596. -# end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  2597. -# as well as any symbol that contains `d'.
  2598. -exclude_expsyms="_GLOBAL_OFFSET_TABLE_"
  2599. -# Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  2600. -# platforms (ab)use it in PIC code, but their linkers get confused if
  2601. -# the symbol is explicitly referenced. Since portable code cannot
  2602. -# rely on this symbol name, it's probably fine to never include it in
  2603. -# preloaded symbol tables.
  2604. -extract_expsyms_cmds=
  2605. + sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  2606. + ;;
  2607. -case $host_os in
  2608. -cygwin* | mingw* | pw32*)
  2609. - # FIXME: the MSVC++ port hasn't been tested in a loooong time
  2610. - # When not using gcc, we currently assume that we are using
  2611. - # Microsoft Visual C++.
  2612. - if test "$GCC" != yes; then
  2613. - with_gnu_ld=no
  2614. - fi
  2615. +dgux*)
  2616. + version_type=linux
  2617. + need_lib_prefix=no
  2618. + need_version=no
  2619. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  2620. + soname_spec='${libname}${release}${shared_ext}$major'
  2621. + shlibpath_var=LD_LIBRARY_PATH
  2622. ;;
  2623. -openbsd*)
  2624. - with_gnu_ld=no
  2625. +
  2626. +freebsd1*)
  2627. + dynamic_linker=no
  2628. ;;
  2629. -esac
  2630. -ld_shlibs=yes
  2631. -if test "$with_gnu_ld" = yes; then
  2632. - # If archive_cmds runs LD, not CC, wlarc should be empty
  2633. - wlarc='${wl}'
  2634. +kfreebsd*-gnu)
  2635. + version_type=linux
  2636. + need_lib_prefix=no
  2637. + need_version=no
  2638. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2639. + soname_spec='${libname}${release}${shared_ext}$major'
  2640. + shlibpath_var=LD_LIBRARY_PATH
  2641. + shlibpath_overrides_runpath=no
  2642. + hardcode_into_libs=yes
  2643. + dynamic_linker='GNU ld.so'
  2644. + ;;
  2645. - # See if GNU ld supports shared libraries.
  2646. +freebsd*)
  2647. + objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  2648. + version_type=freebsd-$objformat
  2649. + case $version_type in
  2650. + freebsd-elf*)
  2651. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  2652. + need_version=no
  2653. + need_lib_prefix=no
  2654. + ;;
  2655. + freebsd-*)
  2656. + library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  2657. + need_version=yes
  2658. + ;;
  2659. + esac
  2660. + shlibpath_var=LD_LIBRARY_PATH
  2661. case $host_os in
  2662. - aix3* | aix4* | aix5*)
  2663. - # On AIX, the GNU linker is very broken
  2664. - # Note:Check GNU linker on AIX 5-IA64 when/if it becomes available.
  2665. - ld_shlibs=no
  2666. - cat <<EOF 1>&2
  2667. -
  2668. -*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  2669. -*** to be unable to reliably create shared libraries on AIX.
  2670. -*** Therefore, libtool is disabling shared libraries support. If you
  2671. -*** really care for shared libraries, you may want to modify your PATH
  2672. -*** so that a non-GNU linker is found, and then restart.
  2673. -
  2674. -EOF
  2675. + freebsd2*)
  2676. + shlibpath_overrides_runpath=yes
  2677. ;;
  2678. -
  2679. - amigaos*)
  2680. - 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)'
  2681. - hardcode_libdir_flag_spec='-L$libdir'
  2682. - hardcode_minus_L=yes
  2683. -
  2684. - # Samuel A. Falvo II <[email protected]> reports
  2685. - # that the semantics of dynamic libraries on AmigaOS, at least up
  2686. - # to version 4, is to share data among multiple programs linked
  2687. - # with the same dynamic library. Since this doesn't match the
  2688. - # behavior of shared libraries on other platforms, we can use
  2689. - # them.
  2690. - ld_shlibs=no
  2691. + freebsd3.[01]* | freebsdelf3.[01]*)
  2692. + shlibpath_overrides_runpath=yes
  2693. + hardcode_into_libs=yes
  2694. ;;
  2695. -
  2696. - beos*)
  2697. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  2698. - allow_undefined_flag=unsupported
  2699. - # Joseph Beckenbach <[email protected]> says some releases of gcc
  2700. - # support --undefined. This deserves some investigation. FIXME
  2701. - archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  2702. - else
  2703. - ld_shlibs=no
  2704. - fi
  2705. + *) # from 3.2 on
  2706. + shlibpath_overrides_runpath=no
  2707. + hardcode_into_libs=yes
  2708. ;;
  2709. + esac
  2710. + ;;
  2711. - cygwin* | mingw* | pw32*)
  2712. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  2713. - # no search path for DLLs.
  2714. - hardcode_libdir_flag_spec='-L$libdir'
  2715. - allow_undefined_flag=unsupported
  2716. - always_export_symbols=yes
  2717. -
  2718. - extract_expsyms_cmds='test -f $output_objdir/impgen.c || \
  2719. - sed -e "/^# \/\* impgen\.c starts here \*\//,/^# \/\* impgen.c ends here \*\// { s/^# //;s/^# *$//; p; }" -e d < $''0 > $output_objdir/impgen.c~
  2720. - test -f $output_objdir/impgen.exe || (cd $output_objdir && \
  2721. - if test "x$HOST_CC" != "x" ; then $HOST_CC -o impgen impgen.c ; \
  2722. - else $CC -o impgen impgen.c ; fi)~
  2723. - $output_objdir/impgen $dir/$soroot > $output_objdir/$soname-def'
  2724. -
  2725. - old_archive_from_expsyms_cmds='$DLLTOOL --as=$AS --dllname $soname --def $output_objdir/$soname-def --output-lib $output_objdir/$newlib'
  2726. -
  2727. - # cygwin and mingw dlls have different entry points and sets of symbols
  2728. - # to exclude.
  2729. - # FIXME: what about values for MSVC?
  2730. - dll_entry=__cygwin_dll_entry@12
  2731. - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12~
  2732. - case $host_os in
  2733. - mingw*)
  2734. - # mingw values
  2735. - dll_entry=_DllMainCRTStartup@12
  2736. - dll_exclude_symbols=DllMain@12,DllMainCRTStartup@12,DllEntryPoint@12~
  2737. - ;;
  2738. - esac
  2739. -
  2740. - # mingw and cygwin differ, and it's simplest to just exclude the union
  2741. - # of the two symbol sets.
  2742. - dll_exclude_symbols=DllMain@12,_cygwin_dll_entry@12,_cygwin_noncygwin_dll_entry@12,DllMainCRTStartup@12,DllEntryPoint@12
  2743. -
  2744. - # recent cygwin and mingw systems supply a stub DllMain which the user
  2745. - # can override, but on older systems we have to supply one (in ltdll.c)
  2746. - if test "x$lt_cv_need_dllmain" = "xyes"; then
  2747. - ltdll_obj='$output_objdir/$soname-ltdll.'"$ac_objext "
  2748. - ltdll_cmds='test -f $output_objdir/$soname-ltdll.c || sed -e "/^# \/\* ltdll\.c starts here \*\//,/^# \/\* ltdll.c ends here \*\// { s/^# //; p; }" -e d < $''0 > $output_objdir/$soname-ltdll.c~
  2749. - test -f $output_objdir/$soname-ltdll.$ac_objext || (cd $output_objdir && $CC -c $soname-ltdll.c)~'
  2750. - else
  2751. - ltdll_obj=
  2752. - ltdll_cmds=
  2753. - fi
  2754. -
  2755. - # Extract the symbol export list from an `--export-all' def file,
  2756. - # then regenerate the def file from the symbol export list, so that
  2757. - # the compiled dll only exports the symbol export list.
  2758. - # Be careful not to strip the DATA tag left be newer dlltools.
  2759. - export_symbols_cmds="$ltdll_cmds"'
  2760. - $DLLTOOL --export-all --exclude-symbols '$dll_exclude_symbols' --output-def $output_objdir/$soname-def '$ltdll_obj'$libobjs $convenience~
  2761. - sed -e "1,/EXPORTS/d" -e "s/ @ [[0-9]]*//" -e "s/ *;.*$//" < $output_objdir/$soname-def > $export_symbols'
  2762. -
  2763. - # If the export-symbols file already is a .def file (1st line
  2764. - # is EXPORTS), use it as is.
  2765. - # If DATA tags from a recent dlltool are present, honour them!
  2766. - archive_expsym_cmds='if test "x`sed 1q $export_symbols`" = xEXPORTS; then
  2767. - cp $export_symbols $output_objdir/$soname-def;
  2768. - else
  2769. - echo EXPORTS > $output_objdir/$soname-def;
  2770. - _lt_hint=1;
  2771. - cat $export_symbols | while read symbol; do
  2772. - set dummy \$symbol;
  2773. - case \[$]# in
  2774. - 2) echo " \[$]2 @ \$_lt_hint ; " >> $output_objdir/$soname-def;;
  2775. - 4) echo " \[$]2 \[$]3 \[$]4 ; " >> $output_objdir/$soname-def; _lt_hint=`expr \$_lt_hint - 1`;;
  2776. - *) echo " \[$]2 @ \$_lt_hint \[$]3 ; " >> $output_objdir/$soname-def;;
  2777. - esac;
  2778. - _lt_hint=`expr 1 + \$_lt_hint`;
  2779. - done;
  2780. - fi~
  2781. - '"$ltdll_cmds"'
  2782. - $CC -Wl,--base-file,$output_objdir/$soname-base '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  2783. - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp~
  2784. - $CC -Wl,--base-file,$output_objdir/$soname-base $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags~
  2785. - $DLLTOOL --as=$AS --dllname $soname --exclude-symbols '$dll_exclude_symbols' --def $output_objdir/$soname-def --base-file $output_objdir/$soname-base --output-exp $output_objdir/$soname-exp --output-lib $output_objdir/$libname.dll.a~
  2786. - $CC $output_objdir/$soname-exp '$lt_cv_cc_dll_switch' -Wl,-e,'$dll_entry' -o $output_objdir/$soname '$ltdll_obj'$libobjs $deplibs $compiler_flags'
  2787. +gnu*)
  2788. + version_type=linux
  2789. + need_lib_prefix=no
  2790. + need_version=no
  2791. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  2792. + soname_spec='${libname}${release}${shared_ext}$major'
  2793. + shlibpath_var=LD_LIBRARY_PATH
  2794. + hardcode_into_libs=yes
  2795. + ;;
  2796. +
  2797. +hpux9* | hpux10* | hpux11*)
  2798. + # Give a soname corresponding to the major version so that dld.sl refuses to
  2799. + # link against other versions.
  2800. + version_type=sunos
  2801. + need_lib_prefix=no
  2802. + need_version=no
  2803. + case "$host_cpu" in
  2804. + ia64*)
  2805. + shrext_cmds='.so'
  2806. + hardcode_into_libs=yes
  2807. + dynamic_linker="$host_os dld.so"
  2808. + shlibpath_var=LD_LIBRARY_PATH
  2809. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2810. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2811. + soname_spec='${libname}${release}${shared_ext}$major'
  2812. + if test "X$HPUX_IA64_MODE" = X32; then
  2813. + sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  2814. + else
  2815. + sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  2816. + fi
  2817. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2818. + ;;
  2819. + hppa*64*)
  2820. + shrext_cmds='.sl'
  2821. + hardcode_into_libs=yes
  2822. + dynamic_linker="$host_os dld.sl"
  2823. + shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  2824. + shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  2825. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2826. + soname_spec='${libname}${release}${shared_ext}$major'
  2827. + sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  2828. + sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  2829. + ;;
  2830. + *)
  2831. + shrext_cmds='.sl'
  2832. + dynamic_linker="$host_os dld.sl"
  2833. + shlibpath_var=SHLIB_PATH
  2834. + shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  2835. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2836. + soname_spec='${libname}${release}${shared_ext}$major'
  2837. + ;;
  2838. + esac
  2839. + # HP-UX runs *really* slowly unless shared libraries are mode 555.
  2840. + postinstall_cmds='chmod 555 $lib'
  2841. + ;;
  2842. +
  2843. +irix5* | irix6* | nonstopux*)
  2844. + case $host_os in
  2845. + nonstopux*) version_type=nonstopux ;;
  2846. + *)
  2847. + if test "$lt_cv_prog_gnu_ld" = yes; then
  2848. + version_type=linux
  2849. + else
  2850. + version_type=irix
  2851. + fi ;;
  2852. + esac
  2853. + need_lib_prefix=no
  2854. + need_version=no
  2855. + soname_spec='${libname}${release}${shared_ext}$major'
  2856. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  2857. + case $host_os in
  2858. + irix5* | nonstopux*)
  2859. + libsuff= shlibsuff=
  2860. + ;;
  2861. + *)
  2862. + case $LD in # libtool.m4 will add one of these switches to LD
  2863. + *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  2864. + libsuff= shlibsuff= libmagic=32-bit;;
  2865. + *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  2866. + libsuff=32 shlibsuff=N32 libmagic=N32;;
  2867. + *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  2868. + libsuff=64 shlibsuff=64 libmagic=64-bit;;
  2869. + *) libsuff= shlibsuff= libmagic=never-match;;
  2870. + esac
  2871. + ;;
  2872. + esac
  2873. + shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  2874. + shlibpath_overrides_runpath=no
  2875. + sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  2876. + sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  2877. + hardcode_into_libs=yes
  2878. + ;;
  2879. +
  2880. +# No shared lib support for Linux oldld, aout, or coff.
  2881. +linux*oldld* | linux*aout* | linux*coff*)
  2882. + dynamic_linker=no
  2883. + ;;
  2884. +
  2885. +# This must be Linux ELF.
  2886. +linux*)
  2887. + version_type=linux
  2888. + need_lib_prefix=no
  2889. + need_version=no
  2890. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2891. + soname_spec='${libname}${release}${shared_ext}$major'
  2892. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  2893. + shlibpath_var=LD_LIBRARY_PATH
  2894. + shlibpath_overrides_runpath=no
  2895. + # This implies no fast_install, which is unacceptable.
  2896. + # Some rework will be needed to allow for fast_install
  2897. + # before this can be enabled.
  2898. + hardcode_into_libs=yes
  2899. +
  2900. + # Append ld.so.conf contents to the search path
  2901. + if test -f /etc/ld.so.conf; then
  2902. + lt_ld_extra=`$SED -e 's/[:,\t]/ /g;s/=[^=]*$//;s/=[^= ]* / /g' /etc/ld.so.conf | tr '\n' ' '`
  2903. + sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  2904. + fi
  2905. +
  2906. + # We used to test for /lib/ld.so.1 and disable shared libraries on
  2907. + # powerpc, because MkLinux only supported shared libraries with the
  2908. + # GNU dynamic linker. Since this was broken with cross compilers,
  2909. + # most powerpc-linux boxes support dynamic linking these days and
  2910. + # people can always --disable-shared, the test was removed, and we
  2911. + # assume the GNU/Linux dynamic linker is in use.
  2912. + dynamic_linker='GNU/Linux ld.so'
  2913. + ;;
  2914. +
  2915. +netbsdelf*-gnu)
  2916. + version_type=linux
  2917. + need_lib_prefix=no
  2918. + need_version=no
  2919. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2920. + soname_spec='${libname}${release}${shared_ext}$major'
  2921. + shlibpath_var=LD_LIBRARY_PATH
  2922. + shlibpath_overrides_runpath=no
  2923. + hardcode_into_libs=yes
  2924. + dynamic_linker='NetBSD ld.elf_so'
  2925. + ;;
  2926. +
  2927. +knetbsd*-gnu)
  2928. + version_type=linux
  2929. + need_lib_prefix=no
  2930. + need_version=no
  2931. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2932. + soname_spec='${libname}${release}${shared_ext}$major'
  2933. + shlibpath_var=LD_LIBRARY_PATH
  2934. + shlibpath_overrides_runpath=no
  2935. + hardcode_into_libs=yes
  2936. + dynamic_linker='GNU ld.so'
  2937. + ;;
  2938. +
  2939. +netbsd*)
  2940. + version_type=sunos
  2941. + need_lib_prefix=no
  2942. + need_version=no
  2943. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  2944. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2945. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2946. + dynamic_linker='NetBSD (a.out) ld.so'
  2947. + else
  2948. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  2949. + soname_spec='${libname}${release}${shared_ext}$major'
  2950. + dynamic_linker='NetBSD ld.elf_so'
  2951. + fi
  2952. + shlibpath_var=LD_LIBRARY_PATH
  2953. + shlibpath_overrides_runpath=yes
  2954. + hardcode_into_libs=yes
  2955. + ;;
  2956. +
  2957. +newsos6)
  2958. + version_type=linux
  2959. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2960. + shlibpath_var=LD_LIBRARY_PATH
  2961. + shlibpath_overrides_runpath=yes
  2962. + ;;
  2963. +
  2964. +nto-qnx*)
  2965. + version_type=linux
  2966. + need_lib_prefix=no
  2967. + need_version=no
  2968. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  2969. + soname_spec='${libname}${release}${shared_ext}$major'
  2970. + shlibpath_var=LD_LIBRARY_PATH
  2971. + shlibpath_overrides_runpath=yes
  2972. + ;;
  2973. +
  2974. +openbsd*)
  2975. + version_type=sunos
  2976. + need_lib_prefix=no
  2977. + need_version=yes
  2978. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  2979. + finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  2980. + shlibpath_var=LD_LIBRARY_PATH
  2981. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  2982. + case $host_os in
  2983. + openbsd2.[[89]] | openbsd2.[[89]].*)
  2984. + shlibpath_overrides_runpath=no
  2985. + ;;
  2986. + *)
  2987. + shlibpath_overrides_runpath=yes
  2988. + ;;
  2989. + esac
  2990. + else
  2991. + shlibpath_overrides_runpath=yes
  2992. + fi
  2993. + ;;
  2994. +
  2995. +os2*)
  2996. + libname_spec='$name'
  2997. + shrext_cmds=".dll"
  2998. + need_lib_prefix=no
  2999. + library_names_spec='$libname${shared_ext} $libname.a'
  3000. + dynamic_linker='OS/2 ld.exe'
  3001. + shlibpath_var=LIBPATH
  3002. + ;;
  3003. +
  3004. +osf3* | osf4* | osf5*)
  3005. + version_type=osf
  3006. + need_lib_prefix=no
  3007. + need_version=no
  3008. + soname_spec='${libname}${release}${shared_ext}$major'
  3009. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3010. + shlibpath_var=LD_LIBRARY_PATH
  3011. + sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  3012. + sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  3013. + ;;
  3014. +
  3015. +sco3.2v5*)
  3016. + version_type=osf
  3017. + soname_spec='${libname}${release}${shared_ext}$major'
  3018. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3019. + shlibpath_var=LD_LIBRARY_PATH
  3020. + ;;
  3021. +
  3022. +solaris*)
  3023. + version_type=linux
  3024. + need_lib_prefix=no
  3025. + need_version=no
  3026. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3027. + soname_spec='${libname}${release}${shared_ext}$major'
  3028. + shlibpath_var=LD_LIBRARY_PATH
  3029. + shlibpath_overrides_runpath=yes
  3030. + hardcode_into_libs=yes
  3031. + # ldd complains unless libraries are executable
  3032. + postinstall_cmds='chmod +x $lib'
  3033. + ;;
  3034. +
  3035. +sunos4*)
  3036. + version_type=sunos
  3037. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  3038. + finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  3039. + shlibpath_var=LD_LIBRARY_PATH
  3040. + shlibpath_overrides_runpath=yes
  3041. + if test "$with_gnu_ld" = yes; then
  3042. + need_lib_prefix=no
  3043. + fi
  3044. + need_version=yes
  3045. + ;;
  3046. +
  3047. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3048. + version_type=linux
  3049. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3050. + soname_spec='${libname}${release}${shared_ext}$major'
  3051. + shlibpath_var=LD_LIBRARY_PATH
  3052. + case $host_vendor in
  3053. + sni)
  3054. + shlibpath_overrides_runpath=no
  3055. + need_lib_prefix=no
  3056. + export_dynamic_flag_spec='${wl}-Blargedynsym'
  3057. + runpath_var=LD_RUN_PATH
  3058. + ;;
  3059. + siemens)
  3060. + need_lib_prefix=no
  3061. + ;;
  3062. + motorola)
  3063. + need_lib_prefix=no
  3064. + need_version=no
  3065. + shlibpath_overrides_runpath=no
  3066. + sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  3067. + ;;
  3068. + esac
  3069. + ;;
  3070. +
  3071. +sysv4*MP*)
  3072. + if test -d /usr/nec ;then
  3073. + version_type=linux
  3074. + library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  3075. + soname_spec='$libname${shared_ext}.$major'
  3076. + shlibpath_var=LD_LIBRARY_PATH
  3077. + fi
  3078. + ;;
  3079. +
  3080. +uts4*)
  3081. + version_type=linux
  3082. + library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  3083. + soname_spec='${libname}${release}${shared_ext}$major'
  3084. + shlibpath_var=LD_LIBRARY_PATH
  3085. + ;;
  3086. +
  3087. +*)
  3088. + dynamic_linker=no
  3089. + ;;
  3090. +esac
  3091. +AC_MSG_RESULT([$dynamic_linker])
  3092. +test "$dynamic_linker" = no && can_build_shared=no
  3093. +])# AC_LIBTOOL_SYS_DYNAMIC_LINKER
  3094. +
  3095. +
  3096. +# _LT_AC_TAGCONFIG
  3097. +# ----------------
  3098. +AC_DEFUN([_LT_AC_TAGCONFIG],
  3099. +[AC_ARG_WITH([tags],
  3100. + [AC_HELP_STRING([--with-tags@<:@=TAGS@:>@],
  3101. + [include additional configurations @<:@automatic@:>@])],
  3102. + [tagnames="$withval"])
  3103. +
  3104. +if test -f "$ltmain" && test -n "$tagnames"; then
  3105. + if test ! -f "${ofile}"; then
  3106. + AC_MSG_WARN([output file `$ofile' does not exist])
  3107. + fi
  3108. +
  3109. + if test -z "$LTCC"; then
  3110. + eval "`$SHELL ${ofile} --config | grep '^LTCC='`"
  3111. + if test -z "$LTCC"; then
  3112. + AC_MSG_WARN([output file `$ofile' does not look like a libtool script])
  3113. + else
  3114. + AC_MSG_WARN([using `LTCC=$LTCC', extracted from `$ofile'])
  3115. + fi
  3116. + fi
  3117. +
  3118. + # Extract list of available tagged configurations in $ofile.
  3119. + # Note that this assumes the entire list is on one line.
  3120. + available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'`
  3121. +
  3122. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3123. + for tagname in $tagnames; do
  3124. + IFS="$lt_save_ifs"
  3125. + # Check whether tagname contains only valid characters
  3126. + case `$echo "X$tagname" | $Xsed -e 's:[[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]]::g'` in
  3127. + "") ;;
  3128. + *) AC_MSG_ERROR([invalid tag name: $tagname])
  3129. + ;;
  3130. + esac
  3131. +
  3132. + if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null
  3133. + then
  3134. + AC_MSG_ERROR([tag name \"$tagname\" already exists])
  3135. + fi
  3136. +
  3137. + # Update the list of available tags.
  3138. + if test -n "$tagname"; then
  3139. + echo appending configuration tag \"$tagname\" to $ofile
  3140. +
  3141. + case $tagname in
  3142. + CXX)
  3143. + if test -n "$CXX" && test "X$CXX" != "Xno"; then
  3144. + AC_LIBTOOL_LANG_CXX_CONFIG
  3145. + else
  3146. + tagname=""
  3147. + fi
  3148. + ;;
  3149. +
  3150. + F77)
  3151. + if test -n "$F77" && test "X$F77" != "Xno"; then
  3152. + AC_LIBTOOL_LANG_F77_CONFIG
  3153. + else
  3154. + tagname=""
  3155. + fi
  3156. + ;;
  3157. +
  3158. + GCJ)
  3159. + if test -n "$GCJ" && test "X$GCJ" != "Xno"; then
  3160. + AC_LIBTOOL_LANG_GCJ_CONFIG
  3161. + else
  3162. + tagname=""
  3163. + fi
  3164. + ;;
  3165. +
  3166. + RC)
  3167. + AC_LIBTOOL_LANG_RC_CONFIG
  3168. + ;;
  3169. +
  3170. + *)
  3171. + AC_MSG_ERROR([Unsupported tag name: $tagname])
  3172. + ;;
  3173. + esac
  3174. +
  3175. + # Append the new tag name to the list of available tags.
  3176. + if test -n "$tagname" ; then
  3177. + available_tags="$available_tags $tagname"
  3178. + fi
  3179. + fi
  3180. + done
  3181. + IFS="$lt_save_ifs"
  3182. +
  3183. + # Now substitute the updated list of available tags.
  3184. + if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then
  3185. + mv "${ofile}T" "$ofile"
  3186. + chmod +x "$ofile"
  3187. + else
  3188. + rm -f "${ofile}T"
  3189. + AC_MSG_ERROR([unable to update list of available tagged configurations.])
  3190. + fi
  3191. +fi
  3192. +])# _LT_AC_TAGCONFIG
  3193. +
  3194. +
  3195. +# AC_LIBTOOL_DLOPEN
  3196. +# -----------------
  3197. +# enable checks for dlopen support
  3198. +AC_DEFUN([AC_LIBTOOL_DLOPEN],
  3199. + [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])
  3200. +])# AC_LIBTOOL_DLOPEN
  3201. +
  3202. +
  3203. +# AC_LIBTOOL_WIN32_DLL
  3204. +# --------------------
  3205. +# declare package support for building win32 dll's
  3206. +AC_DEFUN([AC_LIBTOOL_WIN32_DLL],
  3207. +[AC_BEFORE([$0], [AC_LIBTOOL_SETUP])
  3208. +])# AC_LIBTOOL_WIN32_DLL
  3209. +
  3210. +
  3211. +# AC_ENABLE_SHARED([DEFAULT])
  3212. +# ---------------------------
  3213. +# implement the --enable-shared flag
  3214. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3215. +AC_DEFUN([AC_ENABLE_SHARED],
  3216. +[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  3217. +AC_ARG_ENABLE([shared],
  3218. + [AC_HELP_STRING([--enable-shared@<:@=PKGS@:>@],
  3219. + [build shared libraries @<:@default=]AC_ENABLE_SHARED_DEFAULT[@:>@])],
  3220. + [p=${PACKAGE-default}
  3221. + case $enableval in
  3222. + yes) enable_shared=yes ;;
  3223. + no) enable_shared=no ;;
  3224. + *)
  3225. + enable_shared=no
  3226. + # Look at the argument we got. We use all the common list separators.
  3227. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3228. + for pkg in $enableval; do
  3229. + IFS="$lt_save_ifs"
  3230. + if test "X$pkg" = "X$p"; then
  3231. + enable_shared=yes
  3232. + fi
  3233. + done
  3234. + IFS="$lt_save_ifs"
  3235. + ;;
  3236. + esac],
  3237. + [enable_shared=]AC_ENABLE_SHARED_DEFAULT)
  3238. +])# AC_ENABLE_SHARED
  3239. +
  3240. +
  3241. +# AC_DISABLE_SHARED
  3242. +# -----------------
  3243. +#- set the default shared flag to --disable-shared
  3244. +AC_DEFUN([AC_DISABLE_SHARED],
  3245. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3246. +AC_ENABLE_SHARED(no)
  3247. +])# AC_DISABLE_SHARED
  3248. +
  3249. +
  3250. +# AC_ENABLE_STATIC([DEFAULT])
  3251. +# ---------------------------
  3252. +# implement the --enable-static flag
  3253. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3254. +AC_DEFUN([AC_ENABLE_STATIC],
  3255. +[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  3256. +AC_ARG_ENABLE([static],
  3257. + [AC_HELP_STRING([--enable-static@<:@=PKGS@:>@],
  3258. + [build static libraries @<:@default=]AC_ENABLE_STATIC_DEFAULT[@:>@])],
  3259. + [p=${PACKAGE-default}
  3260. + case $enableval in
  3261. + yes) enable_static=yes ;;
  3262. + no) enable_static=no ;;
  3263. + *)
  3264. + enable_static=no
  3265. + # Look at the argument we got. We use all the common list separators.
  3266. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3267. + for pkg in $enableval; do
  3268. + IFS="$lt_save_ifs"
  3269. + if test "X$pkg" = "X$p"; then
  3270. + enable_static=yes
  3271. + fi
  3272. + done
  3273. + IFS="$lt_save_ifs"
  3274. + ;;
  3275. + esac],
  3276. + [enable_static=]AC_ENABLE_STATIC_DEFAULT)
  3277. +])# AC_ENABLE_STATIC
  3278. +
  3279. +
  3280. +# AC_DISABLE_STATIC
  3281. +# -----------------
  3282. +# set the default static flag to --disable-static
  3283. +AC_DEFUN([AC_DISABLE_STATIC],
  3284. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3285. +AC_ENABLE_STATIC(no)
  3286. +])# AC_DISABLE_STATIC
  3287. +
  3288. +
  3289. +# AC_ENABLE_FAST_INSTALL([DEFAULT])
  3290. +# ---------------------------------
  3291. +# implement the --enable-fast-install flag
  3292. +# DEFAULT is either `yes' or `no'. If omitted, it defaults to `yes'.
  3293. +AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  3294. +[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  3295. +AC_ARG_ENABLE([fast-install],
  3296. + [AC_HELP_STRING([--enable-fast-install@<:@=PKGS@:>@],
  3297. + [optimize for fast installation @<:@default=]AC_ENABLE_FAST_INSTALL_DEFAULT[@:>@])],
  3298. + [p=${PACKAGE-default}
  3299. + case $enableval in
  3300. + yes) enable_fast_install=yes ;;
  3301. + no) enable_fast_install=no ;;
  3302. + *)
  3303. + enable_fast_install=no
  3304. + # Look at the argument we got. We use all the common list separators.
  3305. + lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  3306. + for pkg in $enableval; do
  3307. + IFS="$lt_save_ifs"
  3308. + if test "X$pkg" = "X$p"; then
  3309. + enable_fast_install=yes
  3310. + fi
  3311. + done
  3312. + IFS="$lt_save_ifs"
  3313. + ;;
  3314. + esac],
  3315. + [enable_fast_install=]AC_ENABLE_FAST_INSTALL_DEFAULT)
  3316. +])# AC_ENABLE_FAST_INSTALL
  3317. +
  3318. +
  3319. +# AC_DISABLE_FAST_INSTALL
  3320. +# -----------------------
  3321. +# set the default to --disable-fast-install
  3322. +AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  3323. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3324. +AC_ENABLE_FAST_INSTALL(no)
  3325. +])# AC_DISABLE_FAST_INSTALL
  3326. +
  3327. +
  3328. +# AC_LIBTOOL_PICMODE([MODE])
  3329. +# --------------------------
  3330. +# implement the --with-pic flag
  3331. +# MODE is either `yes' or `no'. If omitted, it defaults to `both'.
  3332. +AC_DEFUN([AC_LIBTOOL_PICMODE],
  3333. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3334. +pic_mode=ifelse($#,1,$1,default)
  3335. +])# AC_LIBTOOL_PICMODE
  3336. +
  3337. +
  3338. +# AC_PROG_EGREP
  3339. +# -------------
  3340. +# This is predefined starting with Autoconf 2.54, so this conditional
  3341. +# definition can be removed once we require Autoconf 2.54 or later.
  3342. +m4_ifndef([AC_PROG_EGREP], [AC_DEFUN([AC_PROG_EGREP],
  3343. +[AC_CACHE_CHECK([for egrep], [ac_cv_prog_egrep],
  3344. + [if echo a | (grep -E '(a|b)') >/dev/null 2>&1
  3345. + then ac_cv_prog_egrep='grep -E'
  3346. + else ac_cv_prog_egrep='egrep'
  3347. + fi])
  3348. + EGREP=$ac_cv_prog_egrep
  3349. + AC_SUBST([EGREP])
  3350. +])])
  3351. +
  3352. +
  3353. +# AC_PATH_TOOL_PREFIX
  3354. +# -------------------
  3355. +# find a file program which can recognise shared library
  3356. +AC_DEFUN([AC_PATH_TOOL_PREFIX],
  3357. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  3358. +AC_MSG_CHECKING([for $1])
  3359. +AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  3360. +[case $MAGIC_CMD in
  3361. +[[\\/*] | ?:[\\/]*])
  3362. + lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  3363. + ;;
  3364. +*)
  3365. + lt_save_MAGIC_CMD="$MAGIC_CMD"
  3366. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3367. +dnl $ac_dummy forces splitting on constant user-supplied paths.
  3368. +dnl POSIX.2 word splitting is done only on the output of word expansions,
  3369. +dnl not every word. This closes a longstanding sh security hole.
  3370. + ac_dummy="ifelse([$2], , $PATH, [$2])"
  3371. + for ac_dir in $ac_dummy; do
  3372. + IFS="$lt_save_ifs"
  3373. + test -z "$ac_dir" && ac_dir=.
  3374. + if test -f $ac_dir/$1; then
  3375. + lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  3376. + if test -n "$file_magic_test_file"; then
  3377. + case $deplibs_check_method in
  3378. + "file_magic "*)
  3379. + file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  3380. + MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3381. + if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  3382. + $EGREP "$file_magic_regex" > /dev/null; then
  3383. + :
  3384. + else
  3385. + cat <<EOF 1>&2
  3386. +
  3387. +*** Warning: the command libtool uses to detect shared libraries,
  3388. +*** $file_magic_cmd, produces output that libtool cannot recognize.
  3389. +*** The result is that libtool may fail to recognize shared libraries
  3390. +*** as such. This will affect the creation of libtool libraries that
  3391. +*** depend on shared libraries, but programs linked with such libtool
  3392. +*** libraries will work regardless of this problem. Nevertheless, you
  3393. +*** may want to report the problem to your system manager and/or to
  3394. +*** [email protected]
  3395. +
  3396. +EOF
  3397. + fi ;;
  3398. + esac
  3399. + fi
  3400. + break
  3401. + fi
  3402. + done
  3403. + IFS="$lt_save_ifs"
  3404. + MAGIC_CMD="$lt_save_MAGIC_CMD"
  3405. + ;;
  3406. +esac])
  3407. +MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  3408. +if test -n "$MAGIC_CMD"; then
  3409. + AC_MSG_RESULT($MAGIC_CMD)
  3410. +else
  3411. + AC_MSG_RESULT(no)
  3412. +fi
  3413. +])# AC_PATH_TOOL_PREFIX
  3414. +
  3415. +
  3416. +# AC_PATH_MAGIC
  3417. +# -------------
  3418. +# find a file program which can recognise a shared library
  3419. +AC_DEFUN([AC_PATH_MAGIC],
  3420. +[AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin$PATH_SEPARATOR$PATH)
  3421. +if test -z "$lt_cv_path_MAGIC_CMD"; then
  3422. + if test -n "$ac_tool_prefix"; then
  3423. + AC_PATH_TOOL_PREFIX(file, /usr/bin$PATH_SEPARATOR$PATH)
  3424. + else
  3425. + MAGIC_CMD=:
  3426. + fi
  3427. +fi
  3428. +])# AC_PATH_MAGIC
  3429. +
  3430. +
  3431. +# AC_PROG_LD
  3432. +# ----------
  3433. +# find the pathname to the GNU or non-GNU linker
  3434. +AC_DEFUN([AC_PROG_LD],
  3435. +[AC_ARG_WITH([gnu-ld],
  3436. + [AC_HELP_STRING([--with-gnu-ld],
  3437. + [assume the C compiler uses GNU ld @<:@default=no@:>@])],
  3438. + [test "$withval" = no || with_gnu_ld=yes],
  3439. + [with_gnu_ld=no])
  3440. +AC_REQUIRE([LT_AC_PROG_SED])dnl
  3441. +AC_REQUIRE([AC_PROG_CC])dnl
  3442. +AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3443. +AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  3444. +ac_prog=ld
  3445. +if test "$GCC" = yes; then
  3446. + # Check if gcc -print-prog-name=ld gives a path.
  3447. + AC_MSG_CHECKING([for ld used by $CC])
  3448. + case $host in
  3449. + *-*-mingw*)
  3450. + # gcc leaves a trailing carriage return which upsets mingw
  3451. + ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3452. + *)
  3453. + ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3454. + esac
  3455. + case $ac_prog in
  3456. + # Accept absolute paths.
  3457. + [[\\/]]* | ?:[[\\/]]*)
  3458. + re_direlt='/[[^/]][[^/]]*/\.\./'
  3459. + # Canonicalize the pathname of ld
  3460. + ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'`
  3461. + while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  3462. + ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"`
  3463. + done
  3464. + test -z "$LD" && LD="$ac_prog"
  3465. + ;;
  3466. + "")
  3467. + # If it fails, then pretend we aren't using GCC.
  3468. + ac_prog=ld
  3469. + ;;
  3470. + *)
  3471. + # If it is relative, then search for the first ld in PATH.
  3472. + with_gnu_ld=unknown
  3473. + ;;
  3474. + esac
  3475. +elif test "$with_gnu_ld" = yes; then
  3476. + AC_MSG_CHECKING([for GNU ld])
  3477. +else
  3478. + AC_MSG_CHECKING([for non-GNU ld])
  3479. +fi
  3480. +AC_CACHE_VAL(lt_cv_path_LD,
  3481. +[if test -z "$LD"; then
  3482. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3483. + for ac_dir in $PATH; do
  3484. + IFS="$lt_save_ifs"
  3485. + test -z "$ac_dir" && ac_dir=.
  3486. + if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3487. + lt_cv_path_LD="$ac_dir/$ac_prog"
  3488. + # Check to see if the program is GNU ld. I'd rather use --version,
  3489. + # but apparently some GNU ld's only accept -v.
  3490. + # Break only if it was the GNU/non-GNU ld that we prefer.
  3491. + case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3492. + *GNU* | *'with BFD'*)
  3493. + test "$with_gnu_ld" != no && break
  3494. + ;;
  3495. + *)
  3496. + test "$with_gnu_ld" != yes && break
  3497. + ;;
  3498. + esac
  3499. + fi
  3500. + done
  3501. + IFS="$lt_save_ifs"
  3502. +else
  3503. + lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3504. +fi])
  3505. +LD="$lt_cv_path_LD"
  3506. +if test -n "$LD"; then
  3507. + AC_MSG_RESULT($LD)
  3508. +else
  3509. + AC_MSG_RESULT(no)
  3510. +fi
  3511. +test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  3512. +AC_PROG_LD_GNU
  3513. +])# AC_PROG_LD
  3514. +
  3515. +
  3516. +# AC_PROG_LD_GNU
  3517. +# --------------
  3518. +AC_DEFUN([AC_PROG_LD_GNU],
  3519. +[AC_REQUIRE([AC_PROG_EGREP])dnl
  3520. +AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  3521. +[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  3522. +case `$LD -v 2>&1 </dev/null` in
  3523. +*GNU* | *'with BFD'*)
  3524. + lt_cv_prog_gnu_ld=yes
  3525. + ;;
  3526. +*)
  3527. + lt_cv_prog_gnu_ld=no
  3528. + ;;
  3529. +esac])
  3530. +with_gnu_ld=$lt_cv_prog_gnu_ld
  3531. +])# AC_PROG_LD_GNU
  3532. +
  3533. +
  3534. +# AC_PROG_LD_RELOAD_FLAG
  3535. +# ----------------------
  3536. +# find reload flag for linker
  3537. +# -- PORTME Some linkers may need a different reload flag.
  3538. +AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  3539. +[AC_CACHE_CHECK([for $LD option to reload object files],
  3540. + lt_cv_ld_reload_flag,
  3541. + [lt_cv_ld_reload_flag='-r'])
  3542. +reload_flag=$lt_cv_ld_reload_flag
  3543. +case $reload_flag in
  3544. +"" | " "*) ;;
  3545. +*) reload_flag=" $reload_flag" ;;
  3546. +esac
  3547. +reload_cmds='$LD$reload_flag -o $output$reload_objs'
  3548. +])# AC_PROG_LD_RELOAD_FLAG
  3549. +
  3550. +
  3551. +# AC_DEPLIBS_CHECK_METHOD
  3552. +# -----------------------
  3553. +# how to check for library dependencies
  3554. +# -- PORTME fill in with the dynamic library characteristics
  3555. +AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  3556. +[AC_CACHE_CHECK([how to recognise dependent libraries],
  3557. +lt_cv_deplibs_check_method,
  3558. +[lt_cv_file_magic_cmd='$MAGIC_CMD'
  3559. +lt_cv_file_magic_test_file=
  3560. +lt_cv_deplibs_check_method='unknown'
  3561. +# Need to set the preceding variable on all platforms that support
  3562. +# interlibrary dependencies.
  3563. +# 'none' -- dependencies not supported.
  3564. +# `unknown' -- same as none, but documents that we really don't know.
  3565. +# 'pass_all' -- all dependencies passed with no checks.
  3566. +# 'test_compile' -- check by making test program.
  3567. +# 'file_magic [[regex]]' -- check by looking for files in library path
  3568. +# which responds to the $file_magic_cmd with a given extended regex.
  3569. +# If you have `file' or equivalent on your system and you're not sure
  3570. +# whether `pass_all' will *always* work, you probably want this one.
  3571. +
  3572. +case $host_os in
  3573. +aix4* | aix5*)
  3574. + lt_cv_deplibs_check_method=pass_all
  3575. + ;;
  3576. +
  3577. +beos*)
  3578. + lt_cv_deplibs_check_method=pass_all
  3579. + ;;
  3580. +
  3581. +bsdi4*)
  3582. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  3583. + lt_cv_file_magic_cmd='/usr/bin/file -L'
  3584. + lt_cv_file_magic_test_file=/shlib/libc.so
  3585. + ;;
  3586. +
  3587. +cygwin*)
  3588. + # func_win32_libid is a shell function defined in ltmain.sh
  3589. + lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  3590. + lt_cv_file_magic_cmd='func_win32_libid'
  3591. + ;;
  3592. +
  3593. +mingw* | pw32*)
  3594. + # Base MSYS/MinGW do not provide the 'file' command needed by
  3595. + # func_win32_libid shell function, so use a weaker test based on 'objdump'.
  3596. + lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  3597. + lt_cv_file_magic_cmd='$OBJDUMP -f'
  3598. + ;;
  3599. +
  3600. +darwin* | rhapsody*)
  3601. + lt_cv_deplibs_check_method=pass_all
  3602. + ;;
  3603. +
  3604. +freebsd* | kfreebsd*-gnu)
  3605. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3606. + case $host_cpu in
  3607. + i*86 )
  3608. + # Not sure whether the presence of OpenBSD here was a mistake.
  3609. + # Let's accept both of them until this is cleared up.
  3610. + lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  3611. + lt_cv_file_magic_cmd=/usr/bin/file
  3612. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3613. + ;;
  3614. + esac
  3615. + else
  3616. + lt_cv_deplibs_check_method=pass_all
  3617. + fi
  3618. + ;;
  3619. +
  3620. +gnu*)
  3621. + lt_cv_deplibs_check_method=pass_all
  3622. + ;;
  3623. +
  3624. +hpux10.20* | hpux11*)
  3625. + lt_cv_file_magic_cmd=/usr/bin/file
  3626. + case "$host_cpu" in
  3627. + ia64*)
  3628. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|ELF-[[0-9]][[0-9]]) shared object file - IA64'
  3629. + lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  3630. + ;;
  3631. + hppa*64*)
  3632. + [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]']
  3633. + lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  3634. + ;;
  3635. + *)
  3636. + lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  3637. + lt_cv_file_magic_test_file=/usr/lib/libc.sl
  3638. + ;;
  3639. + esac
  3640. + ;;
  3641. +
  3642. +irix5* | irix6* | nonstopux*)
  3643. + case $LD in
  3644. + *-32|*"-32 ") libmagic=32-bit;;
  3645. + *-n32|*"-n32 ") libmagic=N32;;
  3646. + *-64|*"-64 ") libmagic=64-bit;;
  3647. + *) libmagic=never-match;;
  3648. + esac
  3649. + lt_cv_deplibs_check_method=pass_all
  3650. + ;;
  3651. +
  3652. +# This must be Linux ELF.
  3653. +linux*)
  3654. + lt_cv_deplibs_check_method=pass_all
  3655. + ;;
  3656. +
  3657. +netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  3658. + if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  3659. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so\.[[0-9]]+\.[[0-9]]+|_pic\.a)$'
  3660. + else
  3661. + lt_cv_deplibs_check_method='match_pattern /lib[[^/]]+(\.so|_pic\.a)$'
  3662. + fi
  3663. + ;;
  3664. +
  3665. +newos6*)
  3666. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  3667. + lt_cv_file_magic_cmd=/usr/bin/file
  3668. + lt_cv_file_magic_test_file=/usr/lib/libnls.so
  3669. + ;;
  3670. +
  3671. +nto-qnx*)
  3672. + lt_cv_deplibs_check_method=unknown
  3673. + ;;
  3674. +
  3675. +openbsd*)
  3676. + lt_cv_file_magic_cmd=/usr/bin/file
  3677. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  3678. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  3679. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  3680. + else
  3681. + lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  3682. + fi
  3683. + ;;
  3684. +
  3685. +osf3* | osf4* | osf5*)
  3686. + lt_cv_deplibs_check_method=pass_all
  3687. + ;;
  3688. +
  3689. +sco3.2v5*)
  3690. + lt_cv_deplibs_check_method=pass_all
  3691. + ;;
  3692. +
  3693. +solaris*)
  3694. + lt_cv_deplibs_check_method=pass_all
  3695. + ;;
  3696. +
  3697. +sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  3698. + case $host_vendor in
  3699. + motorola)
  3700. + 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]]'
  3701. + lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  3702. + ;;
  3703. + ncr)
  3704. + lt_cv_deplibs_check_method=pass_all
  3705. + ;;
  3706. + sequent)
  3707. + lt_cv_file_magic_cmd='/bin/file'
  3708. + lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  3709. + ;;
  3710. + sni)
  3711. + lt_cv_file_magic_cmd='/bin/file'
  3712. + lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  3713. + lt_cv_file_magic_test_file=/lib/libc.so
  3714. + ;;
  3715. + siemens)
  3716. + lt_cv_deplibs_check_method=pass_all
  3717. ;;
  3718. + esac
  3719. + ;;
  3720. +
  3721. +sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7* | sysv4*uw2*)
  3722. + lt_cv_deplibs_check_method=pass_all
  3723. + ;;
  3724. +esac
  3725. +])
  3726. +file_magic_cmd=$lt_cv_file_magic_cmd
  3727. +deplibs_check_method=$lt_cv_deplibs_check_method
  3728. +test -z "$deplibs_check_method" && deplibs_check_method=unknown
  3729. +])# AC_DEPLIBS_CHECK_METHOD
  3730. - netbsd*)
  3731. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  3732. - archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  3733. - wlarc=
  3734. - else
  3735. - archive_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3736. - archive_expsym_cmds='$CC -shared -nodefaultlibs $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3737. +
  3738. +# AC_PROG_NM
  3739. +# ----------
  3740. +# find the pathname to a BSD-compatible name lister
  3741. +AC_DEFUN([AC_PROG_NM],
  3742. +[AC_CACHE_CHECK([for BSD-compatible nm], lt_cv_path_NM,
  3743. +[if test -n "$NM"; then
  3744. + # Let the user override the test.
  3745. + lt_cv_path_NM="$NM"
  3746. +else
  3747. + lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3748. + for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  3749. + IFS="$lt_save_ifs"
  3750. + test -z "$ac_dir" && ac_dir=.
  3751. + tmp_nm="$ac_dir/${ac_tool_prefix}nm"
  3752. + if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3753. + # Check to see if the nm accepts a BSD-compat flag.
  3754. + # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3755. + # nm: unknown option "B" ignored
  3756. + # Tru64's nm complains that /dev/null is an invalid object file
  3757. + case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3758. + */dev/null* | *'Invalid file or object type'*)
  3759. + lt_cv_path_NM="$tmp_nm -B"
  3760. + break
  3761. + ;;
  3762. + *)
  3763. + case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3764. + */dev/null*)
  3765. + lt_cv_path_NM="$tmp_nm -p"
  3766. + break
  3767. + ;;
  3768. + *)
  3769. + lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3770. + continue # so that we can try to find one that supports BSD flags
  3771. + ;;
  3772. + esac
  3773. + esac
  3774. fi
  3775. - ;;
  3776. + done
  3777. + IFS="$lt_save_ifs"
  3778. + test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  3779. +fi])
  3780. +NM="$lt_cv_path_NM"
  3781. +])# AC_PROG_NM
  3782. - solaris* | sysv5*)
  3783. - if $LD -v 2>&1 | egrep 'BFD 2\.8' > /dev/null; then
  3784. - ld_shlibs=no
  3785. - cat <<EOF 1>&2
  3786. -*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  3787. -*** create shared libraries on Solaris systems. Therefore, libtool
  3788. -*** is disabling shared libraries support. We urge you to upgrade GNU
  3789. -*** binutils to release 2.9.1 or newer. Another option is to modify
  3790. -*** your PATH or compiler configuration so that the native linker is
  3791. -*** used, and then restart.
  3792. +# AC_CHECK_LIBM
  3793. +# -------------
  3794. +# check for math library
  3795. +AC_DEFUN([AC_CHECK_LIBM],
  3796. +[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  3797. +LIBM=
  3798. +case $host in
  3799. +*-*-beos* | *-*-cygwin* | *-*-pw32* | *-*-darwin*)
  3800. + # These system don't have libm, or don't need it
  3801. + ;;
  3802. +*-ncr-sysv4.3*)
  3803. + AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  3804. + AC_CHECK_LIB(m, cos, LIBM="$LIBM -lm")
  3805. + ;;
  3806. +*)
  3807. + AC_CHECK_LIB(m, cos, LIBM="-lm")
  3808. + ;;
  3809. +esac
  3810. +])# AC_CHECK_LIBM
  3811. -EOF
  3812. - elif $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3813. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3814. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3815. - else
  3816. - ld_shlibs=no
  3817. - fi
  3818. - ;;
  3819. - sunos4*)
  3820. - archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  3821. - wlarc=
  3822. - hardcode_direct=yes
  3823. - hardcode_shlibpath_var=no
  3824. - ;;
  3825. +# AC_LIBLTDL_CONVENIENCE([DIRECTORY])
  3826. +# -----------------------------------
  3827. +# sets LIBLTDL to the link flags for the libltdl convenience library and
  3828. +# LTDLINCL to the include flags for the libltdl header and adds
  3829. +# --enable-ltdl-convenience to the configure arguments. Note that LIBLTDL
  3830. +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  3831. +# DIRECTORY is not provided, it is assumed to be `libltdl'. LIBLTDL will
  3832. +# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed with
  3833. +# '${top_srcdir}/' (note the single quotes!). If your package is not
  3834. +# flat and you're not using automake, define top_builddir and
  3835. +# top_srcdir appropriately in the Makefiles.
  3836. +AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  3837. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3838. + case $enable_ltdl_convenience in
  3839. + no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  3840. + "") enable_ltdl_convenience=yes
  3841. + ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  3842. + esac
  3843. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  3844. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3845. + # For backwards non-gettext consistent compatibility...
  3846. + INCLTDL="$LTDLINCL"
  3847. +])# AC_LIBLTDL_CONVENIENCE
  3848. - *)
  3849. - if $LD --help 2>&1 | egrep ': supported targets:.* elf' > /dev/null; then
  3850. - archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  3851. - archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  3852. - else
  3853. - ld_shlibs=no
  3854. - fi
  3855. +
  3856. +# AC_LIBLTDL_INSTALLABLE([DIRECTORY])
  3857. +# -----------------------------------
  3858. +# sets LIBLTDL to the link flags for the libltdl installable library and
  3859. +# LTDLINCL to the include flags for the libltdl header and adds
  3860. +# --enable-ltdl-install to the configure arguments. Note that LIBLTDL
  3861. +# and LTDLINCL are not AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If
  3862. +# DIRECTORY is not provided and an installed libltdl is not found, it is
  3863. +# assumed to be `libltdl'. LIBLTDL will be prefixed with '${top_builddir}/'
  3864. +# and LTDLINCL will be prefixed with '${top_srcdir}/' (note the single
  3865. +# quotes!). If your package is not flat and you're not using automake,
  3866. +# define top_builddir and top_srcdir appropriately in the Makefiles.
  3867. +# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  3868. +AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  3869. +[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  3870. + AC_CHECK_LIB(ltdl, lt_dlinit,
  3871. + [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  3872. + [if test x"$enable_ltdl_install" = xno; then
  3873. + AC_MSG_WARN([libltdl not installed, but installation disabled])
  3874. + else
  3875. + enable_ltdl_install=yes
  3876. + fi
  3877. + ])
  3878. + if test x"$enable_ltdl_install" = x"yes"; then
  3879. + ac_configure_args="$ac_configure_args --enable-ltdl-install"
  3880. + LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  3881. + LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  3882. + else
  3883. + ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  3884. + LIBLTDL="-lltdl"
  3885. + LTDLINCL=
  3886. + fi
  3887. + # For backwards non-gettext consistent compatibility...
  3888. + INCLTDL="$LTDLINCL"
  3889. +])# AC_LIBLTDL_INSTALLABLE
  3890. +
  3891. +
  3892. +# AC_LIBTOOL_CXX
  3893. +# --------------
  3894. +# enable support for C++ libraries
  3895. +AC_DEFUN([AC_LIBTOOL_CXX],
  3896. +[AC_REQUIRE([_LT_AC_LANG_CXX])
  3897. +])# AC_LIBTOOL_CXX
  3898. +
  3899. +
  3900. +# _LT_AC_LANG_CXX
  3901. +# ---------------
  3902. +AC_DEFUN([_LT_AC_LANG_CXX],
  3903. +[AC_REQUIRE([AC_PROG_CXX])
  3904. +AC_REQUIRE([AC_PROG_CXXCPP])
  3905. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}CXX])
  3906. +])# _LT_AC_LANG_CXX
  3907. +
  3908. +
  3909. +# AC_LIBTOOL_F77
  3910. +# --------------
  3911. +# enable support for Fortran 77 libraries
  3912. +AC_DEFUN([AC_LIBTOOL_F77],
  3913. +[AC_REQUIRE([_LT_AC_LANG_F77])
  3914. +])# AC_LIBTOOL_F77
  3915. +
  3916. +
  3917. +# _LT_AC_LANG_F77
  3918. +# ---------------
  3919. +AC_DEFUN([_LT_AC_LANG_F77],
  3920. +[AC_REQUIRE([AC_PROG_F77])
  3921. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}F77])
  3922. +])# _LT_AC_LANG_F77
  3923. +
  3924. +
  3925. +# AC_LIBTOOL_GCJ
  3926. +# --------------
  3927. +# enable support for GCJ libraries
  3928. +AC_DEFUN([AC_LIBTOOL_GCJ],
  3929. +[AC_REQUIRE([_LT_AC_LANG_GCJ])
  3930. +])# AC_LIBTOOL_GCJ
  3931. +
  3932. +
  3933. +# _LT_AC_LANG_GCJ
  3934. +# ---------------
  3935. +AC_DEFUN([_LT_AC_LANG_GCJ],
  3936. +[AC_PROVIDE_IFELSE([AC_PROG_GCJ],[],
  3937. + [AC_PROVIDE_IFELSE([A][M_PROG_GCJ],[],
  3938. + [AC_PROVIDE_IFELSE([LT_AC_PROG_GCJ],[],
  3939. + [ifdef([AC_PROG_GCJ],[AC_REQUIRE([AC_PROG_GCJ])],
  3940. + [ifdef([A][M_PROG_GCJ],[AC_REQUIRE([A][M_PROG_GCJ])],
  3941. + [AC_REQUIRE([A][C_PROG_GCJ_OR_A][M_PROG_GCJ])])])])])])
  3942. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}GCJ])
  3943. +])# _LT_AC_LANG_GCJ
  3944. +
  3945. +
  3946. +# AC_LIBTOOL_RC
  3947. +# --------------
  3948. +# enable support for Windows resource files
  3949. +AC_DEFUN([AC_LIBTOOL_RC],
  3950. +[AC_REQUIRE([LT_AC_PROG_RC])
  3951. +_LT_AC_SHELL_INIT([tagnames=${tagnames+${tagnames},}RC])
  3952. +])# AC_LIBTOOL_RC
  3953. +
  3954. +
  3955. +# AC_LIBTOOL_LANG_C_CONFIG
  3956. +# ------------------------
  3957. +# Ensure that the configuration vars for the C compiler are
  3958. +# suitably defined. Those variables are subsequently used by
  3959. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  3960. +AC_DEFUN([AC_LIBTOOL_LANG_C_CONFIG], [_LT_AC_LANG_C_CONFIG])
  3961. +AC_DEFUN([_LT_AC_LANG_C_CONFIG],
  3962. +[lt_save_CC="$CC"
  3963. +AC_LANG_PUSH(C)
  3964. +
  3965. +# Source file extension for C test sources.
  3966. +ac_ext=c
  3967. +
  3968. +# Object file extension for compiled C test sources.
  3969. +objext=o
  3970. +_LT_AC_TAGVAR(objext, $1)=$objext
  3971. +
  3972. +# Code to be used in simple compile tests
  3973. +lt_simple_compile_test_code="int some_variable = 0;\n"
  3974. +
  3975. +# Code to be used in simple link tests
  3976. +lt_simple_link_test_code='int main(){return(0);}\n'
  3977. +
  3978. +_LT_AC_SYS_COMPILER
  3979. +
  3980. +#
  3981. +# Check for any special shared library compilation flags.
  3982. +#
  3983. +_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)=
  3984. +if test "$GCC" = no; then
  3985. + case $host_os in
  3986. + sco3.2v5*)
  3987. + _LT_AC_TAGVAR(lt_prog_cc_shlib, $1)='-belf'
  3988. ;;
  3989. esac
  3990. +fi
  3991. +if test -n "$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)"; then
  3992. + AC_MSG_WARN([`$CC' requires `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to build shared libraries])
  3993. + if echo "$old_CC $old_CFLAGS " | grep "[[ ]]$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)[[ ]]" >/dev/null; then :
  3994. + else
  3995. + AC_MSG_WARN([add `$_LT_AC_TAGVAR(lt_prog_cc_shlib, $1)' to the CC or CFLAGS env variable and reconfigure])
  3996. + _LT_AC_TAGVAR(lt_cv_prog_cc_can_build_shared, $1)=no
  3997. + fi
  3998. +fi
  3999. - if test "$ld_shlibs" = yes; then
  4000. - runpath_var=LD_RUN_PATH
  4001. - hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir'
  4002. - export_dynamic_flag_spec='${wl}--export-dynamic'
  4003. - case $host_os in
  4004. - cygwin* | mingw* | pw32*)
  4005. - # dlltool doesn't understand --whole-archive et. al.
  4006. - whole_archive_flag_spec=
  4007. +
  4008. +#
  4009. +# Check to make sure the static flag actually works.
  4010. +#
  4011. +AC_LIBTOOL_LINKER_OPTION([if $compiler static flag $_LT_AC_TAGVAR(lt_prog_compiler_static, $1) works],
  4012. + _LT_AC_TAGVAR(lt_prog_compiler_static_works, $1),
  4013. + $_LT_AC_TAGVAR(lt_prog_compiler_static, $1),
  4014. + [],
  4015. + [_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=])
  4016. +
  4017. +
  4018. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  4019. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  4020. +AC_LIBTOOL_PROG_CC_C_O($1)
  4021. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  4022. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  4023. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  4024. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  4025. +AC_LIBTOOL_SYS_LIB_STRIP
  4026. +AC_LIBTOOL_DLOPEN_SELF($1)
  4027. +
  4028. +# Report which librarie types wil actually be built
  4029. +AC_MSG_CHECKING([if libtool supports shared libraries])
  4030. +AC_MSG_RESULT([$can_build_shared])
  4031. +
  4032. +AC_MSG_CHECKING([whether to build shared libraries])
  4033. +test "$can_build_shared" = "no" && enable_shared=no
  4034. +
  4035. +# On AIX, shared libraries and static libraries use the same namespace, and
  4036. +# are all built from PIC.
  4037. +case "$host_os" in
  4038. +aix3*)
  4039. + test "$enable_shared" = yes && enable_static=no
  4040. + if test -n "$RANLIB"; then
  4041. + archive_cmds="$archive_cmds~\$RANLIB \$lib"
  4042. + postinstall_cmds='$RANLIB $lib'
  4043. + fi
  4044. + ;;
  4045. +
  4046. +aix4* | aix5*)
  4047. + if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  4048. + test "$enable_shared" = yes && enable_static=no
  4049. + fi
  4050. + ;;
  4051. + darwin* | rhapsody*)
  4052. + if test "$GCC" = yes; then
  4053. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4054. + case "$host_os" in
  4055. + rhapsody* | darwin1.[[012]])
  4056. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  4057. ;;
  4058. - *)
  4059. - # ancient GNU ld didn't support --whole-archive et. al.
  4060. - if $LD --help 2>&1 | egrep 'no-whole-archive' > /dev/null; then
  4061. - whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4062. + *) # Darwin 1.3 on
  4063. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  4064. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4065. else
  4066. - whole_archive_flag_spec=
  4067. + case ${MACOSX_DEPLOYMENT_TARGET} in
  4068. + 10.[[012]])
  4069. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4070. + ;;
  4071. + 10.*)
  4072. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  4073. + ;;
  4074. + esac
  4075. fi
  4076. ;;
  4077. esac
  4078. + output_verbose_link_cmd='echo'
  4079. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring'
  4080. + _LT_AC_TAGVAR(module_cmds, $1)='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4081. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4082. + _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}'
  4083. + _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}'
  4084. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4085. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4086. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4087. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  4088. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4089. + else
  4090. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4091. fi
  4092. + ;;
  4093. +esac
  4094. +AC_MSG_RESULT([$enable_shared])
  4095. +
  4096. +AC_MSG_CHECKING([whether to build static libraries])
  4097. +# Make sure either enable_shared or enable_static is yes.
  4098. +test "$enable_shared" = yes || enable_static=yes
  4099. +AC_MSG_RESULT([$enable_static])
  4100. +
  4101. +AC_LIBTOOL_CONFIG($1)
  4102. +
  4103. +AC_LANG_POP
  4104. +CC="$lt_save_CC"
  4105. +])# AC_LIBTOOL_LANG_C_CONFIG
  4106. +
  4107. +
  4108. +# AC_LIBTOOL_LANG_CXX_CONFIG
  4109. +# --------------------------
  4110. +# Ensure that the configuration vars for the C compiler are
  4111. +# suitably defined. Those variables are subsequently used by
  4112. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  4113. +AC_DEFUN([AC_LIBTOOL_LANG_CXX_CONFIG], [_LT_AC_LANG_CXX_CONFIG(CXX)])
  4114. +AC_DEFUN([_LT_AC_LANG_CXX_CONFIG],
  4115. +[AC_LANG_PUSH(C++)
  4116. +AC_REQUIRE([AC_PROG_CXX])
  4117. +AC_REQUIRE([AC_PROG_CXXCPP])
  4118. +
  4119. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4120. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  4121. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  4122. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  4123. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  4124. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  4125. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  4126. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  4127. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4128. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  4129. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  4130. +_LT_AC_TAGVAR(module_cmds, $1)=
  4131. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  4132. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  4133. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  4134. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  4135. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4136. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  4137. +
  4138. +# Dependencies to place before and after the object being linked:
  4139. +_LT_AC_TAGVAR(predep_objects, $1)=
  4140. +_LT_AC_TAGVAR(postdep_objects, $1)=
  4141. +_LT_AC_TAGVAR(predeps, $1)=
  4142. +_LT_AC_TAGVAR(postdeps, $1)=
  4143. +_LT_AC_TAGVAR(compiler_lib_search_path, $1)=
  4144. +
  4145. +# Source file extension for C++ test sources.
  4146. +ac_ext=cc
  4147. +
  4148. +# Object file extension for compiled C++ test sources.
  4149. +objext=o
  4150. +_LT_AC_TAGVAR(objext, $1)=$objext
  4151. +
  4152. +# Code to be used in simple compile tests
  4153. +lt_simple_compile_test_code="int some_variable = 0;\n"
  4154. +
  4155. +# Code to be used in simple link tests
  4156. +lt_simple_link_test_code='int main(int, char *[]) { return(0); }\n'
  4157. +
  4158. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  4159. +_LT_AC_SYS_COMPILER
  4160. +
  4161. +# Allow CC to be a program name with arguments.
  4162. +lt_save_CC=$CC
  4163. +lt_save_LD=$LD
  4164. +lt_save_GCC=$GCC
  4165. +GCC=$GXX
  4166. +lt_save_with_gnu_ld=$with_gnu_ld
  4167. +lt_save_path_LD=$lt_cv_path_LD
  4168. +if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  4169. + lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  4170. else
  4171. - # PORTME fill in a description of your system's linker (not GNU ld)
  4172. - case $host_os in
  4173. - aix3*)
  4174. - allow_undefined_flag=unsupported
  4175. - always_export_symbols=yes
  4176. - 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'
  4177. - # Note: this linker hardcodes the directories in LIBPATH if there
  4178. - # are no directories specified by -L.
  4179. - hardcode_minus_L=yes
  4180. - if test "$GCC" = yes && test -z "$link_static_flag"; then
  4181. - # Neither direct hardcoding nor static linking is supported with a
  4182. - # broken collect2.
  4183. - hardcode_direct=unsupported
  4184. + unset lt_cv_prog_gnu_ld
  4185. +fi
  4186. +if test -n "${lt_cv_path_LDCXX+set}"; then
  4187. + lt_cv_path_LD=$lt_cv_path_LDCXX
  4188. +else
  4189. + unset lt_cv_path_LD
  4190. +fi
  4191. +test -z "${LDCXX+set}" || LD=$LDCXX
  4192. +CC=${CXX-"c++"}
  4193. +compiler=$CC
  4194. +_LT_AC_TAGVAR(compiler, $1)=$CC
  4195. +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  4196. +
  4197. +# We don't want -fno-exception wen compiling C++ code, so set the
  4198. +# no_builtin_flag separately
  4199. +if test "$GXX" = yes; then
  4200. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  4201. +else
  4202. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  4203. +fi
  4204. +
  4205. +if test "$GXX" = yes; then
  4206. + # Set up default GNU C++ configuration
  4207. +
  4208. + AC_PROG_LD
  4209. +
  4210. + # Check if GNU C++ uses GNU ld as the underlying linker, since the
  4211. + # archiving commands below assume that GNU ld is being used.
  4212. + if test "$with_gnu_ld" = yes; then
  4213. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4214. + _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'
  4215. +
  4216. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  4217. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4218. +
  4219. + # If archive_cmds runs LD, not CC, wlarc should be empty
  4220. + # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  4221. + # investigate it a little bit more. (MM)
  4222. + wlarc='${wl}'
  4223. +
  4224. + # ancient GNU ld didn't support --whole-archive et. al.
  4225. + if eval "`$CC -print-prog-name=ld` --help 2>&1" | \
  4226. + grep 'no-whole-archive' > /dev/null; then
  4227. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  4228. + else
  4229. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  4230. fi
  4231. - ;;
  4232. + else
  4233. + with_gnu_ld=no
  4234. + wlarc=
  4235. +
  4236. + # A generic and very simple default shared library creation
  4237. + # command for GNU C++ for the case where it uses the native
  4238. + # linker, instead of GNU ld. If possible, this setting should
  4239. + # overridden to take advantage of the native linker features on
  4240. + # the platform it is being used on.
  4241. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  4242. + fi
  4243. +
  4244. + # Commands to make compiler produce verbose output that lists
  4245. + # what "hidden" libraries, object files and flags are used when
  4246. + # linking a shared library.
  4247. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  4248. +
  4249. +else
  4250. + GXX=no
  4251. + with_gnu_ld=no
  4252. + wlarc=
  4253. +fi
  4254. +# PORTME: fill in a description of your system's C++ link characteristics
  4255. +AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  4256. +_LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4257. +case $host_os in
  4258. + aix3*)
  4259. + # FIXME: insert proper C++ library support
  4260. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4261. + ;;
  4262. aix4* | aix5*)
  4263. if test "$host_cpu" = ia64; then
  4264. # On IA64, the linker does run time linking by default, so we don't
  4265. @@ -1586,7 +3728,7 @@
  4266. *-brtl*)
  4267. aix_use_runtimelinking=yes
  4268. break
  4269. - ;;
  4270. + ;;
  4271. esac
  4272. done
  4273. esac
  4274. @@ -1601,34 +3743,39 @@
  4275. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  4276. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  4277. - hardcode_direct=yes
  4278. - archive_cmds=''
  4279. - hardcode_libdir_separator=':'
  4280. - if test "$GCC" = yes; then
  4281. - case $host_os in aix4.[[012]]|aix4.[[012]].*)
  4282. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  4283. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4284. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  4285. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4286. +
  4287. + if test "$GXX" = yes; then
  4288. + case $host_os in aix4.[012]|aix4.[012].*)
  4289. + # We only want to do this on AIX 4.2 and lower, the check
  4290. + # below for broken collect2 doesn't work under 4.3+
  4291. collect2name=`${CC} -print-prog-name=collect2`
  4292. if test -f "$collect2name" && \
  4293. - strings "$collect2name" | grep resolve_lib_name >/dev/null
  4294. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  4295. then
  4296. # We have reworked collect2
  4297. - hardcode_direct=yes
  4298. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4299. else
  4300. # We have old collect2
  4301. - hardcode_direct=unsupported
  4302. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  4303. # It fails to find uninstalled libraries when the uninstalled
  4304. # path is not listed in the libpath. Setting hardcode_minus_L
  4305. # to unsupported forces relinking
  4306. - hardcode_minus_L=yes
  4307. - hardcode_libdir_flag_spec='-L$libdir'
  4308. - hardcode_libdir_separator=
  4309. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  4310. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4311. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  4312. fi
  4313. esac
  4314. -
  4315. shared_flag='-shared'
  4316. else
  4317. # not using gcc
  4318. if test "$host_cpu" = ia64; then
  4319. - shared_flag='${wl}-G'
  4320. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  4321. + # chokes on -Wl,-G. The following line is correct:
  4322. + shared_flag='-G'
  4323. else
  4324. if test "$aix_use_runtimelinking" = yes; then
  4325. shared_flag='${wl}-G'
  4326. @@ -1638,833 +3785,867 @@
  4327. fi
  4328. fi
  4329. - # It seems that -bexpall can do strange things, so it is better to
  4330. - # generate a list of symbols to export.
  4331. - always_export_symbols=yes
  4332. + # It seems that -bexpall does not export symbols beginning with
  4333. + # underscore (_), so it is better to generate a list of symbols to export.
  4334. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4335. if test "$aix_use_runtimelinking" = yes; then
  4336. # Warning - without using the other runtime loading flags (-brtl),
  4337. # -berok will link without error, but may produce a broken library.
  4338. - allow_undefined_flag='-berok'
  4339. - hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:/usr/lib:/lib'
  4340. - 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"
  4341. - else
  4342. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  4343. + # Determine the default libpath from the value encoded in an empty executable.
  4344. + _LT_AC_SYS_LIBPATH_AIX
  4345. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4346. +
  4347. + _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"
  4348. + else
  4349. if test "$host_cpu" = ia64; then
  4350. - hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  4351. - allow_undefined_flag="-z nodefs"
  4352. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname ${wl}-h$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"
  4353. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  4354. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  4355. + _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"
  4356. else
  4357. - hardcode_libdir_flag_spec='${wl}-bnolibpath ${wl}-blibpath:$libdir:/usr/lib:/lib'
  4358. + # Determine the default libpath from the value encoded in an empty executable.
  4359. + _LT_AC_SYS_LIBPATH_AIX
  4360. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  4361. # Warning - without using the other run time loading flags,
  4362. # -berok will link without error, but may produce a broken library.
  4363. - allow_undefined_flag='${wl}-berok'
  4364. - # This is a bit strange, but is similar to how AIX traditionally builds
  4365. - # it's shared libraries.
  4366. - archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols"' ~$AR -crlo $output_objdir/$libname$release.a $output_objdir/$soname'
  4367. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  4368. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  4369. + # -bexpall does not export symbols beginning with underscore (_)
  4370. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  4371. + # Exported symbols can be pulled into shared objects from archives
  4372. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  4373. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  4374. + # This is similar to how AIX traditionally builds it's shared libraries.
  4375. + _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'
  4376. fi
  4377. fi
  4378. ;;
  4379. -
  4380. - amigaos*)
  4381. - 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)'
  4382. - hardcode_libdir_flag_spec='-L$libdir'
  4383. - hardcode_minus_L=yes
  4384. - # see comment about different semantics on the GNU ld section
  4385. - ld_shlibs=no
  4386. + chorus*)
  4387. + case $cc_basename in
  4388. + *)
  4389. + # FIXME: insert proper C++ library support
  4390. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4391. + ;;
  4392. + esac
  4393. ;;
  4394. cygwin* | mingw* | pw32*)
  4395. - # When not using gcc, we currently assume that we are using
  4396. - # Microsoft Visual C++.
  4397. - # hardcode_libdir_flag_spec is actually meaningless, as there is
  4398. - # no search path for DLLs.
  4399. - hardcode_libdir_flag_spec=' '
  4400. - allow_undefined_flag=unsupported
  4401. - # Tell ltmain to make .lib files, not .a files.
  4402. - libext=lib
  4403. - # FIXME: Setting linknames here is a bad hack.
  4404. - archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | sed -e '\''s/ -lc$//'\''` -link -dll~linknames='
  4405. - # The linker will automatically build a .lib file if we build a DLL.
  4406. - old_archive_from_new_cmds='true'
  4407. - # FIXME: Should let the user specify the lib program.
  4408. - old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs'
  4409. - fix_srcfile_path='`cygpath -w "$srcfile"`'
  4410. - ;;
  4411. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  4412. + # as there is no search path for DLLs.
  4413. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4414. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  4415. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  4416. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  4417. +
  4418. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  4419. + _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'
  4420. + # If the export-symbols file already is a .def file (1st line
  4421. + # is EXPORTS), use it as is; otherwise, prepend...
  4422. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  4423. + cp $export_symbols $output_objdir/$soname.def;
  4424. + else
  4425. + echo EXPORTS > $output_objdir/$soname.def;
  4426. + cat $export_symbols >> $output_objdir/$soname.def;
  4427. + fi~
  4428. + $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'
  4429. + else
  4430. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4431. + fi
  4432. + ;;
  4433. darwin* | rhapsody*)
  4434. + if test "$GXX" = yes; then
  4435. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4436. case "$host_os" in
  4437. rhapsody* | darwin1.[[012]])
  4438. - allow_undefined_flag='-undefined suppress'
  4439. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  4440. ;;
  4441. *) # Darwin 1.3 on
  4442. - allow_undefined_flag='-flat_namespace -undefined suppress'
  4443. - ;;
  4444. - esac
  4445. - # FIXME: Relying on posixy $() will cause problems for
  4446. - # cross-compilation, but unfortunately the echo tests do not
  4447. - # yet detect zsh echo's removal of \ escapes. Also zsh mangles
  4448. - # `"' quotes if we put them in here... so don't!
  4449. - archive_cmds='$CC -r -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs && $CC $(test .$module = .yes && echo -bundle || echo -dynamiclib) $allow_undefined_flag -o $lib ${lib}-master.o $deplibs$linker_flags $(test .$module != .yes && echo -install_name $rpath/$soname $verstring)'
  4450. - # We need to add '_' to the symbols in $export_symbols first
  4451. - #archive_expsym_cmds="$archive_cmds"' && strip -s $export_symbols'
  4452. - hardcode_direct=yes
  4453. - hardcode_shlibpath_var=no
  4454. - whole_archive_flag_spec='-all_load $convenience'
  4455. - ;;
  4456. -
  4457. - freebsd1*)
  4458. - ld_shlibs=no
  4459. - ;;
  4460. -
  4461. - # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  4462. - # support. Future versions do this automatically, but an explicit c++rt0.o
  4463. - # does not break anything, and helps significantly (at the cost of a little
  4464. - # extra space).
  4465. - freebsd2.2*)
  4466. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  4467. - hardcode_libdir_flag_spec='-R$libdir'
  4468. - hardcode_direct=yes
  4469. - hardcode_shlibpath_var=no
  4470. - ;;
  4471. -
  4472. - # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  4473. - freebsd2*)
  4474. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4475. - hardcode_direct=yes
  4476. - hardcode_minus_L=yes
  4477. - hardcode_shlibpath_var=no
  4478. - ;;
  4479. -
  4480. - # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  4481. - freebsd*)
  4482. - archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  4483. - hardcode_libdir_flag_spec='-R$libdir'
  4484. - hardcode_direct=yes
  4485. - hardcode_shlibpath_var=no
  4486. - ;;
  4487. -
  4488. - hpux9* | hpux10* | hpux11*)
  4489. - case $host_os in
  4490. - hpux9*) archive_cmds='$rm $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' ;;
  4491. - *) archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' ;;
  4492. - esac
  4493. - hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  4494. - hardcode_libdir_separator=:
  4495. - hardcode_direct=yes
  4496. - hardcode_minus_L=yes # Not in the search PATH, but as the default
  4497. - # location of the library.
  4498. - export_dynamic_flag_spec='${wl}-E'
  4499. - ;;
  4500. -
  4501. - irix5* | irix6* | nonstopux*)
  4502. - if test "$GCC" = yes; then
  4503. - 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'
  4504. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4505. - else
  4506. - 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'
  4507. - hardcode_libdir_flag_spec='-rpath $libdir'
  4508. - fi
  4509. - hardcode_libdir_separator=:
  4510. - link_all_deplibs=yes
  4511. - ;;
  4512. -
  4513. - netbsd*)
  4514. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  4515. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  4516. - else
  4517. - archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  4518. - fi
  4519. - hardcode_libdir_flag_spec='-R$libdir'
  4520. - hardcode_direct=yes
  4521. - hardcode_shlibpath_var=no
  4522. - ;;
  4523. -
  4524. - newsos6)
  4525. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4526. - hardcode_direct=yes
  4527. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4528. - hardcode_libdir_separator=:
  4529. - hardcode_shlibpath_var=no
  4530. - ;;
  4531. -
  4532. - openbsd*)
  4533. - hardcode_direct=yes
  4534. - hardcode_shlibpath_var=no
  4535. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4536. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4537. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  4538. - export_dynamic_flag_spec='${wl}-E'
  4539. - else
  4540. - case "$host_os" in
  4541. - openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  4542. - archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  4543. - hardcode_libdir_flag_spec='-R$libdir'
  4544. - ;;
  4545. - *)
  4546. - archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  4547. - hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  4548. - ;;
  4549. - esac
  4550. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  4551. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4552. + else
  4553. + case ${MACOSX_DEPLOYMENT_TARGET} in
  4554. + 10.[[012]])
  4555. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  4556. + ;;
  4557. + 10.*)
  4558. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  4559. + ;;
  4560. + esac
  4561. + fi
  4562. + ;;
  4563. + esac
  4564. + lt_int_apple_cc_single_mod=no
  4565. + output_verbose_link_cmd='echo'
  4566. + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  4567. + lt_int_apple_cc_single_mod=yes
  4568. fi
  4569. - ;;
  4570. -
  4571. - os2*)
  4572. - hardcode_libdir_flag_spec='-L$libdir'
  4573. - hardcode_minus_L=yes
  4574. - allow_undefined_flag=unsupported
  4575. - 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'
  4576. - old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  4577. - ;;
  4578. -
  4579. - osf3*)
  4580. - if test "$GCC" = yes; then
  4581. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4582. - 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'
  4583. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4584. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4585. else
  4586. - allow_undefined_flag=' -expect_unresolved \*'
  4587. - 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'
  4588. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  4589. fi
  4590. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4591. - hardcode_libdir_separator=:
  4592. - ;;
  4593. + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  4594. - osf4* | osf5*) # as osf3* with the addition of -msym flag
  4595. - if test "$GCC" = yes; then
  4596. - allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  4597. - 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'
  4598. - hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  4599. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  4600. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  4601. + _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}'
  4602. else
  4603. - allow_undefined_flag=' -expect_unresolved \*'
  4604. - 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'
  4605. - archive_expsym_cmds='for i in `cat $export_symbols`; do printf "-exported_symbol " >> $lib.exp; echo "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~
  4606. - $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  4607. -
  4608. - #Both c and cxx compiler support -rpath directly
  4609. - hardcode_libdir_flag_spec='-rpath $libdir'
  4610. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  4611. fi
  4612. - hardcode_libdir_separator=:
  4613. - ;;
  4614. -
  4615. - sco3.2v5*)
  4616. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4617. - hardcode_shlibpath_var=no
  4618. - runpath_var=LD_RUN_PATH
  4619. - hardcode_runpath_var=yes
  4620. - export_dynamic_flag_spec='${wl}-Bexport'
  4621. + _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}'
  4622. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4623. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  4624. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  4625. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  4626. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4627. + else
  4628. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4629. + fi
  4630. ;;
  4631. - solaris*)
  4632. - # gcc --version < 3.0 without binutils cannot create self contained
  4633. - # shared libraries reliably, requiring libgcc.a to resolve some of
  4634. - # the object symbols generated in some cases. Libraries that use
  4635. - # assert need libgcc.a to resolve __eprintf, for example. Linking
  4636. - # a copy of libgcc.a into every shared library to guarantee resolving
  4637. - # such symbols causes other problems: According to Tim Van Holder
  4638. - # <[email protected]>, C++ libraries end up with a separate
  4639. - # (to the application) exception stack for one thing.
  4640. - no_undefined_flag=' -z defs'
  4641. - if test "$GCC" = yes; then
  4642. - case `$CC --version 2>/dev/null` in
  4643. - [[12]].*)
  4644. - cat <<EOF 1>&2
  4645. -
  4646. -*** Warning: Releases of GCC earlier than version 3.0 cannot reliably
  4647. -*** create self contained shared libraries on Solaris systems, without
  4648. -*** introducing a dependency on libgcc.a. Therefore, libtool is disabling
  4649. -*** -no-undefined support, which will at least allow you to build shared
  4650. -*** libraries. However, you may find that when you link such libraries
  4651. -*** into an application without using GCC, you have to manually add
  4652. -*** \`gcc --print-libgcc-file-name\` to the link command. We urge you to
  4653. -*** upgrade to a newer version of GCC. Another option is to rebuild your
  4654. -*** current GCC to use the GNU linker from GNU binutils 2.9.1 or newer.
  4655. -
  4656. -EOF
  4657. - no_undefined_flag=
  4658. + dgux*)
  4659. + case $cc_basename in
  4660. + ec++)
  4661. + # FIXME: insert proper C++ library support
  4662. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4663. + ;;
  4664. + ghcx)
  4665. + # Green Hills C++ Compiler
  4666. + # FIXME: insert proper C++ library support
  4667. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4668. + ;;
  4669. + *)
  4670. + # FIXME: insert proper C++ library support
  4671. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4672. ;;
  4673. - esac
  4674. - fi
  4675. - # $CC -shared without GNU ld will not create a library from C++
  4676. - # object files and a static libstdc++, better avoid it by now
  4677. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4678. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4679. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  4680. - hardcode_libdir_flag_spec='-R$libdir'
  4681. - hardcode_shlibpath_var=no
  4682. - case $host_os in
  4683. - solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  4684. - *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  4685. - whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;;
  4686. esac
  4687. - link_all_deplibs=yes
  4688. ;;
  4689. -
  4690. - sunos4*)
  4691. - if test "x$host_vendor" = xsequent; then
  4692. - # Use $CC to link under sequent, because it throws in some extra .o
  4693. - # files that make .init and .fini sections work.
  4694. - archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  4695. - else
  4696. - archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  4697. - fi
  4698. - hardcode_libdir_flag_spec='-L$libdir'
  4699. - hardcode_direct=yes
  4700. - hardcode_minus_L=yes
  4701. - hardcode_shlibpath_var=no
  4702. + freebsd[12]*)
  4703. + # C++ shared libraries reported to be fairly broken before switch to ELF
  4704. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4705. + ;;
  4706. + freebsd-elf*)
  4707. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4708. + ;;
  4709. + freebsd* | kfreebsd*-gnu)
  4710. + # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  4711. + # conventions
  4712. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  4713. + ;;
  4714. + gnu*)
  4715. + ;;
  4716. + hpux9*)
  4717. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4718. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4719. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4720. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4721. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4722. + # but as the default
  4723. + # location of the library.
  4724. +
  4725. + case $cc_basename in
  4726. + CC)
  4727. + # FIXME: insert proper C++ library support
  4728. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4729. + ;;
  4730. + aCC)
  4731. + _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'
  4732. + # Commands to make compiler produce verbose output that lists
  4733. + # what "hidden" libraries, object files and flags are used when
  4734. + # linking a shared library.
  4735. + #
  4736. + # There doesn't appear to be a way to prevent this compiler from
  4737. + # explicitly linking system object files so we need to strip them
  4738. + # from the output so that they don't get included in the library
  4739. + # dependencies.
  4740. + 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'
  4741. + ;;
  4742. + *)
  4743. + if test "$GXX" = yes; then
  4744. + _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'
  4745. + else
  4746. + # FIXME: insert proper C++ library support
  4747. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4748. + fi
  4749. + ;;
  4750. + esac
  4751. ;;
  4752. -
  4753. - sysv4)
  4754. - case $host_vendor in
  4755. - sni)
  4756. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4757. - hardcode_direct=yes # is this really true???
  4758. + hpux10*|hpux11*)
  4759. + if test $with_gnu_ld = no; then
  4760. + case "$host_cpu" in
  4761. + hppa*64*)
  4762. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4763. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  4764. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4765. ;;
  4766. - siemens)
  4767. - ## LD is ld it makes a PLAMLIB
  4768. - ## CC just makes a GrossModule.
  4769. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  4770. - reload_cmds='$CC -r -o $output$reload_objs'
  4771. - hardcode_direct=no
  4772. + ia64*)
  4773. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  4774. ;;
  4775. - motorola)
  4776. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4777. - hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  4778. + *)
  4779. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  4780. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4781. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  4782. ;;
  4783. + esac
  4784. + fi
  4785. + case "$host_cpu" in
  4786. + hppa*64*)
  4787. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4788. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4789. + ;;
  4790. + ia64*)
  4791. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  4792. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  4793. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4794. + # but as the default
  4795. + # location of the library.
  4796. + ;;
  4797. + *)
  4798. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  4799. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes # Not in the search PATH,
  4800. + # but as the default
  4801. + # location of the library.
  4802. + ;;
  4803. esac
  4804. - runpath_var='LD_RUN_PATH'
  4805. - hardcode_shlibpath_var=no
  4806. - ;;
  4807. - sysv4.3*)
  4808. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4809. - hardcode_shlibpath_var=no
  4810. - export_dynamic_flag_spec='-Bexport'
  4811. - ;;
  4812. -
  4813. - sysv5*)
  4814. - no_undefined_flag=' -z text'
  4815. - # $CC -shared without GNU ld will not create a library from C++
  4816. - # object files and a static libstdc++, better avoid it by now
  4817. - archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4818. - archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  4819. - $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  4820. - hardcode_libdir_flag_spec=
  4821. - hardcode_shlibpath_var=no
  4822. - runpath_var='LD_RUN_PATH'
  4823. - ;;
  4824. -
  4825. - uts4*)
  4826. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4827. - hardcode_libdir_flag_spec='-L$libdir'
  4828. - hardcode_shlibpath_var=no
  4829. + case $cc_basename in
  4830. + CC)
  4831. + # FIXME: insert proper C++ library support
  4832. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4833. + ;;
  4834. + aCC)
  4835. + case "$host_cpu" in
  4836. + hppa*64*|ia64*)
  4837. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  4838. + ;;
  4839. + *)
  4840. + _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'
  4841. + ;;
  4842. + esac
  4843. + # Commands to make compiler produce verbose output that lists
  4844. + # what "hidden" libraries, object files and flags are used when
  4845. + # linking a shared library.
  4846. + #
  4847. + # There doesn't appear to be a way to prevent this compiler from
  4848. + # explicitly linking system object files so we need to strip them
  4849. + # from the output so that they don't get included in the library
  4850. + # dependencies.
  4851. + 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'
  4852. + ;;
  4853. + *)
  4854. + if test "$GXX" = yes; then
  4855. + if test $with_gnu_ld = no; then
  4856. + case "$host_cpu" in
  4857. + ia64*|hppa*64*)
  4858. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs'
  4859. + ;;
  4860. + *)
  4861. + _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'
  4862. + ;;
  4863. + esac
  4864. + fi
  4865. + else
  4866. + # FIXME: insert proper C++ library support
  4867. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4868. + fi
  4869. + ;;
  4870. + esac
  4871. ;;
  4872. -
  4873. - dgux*)
  4874. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4875. - hardcode_libdir_flag_spec='-L$libdir'
  4876. - hardcode_shlibpath_var=no
  4877. + irix5* | irix6*)
  4878. + case $cc_basename in
  4879. + CC)
  4880. + # SGI C++
  4881. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  4882. +
  4883. + # Archives containing C++ object files must be created using
  4884. + # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  4885. + # necessary to make sure instantiated templates are included
  4886. + # in the archive.
  4887. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -ar -WR,-u -o $oldlib $oldobjs'
  4888. + ;;
  4889. + *)
  4890. + if test "$GXX" = yes; then
  4891. + if test "$with_gnu_ld" = no; then
  4892. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  4893. + else
  4894. + _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'
  4895. + fi
  4896. + fi
  4897. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  4898. + ;;
  4899. + esac
  4900. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  4901. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4902. ;;
  4903. -
  4904. - sysv4*MP*)
  4905. - if test -d /usr/nec; then
  4906. - archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  4907. - hardcode_shlibpath_var=no
  4908. - runpath_var=LD_RUN_PATH
  4909. - hardcode_runpath_var=yes
  4910. - ld_shlibs=yes
  4911. - fi
  4912. + linux*)
  4913. + case $cc_basename in
  4914. + KCC)
  4915. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  4916. +
  4917. + # KCC will only create a shared library if the output file
  4918. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  4919. + # to its proper name (with version) after linking.
  4920. + _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'
  4921. + _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'
  4922. + # Commands to make compiler produce verbose output that lists
  4923. + # what "hidden" libraries, object files and flags are used when
  4924. + # linking a shared library.
  4925. + #
  4926. + # There doesn't appear to be a way to prevent this compiler from
  4927. + # explicitly linking system object files so we need to strip them
  4928. + # from the output so that they don't get included in the library
  4929. + # dependencies.
  4930. + 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'
  4931. +
  4932. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath,$libdir'
  4933. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4934. +
  4935. + # Archives containing C++ object files must be created using
  4936. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  4937. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  4938. + ;;
  4939. + icpc)
  4940. + # Intel C++
  4941. + with_gnu_ld=yes
  4942. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  4943. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4944. + _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'
  4945. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  4946. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  4947. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  4948. + ;;
  4949. + cxx)
  4950. + # Compaq C++
  4951. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  4952. + _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'
  4953. +
  4954. + runpath_var=LD_RUN_PATH
  4955. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  4956. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  4957. +
  4958. + # Commands to make compiler produce verbose output that lists
  4959. + # what "hidden" libraries, object files and flags are used when
  4960. + # linking a shared library.
  4961. + #
  4962. + # There doesn't appear to be a way to prevent this compiler from
  4963. + # explicitly linking system object files so we need to strip them
  4964. + # from the output so that they don't get included in the library
  4965. + # dependencies.
  4966. + 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'
  4967. + ;;
  4968. + esac
  4969. ;;
  4970. -
  4971. - sysv4.2uw2*)
  4972. - archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  4973. - hardcode_direct=yes
  4974. - hardcode_minus_L=no
  4975. - hardcode_shlibpath_var=no
  4976. - hardcode_runpath_var=yes
  4977. - runpath_var=LD_RUN_PATH
  4978. + lynxos*)
  4979. + # FIXME: insert proper C++ library support
  4980. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4981. + ;;
  4982. + m88k*)
  4983. + # FIXME: insert proper C++ library support
  4984. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4985. + ;;
  4986. + mvs*)
  4987. + case $cc_basename in
  4988. + cxx)
  4989. + # FIXME: insert proper C++ library support
  4990. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4991. + ;;
  4992. + *)
  4993. + # FIXME: insert proper C++ library support
  4994. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  4995. + ;;
  4996. + esac
  4997. ;;
  4998. -
  4999. - sysv5uw7* | unixware7*)
  5000. - no_undefined_flag='${wl}-z ${wl}text'
  5001. - if test "$GCC" = yes; then
  5002. - archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5003. - else
  5004. - archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  5005. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  5006. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5007. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  5008. + wlarc=
  5009. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5010. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  5011. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5012. fi
  5013. - runpath_var='LD_RUN_PATH'
  5014. - hardcode_shlibpath_var=no
  5015. - ;;
  5016. -
  5017. - *)
  5018. - ld_shlibs=no
  5019. + # Workaround some broken pre-1.5 toolchains
  5020. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  5021. ;;
  5022. - esac
  5023. -fi
  5024. -AC_MSG_RESULT([$ld_shlibs])
  5025. -test "$ld_shlibs" = no && can_build_shared=no
  5026. -
  5027. -# Check hardcoding attributes.
  5028. -AC_MSG_CHECKING([how to hardcode library paths into programs])
  5029. -hardcode_action=
  5030. -if test -n "$hardcode_libdir_flag_spec" || \
  5031. - test -n "$runpath_var"; then
  5032. -
  5033. - # We can hardcode non-existant directories.
  5034. - if test "$hardcode_direct" != no &&
  5035. - # If the only mechanism to avoid hardcoding is shlibpath_var, we
  5036. - # have to relink, otherwise we might link with an installed library
  5037. - # when we should be linking with a yet-to-be-installed one
  5038. - ## test "$hardcode_shlibpath_var" != no &&
  5039. - test "$hardcode_minus_L" != no; then
  5040. - # Linking always hardcodes the temporary library directory.
  5041. - hardcode_action=relink
  5042. - else
  5043. - # We can link without hardcoding, and we can hardcode nonexisting dirs.
  5044. - hardcode_action=immediate
  5045. - fi
  5046. -else
  5047. - # We cannot hardcode anything, or else we can only hardcode existing
  5048. - # directories.
  5049. - hardcode_action=unsupported
  5050. -fi
  5051. -AC_MSG_RESULT([$hardcode_action])
  5052. -
  5053. -striplib=
  5054. -old_striplib=
  5055. -AC_MSG_CHECKING([whether stripping libraries is possible])
  5056. -if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then
  5057. - test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  5058. - test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  5059. - AC_MSG_RESULT([yes])
  5060. -else
  5061. - AC_MSG_RESULT([no])
  5062. -fi
  5063. -
  5064. -reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5065. -test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5066. -
  5067. -# PORTME Fill in your ld.so characteristics
  5068. -AC_MSG_CHECKING([dynamic linker characteristics])
  5069. -library_names_spec=
  5070. -libname_spec='lib$name'
  5071. -soname_spec=
  5072. -postinstall_cmds=
  5073. -postuninstall_cmds=
  5074. -finish_cmds=
  5075. -finish_eval=
  5076. -shlibpath_var=
  5077. -shlibpath_overrides_runpath=unknown
  5078. -version_type=none
  5079. -dynamic_linker="$host_os ld.so"
  5080. -sys_lib_dlsearch_path_spec="/lib /usr/lib"
  5081. -sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  5082. -
  5083. -case $host_os in
  5084. -aix3*)
  5085. - version_type=linux
  5086. - library_names_spec='${libname}${release}.so$versuffix $libname.a'
  5087. - shlibpath_var=LIBPATH
  5088. + osf3*)
  5089. + case $cc_basename in
  5090. + KCC)
  5091. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  5092. +
  5093. + # KCC will only create a shared library if the output file
  5094. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5095. + # to its proper name (with version) after linking.
  5096. + _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'
  5097. +
  5098. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5099. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5100. +
  5101. + # Archives containing C++ object files must be created using
  5102. + # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  5103. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -Bstatic -o $oldlib $oldobjs'
  5104. - # AIX has no versioning support, so we append a major version to the name.
  5105. - soname_spec='${libname}${release}.so$major'
  5106. - ;;
  5107. + ;;
  5108. + RCC)
  5109. + # Rational C++ 2.4.1
  5110. + # FIXME: insert proper C++ library support
  5111. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5112. + ;;
  5113. + cxx)
  5114. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5115. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  5116. +
  5117. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5118. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5119. +
  5120. + # Commands to make compiler produce verbose output that lists
  5121. + # what "hidden" libraries, object files and flags are used when
  5122. + # linking a shared library.
  5123. + #
  5124. + # There doesn't appear to be a way to prevent this compiler from
  5125. + # explicitly linking system object files so we need to strip them
  5126. + # from the output so that they don't get included in the library
  5127. + # dependencies.
  5128. + 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'
  5129. + ;;
  5130. + *)
  5131. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5132. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5133. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  5134. +
  5135. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5136. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5137. +
  5138. + # Commands to make compiler produce verbose output that lists
  5139. + # what "hidden" libraries, object files and flags are used when
  5140. + # linking a shared library.
  5141. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5142. -aix4* | aix5*)
  5143. - version_type=linux
  5144. - need_lib_prefix=no
  5145. - need_version=no
  5146. - hardcode_into_libs=yes
  5147. - if test "$host_cpu" = ia64; then
  5148. - # AIX 5 supports IA64
  5149. - library_names_spec='${libname}${release}.so$major ${libname}${release}.so$versuffix $libname.so'
  5150. - shlibpath_var=LD_LIBRARY_PATH
  5151. - else
  5152. - # With GCC up to 2.95.x, collect2 would create an import file
  5153. - # for dependence libraries. The import file would start with
  5154. - # the line `#! .'. This would cause the generated library to
  5155. - # depend on `.', always an invalid library. This was fixed in
  5156. - # development snapshots of GCC prior to 3.0.
  5157. - case $host_os in
  5158. - aix4 | aix4.[[01]] | aix4.[[01]].*)
  5159. - if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  5160. - echo ' yes '
  5161. - echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then
  5162. - :
  5163. else
  5164. - can_build_shared=no
  5165. + # FIXME: insert proper C++ library support
  5166. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5167. fi
  5168. ;;
  5169. esac
  5170. - # AIX (on Power*) has no versioning support, so currently we can
  5171. - # not hardcode correct soname into executable. Probably we can
  5172. - # add versioning support to collect2, so additional links can
  5173. - # be useful in future.
  5174. - if test "$aix_use_runtimelinking" = yes; then
  5175. - # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  5176. - # instead of lib<name>.a to let people know that these are not
  5177. - # typical AIX shared libraries.
  5178. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5179. - else
  5180. - # We preserve .a as extension for shared libraries through AIX4.2
  5181. - # and later when we are not doing run time linking.
  5182. - library_names_spec='${libname}${release}.a $libname.a'
  5183. - soname_spec='${libname}${release}.so$major'
  5184. - fi
  5185. - shlibpath_var=LIBPATH
  5186. - fi
  5187. - hardcode_into_libs=yes
  5188. - ;;
  5189. -
  5190. -amigaos*)
  5191. - library_names_spec='$libname.ixlibrary $libname.a'
  5192. - # Create ${libname}_ixlibrary.a entries in /sys/libs.
  5193. - 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'
  5194. - ;;
  5195. -
  5196. -beos*)
  5197. - library_names_spec='${libname}.so'
  5198. - dynamic_linker="$host_os ld.so"
  5199. - shlibpath_var=LIBRARY_PATH
  5200. - ;;
  5201. -
  5202. -bsdi4*)
  5203. - version_type=linux
  5204. - need_version=no
  5205. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5206. - soname_spec='${libname}${release}.so$major'
  5207. - finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  5208. - shlibpath_var=LD_LIBRARY_PATH
  5209. - sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  5210. - sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  5211. - export_dynamic_flag_spec=-rdynamic
  5212. - # the default ld.so.conf also contains /usr/contrib/lib and
  5213. - # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  5214. - # libtool to hard-code these into programs
  5215. - ;;
  5216. -
  5217. -cygwin* | mingw* | pw32*)
  5218. - version_type=windows
  5219. - need_version=no
  5220. - need_lib_prefix=no
  5221. - case $GCC,$host_os in
  5222. - yes,cygwin*)
  5223. - library_names_spec='$libname.dll.a'
  5224. - soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  5225. - postinstall_cmds='dlpath=`bash 2>&1 -c '\''. $dir/${file}i;echo \$dlname'\''`~
  5226. - dldir=$destdir/`dirname \$dlpath`~
  5227. - test -d \$dldir || mkdir -p \$dldir~
  5228. - $install_prog .libs/$dlname \$dldir/$dlname'
  5229. - postuninstall_cmds='dldll=`bash 2>&1 -c '\''. $file; echo \$dlname'\''`~
  5230. - dlpath=$dir/\$dldll~
  5231. - $rm \$dlpath'
  5232. - ;;
  5233. - yes,mingw*)
  5234. - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll'
  5235. - sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | sed -e "s/^libraries://" -e "s/;/ /g" -e "s,=/,/,g"`
  5236. - ;;
  5237. - yes,pw32*)
  5238. - library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | sed -e 's/[.]/-/g'`${versuffix}.dll'
  5239. ;;
  5240. - *)
  5241. - library_names_spec='${libname}`echo ${release} | sed -e 's/[[.]]/-/g'`${versuffix}.dll $libname.lib'
  5242. - ;;
  5243. - esac
  5244. - dynamic_linker='Win32 ld.exe'
  5245. - # FIXME: first we should search . and the directory the executable is in
  5246. - shlibpath_var=PATH
  5247. - ;;
  5248. -
  5249. -darwin* | rhapsody*)
  5250. - dynamic_linker="$host_os dyld"
  5251. - version_type=darwin
  5252. - need_lib_prefix=no
  5253. - need_version=no
  5254. - # FIXME: Relying on posixy $() will cause problems for
  5255. - # cross-compilation, but unfortunately the echo tests do not
  5256. - # yet detect zsh echo's removal of \ escapes.
  5257. - library_names_spec='${libname}${release}${versuffix}.$(test .$module = .yes && echo so || echo dylib) ${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib) ${libname}.$(test .$module = .yes && echo so || echo dylib)'
  5258. - soname_spec='${libname}${release}${major}.$(test .$module = .yes && echo so || echo dylib)'
  5259. - shlibpath_overrides_runpath=yes
  5260. - shlibpath_var=DYLD_LIBRARY_PATH
  5261. - ;;
  5262. -
  5263. -freebsd1*)
  5264. - dynamic_linker=no
  5265. - ;;
  5266. -
  5267. -freebsd*-gnu*)
  5268. - version_type=linux
  5269. - need_lib_prefix=no
  5270. - need_version=no
  5271. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5272. - soname_spec='${libname}${release}.so$major'
  5273. - shlibpath_var=LD_LIBRARY_PATH
  5274. - shlibpath_overrides_runpath=no
  5275. - hardcode_into_libs=yes
  5276. - dynamic_linker='GNU/FreeBSD ld.so'
  5277. - ;;
  5278. + osf4* | osf5*)
  5279. + case $cc_basename in
  5280. + KCC)
  5281. + # Kuck and Associates, Inc. (KAI) C++ Compiler
  5282. +
  5283. + # KCC will only create a shared library if the output file
  5284. + # ends with ".so" (or ".sl" for HP-UX), so rename the library
  5285. + # to its proper name (with version) after linking.
  5286. + _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'
  5287. +
  5288. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  5289. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5290. +
  5291. + # Archives containing C++ object files must be created using
  5292. + # the KAI C++ compiler.
  5293. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -o $oldlib $oldobjs'
  5294. + ;;
  5295. + RCC)
  5296. + # Rational C++ 2.4.1
  5297. + # FIXME: insert proper C++ library support
  5298. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5299. + ;;
  5300. + cxx)
  5301. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  5302. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib'
  5303. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  5304. + echo "-hidden">> $lib.exp~
  5305. + $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~
  5306. + $rm $lib.exp'
  5307. +
  5308. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  5309. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5310. +
  5311. + # Commands to make compiler produce verbose output that lists
  5312. + # what "hidden" libraries, object files and flags are used when
  5313. + # linking a shared library.
  5314. + #
  5315. + # There doesn't appear to be a way to prevent this compiler from
  5316. + # explicitly linking system object files so we need to strip them
  5317. + # from the output so that they don't get included in the library
  5318. + # dependencies.
  5319. + 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'
  5320. + ;;
  5321. + *)
  5322. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5323. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  5324. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib'
  5325. +
  5326. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  5327. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  5328. +
  5329. + # Commands to make compiler produce verbose output that lists
  5330. + # what "hidden" libraries, object files and flags are used when
  5331. + # linking a shared library.
  5332. + output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"'
  5333. -freebsd*)
  5334. - objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout`
  5335. - version_type=freebsd-$objformat
  5336. - case $version_type in
  5337. - freebsd-elf*)
  5338. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so $libname.so'
  5339. - need_version=no
  5340. - need_lib_prefix=no
  5341. - ;;
  5342. - freebsd-*)
  5343. - library_names_spec='${libname}${release}.so$versuffix $libname.so$versuffix'
  5344. - need_version=yes
  5345. - ;;
  5346. - esac
  5347. - shlibpath_var=LD_LIBRARY_PATH
  5348. - case $host_os in
  5349. - freebsd2*)
  5350. - shlibpath_overrides_runpath=yes
  5351. + else
  5352. + # FIXME: insert proper C++ library support
  5353. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5354. + fi
  5355. + ;;
  5356. + esac
  5357. ;;
  5358. - *)
  5359. - shlibpath_overrides_runpath=no
  5360. - hardcode_into_libs=yes
  5361. + psos*)
  5362. + # FIXME: insert proper C++ library support
  5363. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5364. + ;;
  5365. + sco*)
  5366. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5367. + case $cc_basename in
  5368. + CC)
  5369. + # FIXME: insert proper C++ library support
  5370. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5371. + ;;
  5372. + *)
  5373. + # FIXME: insert proper C++ library support
  5374. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5375. + ;;
  5376. + esac
  5377. ;;
  5378. - esac
  5379. - ;;
  5380. + sunos4*)
  5381. + case $cc_basename in
  5382. + CC)
  5383. + # Sun C++ 4.x
  5384. + # FIXME: insert proper C++ library support
  5385. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5386. + ;;
  5387. + lcc)
  5388. + # Lucid
  5389. + # FIXME: insert proper C++ library support
  5390. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5391. + ;;
  5392. + *)
  5393. + # FIXME: insert proper C++ library support
  5394. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5395. + ;;
  5396. + esac
  5397. + ;;
  5398. + solaris*)
  5399. + case $cc_basename in
  5400. + CC)
  5401. + # Sun C++ 4.2, 5.x and Centerline C++
  5402. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -zdefs'
  5403. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  5404. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5405. + $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'
  5406. +
  5407. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  5408. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  5409. + case $host_os in
  5410. + solaris2.[0-5] | solaris2.[0-5].*) ;;
  5411. + *)
  5412. + # The C++ compiler is used as linker so we must use $wl
  5413. + # flag to pass the commands to the underlying system
  5414. + # linker.
  5415. + # Supported since Solaris 2.6 (maybe 2.5.1?)
  5416. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  5417. + ;;
  5418. + esac
  5419. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  5420. -gnu*)
  5421. - version_type=linux
  5422. - need_lib_prefix=no
  5423. - need_version=no
  5424. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so${major} ${libname}.so'
  5425. - soname_spec='${libname}${release}.so$major'
  5426. - shlibpath_var=LD_LIBRARY_PATH
  5427. - hardcode_into_libs=yes
  5428. - ;;
  5429. + # Commands to make compiler produce verbose output that lists
  5430. + # what "hidden" libraries, object files and flags are used when
  5431. + # linking a shared library.
  5432. + #
  5433. + # There doesn't appear to be a way to prevent this compiler from
  5434. + # explicitly linking system object files so we need to strip them
  5435. + # from the output so that they don't get included in the library
  5436. + # dependencies.
  5437. + 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'
  5438. +
  5439. + # Archives containing C++ object files must be created using
  5440. + # "CC -xar", where "CC" is the Sun C++ compiler. This is
  5441. + # necessary to make sure instantiated templates are included
  5442. + # in the archive.
  5443. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC -xar -o $oldlib $oldobjs'
  5444. + ;;
  5445. + gcx)
  5446. + # Green Hills C++ Compiler
  5447. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5448. -hpux9* | hpux10* | hpux11*)
  5449. - # Give a soname corresponding to the major version so that dld.sl refuses to
  5450. - # link against other versions.
  5451. - dynamic_linker="$host_os dld.sl"
  5452. - version_type=sunos
  5453. - need_lib_prefix=no
  5454. - need_version=no
  5455. - shlibpath_var=SHLIB_PATH
  5456. - shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  5457. - library_names_spec='${libname}${release}.sl$versuffix ${libname}${release}.sl$major $libname.sl'
  5458. - soname_spec='${libname}${release}.sl$major'
  5459. - # HP-UX runs *really* slowly unless shared libraries are mode 555.
  5460. - postinstall_cmds='chmod 555 $lib'
  5461. - ;;
  5462. + # The C++ compiler must be used to create the archive.
  5463. + _LT_AC_TAGVAR(old_archive_cmds, $1)='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  5464. + ;;
  5465. + *)
  5466. + # GNU C++ compiler with Solaris linker
  5467. + if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  5468. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-z ${wl}defs'
  5469. + if $CC --version | grep -v '^2\.7' > /dev/null; then
  5470. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5471. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5472. + $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5473. +
  5474. + # Commands to make compiler produce verbose output that lists
  5475. + # what "hidden" libraries, object files and flags are used when
  5476. + # linking a shared library.
  5477. + output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5478. + else
  5479. + # g++ 2.7 appears to require `-G' NOT `-shared' on this
  5480. + # platform.
  5481. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  5482. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  5483. + $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp'
  5484. +
  5485. + # Commands to make compiler produce verbose output that lists
  5486. + # what "hidden" libraries, object files and flags are used when
  5487. + # linking a shared library.
  5488. + output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\""
  5489. + fi
  5490. -irix5* | irix6* | nonstopux*)
  5491. - case $host_os in
  5492. - nonstopux*) version_type=nonstopux ;;
  5493. - *) version_type=irix ;;
  5494. - esac
  5495. - need_lib_prefix=no
  5496. - need_version=no
  5497. - soname_spec='${libname}${release}.so$major'
  5498. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so $libname.so'
  5499. - case $host_os in
  5500. - irix5* | nonstopux*)
  5501. - libsuff= shlibsuff=
  5502. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $wl$libdir'
  5503. + fi
  5504. + ;;
  5505. + esac
  5506. ;;
  5507. - *)
  5508. - case $LD in # libtool.m4 will add one of these switches to LD
  5509. - *-32|*"-32 ") libsuff= shlibsuff= libmagic=32-bit;;
  5510. - *-n32|*"-n32 ") libsuff=32 shlibsuff=N32 libmagic=N32;;
  5511. - *-64|*"-64 ") libsuff=64 shlibsuff=64 libmagic=64-bit;;
  5512. - *) libsuff= shlibsuff= libmagic=never-match;;
  5513. + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  5514. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5515. + ;;
  5516. + tandem*)
  5517. + case $cc_basename in
  5518. + NCC)
  5519. + # NonStop-UX NCC 3.20
  5520. + # FIXME: insert proper C++ library support
  5521. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5522. + ;;
  5523. + *)
  5524. + # FIXME: insert proper C++ library support
  5525. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5526. + ;;
  5527. esac
  5528. ;;
  5529. - esac
  5530. - shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  5531. - shlibpath_overrides_runpath=no
  5532. - sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  5533. - sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  5534. - ;;
  5535. -
  5536. -# No shared lib support for Linux oldld, aout, or coff.
  5537. -linux-gnuoldld* | linux-gnuaout* | linux-gnucoff*)
  5538. - dynamic_linker=no
  5539. - ;;
  5540. + vxworks*)
  5541. + # FIXME: insert proper C++ library support
  5542. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5543. + ;;
  5544. + *)
  5545. + # FIXME: insert proper C++ library support
  5546. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  5547. + ;;
  5548. +esac
  5549. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  5550. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5551. -# This must be Linux ELF.
  5552. -linux-gnu*)
  5553. - version_type=linux
  5554. - need_lib_prefix=no
  5555. - need_version=no
  5556. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5557. - soname_spec='${libname}${release}.so$major'
  5558. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  5559. - shlibpath_var=LD_LIBRARY_PATH
  5560. - shlibpath_overrides_runpath=no
  5561. - # This implies no fast_install, which is unacceptable.
  5562. - # Some rework will be needed to allow for fast_install
  5563. - # before this can be enabled.
  5564. - hardcode_into_libs=yes
  5565. +_LT_AC_TAGVAR(GCC, $1)="$GXX"
  5566. +_LT_AC_TAGVAR(LD, $1)="$LD"
  5567. - # We used to test for /lib/ld.so.1 and disable shared libraries on
  5568. - # powerpc, because MkLinux only supported shared libraries with the
  5569. - # GNU dynamic linker. Since this was broken with cross compilers,
  5570. - # most powerpc-linux boxes support dynamic linking these days and
  5571. - # people can always --disable-shared, the test was removed, and we
  5572. - # assume the GNU/Linux dynamic linker is in use.
  5573. - dynamic_linker='GNU/Linux ld.so'
  5574. - ;;
  5575. +AC_LIBTOOL_POSTDEP_PREDEP($1)
  5576. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5577. +AC_LIBTOOL_PROG_CC_C_O($1)
  5578. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5579. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5580. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5581. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5582. +AC_LIBTOOL_SYS_LIB_STRIP
  5583. +AC_LIBTOOL_DLOPEN_SELF($1)
  5584. +
  5585. +AC_LIBTOOL_CONFIG($1)
  5586. +
  5587. +AC_LANG_POP
  5588. +CC=$lt_save_CC
  5589. +LDCXX=$LD
  5590. +LD=$lt_save_LD
  5591. +GCC=$lt_save_GCC
  5592. +with_gnu_ldcxx=$with_gnu_ld
  5593. +with_gnu_ld=$lt_save_with_gnu_ld
  5594. +lt_cv_path_LDCXX=$lt_cv_path_LD
  5595. +lt_cv_path_LD=$lt_save_path_LD
  5596. +lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  5597. +lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  5598. +])# AC_LIBTOOL_LANG_CXX_CONFIG
  5599. -netbsd*)
  5600. - version_type=sunos
  5601. - need_lib_prefix=no
  5602. - need_version=no
  5603. - if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  5604. - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5605. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5606. - dynamic_linker='NetBSD (a.out) ld.so'
  5607. - else
  5608. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major ${libname}${release}.so ${libname}.so'
  5609. - soname_spec='${libname}${release}.so$major'
  5610. - dynamic_linker='NetBSD ld.elf_so'
  5611. - fi
  5612. - shlibpath_var=LD_LIBRARY_PATH
  5613. - shlibpath_overrides_runpath=yes
  5614. - hardcode_into_libs=yes
  5615. - ;;
  5616. +# AC_LIBTOOL_POSTDEP_PREDEP([TAGNAME])
  5617. +# ------------------------
  5618. +# Figure out "hidden" library dependencies from verbose
  5619. +# compiler output when linking a shared library.
  5620. +# Parse the compiler output and extract the necessary
  5621. +# objects, libraries and library flags.
  5622. +AC_DEFUN([AC_LIBTOOL_POSTDEP_PREDEP],[
  5623. +dnl we can't use the lt_simple_compile_test_code here,
  5624. +dnl because it contains code intended for an executable,
  5625. +dnl not a library. It's possible we should let each
  5626. +dnl tag define a new lt_????_link_test_code variable,
  5627. +dnl but it's only used here...
  5628. +ifelse([$1],[],[cat > conftest.$ac_ext <<EOF
  5629. +int a;
  5630. +void foo (void) { a = 0; }
  5631. +EOF
  5632. +],[$1],[CXX],[cat > conftest.$ac_ext <<EOF
  5633. +class Foo
  5634. +{
  5635. +public:
  5636. + Foo (void) { a = 0; }
  5637. +private:
  5638. + int a;
  5639. +};
  5640. +EOF
  5641. +],[$1],[F77],[cat > conftest.$ac_ext <<EOF
  5642. + subroutine foo
  5643. + implicit none
  5644. + integer*4 a
  5645. + a=0
  5646. + return
  5647. + end
  5648. +EOF
  5649. +],[$1],[GCJ],[cat > conftest.$ac_ext <<EOF
  5650. +public class foo {
  5651. + private int a;
  5652. + public void bar (void) {
  5653. + a = 0;
  5654. + }
  5655. +};
  5656. +EOF
  5657. +])
  5658. +dnl Parse the compiler output and extract the necessary
  5659. +dnl objects, libraries and library flags.
  5660. +if AC_TRY_EVAL(ac_compile); then
  5661. + # Parse the compiler output and extract the necessary
  5662. + # objects, libraries and library flags.
  5663. +
  5664. + # Sentinel used to keep track of whether or not we are before
  5665. + # the conftest object file.
  5666. + pre_test_object_deps_done=no
  5667. +
  5668. + # The `*' in the case matches for architectures that use `case' in
  5669. + # $output_verbose_cmd can trigger glob expansion during the loop
  5670. + # eval without this substitution.
  5671. + output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`"
  5672. +
  5673. + for p in `eval $output_verbose_link_cmd`; do
  5674. + case $p in
  5675. +
  5676. + -L* | -R* | -l*)
  5677. + # Some compilers place space between "-{L,R}" and the path.
  5678. + # Remove the space.
  5679. + if test $p = "-L" \
  5680. + || test $p = "-R"; then
  5681. + prev=$p
  5682. + continue
  5683. + else
  5684. + prev=
  5685. + fi
  5686. +
  5687. + if test "$pre_test_object_deps_done" = no; then
  5688. + case $p in
  5689. + -L* | -R*)
  5690. + # Internal compiler library paths should come after those
  5691. + # provided the user. The postdeps already come after the
  5692. + # user supplied libs so there is no need to process them.
  5693. + if test -z "$_LT_AC_TAGVAR(compiler_lib_search_path, $1)"; then
  5694. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${prev}${p}"
  5695. + else
  5696. + _LT_AC_TAGVAR(compiler_lib_search_path, $1)="${_LT_AC_TAGVAR(compiler_lib_search_path, $1)} ${prev}${p}"
  5697. + fi
  5698. + ;;
  5699. + # The "-l" case would never come before the object being
  5700. + # linked, so don't bother handling this case.
  5701. + esac
  5702. + else
  5703. + if test -z "$_LT_AC_TAGVAR(postdeps, $1)"; then
  5704. + _LT_AC_TAGVAR(postdeps, $1)="${prev}${p}"
  5705. + else
  5706. + _LT_AC_TAGVAR(postdeps, $1)="${_LT_AC_TAGVAR(postdeps, $1)} ${prev}${p}"
  5707. + fi
  5708. + fi
  5709. + ;;
  5710. +
  5711. + *.$objext)
  5712. + # This assumes that the test object file only shows up
  5713. + # once in the compiler output.
  5714. + if test "$p" = "conftest.$objext"; then
  5715. + pre_test_object_deps_done=yes
  5716. + continue
  5717. + fi
  5718. +
  5719. + if test "$pre_test_object_deps_done" = no; then
  5720. + if test -z "$_LT_AC_TAGVAR(predep_objects, $1)"; then
  5721. + _LT_AC_TAGVAR(predep_objects, $1)="$p"
  5722. + else
  5723. + _LT_AC_TAGVAR(predep_objects, $1)="$_LT_AC_TAGVAR(predep_objects, $1) $p"
  5724. + fi
  5725. + else
  5726. + if test -z "$_LT_AC_TAGVAR(postdep_objects, $1)"; then
  5727. + _LT_AC_TAGVAR(postdep_objects, $1)="$p"
  5728. + else
  5729. + _LT_AC_TAGVAR(postdep_objects, $1)="$_LT_AC_TAGVAR(postdep_objects, $1) $p"
  5730. + fi
  5731. + fi
  5732. + ;;
  5733. -newsos6)
  5734. - version_type=linux
  5735. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5736. - shlibpath_var=LD_LIBRARY_PATH
  5737. - shlibpath_overrides_runpath=yes
  5738. - ;;
  5739. + *) ;; # Ignore the rest.
  5740. -openbsd*)
  5741. - version_type=sunos
  5742. - need_lib_prefix=no
  5743. - need_version=no
  5744. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5745. - case "$host_os" in
  5746. - openbsd2.[[89]] | openbsd2.[[89]].*)
  5747. - shlibpath_overrides_runpath=no
  5748. - ;;
  5749. - *)
  5750. - shlibpath_overrides_runpath=yes
  5751. - ;;
  5752. esac
  5753. - else
  5754. - shlibpath_overrides_runpath=yes
  5755. - fi
  5756. - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5757. - finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  5758. - shlibpath_var=LD_LIBRARY_PATH
  5759. - ;;
  5760. -
  5761. -os2*)
  5762. - libname_spec='$name'
  5763. - need_lib_prefix=no
  5764. - library_names_spec='$libname.dll $libname.a'
  5765. - dynamic_linker='OS/2 ld.exe'
  5766. - shlibpath_var=LIBPATH
  5767. - ;;
  5768. -
  5769. -osf3* | osf4* | osf5*)
  5770. - version_type=osf
  5771. - need_version=no
  5772. - need_lib_prefix=no
  5773. - soname_spec='${libname}${release}.so$major'
  5774. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5775. - shlibpath_var=LD_LIBRARY_PATH
  5776. - sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  5777. - sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  5778. - hardcode_into_libs=yes
  5779. - ;;
  5780. + done
  5781. -sco3.2v5*)
  5782. - version_type=osf
  5783. - soname_spec='${libname}${release}.so$major'
  5784. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5785. - shlibpath_var=LD_LIBRARY_PATH
  5786. - ;;
  5787. + # Clean up.
  5788. + rm -f a.out a.exe
  5789. +else
  5790. + echo "libtool.m4: error: problem compiling $1 test program"
  5791. +fi
  5792. -solaris*)
  5793. - version_type=linux
  5794. - need_lib_prefix=no
  5795. - need_version=no
  5796. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5797. - soname_spec='${libname}${release}.so$major'
  5798. - shlibpath_var=LD_LIBRARY_PATH
  5799. - shlibpath_overrides_runpath=yes
  5800. - hardcode_into_libs=yes
  5801. - # ldd complains unless libraries are executable
  5802. - postinstall_cmds='chmod +x $lib'
  5803. - ;;
  5804. +$rm -f confest.$objext
  5805. -sunos4*)
  5806. - version_type=sunos
  5807. - library_names_spec='${libname}${release}.so$versuffix ${libname}.so$versuffix'
  5808. - finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  5809. - shlibpath_var=LD_LIBRARY_PATH
  5810. - shlibpath_overrides_runpath=yes
  5811. - if test "$with_gnu_ld" = yes; then
  5812. - need_lib_prefix=no
  5813. - fi
  5814. - need_version=yes
  5815. - ;;
  5816. +case " $_LT_AC_TAGVAR(postdeps, $1) " in
  5817. +*" -lc "*) _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no ;;
  5818. +esac
  5819. +])# AC_LIBTOOL_POSTDEP_PREDEP
  5820. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  5821. - version_type=linux
  5822. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5823. - soname_spec='${libname}${release}.so$major'
  5824. - shlibpath_var=LD_LIBRARY_PATH
  5825. - case $host_vendor in
  5826. - sni)
  5827. - shlibpath_overrides_runpath=no
  5828. - need_lib_prefix=no
  5829. - export_dynamic_flag_spec='${wl}-Blargedynsym'
  5830. - runpath_var=LD_RUN_PATH
  5831. - ;;
  5832. - siemens)
  5833. - need_lib_prefix=no
  5834. - ;;
  5835. - motorola)
  5836. - need_lib_prefix=no
  5837. - need_version=no
  5838. - shlibpath_overrides_runpath=no
  5839. - sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  5840. - ;;
  5841. - esac
  5842. - ;;
  5843. +# AC_LIBTOOL_LANG_F77_CONFIG
  5844. +# ------------------------
  5845. +# Ensure that the configuration vars for the C compiler are
  5846. +# suitably defined. Those variables are subsequently used by
  5847. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5848. +AC_DEFUN([AC_LIBTOOL_LANG_F77_CONFIG], [_LT_AC_LANG_F77_CONFIG(F77)])
  5849. +AC_DEFUN([_LT_AC_LANG_F77_CONFIG],
  5850. +[AC_REQUIRE([AC_PROG_F77])
  5851. +AC_LANG_PUSH(Fortran 77)
  5852. +
  5853. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5854. +_LT_AC_TAGVAR(allow_undefined_flag, $1)=
  5855. +_LT_AC_TAGVAR(always_export_symbols, $1)=no
  5856. +_LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  5857. +_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  5858. +_LT_AC_TAGVAR(hardcode_direct, $1)=no
  5859. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  5860. +_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  5861. +_LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  5862. +_LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  5863. +_LT_AC_TAGVAR(hardcode_automatic, $1)=no
  5864. +_LT_AC_TAGVAR(module_cmds, $1)=
  5865. +_LT_AC_TAGVAR(module_expsym_cmds, $1)=
  5866. +_LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  5867. +_LT_AC_TAGVAR(old_archive_cmds, $1)=$old_archive_cmds
  5868. +_LT_AC_TAGVAR(no_undefined_flag, $1)=
  5869. +_LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  5870. +_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  5871. +
  5872. +# Source file extension for f77 test sources.
  5873. +ac_ext=f
  5874. +
  5875. +# Object file extension for compiled f77 test sources.
  5876. +objext=o
  5877. +_LT_AC_TAGVAR(objext, $1)=$objext
  5878. -uts4*)
  5879. - version_type=linux
  5880. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5881. - soname_spec='${libname}${release}.so$major'
  5882. - shlibpath_var=LD_LIBRARY_PATH
  5883. - ;;
  5884. +# Code to be used in simple compile tests
  5885. +lt_simple_compile_test_code=" subroutine t\n return\n end\n"
  5886. -dgux*)
  5887. - version_type=linux
  5888. - need_lib_prefix=no
  5889. - need_version=no
  5890. - library_names_spec='${libname}${release}.so$versuffix ${libname}${release}.so$major $libname.so'
  5891. - soname_spec='${libname}${release}.so$major'
  5892. - shlibpath_var=LD_LIBRARY_PATH
  5893. - ;;
  5894. +# Code to be used in simple link tests
  5895. +lt_simple_link_test_code=" program t\n end\n"
  5896. -sysv4*MP*)
  5897. - if test -d /usr/nec ;then
  5898. - version_type=linux
  5899. - library_names_spec='$libname.so.$versuffix $libname.so.$major $libname.so'
  5900. - soname_spec='$libname.so.$major'
  5901. - shlibpath_var=LD_LIBRARY_PATH
  5902. - fi
  5903. - ;;
  5904. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5905. +_LT_AC_SYS_COMPILER
  5906. -*)
  5907. - dynamic_linker=no
  5908. - ;;
  5909. -esac
  5910. -AC_MSG_RESULT([$dynamic_linker])
  5911. -test "$dynamic_linker" = no && can_build_shared=no
  5912. +# Allow CC to be a program name with arguments.
  5913. +lt_save_CC="$CC"
  5914. +CC=${F77-"f77"}
  5915. +compiler=$CC
  5916. +_LT_AC_TAGVAR(compiler, $1)=$CC
  5917. +cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'`
  5918. -# Report the final consequences.
  5919. AC_MSG_CHECKING([if libtool supports shared libraries])
  5920. AC_MSG_RESULT([$can_build_shared])
  5921. @@ -2481,125 +4662,206 @@
  5922. postinstall_cmds='$RANLIB $lib'
  5923. fi
  5924. ;;
  5925. +aix4* | aix5*)
  5926. + test "$enable_shared" = yes && enable_static=no
  5927. + ;;
  5928. +esac
  5929. +AC_MSG_RESULT([$enable_shared])
  5930. +
  5931. +AC_MSG_CHECKING([whether to build static libraries])
  5932. +# Make sure either enable_shared or enable_static is yes.
  5933. +test "$enable_shared" = yes || enable_static=yes
  5934. +AC_MSG_RESULT([$enable_static])
  5935. +
  5936. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  5937. +
  5938. +_LT_AC_TAGVAR(GCC, $1)="$G77"
  5939. +_LT_AC_TAGVAR(LD, $1)="$LD"
  5940. +
  5941. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5942. +AC_LIBTOOL_PROG_CC_C_O($1)
  5943. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5944. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5945. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5946. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5947. +AC_LIBTOOL_SYS_LIB_STRIP
  5948. +
  5949. +
  5950. +AC_LIBTOOL_CONFIG($1)
  5951. +
  5952. +AC_LANG_POP
  5953. +CC="$lt_save_CC"
  5954. +])# AC_LIBTOOL_LANG_F77_CONFIG
  5955. +
  5956. +
  5957. +# AC_LIBTOOL_LANG_GCJ_CONFIG
  5958. +# --------------------------
  5959. +# Ensure that the configuration vars for the C compiler are
  5960. +# suitably defined. Those variables are subsequently used by
  5961. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  5962. +AC_DEFUN([AC_LIBTOOL_LANG_GCJ_CONFIG], [_LT_AC_LANG_GCJ_CONFIG(GCJ)])
  5963. +AC_DEFUN([_LT_AC_LANG_GCJ_CONFIG],
  5964. +[AC_LANG_SAVE
  5965. +
  5966. +# Source file extension for Java test sources.
  5967. +ac_ext=java
  5968. +
  5969. +# Object file extension for compiled Java test sources.
  5970. +objext=o
  5971. +_LT_AC_TAGVAR(objext, $1)=$objext
  5972. +
  5973. +# Code to be used in simple compile tests
  5974. +lt_simple_compile_test_code="class foo {}\n"
  5975. +
  5976. +# Code to be used in simple link tests
  5977. +lt_simple_link_test_code='public class conftest { public static void main(String[] argv) {}; }\n'
  5978. +
  5979. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  5980. +_LT_AC_SYS_COMPILER
  5981. +
  5982. +# Allow CC to be a program name with arguments.
  5983. +lt_save_CC="$CC"
  5984. +CC=${GCJ-"gcj"}
  5985. +compiler=$CC
  5986. +_LT_AC_TAGVAR(compiler, $1)=$CC
  5987. +
  5988. +# GCJ did not exist at the time GCC didn't implicitly link libc in.
  5989. +_LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  5990. +
  5991. +AC_LIBTOOL_PROG_COMPILER_NO_RTTI($1)
  5992. +AC_LIBTOOL_PROG_COMPILER_PIC($1)
  5993. +AC_LIBTOOL_PROG_CC_C_O($1)
  5994. +AC_LIBTOOL_SYS_HARD_LINK_LOCKS($1)
  5995. +AC_LIBTOOL_PROG_LD_SHLIBS($1)
  5996. +AC_LIBTOOL_SYS_DYNAMIC_LINKER($1)
  5997. +AC_LIBTOOL_PROG_LD_HARDCODE_LIBPATH($1)
  5998. +AC_LIBTOOL_SYS_LIB_STRIP
  5999. +AC_LIBTOOL_DLOPEN_SELF($1)
  6000. +
  6001. +AC_LIBTOOL_CONFIG($1)
  6002. +
  6003. +AC_LANG_RESTORE
  6004. +CC="$lt_save_CC"
  6005. +])# AC_LIBTOOL_LANG_GCJ_CONFIG
  6006. +
  6007. +
  6008. +# AC_LIBTOOL_LANG_RC_CONFIG
  6009. +# --------------------------
  6010. +# Ensure that the configuration vars for the Windows resource compiler are
  6011. +# suitably defined. Those variables are subsequently used by
  6012. +# AC_LIBTOOL_CONFIG to write the compiler configuration to `libtool'.
  6013. +AC_DEFUN([AC_LIBTOOL_LANG_RC_CONFIG], [_LT_AC_LANG_RC_CONFIG(RC)])
  6014. +AC_DEFUN([_LT_AC_LANG_RC_CONFIG],
  6015. +[AC_LANG_SAVE
  6016. +
  6017. +# Source file extension for RC test sources.
  6018. +ac_ext=rc
  6019. +
  6020. +# Object file extension for compiled RC test sources.
  6021. +objext=o
  6022. +_LT_AC_TAGVAR(objext, $1)=$objext
  6023. -aix4*)
  6024. - if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  6025. - test "$enable_shared" = yes && enable_static=no
  6026. - fi
  6027. - ;;
  6028. -esac
  6029. -AC_MSG_RESULT([$enable_shared])
  6030. +# Code to be used in simple compile tests
  6031. +lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n'
  6032. -AC_MSG_CHECKING([whether to build static libraries])
  6033. -# Make sure either enable_shared or enable_static is yes.
  6034. -test "$enable_shared" = yes || enable_static=yes
  6035. -AC_MSG_RESULT([$enable_static])
  6036. +# Code to be used in simple link tests
  6037. +lt_simple_link_test_code="$lt_simple_compile_test_code"
  6038. -if test "$hardcode_action" = relink; then
  6039. - # Fast installation is not supported
  6040. - enable_fast_install=no
  6041. -elif test "$shlibpath_overrides_runpath" = yes ||
  6042. - test "$enable_shared" = no; then
  6043. - # Fast installation is not necessary
  6044. - enable_fast_install=needless
  6045. -fi
  6046. +# ltmain only uses $CC for tagged configurations so make sure $CC is set.
  6047. +_LT_AC_SYS_COMPILER
  6048. -variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  6049. -if test "$GCC" = yes; then
  6050. - variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  6051. -fi
  6052. +# Allow CC to be a program name with arguments.
  6053. +lt_save_CC="$CC"
  6054. +CC=${RC-"windres"}
  6055. +compiler=$CC
  6056. +_LT_AC_TAGVAR(compiler, $1)=$CC
  6057. +_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)=yes
  6058. -AC_LIBTOOL_DLOPEN_SELF
  6059. +AC_LIBTOOL_CONFIG($1)
  6060. +
  6061. +AC_LANG_RESTORE
  6062. +CC="$lt_save_CC"
  6063. +])# AC_LIBTOOL_LANG_RC_CONFIG
  6064. -if test "$enable_shared" = yes && test "$GCC" = yes; then
  6065. - case $archive_cmds in
  6066. - *'~'*)
  6067. - # FIXME: we may have to deal with multi-command sequences.
  6068. - ;;
  6069. - '$CC '*)
  6070. - # Test whether the compiler implicitly links with -lc since on some
  6071. - # systems, -lgcc has to come before -lc. If gcc already passes -lc
  6072. - # to ld, don't add -lc before -lgcc.
  6073. - AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  6074. - AC_CACHE_VAL([lt_cv_archive_cmds_need_lc],
  6075. - [$rm conftest*
  6076. - echo 'static int dummy;' > conftest.$ac_ext
  6077. -
  6078. - if AC_TRY_EVAL(ac_compile); then
  6079. - soname=conftest
  6080. - lib=conftest
  6081. - libobjs=conftest.$ac_objext
  6082. - deplibs=
  6083. - wl=$lt_cv_prog_cc_wl
  6084. - compiler_flags=-v
  6085. - linker_flags=-v
  6086. - verstring=
  6087. - output_objdir=.
  6088. - libname=conftest
  6089. - save_allow_undefined_flag=$allow_undefined_flag
  6090. - allow_undefined_flag=
  6091. - if AC_TRY_EVAL(archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  6092. - then
  6093. - lt_cv_archive_cmds_need_lc=no
  6094. - else
  6095. - lt_cv_archive_cmds_need_lc=yes
  6096. - fi
  6097. - allow_undefined_flag=$save_allow_undefined_flag
  6098. - else
  6099. - cat conftest.err 1>&5
  6100. - fi])
  6101. - AC_MSG_RESULT([$lt_cv_archive_cmds_need_lc])
  6102. - ;;
  6103. - esac
  6104. -fi
  6105. -need_lc=${lt_cv_archive_cmds_need_lc-yes}
  6106. -# The second clause should only fire when bootstrapping the
  6107. +# AC_LIBTOOL_CONFIG([TAGNAME])
  6108. +# ----------------------------
  6109. +# If TAGNAME is not passed, then create an initial libtool script
  6110. +# with a default configuration from the untagged config vars. Otherwise
  6111. +# add code to config.status for appending the configuration named by
  6112. +# TAGNAME from the matching tagged config vars.
  6113. +AC_DEFUN([AC_LIBTOOL_CONFIG],
  6114. +[# The else clause should only fire when bootstrapping the
  6115. # libtool distribution, otherwise you forgot to ship ltmain.sh
  6116. # with your package, and you will get complaints that there are
  6117. # no rules to generate ltmain.sh.
  6118. if test -f "$ltmain"; then
  6119. - :
  6120. -else
  6121. - # If there is no Makefile yet, we rely on a make rule to execute
  6122. - # `config.status --recheck' to rerun these tests and create the
  6123. - # libtool script then.
  6124. - test -f Makefile && make "$ltmain"
  6125. -fi
  6126. -
  6127. -if test -f "$ltmain"; then
  6128. - trap "$rm \"${ofile}T\"; exit 1" 1 2 15
  6129. - $rm -f "${ofile}T"
  6130. -
  6131. - echo creating $ofile
  6132. -
  6133. + # See if we are running on zsh, and set the options which allow our commands through
  6134. + # without removal of \ escapes.
  6135. + if test -n "${ZSH_VERSION+set}" ; then
  6136. + setopt NO_GLOB_SUBST
  6137. + fi
  6138. # Now quote all the things that may contain metacharacters while being
  6139. # careful not to overquote the AC_SUBSTed values. We take copies of the
  6140. # variables and quote the copies for generation of the libtool script.
  6141. - for var in echo old_CC old_CFLAGS SED \
  6142. - AR AR_FLAGS CC LD LN_S NM SHELL \
  6143. - reload_flag reload_cmds wl \
  6144. - pic_flag link_static_flag no_builtin_flag export_dynamic_flag_spec \
  6145. - thread_safe_flag_spec whole_archive_flag_spec libname_spec \
  6146. - library_names_spec soname_spec \
  6147. - RANLIB old_archive_cmds old_archive_from_new_cmds old_postinstall_cmds \
  6148. - old_postuninstall_cmds archive_cmds archive_expsym_cmds postinstall_cmds \
  6149. - postuninstall_cmds extract_expsyms_cmds old_archive_from_expsyms_cmds \
  6150. - old_striplib striplib file_magic_cmd export_symbols_cmds \
  6151. - deplibs_check_method allow_undefined_flag no_undefined_flag \
  6152. - finish_cmds finish_eval global_symbol_pipe global_symbol_to_cdecl \
  6153. - global_symbol_to_c_name_address \
  6154. - hardcode_libdir_flag_spec hardcode_libdir_separator \
  6155. + for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \
  6156. + SED SHELL STRIP \
  6157. + libname_spec library_names_spec soname_spec extract_expsyms_cmds \
  6158. + old_striplib striplib file_magic_cmd finish_cmds finish_eval \
  6159. + deplibs_check_method reload_flag reload_cmds need_locks \
  6160. + lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \
  6161. + lt_cv_sys_global_symbol_to_c_name_address \
  6162. sys_lib_search_path_spec sys_lib_dlsearch_path_spec \
  6163. - compiler_c_o compiler_o_lo need_locks exclude_expsyms include_expsyms; do
  6164. + old_postinstall_cmds old_postuninstall_cmds \
  6165. + _LT_AC_TAGVAR(compiler, $1) \
  6166. + _LT_AC_TAGVAR(CC, $1) \
  6167. + _LT_AC_TAGVAR(LD, $1) \
  6168. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1) \
  6169. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1) \
  6170. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1) \
  6171. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) \
  6172. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1) \
  6173. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1) \
  6174. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1) \
  6175. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1) \
  6176. + _LT_AC_TAGVAR(old_archive_cmds, $1) \
  6177. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) \
  6178. + _LT_AC_TAGVAR(predep_objects, $1) \
  6179. + _LT_AC_TAGVAR(postdep_objects, $1) \
  6180. + _LT_AC_TAGVAR(predeps, $1) \
  6181. + _LT_AC_TAGVAR(postdeps, $1) \
  6182. + _LT_AC_TAGVAR(compiler_lib_search_path, $1) \
  6183. + _LT_AC_TAGVAR(archive_cmds, $1) \
  6184. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) \
  6185. + _LT_AC_TAGVAR(postinstall_cmds, $1) \
  6186. + _LT_AC_TAGVAR(postuninstall_cmds, $1) \
  6187. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) \
  6188. + _LT_AC_TAGVAR(allow_undefined_flag, $1) \
  6189. + _LT_AC_TAGVAR(no_undefined_flag, $1) \
  6190. + _LT_AC_TAGVAR(export_symbols_cmds, $1) \
  6191. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) \
  6192. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1) \
  6193. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1) \
  6194. + _LT_AC_TAGVAR(hardcode_automatic, $1) \
  6195. + _LT_AC_TAGVAR(module_cmds, $1) \
  6196. + _LT_AC_TAGVAR(module_expsym_cmds, $1) \
  6197. + _LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1) \
  6198. + _LT_AC_TAGVAR(exclude_expsyms, $1) \
  6199. + _LT_AC_TAGVAR(include_expsyms, $1); do
  6200. case $var in
  6201. - reload_cmds | old_archive_cmds | old_archive_from_new_cmds | \
  6202. - old_postinstall_cmds | old_postuninstall_cmds | \
  6203. - export_symbols_cmds | archive_cmds | archive_expsym_cmds | \
  6204. - extract_expsyms_cmds | old_archive_from_expsyms_cmds | \
  6205. + _LT_AC_TAGVAR(old_archive_cmds, $1) | \
  6206. + _LT_AC_TAGVAR(old_archive_from_new_cmds, $1) | \
  6207. + _LT_AC_TAGVAR(archive_cmds, $1) | \
  6208. + _LT_AC_TAGVAR(archive_expsym_cmds, $1) | \
  6209. + _LT_AC_TAGVAR(module_cmds, $1) | \
  6210. + _LT_AC_TAGVAR(module_expsym_cmds, $1) | \
  6211. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1) | \
  6212. + _LT_AC_TAGVAR(export_symbols_cmds, $1) | \
  6213. + extract_expsyms_cmds | reload_cmds | finish_cmds | \
  6214. postinstall_cmds | postuninstall_cmds | \
  6215. - finish_cmds | sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6216. + old_postinstall_cmds | old_postuninstall_cmds | \
  6217. + sys_lib_search_path_spec | sys_lib_dlsearch_path_spec)
  6218. # Double-quote double-evaled strings.
  6219. eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\""
  6220. ;;
  6221. @@ -2609,14 +4871,31 @@
  6222. esac
  6223. done
  6224. - cat <<__EOF__ > "${ofile}T"
  6225. -#! $SHELL
  6226. + case $lt_echo in
  6227. + *'\[$]0 --fallback-echo"')
  6228. + lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\[$]0 --fallback-echo"[$]/[$]0 --fallback-echo"/'`
  6229. + ;;
  6230. + esac
  6231. -# `$echo "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6232. +ifelse([$1], [],
  6233. + [cfgfile="${ofile}T"
  6234. + trap "$rm \"$cfgfile\"; exit 1" 1 2 15
  6235. + $rm -f "$cfgfile"
  6236. + AC_MSG_NOTICE([creating $ofile])],
  6237. + [cfgfile="$ofile"])
  6238. +
  6239. + cat <<__EOF__ >> "$cfgfile"
  6240. +ifelse([$1], [],
  6241. +[#! $SHELL
  6242. +
  6243. +# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  6244. # Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP)
  6245. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  6246. #
  6247. -# Copyright (C) 1996-2000 Free Software Foundation, Inc.
  6248. +# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001
  6249. +# Free Software Foundation, Inc.
  6250. +#
  6251. +# This file is part of GNU Libtool:
  6252. # Originally by Gordon Matzigkeit <[email protected]>, 1996
  6253. #
  6254. # This program is free software; you can redistribute it and/or modify
  6255. @@ -2638,17 +4917,21 @@
  6256. # configuration script generated by Autoconf, you may include it under
  6257. # the same distribution terms that you use for the rest of that program.
  6258. -# A sed that does not truncate output.
  6259. +# A sed program that does not truncate output.
  6260. SED=$lt_SED
  6261. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  6262. -Xsed="${SED} -e s/^X//"
  6263. +Xsed="$SED -e s/^X//"
  6264. # The HP-UX ksh and POSIX shell print the target directory to stdout
  6265. # if CDPATH is set.
  6266. if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi
  6267. -# ### BEGIN LIBTOOL CONFIG
  6268. +# The names of the tagged configurations supported by this script.
  6269. +available_tags=
  6270. +
  6271. +# ### BEGIN LIBTOOL CONFIG],
  6272. +[# ### BEGIN LIBTOOL TAG CONFIG: $tagname])
  6273. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  6274. @@ -2662,7 +4945,10 @@
  6275. build_old_libs=$enable_static
  6276. # Whether or not to add -lc for building shared libraries.
  6277. -build_libtool_need_lc=$need_lc
  6278. +build_libtool_need_lc=$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)
  6279. +
  6280. +# Whether or not to disallow shared libs when runtime libs are static
  6281. +allow_libtool_libs_with_static_runtimes=$_LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)
  6282. # Whether or not to optimize for fast installation.
  6283. fast_install=$enable_fast_install
  6284. @@ -2678,14 +4964,20 @@
  6285. AR=$lt_AR
  6286. AR_FLAGS=$lt_AR_FLAGS
  6287. -# The default C compiler.
  6288. -CC=$lt_CC
  6289. +# A C compiler.
  6290. +LTCC=$lt_LTCC
  6291. +
  6292. +# A language-specific compiler.
  6293. +CC=$lt_[]_LT_AC_TAGVAR(compiler, $1)
  6294. # Is the compiler the GNU C compiler?
  6295. -with_gcc=$GCC
  6296. +with_gcc=$_LT_AC_TAGVAR(GCC, $1)
  6297. +
  6298. +# An ERE matcher.
  6299. +EGREP=$lt_EGREP
  6300. # The linker used to build libraries.
  6301. -LD=$lt_LD
  6302. +LD=$lt_[]_LT_AC_TAGVAR(LD, $1)
  6303. # Whether we need hard or soft links.
  6304. LN_S=$lt_LN_S
  6305. @@ -2694,7 +4986,7 @@
  6306. NM=$lt_NM
  6307. # A symbol stripping program
  6308. -STRIP=$STRIP
  6309. +STRIP=$lt_STRIP
  6310. # Used to examine libraries when file_magic_cmd begins "file"
  6311. MAGIC_CMD=$MAGIC_CMD
  6312. @@ -2716,7 +5008,7 @@
  6313. reload_cmds=$lt_reload_cmds
  6314. # How to pass a linker flag through the compiler.
  6315. -wl=$lt_wl
  6316. +wl=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  6317. # Object file suffix (normally "o").
  6318. objext="$ac_objext"
  6319. @@ -2724,18 +5016,21 @@
  6320. # Old archive suffix (normally "a").
  6321. libext="$libext"
  6322. +# Shared library suffix (normally ".so").
  6323. +shrext_cmds='$shrext_cmds'
  6324. +
  6325. # Executable file suffix (normally "").
  6326. exeext="$exeext"
  6327. # Additional compiler flags for building library objects.
  6328. -pic_flag=$lt_pic_flag
  6329. +pic_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)
  6330. pic_mode=$pic_mode
  6331. -# Does compiler simultaneously support -c and -o options?
  6332. -compiler_c_o=$lt_compiler_c_o
  6333. +# What is the maximum length of a command?
  6334. +max_cmd_len=$lt_cv_sys_max_cmd_len
  6335. -# Can we write directly to a .lo ?
  6336. -compiler_o_lo=$lt_compiler_o_lo
  6337. +# Does compiler simultaneously support -c and -o options?
  6338. +compiler_c_o=$lt_[]_LT_AC_TAGVAR(lt_cv_prog_compiler_c_o, $1)
  6339. # Must we lock files when doing compilation ?
  6340. need_locks=$lt_need_locks
  6341. @@ -2756,946 +5051,1770 @@
  6342. dlopen_self_static=$enable_dlopen_self_static
  6343. # Compiler flag to prevent dynamic linking.
  6344. -link_static_flag=$lt_link_static_flag
  6345. +link_static_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_static, $1)
  6346. # Compiler flag to turn off builtin functions.
  6347. -no_builtin_flag=$lt_no_builtin_flag
  6348. +no_builtin_flag=$lt_[]_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)
  6349. # Compiler flag to allow reflexive dlopens.
  6350. -export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  6351. +export_dynamic_flag_spec=$lt_[]_LT_AC_TAGVAR(export_dynamic_flag_spec, $1)
  6352. # Compiler flag to generate shared objects directly from archives.
  6353. -whole_archive_flag_spec=$lt_whole_archive_flag_spec
  6354. +whole_archive_flag_spec=$lt_[]_LT_AC_TAGVAR(whole_archive_flag_spec, $1)
  6355. # Compiler flag to generate thread-safe objects.
  6356. -thread_safe_flag_spec=$lt_thread_safe_flag_spec
  6357. +thread_safe_flag_spec=$lt_[]_LT_AC_TAGVAR(thread_safe_flag_spec, $1)
  6358. +
  6359. +# Library versioning type.
  6360. +version_type=$version_type
  6361. +
  6362. +# Format of library name prefix.
  6363. +libname_spec=$lt_libname_spec
  6364. +
  6365. +# List of archive names. First name is the real one, the rest are links.
  6366. +# The last name is the one that the linker finds with -lNAME.
  6367. +library_names_spec=$lt_library_names_spec
  6368. +
  6369. +# The coded name of the library, if different from the real name.
  6370. +soname_spec=$lt_soname_spec
  6371. +
  6372. +# Commands used to build and install an old-style archive.
  6373. +RANLIB=$lt_RANLIB
  6374. +old_archive_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_cmds, $1)
  6375. +old_postinstall_cmds=$lt_old_postinstall_cmds
  6376. +old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6377. +
  6378. +# Create an old-style archive from a shared archive.
  6379. +old_archive_from_new_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_new_cmds, $1)
  6380. +
  6381. +# Create a temporary old-style archive to link instead of a shared archive.
  6382. +old_archive_from_expsyms_cmds=$lt_[]_LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)
  6383. +
  6384. +# Commands used to build and install a shared archive.
  6385. +archive_cmds=$lt_[]_LT_AC_TAGVAR(archive_cmds, $1)
  6386. +archive_expsym_cmds=$lt_[]_LT_AC_TAGVAR(archive_expsym_cmds, $1)
  6387. +postinstall_cmds=$lt_postinstall_cmds
  6388. +postuninstall_cmds=$lt_postuninstall_cmds
  6389. +
  6390. +# Commands used to build a loadable module (assumed same as above if empty)
  6391. +module_cmds=$lt_[]_LT_AC_TAGVAR(module_cmds, $1)
  6392. +module_expsym_cmds=$lt_[]_LT_AC_TAGVAR(module_expsym_cmds, $1)
  6393. +
  6394. +# Commands to strip libraries.
  6395. +old_striplib=$lt_old_striplib
  6396. +striplib=$lt_striplib
  6397. +
  6398. +# Dependencies to place before the objects being linked to create a
  6399. +# shared library.
  6400. +predep_objects=$lt_[]_LT_AC_TAGVAR(predep_objects, $1)
  6401. +
  6402. +# Dependencies to place after the objects being linked to create a
  6403. +# shared library.
  6404. +postdep_objects=$lt_[]_LT_AC_TAGVAR(postdep_objects, $1)
  6405. +
  6406. +# Dependencies to place before the objects being linked to create a
  6407. +# shared library.
  6408. +predeps=$lt_[]_LT_AC_TAGVAR(predeps, $1)
  6409. +
  6410. +# Dependencies to place after the objects being linked to create a
  6411. +# shared library.
  6412. +postdeps=$lt_[]_LT_AC_TAGVAR(postdeps, $1)
  6413. +
  6414. +# The library search path used internally by the compiler when linking
  6415. +# a shared library.
  6416. +compiler_lib_search_path=$lt_[]_LT_AC_TAGVAR(compiler_lib_search_path, $1)
  6417. +
  6418. +# Method to check whether dependent libraries are shared objects.
  6419. +deplibs_check_method=$lt_deplibs_check_method
  6420. +
  6421. +# Command to use when deplibs_check_method == file_magic.
  6422. +file_magic_cmd=$lt_file_magic_cmd
  6423. +
  6424. +# Flag that allows shared libraries with undefined symbols to be built.
  6425. +allow_undefined_flag=$lt_[]_LT_AC_TAGVAR(allow_undefined_flag, $1)
  6426. +
  6427. +# Flag that forces no undefined symbols.
  6428. +no_undefined_flag=$lt_[]_LT_AC_TAGVAR(no_undefined_flag, $1)
  6429. +
  6430. +# Commands used to finish a libtool library installation in a directory.
  6431. +finish_cmds=$lt_finish_cmds
  6432. +
  6433. +# Same as above, but a single script fragment to be evaled but not shown.
  6434. +finish_eval=$lt_finish_eval
  6435. +
  6436. +# Take the output of nm and produce a listing of raw symbols and C names.
  6437. +global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  6438. +
  6439. +# Transform the output of nm in a proper C declaration
  6440. +global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  6441. +
  6442. +# Transform the output of nm in a C name address pair
  6443. +global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  6444. +
  6445. +# This is the shared library runtime path variable.
  6446. +runpath_var=$runpath_var
  6447. +
  6448. +# This is the shared library path variable.
  6449. +shlibpath_var=$shlibpath_var
  6450. +
  6451. +# Is shlibpath searched before the hard-coded library search path?
  6452. +shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  6453. +
  6454. +# How to hardcode a shared library path into an executable.
  6455. +hardcode_action=$_LT_AC_TAGVAR(hardcode_action, $1)
  6456. +
  6457. +# Whether we should hardcode library paths into libraries.
  6458. +hardcode_into_libs=$hardcode_into_libs
  6459. +
  6460. +# Flag to hardcode \$libdir into a binary during linking.
  6461. +# This must work even if \$libdir does not exist.
  6462. +hardcode_libdir_flag_spec=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)
  6463. +
  6464. +# If ld is used when linking, flag to hardcode \$libdir into
  6465. +# a binary during linking. This must work even if \$libdir does
  6466. +# not exist.
  6467. +hardcode_libdir_flag_spec_ld=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)
  6468. +
  6469. +# Whether we need a single -rpath flag with a separated argument.
  6470. +hardcode_libdir_separator=$lt_[]_LT_AC_TAGVAR(hardcode_libdir_separator, $1)
  6471. +
  6472. +# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the
  6473. +# resulting binary.
  6474. +hardcode_direct=$_LT_AC_TAGVAR(hardcode_direct, $1)
  6475. +
  6476. +# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  6477. +# resulting binary.
  6478. +hardcode_minus_L=$_LT_AC_TAGVAR(hardcode_minus_L, $1)
  6479. +
  6480. +# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  6481. +# the resulting binary.
  6482. +hardcode_shlibpath_var=$_LT_AC_TAGVAR(hardcode_shlibpath_var, $1)
  6483. +
  6484. +# Set to yes if building a shared library automatically hardcodes DIR into the library
  6485. +# and all subsequent libraries and executables linked against it.
  6486. +hardcode_automatic=$_LT_AC_TAGVAR(hardcode_automatic, $1)
  6487. +
  6488. +# Variables whose values should be saved in libtool wrapper scripts and
  6489. +# restored at relink time.
  6490. +variables_saved_for_relink="$variables_saved_for_relink"
  6491. +
  6492. +# Whether libtool must link a program against all its dependency libraries.
  6493. +link_all_deplibs=$_LT_AC_TAGVAR(link_all_deplibs, $1)
  6494. +
  6495. +# Compile-time system search path for libraries
  6496. +sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  6497. +
  6498. +# Run-time system search path for libraries
  6499. +sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  6500. +
  6501. +# Fix the shell variable \$srcfile for the compiler.
  6502. +fix_srcfile_path="$_LT_AC_TAGVAR(fix_srcfile_path, $1)"
  6503. +
  6504. +# Set to yes if exported symbols are required.
  6505. +always_export_symbols=$_LT_AC_TAGVAR(always_export_symbols, $1)
  6506. +
  6507. +# The commands to list exported symbols.
  6508. +export_symbols_cmds=$lt_[]_LT_AC_TAGVAR(export_symbols_cmds, $1)
  6509. +
  6510. +# The commands to extract the exported symbol list from a shared archive.
  6511. +extract_expsyms_cmds=$lt_extract_expsyms_cmds
  6512. +
  6513. +# Symbols that should not be listed in the preloaded symbols.
  6514. +exclude_expsyms=$lt_[]_LT_AC_TAGVAR(exclude_expsyms, $1)
  6515. +
  6516. +# Symbols that must always be exported.
  6517. +include_expsyms=$lt_[]_LT_AC_TAGVAR(include_expsyms, $1)
  6518. +
  6519. +ifelse([$1],[],
  6520. +[# ### END LIBTOOL CONFIG],
  6521. +[# ### END LIBTOOL TAG CONFIG: $tagname])
  6522. +
  6523. +__EOF__
  6524. +
  6525. +ifelse([$1],[], [
  6526. + case $host_os in
  6527. + aix3*)
  6528. + cat <<\EOF >> "$cfgfile"
  6529. +
  6530. +# AIX sometimes has problems with the GCC collect2 program. For some
  6531. +# reason, if we set the COLLECT_NAMES environment variable, the problems
  6532. +# vanish in a puff of smoke.
  6533. +if test "X${COLLECT_NAMES+set}" != Xset; then
  6534. + COLLECT_NAMES=
  6535. + export COLLECT_NAMES
  6536. +fi
  6537. +EOF
  6538. + ;;
  6539. + esac
  6540. +
  6541. + # We use sed instead of cat because bash on DJGPP gets confused if
  6542. + # if finds mixed CR/LF and LF-only lines. Since sed operates in
  6543. + # text mode, it properly converts lines to CR/LF. This bash problem
  6544. + # is reportedly fixed, but why not run on old versions too?
  6545. + sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1)
  6546. +
  6547. + mv -f "$cfgfile" "$ofile" || \
  6548. + (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  6549. + chmod +x "$ofile"
  6550. +])
  6551. +else
  6552. + # If there is no Makefile yet, we rely on a make rule to execute
  6553. + # `config.status --recheck' to rerun these tests and create the
  6554. + # libtool script then.
  6555. + ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'`
  6556. + if test -f "$ltmain_in"; then
  6557. + test -f Makefile && make "$ltmain"
  6558. + fi
  6559. +fi
  6560. +])# AC_LIBTOOL_CONFIG
  6561. +
  6562. +
  6563. +# AC_LIBTOOL_PROG_COMPILER_NO_RTTI([TAGNAME])
  6564. +# -------------------------------------------
  6565. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_NO_RTTI],
  6566. +[AC_REQUIRE([_LT_AC_SYS_COMPILER])dnl
  6567. +
  6568. +_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=
  6569. +
  6570. +if test "$GCC" = yes; then
  6571. + _LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)=' -fno-builtin'
  6572. +
  6573. + AC_LIBTOOL_COMPILER_OPTION([if $compiler supports -fno-rtti -fno-exceptions],
  6574. + lt_cv_prog_compiler_rtti_exceptions,
  6575. + [-fno-rtti -fno-exceptions], [],
  6576. + [_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1) -fno-rtti -fno-exceptions"])
  6577. +fi
  6578. +])# AC_LIBTOOL_PROG_COMPILER_NO_RTTI
  6579. +
  6580. +
  6581. +# AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  6582. +# ---------------------------------
  6583. +AC_DEFUN([AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE],
  6584. +[AC_REQUIRE([AC_CANONICAL_HOST])
  6585. +AC_REQUIRE([AC_PROG_NM])
  6586. +AC_REQUIRE([AC_OBJEXT])
  6587. +# Check for command to grab the raw symbol name followed by C symbol from nm.
  6588. +AC_MSG_CHECKING([command to parse $NM output from $compiler object])
  6589. +AC_CACHE_VAL([lt_cv_sys_global_symbol_pipe],
  6590. +[
  6591. +# These are sane defaults that work on at least a few old systems.
  6592. +# [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6593. +
  6594. +# Character class describing NM global symbol codes.
  6595. +symcode='[[BCDEGRST]]'
  6596. +
  6597. +# Regexp to match symbols that can be accessed directly from C.
  6598. +sympat='\([[_A-Za-z]][[_A-Za-z0-9]]*\)'
  6599. +
  6600. +# Transform the above into a raw symbol and a C symbol.
  6601. +symxfrm='\1 \2\3 \3'
  6602. +
  6603. +# Transform an extracted symbol line into a proper C declaration
  6604. +lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'"
  6605. +
  6606. +# Transform an extracted symbol line into symbol name and symbol address
  6607. +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'"
  6608. +
  6609. +# Define system-specific variables.
  6610. +case $host_os in
  6611. +aix*)
  6612. + symcode='[[BCDT]]'
  6613. + ;;
  6614. +cygwin* | mingw* | pw32*)
  6615. + symcode='[[ABCDGISTW]]'
  6616. + ;;
  6617. +hpux*) # Its linker distinguishes data from code symbols
  6618. + if test "$host_cpu" = ia64; then
  6619. + symcode='[[ABCDEGRST]]'
  6620. + fi
  6621. + lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6622. + 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'"
  6623. + ;;
  6624. +irix* | nonstopux*)
  6625. + symcode='[[BCDEGRST]]'
  6626. + ;;
  6627. +osf*)
  6628. + symcode='[[BCDEGQRST]]'
  6629. + ;;
  6630. +solaris* | sysv5*)
  6631. + symcode='[[BDRT]]'
  6632. + ;;
  6633. +sysv4)
  6634. + symcode='[[DFNSTU]]'
  6635. + ;;
  6636. +esac
  6637. +
  6638. +# Handle CRLF in mingw tool chain
  6639. +opt_cr=
  6640. +case $build_os in
  6641. +mingw*)
  6642. + opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6643. + ;;
  6644. +esac
  6645. -# Library versioning type.
  6646. -version_type=$version_type
  6647. +# If we're using GNU nm, then use its standard symbol codes.
  6648. +case `$NM -V 2>&1` in
  6649. +*GNU* | *'with BFD'*)
  6650. + symcode='[[ABCDGIRSTW]]' ;;
  6651. +esac
  6652. -# Format of library name prefix.
  6653. -libname_spec=$lt_libname_spec
  6654. +# Try without a prefix undercore, then with it.
  6655. +for ac_symprfx in "" "_"; do
  6656. -# List of archive names. First name is the real one, the rest are links.
  6657. -# The last name is the one that the linker finds with -lNAME.
  6658. -library_names_spec=$lt_library_names_spec
  6659. + # Write the raw and C identifiers.
  6660. + lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[[ ]]\($symcode$symcode*\)[[ ]][[ ]]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'"
  6661. -# The coded name of the library, if different from the real name.
  6662. -soname_spec=$lt_soname_spec
  6663. + # Check to see that the pipe works correctly.
  6664. + pipe_works=no
  6665. -# Commands used to build and install an old-style archive.
  6666. -RANLIB=$lt_RANLIB
  6667. -old_archive_cmds=$lt_old_archive_cmds
  6668. -old_postinstall_cmds=$lt_old_postinstall_cmds
  6669. -old_postuninstall_cmds=$lt_old_postuninstall_cmds
  6670. + rm -f conftest*
  6671. + cat > conftest.$ac_ext <<EOF
  6672. +#ifdef __cplusplus
  6673. +extern "C" {
  6674. +#endif
  6675. +char nm_test_var;
  6676. +void nm_test_func(){}
  6677. +#ifdef __cplusplus
  6678. +}
  6679. +#endif
  6680. +int main(){nm_test_var='a';nm_test_func();return(0);}
  6681. +EOF
  6682. -# Create an old-style archive from a shared archive.
  6683. -old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  6684. + if AC_TRY_EVAL(ac_compile); then
  6685. + # Now try to grab the symbols.
  6686. + nlist=conftest.nm
  6687. + if AC_TRY_EVAL(NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) && test -s "$nlist"; then
  6688. + # Try sorting and uniquifying the output.
  6689. + if sort "$nlist" | uniq > "$nlist"T; then
  6690. + mv -f "$nlist"T "$nlist"
  6691. + else
  6692. + rm -f "$nlist"T
  6693. + fi
  6694. -# Create a temporary old-style archive to link instead of a shared archive.
  6695. -old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  6696. + # Make sure that we snagged all the symbols we need.
  6697. + if grep ' nm_test_var$' "$nlist" >/dev/null; then
  6698. + if grep ' nm_test_func$' "$nlist" >/dev/null; then
  6699. + cat <<EOF > conftest.$ac_ext
  6700. +#ifdef __cplusplus
  6701. +extern "C" {
  6702. +#endif
  6703. -# Commands used to build and install a shared archive.
  6704. -archive_cmds=$lt_archive_cmds
  6705. -archive_expsym_cmds=$lt_archive_expsym_cmds
  6706. -postinstall_cmds=$lt_postinstall_cmds
  6707. -postuninstall_cmds=$lt_postuninstall_cmds
  6708. +EOF
  6709. + # Now generate the symbol file.
  6710. + eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext'
  6711. -# Commands to strip libraries.
  6712. -old_striplib=$lt_old_striplib
  6713. -striplib=$lt_striplib
  6714. + cat <<EOF >> conftest.$ac_ext
  6715. +#if defined (__STDC__) && __STDC__
  6716. +# define lt_ptr_t void *
  6717. +#else
  6718. +# define lt_ptr_t char *
  6719. +# define const
  6720. +#endif
  6721. -# Method to check whether dependent libraries are shared objects.
  6722. -deplibs_check_method=$lt_deplibs_check_method
  6723. +/* The mapping between symbol names and symbols. */
  6724. +const struct {
  6725. + const char *name;
  6726. + lt_ptr_t address;
  6727. +}
  6728. +lt_preloaded_symbols[[]] =
  6729. +{
  6730. +EOF
  6731. + $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext
  6732. + cat <<\EOF >> conftest.$ac_ext
  6733. + {0, (lt_ptr_t) 0}
  6734. +};
  6735. -# Command to use when deplibs_check_method == file_magic.
  6736. -file_magic_cmd=$lt_file_magic_cmd
  6737. +#ifdef __cplusplus
  6738. +}
  6739. +#endif
  6740. +EOF
  6741. + # Now try linking the two files.
  6742. + mv conftest.$ac_objext conftstm.$ac_objext
  6743. + lt_save_LIBS="$LIBS"
  6744. + lt_save_CFLAGS="$CFLAGS"
  6745. + LIBS="conftstm.$ac_objext"
  6746. + CFLAGS="$CFLAGS$_LT_AC_TAGVAR(lt_prog_compiler_no_builtin_flag, $1)"
  6747. + if AC_TRY_EVAL(ac_link) && test -s conftest${ac_exeext}; then
  6748. + pipe_works=yes
  6749. + fi
  6750. + LIBS="$lt_save_LIBS"
  6751. + CFLAGS="$lt_save_CFLAGS"
  6752. + else
  6753. + echo "cannot find nm_test_func in $nlist" >&AS_MESSAGE_LOG_FD
  6754. + fi
  6755. + else
  6756. + echo "cannot find nm_test_var in $nlist" >&AS_MESSAGE_LOG_FD
  6757. + fi
  6758. + else
  6759. + echo "cannot run $lt_cv_sys_global_symbol_pipe" >&AS_MESSAGE_LOG_FD
  6760. + fi
  6761. + else
  6762. + echo "$progname: failed program was:" >&AS_MESSAGE_LOG_FD
  6763. + cat conftest.$ac_ext >&5
  6764. + fi
  6765. + rm -f conftest* conftst*
  6766. -# Flag that allows shared libraries with undefined symbols to be built.
  6767. -allow_undefined_flag=$lt_allow_undefined_flag
  6768. + # Do not use the global_symbol_pipe unless it works.
  6769. + if test "$pipe_works" = yes; then
  6770. + break
  6771. + else
  6772. + lt_cv_sys_global_symbol_pipe=
  6773. + fi
  6774. +done
  6775. +])
  6776. +if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6777. + lt_cv_sys_global_symbol_to_cdecl=
  6778. +fi
  6779. +if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6780. + AC_MSG_RESULT(failed)
  6781. +else
  6782. + AC_MSG_RESULT(ok)
  6783. +fi
  6784. +]) # AC_LIBTOOL_SYS_GLOBAL_SYMBOL_PIPE
  6785. -# Flag that forces no undefined symbols.
  6786. -no_undefined_flag=$lt_no_undefined_flag
  6787. -# Commands used to finish a libtool library installation in a directory.
  6788. -finish_cmds=$lt_finish_cmds
  6789. +# AC_LIBTOOL_PROG_COMPILER_PIC([TAGNAME])
  6790. +# ---------------------------------------
  6791. +AC_DEFUN([AC_LIBTOOL_PROG_COMPILER_PIC],
  6792. +[_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)=
  6793. +_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6794. +_LT_AC_TAGVAR(lt_prog_compiler_static, $1)=
  6795. -# Same as above, but a single script fragment to be evaled but not shown.
  6796. -finish_eval=$lt_finish_eval
  6797. +AC_MSG_CHECKING([for $compiler option to produce PIC])
  6798. + ifelse([$1],[CXX],[
  6799. + # C++ specific cases for pic, static, wl, etc.
  6800. + if test "$GXX" = yes; then
  6801. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6802. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6803. -# Take the output of nm and produce a listing of raw symbols and C names.
  6804. -global_symbol_pipe=$lt_global_symbol_pipe
  6805. + case $host_os in
  6806. + aix*)
  6807. + # All AIX code is PIC.
  6808. + if test "$host_cpu" = ia64; then
  6809. + # AIX 5 now supports IA64 processor
  6810. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6811. + fi
  6812. + ;;
  6813. + amigaos*)
  6814. + # FIXME: we need at least 68020 code to build shared libraries, but
  6815. + # adding the `-m68020' flag to GCC prevents building anything better,
  6816. + # like `-m68040'.
  6817. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  6818. + ;;
  6819. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6820. + # PIC is the default for these OSes.
  6821. + ;;
  6822. + mingw* | os2* | pw32*)
  6823. + # This hack is so that the source file can tell whether it is being
  6824. + # built for inclusion in a dll (and should export symbols for example).
  6825. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  6826. + ;;
  6827. + darwin* | rhapsody*)
  6828. + # PIC is the default on this platform
  6829. + # Common symbols not allowed in MH_DYLIB files
  6830. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  6831. + ;;
  6832. + *djgpp*)
  6833. + # DJGPP does not support shared libraries at all
  6834. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6835. + ;;
  6836. + sysv4*MP*)
  6837. + if test -d /usr/nec; then
  6838. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  6839. + fi
  6840. + ;;
  6841. + hpux*)
  6842. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6843. + # not for PA HP-UX.
  6844. + case "$host_cpu" in
  6845. + hppa*64*|ia64*)
  6846. + ;;
  6847. + *)
  6848. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6849. + ;;
  6850. + esac
  6851. + ;;
  6852. + *)
  6853. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6854. + ;;
  6855. + esac
  6856. + else
  6857. + case $host_os in
  6858. + aix4* | aix5*)
  6859. + # All AIX code is PIC.
  6860. + if test "$host_cpu" = ia64; then
  6861. + # AIX 5 now supports IA64 processor
  6862. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  6863. + else
  6864. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  6865. + fi
  6866. + ;;
  6867. + chorus*)
  6868. + case $cc_basename in
  6869. + cxch68)
  6870. + # Green Hills C++ Compiler
  6871. + # _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"
  6872. + ;;
  6873. + esac
  6874. + ;;
  6875. + dgux*)
  6876. + case $cc_basename in
  6877. + ec++)
  6878. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6879. + ;;
  6880. + ghcx)
  6881. + # Green Hills C++ Compiler
  6882. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6883. + ;;
  6884. + *)
  6885. + ;;
  6886. + esac
  6887. + ;;
  6888. + freebsd* | kfreebsd*-gnu)
  6889. + # FreeBSD uses GNU C++
  6890. + ;;
  6891. + hpux9* | hpux10* | hpux11*)
  6892. + case $cc_basename in
  6893. + CC)
  6894. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6895. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  6896. + if test "$host_cpu" != ia64; then
  6897. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6898. + fi
  6899. + ;;
  6900. + aCC)
  6901. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6902. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive"
  6903. + case "$host_cpu" in
  6904. + hppa*64*|ia64*)
  6905. + # +Z the default
  6906. + ;;
  6907. + *)
  6908. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  6909. + ;;
  6910. + esac
  6911. + ;;
  6912. + *)
  6913. + ;;
  6914. + esac
  6915. + ;;
  6916. + irix5* | irix6* | nonstopux*)
  6917. + case $cc_basename in
  6918. + CC)
  6919. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6920. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6921. + # CC pic flag -KPIC is the default.
  6922. + ;;
  6923. + *)
  6924. + ;;
  6925. + esac
  6926. + ;;
  6927. + linux*)
  6928. + case $cc_basename in
  6929. + KCC)
  6930. + # KAI C++ Compiler
  6931. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6932. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6933. + ;;
  6934. + icpc)
  6935. + # Intel C++
  6936. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6937. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  6938. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  6939. + ;;
  6940. + cxx)
  6941. + # Compaq C++
  6942. + # Make sure the PIC flag is empty. It appears that all Alpha
  6943. + # Linux and Compaq Tru64 Unix objects are PIC.
  6944. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6945. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6946. + ;;
  6947. + *)
  6948. + ;;
  6949. + esac
  6950. + ;;
  6951. + lynxos*)
  6952. + ;;
  6953. + m88k*)
  6954. + ;;
  6955. + mvs*)
  6956. + case $cc_basename in
  6957. + cxx)
  6958. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-W c,exportall'
  6959. + ;;
  6960. + *)
  6961. + ;;
  6962. + esac
  6963. + ;;
  6964. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  6965. + ;;
  6966. + osf3* | osf4* | osf5*)
  6967. + case $cc_basename in
  6968. + KCC)
  6969. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='--backend -Wl,'
  6970. + ;;
  6971. + RCC)
  6972. + # Rational C++ 2.4.1
  6973. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  6974. + ;;
  6975. + cxx)
  6976. + # Digital/Compaq C++
  6977. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  6978. + # Make sure the PIC flag is empty. It appears that all Alpha
  6979. + # Linux and Compaq Tru64 Unix objects are PIC.
  6980. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  6981. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  6982. + ;;
  6983. + *)
  6984. + ;;
  6985. + esac
  6986. + ;;
  6987. + psos*)
  6988. + ;;
  6989. + sco*)
  6990. + case $cc_basename in
  6991. + CC)
  6992. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  6993. + ;;
  6994. + *)
  6995. + ;;
  6996. + esac
  6997. + ;;
  6998. + solaris*)
  6999. + case $cc_basename in
  7000. + CC)
  7001. + # Sun C++ 4.2, 5.x and Centerline C++
  7002. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7003. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7004. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7005. + ;;
  7006. + gcx)
  7007. + # Green Hills C++ Compiler
  7008. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7009. + ;;
  7010. + *)
  7011. + ;;
  7012. + esac
  7013. + ;;
  7014. + sunos4*)
  7015. + case $cc_basename in
  7016. + CC)
  7017. + # Sun C++ 4.x
  7018. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7019. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7020. + ;;
  7021. + lcc)
  7022. + # Lucid
  7023. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7024. + ;;
  7025. + *)
  7026. + ;;
  7027. + esac
  7028. + ;;
  7029. + tandem*)
  7030. + case $cc_basename in
  7031. + NCC)
  7032. + # NonStop-UX NCC 3.20
  7033. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7034. + ;;
  7035. + *)
  7036. + ;;
  7037. + esac
  7038. + ;;
  7039. + unixware*)
  7040. + ;;
  7041. + vxworks*)
  7042. + ;;
  7043. + *)
  7044. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7045. + ;;
  7046. + esac
  7047. + fi
  7048. +],
  7049. +[
  7050. + if test "$GCC" = yes; then
  7051. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7052. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7053. -# Transform the output of nm in a proper C declaration
  7054. -global_symbol_to_cdecl=$lt_global_symbol_to_cdecl
  7055. + case $host_os in
  7056. + aix*)
  7057. + # All AIX code is PIC.
  7058. + if test "$host_cpu" = ia64; then
  7059. + # AIX 5 now supports IA64 processor
  7060. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7061. + fi
  7062. + ;;
  7063. -# Transform the output of nm in a C name address pair
  7064. -global_symbol_to_c_name_address=$lt_global_symbol_to_c_name_address
  7065. + amigaos*)
  7066. + # FIXME: we need at least 68020 code to build shared libraries, but
  7067. + # adding the `-m68020' flag to GCC prevents building anything better,
  7068. + # like `-m68040'.
  7069. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-m68020 -resident32 -malways-restore-a4'
  7070. + ;;
  7071. -# This is the shared library runtime path variable.
  7072. -runpath_var=$runpath_var
  7073. + beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7074. + # PIC is the default for these OSes.
  7075. + ;;
  7076. -# This is the shared library path variable.
  7077. -shlibpath_var=$shlibpath_var
  7078. + mingw* | pw32* | os2*)
  7079. + # This hack is so that the source file can tell whether it is being
  7080. + # built for inclusion in a dll (and should export symbols for example).
  7081. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7082. + ;;
  7083. -# Is shlibpath searched before the hard-coded library search path?
  7084. -shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  7085. + darwin* | rhapsody*)
  7086. + # PIC is the default on this platform
  7087. + # Common symbols not allowed in MH_DYLIB files
  7088. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fno-common'
  7089. + ;;
  7090. -# How to hardcode a shared library path into an executable.
  7091. -hardcode_action=$hardcode_action
  7092. + msdosdjgpp*)
  7093. + # Just because we use GCC doesn't mean we suddenly get shared libraries
  7094. + # on systems that don't support them.
  7095. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7096. + enable_shared=no
  7097. + ;;
  7098. -# Whether we should hardcode library paths into libraries.
  7099. -hardcode_into_libs=$hardcode_into_libs
  7100. + sysv4*MP*)
  7101. + if test -d /usr/nec; then
  7102. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=-Kconform_pic
  7103. + fi
  7104. + ;;
  7105. -# Flag to hardcode \$libdir into a binary during linking.
  7106. -# This must work even if \$libdir does not exist.
  7107. -hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  7108. + hpux*)
  7109. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7110. + # not for PA HP-UX.
  7111. + case "$host_cpu" in
  7112. + hppa*64*|ia64*)
  7113. + # +Z the default
  7114. + ;;
  7115. + *)
  7116. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7117. + ;;
  7118. + esac
  7119. + ;;
  7120. -# Whether we need a single -rpath flag with a separated argument.
  7121. -hardcode_libdir_separator=$lt_hardcode_libdir_separator
  7122. + *)
  7123. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-fPIC'
  7124. + ;;
  7125. + esac
  7126. + else
  7127. + # PORTME Check for flag to pass linker flags through the system compiler.
  7128. + case $host_os in
  7129. + aix*)
  7130. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7131. + if test "$host_cpu" = ia64; then
  7132. + # AIX 5 now supports IA64 processor
  7133. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7134. + else
  7135. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-bnso -bI:/lib/syscalls.exp'
  7136. + fi
  7137. + ;;
  7138. -# Set to yes if using DIR/libNAME.so during linking hardcodes DIR into the
  7139. -# resulting binary.
  7140. -hardcode_direct=$hardcode_direct
  7141. + mingw* | pw32* | os2*)
  7142. + # This hack is so that the source file can tell whether it is being
  7143. + # built for inclusion in a dll (and should export symbols for example).
  7144. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-DDLL_EXPORT'
  7145. + ;;
  7146. -# Set to yes if using the -LDIR flag during linking hardcodes DIR into the
  7147. -# resulting binary.
  7148. -hardcode_minus_L=$hardcode_minus_L
  7149. + hpux9* | hpux10* | hpux11*)
  7150. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7151. + # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7152. + # not for PA HP-UX.
  7153. + case "$host_cpu" in
  7154. + hppa*64*|ia64*)
  7155. + # +Z the default
  7156. + ;;
  7157. + *)
  7158. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='+Z'
  7159. + ;;
  7160. + esac
  7161. + # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7162. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='${wl}-a ${wl}archive'
  7163. + ;;
  7164. -# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into
  7165. -# the resulting binary.
  7166. -hardcode_shlibpath_var=$hardcode_shlibpath_var
  7167. + irix5* | irix6* | nonstopux*)
  7168. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7169. + # PIC (with -KPIC) is the default.
  7170. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7171. + ;;
  7172. -# Variables whose values should be saved in libtool wrapper scripts and
  7173. -# restored at relink time.
  7174. -variables_saved_for_relink="$variables_saved_for_relink"
  7175. + newsos6)
  7176. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7177. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7178. + ;;
  7179. -# Whether libtool must link a program against all its dependency libraries.
  7180. -link_all_deplibs=$link_all_deplibs
  7181. + linux*)
  7182. + case $CC in
  7183. + icc* | ecc*)
  7184. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7185. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7186. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-static'
  7187. + ;;
  7188. + ccc*)
  7189. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7190. + # All Alpha code is PIC.
  7191. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7192. + ;;
  7193. + esac
  7194. + ;;
  7195. -# Compile-time system search path for libraries
  7196. -sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  7197. + osf3* | osf4* | osf5*)
  7198. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7199. + # All OSF/1 code is PIC.
  7200. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-non_shared'
  7201. + ;;
  7202. -# Run-time system search path for libraries
  7203. -sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  7204. + sco3.2v5*)
  7205. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kpic'
  7206. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-dn'
  7207. + ;;
  7208. -# Fix the shell variable \$srcfile for the compiler.
  7209. -fix_srcfile_path="$fix_srcfile_path"
  7210. + solaris*)
  7211. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7212. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7213. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7214. + ;;
  7215. -# Set to yes if exported symbols are required.
  7216. -always_export_symbols=$always_export_symbols
  7217. + sunos4*)
  7218. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Qoption ld '
  7219. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-PIC'
  7220. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7221. + ;;
  7222. -# The commands to list exported symbols.
  7223. -export_symbols_cmds=$lt_export_symbols_cmds
  7224. + sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  7225. + _LT_AC_TAGVAR(lt_prog_compiler_wl, $1)='-Wl,'
  7226. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-KPIC'
  7227. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7228. + ;;
  7229. -# The commands to extract the exported symbol list from a shared archive.
  7230. -extract_expsyms_cmds=$lt_extract_expsyms_cmds
  7231. + sysv4*MP*)
  7232. + if test -d /usr/nec ;then
  7233. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-Kconform_pic'
  7234. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7235. + fi
  7236. + ;;
  7237. -# Symbols that should not be listed in the preloaded symbols.
  7238. -exclude_expsyms=$lt_exclude_expsyms
  7239. + uts4*)
  7240. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)='-pic'
  7241. + _LT_AC_TAGVAR(lt_prog_compiler_static, $1)='-Bstatic'
  7242. + ;;
  7243. -# Symbols that must always be exported.
  7244. -include_expsyms=$lt_include_expsyms
  7245. + *)
  7246. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no
  7247. + ;;
  7248. + esac
  7249. + fi
  7250. +])
  7251. +AC_MSG_RESULT([$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)])
  7252. -# ### END LIBTOOL CONFIG
  7253. +#
  7254. +# Check to make sure the PIC flag actually works.
  7255. +#
  7256. +if test -n "$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)"; then
  7257. + AC_LIBTOOL_COMPILER_OPTION([if $compiler PIC flag $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) works],
  7258. + _LT_AC_TAGVAR(lt_prog_compiler_pic_works, $1),
  7259. + [$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])], [],
  7260. + [case $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1) in
  7261. + "" | " "*) ;;
  7262. + *) _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=" $_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)" ;;
  7263. + esac],
  7264. + [_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7265. + _LT_AC_TAGVAR(lt_prog_compiler_can_build_shared, $1)=no])
  7266. +fi
  7267. +case "$host_os" in
  7268. + # For platforms which do not support PIC, -DPIC is meaningless:
  7269. + *djgpp*)
  7270. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)=
  7271. + ;;
  7272. + *)
  7273. + _LT_AC_TAGVAR(lt_prog_compiler_pic, $1)="$_LT_AC_TAGVAR(lt_prog_compiler_pic, $1)ifelse([$1],[],[ -DPIC],[ifelse([$1],[CXX],[ -DPIC],[])])"
  7274. + ;;
  7275. +esac
  7276. +])
  7277. -__EOF__
  7278. +# AC_LIBTOOL_PROG_LD_SHLIBS([TAGNAME])
  7279. +# ------------------------------------
  7280. +# See if the linker supports building shared libraries.
  7281. +AC_DEFUN([AC_LIBTOOL_PROG_LD_SHLIBS],
  7282. +[AC_MSG_CHECKING([whether the $compiler linker ($LD) supports shared libraries])
  7283. +ifelse([$1],[CXX],[
  7284. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7285. case $host_os in
  7286. - aix3*)
  7287. - cat <<\EOF >> "${ofile}T"
  7288. -
  7289. -# AIX sometimes has problems with the GCC collect2 program. For some
  7290. -# reason, if we set the COLLECT_NAMES environment variable, the problems
  7291. -# vanish in a puff of smoke.
  7292. -if test "X${COLLECT_NAMES+set}" != Xset; then
  7293. - COLLECT_NAMES=
  7294. - export COLLECT_NAMES
  7295. -fi
  7296. -EOF
  7297. + aix4* | aix5*)
  7298. + # If we're using GNU nm, then we don't want the "-C" option.
  7299. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7300. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7301. + _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'
  7302. + else
  7303. + _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'
  7304. + fi
  7305. ;;
  7306. + pw32*)
  7307. + _LT_AC_TAGVAR(export_symbols_cmds, $1)="$ltdll_cmds"
  7308. + ;;
  7309. + cygwin* | mingw*)
  7310. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  7311. + ;;
  7312. + linux*)
  7313. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  7314. + ;;
  7315. + *)
  7316. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7317. + ;;
  7318. esac
  7319. +],[
  7320. + runpath_var=
  7321. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  7322. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=no
  7323. + _LT_AC_TAGVAR(archive_cmds, $1)=
  7324. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)=
  7325. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)=
  7326. + _LT_AC_TAGVAR(old_archive_from_expsyms_cmds, $1)=
  7327. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=
  7328. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  7329. + _LT_AC_TAGVAR(thread_safe_flag_spec, $1)=
  7330. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  7331. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)=
  7332. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  7333. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  7334. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  7335. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  7336. + _LT_AC_TAGVAR(link_all_deplibs, $1)=unknown
  7337. + _LT_AC_TAGVAR(hardcode_automatic, $1)=no
  7338. + _LT_AC_TAGVAR(module_cmds, $1)=
  7339. + _LT_AC_TAGVAR(module_expsym_cmds, $1)=
  7340. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  7341. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7342. + # include_expsyms should be a list of space-separated symbols to be *always*
  7343. + # included in the symbol list
  7344. + _LT_AC_TAGVAR(include_expsyms, $1)=
  7345. + # exclude_expsyms can be an extended regexp of symbols to exclude
  7346. + # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7347. + # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7348. + # as well as any symbol that contains `d'.
  7349. + _LT_AC_TAGVAR(exclude_expsyms, $1)="_GLOBAL_OFFSET_TABLE_"
  7350. + # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7351. + # platforms (ab)use it in PIC code, but their linkers get confused if
  7352. + # the symbol is explicitly referenced. Since portable code cannot
  7353. + # rely on this symbol name, it's probably fine to never include it in
  7354. + # preloaded symbol tables.
  7355. + extract_expsyms_cmds=
  7356. case $host_os in
  7357. - cygwin* | mingw* | pw32* | os2*)
  7358. - cat <<'EOF' >> "${ofile}T"
  7359. - # This is a source program that is used to create dlls on Windows
  7360. - # Don't remove nor modify the starting and closing comments
  7361. -# /* ltdll.c starts here */
  7362. -# #define WIN32_LEAN_AND_MEAN
  7363. -# #include <windows.h>
  7364. -# #undef WIN32_LEAN_AND_MEAN
  7365. -# #include <stdio.h>
  7366. -#
  7367. -# #ifndef __CYGWIN__
  7368. -# # ifdef __CYGWIN32__
  7369. -# # define __CYGWIN__ __CYGWIN32__
  7370. -# # endif
  7371. -# #endif
  7372. -#
  7373. -# #ifdef __cplusplus
  7374. -# extern "C" {
  7375. -# #endif
  7376. -# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  7377. -# #ifdef __cplusplus
  7378. -# }
  7379. -# #endif
  7380. -#
  7381. -# #ifdef __CYGWIN__
  7382. -# #include <cygwin/cygwin_dll.h>
  7383. -# DECLARE_CYGWIN_DLL( DllMain );
  7384. -# #endif
  7385. -# HINSTANCE __hDllInstance_base;
  7386. -#
  7387. -# BOOL APIENTRY
  7388. -# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  7389. -# {
  7390. -# __hDllInstance_base = hInst;
  7391. -# return TRUE;
  7392. -# }
  7393. -# /* ltdll.c ends here */
  7394. - # This is a source program that is used to create import libraries
  7395. - # on Windows for dlls which lack them. Don't remove nor modify the
  7396. - # starting and closing comments
  7397. -# /* impgen.c starts here */
  7398. -# /* Copyright (C) 1999-2000 Free Software Foundation, Inc.
  7399. -#
  7400. -# This file is part of GNU libtool.
  7401. -#
  7402. -# This program is free software; you can redistribute it and/or modify
  7403. -# it under the terms of the GNU General Public License as published by
  7404. -# the Free Software Foundation; either version 2 of the License, or
  7405. -# (at your option) any later version.
  7406. -#
  7407. -# This program is distributed in the hope that it will be useful,
  7408. -# but WITHOUT ANY WARRANTY; without even the implied warranty of
  7409. -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  7410. -# GNU General Public License for more details.
  7411. -#
  7412. -# You should have received a copy of the GNU General Public License
  7413. -# along with this program; if not, write to the Free Software
  7414. -# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  7415. -# */
  7416. -#
  7417. -# #include <stdio.h> /* for printf() */
  7418. -# #include <unistd.h> /* for open(), lseek(), read() */
  7419. -# #include <fcntl.h> /* for O_RDONLY, O_BINARY */
  7420. -# #include <string.h> /* for strdup() */
  7421. -#
  7422. -# /* O_BINARY isn't required (or even defined sometimes) under Unix */
  7423. -# #ifndef O_BINARY
  7424. -# #define O_BINARY 0
  7425. -# #endif
  7426. -#
  7427. -# static unsigned int
  7428. -# pe_get16 (fd, offset)
  7429. -# int fd;
  7430. -# int offset;
  7431. -# {
  7432. -# unsigned char b[2];
  7433. -# lseek (fd, offset, SEEK_SET);
  7434. -# read (fd, b, 2);
  7435. -# return b[0] + (b[1]<<8);
  7436. -# }
  7437. -#
  7438. -# static unsigned int
  7439. -# pe_get32 (fd, offset)
  7440. -# int fd;
  7441. -# int offset;
  7442. -# {
  7443. -# unsigned char b[4];
  7444. -# lseek (fd, offset, SEEK_SET);
  7445. -# read (fd, b, 4);
  7446. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  7447. -# }
  7448. -#
  7449. -# static unsigned int
  7450. -# pe_as32 (ptr)
  7451. -# void *ptr;
  7452. -# {
  7453. -# unsigned char *b = ptr;
  7454. -# return b[0] + (b[1]<<8) + (b[2]<<16) + (b[3]<<24);
  7455. -# }
  7456. -#
  7457. -# int
  7458. -# main (argc, argv)
  7459. -# int argc;
  7460. -# char *argv[];
  7461. -# {
  7462. -# int dll;
  7463. -# unsigned long pe_header_offset, opthdr_ofs, num_entries, i;
  7464. -# unsigned long export_rva, export_size, nsections, secptr, expptr;
  7465. -# unsigned long name_rvas, nexp;
  7466. -# unsigned char *expdata, *erva;
  7467. -# char *filename, *dll_name;
  7468. -#
  7469. -# filename = argv[1];
  7470. -#
  7471. -# dll = open(filename, O_RDONLY|O_BINARY);
  7472. -# if (dll < 1)
  7473. -# return 1;
  7474. -#
  7475. -# dll_name = filename;
  7476. -#
  7477. -# for (i=0; filename[i]; i++)
  7478. -# if (filename[i] == '/' || filename[i] == '\\' || filename[i] == ':')
  7479. -# dll_name = filename + i +1;
  7480. -#
  7481. -# pe_header_offset = pe_get32 (dll, 0x3c);
  7482. -# opthdr_ofs = pe_header_offset + 4 + 20;
  7483. -# num_entries = pe_get32 (dll, opthdr_ofs + 92);
  7484. -#
  7485. -# if (num_entries < 1) /* no exports */
  7486. -# return 1;
  7487. -#
  7488. -# export_rva = pe_get32 (dll, opthdr_ofs + 96);
  7489. -# export_size = pe_get32 (dll, opthdr_ofs + 100);
  7490. -# nsections = pe_get16 (dll, pe_header_offset + 4 +2);
  7491. -# secptr = (pe_header_offset + 4 + 20 +
  7492. -# pe_get16 (dll, pe_header_offset + 4 + 16));
  7493. -#
  7494. -# expptr = 0;
  7495. -# for (i = 0; i < nsections; i++)
  7496. -# {
  7497. -# char sname[8];
  7498. -# unsigned long secptr1 = secptr + 40 * i;
  7499. -# unsigned long vaddr = pe_get32 (dll, secptr1 + 12);
  7500. -# unsigned long vsize = pe_get32 (dll, secptr1 + 16);
  7501. -# unsigned long fptr = pe_get32 (dll, secptr1 + 20);
  7502. -# lseek(dll, secptr1, SEEK_SET);
  7503. -# read(dll, sname, 8);
  7504. -# if (vaddr <= export_rva && vaddr+vsize > export_rva)
  7505. -# {
  7506. -# expptr = fptr + (export_rva - vaddr);
  7507. -# if (export_rva + export_size > vaddr + vsize)
  7508. -# export_size = vsize - (export_rva - vaddr);
  7509. -# break;
  7510. -# }
  7511. -# }
  7512. -#
  7513. -# expdata = (unsigned char*)malloc(export_size);
  7514. -# lseek (dll, expptr, SEEK_SET);
  7515. -# read (dll, expdata, export_size);
  7516. -# erva = expdata - export_rva;
  7517. -#
  7518. -# nexp = pe_as32 (expdata+24);
  7519. -# name_rvas = pe_as32 (expdata+32);
  7520. -#
  7521. -# printf ("EXPORTS\n");
  7522. -# for (i = 0; i<nexp; i++)
  7523. -# {
  7524. -# unsigned long name_rva = pe_as32 (erva+name_rvas+i*4);
  7525. -# printf ("\t%s @ %ld ;\n", erva+name_rva, 1+ i);
  7526. -# }
  7527. -#
  7528. -# return 0;
  7529. -# }
  7530. -# /* impgen.c ends here */
  7531. -
  7532. -EOF
  7533. + cygwin* | mingw* | pw32*)
  7534. + # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7535. + # When not using gcc, we currently assume that we are using
  7536. + # Microsoft Visual C++.
  7537. + if test "$GCC" != yes; then
  7538. + with_gnu_ld=no
  7539. + fi
  7540. + ;;
  7541. + openbsd*)
  7542. + with_gnu_ld=no
  7543. ;;
  7544. esac
  7545. - # We use sed instead of cat because bash on DJGPP gets confused if
  7546. - # if finds mixed CR/LF and LF-only lines. Since sed operates in
  7547. - # text mode, it properly converts lines to CR/LF. This bash problem
  7548. - # is reportedly fixed, but why not run on old versions too?
  7549. - sed '$q' "$ltmain" >> "${ofile}T" || (rm -f "${ofile}T"; exit 1)
  7550. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  7551. + if test "$with_gnu_ld" = yes; then
  7552. + # If archive_cmds runs LD, not CC, wlarc should be empty
  7553. + wlarc='${wl}'
  7554. - mv -f "${ofile}T" "$ofile" || \
  7555. - (rm -f "$ofile" && cp "${ofile}T" "$ofile" && rm -f "${ofile}T")
  7556. - chmod +x "$ofile"
  7557. -fi
  7558. + # See if GNU ld supports shared libraries.
  7559. + case $host_os in
  7560. + aix3* | aix4* | aix5*)
  7561. + # On AIX/PPC, the GNU linker is very broken
  7562. + if test "$host_cpu" != ia64; then
  7563. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7564. + cat <<EOF 1>&2
  7565. -])# _LT_AC_LTCONFIG_HACK
  7566. +*** Warning: the GNU linker, at least up to release 2.9.1, is reported
  7567. +*** to be unable to reliably create shared libraries on AIX.
  7568. +*** Therefore, libtool is disabling shared libraries support. If you
  7569. +*** really care for shared libraries, you may want to modify your PATH
  7570. +*** so that a non-GNU linker is found, and then restart.
  7571. -# AC_LIBTOOL_DLOPEN - enable checks for dlopen support
  7572. -AC_DEFUN([AC_LIBTOOL_DLOPEN], [AC_BEFORE([$0],[AC_LIBTOOL_SETUP])])
  7573. +EOF
  7574. + fi
  7575. + ;;
  7576. -# AC_LIBTOOL_WIN32_DLL - declare package support for building win32 dll's
  7577. -AC_DEFUN([AC_LIBTOOL_WIN32_DLL], [AC_BEFORE([$0], [AC_LIBTOOL_SETUP])])
  7578. + amigaos*)
  7579. + _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)'
  7580. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7581. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7582. +
  7583. + # Samuel A. Falvo II <[email protected]> reports
  7584. + # that the semantics of dynamic libraries on AmigaOS, at least up
  7585. + # to version 4, is to share data among multiple programs linked
  7586. + # with the same dynamic library. Since this doesn't match the
  7587. + # behavior of shared libraries on other platforms, we can't use
  7588. + # them.
  7589. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7590. + ;;
  7591. -# AC_ENABLE_SHARED - implement the --enable-shared flag
  7592. -# Usage: AC_ENABLE_SHARED[(DEFAULT)]
  7593. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  7594. -# `yes'.
  7595. -AC_DEFUN([AC_ENABLE_SHARED],
  7596. -[define([AC_ENABLE_SHARED_DEFAULT], ifelse($1, no, no, yes))dnl
  7597. -AC_ARG_ENABLE(shared,
  7598. -changequote(<<, >>)dnl
  7599. -<< --enable-shared[=PKGS] build shared libraries [default=>>AC_ENABLE_SHARED_DEFAULT],
  7600. -changequote([, ])dnl
  7601. -[p=${PACKAGE-default}
  7602. -case $enableval in
  7603. -yes) enable_shared=yes ;;
  7604. -no) enable_shared=no ;;
  7605. -*)
  7606. - enable_shared=no
  7607. - # Look at the argument we got. We use all the common list separators.
  7608. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  7609. - for pkg in $enableval; do
  7610. - if test "X$pkg" = "X$p"; then
  7611. - enable_shared=yes
  7612. - fi
  7613. - done
  7614. - IFS="$ac_save_ifs"
  7615. - ;;
  7616. -esac],
  7617. -enable_shared=AC_ENABLE_SHARED_DEFAULT)dnl
  7618. -])
  7619. + beos*)
  7620. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7621. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7622. + # Joseph Beckenbach <[email protected]> says some releases of gcc
  7623. + # support --undefined. This deserves some investigation. FIXME
  7624. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7625. + else
  7626. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7627. + fi
  7628. + ;;
  7629. -# AC_DISABLE_SHARED - set the default shared flag to --disable-shared
  7630. -AC_DEFUN([AC_DISABLE_SHARED],
  7631. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7632. -AC_ENABLE_SHARED(no)])
  7633. + cygwin* | mingw* | pw32*)
  7634. + # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1) is actually meaningless,
  7635. + # as there is no search path for DLLs.
  7636. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7637. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7638. + _LT_AC_TAGVAR(always_export_symbols, $1)=no
  7639. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  7640. + _LT_AC_TAGVAR(export_symbols_cmds, $1)='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[[BCDGS]] /s/.* \([[^ ]]*\)/\1 DATA/'\'' | $SED -e '\''/^[[AITW]] /s/.* //'\'' | sort | uniq > $export_symbols'
  7641. +
  7642. + if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then
  7643. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7644. + # If the export-symbols file already is a .def file (1st line
  7645. + # is EXPORTS), use it as is; otherwise, prepend...
  7646. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7647. + cp $export_symbols $output_objdir/$soname.def;
  7648. + else
  7649. + echo EXPORTS > $output_objdir/$soname.def;
  7650. + cat $export_symbols >> $output_objdir/$soname.def;
  7651. + fi~
  7652. + $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib'
  7653. + else
  7654. + ld_shlibs=no
  7655. + fi
  7656. + ;;
  7657. -# AC_ENABLE_STATIC - implement the --enable-static flag
  7658. -# Usage: AC_ENABLE_STATIC[(DEFAULT)]
  7659. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  7660. -# `yes'.
  7661. -AC_DEFUN([AC_ENABLE_STATIC],
  7662. -[define([AC_ENABLE_STATIC_DEFAULT], ifelse($1, no, no, yes))dnl
  7663. -AC_ARG_ENABLE(static,
  7664. -changequote(<<, >>)dnl
  7665. -<< --enable-static[=PKGS] build static libraries [default=>>AC_ENABLE_STATIC_DEFAULT],
  7666. -changequote([, ])dnl
  7667. -[p=${PACKAGE-default}
  7668. -case $enableval in
  7669. -yes) enable_static=yes ;;
  7670. -no) enable_static=no ;;
  7671. -*)
  7672. - enable_static=no
  7673. - # Look at the argument we got. We use all the common list separators.
  7674. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  7675. - for pkg in $enableval; do
  7676. - if test "X$pkg" = "X$p"; then
  7677. - enable_static=yes
  7678. - fi
  7679. - done
  7680. - IFS="$ac_save_ifs"
  7681. - ;;
  7682. -esac],
  7683. -enable_static=AC_ENABLE_STATIC_DEFAULT)dnl
  7684. -])
  7685. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  7686. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  7687. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7688. + wlarc=
  7689. + else
  7690. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7691. + _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'
  7692. + fi
  7693. + ;;
  7694. -# AC_DISABLE_STATIC - set the default static flag to --disable-static
  7695. -AC_DEFUN([AC_DISABLE_STATIC],
  7696. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7697. -AC_ENABLE_STATIC(no)])
  7698. + solaris* | sysv5*)
  7699. + if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then
  7700. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7701. + cat <<EOF 1>&2
  7702. +
  7703. +*** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7704. +*** create shared libraries on Solaris systems. Therefore, libtool
  7705. +*** is disabling shared libraries support. We urge you to upgrade GNU
  7706. +*** binutils to release 2.9.1 or newer. Another option is to modify
  7707. +*** your PATH or compiler configuration so that the native linker is
  7708. +*** used, and then restart.
  7709. +EOF
  7710. + elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7711. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7712. + _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'
  7713. + else
  7714. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7715. + fi
  7716. + ;;
  7717. -# AC_ENABLE_FAST_INSTALL - implement the --enable-fast-install flag
  7718. -# Usage: AC_ENABLE_FAST_INSTALL[(DEFAULT)]
  7719. -# Where DEFAULT is either `yes' or `no'. If omitted, it defaults to
  7720. -# `yes'.
  7721. -AC_DEFUN([AC_ENABLE_FAST_INSTALL],
  7722. -[define([AC_ENABLE_FAST_INSTALL_DEFAULT], ifelse($1, no, no, yes))dnl
  7723. -AC_ARG_ENABLE(fast-install,
  7724. -changequote(<<, >>)dnl
  7725. -<< --enable-fast-install[=PKGS] optimize for fast installation [default=>>AC_ENABLE_FAST_INSTALL_DEFAULT],
  7726. -changequote([, ])dnl
  7727. -[p=${PACKAGE-default}
  7728. -case $enableval in
  7729. -yes) enable_fast_install=yes ;;
  7730. -no) enable_fast_install=no ;;
  7731. -*)
  7732. - enable_fast_install=no
  7733. - # Look at the argument we got. We use all the common list separators.
  7734. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:,"
  7735. - for pkg in $enableval; do
  7736. - if test "X$pkg" = "X$p"; then
  7737. - enable_fast_install=yes
  7738. + sunos4*)
  7739. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7740. + wlarc=
  7741. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7742. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  7743. + ;;
  7744. +
  7745. + linux*)
  7746. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7747. + tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7748. + _LT_AC_TAGVAR(archive_cmds, $1)="$tmp_archive_cmds"
  7749. + supports_anon_versioning=no
  7750. + case `$LD -v 2>/dev/null` in
  7751. + *\ [01].* | *\ 2.[[0-9]].* | *\ 2.10.*) ;; # catch versions < 2.11
  7752. + *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7753. + *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7754. + *\ 2.11.*) ;; # other 2.11 versions
  7755. + *) supports_anon_versioning=yes ;;
  7756. + esac
  7757. + if test $supports_anon_versioning = yes; then
  7758. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $output_objdir/$libname.ver~
  7759. +cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7760. +$echo "local: *; };" >> $output_objdir/$libname.ver~
  7761. + $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7762. + else
  7763. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)="$tmp_archive_cmds"
  7764. + fi
  7765. + _LT_AC_TAGVAR(link_all_deplibs, $1)=no
  7766. + else
  7767. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7768. fi
  7769. - done
  7770. - IFS="$ac_save_ifs"
  7771. - ;;
  7772. -esac],
  7773. -enable_fast_install=AC_ENABLE_FAST_INSTALL_DEFAULT)dnl
  7774. -])
  7775. + ;;
  7776. -# AC_DISABLE_FAST_INSTALL - set the default to --disable-fast-install
  7777. -AC_DEFUN([AC_DISABLE_FAST_INSTALL],
  7778. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7779. -AC_ENABLE_FAST_INSTALL(no)])
  7780. + *)
  7781. + if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then
  7782. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7783. + _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'
  7784. + else
  7785. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  7786. + fi
  7787. + ;;
  7788. + esac
  7789. +
  7790. + if test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = yes; then
  7791. + runpath_var=LD_RUN_PATH
  7792. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}--rpath ${wl}$libdir'
  7793. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}--export-dynamic'
  7794. + # ancient GNU ld didn't support --whole-archive et. al.
  7795. + if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then
  7796. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7797. + else
  7798. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=
  7799. + fi
  7800. + fi
  7801. + else
  7802. + # PORTME fill in a description of your system's linker (not GNU ld)
  7803. + case $host_os in
  7804. + aix3*)
  7805. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  7806. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  7807. + _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'
  7808. + # Note: this linker hardcodes the directories in LIBPATH if there
  7809. + # are no directories specified by -L.
  7810. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7811. + if test "$GCC" = yes && test -z "$link_static_flag"; then
  7812. + # Neither direct hardcoding nor static linking is supported with a
  7813. + # broken collect2.
  7814. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  7815. + fi
  7816. + ;;
  7817. +
  7818. + aix4* | aix5*)
  7819. + if test "$host_cpu" = ia64; then
  7820. + # On IA64, the linker does run time linking by default, so we don't
  7821. + # have to do anything special.
  7822. + aix_use_runtimelinking=no
  7823. + exp_sym_flag='-Bexport'
  7824. + no_entry_flag=""
  7825. + else
  7826. + # If we're using GNU nm, then we don't want the "-C" option.
  7827. + # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7828. + if $NM -V 2>&1 | grep 'GNU' > /dev/null; then
  7829. + _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'
  7830. + else
  7831. + _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'
  7832. + fi
  7833. + aix_use_runtimelinking=no
  7834. -# AC_LIBTOOL_PICMODE - implement the --with-pic flag
  7835. -# Usage: AC_LIBTOOL_PICMODE[(MODE)]
  7836. -# Where MODE is either `yes' or `no'. If omitted, it defaults to
  7837. -# `both'.
  7838. -AC_DEFUN([AC_LIBTOOL_PICMODE],
  7839. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  7840. -pic_mode=ifelse($#,1,$1,default)])
  7841. + # Test if we are trying to use run time linking or normal
  7842. + # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7843. + # need to do runtime linking.
  7844. + case $host_os in aix4.[[23]]|aix4.[[23]].*|aix5*)
  7845. + for ld_flag in $LDFLAGS; do
  7846. + if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7847. + aix_use_runtimelinking=yes
  7848. + break
  7849. + fi
  7850. + done
  7851. + esac
  7852. + exp_sym_flag='-bexport'
  7853. + no_entry_flag='-bnoentry'
  7854. + fi
  7855. -# AC_PATH_TOOL_PREFIX - find a file program which can recognise shared library
  7856. -AC_DEFUN([AC_PATH_TOOL_PREFIX],
  7857. -[AC_MSG_CHECKING([for $1])
  7858. -AC_CACHE_VAL(lt_cv_path_MAGIC_CMD,
  7859. -[case $MAGIC_CMD in
  7860. - /*)
  7861. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7862. - ;;
  7863. - ?:/*)
  7864. - lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a dos path.
  7865. - ;;
  7866. - *)
  7867. - ac_save_MAGIC_CMD="$MAGIC_CMD"
  7868. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=":"
  7869. -dnl $ac_dummy forces splitting on constant user-supplied paths.
  7870. -dnl POSIX.2 word splitting is done only on the output of word expansions,
  7871. -dnl not every word. This closes a longstanding sh security hole.
  7872. - ac_dummy="ifelse([$2], , $PATH, [$2])"
  7873. - for ac_dir in $ac_dummy; do
  7874. - test -z "$ac_dir" && ac_dir=.
  7875. - if test -f $ac_dir/$1; then
  7876. - lt_cv_path_MAGIC_CMD="$ac_dir/$1"
  7877. - if test -n "$file_magic_test_file"; then
  7878. - case $deplibs_check_method in
  7879. - "file_magic "*)
  7880. - file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`"
  7881. - MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7882. - if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7883. - egrep "$file_magic_regex" > /dev/null; then
  7884. - :
  7885. + # When large executables or shared objects are built, AIX ld can
  7886. + # have problems creating the table of contents. If linking a library
  7887. + # or program results in "error TOC overflow" add -mminimal-toc to
  7888. + # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7889. + # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7890. +
  7891. + _LT_AC_TAGVAR(archive_cmds, $1)=''
  7892. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7893. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=':'
  7894. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  7895. +
  7896. + if test "$GCC" = yes; then
  7897. + case $host_os in aix4.[012]|aix4.[012].*)
  7898. + # We only want to do this on AIX 4.2 and lower, the check
  7899. + # below for broken collect2 doesn't work under 4.3+
  7900. + collect2name=`${CC} -print-prog-name=collect2`
  7901. + if test -f "$collect2name" && \
  7902. + strings "$collect2name" | grep resolve_lib_name >/dev/null
  7903. + then
  7904. + # We have reworked collect2
  7905. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  7906. else
  7907. - cat <<EOF 1>&2
  7908. -
  7909. -*** Warning: the command libtool uses to detect shared libraries,
  7910. -*** $file_magic_cmd, produces output that libtool cannot recognize.
  7911. -*** The result is that libtool may fail to recognize shared libraries
  7912. -*** as such. This will affect the creation of libtool libraries that
  7913. -*** depend on shared libraries, but programs linked with such libtool
  7914. -*** libraries will work regardless of this problem. Nevertheless, you
  7915. -*** may want to report the problem to your system manager and/or to
  7916. -*** [email protected]
  7917. -
  7918. -EOF
  7919. - fi ;;
  7920. + # We have old collect2
  7921. + _LT_AC_TAGVAR(hardcode_direct, $1)=unsupported
  7922. + # It fails to find uninstalled libraries when the uninstalled
  7923. + # path is not listed in the libpath. Setting hardcode_minus_L
  7924. + # to unsupported forces relinking
  7925. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  7926. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  7927. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=
  7928. + fi
  7929. esac
  7930. + shared_flag='-shared'
  7931. + else
  7932. + # not using gcc
  7933. + if test "$host_cpu" = ia64; then
  7934. + # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7935. + # chokes on -Wl,-G. The following line is correct:
  7936. + shared_flag='-G'
  7937. + else
  7938. + if test "$aix_use_runtimelinking" = yes; then
  7939. + shared_flag='${wl}-G'
  7940. + else
  7941. + shared_flag='${wl}-bM:SRE'
  7942. + fi
  7943. + fi
  7944. fi
  7945. - break
  7946. - fi
  7947. - done
  7948. - IFS="$ac_save_ifs"
  7949. - MAGIC_CMD="$ac_save_MAGIC_CMD"
  7950. - ;;
  7951. -esac])
  7952. -MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7953. -if test -n "$MAGIC_CMD"; then
  7954. - AC_MSG_RESULT($MAGIC_CMD)
  7955. -else
  7956. - AC_MSG_RESULT(no)
  7957. -fi
  7958. -])
  7959. + # It seems that -bexpall does not export symbols beginning with
  7960. + # underscore (_), so it is better to generate a list of symbols to export.
  7961. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  7962. + if test "$aix_use_runtimelinking" = yes; then
  7963. + # Warning - without using the other runtime loading flags (-brtl),
  7964. + # -berok will link without error, but may produce a broken library.
  7965. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-berok'
  7966. + # Determine the default libpath from the value encoded in an empty executable.
  7967. + _LT_AC_SYS_LIBPATH_AIX
  7968. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7969. + _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"
  7970. + else
  7971. + if test "$host_cpu" = ia64; then
  7972. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-R $libdir:/usr/lib:/lib'
  7973. + _LT_AC_TAGVAR(allow_undefined_flag, $1)="-z nodefs"
  7974. + _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"
  7975. + else
  7976. + # Determine the default libpath from the value encoded in an empty executable.
  7977. + _LT_AC_SYS_LIBPATH_AIX
  7978. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-blibpath:$libdir:'"$aix_libpath"
  7979. + # Warning - without using the other run time loading flags,
  7980. + # -berok will link without error, but may produce a broken library.
  7981. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' ${wl}-bernotok'
  7982. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-berok'
  7983. + # -bexpall does not export symbols beginning with underscore (_)
  7984. + _LT_AC_TAGVAR(always_export_symbols, $1)=yes
  7985. + # Exported symbols can be pulled into shared objects from archives
  7986. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)=' '
  7987. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  7988. + # This is similar to how AIX traditionally builds it's shared libraries.
  7989. + _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'
  7990. + fi
  7991. + fi
  7992. + ;;
  7993. -# AC_PATH_MAGIC - find a file program which can recognise a shared library
  7994. -AC_DEFUN([AC_PATH_MAGIC],
  7995. -[AC_REQUIRE([AC_CHECK_TOOL_PREFIX])dnl
  7996. -AC_PATH_TOOL_PREFIX(${ac_tool_prefix}file, /usr/bin:$PATH)
  7997. -if test -z "$lt_cv_path_MAGIC_CMD"; then
  7998. - if test -n "$ac_tool_prefix"; then
  7999. - AC_PATH_TOOL_PREFIX(file, /usr/bin:$PATH)
  8000. - else
  8001. - MAGIC_CMD=:
  8002. - fi
  8003. -fi
  8004. -])
  8005. + amigaos*)
  8006. + _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)'
  8007. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8008. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8009. + # see comment about different semantics on the GNU ld section
  8010. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  8011. + ;;
  8012. + bsdi4*)
  8013. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)=-rdynamic
  8014. + ;;
  8015. -# AC_PROG_LD - find the path to the GNU or non-GNU linker
  8016. -AC_DEFUN([AC_PROG_LD],
  8017. -[AC_ARG_WITH(gnu-ld,
  8018. -[ --with-gnu-ld assume the C compiler uses GNU ld [default=no]],
  8019. -test "$withval" = no || with_gnu_ld=yes, with_gnu_ld=no)
  8020. -AC_REQUIRE([AC_PROG_CC])dnl
  8021. -AC_REQUIRE([AC_CANONICAL_HOST])dnl
  8022. -AC_REQUIRE([AC_CANONICAL_BUILD])dnl
  8023. -AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  8024. -ac_prog=ld
  8025. -if test "$GCC" = yes; then
  8026. - # Check if gcc -print-prog-name=ld gives a path.
  8027. - AC_MSG_CHECKING([for ld used by GCC])
  8028. - case $host in
  8029. - *-*-mingw*)
  8030. - # gcc leaves a trailing carriage return which upsets mingw
  8031. - ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  8032. - *)
  8033. - ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  8034. - esac
  8035. - case $ac_prog in
  8036. - # Accept absolute paths.
  8037. - [[\\/]]* | [[A-Za-z]]:[[\\/]]*)
  8038. - re_direlt='/[[^/]][[^/]]*/\.\./'
  8039. - # Canonicalize the path of ld
  8040. - ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'`
  8041. - while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do
  8042. - ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"`
  8043. - done
  8044. - test -z "$LD" && LD="$ac_prog"
  8045. + cygwin* | mingw* | pw32*)
  8046. + # When not using gcc, we currently assume that we are using
  8047. + # Microsoft Visual C++.
  8048. + # hardcode_libdir_flag_spec is actually meaningless, as there is
  8049. + # no search path for DLLs.
  8050. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=' '
  8051. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  8052. + # Tell ltmain to make .lib files, not .a files.
  8053. + libext=lib
  8054. + # Tell ltmain to make .dll files, not .so files.
  8055. + shrext_cmds=".dll"
  8056. + # FIXME: Setting linknames here is a bad hack.
  8057. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames='
  8058. + # The linker will automatically build a .lib file if we build a DLL.
  8059. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='true'
  8060. + # FIXME: Should let the user specify the lib program.
  8061. + _LT_AC_TAGVAR(old_archive_cmds, $1)='lib /OUT:$oldlib$oldobjs$old_deplibs'
  8062. + fix_srcfile_path='`cygpath -w "$srcfile"`'
  8063. + _LT_AC_TAGVAR(enable_shared_with_static_runtimes, $1)=yes
  8064. ;;
  8065. - "")
  8066. - # If it fails, then pretend we aren't using GCC.
  8067. - ac_prog=ld
  8068. - ;;
  8069. - *)
  8070. - # If it is relative, then search for the first ld in PATH.
  8071. - with_gnu_ld=unknown
  8072. - ;;
  8073. - esac
  8074. -elif test "$with_gnu_ld" = yes; then
  8075. - AC_MSG_CHECKING([for GNU ld])
  8076. -else
  8077. - AC_MSG_CHECKING([for non-GNU ld])
  8078. -fi
  8079. -AC_CACHE_VAL(lt_cv_path_LD,
  8080. -[if test -z "$LD"; then
  8081. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8082. - for ac_dir in $PATH; do
  8083. - test -z "$ac_dir" && ac_dir=.
  8084. - if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  8085. - lt_cv_path_LD="$ac_dir/$ac_prog"
  8086. - # Check to see if the program is GNU ld. I'd rather use --version,
  8087. - # but apparently some GNU ld's only accept -v.
  8088. - # Break only if it was the GNU/non-GNU ld that we prefer.
  8089. - if "$lt_cv_path_LD" -v 2>&1 < /dev/null | egrep '(GNU|with BFD)' > /dev/null; then
  8090. - test "$with_gnu_ld" != no && break
  8091. +
  8092. + darwin* | rhapsody*)
  8093. + if test "$GXX" = yes ; then
  8094. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  8095. + case "$host_os" in
  8096. + rhapsody* | darwin1.[[012]])
  8097. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined suppress'
  8098. + ;;
  8099. + *) # Darwin 1.3 on
  8100. + if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then
  8101. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  8102. else
  8103. - test "$with_gnu_ld" != yes && break
  8104. + case ${MACOSX_DEPLOYMENT_TARGET} in
  8105. + 10.[[012]])
  8106. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-flat_namespace -undefined suppress'
  8107. + ;;
  8108. + 10.*)
  8109. + _LT_AC_TAGVAR(allow_undefined_flag, $1)='-undefined dynamic_lookup'
  8110. + ;;
  8111. + esac
  8112. fi
  8113. + ;;
  8114. + esac
  8115. + lt_int_apple_cc_single_mod=no
  8116. + output_verbose_link_cmd='echo'
  8117. + if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then
  8118. + lt_int_apple_cc_single_mod=yes
  8119. + fi
  8120. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8121. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8122. + else
  8123. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring'
  8124. + fi
  8125. + _LT_AC_TAGVAR(module_cmds, $1)='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags'
  8126. + # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's
  8127. + if test "X$lt_int_apple_cc_single_mod" = Xyes ; then
  8128. + _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}'
  8129. + else
  8130. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}'
  8131. + fi
  8132. + _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}'
  8133. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  8134. + _LT_AC_TAGVAR(hardcode_automatic, $1)=yes
  8135. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=unsupported
  8136. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-all_load $convenience'
  8137. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  8138. + else
  8139. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  8140. fi
  8141. - done
  8142. - IFS="$ac_save_ifs"
  8143. -else
  8144. - lt_cv_path_LD="$LD" # Let the user override the test with a path.
  8145. -fi])
  8146. -LD="$lt_cv_path_LD"
  8147. -if test -n "$LD"; then
  8148. - AC_MSG_RESULT($LD)
  8149. -else
  8150. - AC_MSG_RESULT(no)
  8151. -fi
  8152. -test -z "$LD" && AC_MSG_ERROR([no acceptable ld found in \$PATH])
  8153. -AC_PROG_LD_GNU
  8154. -])
  8155. + ;;
  8156. -# AC_PROG_LD_GNU -
  8157. -AC_DEFUN([AC_PROG_LD_GNU],
  8158. -[AC_CACHE_CHECK([if the linker ($LD) is GNU ld], lt_cv_prog_gnu_ld,
  8159. -[# I'd rather use --version here, but apparently some GNU ld's only accept -v.
  8160. -if $LD -v 2>&1 </dev/null | egrep '(GNU|with BFD)' 1>&5; then
  8161. - lt_cv_prog_gnu_ld=yes
  8162. -else
  8163. - lt_cv_prog_gnu_ld=no
  8164. -fi])
  8165. -with_gnu_ld=$lt_cv_prog_gnu_ld
  8166. -])
  8167. + dgux*)
  8168. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8169. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8170. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8171. + ;;
  8172. -# AC_PROG_LD_RELOAD_FLAG - find reload flag for linker
  8173. -# -- PORTME Some linkers may need a different reload flag.
  8174. -AC_DEFUN([AC_PROG_LD_RELOAD_FLAG],
  8175. -[AC_CACHE_CHECK([for $LD option to reload object files], lt_cv_ld_reload_flag,
  8176. -[lt_cv_ld_reload_flag='-r'])
  8177. -reload_flag=$lt_cv_ld_reload_flag
  8178. -test -n "$reload_flag" && reload_flag=" $reload_flag"
  8179. -])
  8180. + freebsd1*)
  8181. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  8182. + ;;
  8183. -# AC_DEPLIBS_CHECK_METHOD - how to check for library dependencies
  8184. -# -- PORTME fill in with the dynamic library characteristics
  8185. -AC_DEFUN([AC_DEPLIBS_CHECK_METHOD],
  8186. -[AC_CACHE_CHECK([how to recognise dependent libraries],
  8187. -lt_cv_deplibs_check_method,
  8188. -[lt_cv_file_magic_cmd='$MAGIC_CMD'
  8189. -lt_cv_file_magic_test_file=
  8190. -lt_cv_deplibs_check_method='unknown'
  8191. -# Need to set the preceding variable on all platforms that support
  8192. -# interlibrary dependencies.
  8193. -# 'none' -- dependencies not supported.
  8194. -# `unknown' -- same as none, but documents that we really don't know.
  8195. -# 'pass_all' -- all dependencies passed with no checks.
  8196. -# 'test_compile' -- check by making test program.
  8197. -# 'file_magic [[regex]]' -- check by looking for files in library path
  8198. -# which responds to the $file_magic_cmd with a given egrep regex.
  8199. -# If you have `file' or equivalent on your system and you're not sure
  8200. -# whether `pass_all' will *always* work, you probably want this one.
  8201. + # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8202. + # support. Future versions do this automatically, but an explicit c++rt0.o
  8203. + # does not break anything, and helps significantly (at the cost of a little
  8204. + # extra space).
  8205. + freebsd2.2*)
  8206. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8207. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8208. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8209. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8210. + ;;
  8211. -case $host_os in
  8212. -aix4* | aix5*)
  8213. - lt_cv_deplibs_check_method=pass_all
  8214. - ;;
  8215. + # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8216. + freebsd2*)
  8217. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8218. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8219. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8220. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8221. + ;;
  8222. -beos*)
  8223. - lt_cv_deplibs_check_method=pass_all
  8224. - ;;
  8225. + # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8226. + freebsd* | kfreebsd*-gnu)
  8227. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  8228. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8229. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8230. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8231. + ;;
  8232. -bsdi4*)
  8233. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (shared object|dynamic lib)'
  8234. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  8235. - lt_cv_file_magic_test_file=/shlib/libc.so
  8236. - ;;
  8237. + hpux9*)
  8238. + if test "$GCC" = yes; then
  8239. + _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'
  8240. + else
  8241. + _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'
  8242. + fi
  8243. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8244. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8245. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8246. +
  8247. + # hardcode_minus_L: Not really in the search PATH,
  8248. + # but as the default location of the library.
  8249. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8250. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8251. + ;;
  8252. -cygwin* | mingw* | pw32*)
  8253. - lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  8254. - lt_cv_file_magic_cmd='$OBJDUMP -f'
  8255. - ;;
  8256. + hpux10* | hpux11*)
  8257. + if test "$GCC" = yes -a "$with_gnu_ld" = no; then
  8258. + case "$host_cpu" in
  8259. + hppa*64*|ia64*)
  8260. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8261. + ;;
  8262. + *)
  8263. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8264. + ;;
  8265. + esac
  8266. + else
  8267. + case "$host_cpu" in
  8268. + hppa*64*|ia64*)
  8269. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags'
  8270. + ;;
  8271. + *)
  8272. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8273. + ;;
  8274. + esac
  8275. + fi
  8276. + if test "$with_gnu_ld" = no; then
  8277. + case "$host_cpu" in
  8278. + hppa*64*)
  8279. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8280. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='+b $libdir'
  8281. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8282. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  8283. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8284. + ;;
  8285. + ia64*)
  8286. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8287. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  8288. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8289. +
  8290. + # hardcode_minus_L: Not really in the search PATH,
  8291. + # but as the default location of the library.
  8292. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8293. + ;;
  8294. + *)
  8295. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}+b ${wl}$libdir'
  8296. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8297. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8298. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8299. +
  8300. + # hardcode_minus_L: Not really in the search PATH,
  8301. + # but as the default location of the library.
  8302. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8303. + ;;
  8304. + esac
  8305. + fi
  8306. + ;;
  8307. -darwin* | rhapsody*)
  8308. - lt_cv_deplibs_check_method='file_magic Mach-O dynamically linked shared library'
  8309. - lt_cv_file_magic_cmd='/usr/bin/file -L'
  8310. - case "$host_os" in
  8311. - rhapsody* | darwin1.[[012]])
  8312. - lt_cv_file_magic_test_file=`echo /System/Library/Frameworks/System.framework/Versions/*/System | head -1`
  8313. - ;;
  8314. - *) # Darwin 1.3 on
  8315. - lt_cv_file_magic_test_file='/usr/lib/libSystem.dylib'
  8316. - ;;
  8317. - esac
  8318. - ;;
  8319. + irix5* | irix6* | nonstopux*)
  8320. + if test "$GCC" = yes; then
  8321. + _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'
  8322. + else
  8323. + _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'
  8324. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec_ld, $1)='-rpath $libdir'
  8325. + fi
  8326. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8327. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8328. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  8329. + ;;
  8330. -freebsd*)
  8331. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  8332. - case $host_cpu in
  8333. - i*86 )
  8334. - # Not sure whether the presence of OpenBSD here was a mistake.
  8335. - # Let's accept both of them until this is cleared up.
  8336. - lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[[3-9]]86 (compact )?demand paged shared library'
  8337. - lt_cv_file_magic_cmd=/usr/bin/file
  8338. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  8339. + netbsd* | netbsdelf*-gnu | knetbsd*-gnu)
  8340. + if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then
  8341. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8342. + else
  8343. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8344. + fi
  8345. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8346. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8347. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8348. + ;;
  8349. +
  8350. + newsos6)
  8351. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8352. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8353. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8354. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8355. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8356. + ;;
  8357. +
  8358. + openbsd*)
  8359. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8360. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8361. + if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8362. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8363. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8364. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-E'
  8365. + else
  8366. + case $host_os in
  8367. + openbsd[[01]].* | openbsd2.[[0-7]] | openbsd2.[[0-7]].*)
  8368. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8369. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8370. + ;;
  8371. + *)
  8372. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8373. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath,$libdir'
  8374. + ;;
  8375. + esac
  8376. + fi
  8377. + ;;
  8378. +
  8379. + os2*)
  8380. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8381. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8382. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=unsupported
  8383. + _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'
  8384. + _LT_AC_TAGVAR(old_archive_From_new_cmds, $1)='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8385. + ;;
  8386. +
  8387. + osf3*)
  8388. + if test "$GCC" = yes; then
  8389. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8390. + _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'
  8391. + else
  8392. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8393. + _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'
  8394. + fi
  8395. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8396. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8397. ;;
  8398. - esac
  8399. - else
  8400. - lt_cv_deplibs_check_method=pass_all
  8401. - fi
  8402. - ;;
  8403. -gnu*)
  8404. - lt_cv_deplibs_check_method=pass_all
  8405. - ;;
  8406. + osf4* | osf5*) # as osf3* with the addition of -msym flag
  8407. + if test "$GCC" = yes; then
  8408. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' ${wl}-expect_unresolved ${wl}\*'
  8409. + _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'
  8410. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='${wl}-rpath ${wl}$libdir'
  8411. + else
  8412. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=' -expect_unresolved \*'
  8413. + _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'
  8414. + _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~
  8415. + $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp'
  8416. -hpux10.20*|hpux11*)
  8417. - lt_cv_deplibs_check_method='file_magic (s[[0-9]][[0-9]][[0-9]]|PA-RISC[[0-9]].[[0-9]]) shared library'
  8418. - lt_cv_file_magic_cmd=/usr/bin/file
  8419. - lt_cv_file_magic_test_file=/usr/lib/libc.sl
  8420. - ;;
  8421. + # Both c and cxx compiler support -rpath directly
  8422. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-rpath $libdir'
  8423. + fi
  8424. + _LT_AC_TAGVAR(hardcode_libdir_separator, $1)=:
  8425. + ;;
  8426. -irix5* | irix6* | nonstopux*)
  8427. - case $host_os in
  8428. - irix5* | nonstopux*)
  8429. - # this will be overridden with pass_all, but let us keep it just in case
  8430. - lt_cv_deplibs_check_method="file_magic ELF 32-bit MSB dynamic lib MIPS - version 1"
  8431. - ;;
  8432. - *)
  8433. - case $LD in
  8434. - *-32|*"-32 ") libmagic=32-bit;;
  8435. - *-n32|*"-n32 ") libmagic=N32;;
  8436. - *-64|*"-64 ") libmagic=64-bit;;
  8437. - *) libmagic=never-match;;
  8438. - esac
  8439. - # this will be overridden with pass_all, but let us keep it just in case
  8440. - lt_cv_deplibs_check_method="file_magic ELF ${libmagic} MSB mips-[[1234]] dynamic lib MIPS - version 1"
  8441. - ;;
  8442. - esac
  8443. - lt_cv_file_magic_test_file=`echo /lib${libsuff}/libc.so*`
  8444. - lt_cv_deplibs_check_method=pass_all
  8445. - ;;
  8446. + sco3.2v5*)
  8447. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8448. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8449. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='${wl}-Bexport'
  8450. + runpath_var=LD_RUN_PATH
  8451. + hardcode_runpath_var=yes
  8452. + ;;
  8453. -# This must be Linux ELF.
  8454. -linux-gnu*)
  8455. - case $host_cpu in
  8456. - alpha* | hppa* | i*86 | mips | mipsel | powerpc* | sparc* | ia64* | arm* | m68k)
  8457. - lt_cv_deplibs_check_method=pass_all ;;
  8458. - *)
  8459. - # glibc up to 2.1.1 does not perform some relocations on ARM
  8460. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )' ;;
  8461. - esac
  8462. - lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so`
  8463. - ;;
  8464. + solaris*)
  8465. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  8466. + if test "$GCC" = yes; then
  8467. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8468. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8469. + $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp'
  8470. + else
  8471. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8472. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8473. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8474. + fi
  8475. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-R$libdir'
  8476. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8477. + case $host_os in
  8478. + solaris2.[[0-5]] | solaris2.[[0-5]].*) ;;
  8479. + *) # Supported since Solaris 2.6 (maybe 2.5.1?)
  8480. + _LT_AC_TAGVAR(whole_archive_flag_spec, $1)='-z allextract$convenience -z defaultextract' ;;
  8481. + esac
  8482. + _LT_AC_TAGVAR(link_all_deplibs, $1)=yes
  8483. + ;;
  8484. -netbsd*)
  8485. - if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then
  8486. - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so\.[[0-9]]+\.[[0-9]]+$'
  8487. - else
  8488. - lt_cv_deplibs_check_method='match_pattern /lib[[^/\.]]+\.so$'
  8489. - fi
  8490. - ;;
  8491. + sunos4*)
  8492. + if test "x$host_vendor" = xsequent; then
  8493. + # Use $CC to link under sequent, because it throws in some extra .o
  8494. + # files that make .init and .fini sections work.
  8495. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8496. + else
  8497. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8498. + fi
  8499. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8500. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8501. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=yes
  8502. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8503. + ;;
  8504. -newos6*)
  8505. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[ML]]SB (executable|dynamic lib)'
  8506. - lt_cv_file_magic_cmd=/usr/bin/file
  8507. - lt_cv_file_magic_test_file=/usr/lib/libnls.so
  8508. - ;;
  8509. + sysv4)
  8510. + case $host_vendor in
  8511. + sni)
  8512. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8513. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes # is this really true???
  8514. + ;;
  8515. + siemens)
  8516. + ## LD is ld it makes a PLAMLIB
  8517. + ## CC just makes a GrossModule.
  8518. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8519. + _LT_AC_TAGVAR(reload_cmds, $1)='$CC -r -o $output$reload_objs'
  8520. + _LT_AC_TAGVAR(hardcode_direct, $1)=no
  8521. + ;;
  8522. + motorola)
  8523. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8524. + _LT_AC_TAGVAR(hardcode_direct, $1)=no #Motorola manual says yes, but my tests say they lie
  8525. + ;;
  8526. + esac
  8527. + runpath_var='LD_RUN_PATH'
  8528. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8529. + ;;
  8530. -openbsd*)
  8531. - lt_cv_file_magic_cmd=/usr/bin/file
  8532. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  8533. - if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8534. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB shared object'
  8535. - else
  8536. - lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library'
  8537. - fi
  8538. - ;;
  8539. + sysv4.3*)
  8540. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8541. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8542. + _LT_AC_TAGVAR(export_dynamic_flag_spec, $1)='-Bexport'
  8543. + ;;
  8544. -osf3* | osf4* | osf5*)
  8545. - # this will be overridden with pass_all, but let us keep it just in case
  8546. - lt_cv_deplibs_check_method='file_magic COFF format alpha shared library'
  8547. - lt_cv_file_magic_test_file=/shlib/libc.so
  8548. - lt_cv_deplibs_check_method=pass_all
  8549. - ;;
  8550. + sysv4*MP*)
  8551. + if test -d /usr/nec; then
  8552. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8553. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8554. + runpath_var=LD_RUN_PATH
  8555. + hardcode_runpath_var=yes
  8556. + _LT_AC_TAGVAR(ld_shlibs, $1)=yes
  8557. + fi
  8558. + ;;
  8559. -sco3.2v5*)
  8560. - lt_cv_deplibs_check_method=pass_all
  8561. - ;;
  8562. + sysv4.2uw2*)
  8563. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8564. + _LT_AC_TAGVAR(hardcode_direct, $1)=yes
  8565. + _LT_AC_TAGVAR(hardcode_minus_L, $1)=no
  8566. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8567. + hardcode_runpath_var=yes
  8568. + runpath_var=LD_RUN_PATH
  8569. + ;;
  8570. -solaris*)
  8571. - lt_cv_deplibs_check_method=pass_all
  8572. - lt_cv_file_magic_test_file=/lib/libc.so
  8573. - ;;
  8574. + sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[[78]]* | unixware7*)
  8575. + _LT_AC_TAGVAR(no_undefined_flag, $1)='${wl}-z ${wl}text'
  8576. + if test "$GCC" = yes; then
  8577. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8578. + else
  8579. + _LT_AC_TAGVAR(archive_cmds, $1)='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8580. + fi
  8581. + runpath_var='LD_RUN_PATH'
  8582. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8583. + ;;
  8584. -sysv5uw[[78]]* | sysv4*uw2*)
  8585. - lt_cv_deplibs_check_method=pass_all
  8586. - ;;
  8587. + sysv5*)
  8588. + _LT_AC_TAGVAR(no_undefined_flag, $1)=' -z text'
  8589. + # $CC -shared without GNU ld will not create a library from C++
  8590. + # object files and a static libstdc++, better avoid it by now
  8591. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8592. + _LT_AC_TAGVAR(archive_expsym_cmds, $1)='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~
  8593. + $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp'
  8594. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)=
  8595. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8596. + runpath_var='LD_RUN_PATH'
  8597. + ;;
  8598. -sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8599. - case $host_vendor in
  8600. - motorola)
  8601. - 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]]'
  8602. - lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  8603. - ;;
  8604. - ncr)
  8605. - lt_cv_deplibs_check_method=pass_all
  8606. - ;;
  8607. - sequent)
  8608. - lt_cv_file_magic_cmd='/bin/file'
  8609. - lt_cv_deplibs_check_method='file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB (shared object|dynamic lib )'
  8610. - ;;
  8611. - sni)
  8612. - lt_cv_file_magic_cmd='/bin/file'
  8613. - lt_cv_deplibs_check_method="file_magic ELF [[0-9]][[0-9]]*-bit [[LM]]SB dynamic lib"
  8614. - lt_cv_file_magic_test_file=/lib/libc.so
  8615. - ;;
  8616. - siemens)
  8617. - lt_cv_deplibs_check_method=pass_all
  8618. - ;;
  8619. - esac
  8620. - ;;
  8621. -esac
  8622. -])
  8623. -file_magic_cmd=$lt_cv_file_magic_cmd
  8624. -deplibs_check_method=$lt_cv_deplibs_check_method
  8625. + uts4*)
  8626. + _LT_AC_TAGVAR(archive_cmds, $1)='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8627. + _LT_AC_TAGVAR(hardcode_libdir_flag_spec, $1)='-L$libdir'
  8628. + _LT_AC_TAGVAR(hardcode_shlibpath_var, $1)=no
  8629. + ;;
  8630. +
  8631. + *)
  8632. + _LT_AC_TAGVAR(ld_shlibs, $1)=no
  8633. + ;;
  8634. + esac
  8635. + fi
  8636. ])
  8637. +AC_MSG_RESULT([$_LT_AC_TAGVAR(ld_shlibs, $1)])
  8638. +test "$_LT_AC_TAGVAR(ld_shlibs, $1)" = no && can_build_shared=no
  8639. +variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  8640. +if test "$GCC" = yes; then
  8641. + variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  8642. +fi
  8643. -# AC_PROG_NM - find the path to a BSD-compatible name lister
  8644. -AC_DEFUN([AC_PROG_NM],
  8645. -[AC_REQUIRE([_LT_AC_LIBTOOL_SYS_PATH_SEPARATOR])dnl
  8646. -AC_MSG_CHECKING([for BSD-compatible nm])
  8647. -AC_CACHE_VAL(lt_cv_path_NM,
  8648. -[if test -n "$NM"; then
  8649. - # Let the user override the test.
  8650. - lt_cv_path_NM="$NM"
  8651. -else
  8652. - IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  8653. - for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do
  8654. - test -z "$ac_dir" && ac_dir=.
  8655. - tmp_nm=$ac_dir/${ac_tool_prefix}nm
  8656. - if test -f $tmp_nm || test -f $tmp_nm$ac_exeext ; then
  8657. - # Check to see if the nm accepts a BSD-compat flag.
  8658. - # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  8659. - # nm: unknown option "B" ignored
  8660. - # Tru64's nm complains that /dev/null is an invalid object file
  8661. - if ($tmp_nm -B /dev/null 2>&1 | sed '1q'; exit 0) | egrep '(/dev/null|Invalid file or object type)' >/dev/null; then
  8662. - lt_cv_path_NM="$tmp_nm -B"
  8663. - break
  8664. - elif ($tmp_nm -p /dev/null 2>&1 | sed '1q'; exit 0) | egrep /dev/null >/dev/null; then
  8665. - lt_cv_path_NM="$tmp_nm -p"
  8666. - break
  8667. +#
  8668. +# Do we need to explicitly link libc?
  8669. +#
  8670. +case "x$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)" in
  8671. +x|xyes)
  8672. + # Assume -lc should be added
  8673. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  8674. +
  8675. + if test "$enable_shared" = yes && test "$GCC" = yes; then
  8676. + case $_LT_AC_TAGVAR(archive_cmds, $1) in
  8677. + *'~'*)
  8678. + # FIXME: we may have to deal with multi-command sequences.
  8679. + ;;
  8680. + '$CC '*)
  8681. + # Test whether the compiler implicitly links with -lc since on some
  8682. + # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8683. + # to ld, don't add -lc before -lgcc.
  8684. + AC_MSG_CHECKING([whether -lc should be explicitly linked in])
  8685. + $rm conftest*
  8686. + printf "$lt_simple_compile_test_code" > conftest.$ac_ext
  8687. +
  8688. + if AC_TRY_EVAL(ac_compile) 2>conftest.err; then
  8689. + soname=conftest
  8690. + lib=conftest
  8691. + libobjs=conftest.$ac_objext
  8692. + deplibs=
  8693. + wl=$_LT_AC_TAGVAR(lt_prog_compiler_wl, $1)
  8694. + compiler_flags=-v
  8695. + linker_flags=-v
  8696. + verstring=
  8697. + output_objdir=.
  8698. + libname=conftest
  8699. + lt_save_allow_undefined_flag=$_LT_AC_TAGVAR(allow_undefined_flag, $1)
  8700. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=
  8701. + if AC_TRY_EVAL(_LT_AC_TAGVAR(archive_cmds, $1) 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1)
  8702. + then
  8703. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=no
  8704. + else
  8705. + _LT_AC_TAGVAR(archive_cmds_need_lc, $1)=yes
  8706. + fi
  8707. + _LT_AC_TAGVAR(allow_undefined_flag, $1)=$lt_save_allow_undefined_flag
  8708. else
  8709. - lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  8710. - continue # so that we can try to find one that supports BSD flags
  8711. + cat conftest.err 1>&5
  8712. fi
  8713. - fi
  8714. - done
  8715. - IFS="$ac_save_ifs"
  8716. - test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm
  8717. -fi])
  8718. -NM="$lt_cv_path_NM"
  8719. -AC_MSG_RESULT([$NM])
  8720. -])
  8721. -
  8722. -# AC_CHECK_LIBM - check for math library
  8723. -AC_DEFUN([AC_CHECK_LIBM],
  8724. -[AC_REQUIRE([AC_CANONICAL_HOST])dnl
  8725. -LIBM=
  8726. -case $host in
  8727. -*-*-beos* | *-*-cygwin* | *-*-pw32*)
  8728. - # These system don't have libm
  8729. - ;;
  8730. -*-ncr-sysv4.3*)
  8731. - AC_CHECK_LIB(mw, _mwvalidcheckl, LIBM="-lmw")
  8732. - AC_CHECK_LIB(m, main, LIBM="$LIBM -lm")
  8733. - ;;
  8734. -*)
  8735. - AC_CHECK_LIB(m, main, LIBM="-lm")
  8736. + $rm conftest*
  8737. + AC_MSG_RESULT([$_LT_AC_TAGVAR(archive_cmds_need_lc, $1)])
  8738. + ;;
  8739. + esac
  8740. + fi
  8741. ;;
  8742. esac
  8743. -])
  8744. +])# AC_LIBTOOL_PROG_LD_SHLIBS
  8745. -# AC_LIBLTDL_CONVENIENCE[(dir)] - sets LIBLTDL to the link flags for
  8746. -# the libltdl convenience library and LTDLINCL to the include flags for
  8747. -# the libltdl header and adds --enable-ltdl-convenience to the
  8748. -# configure arguments. Note that LIBLTDL and LTDLINCL are not
  8749. -# AC_SUBSTed, nor is AC_CONFIG_SUBDIRS called. If DIR is not
  8750. -# provided, it is assumed to be `libltdl'. LIBLTDL will be prefixed
  8751. -# with '${top_builddir}/' and LTDLINCL will be prefixed with
  8752. -# '${top_srcdir}/' (note the single quotes!). If your package is not
  8753. -# flat and you're not using automake, define top_builddir and
  8754. -# top_srcdir appropriately in the Makefiles.
  8755. -AC_DEFUN([AC_LIBLTDL_CONVENIENCE],
  8756. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  8757. - case $enable_ltdl_convenience in
  8758. - no) AC_MSG_ERROR([this package needs a convenience libltdl]) ;;
  8759. - "") enable_ltdl_convenience=yes
  8760. - ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
  8761. - esac
  8762. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdlc.la
  8763. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  8764. - # For backwards non-gettext consistent compatibility...
  8765. - INCLTDL="$LTDLINCL"
  8766. -])
  8767. -# AC_LIBLTDL_INSTALLABLE[(dir)] - sets LIBLTDL to the link flags for
  8768. -# the libltdl installable library and LTDLINCL to the include flags for
  8769. -# the libltdl header and adds --enable-ltdl-install to the configure
  8770. -# arguments. Note that LIBLTDL and LTDLINCL are not AC_SUBSTed, nor is
  8771. -# AC_CONFIG_SUBDIRS called. If DIR is not provided and an installed
  8772. -# libltdl is not found, it is assumed to be `libltdl'. LIBLTDL will
  8773. -# be prefixed with '${top_builddir}/' and LTDLINCL will be prefixed
  8774. -# with '${top_srcdir}/' (note the single quotes!). If your package is
  8775. -# not flat and you're not using automake, define top_builddir and
  8776. -# top_srcdir appropriately in the Makefiles.
  8777. -# In the future, this macro may have to be called after AC_PROG_LIBTOOL.
  8778. -AC_DEFUN([AC_LIBLTDL_INSTALLABLE],
  8779. -[AC_BEFORE([$0],[AC_LIBTOOL_SETUP])dnl
  8780. - AC_CHECK_LIB(ltdl, main,
  8781. - [test x"$enable_ltdl_install" != xyes && enable_ltdl_install=no],
  8782. - [if test x"$enable_ltdl_install" = xno; then
  8783. - AC_MSG_WARN([libltdl not installed, but installation disabled])
  8784. - else
  8785. - enable_ltdl_install=yes
  8786. - fi
  8787. - ])
  8788. - if test x"$enable_ltdl_install" = x"yes"; then
  8789. - ac_configure_args="$ac_configure_args --enable-ltdl-install"
  8790. - LIBLTDL='${top_builddir}/'ifelse($#,1,[$1],['libltdl'])/libltdl.la
  8791. - LTDLINCL='-I${top_srcdir}/'ifelse($#,1,[$1],['libltdl'])
  8792. - else
  8793. - ac_configure_args="$ac_configure_args --enable-ltdl-install=no"
  8794. - LIBLTDL="-lltdl"
  8795. - LTDLINCL=
  8796. - fi
  8797. - # For backwards non-gettext consistent compatibility...
  8798. - INCLTDL="$LTDLINCL"
  8799. -])
  8800. +# _LT_AC_FILE_LTDLL_C
  8801. +# -------------------
  8802. +# Be careful that the start marker always follows a newline.
  8803. +AC_DEFUN([_LT_AC_FILE_LTDLL_C], [
  8804. +# /* ltdll.c starts here */
  8805. +# #define WIN32_LEAN_AND_MEAN
  8806. +# #include <windows.h>
  8807. +# #undef WIN32_LEAN_AND_MEAN
  8808. +# #include <stdio.h>
  8809. +#
  8810. +# #ifndef __CYGWIN__
  8811. +# # ifdef __CYGWIN32__
  8812. +# # define __CYGWIN__ __CYGWIN32__
  8813. +# # endif
  8814. +# #endif
  8815. +#
  8816. +# #ifdef __cplusplus
  8817. +# extern "C" {
  8818. +# #endif
  8819. +# BOOL APIENTRY DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved);
  8820. +# #ifdef __cplusplus
  8821. +# }
  8822. +# #endif
  8823. +#
  8824. +# #ifdef __CYGWIN__
  8825. +# #include <cygwin/cygwin_dll.h>
  8826. +# DECLARE_CYGWIN_DLL( DllMain );
  8827. +# #endif
  8828. +# HINSTANCE __hDllInstance_base;
  8829. +#
  8830. +# BOOL APIENTRY
  8831. +# DllMain (HINSTANCE hInst, DWORD reason, LPVOID reserved)
  8832. +# {
  8833. +# __hDllInstance_base = hInst;
  8834. +# return TRUE;
  8835. +# }
  8836. +# /* ltdll.c ends here */
  8837. +])# _LT_AC_FILE_LTDLL_C
  8838. +
  8839. +
  8840. +# _LT_AC_TAGVAR(VARNAME, [TAGNAME])
  8841. +# ---------------------------------
  8842. +AC_DEFUN([_LT_AC_TAGVAR], [ifelse([$2], [], [$1], [$1_$2])])
  8843. +
  8844. # old names
  8845. AC_DEFUN([AM_PROG_LIBTOOL], [AC_PROG_LIBTOOL])
  8846. @@ -3709,6 +6828,16 @@
  8847. # This is just to silence aclocal about the macro not being used
  8848. ifelse([AC_DISABLE_FAST_INSTALL])
  8849. +AC_DEFUN([LT_AC_PROG_GCJ],
  8850. +[AC_CHECK_TOOL(GCJ, gcj, no)
  8851. + test "x${GCJFLAGS+set}" = xset || GCJFLAGS="-g -O2"
  8852. + AC_SUBST(GCJFLAGS)
  8853. +])
  8854. +
  8855. +AC_DEFUN([LT_AC_PROG_RC],
  8856. +[AC_CHECK_TOOL(RC, windres, no)
  8857. +])
  8858. +
  8859. # NOTE: This macro has been submitted for inclusion into #
  8860. # GNU Autoconf as AC_PROG_SED. When it is available in #
  8861. # a released version of Autoconf we should remove this #
  8862. @@ -3722,79 +6851,51 @@
  8863. AC_CACHE_VAL(lt_cv_path_SED,
  8864. [# Loop through the user's path and test for sed and gsed.
  8865. # Then use that list of sed's as ones to test for truncation.
  8866. -as_executable_p="test -f"
  8867. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  8868. for as_dir in $PATH
  8869. do
  8870. IFS=$as_save_IFS
  8871. test -z "$as_dir" && as_dir=.
  8872. - for ac_prog in sed gsed; do
  8873. + for lt_ac_prog in sed gsed; do
  8874. for ac_exec_ext in '' $ac_executable_extensions; do
  8875. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  8876. - _sed_list="$_sed_list $as_dir/$ac_prog$ac_exec_ext"
  8877. + if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then
  8878. + lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext"
  8879. fi
  8880. done
  8881. done
  8882. done
  8883. -
  8884. - # Create a temporary directory, and hook for its removal unless debugging.
  8885. -$debug ||
  8886. -{
  8887. - trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
  8888. - trap '{ (exit 1); exit 1; }' 1 2 13 15
  8889. -}
  8890. -
  8891. -# Create a (secure) tmp directory for tmp files.
  8892. -: ${TMPDIR=/tmp}
  8893. -{
  8894. - tmp=`(umask 077 && mktemp -d -q "$TMPDIR/sedXXXXXX") 2>/dev/null` &&
  8895. - test -n "$tmp" && test -d "$tmp"
  8896. -} ||
  8897. -{
  8898. - tmp=$TMPDIR/sed$$-$RANDOM
  8899. - (umask 077 && mkdir $tmp)
  8900. -} ||
  8901. -{
  8902. - echo "$me: cannot create a temporary directory in $TMPDIR" >&2
  8903. - { (exit 1); exit 1; }
  8904. -}
  8905. - _max=0
  8906. - _count=0
  8907. - # Add /usr/xpg4/bin/sed as it is typically found on Solaris
  8908. - # along with /bin/sed that truncates output.
  8909. - for _sed in $_sed_list /usr/xpg4/bin/sed; do
  8910. - test ! -f ${_sed} && break
  8911. - cat /dev/null > "$tmp/sed.in"
  8912. - _count=0
  8913. - echo ${ECHO_N-$ac_n} "0123456789${ECHO_C-$ac_c}" >"$tmp/sed.in"
  8914. - # Check for GNU sed and select it if it is found.
  8915. - if "${_sed}" --version 2>&1 < /dev/null | egrep '(GNU)' > /dev/null; then
  8916. - lt_cv_path_SED=${_sed}
  8917. - break
  8918. +lt_ac_max=0
  8919. +lt_ac_count=0
  8920. +# Add /usr/xpg4/bin/sed as it is typically found on Solaris
  8921. +# along with /bin/sed that truncates output.
  8922. +for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do
  8923. + test ! -f $lt_ac_sed && break
  8924. + cat /dev/null > conftest.in
  8925. + lt_ac_count=0
  8926. + echo $ECHO_N "0123456789$ECHO_C" >conftest.in
  8927. + # Check for GNU sed and select it if it is found.
  8928. + if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then
  8929. + lt_cv_path_SED=$lt_ac_sed
  8930. + break
  8931. + fi
  8932. + while true; do
  8933. + cat conftest.in conftest.in >conftest.tmp
  8934. + mv conftest.tmp conftest.in
  8935. + cp conftest.in conftest.nl
  8936. + echo >>conftest.nl
  8937. + $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break
  8938. + cmp -s conftest.out conftest.nl || break
  8939. + # 10000 chars as input seems more than enough
  8940. + test $lt_ac_count -gt 10 && break
  8941. + lt_ac_count=`expr $lt_ac_count + 1`
  8942. + if test $lt_ac_count -gt $lt_ac_max; then
  8943. + lt_ac_max=$lt_ac_count
  8944. + lt_cv_path_SED=$lt_ac_sed
  8945. fi
  8946. - while true; do
  8947. - cat "$tmp/sed.in" "$tmp/sed.in" >"$tmp/sed.tmp"
  8948. - mv "$tmp/sed.tmp" "$tmp/sed.in"
  8949. - cp "$tmp/sed.in" "$tmp/sed.nl"
  8950. - echo >>"$tmp/sed.nl"
  8951. - ${_sed} -e 's/a$//' < "$tmp/sed.nl" >"$tmp/sed.out" || break
  8952. - cmp -s "$tmp/sed.out" "$tmp/sed.nl" || break
  8953. - # 40000 chars as input seems more than enough
  8954. - test $_count -gt 10 && break
  8955. - _count=`expr $_count + 1`
  8956. - if test $_count -gt $_max; then
  8957. - _max=$_count
  8958. - lt_cv_path_SED=$_sed
  8959. - fi
  8960. - done
  8961. done
  8962. - rm -rf "$tmp"
  8963. +done
  8964. +SED=$lt_cv_path_SED
  8965. ])
  8966. -if test "X$SED" != "X"; then
  8967. - lt_cv_path_SED=$SED
  8968. -else
  8969. - SED=$lt_cv_path_SED
  8970. -fi
  8971. AC_MSG_RESULT([$SED])
  8972. ])
  8973. Index: linux-atm-2.4.1/configure
  8974. ===================================================================
  8975. --- linux-atm-2.4.1.orig/configure 2007-10-20 19:19:11.746297861 +0200
  8976. +++ linux-atm-2.4.1/configure 2007-10-20 19:19:17.578630228 +0200
  8977. @@ -1,9 +1,8 @@
  8978. #! /bin/sh
  8979. # Guess values for system-dependent variables and create Makefiles.
  8980. -# Generated by GNU Autoconf 2.57.
  8981. +# Generated by GNU Autoconf 2.59.
  8982. #
  8983. -# Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  8984. -# Free Software Foundation, Inc.
  8985. +# Copyright (C) 2003 Free Software Foundation, Inc.
  8986. # This configure script is free software; the Free Software Foundation
  8987. # gives unlimited permission to copy, distribute and modify it.
  8988. ## --------------------- ##
  8989. @@ -20,9 +19,10 @@
  8990. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  8991. set -o posix
  8992. fi
  8993. +DUALCASE=1; export DUALCASE # for MKS sh
  8994. # Support unset when possible.
  8995. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  8996. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  8997. as_unset=unset
  8998. else
  8999. as_unset=false
  9000. @@ -41,7 +41,7 @@
  9001. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  9002. LC_TELEPHONE LC_TIME
  9003. do
  9004. - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9005. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  9006. eval $as_var=C; export $as_var
  9007. else
  9008. $as_unset $as_var
  9009. @@ -218,16 +218,17 @@
  9010. if mkdir -p . 2>/dev/null; then
  9011. as_mkdir_p=:
  9012. else
  9013. + test -d ./-p && rmdir ./-p
  9014. as_mkdir_p=false
  9015. fi
  9016. as_executable_p="test -f"
  9017. # Sed expression to map a string onto a valid CPP name.
  9018. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  9019. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  9020. # Sed expression to map a string onto a valid variable name.
  9021. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  9022. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  9023. # IFS
  9024. @@ -826,7 +827,7 @@
  9025. # Be sure to have absolute paths.
  9026. for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
  9027. - localstatedir libdir includedir oldincludedir infodir mandir
  9028. + localstatedir libdir includedir oldincludedir infodir mandir
  9029. do
  9030. eval ac_val=$`echo $ac_var`
  9031. case $ac_val in
  9032. @@ -866,10 +867,10 @@
  9033. # Try the directory containing this script, then its parent.
  9034. ac_confdir=`(dirname "$0") 2>/dev/null ||
  9035. $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  9036. - X"$0" : 'X\(//\)[^/]' \| \
  9037. - X"$0" : 'X\(//\)$' \| \
  9038. - X"$0" : 'X\(/\)' \| \
  9039. - . : '\(.\)' 2>/dev/null ||
  9040. + X"$0" : 'X\(//\)[^/]' \| \
  9041. + X"$0" : 'X\(//\)$' \| \
  9042. + X"$0" : 'X\(/\)' \| \
  9043. + . : '\(.\)' 2>/dev/null ||
  9044. echo X"$0" |
  9045. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  9046. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  9047. @@ -961,9 +962,9 @@
  9048. cat <<_ACEOF
  9049. Installation directories:
  9050. --prefix=PREFIX install architecture-independent files in PREFIX
  9051. - [$ac_default_prefix]
  9052. + [$ac_default_prefix]
  9053. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  9054. - [PREFIX]
  9055. + [PREFIX]
  9056. By default, \`make install' will install all the files in
  9057. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  9058. @@ -1071,12 +1072,45 @@
  9059. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  9060. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  9061. esac
  9062. -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  9063. -# absolute.
  9064. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  9065. -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  9066. -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  9067. -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  9068. +
  9069. +# Do not use `cd foo && pwd` to compute absolute paths, because
  9070. +# the directories may not exist.
  9071. +case `pwd` in
  9072. +.) ac_abs_builddir="$ac_dir";;
  9073. +*)
  9074. + case "$ac_dir" in
  9075. + .) ac_abs_builddir=`pwd`;;
  9076. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  9077. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  9078. + esac;;
  9079. +esac
  9080. +case $ac_abs_builddir in
  9081. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  9082. +*)
  9083. + case ${ac_top_builddir}. in
  9084. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  9085. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  9086. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  9087. + esac;;
  9088. +esac
  9089. +case $ac_abs_builddir in
  9090. +.) ac_abs_srcdir=$ac_srcdir;;
  9091. +*)
  9092. + case $ac_srcdir in
  9093. + .) ac_abs_srcdir=$ac_abs_builddir;;
  9094. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  9095. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  9096. + esac;;
  9097. +esac
  9098. +case $ac_abs_builddir in
  9099. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  9100. +*)
  9101. + case $ac_top_srcdir in
  9102. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  9103. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  9104. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  9105. + esac;;
  9106. +esac
  9107. cd $ac_dir
  9108. # Check for guested configure; otherwise get Cygnus style configure.
  9109. @@ -1087,13 +1121,13 @@
  9110. echo
  9111. $SHELL $ac_srcdir/configure --help=recursive
  9112. elif test -f $ac_srcdir/configure.ac ||
  9113. - test -f $ac_srcdir/configure.in; then
  9114. + test -f $ac_srcdir/configure.in; then
  9115. echo
  9116. $ac_configure --help
  9117. else
  9118. echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  9119. fi
  9120. - cd $ac_popdir
  9121. + cd "$ac_popdir"
  9122. done
  9123. fi
  9124. @@ -1101,8 +1135,7 @@
  9125. if $ac_init_version; then
  9126. cat <<\_ACEOF
  9127. -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 2002
  9128. -Free Software Foundation, Inc.
  9129. +Copyright (C) 2003 Free Software Foundation, Inc.
  9130. This configure script is free software; the Free Software Foundation
  9131. gives unlimited permission to copy, distribute and modify it.
  9132. _ACEOF
  9133. @@ -1114,7 +1147,7 @@
  9134. running configure, to aid debugging if configure makes a mistake.
  9135. It was created by $as_me, which was
  9136. -generated by GNU Autoconf 2.57. Invocation command line was
  9137. +generated by GNU Autoconf 2.59. Invocation command line was
  9138. $ $0 $@
  9139. @@ -1191,19 +1224,19 @@
  9140. 2)
  9141. ac_configure_args1="$ac_configure_args1 '$ac_arg'"
  9142. if test $ac_must_keep_next = true; then
  9143. - ac_must_keep_next=false # Got value, back to normal.
  9144. + ac_must_keep_next=false # Got value, back to normal.
  9145. else
  9146. - case $ac_arg in
  9147. - *=* | --config-cache | -C | -disable-* | --disable-* \
  9148. - | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  9149. - | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  9150. - | -with-* | --with-* | -without-* | --without-* | --x)
  9151. - case "$ac_configure_args0 " in
  9152. - "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  9153. - esac
  9154. - ;;
  9155. - -* ) ac_must_keep_next=true ;;
  9156. - esac
  9157. + case $ac_arg in
  9158. + *=* | --config-cache | -C | -disable-* | --disable-* \
  9159. + | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  9160. + | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  9161. + | -with-* | --with-* | -without-* | --without-* | --x)
  9162. + case "$ac_configure_args0 " in
  9163. + "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  9164. + esac
  9165. + ;;
  9166. + -* ) ac_must_keep_next=true ;;
  9167. + esac
  9168. fi
  9169. ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
  9170. # Get rid of the leading space.
  9171. @@ -1237,12 +1270,12 @@
  9172. case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
  9173. *ac_space=\ *)
  9174. sed -n \
  9175. - "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  9176. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  9177. + "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
  9178. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
  9179. ;;
  9180. *)
  9181. sed -n \
  9182. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9183. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  9184. ;;
  9185. esac;
  9186. }
  9187. @@ -1271,7 +1304,7 @@
  9188. for ac_var in $ac_subst_files
  9189. do
  9190. eval ac_val=$`echo $ac_var`
  9191. - echo "$ac_var='"'"'$ac_val'"'"'"
  9192. + echo "$ac_var='"'"'$ac_val'"'"'"
  9193. done | sort
  9194. echo
  9195. fi
  9196. @@ -1370,7 +1403,7 @@
  9197. # value.
  9198. ac_cache_corrupted=false
  9199. for ac_var in `(set) 2>&1 |
  9200. - sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  9201. + sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
  9202. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  9203. eval ac_new_set=\$ac_env_${ac_var}_set
  9204. eval ac_old_val="\$ac_cv_env_${ac_var}_value"
  9205. @@ -1387,13 +1420,13 @@
  9206. ,);;
  9207. *)
  9208. if test "x$ac_old_val" != "x$ac_new_val"; then
  9209. - { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  9210. + { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
  9211. echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  9212. - { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  9213. + { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
  9214. echo "$as_me: former value: $ac_old_val" >&2;}
  9215. - { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  9216. + { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
  9217. echo "$as_me: current value: $ac_new_val" >&2;}
  9218. - ac_cache_corrupted=:
  9219. + ac_cache_corrupted=:
  9220. fi;;
  9221. esac
  9222. # Pass precious variables to config.status.
  9223. @@ -1567,6 +1600,7 @@
  9224. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9225. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9226. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9227. +# OS/2's system install, which has a completely different semantic
  9228. # ./install, which can be erroneously created by make from ./install.sh.
  9229. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  9230. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  9231. @@ -1583,6 +1617,7 @@
  9232. case $as_dir/ in
  9233. ./ | .// | /cC/* | \
  9234. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9235. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  9236. /usr/ucb/* ) ;;
  9237. *)
  9238. # OSF1 and SCO ODT 3.0 have their own names for install.
  9239. @@ -1590,20 +1625,20 @@
  9240. # by default.
  9241. for ac_prog in ginstall scoinst install; do
  9242. for ac_exec_ext in '' $ac_executable_extensions; do
  9243. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9244. - if test $ac_prog = install &&
  9245. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9246. - # AIX install. It has an incompatible calling convention.
  9247. - :
  9248. - elif test $ac_prog = install &&
  9249. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9250. - # program-specific install script used by HP pwplus--don't use.
  9251. - :
  9252. - else
  9253. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9254. - break 3
  9255. - fi
  9256. - fi
  9257. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9258. + if test $ac_prog = install &&
  9259. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9260. + # AIX install. It has an incompatible calling convention.
  9261. + :
  9262. + elif test $ac_prog = install &&
  9263. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9264. + # program-specific install script used by HP pwplus--don't use.
  9265. + :
  9266. + else
  9267. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9268. + break 3
  9269. + fi
  9270. + fi
  9271. done
  9272. done
  9273. ;;
  9274. @@ -1693,7 +1728,7 @@
  9275. echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  9276. echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
  9277. -set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,./+-,__p_,'`
  9278. +set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
  9279. if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
  9280. echo $ECHO_N "(cached) $ECHO_C" >&6
  9281. else
  9282. @@ -2163,7 +2198,6 @@
  9283. (exit $ac_status); }
  9284. cat >conftest.$ac_ext <<_ACEOF
  9285. -#line $LINENO "configure"
  9286. /* confdefs.h. */
  9287. _ACEOF
  9288. cat confdefs.h >>conftest.$ac_ext
  9289. @@ -2183,8 +2217,8 @@
  9290. # Try to create an executable without -o first, disregard a.out.
  9291. # It will help us diagnose broken compilers, and finding out an intuition
  9292. # of exeext.
  9293. -echo "$as_me:$LINENO: checking for C compiler default output" >&5
  9294. -echo $ECHO_N "checking for C compiler default output... $ECHO_C" >&6
  9295. +echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
  9296. +echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
  9297. ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  9298. if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
  9299. (eval $ac_link_default) 2>&5
  9300. @@ -2204,23 +2238,23 @@
  9301. test -f "$ac_file" || continue
  9302. case $ac_file in
  9303. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
  9304. - ;;
  9305. + ;;
  9306. conftest.$ac_ext )
  9307. - # This is the source file.
  9308. - ;;
  9309. + # This is the source file.
  9310. + ;;
  9311. [ab].out )
  9312. - # We found the default executable, but exeext='' is most
  9313. - # certainly right.
  9314. - break;;
  9315. + # We found the default executable, but exeext='' is most
  9316. + # certainly right.
  9317. + break;;
  9318. *.* )
  9319. - ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  9320. - # FIXME: I believe we export ac_cv_exeext for Libtool,
  9321. - # but it would be cool to find out if it's true. Does anybody
  9322. - # maintain Libtool? --akim.
  9323. - export ac_cv_exeext
  9324. - break;;
  9325. + ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  9326. + # FIXME: I believe we export ac_cv_exeext for Libtool,
  9327. + # but it would be cool to find out if it's true. Does anybody
  9328. + # maintain Libtool? --akim.
  9329. + export ac_cv_exeext
  9330. + break;;
  9331. * )
  9332. - break;;
  9333. + break;;
  9334. esac
  9335. done
  9336. else
  9337. @@ -2294,8 +2328,8 @@
  9338. case $ac_file in
  9339. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
  9340. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  9341. - export ac_cv_exeext
  9342. - break;;
  9343. + export ac_cv_exeext
  9344. + break;;
  9345. * ) break;;
  9346. esac
  9347. done
  9348. @@ -2320,7 +2354,6 @@
  9349. echo $ECHO_N "(cached) $ECHO_C" >&6
  9350. else
  9351. cat >conftest.$ac_ext <<_ACEOF
  9352. -#line $LINENO "configure"
  9353. /* confdefs.h. */
  9354. _ACEOF
  9355. cat confdefs.h >>conftest.$ac_ext
  9356. @@ -2371,7 +2404,6 @@
  9357. echo $ECHO_N "(cached) $ECHO_C" >&6
  9358. else
  9359. cat >conftest.$ac_ext <<_ACEOF
  9360. -#line $LINENO "configure"
  9361. /* confdefs.h. */
  9362. _ACEOF
  9363. cat confdefs.h >>conftest.$ac_ext
  9364. @@ -2391,11 +2423,20 @@
  9365. _ACEOF
  9366. rm -f conftest.$ac_objext
  9367. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9368. - (eval $ac_compile) 2>&5
  9369. + (eval $ac_compile) 2>conftest.er1
  9370. ac_status=$?
  9371. + grep -v '^ *+' conftest.er1 >conftest.err
  9372. + rm -f conftest.er1
  9373. + cat conftest.err >&5
  9374. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9375. (exit $ac_status); } &&
  9376. - { ac_try='test -s conftest.$ac_objext'
  9377. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9378. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9379. + (eval $ac_try) 2>&5
  9380. + ac_status=$?
  9381. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9382. + (exit $ac_status); }; } &&
  9383. + { ac_try='test -s conftest.$ac_objext'
  9384. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9385. (eval $ac_try) 2>&5
  9386. ac_status=$?
  9387. @@ -2408,7 +2449,7 @@
  9388. ac_compiler_gnu=no
  9389. fi
  9390. -rm -f conftest.$ac_objext conftest.$ac_ext
  9391. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9392. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  9393. fi
  9394. @@ -2424,7 +2465,6 @@
  9395. echo $ECHO_N "(cached) $ECHO_C" >&6
  9396. else
  9397. cat >conftest.$ac_ext <<_ACEOF
  9398. -#line $LINENO "configure"
  9399. /* confdefs.h. */
  9400. _ACEOF
  9401. cat confdefs.h >>conftest.$ac_ext
  9402. @@ -2441,11 +2481,20 @@
  9403. _ACEOF
  9404. rm -f conftest.$ac_objext
  9405. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9406. - (eval $ac_compile) 2>&5
  9407. + (eval $ac_compile) 2>conftest.er1
  9408. ac_status=$?
  9409. + grep -v '^ *+' conftest.er1 >conftest.err
  9410. + rm -f conftest.er1
  9411. + cat conftest.err >&5
  9412. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9413. (exit $ac_status); } &&
  9414. - { ac_try='test -s conftest.$ac_objext'
  9415. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9416. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9417. + (eval $ac_try) 2>&5
  9418. + ac_status=$?
  9419. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9420. + (exit $ac_status); }; } &&
  9421. + { ac_try='test -s conftest.$ac_objext'
  9422. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9423. (eval $ac_try) 2>&5
  9424. ac_status=$?
  9425. @@ -2458,7 +2507,7 @@
  9426. ac_cv_prog_cc_g=no
  9427. fi
  9428. -rm -f conftest.$ac_objext conftest.$ac_ext
  9429. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9430. fi
  9431. echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
  9432. echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
  9433. @@ -2485,7 +2534,6 @@
  9434. ac_cv_prog_cc_stdc=no
  9435. ac_save_CC=$CC
  9436. cat >conftest.$ac_ext <<_ACEOF
  9437. -#line $LINENO "configure"
  9438. /* confdefs.h. */
  9439. _ACEOF
  9440. cat confdefs.h >>conftest.$ac_ext
  9441. @@ -2513,6 +2561,16 @@
  9442. va_end (v);
  9443. return s;
  9444. }
  9445. +
  9446. +/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  9447. + function prototypes and stuff, but not '\xHH' hex character constants.
  9448. + These don't provoke an error unfortunately, instead are silently treated
  9449. + as 'x'. The following induces an error, until -std1 is added to get
  9450. + proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  9451. + array size at least. It's necessary to write '\x00'==0 to get something
  9452. + that's true only with -std1. */
  9453. +int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  9454. +
  9455. int test (int i, double x);
  9456. struct s1 {int (*f) (int a);};
  9457. struct s2 {int (*f) (double a);};
  9458. @@ -2539,11 +2597,20 @@
  9459. CC="$ac_save_CC $ac_arg"
  9460. rm -f conftest.$ac_objext
  9461. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9462. - (eval $ac_compile) 2>&5
  9463. + (eval $ac_compile) 2>conftest.er1
  9464. ac_status=$?
  9465. + grep -v '^ *+' conftest.er1 >conftest.err
  9466. + rm -f conftest.er1
  9467. + cat conftest.err >&5
  9468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9469. (exit $ac_status); } &&
  9470. - { ac_try='test -s conftest.$ac_objext'
  9471. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9472. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9473. + (eval $ac_try) 2>&5
  9474. + ac_status=$?
  9475. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9476. + (exit $ac_status); }; } &&
  9477. + { ac_try='test -s conftest.$ac_objext'
  9478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9479. (eval $ac_try) 2>&5
  9480. ac_status=$?
  9481. @@ -2556,7 +2623,7 @@
  9482. sed 's/^/| /' conftest.$ac_ext >&5
  9483. fi
  9484. -rm -f conftest.$ac_objext
  9485. +rm -f conftest.err conftest.$ac_objext
  9486. done
  9487. rm -f conftest.$ac_ext conftest.$ac_objext
  9488. CC=$ac_save_CC
  9489. @@ -2584,11 +2651,20 @@
  9490. _ACEOF
  9491. rm -f conftest.$ac_objext
  9492. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9493. - (eval $ac_compile) 2>&5
  9494. + (eval $ac_compile) 2>conftest.er1
  9495. ac_status=$?
  9496. + grep -v '^ *+' conftest.er1 >conftest.err
  9497. + rm -f conftest.er1
  9498. + cat conftest.err >&5
  9499. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9500. (exit $ac_status); } &&
  9501. - { ac_try='test -s conftest.$ac_objext'
  9502. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9503. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9504. + (eval $ac_try) 2>&5
  9505. + ac_status=$?
  9506. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9507. + (exit $ac_status); }; } &&
  9508. + { ac_try='test -s conftest.$ac_objext'
  9509. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9510. (eval $ac_try) 2>&5
  9511. ac_status=$?
  9512. @@ -2603,7 +2679,6 @@
  9513. 'void exit (int);'
  9514. do
  9515. cat >conftest.$ac_ext <<_ACEOF
  9516. -#line $LINENO "configure"
  9517. /* confdefs.h. */
  9518. _ACEOF
  9519. cat confdefs.h >>conftest.$ac_ext
  9520. @@ -2621,11 +2696,20 @@
  9521. _ACEOF
  9522. rm -f conftest.$ac_objext
  9523. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9524. - (eval $ac_compile) 2>&5
  9525. + (eval $ac_compile) 2>conftest.er1
  9526. ac_status=$?
  9527. + grep -v '^ *+' conftest.er1 >conftest.err
  9528. + rm -f conftest.er1
  9529. + cat conftest.err >&5
  9530. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9531. (exit $ac_status); } &&
  9532. - { ac_try='test -s conftest.$ac_objext'
  9533. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9534. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9535. + (eval $ac_try) 2>&5
  9536. + ac_status=$?
  9537. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9538. + (exit $ac_status); }; } &&
  9539. + { ac_try='test -s conftest.$ac_objext'
  9540. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9541. (eval $ac_try) 2>&5
  9542. ac_status=$?
  9543. @@ -2638,9 +2722,8 @@
  9544. continue
  9545. fi
  9546. -rm -f conftest.$ac_objext conftest.$ac_ext
  9547. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9548. cat >conftest.$ac_ext <<_ACEOF
  9549. -#line $LINENO "configure"
  9550. /* confdefs.h. */
  9551. _ACEOF
  9552. cat confdefs.h >>conftest.$ac_ext
  9553. @@ -2657,11 +2740,20 @@
  9554. _ACEOF
  9555. rm -f conftest.$ac_objext
  9556. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9557. - (eval $ac_compile) 2>&5
  9558. + (eval $ac_compile) 2>conftest.er1
  9559. ac_status=$?
  9560. + grep -v '^ *+' conftest.er1 >conftest.err
  9561. + rm -f conftest.er1
  9562. + cat conftest.err >&5
  9563. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9564. (exit $ac_status); } &&
  9565. - { ac_try='test -s conftest.$ac_objext'
  9566. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9567. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9568. + (eval $ac_try) 2>&5
  9569. + ac_status=$?
  9570. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9571. + (exit $ac_status); }; } &&
  9572. + { ac_try='test -s conftest.$ac_objext'
  9573. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9574. (eval $ac_try) 2>&5
  9575. ac_status=$?
  9576. @@ -2673,7 +2765,7 @@
  9577. sed 's/^/| /' conftest.$ac_ext >&5
  9578. fi
  9579. -rm -f conftest.$ac_objext conftest.$ac_ext
  9580. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9581. done
  9582. rm -f conftest*
  9583. if test -n "$ac_declaration"; then
  9584. @@ -2687,7 +2779,7 @@
  9585. sed 's/^/| /' conftest.$ac_ext >&5
  9586. fi
  9587. -rm -f conftest.$ac_objext conftest.$ac_ext
  9588. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9589. ac_ext=c
  9590. ac_cpp='$CPP $CPPFLAGS'
  9591. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9592. @@ -2788,7 +2880,6 @@
  9593. ac_check_lib_save_LIBS=$LIBS
  9594. LIBS="-lfl $LIBS"
  9595. cat >conftest.$ac_ext <<_ACEOF
  9596. -#line $LINENO "configure"
  9597. /* confdefs.h. */
  9598. _ACEOF
  9599. cat confdefs.h >>conftest.$ac_ext
  9600. @@ -2812,11 +2903,20 @@
  9601. _ACEOF
  9602. rm -f conftest.$ac_objext conftest$ac_exeext
  9603. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9604. - (eval $ac_link) 2>&5
  9605. + (eval $ac_link) 2>conftest.er1
  9606. ac_status=$?
  9607. + grep -v '^ *+' conftest.er1 >conftest.err
  9608. + rm -f conftest.er1
  9609. + cat conftest.err >&5
  9610. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9611. (exit $ac_status); } &&
  9612. - { ac_try='test -s conftest$ac_exeext'
  9613. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9614. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9615. + (eval $ac_try) 2>&5
  9616. + ac_status=$?
  9617. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9618. + (exit $ac_status); }; } &&
  9619. + { ac_try='test -s conftest$ac_exeext'
  9620. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9621. (eval $ac_try) 2>&5
  9622. ac_status=$?
  9623. @@ -2829,7 +2929,8 @@
  9624. ac_cv_lib_fl_yywrap=no
  9625. fi
  9626. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9627. +rm -f conftest.err conftest.$ac_objext \
  9628. + conftest$ac_exeext conftest.$ac_ext
  9629. LIBS=$ac_check_lib_save_LIBS
  9630. fi
  9631. echo "$as_me:$LINENO: result: $ac_cv_lib_fl_yywrap" >&5
  9632. @@ -2845,7 +2946,6 @@
  9633. ac_check_lib_save_LIBS=$LIBS
  9634. LIBS="-ll $LIBS"
  9635. cat >conftest.$ac_ext <<_ACEOF
  9636. -#line $LINENO "configure"
  9637. /* confdefs.h. */
  9638. _ACEOF
  9639. cat confdefs.h >>conftest.$ac_ext
  9640. @@ -2869,11 +2969,20 @@
  9641. _ACEOF
  9642. rm -f conftest.$ac_objext conftest$ac_exeext
  9643. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9644. - (eval $ac_link) 2>&5
  9645. + (eval $ac_link) 2>conftest.er1
  9646. ac_status=$?
  9647. + grep -v '^ *+' conftest.er1 >conftest.err
  9648. + rm -f conftest.er1
  9649. + cat conftest.err >&5
  9650. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9651. (exit $ac_status); } &&
  9652. - { ac_try='test -s conftest$ac_exeext'
  9653. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9654. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9655. + (eval $ac_try) 2>&5
  9656. + ac_status=$?
  9657. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9658. + (exit $ac_status); }; } &&
  9659. + { ac_try='test -s conftest$ac_exeext'
  9660. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9661. (eval $ac_try) 2>&5
  9662. ac_status=$?
  9663. @@ -2886,7 +2995,8 @@
  9664. ac_cv_lib_l_yywrap=no
  9665. fi
  9666. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9667. +rm -f conftest.err conftest.$ac_objext \
  9668. + conftest$ac_exeext conftest.$ac_ext
  9669. LIBS=$ac_check_lib_save_LIBS
  9670. fi
  9671. echo "$as_me:$LINENO: result: $ac_cv_lib_l_yywrap" >&5
  9672. @@ -2948,11 +3058,20 @@
  9673. _ACEOF
  9674. rm -f conftest.$ac_objext conftest$ac_exeext
  9675. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  9676. - (eval $ac_link) 2>&5
  9677. + (eval $ac_link) 2>conftest.er1
  9678. ac_status=$?
  9679. + grep -v '^ *+' conftest.er1 >conftest.err
  9680. + rm -f conftest.er1
  9681. + cat conftest.err >&5
  9682. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9683. (exit $ac_status); } &&
  9684. - { ac_try='test -s conftest$ac_exeext'
  9685. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9686. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9687. + (eval $ac_try) 2>&5
  9688. + ac_status=$?
  9689. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9690. + (exit $ac_status); }; } &&
  9691. + { ac_try='test -s conftest$ac_exeext'
  9692. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9693. (eval $ac_try) 2>&5
  9694. ac_status=$?
  9695. @@ -2964,7 +3083,8 @@
  9696. sed 's/^/| /' conftest.$ac_ext >&5
  9697. fi
  9698. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  9699. +rm -f conftest.err conftest.$ac_objext \
  9700. + conftest$ac_exeext conftest.$ac_ext
  9701. LIBS=$ac_save_LIBS
  9702. rm -f "${LEX_OUTPUT_ROOT}.c"
  9703. @@ -3033,6 +3153,7 @@
  9704. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  9705. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  9706. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  9707. +# OS/2's system install, which has a completely different semantic
  9708. # ./install, which can be erroneously created by make from ./install.sh.
  9709. echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
  9710. echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
  9711. @@ -3049,6 +3170,7 @@
  9712. case $as_dir/ in
  9713. ./ | .// | /cC/* | \
  9714. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  9715. + ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
  9716. /usr/ucb/* ) ;;
  9717. *)
  9718. # OSF1 and SCO ODT 3.0 have their own names for install.
  9719. @@ -3056,20 +3178,20 @@
  9720. # by default.
  9721. for ac_prog in ginstall scoinst install; do
  9722. for ac_exec_ext in '' $ac_executable_extensions; do
  9723. - if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9724. - if test $ac_prog = install &&
  9725. - grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9726. - # AIX install. It has an incompatible calling convention.
  9727. - :
  9728. - elif test $ac_prog = install &&
  9729. - grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9730. - # program-specific install script used by HP pwplus--don't use.
  9731. - :
  9732. - else
  9733. - ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9734. - break 3
  9735. - fi
  9736. - fi
  9737. + if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  9738. + if test $ac_prog = install &&
  9739. + grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9740. + # AIX install. It has an incompatible calling convention.
  9741. + :
  9742. + elif test $ac_prog = install &&
  9743. + grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  9744. + # program-specific install script used by HP pwplus--don't use.
  9745. + :
  9746. + else
  9747. + ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  9748. + break 3
  9749. + fi
  9750. + fi
  9751. done
  9752. done
  9753. ;;
  9754. @@ -3842,7 +3964,6 @@
  9755. # On the NeXT, cc -E runs the code through the compiler's parser,
  9756. # not just through cpp. "Syntax error" is here to catch this case.
  9757. cat >conftest.$ac_ext <<_ACEOF
  9758. -#line $LINENO "configure"
  9759. /* confdefs.h. */
  9760. _ACEOF
  9761. cat confdefs.h >>conftest.$ac_ext
  9762. @@ -3853,7 +3974,7 @@
  9763. #else
  9764. # include <assert.h>
  9765. #endif
  9766. - Syntax error
  9767. + Syntax error
  9768. _ACEOF
  9769. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9770. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9771. @@ -3865,6 +3986,7 @@
  9772. (exit $ac_status); } >/dev/null; then
  9773. if test -s conftest.err; then
  9774. ac_cpp_err=$ac_c_preproc_warn_flag
  9775. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9776. else
  9777. ac_cpp_err=
  9778. fi
  9779. @@ -3885,7 +4007,6 @@
  9780. # OK, works on sane cases. Now check whether non-existent headers
  9781. # can be detected and how.
  9782. cat >conftest.$ac_ext <<_ACEOF
  9783. -#line $LINENO "configure"
  9784. /* confdefs.h. */
  9785. _ACEOF
  9786. cat confdefs.h >>conftest.$ac_ext
  9787. @@ -3903,6 +4024,7 @@
  9788. (exit $ac_status); } >/dev/null; then
  9789. if test -s conftest.err; then
  9790. ac_cpp_err=$ac_c_preproc_warn_flag
  9791. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9792. else
  9793. ac_cpp_err=
  9794. fi
  9795. @@ -3949,7 +4071,6 @@
  9796. # On the NeXT, cc -E runs the code through the compiler's parser,
  9797. # not just through cpp. "Syntax error" is here to catch this case.
  9798. cat >conftest.$ac_ext <<_ACEOF
  9799. -#line $LINENO "configure"
  9800. /* confdefs.h. */
  9801. _ACEOF
  9802. cat confdefs.h >>conftest.$ac_ext
  9803. @@ -3960,7 +4081,7 @@
  9804. #else
  9805. # include <assert.h>
  9806. #endif
  9807. - Syntax error
  9808. + Syntax error
  9809. _ACEOF
  9810. if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
  9811. (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
  9812. @@ -3972,6 +4093,7 @@
  9813. (exit $ac_status); } >/dev/null; then
  9814. if test -s conftest.err; then
  9815. ac_cpp_err=$ac_c_preproc_warn_flag
  9816. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9817. else
  9818. ac_cpp_err=
  9819. fi
  9820. @@ -3992,7 +4114,6 @@
  9821. # OK, works on sane cases. Now check whether non-existent headers
  9822. # can be detected and how.
  9823. cat >conftest.$ac_ext <<_ACEOF
  9824. -#line $LINENO "configure"
  9825. /* confdefs.h. */
  9826. _ACEOF
  9827. cat confdefs.h >>conftest.$ac_ext
  9828. @@ -4010,6 +4131,7 @@
  9829. (exit $ac_status); } >/dev/null; then
  9830. if test -s conftest.err; then
  9831. ac_cpp_err=$ac_c_preproc_warn_flag
  9832. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  9833. else
  9834. ac_cpp_err=
  9835. fi
  9836. @@ -4070,7 +4192,6 @@
  9837. echo $ECHO_N "(cached) $ECHO_C" >&6
  9838. else
  9839. cat >conftest.$ac_ext <<_ACEOF
  9840. -#line $LINENO "configure"
  9841. /* confdefs.h. */
  9842. _ACEOF
  9843. cat confdefs.h >>conftest.$ac_ext
  9844. @@ -4091,11 +4212,20 @@
  9845. _ACEOF
  9846. rm -f conftest.$ac_objext
  9847. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9848. - (eval $ac_compile) 2>&5
  9849. + (eval $ac_compile) 2>conftest.er1
  9850. ac_status=$?
  9851. + grep -v '^ *+' conftest.er1 >conftest.err
  9852. + rm -f conftest.er1
  9853. + cat conftest.err >&5
  9854. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9855. (exit $ac_status); } &&
  9856. - { ac_try='test -s conftest.$ac_objext'
  9857. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9858. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9859. + (eval $ac_try) 2>&5
  9860. + ac_status=$?
  9861. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9862. + (exit $ac_status); }; } &&
  9863. + { ac_try='test -s conftest.$ac_objext'
  9864. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9865. (eval $ac_try) 2>&5
  9866. ac_status=$?
  9867. @@ -4108,12 +4238,11 @@
  9868. ac_cv_header_stdc=no
  9869. fi
  9870. -rm -f conftest.$ac_objext conftest.$ac_ext
  9871. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9872. if test $ac_cv_header_stdc = yes; then
  9873. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  9874. cat >conftest.$ac_ext <<_ACEOF
  9875. -#line $LINENO "configure"
  9876. /* confdefs.h. */
  9877. _ACEOF
  9878. cat confdefs.h >>conftest.$ac_ext
  9879. @@ -4135,7 +4264,6 @@
  9880. if test $ac_cv_header_stdc = yes; then
  9881. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  9882. cat >conftest.$ac_ext <<_ACEOF
  9883. -#line $LINENO "configure"
  9884. /* confdefs.h. */
  9885. _ACEOF
  9886. cat confdefs.h >>conftest.$ac_ext
  9887. @@ -4160,7 +4288,6 @@
  9888. :
  9889. else
  9890. cat >conftest.$ac_ext <<_ACEOF
  9891. -#line $LINENO "configure"
  9892. /* confdefs.h. */
  9893. _ACEOF
  9894. cat confdefs.h >>conftest.$ac_ext
  9895. @@ -4172,9 +4299,9 @@
  9896. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  9897. #else
  9898. # define ISLOWER(c) \
  9899. - (('a' <= (c) && (c) <= 'i') \
  9900. - || ('j' <= (c) && (c) <= 'r') \
  9901. - || ('s' <= (c) && (c) <= 'z'))
  9902. + (('a' <= (c) && (c) <= 'i') \
  9903. + || ('j' <= (c) && (c) <= 'r') \
  9904. + || ('s' <= (c) && (c) <= 'z'))
  9905. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  9906. #endif
  9907. @@ -4185,7 +4312,7 @@
  9908. int i;
  9909. for (i = 0; i < 256; i++)
  9910. if (XOR (islower (i), ISLOWER (i))
  9911. - || toupper (i) != TOUPPER (i))
  9912. + || toupper (i) != TOUPPER (i))
  9913. exit(2);
  9914. exit (0);
  9915. }
  9916. @@ -4235,7 +4362,7 @@
  9917. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  9918. - inttypes.h stdint.h unistd.h
  9919. + inttypes.h stdint.h unistd.h
  9920. do
  9921. as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
  9922. echo "$as_me:$LINENO: checking for $ac_header" >&5
  9923. @@ -4244,7 +4371,6 @@
  9924. echo $ECHO_N "(cached) $ECHO_C" >&6
  9925. else
  9926. cat >conftest.$ac_ext <<_ACEOF
  9927. -#line $LINENO "configure"
  9928. /* confdefs.h. */
  9929. _ACEOF
  9930. cat confdefs.h >>conftest.$ac_ext
  9931. @@ -4256,11 +4382,20 @@
  9932. _ACEOF
  9933. rm -f conftest.$ac_objext
  9934. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9935. - (eval $ac_compile) 2>&5
  9936. + (eval $ac_compile) 2>conftest.er1
  9937. ac_status=$?
  9938. + grep -v '^ *+' conftest.er1 >conftest.err
  9939. + rm -f conftest.er1
  9940. + cat conftest.err >&5
  9941. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9942. (exit $ac_status); } &&
  9943. - { ac_try='test -s conftest.$ac_objext'
  9944. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9945. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9946. + (eval $ac_try) 2>&5
  9947. + ac_status=$?
  9948. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9949. + (exit $ac_status); }; } &&
  9950. + { ac_try='test -s conftest.$ac_objext'
  9951. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9952. (eval $ac_try) 2>&5
  9953. ac_status=$?
  9954. @@ -4273,7 +4408,7 @@
  9955. eval "$as_ac_Header=no"
  9956. fi
  9957. -rm -f conftest.$ac_objext conftest.$ac_ext
  9958. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9959. fi
  9960. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  9961. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  9962. @@ -4304,7 +4439,6 @@
  9963. echo "$as_me:$LINENO: checking $ac_header usability" >&5
  9964. echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
  9965. cat >conftest.$ac_ext <<_ACEOF
  9966. -#line $LINENO "configure"
  9967. /* confdefs.h. */
  9968. _ACEOF
  9969. cat confdefs.h >>conftest.$ac_ext
  9970. @@ -4315,11 +4449,20 @@
  9971. _ACEOF
  9972. rm -f conftest.$ac_objext
  9973. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  9974. - (eval $ac_compile) 2>&5
  9975. + (eval $ac_compile) 2>conftest.er1
  9976. ac_status=$?
  9977. + grep -v '^ *+' conftest.er1 >conftest.err
  9978. + rm -f conftest.er1
  9979. + cat conftest.err >&5
  9980. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9981. (exit $ac_status); } &&
  9982. - { ac_try='test -s conftest.$ac_objext'
  9983. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  9984. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9985. + (eval $ac_try) 2>&5
  9986. + ac_status=$?
  9987. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  9988. + (exit $ac_status); }; } &&
  9989. + { ac_try='test -s conftest.$ac_objext'
  9990. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  9991. (eval $ac_try) 2>&5
  9992. ac_status=$?
  9993. @@ -4332,7 +4475,7 @@
  9994. ac_header_compiler=no
  9995. fi
  9996. -rm -f conftest.$ac_objext conftest.$ac_ext
  9997. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  9998. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  9999. echo "${ECHO_T}$ac_header_compiler" >&6
  10000. @@ -4340,7 +4483,6 @@
  10001. echo "$as_me:$LINENO: checking $ac_header presence" >&5
  10002. echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
  10003. cat >conftest.$ac_ext <<_ACEOF
  10004. -#line $LINENO "configure"
  10005. /* confdefs.h. */
  10006. _ACEOF
  10007. cat confdefs.h >>conftest.$ac_ext
  10008. @@ -4358,6 +4500,7 @@
  10009. (exit $ac_status); } >/dev/null; then
  10010. if test -s conftest.err; then
  10011. ac_cpp_err=$ac_c_preproc_warn_flag
  10012. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10013. else
  10014. ac_cpp_err=
  10015. fi
  10016. @@ -4377,33 +4520,32 @@
  10017. echo "${ECHO_T}$ac_header_preproc" >&6
  10018. # So? What about this header?
  10019. -case $ac_header_compiler:$ac_header_preproc in
  10020. - yes:no )
  10021. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10022. + yes:no: )
  10023. { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
  10024. echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10025. - { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10026. -echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10027. - (
  10028. - cat <<\_ASBOX
  10029. -## ------------------------------------ ##
  10030. -## Report this to [email protected]. ##
  10031. -## ------------------------------------ ##
  10032. -_ASBOX
  10033. - ) |
  10034. - sed "s/^/$as_me: WARNING: /" >&2
  10035. + { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
  10036. +echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
  10037. + ac_header_preproc=yes
  10038. ;;
  10039. - no:yes )
  10040. + no:yes:* )
  10041. { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
  10042. echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
  10043. - { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10044. -echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10045. + { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
  10046. +echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
  10047. + { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
  10048. +echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
  10049. + { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
  10050. +echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
  10051. { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
  10052. echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
  10053. + { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
  10054. +echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
  10055. (
  10056. cat <<\_ASBOX
  10057. -## ------------------------------------ ##
  10058. -## Report this to [email protected]. ##
  10059. -## ------------------------------------ ##
  10060. +## ------------------------------------------ ##
  10061. +## Report this to the AC_PACKAGE_NAME lists. ##
  10062. +## ------------------------------------------ ##
  10063. _ASBOX
  10064. ) |
  10065. sed "s/^/$as_me: WARNING: /" >&2
  10066. @@ -4414,7 +4556,7 @@
  10067. if eval "test \"\${$as_ac_Header+set}\" = set"; then
  10068. echo $ECHO_N "(cached) $ECHO_C" >&6
  10069. else
  10070. - eval "$as_ac_Header=$ac_header_preproc"
  10071. + eval "$as_ac_Header=\$ac_header_preproc"
  10072. fi
  10073. echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
  10074. echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
  10075. @@ -4749,7 +4891,7 @@
  10076. case $host in
  10077. *-*-irix6*)
  10078. # Find out which ABI we are using.
  10079. - echo '#line 4752 "configure"' > conftest.$ac_ext
  10080. + echo '#line 4894 "configure"' > conftest.$ac_ext
  10081. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10082. (eval $ac_compile) 2>&5
  10083. ac_status=$?
  10084. @@ -4788,7 +4930,6 @@
  10085. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10086. cat >conftest.$ac_ext <<_ACEOF
  10087. -#line $LINENO "configure"
  10088. /* confdefs.h. */
  10089. _ACEOF
  10090. cat confdefs.h >>conftest.$ac_ext
  10091. @@ -4805,11 +4946,20 @@
  10092. _ACEOF
  10093. rm -f conftest.$ac_objext conftest$ac_exeext
  10094. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10095. - (eval $ac_link) 2>&5
  10096. + (eval $ac_link) 2>conftest.er1
  10097. ac_status=$?
  10098. + grep -v '^ *+' conftest.er1 >conftest.err
  10099. + rm -f conftest.er1
  10100. + cat conftest.err >&5
  10101. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10102. (exit $ac_status); } &&
  10103. - { ac_try='test -s conftest$ac_exeext'
  10104. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10105. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10106. + (eval $ac_try) 2>&5
  10107. + ac_status=$?
  10108. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10109. + (exit $ac_status); }; } &&
  10110. + { ac_try='test -s conftest$ac_exeext'
  10111. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10112. (eval $ac_try) 2>&5
  10113. ac_status=$?
  10114. @@ -4822,7 +4972,8 @@
  10115. lt_cv_cc_needs_belf=no
  10116. fi
  10117. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10118. +rm -f conftest.err conftest.$ac_objext \
  10119. + conftest$ac_exeext conftest.$ac_ext
  10120. ac_ext=c
  10121. ac_cpp='$CPP $CPPFLAGS'
  10122. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10123. @@ -5117,7 +5268,6 @@
  10124. save_CFLAGS="$CFLAGS"
  10125. CFLAGS="$CFLAGS $lt_cv_prog_cc_pic -DPIC"
  10126. cat >conftest.$ac_ext <<_ACEOF
  10127. -#line $LINENO "configure"
  10128. /* confdefs.h. */
  10129. _ACEOF
  10130. cat confdefs.h >>conftest.$ac_ext
  10131. @@ -5134,11 +5284,20 @@
  10132. _ACEOF
  10133. rm -f conftest.$ac_objext
  10134. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10135. - (eval $ac_compile) 2>&5
  10136. + (eval $ac_compile) 2>conftest.er1
  10137. ac_status=$?
  10138. + grep -v '^ *+' conftest.er1 >conftest.err
  10139. + rm -f conftest.er1
  10140. + cat conftest.err >&5
  10141. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10142. (exit $ac_status); } &&
  10143. - { ac_try='test -s conftest.$ac_objext'
  10144. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10145. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10146. + (eval $ac_try) 2>&5
  10147. + ac_status=$?
  10148. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10149. + (exit $ac_status); }; } &&
  10150. + { ac_try='test -s conftest.$ac_objext'
  10151. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10152. (eval $ac_try) 2>&5
  10153. ac_status=$?
  10154. @@ -5167,7 +5326,7 @@
  10155. lt_cv_prog_cc_pic_works=no
  10156. fi
  10157. -rm -f conftest.$ac_objext conftest.$ac_ext
  10158. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10159. CFLAGS="$save_CFLAGS"
  10160. fi
  10161. @@ -5205,7 +5364,6 @@
  10162. save_LDFLAGS="$LDFLAGS"
  10163. LDFLAGS="$LDFLAGS $lt_cv_prog_cc_static"
  10164. cat >conftest.$ac_ext <<_ACEOF
  10165. -#line $LINENO "configure"
  10166. /* confdefs.h. */
  10167. _ACEOF
  10168. cat confdefs.h >>conftest.$ac_ext
  10169. @@ -5222,11 +5380,20 @@
  10170. _ACEOF
  10171. rm -f conftest.$ac_objext conftest$ac_exeext
  10172. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10173. - (eval $ac_link) 2>&5
  10174. + (eval $ac_link) 2>conftest.er1
  10175. ac_status=$?
  10176. + grep -v '^ *+' conftest.er1 >conftest.err
  10177. + rm -f conftest.er1
  10178. + cat conftest.err >&5
  10179. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10180. (exit $ac_status); } &&
  10181. - { ac_try='test -s conftest$ac_exeext'
  10182. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10183. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10184. + (eval $ac_try) 2>&5
  10185. + ac_status=$?
  10186. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10187. + (exit $ac_status); }; } &&
  10188. + { ac_try='test -s conftest$ac_exeext'
  10189. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10190. (eval $ac_try) 2>&5
  10191. ac_status=$?
  10192. @@ -5238,7 +5405,8 @@
  10193. sed 's/^/| /' conftest.$ac_ext >&5
  10194. fi
  10195. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10196. +rm -f conftest.err conftest.$ac_objext \
  10197. + conftest$ac_exeext conftest.$ac_ext
  10198. LDFLAGS="$save_LDFLAGS"
  10199. fi
  10200. @@ -5278,7 +5446,7 @@
  10201. save_CFLAGS="$CFLAGS"
  10202. CFLAGS="$CFLAGS -o out/conftest2.$ac_objext"
  10203. compiler_c_o=no
  10204. -if { (eval echo configure:5281: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  10205. +if { (eval echo configure:5449: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>out/conftest.err; } && test -s out/conftest2.$ac_objext; then
  10206. # The compiler can only warn and ignore the option if not recognized
  10207. # So say no if there are warnings
  10208. if test -s out/conftest.err; then
  10209. @@ -5319,7 +5487,6 @@
  10210. save_objext="$ac_objext"
  10211. ac_objext=lo
  10212. cat >conftest.$ac_ext <<_ACEOF
  10213. -#line $LINENO "configure"
  10214. /* confdefs.h. */
  10215. _ACEOF
  10216. cat confdefs.h >>conftest.$ac_ext
  10217. @@ -5336,11 +5503,20 @@
  10218. _ACEOF
  10219. rm -f conftest.$ac_objext
  10220. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10221. - (eval $ac_compile) 2>&5
  10222. + (eval $ac_compile) 2>conftest.er1
  10223. ac_status=$?
  10224. + grep -v '^ *+' conftest.er1 >conftest.err
  10225. + rm -f conftest.er1
  10226. + cat conftest.err >&5
  10227. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10228. (exit $ac_status); } &&
  10229. - { ac_try='test -s conftest.$ac_objext'
  10230. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10231. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10232. + (eval $ac_try) 2>&5
  10233. + ac_status=$?
  10234. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10235. + (exit $ac_status); }; } &&
  10236. + { ac_try='test -s conftest.$ac_objext'
  10237. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10238. (eval $ac_try) 2>&5
  10239. ac_status=$?
  10240. @@ -5359,7 +5535,7 @@
  10241. sed 's/^/| /' conftest.$ac_ext >&5
  10242. fi
  10243. -rm -f conftest.$ac_objext conftest.$ac_ext
  10244. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10245. ac_objext="$save_objext"
  10246. CFLAGS="$save_CFLAGS"
  10247. @@ -5404,7 +5580,6 @@
  10248. CFLAGS="$CFLAGS -fno-rtti -fno-exceptions -c conftest.$ac_ext"
  10249. compiler_rtti_exceptions=no
  10250. cat >conftest.$ac_ext <<_ACEOF
  10251. -#line $LINENO "configure"
  10252. /* confdefs.h. */
  10253. _ACEOF
  10254. cat confdefs.h >>conftest.$ac_ext
  10255. @@ -5421,11 +5596,20 @@
  10256. _ACEOF
  10257. rm -f conftest.$ac_objext
  10258. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10259. - (eval $ac_compile) 2>&5
  10260. + (eval $ac_compile) 2>conftest.er1
  10261. ac_status=$?
  10262. + grep -v '^ *+' conftest.er1 >conftest.err
  10263. + rm -f conftest.er1
  10264. + cat conftest.err >&5
  10265. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10266. (exit $ac_status); } &&
  10267. - { ac_try='test -s conftest.$ac_objext'
  10268. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10269. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10270. + (eval $ac_try) 2>&5
  10271. + ac_status=$?
  10272. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10273. + (exit $ac_status); }; } &&
  10274. + { ac_try='test -s conftest.$ac_objext'
  10275. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10276. (eval $ac_try) 2>&5
  10277. ac_status=$?
  10278. @@ -5444,7 +5628,7 @@
  10279. sed 's/^/| /' conftest.$ac_ext >&5
  10280. fi
  10281. -rm -f conftest.$ac_objext conftest.$ac_ext
  10282. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10283. CFLAGS="$save_CFLAGS"
  10284. echo "$as_me:$LINENO: result: $compiler_rtti_exceptions" >&5
  10285. echo "${ECHO_T}$compiler_rtti_exceptions" >&6
  10286. @@ -6704,21 +6888,28 @@
  10287. echo $ECHO_N "(cached) $ECHO_C" >&6
  10288. else
  10289. cat >conftest.$ac_ext <<_ACEOF
  10290. -#line $LINENO "configure"
  10291. /* confdefs.h. */
  10292. _ACEOF
  10293. cat confdefs.h >>conftest.$ac_ext
  10294. cat >>conftest.$ac_ext <<_ACEOF
  10295. /* end confdefs.h. */
  10296. +/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load.
  10297. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10298. +#define shl_load innocuous_shl_load
  10299. +
  10300. /* System header to define __stub macros and hopefully few prototypes,
  10301. which can conflict with char shl_load (); below.
  10302. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10303. <limits.h> exists even on freestanding compilers. */
  10304. +
  10305. #ifdef __STDC__
  10306. # include <limits.h>
  10307. #else
  10308. # include <assert.h>
  10309. #endif
  10310. +
  10311. +#undef shl_load
  10312. +
  10313. /* Override any gcc2 internal prototype to avoid an error. */
  10314. #ifdef __cplusplus
  10315. extern "C"
  10316. @@ -6749,11 +6940,20 @@
  10317. _ACEOF
  10318. rm -f conftest.$ac_objext conftest$ac_exeext
  10319. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10320. - (eval $ac_link) 2>&5
  10321. + (eval $ac_link) 2>conftest.er1
  10322. ac_status=$?
  10323. + grep -v '^ *+' conftest.er1 >conftest.err
  10324. + rm -f conftest.er1
  10325. + cat conftest.err >&5
  10326. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10327. (exit $ac_status); } &&
  10328. - { ac_try='test -s conftest$ac_exeext'
  10329. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10330. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10331. + (eval $ac_try) 2>&5
  10332. + ac_status=$?
  10333. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10334. + (exit $ac_status); }; } &&
  10335. + { ac_try='test -s conftest$ac_exeext'
  10336. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10337. (eval $ac_try) 2>&5
  10338. ac_status=$?
  10339. @@ -6766,7 +6966,8 @@
  10340. ac_cv_func_shl_load=no
  10341. fi
  10342. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10343. +rm -f conftest.err conftest.$ac_objext \
  10344. + conftest$ac_exeext conftest.$ac_ext
  10345. fi
  10346. echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5
  10347. echo "${ECHO_T}$ac_cv_func_shl_load" >&6
  10348. @@ -6781,7 +6982,6 @@
  10349. ac_check_lib_save_LIBS=$LIBS
  10350. LIBS="-ldld $LIBS"
  10351. cat >conftest.$ac_ext <<_ACEOF
  10352. -#line $LINENO "configure"
  10353. /* confdefs.h. */
  10354. _ACEOF
  10355. cat confdefs.h >>conftest.$ac_ext
  10356. @@ -6805,11 +7005,20 @@
  10357. _ACEOF
  10358. rm -f conftest.$ac_objext conftest$ac_exeext
  10359. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10360. - (eval $ac_link) 2>&5
  10361. + (eval $ac_link) 2>conftest.er1
  10362. ac_status=$?
  10363. + grep -v '^ *+' conftest.er1 >conftest.err
  10364. + rm -f conftest.er1
  10365. + cat conftest.err >&5
  10366. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10367. (exit $ac_status); } &&
  10368. - { ac_try='test -s conftest$ac_exeext'
  10369. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10370. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10371. + (eval $ac_try) 2>&5
  10372. + ac_status=$?
  10373. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10374. + (exit $ac_status); }; } &&
  10375. + { ac_try='test -s conftest$ac_exeext'
  10376. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10377. (eval $ac_try) 2>&5
  10378. ac_status=$?
  10379. @@ -6822,7 +7031,8 @@
  10380. ac_cv_lib_dld_shl_load=no
  10381. fi
  10382. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10383. +rm -f conftest.err conftest.$ac_objext \
  10384. + conftest$ac_exeext conftest.$ac_ext
  10385. LIBS=$ac_check_lib_save_LIBS
  10386. fi
  10387. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5
  10388. @@ -6836,21 +7046,28 @@
  10389. echo $ECHO_N "(cached) $ECHO_C" >&6
  10390. else
  10391. cat >conftest.$ac_ext <<_ACEOF
  10392. -#line $LINENO "configure"
  10393. /* confdefs.h. */
  10394. _ACEOF
  10395. cat confdefs.h >>conftest.$ac_ext
  10396. cat >>conftest.$ac_ext <<_ACEOF
  10397. /* end confdefs.h. */
  10398. +/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen.
  10399. + For example, HP-UX 11i <limits.h> declares gettimeofday. */
  10400. +#define dlopen innocuous_dlopen
  10401. +
  10402. /* System header to define __stub macros and hopefully few prototypes,
  10403. which can conflict with char dlopen (); below.
  10404. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10405. <limits.h> exists even on freestanding compilers. */
  10406. +
  10407. #ifdef __STDC__
  10408. # include <limits.h>
  10409. #else
  10410. # include <assert.h>
  10411. #endif
  10412. +
  10413. +#undef dlopen
  10414. +
  10415. /* Override any gcc2 internal prototype to avoid an error. */
  10416. #ifdef __cplusplus
  10417. extern "C"
  10418. @@ -6881,11 +7098,20 @@
  10419. _ACEOF
  10420. rm -f conftest.$ac_objext conftest$ac_exeext
  10421. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10422. - (eval $ac_link) 2>&5
  10423. + (eval $ac_link) 2>conftest.er1
  10424. ac_status=$?
  10425. + grep -v '^ *+' conftest.er1 >conftest.err
  10426. + rm -f conftest.er1
  10427. + cat conftest.err >&5
  10428. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10429. (exit $ac_status); } &&
  10430. - { ac_try='test -s conftest$ac_exeext'
  10431. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10432. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10433. + (eval $ac_try) 2>&5
  10434. + ac_status=$?
  10435. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10436. + (exit $ac_status); }; } &&
  10437. + { ac_try='test -s conftest$ac_exeext'
  10438. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10439. (eval $ac_try) 2>&5
  10440. ac_status=$?
  10441. @@ -6898,7 +7124,8 @@
  10442. ac_cv_func_dlopen=no
  10443. fi
  10444. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10445. +rm -f conftest.err conftest.$ac_objext \
  10446. + conftest$ac_exeext conftest.$ac_ext
  10447. fi
  10448. echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5
  10449. echo "${ECHO_T}$ac_cv_func_dlopen" >&6
  10450. @@ -6913,7 +7140,6 @@
  10451. ac_check_lib_save_LIBS=$LIBS
  10452. LIBS="-ldl $LIBS"
  10453. cat >conftest.$ac_ext <<_ACEOF
  10454. -#line $LINENO "configure"
  10455. /* confdefs.h. */
  10456. _ACEOF
  10457. cat confdefs.h >>conftest.$ac_ext
  10458. @@ -6937,11 +7163,20 @@
  10459. _ACEOF
  10460. rm -f conftest.$ac_objext conftest$ac_exeext
  10461. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10462. - (eval $ac_link) 2>&5
  10463. + (eval $ac_link) 2>conftest.er1
  10464. ac_status=$?
  10465. + grep -v '^ *+' conftest.er1 >conftest.err
  10466. + rm -f conftest.er1
  10467. + cat conftest.err >&5
  10468. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10469. (exit $ac_status); } &&
  10470. - { ac_try='test -s conftest$ac_exeext'
  10471. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10472. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10473. + (eval $ac_try) 2>&5
  10474. + ac_status=$?
  10475. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10476. + (exit $ac_status); }; } &&
  10477. + { ac_try='test -s conftest$ac_exeext'
  10478. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10479. (eval $ac_try) 2>&5
  10480. ac_status=$?
  10481. @@ -6954,7 +7189,8 @@
  10482. ac_cv_lib_dl_dlopen=no
  10483. fi
  10484. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10485. +rm -f conftest.err conftest.$ac_objext \
  10486. + conftest$ac_exeext conftest.$ac_ext
  10487. LIBS=$ac_check_lib_save_LIBS
  10488. fi
  10489. echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
  10490. @@ -6970,7 +7206,6 @@
  10491. ac_check_lib_save_LIBS=$LIBS
  10492. LIBS="-lsvld $LIBS"
  10493. cat >conftest.$ac_ext <<_ACEOF
  10494. -#line $LINENO "configure"
  10495. /* confdefs.h. */
  10496. _ACEOF
  10497. cat confdefs.h >>conftest.$ac_ext
  10498. @@ -6994,11 +7229,20 @@
  10499. _ACEOF
  10500. rm -f conftest.$ac_objext conftest$ac_exeext
  10501. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10502. - (eval $ac_link) 2>&5
  10503. + (eval $ac_link) 2>conftest.er1
  10504. ac_status=$?
  10505. + grep -v '^ *+' conftest.er1 >conftest.err
  10506. + rm -f conftest.er1
  10507. + cat conftest.err >&5
  10508. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10509. (exit $ac_status); } &&
  10510. - { ac_try='test -s conftest$ac_exeext'
  10511. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10512. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10513. + (eval $ac_try) 2>&5
  10514. + ac_status=$?
  10515. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10516. + (exit $ac_status); }; } &&
  10517. + { ac_try='test -s conftest$ac_exeext'
  10518. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10519. (eval $ac_try) 2>&5
  10520. ac_status=$?
  10521. @@ -7011,7 +7255,8 @@
  10522. ac_cv_lib_svld_dlopen=no
  10523. fi
  10524. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10525. +rm -f conftest.err conftest.$ac_objext \
  10526. + conftest$ac_exeext conftest.$ac_ext
  10527. LIBS=$ac_check_lib_save_LIBS
  10528. fi
  10529. echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5
  10530. @@ -7027,7 +7272,6 @@
  10531. ac_check_lib_save_LIBS=$LIBS
  10532. LIBS="-ldld $LIBS"
  10533. cat >conftest.$ac_ext <<_ACEOF
  10534. -#line $LINENO "configure"
  10535. /* confdefs.h. */
  10536. _ACEOF
  10537. cat confdefs.h >>conftest.$ac_ext
  10538. @@ -7051,11 +7295,20 @@
  10539. _ACEOF
  10540. rm -f conftest.$ac_objext conftest$ac_exeext
  10541. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10542. - (eval $ac_link) 2>&5
  10543. + (eval $ac_link) 2>conftest.er1
  10544. ac_status=$?
  10545. + grep -v '^ *+' conftest.er1 >conftest.err
  10546. + rm -f conftest.er1
  10547. + cat conftest.err >&5
  10548. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10549. (exit $ac_status); } &&
  10550. - { ac_try='test -s conftest$ac_exeext'
  10551. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10552. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10553. + (eval $ac_try) 2>&5
  10554. + ac_status=$?
  10555. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10556. + (exit $ac_status); }; } &&
  10557. + { ac_try='test -s conftest$ac_exeext'
  10558. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10559. (eval $ac_try) 2>&5
  10560. ac_status=$?
  10561. @@ -7068,7 +7321,8 @@
  10562. ac_cv_lib_dld_dld_link=no
  10563. fi
  10564. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10565. +rm -f conftest.err conftest.$ac_objext \
  10566. + conftest$ac_exeext conftest.$ac_ext
  10567. LIBS=$ac_check_lib_save_LIBS
  10568. fi
  10569. echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5
  10570. @@ -7123,7 +7377,7 @@
  10571. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10572. lt_status=$lt_dlunknown
  10573. cat > conftest.$ac_ext <<EOF
  10574. -#line 7126 "configure"
  10575. +#line 7380 "configure"
  10576. #include "confdefs.h"
  10577. #if HAVE_DLFCN_H
  10578. @@ -7221,7 +7475,7 @@
  10579. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10580. lt_status=$lt_dlunknown
  10581. cat > conftest.$ac_ext <<EOF
  10582. -#line 7224 "configure"
  10583. +#line 7478 "configure"
  10584. #include "confdefs.h"
  10585. #if HAVE_DLFCN_H
  10586. @@ -8005,7 +8259,6 @@
  10587. echo "$as_me:$LINENO: checking asm/errno.h usability" >&5
  10588. echo $ECHO_N "checking asm/errno.h usability... $ECHO_C" >&6
  10589. cat >conftest.$ac_ext <<_ACEOF
  10590. -#line $LINENO "configure"
  10591. /* confdefs.h. */
  10592. _ACEOF
  10593. cat confdefs.h >>conftest.$ac_ext
  10594. @@ -8016,11 +8269,20 @@
  10595. _ACEOF
  10596. rm -f conftest.$ac_objext
  10597. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10598. - (eval $ac_compile) 2>&5
  10599. + (eval $ac_compile) 2>conftest.er1
  10600. ac_status=$?
  10601. + grep -v '^ *+' conftest.er1 >conftest.err
  10602. + rm -f conftest.er1
  10603. + cat conftest.err >&5
  10604. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10605. (exit $ac_status); } &&
  10606. - { ac_try='test -s conftest.$ac_objext'
  10607. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10608. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10609. + (eval $ac_try) 2>&5
  10610. + ac_status=$?
  10611. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10612. + (exit $ac_status); }; } &&
  10613. + { ac_try='test -s conftest.$ac_objext'
  10614. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10615. (eval $ac_try) 2>&5
  10616. ac_status=$?
  10617. @@ -8033,7 +8295,7 @@
  10618. ac_header_compiler=no
  10619. fi
  10620. -rm -f conftest.$ac_objext conftest.$ac_ext
  10621. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10622. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10623. echo "${ECHO_T}$ac_header_compiler" >&6
  10624. @@ -8041,7 +8303,6 @@
  10625. echo "$as_me:$LINENO: checking asm/errno.h presence" >&5
  10626. echo $ECHO_N "checking asm/errno.h presence... $ECHO_C" >&6
  10627. cat >conftest.$ac_ext <<_ACEOF
  10628. -#line $LINENO "configure"
  10629. /* confdefs.h. */
  10630. _ACEOF
  10631. cat confdefs.h >>conftest.$ac_ext
  10632. @@ -8059,6 +8320,7 @@
  10633. (exit $ac_status); } >/dev/null; then
  10634. if test -s conftest.err; then
  10635. ac_cpp_err=$ac_c_preproc_warn_flag
  10636. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10637. else
  10638. ac_cpp_err=
  10639. fi
  10640. @@ -8078,33 +8340,32 @@
  10641. echo "${ECHO_T}$ac_header_preproc" >&6
  10642. # So? What about this header?
  10643. -case $ac_header_compiler:$ac_header_preproc in
  10644. - yes:no )
  10645. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10646. + yes:no: )
  10647. { echo "$as_me:$LINENO: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10648. echo "$as_me: WARNING: asm/errno.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10649. - { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
  10650. -echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  10651. - (
  10652. - cat <<\_ASBOX
  10653. -## ------------------------------------ ##
  10654. -## Report this to [email protected]. ##
  10655. -## ------------------------------------ ##
  10656. -_ASBOX
  10657. - ) |
  10658. - sed "s/^/$as_me: WARNING: /" >&2
  10659. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the compiler's result" >&5
  10660. +echo "$as_me: WARNING: asm/errno.h: proceeding with the compiler's result" >&2;}
  10661. + ac_header_preproc=yes
  10662. ;;
  10663. - no:yes )
  10664. + no:yes:* )
  10665. { echo "$as_me:$LINENO: WARNING: asm/errno.h: present but cannot be compiled" >&5
  10666. echo "$as_me: WARNING: asm/errno.h: present but cannot be compiled" >&2;}
  10667. - { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
  10668. -echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
  10669. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: check for missing prerequisite headers?" >&5
  10670. +echo "$as_me: WARNING: asm/errno.h: check for missing prerequisite headers?" >&2;}
  10671. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: see the Autoconf documentation" >&5
  10672. +echo "$as_me: WARNING: asm/errno.h: see the Autoconf documentation" >&2;}
  10673. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&5
  10674. +echo "$as_me: WARNING: asm/errno.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10675. { echo "$as_me:$LINENO: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&5
  10676. echo "$as_me: WARNING: asm/errno.h: proceeding with the preprocessor's result" >&2;}
  10677. + { echo "$as_me:$LINENO: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&5
  10678. +echo "$as_me: WARNING: asm/errno.h: in the future, the compiler will take precedence" >&2;}
  10679. (
  10680. cat <<\_ASBOX
  10681. -## ------------------------------------ ##
  10682. -## Report this to [email protected]. ##
  10683. -## ------------------------------------ ##
  10684. +## ------------------------------------------ ##
  10685. +## Report this to the AC_PACKAGE_NAME lists. ##
  10686. +## ------------------------------------------ ##
  10687. _ASBOX
  10688. ) |
  10689. sed "s/^/$as_me: WARNING: /" >&2
  10690. @@ -8145,7 +8406,6 @@
  10691. echo "$as_me:$LINENO: checking linux/atmsap.h usability" >&5
  10692. echo $ECHO_N "checking linux/atmsap.h usability... $ECHO_C" >&6
  10693. cat >conftest.$ac_ext <<_ACEOF
  10694. -#line $LINENO "configure"
  10695. /* confdefs.h. */
  10696. _ACEOF
  10697. cat confdefs.h >>conftest.$ac_ext
  10698. @@ -8156,11 +8416,20 @@
  10699. _ACEOF
  10700. rm -f conftest.$ac_objext
  10701. if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
  10702. - (eval $ac_compile) 2>&5
  10703. + (eval $ac_compile) 2>conftest.er1
  10704. ac_status=$?
  10705. + grep -v '^ *+' conftest.er1 >conftest.err
  10706. + rm -f conftest.er1
  10707. + cat conftest.err >&5
  10708. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10709. (exit $ac_status); } &&
  10710. - { ac_try='test -s conftest.$ac_objext'
  10711. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10712. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10713. + (eval $ac_try) 2>&5
  10714. + ac_status=$?
  10715. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10716. + (exit $ac_status); }; } &&
  10717. + { ac_try='test -s conftest.$ac_objext'
  10718. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10719. (eval $ac_try) 2>&5
  10720. ac_status=$?
  10721. @@ -8173,7 +8442,7 @@
  10722. ac_header_compiler=no
  10723. fi
  10724. -rm -f conftest.$ac_objext conftest.$ac_ext
  10725. +rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
  10726. echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
  10727. echo "${ECHO_T}$ac_header_compiler" >&6
  10728. @@ -8181,7 +8450,6 @@
  10729. echo "$as_me:$LINENO: checking linux/atmsap.h presence" >&5
  10730. echo $ECHO_N "checking linux/atmsap.h presence... $ECHO_C" >&6
  10731. cat >conftest.$ac_ext <<_ACEOF
  10732. -#line $LINENO "configure"
  10733. /* confdefs.h. */
  10734. _ACEOF
  10735. cat confdefs.h >>conftest.$ac_ext
  10736. @@ -8199,6 +8467,7 @@
  10737. (exit $ac_status); } >/dev/null; then
  10738. if test -s conftest.err; then
  10739. ac_cpp_err=$ac_c_preproc_warn_flag
  10740. + ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
  10741. else
  10742. ac_cpp_err=
  10743. fi
  10744. @@ -8218,33 +8487,32 @@
  10745. echo "${ECHO_T}$ac_header_preproc" >&6
  10746. # So? What about this header?
  10747. -case $ac_header_compiler:$ac_header_preproc in
  10748. - yes:no )
  10749. +case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
  10750. + yes:no: )
  10751. { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&5
  10752. echo "$as_me: WARNING: linux/atmsap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
  10753. - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
  10754. -echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  10755. - (
  10756. - cat <<\_ASBOX
  10757. -## ------------------------------------ ##
  10758. -## Report this to [email protected]. ##
  10759. -## ------------------------------------ ##
  10760. -_ASBOX
  10761. - ) |
  10762. - sed "s/^/$as_me: WARNING: /" >&2
  10763. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&5
  10764. +echo "$as_me: WARNING: linux/atmsap.h: proceeding with the compiler's result" >&2;}
  10765. + ac_header_preproc=yes
  10766. ;;
  10767. - no:yes )
  10768. + no:yes:* )
  10769. { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: present but cannot be compiled" >&5
  10770. echo "$as_me: WARNING: linux/atmsap.h: present but cannot be compiled" >&2;}
  10771. - { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
  10772. -echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
  10773. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&5
  10774. +echo "$as_me: WARNING: linux/atmsap.h: check for missing prerequisite headers?" >&2;}
  10775. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: see the Autoconf documentation" >&5
  10776. +echo "$as_me: WARNING: linux/atmsap.h: see the Autoconf documentation" >&2;}
  10777. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&5
  10778. +echo "$as_me: WARNING: linux/atmsap.h: section \"Present But Cannot Be Compiled\"" >&2;}
  10779. { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&5
  10780. echo "$as_me: WARNING: linux/atmsap.h: proceeding with the preprocessor's result" >&2;}
  10781. + { echo "$as_me:$LINENO: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&5
  10782. +echo "$as_me: WARNING: linux/atmsap.h: in the future, the compiler will take precedence" >&2;}
  10783. (
  10784. cat <<\_ASBOX
  10785. -## ------------------------------------ ##
  10786. -## Report this to [email protected]. ##
  10787. -## ------------------------------------ ##
  10788. +## ------------------------------------------ ##
  10789. +## Report this to the AC_PACKAGE_NAME lists. ##
  10790. +## ------------------------------------------ ##
  10791. _ASBOX
  10792. ) |
  10793. sed "s/^/$as_me: WARNING: /" >&2
  10794. @@ -8281,7 +8549,6 @@
  10795. ac_check_lib_save_LIBS=$LIBS
  10796. LIBS="-lresolv $LIBS"
  10797. cat >conftest.$ac_ext <<_ACEOF
  10798. -#line $LINENO "configure"
  10799. /* confdefs.h. */
  10800. _ACEOF
  10801. cat confdefs.h >>conftest.$ac_ext
  10802. @@ -8299,11 +8566,20 @@
  10803. _ACEOF
  10804. rm -f conftest.$ac_objext conftest$ac_exeext
  10805. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10806. - (eval $ac_link) 2>&5
  10807. + (eval $ac_link) 2>conftest.er1
  10808. ac_status=$?
  10809. + grep -v '^ *+' conftest.er1 >conftest.err
  10810. + rm -f conftest.er1
  10811. + cat conftest.err >&5
  10812. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10813. (exit $ac_status); } &&
  10814. - { ac_try='test -s conftest$ac_exeext'
  10815. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10816. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10817. + (eval $ac_try) 2>&5
  10818. + ac_status=$?
  10819. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10820. + (exit $ac_status); }; } &&
  10821. + { ac_try='test -s conftest$ac_exeext'
  10822. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10823. (eval $ac_try) 2>&5
  10824. ac_status=$?
  10825. @@ -8316,7 +8592,8 @@
  10826. ac_cv_lib_resolv_main=no
  10827. fi
  10828. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10829. +rm -f conftest.err conftest.$ac_objext \
  10830. + conftest$ac_exeext conftest.$ac_ext
  10831. LIBS=$ac_check_lib_save_LIBS
  10832. fi
  10833. echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_main" >&5
  10834. @@ -8477,7 +8754,6 @@
  10835. ac_check_lib_save_LIBS=$LIBS
  10836. LIBS="-lmpr $LIBS"
  10837. cat >conftest.$ac_ext <<_ACEOF
  10838. -#line $LINENO "configure"
  10839. /* confdefs.h. */
  10840. _ACEOF
  10841. cat confdefs.h >>conftest.$ac_ext
  10842. @@ -8495,11 +8771,20 @@
  10843. _ACEOF
  10844. rm -f conftest.$ac_objext conftest$ac_exeext
  10845. if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
  10846. - (eval $ac_link) 2>&5
  10847. + (eval $ac_link) 2>conftest.er1
  10848. ac_status=$?
  10849. + grep -v '^ *+' conftest.er1 >conftest.err
  10850. + rm -f conftest.er1
  10851. + cat conftest.err >&5
  10852. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10853. (exit $ac_status); } &&
  10854. - { ac_try='test -s conftest$ac_exeext'
  10855. + { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
  10856. + { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10857. + (eval $ac_try) 2>&5
  10858. + ac_status=$?
  10859. + echo "$as_me:$LINENO: \$? = $ac_status" >&5
  10860. + (exit $ac_status); }; } &&
  10861. + { ac_try='test -s conftest$ac_exeext'
  10862. { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
  10863. (eval $ac_try) 2>&5
  10864. ac_status=$?
  10865. @@ -8512,7 +8797,8 @@
  10866. ac_cv_lib_mpr_main=no
  10867. fi
  10868. -rm -f conftest.$ac_objext conftest$ac_exeext conftest.$ac_ext
  10869. +rm -f conftest.err conftest.$ac_objext \
  10870. + conftest$ac_exeext conftest.$ac_ext
  10871. LIBS=$ac_check_lib_save_LIBS
  10872. fi
  10873. echo "$as_me:$LINENO: result: $ac_cv_lib_mpr_main" >&5
  10874. @@ -8539,7 +8825,7 @@
  10875. fi;
  10876. - ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile src/test/Makefile src/debug/Makefile src/qgen/Makefile src/saal/Makefile src/sigd/Makefile src/maint/Makefile src/arpd/Makefile src/ilmid/Makefile src/ilmid/asn1/Makefile src/man/Makefile src/led/Makefile src/lane/Makefile src/mpoad/Makefile src/switch/Makefile src/switch/debug/Makefile src/switch/tcp/Makefile src/config/Makefile src/config/init-redhat/Makefile src/extra/Makefile src/extra/linux-atm.spec src/extra/ANS/Makefile"
  10877. + ac_config_files="$ac_config_files Makefile doc/Makefile m4/Makefile src/Makefile src/include/Makefile src/lib/Makefile"
  10878. cat >confcache <<\_ACEOF
  10879. # This file is a shell script that caches the results of configure
  10880. # tests run on this system so they can be shared between configure
  10881. @@ -8568,13 +8854,13 @@
  10882. # `set' does not quote correctly, so add quotes (double-quote
  10883. # substitution turns \\\\ into \\, and sed turns \\ into \).
  10884. sed -n \
  10885. - "s/'/'\\\\''/g;
  10886. - s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10887. + "s/'/'\\\\''/g;
  10888. + s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10889. ;;
  10890. *)
  10891. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10892. sed -n \
  10893. - "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10894. + "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
  10895. ;;
  10896. esac;
  10897. } |
  10898. @@ -8604,13 +8890,13 @@
  10899. # trailing colons and then remove the whole line if VPATH becomes empty
  10900. # (actually we leave an empty line to preserve line numbers).
  10901. if test "x$srcdir" = x.; then
  10902. - ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10903. + ac_vpsub='/^[ ]*VPATH[ ]*=/{
  10904. s/:*\$(srcdir):*/:/;
  10905. s/:*\${srcdir}:*/:/;
  10906. s/:*@srcdir@:*/:/;
  10907. -s/^\([^=]*=[ ]*\):*/\1/;
  10908. +s/^\([^=]*=[ ]*\):*/\1/;
  10909. s/:*$//;
  10910. -s/^[^=]*=[ ]*$//;
  10911. +s/^[^=]*=[ ]*$//;
  10912. }'
  10913. fi
  10914. @@ -8621,7 +8907,7 @@
  10915. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10916. # 1. Remove the extension, and $U if already installed.
  10917. ac_i=`echo "$ac_i" |
  10918. - sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10919. + sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
  10920. # 2. Add them.
  10921. ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
  10922. ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
  10923. @@ -8665,9 +8951,10 @@
  10924. elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
  10925. set -o posix
  10926. fi
  10927. +DUALCASE=1; export DUALCASE # for MKS sh
  10928. # Support unset when possible.
  10929. -if (FOO=FOO; unset FOO) >/dev/null 2>&1; then
  10930. +if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  10931. as_unset=unset
  10932. else
  10933. as_unset=false
  10934. @@ -8686,7 +8973,7 @@
  10935. LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
  10936. LC_TELEPHONE LC_TIME
  10937. do
  10938. - if (set +x; test -n "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10939. + if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
  10940. eval $as_var=C; export $as_var
  10941. else
  10942. $as_unset $as_var
  10943. @@ -8865,16 +9152,17 @@
  10944. if mkdir -p . 2>/dev/null; then
  10945. as_mkdir_p=:
  10946. else
  10947. + test -d ./-p && rmdir ./-p
  10948. as_mkdir_p=false
  10949. fi
  10950. as_executable_p="test -f"
  10951. # Sed expression to map a string onto a valid CPP name.
  10952. -as_tr_cpp="sed y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g"
  10953. +as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10954. # Sed expression to map a string onto a valid variable name.
  10955. -as_tr_sh="sed y%*+%pp%;s%[^_$as_cr_alnum]%_%g"
  10956. +as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10957. # IFS
  10958. @@ -8901,7 +9189,7 @@
  10959. cat >&5 <<_CSEOF
  10960. This file was extended by $as_me, which was
  10961. -generated by GNU Autoconf 2.57. Invocation command line was
  10962. +generated by GNU Autoconf 2.59. Invocation command line was
  10963. CONFIG_FILES = $CONFIG_FILES
  10964. CONFIG_HEADERS = $CONFIG_HEADERS
  10965. @@ -8945,9 +9233,9 @@
  10966. -d, --debug don't remove temporary files
  10967. --recheck update $as_me by reconfiguring in the same conditions
  10968. --file=FILE[:TEMPLATE]
  10969. - instantiate the configuration file FILE
  10970. + instantiate the configuration file FILE
  10971. --header=FILE[:TEMPLATE]
  10972. - instantiate the configuration header FILE
  10973. + instantiate the configuration header FILE
  10974. Configuration files:
  10975. $config_files
  10976. @@ -8964,11 +9252,10 @@
  10977. cat >>$CONFIG_STATUS <<_ACEOF
  10978. ac_cs_version="\\
  10979. config.status
  10980. -configured by $0, generated by GNU Autoconf 2.57,
  10981. +configured by $0, generated by GNU Autoconf 2.59,
  10982. with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
  10983. -Copyright 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
  10984. -Free Software Foundation, Inc.
  10985. +Copyright (C) 2003 Free Software Foundation, Inc.
  10986. This config.status script is free software; the Free Software Foundation
  10987. gives unlimited permission to copy, distribute and modify it."
  10988. srcdir=$srcdir
  10989. @@ -9080,27 +9367,6 @@
  10990. "src/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  10991. "src/include/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/include/Makefile" ;;
  10992. "src/lib/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  10993. - "src/test/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/test/Makefile" ;;
  10994. - "src/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/debug/Makefile" ;;
  10995. - "src/qgen/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/qgen/Makefile" ;;
  10996. - "src/saal/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/saal/Makefile" ;;
  10997. - "src/sigd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/sigd/Makefile" ;;
  10998. - "src/maint/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/maint/Makefile" ;;
  10999. - "src/arpd/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/arpd/Makefile" ;;
  11000. - "src/ilmid/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/Makefile" ;;
  11001. - "src/ilmid/asn1/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/ilmid/asn1/Makefile" ;;
  11002. - "src/man/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/man/Makefile" ;;
  11003. - "src/led/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/led/Makefile" ;;
  11004. - "src/lane/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/lane/Makefile" ;;
  11005. - "src/mpoad/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/mpoad/Makefile" ;;
  11006. - "src/switch/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/Makefile" ;;
  11007. - "src/switch/debug/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/debug/Makefile" ;;
  11008. - "src/switch/tcp/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/switch/tcp/Makefile" ;;
  11009. - "src/config/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/Makefile" ;;
  11010. - "src/config/init-redhat/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/config/init-redhat/Makefile" ;;
  11011. - "src/extra/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/Makefile" ;;
  11012. - "src/extra/linux-atm.spec" ) CONFIG_FILES="$CONFIG_FILES src/extra/linux-atm.spec" ;;
  11013. - "src/extra/ANS/Makefile" ) CONFIG_FILES="$CONFIG_FILES src/extra/ANS/Makefile" ;;
  11014. "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;;
  11015. "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11016. *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
  11017. @@ -9267,9 +9533,9 @@
  11018. (echo ':t
  11019. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
  11020. if test -z "$ac_sed_cmds"; then
  11021. - ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11022. + ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
  11023. else
  11024. - ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11025. + ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
  11026. fi
  11027. ac_sed_frag=`expr $ac_sed_frag + 1`
  11028. ac_beg=$ac_end
  11029. @@ -9287,21 +9553,21 @@
  11030. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11031. case $ac_file in
  11032. - | *:- | *:-:* ) # input from stdin
  11033. - cat >$tmp/stdin
  11034. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11035. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11036. + cat >$tmp/stdin
  11037. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11038. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11039. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11040. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11041. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11042. * ) ac_file_in=$ac_file.in ;;
  11043. esac
  11044. # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
  11045. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11046. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11047. - X"$ac_file" : 'X\(//\)[^/]' \| \
  11048. - X"$ac_file" : 'X\(//\)$' \| \
  11049. - X"$ac_file" : 'X\(/\)' \| \
  11050. - . : '\(.\)' 2>/dev/null ||
  11051. + X"$ac_file" : 'X\(//\)[^/]' \| \
  11052. + X"$ac_file" : 'X\(//\)$' \| \
  11053. + X"$ac_file" : 'X\(/\)' \| \
  11054. + . : '\(.\)' 2>/dev/null ||
  11055. echo X"$ac_file" |
  11056. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11057. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11058. @@ -9317,10 +9583,10 @@
  11059. as_dirs="$as_dir $as_dirs"
  11060. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11061. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11062. - X"$as_dir" : 'X\(//\)[^/]' \| \
  11063. - X"$as_dir" : 'X\(//\)$' \| \
  11064. - X"$as_dir" : 'X\(/\)' \| \
  11065. - . : '\(.\)' 2>/dev/null ||
  11066. + X"$as_dir" : 'X\(//\)[^/]' \| \
  11067. + X"$as_dir" : 'X\(//\)$' \| \
  11068. + X"$as_dir" : 'X\(/\)' \| \
  11069. + . : '\(.\)' 2>/dev/null ||
  11070. echo X"$as_dir" |
  11071. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11072. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11073. @@ -9358,12 +9624,45 @@
  11074. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11075. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11076. esac
  11077. -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  11078. -# absolute.
  11079. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  11080. -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  11081. -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  11082. -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  11083. +
  11084. +# Do not use `cd foo && pwd` to compute absolute paths, because
  11085. +# the directories may not exist.
  11086. +case `pwd` in
  11087. +.) ac_abs_builddir="$ac_dir";;
  11088. +*)
  11089. + case "$ac_dir" in
  11090. + .) ac_abs_builddir=`pwd`;;
  11091. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11092. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11093. + esac;;
  11094. +esac
  11095. +case $ac_abs_builddir in
  11096. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  11097. +*)
  11098. + case ${ac_top_builddir}. in
  11099. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  11100. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11101. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11102. + esac;;
  11103. +esac
  11104. +case $ac_abs_builddir in
  11105. +.) ac_abs_srcdir=$ac_srcdir;;
  11106. +*)
  11107. + case $ac_srcdir in
  11108. + .) ac_abs_srcdir=$ac_abs_builddir;;
  11109. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11110. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11111. + esac;;
  11112. +esac
  11113. +case $ac_abs_builddir in
  11114. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  11115. +*)
  11116. + case $ac_top_srcdir in
  11117. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11118. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11119. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11120. + esac;;
  11121. +esac
  11122. case $INSTALL in
  11123. @@ -9371,11 +9670,6 @@
  11124. *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
  11125. esac
  11126. - if test x"$ac_file" != x-; then
  11127. - { echo "$as_me:$LINENO: creating $ac_file" >&5
  11128. -echo "$as_me: creating $ac_file" >&6;}
  11129. - rm -f "$ac_file"
  11130. - fi
  11131. # Let's still pretend it is `configure' which instantiates (i.e., don't
  11132. # use $as_me), people would be surprised to read:
  11133. # /* config.h. Generated by config.status. */
  11134. @@ -9385,7 +9679,7 @@
  11135. configure_input="$ac_file. "
  11136. fi
  11137. configure_input=$configure_input"Generated from `echo $ac_file_in |
  11138. - sed 's,.*/,,'` by configure."
  11139. + sed 's,.*/,,'` by configure."
  11140. # First look for the input files in the build tree, otherwise in the
  11141. # src tree.
  11142. @@ -9394,26 +9688,32 @@
  11143. case $f in
  11144. -) echo $tmp/stdin ;;
  11145. [\\/$]*)
  11146. - # Absolute (can't be DOS-style, as IFS=:)
  11147. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11148. + # Absolute (can't be DOS-style, as IFS=:)
  11149. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11150. echo "$as_me: error: cannot find input file: $f" >&2;}
  11151. { (exit 1); exit 1; }; }
  11152. - echo $f;;
  11153. + echo "$f";;
  11154. *) # Relative
  11155. - if test -f "$f"; then
  11156. - # Build tree
  11157. - echo $f
  11158. - elif test -f "$srcdir/$f"; then
  11159. - # Source tree
  11160. - echo $srcdir/$f
  11161. - else
  11162. - # /dev/null tree
  11163. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11164. + if test -f "$f"; then
  11165. + # Build tree
  11166. + echo "$f"
  11167. + elif test -f "$srcdir/$f"; then
  11168. + # Source tree
  11169. + echo "$srcdir/$f"
  11170. + else
  11171. + # /dev/null tree
  11172. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11173. echo "$as_me: error: cannot find input file: $f" >&2;}
  11174. { (exit 1); exit 1; }; }
  11175. - fi;;
  11176. + fi;;
  11177. esac
  11178. done` || { (exit 1); exit 1; }
  11179. +
  11180. + if test x"$ac_file" != x-; then
  11181. + { echo "$as_me:$LINENO: creating $ac_file" >&5
  11182. +echo "$as_me: creating $ac_file" >&6;}
  11183. + rm -f "$ac_file"
  11184. + fi
  11185. _ACEOF
  11186. cat >>$CONFIG_STATUS <<_ACEOF
  11187. sed "$ac_vpsub
  11188. @@ -9453,12 +9753,12 @@
  11189. # NAME is the cpp macro being defined and VALUE is the value it is being given.
  11190. #
  11191. # ac_d sets the value in "#define NAME VALUE" lines.
  11192. -ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11193. -ac_dB='[ ].*$,\1#\2'
  11194. +ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)'
  11195. +ac_dB='[ ].*$,\1#\2'
  11196. ac_dC=' '
  11197. ac_dD=',;t'
  11198. # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
  11199. -ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11200. +ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)'
  11201. ac_uB='$,\1#\2define\3'
  11202. ac_uC=' '
  11203. ac_uD=',;t'
  11204. @@ -9467,11 +9767,11 @@
  11205. # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
  11206. case $ac_file in
  11207. - | *:- | *:-:* ) # input from stdin
  11208. - cat >$tmp/stdin
  11209. - ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11210. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11211. + cat >$tmp/stdin
  11212. + ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11213. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11214. *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11215. - ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11216. + ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
  11217. * ) ac_file_in=$ac_file.in ;;
  11218. esac
  11219. @@ -9485,28 +9785,29 @@
  11220. case $f in
  11221. -) echo $tmp/stdin ;;
  11222. [\\/$]*)
  11223. - # Absolute (can't be DOS-style, as IFS=:)
  11224. - test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11225. + # Absolute (can't be DOS-style, as IFS=:)
  11226. + test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11227. echo "$as_me: error: cannot find input file: $f" >&2;}
  11228. { (exit 1); exit 1; }; }
  11229. - echo $f;;
  11230. + # Do quote $f, to prevent DOS paths from being IFS'd.
  11231. + echo "$f";;
  11232. *) # Relative
  11233. - if test -f "$f"; then
  11234. - # Build tree
  11235. - echo $f
  11236. - elif test -f "$srcdir/$f"; then
  11237. - # Source tree
  11238. - echo $srcdir/$f
  11239. - else
  11240. - # /dev/null tree
  11241. - { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11242. + if test -f "$f"; then
  11243. + # Build tree
  11244. + echo "$f"
  11245. + elif test -f "$srcdir/$f"; then
  11246. + # Source tree
  11247. + echo "$srcdir/$f"
  11248. + else
  11249. + # /dev/null tree
  11250. + { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
  11251. echo "$as_me: error: cannot find input file: $f" >&2;}
  11252. { (exit 1); exit 1; }; }
  11253. - fi;;
  11254. + fi;;
  11255. esac
  11256. done` || { (exit 1); exit 1; }
  11257. # Remove the trailing spaces.
  11258. - sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11259. + sed 's/[ ]*$//' $ac_file_inputs >$tmp/in
  11260. _ACEOF
  11261. @@ -9529,9 +9830,9 @@
  11262. s,[\\$`],\\&,g
  11263. t clear
  11264. : clear
  11265. -s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11266. +s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp
  11267. t end
  11268. -s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11269. +s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp
  11270. : end
  11271. _ACEOF
  11272. # If some macros were called several times there might be several times
  11273. @@ -9545,13 +9846,13 @@
  11274. # example, in the case of _POSIX_SOURCE, which is predefined and required
  11275. # on some systems where configure will not decide to define it.
  11276. cat >>conftest.undefs <<\_ACEOF
  11277. -s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11278. +s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */,
  11279. _ACEOF
  11280. # Break up conftest.defines because some shells have a limit on the size
  11281. # of here documents, and old seds have small limits too (100 cmds).
  11282. echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS
  11283. -echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11284. +echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS
  11285. echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS
  11286. echo ' :' >>$CONFIG_STATUS
  11287. rm -f conftest.tail
  11288. @@ -9560,7 +9861,7 @@
  11289. # Write a limited-size here document to $tmp/defines.sed.
  11290. echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS
  11291. # Speed up: don't consider the non `#define' lines.
  11292. - echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11293. + echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS
  11294. # Work around the forget-to-reset-the-flag bug.
  11295. echo 't clr' >>$CONFIG_STATUS
  11296. echo ': clr' >>$CONFIG_STATUS
  11297. @@ -9587,7 +9888,7 @@
  11298. # Write a limited-size here document to $tmp/undefs.sed.
  11299. echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS
  11300. # Speed up: don't consider the non `#undef'
  11301. - echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11302. + echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS
  11303. # Work around the forget-to-reset-the-flag bug.
  11304. echo 't clr' >>$CONFIG_STATUS
  11305. echo ': clr' >>$CONFIG_STATUS
  11306. @@ -9621,10 +9922,10 @@
  11307. else
  11308. ac_dir=`(dirname "$ac_file") 2>/dev/null ||
  11309. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11310. - X"$ac_file" : 'X\(//\)[^/]' \| \
  11311. - X"$ac_file" : 'X\(//\)$' \| \
  11312. - X"$ac_file" : 'X\(/\)' \| \
  11313. - . : '\(.\)' 2>/dev/null ||
  11314. + X"$ac_file" : 'X\(//\)[^/]' \| \
  11315. + X"$ac_file" : 'X\(//\)$' \| \
  11316. + X"$ac_file" : 'X\(/\)' \| \
  11317. + . : '\(.\)' 2>/dev/null ||
  11318. echo X"$ac_file" |
  11319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11320. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11321. @@ -9640,10 +9941,10 @@
  11322. as_dirs="$as_dir $as_dirs"
  11323. as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11324. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11325. - X"$as_dir" : 'X\(//\)[^/]' \| \
  11326. - X"$as_dir" : 'X\(//\)$' \| \
  11327. - X"$as_dir" : 'X\(/\)' \| \
  11328. - . : '\(.\)' 2>/dev/null ||
  11329. + X"$as_dir" : 'X\(//\)[^/]' \| \
  11330. + X"$as_dir" : 'X\(//\)$' \| \
  11331. + X"$as_dir" : 'X\(/\)' \| \
  11332. + . : '\(.\)' 2>/dev/null ||
  11333. echo X"$as_dir" |
  11334. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11335. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11336. @@ -9675,16 +9976,41 @@
  11337. ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'`
  11338. ac_dir=`(dirname "$ac_dest") 2>/dev/null ||
  11339. $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11340. - X"$ac_dest" : 'X\(//\)[^/]' \| \
  11341. - X"$ac_dest" : 'X\(//\)$' \| \
  11342. - X"$ac_dest" : 'X\(/\)' \| \
  11343. - . : '\(.\)' 2>/dev/null ||
  11344. + X"$ac_dest" : 'X\(//\)[^/]' \| \
  11345. + X"$ac_dest" : 'X\(//\)$' \| \
  11346. + X"$ac_dest" : 'X\(/\)' \| \
  11347. + . : '\(.\)' 2>/dev/null ||
  11348. echo X"$ac_dest" |
  11349. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11350. /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11351. /^X\(\/\/\)$/{ s//\1/; q; }
  11352. /^X\(\/\).*/{ s//\1/; q; }
  11353. s/.*/./; q'`
  11354. + { if $as_mkdir_p; then
  11355. + mkdir -p "$ac_dir"
  11356. + else
  11357. + as_dir="$ac_dir"
  11358. + as_dirs=
  11359. + while test ! -d "$as_dir"; do
  11360. + as_dirs="$as_dir $as_dirs"
  11361. + as_dir=`(dirname "$as_dir") 2>/dev/null ||
  11362. +$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11363. + X"$as_dir" : 'X\(//\)[^/]' \| \
  11364. + X"$as_dir" : 'X\(//\)$' \| \
  11365. + X"$as_dir" : 'X\(/\)' \| \
  11366. + . : '\(.\)' 2>/dev/null ||
  11367. +echo X"$as_dir" |
  11368. + sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
  11369. + /^X\(\/\/\)[^/].*/{ s//\1/; q; }
  11370. + /^X\(\/\/\)$/{ s//\1/; q; }
  11371. + /^X\(\/\).*/{ s//\1/; q; }
  11372. + s/.*/./; q'`
  11373. + done
  11374. + test ! -n "$as_dirs" || mkdir $as_dirs
  11375. + fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
  11376. +echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
  11377. + { (exit 1); exit 1; }; }; }
  11378. +
  11379. ac_builddir=.
  11380. if test "$ac_dir" != .; then
  11381. @@ -9710,12 +10036,45 @@
  11382. ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
  11383. ac_top_srcdir=$ac_top_builddir$srcdir ;;
  11384. esac
  11385. -# Don't blindly perform a `cd "$ac_dir"/$ac_foo && pwd` since $ac_foo can be
  11386. -# absolute.
  11387. -ac_abs_builddir=`cd "$ac_dir" && cd $ac_builddir && pwd`
  11388. -ac_abs_top_builddir=`cd "$ac_dir" && cd ${ac_top_builddir}. && pwd`
  11389. -ac_abs_srcdir=`cd "$ac_dir" && cd $ac_srcdir && pwd`
  11390. -ac_abs_top_srcdir=`cd "$ac_dir" && cd $ac_top_srcdir && pwd`
  11391. +
  11392. +# Do not use `cd foo && pwd` to compute absolute paths, because
  11393. +# the directories may not exist.
  11394. +case `pwd` in
  11395. +.) ac_abs_builddir="$ac_dir";;
  11396. +*)
  11397. + case "$ac_dir" in
  11398. + .) ac_abs_builddir=`pwd`;;
  11399. + [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
  11400. + *) ac_abs_builddir=`pwd`/"$ac_dir";;
  11401. + esac;;
  11402. +esac
  11403. +case $ac_abs_builddir in
  11404. +.) ac_abs_top_builddir=${ac_top_builddir}.;;
  11405. +*)
  11406. + case ${ac_top_builddir}. in
  11407. + .) ac_abs_top_builddir=$ac_abs_builddir;;
  11408. + [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
  11409. + *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
  11410. + esac;;
  11411. +esac
  11412. +case $ac_abs_builddir in
  11413. +.) ac_abs_srcdir=$ac_srcdir;;
  11414. +*)
  11415. + case $ac_srcdir in
  11416. + .) ac_abs_srcdir=$ac_abs_builddir;;
  11417. + [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
  11418. + *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
  11419. + esac;;
  11420. +esac
  11421. +case $ac_abs_builddir in
  11422. +.) ac_abs_top_srcdir=$ac_top_srcdir;;
  11423. +*)
  11424. + case $ac_top_srcdir in
  11425. + .) ac_abs_top_srcdir=$ac_abs_builddir;;
  11426. + [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
  11427. + *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
  11428. + esac;;
  11429. +esac
  11430. { echo "$as_me:$LINENO: executing $ac_dest commands" >&5
  11431. Index: linux-atm-2.4.1/doc/Makefile.in
  11432. ===================================================================
  11433. --- linux-atm-2.4.1.orig/doc/Makefile.in 2007-10-20 19:19:12.494340491 +0200
  11434. +++ linux-atm-2.4.1/doc/Makefile.in 2007-10-20 19:19:17.606631822 +0200
  11435. @@ -63,24 +63,35 @@
  11436. host_triplet = @host@
  11437. target_alias = @target_alias@
  11438. target_triplet = @target@
  11439. +AR = @AR@
  11440. AS = @AS@
  11441. CC = @CC@
  11442. +CXX = @CXX@
  11443. +CXXCPP = @CXXCPP@
  11444. DLLTOOL = @DLLTOOL@
  11445. ECHO = @ECHO@
  11446. +EGREP = @EGREP@
  11447. EXEEXT = @EXEEXT@
  11448. +F77 = @F77@
  11449. +GCJ = @GCJ@
  11450. +GCJFLAGS = @GCJFLAGS@
  11451. +HAVE_LIB = @HAVE_LIB@
  11452. LEX = @LEX@
  11453. +LIB = @LIB@
  11454. LIBTOOL = @LIBTOOL@
  11455. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  11456. LIBVER_AGE = @LIBVER_AGE@
  11457. LIBVER_CURRENT = @LIBVER_CURRENT@
  11458. LIBVER_REVISION = @LIBVER_REVISION@
  11459. LN_S = @LN_S@
  11460. +LTLIB = @LTLIB@
  11461. MAKEINFO = @MAKEINFO@
  11462. OBJDUMP = @OBJDUMP@
  11463. OBJEXT = @OBJEXT@
  11464. PACKAGE = @PACKAGE@
  11465. PERL = @PERL@
  11466. RANLIB = @RANLIB@
  11467. +RC = @RC@
  11468. STRIP = @STRIP@
  11469. VERSION = @VERSION@
  11470. YACC = @YACC@
  11471. Index: linux-atm-2.4.1/m4/Makefile.in
  11472. ===================================================================
  11473. --- linux-atm-2.4.1.orig/m4/Makefile.in 2007-10-20 19:19:11.778299683 +0200
  11474. +++ linux-atm-2.4.1/m4/Makefile.in 2007-10-20 19:19:17.606631822 +0200
  11475. @@ -63,24 +63,35 @@
  11476. host_triplet = @host@
  11477. target_alias = @target_alias@
  11478. target_triplet = @target@
  11479. +AR = @AR@
  11480. AS = @AS@
  11481. CC = @CC@
  11482. +CXX = @CXX@
  11483. +CXXCPP = @CXXCPP@
  11484. DLLTOOL = @DLLTOOL@
  11485. ECHO = @ECHO@
  11486. +EGREP = @EGREP@
  11487. EXEEXT = @EXEEXT@
  11488. +F77 = @F77@
  11489. +GCJ = @GCJ@
  11490. +GCJFLAGS = @GCJFLAGS@
  11491. +HAVE_LIB = @HAVE_LIB@
  11492. LEX = @LEX@
  11493. +LIB = @LIB@
  11494. LIBTOOL = @LIBTOOL@
  11495. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  11496. LIBVER_AGE = @LIBVER_AGE@
  11497. LIBVER_CURRENT = @LIBVER_CURRENT@
  11498. LIBVER_REVISION = @LIBVER_REVISION@
  11499. LN_S = @LN_S@
  11500. +LTLIB = @LTLIB@
  11501. MAKEINFO = @MAKEINFO@
  11502. OBJDUMP = @OBJDUMP@
  11503. OBJEXT = @OBJEXT@
  11504. PACKAGE = @PACKAGE@
  11505. PERL = @PERL@
  11506. RANLIB = @RANLIB@
  11507. +RC = @RC@
  11508. STRIP = @STRIP@
  11509. VERSION = @VERSION@
  11510. YACC = @YACC@
  11511. Index: linux-atm-2.4.1/Makefile.in
  11512. ===================================================================
  11513. --- linux-atm-2.4.1.orig/Makefile.in 2007-10-20 19:19:11.698295124 +0200
  11514. +++ linux-atm-2.4.1/Makefile.in 2007-10-20 19:19:17.614632281 +0200
  11515. @@ -63,24 +63,35 @@
  11516. host_triplet = @host@
  11517. target_alias = @target_alias@
  11518. target_triplet = @target@
  11519. +AR = @AR@
  11520. AS = @AS@
  11521. CC = @CC@
  11522. +CXX = @CXX@
  11523. +CXXCPP = @CXXCPP@
  11524. DLLTOOL = @DLLTOOL@
  11525. ECHO = @ECHO@
  11526. +EGREP = @EGREP@
  11527. EXEEXT = @EXEEXT@
  11528. +F77 = @F77@
  11529. +GCJ = @GCJ@
  11530. +GCJFLAGS = @GCJFLAGS@
  11531. +HAVE_LIB = @HAVE_LIB@
  11532. LEX = @LEX@
  11533. +LIB = @LIB@
  11534. LIBTOOL = @LIBTOOL@
  11535. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  11536. LIBVER_AGE = @LIBVER_AGE@
  11537. LIBVER_CURRENT = @LIBVER_CURRENT@
  11538. LIBVER_REVISION = @LIBVER_REVISION@
  11539. LN_S = @LN_S@
  11540. +LTLIB = @LTLIB@
  11541. MAKEINFO = @MAKEINFO@
  11542. OBJDUMP = @OBJDUMP@
  11543. OBJEXT = @OBJEXT@
  11544. PACKAGE = @PACKAGE@
  11545. PERL = @PERL@
  11546. RANLIB = @RANLIB@
  11547. +RC = @RC@
  11548. STRIP = @STRIP@
  11549. VERSION = @VERSION@
  11550. YACC = @YACC@
  11551. Index: linux-atm-2.4.1/src/include/Makefile.in
  11552. ===================================================================
  11553. --- linux-atm-2.4.1.orig/src/include/Makefile.in 2007-10-20 19:19:11.798300823 +0200
  11554. +++ linux-atm-2.4.1/src/include/Makefile.in 2007-10-20 19:19:17.626632961 +0200
  11555. @@ -63,24 +63,35 @@
  11556. host_triplet = @host@
  11557. target_alias = @target_alias@
  11558. target_triplet = @target@
  11559. +AR = @AR@
  11560. AS = @AS@
  11561. CC = @CC@
  11562. +CXX = @CXX@
  11563. +CXXCPP = @CXXCPP@
  11564. DLLTOOL = @DLLTOOL@
  11565. ECHO = @ECHO@
  11566. +EGREP = @EGREP@
  11567. EXEEXT = @EXEEXT@
  11568. +F77 = @F77@
  11569. +GCJ = @GCJ@
  11570. +GCJFLAGS = @GCJFLAGS@
  11571. +HAVE_LIB = @HAVE_LIB@
  11572. LEX = @LEX@
  11573. +LIB = @LIB@
  11574. LIBTOOL = @LIBTOOL@
  11575. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  11576. LIBVER_AGE = @LIBVER_AGE@
  11577. LIBVER_CURRENT = @LIBVER_CURRENT@
  11578. LIBVER_REVISION = @LIBVER_REVISION@
  11579. LN_S = @LN_S@
  11580. +LTLIB = @LTLIB@
  11581. MAKEINFO = @MAKEINFO@
  11582. OBJDUMP = @OBJDUMP@
  11583. OBJEXT = @OBJEXT@
  11584. PACKAGE = @PACKAGE@
  11585. PERL = @PERL@
  11586. RANLIB = @RANLIB@
  11587. +RC = @RC@
  11588. STRIP = @STRIP@
  11589. VERSION = @VERSION@
  11590. YACC = @YACC@
  11591. Index: linux-atm-2.4.1/src/lib/Makefile.in
  11592. ===================================================================
  11593. --- linux-atm-2.4.1.orig/src/lib/Makefile.in 2007-10-20 19:19:11.806301281 +0200
  11594. +++ linux-atm-2.4.1/src/lib/Makefile.in 2007-10-20 19:19:17.642633872 +0200
  11595. @@ -65,24 +65,35 @@
  11596. host_triplet = @host@
  11597. target_alias = @target_alias@
  11598. target_triplet = @target@
  11599. +AR = @AR@
  11600. AS = @AS@
  11601. CC = @CC@
  11602. +CXX = @CXX@
  11603. +CXXCPP = @CXXCPP@
  11604. DLLTOOL = @DLLTOOL@
  11605. ECHO = @ECHO@
  11606. +EGREP = @EGREP@
  11607. EXEEXT = @EXEEXT@
  11608. +F77 = @F77@
  11609. +GCJ = @GCJ@
  11610. +GCJFLAGS = @GCJFLAGS@
  11611. +HAVE_LIB = @HAVE_LIB@
  11612. LEX = @LEX@
  11613. +LIB = @LIB@
  11614. LIBTOOL = @LIBTOOL@
  11615. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  11616. LIBVER_AGE = @LIBVER_AGE@
  11617. LIBVER_CURRENT = @LIBVER_CURRENT@
  11618. LIBVER_REVISION = @LIBVER_REVISION@
  11619. LN_S = @LN_S@
  11620. +LTLIB = @LTLIB@
  11621. MAKEINFO = @MAKEINFO@
  11622. OBJDUMP = @OBJDUMP@
  11623. OBJEXT = @OBJEXT@
  11624. PACKAGE = @PACKAGE@
  11625. PERL = @PERL@
  11626. RANLIB = @RANLIB@
  11627. +RC = @RC@
  11628. STRIP = @STRIP@
  11629. VERSION = @VERSION@
  11630. YACC = @YACC@
  11631. Index: linux-atm-2.4.1/src/Makefile.in
  11632. ===================================================================
  11633. --- linux-atm-2.4.1.orig/src/Makefile.in 2007-10-20 19:19:11.790300372 +0200
  11634. +++ linux-atm-2.4.1/src/Makefile.in 2007-10-20 19:19:17.650634330 +0200
  11635. @@ -63,30 +63,40 @@
  11636. host_triplet = @host@
  11637. target_alias = @target_alias@
  11638. target_triplet = @target@
  11639. +AR = @AR@
  11640. AS = @AS@
  11641. CC = @CC@
  11642. +CXX = @CXX@
  11643. +CXXCPP = @CXXCPP@
  11644. DLLTOOL = @DLLTOOL@
  11645. ECHO = @ECHO@
  11646. +EGREP = @EGREP@
  11647. EXEEXT = @EXEEXT@
  11648. +F77 = @F77@
  11649. +GCJ = @GCJ@
  11650. +GCJFLAGS = @GCJFLAGS@
  11651. +HAVE_LIB = @HAVE_LIB@
  11652. LEX = @LEX@
  11653. +LIB = @LIB@
  11654. LIBTOOL = @LIBTOOL@
  11655. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  11656. LIBVER_AGE = @LIBVER_AGE@
  11657. LIBVER_CURRENT = @LIBVER_CURRENT@
  11658. LIBVER_REVISION = @LIBVER_REVISION@
  11659. LN_S = @LN_S@
  11660. +LTLIB = @LTLIB@
  11661. MAKEINFO = @MAKEINFO@
  11662. OBJDUMP = @OBJDUMP@
  11663. OBJEXT = @OBJEXT@
  11664. PACKAGE = @PACKAGE@
  11665. PERL = @PERL@
  11666. RANLIB = @RANLIB@
  11667. +RC = @RC@
  11668. STRIP = @STRIP@
  11669. VERSION = @VERSION@
  11670. YACC = @YACC@
  11671. -SUBDIRS = include lib
  11672. -
  11673. +SUBDIRS = include lib
  11674. mkinstalldirs = $(SHELL) $(top_srcdir)/mkinstalldirs
  11675. CONFIG_HEADER = ../config.h
  11676. CONFIG_CLEAN_FILES =
  11677. Index: linux-atm-2.4.1/src/arpd/Makefile.in
  11678. ===================================================================
  11679. --- linux-atm-2.4.1.orig/src/arpd/Makefile.in 2007-10-20 19:19:12.126319517 +0200
  11680. +++ linux-atm-2.4.1/src/arpd/Makefile.in 2007-10-20 19:19:17.654634561 +0200
  11681. @@ -63,24 +63,35 @@
  11682. host_triplet = @host@
  11683. target_alias = @target_alias@
  11684. target_triplet = @target@
  11685. +AR = @AR@
  11686. AS = @AS@
  11687. CC = @CC@
  11688. +CXX = @CXX@
  11689. +CXXCPP = @CXXCPP@
  11690. DLLTOOL = @DLLTOOL@
  11691. ECHO = @ECHO@
  11692. +EGREP = @EGREP@
  11693. EXEEXT = @EXEEXT@
  11694. +F77 = @F77@
  11695. +GCJ = @GCJ@
  11696. +GCJFLAGS = @GCJFLAGS@
  11697. +HAVE_LIB = @HAVE_LIB@
  11698. LEX = @LEX@
  11699. +LIB = @LIB@
  11700. LIBTOOL = @LIBTOOL@
  11701. LIBTOOL_DEPS = @LIBTOOL_DEPS@
  11702. LIBVER_AGE = @LIBVER_AGE@
  11703. LIBVER_CURRENT = @LIBVER_CURRENT@
  11704. LIBVER_REVISION = @LIBVER_REVISION@
  11705. LN_S = @LN_S@
  11706. +LTLIB = @LTLIB@
  11707. MAKEINFO = @MAKEINFO@
  11708. OBJDUMP = @OBJDUMP@
  11709. OBJEXT = @OBJEXT@
  11710. PACKAGE = @PACKAGE@
  11711. PERL = @PERL@
  11712. RANLIB = @RANLIB@
  11713. +RC = @RC@
  11714. STRIP = @STRIP@
  11715. VERSION = @VERSION@
  11716. YACC = @YACC@