output.0 453 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307230823092310231123122313231423152316231723182319232023212322232323242325232623272328232923302331233223332334233523362337233823392340234123422343234423452346234723482349235023512352235323542355235623572358235923602361236223632364236523662367236823692370237123722373237423752376237723782379238023812382238323842385238623872388238923902391239223932394239523962397239823992400240124022403240424052406240724082409241024112412241324142415241624172418241924202421242224232424242524262427242824292430243124322433243424352436243724382439244024412442244324442445244624472448244924502451245224532454245524562457245824592460246124622463246424652466246724682469247024712472247324742475247624772478247924802481248224832484248524862487248824892490249124922493249424952496249724982499250025012502250325042505250625072508250925102511251225132514251525162517251825192520252125222523252425252526252725282529253025312532253325342535253625372538253925402541254225432544254525462547254825492550255125522553255425552556255725582559256025612562256325642565256625672568256925702571257225732574257525762577257825792580258125822583258425852586258725882589259025912592259325942595259625972598259926002601260226032604260526062607260826092610261126122613261426152616261726182619262026212622262326242625262626272628262926302631263226332634263526362637263826392640264126422643264426452646264726482649265026512652265326542655265626572658265926602661266226632664266526662667266826692670267126722673267426752676267726782679268026812682268326842685268626872688268926902691269226932694269526962697269826992700270127022703270427052706270727082709271027112712271327142715271627172718271927202721272227232724272527262727272827292730273127322733273427352736273727382739274027412742274327442745274627472748274927502751275227532754275527562757275827592760276127622763276427652766276727682769277027712772277327742775277627772778277927802781278227832784278527862787278827892790279127922793279427952796279727982799280028012802280328042805280628072808280928102811281228132814281528162817281828192820282128222823282428252826282728282829283028312832283328342835283628372838283928402841284228432844284528462847284828492850285128522853285428552856285728582859286028612862286328642865286628672868286928702871287228732874287528762877287828792880288128822883288428852886288728882889289028912892289328942895289628972898289929002901290229032904290529062907290829092910291129122913291429152916291729182919292029212922292329242925292629272928292929302931293229332934293529362937293829392940294129422943294429452946294729482949295029512952295329542955295629572958295929602961296229632964296529662967296829692970297129722973297429752976297729782979298029812982298329842985298629872988298929902991299229932994299529962997299829993000300130023003300430053006300730083009301030113012301330143015301630173018301930203021302230233024302530263027302830293030303130323033303430353036303730383039304030413042304330443045304630473048304930503051305230533054305530563057305830593060306130623063306430653066306730683069307030713072307330743075307630773078307930803081308230833084308530863087308830893090309130923093309430953096309730983099310031013102310331043105310631073108310931103111311231133114311531163117311831193120312131223123312431253126312731283129313031313132313331343135313631373138313931403141314231433144314531463147314831493150315131523153315431553156315731583159316031613162316331643165316631673168316931703171317231733174317531763177317831793180318131823183318431853186318731883189319031913192319331943195319631973198319932003201320232033204320532063207320832093210321132123213321432153216321732183219322032213222322332243225322632273228322932303231323232333234323532363237323832393240324132423243324432453246324732483249325032513252325332543255325632573258325932603261326232633264326532663267326832693270327132723273327432753276327732783279328032813282328332843285328632873288328932903291329232933294329532963297329832993300330133023303330433053306330733083309331033113312331333143315331633173318331933203321332233233324332533263327332833293330333133323333333433353336333733383339334033413342334333443345334633473348334933503351335233533354335533563357335833593360336133623363336433653366336733683369337033713372337333743375337633773378337933803381338233833384338533863387338833893390339133923393339433953396339733983399340034013402340334043405340634073408340934103411341234133414341534163417341834193420342134223423342434253426342734283429343034313432343334343435343634373438343934403441344234433444344534463447344834493450345134523453345434553456345734583459346034613462346334643465346634673468346934703471347234733474347534763477347834793480348134823483348434853486348734883489349034913492349334943495349634973498349935003501350235033504350535063507350835093510351135123513351435153516351735183519352035213522352335243525352635273528352935303531353235333534353535363537353835393540354135423543354435453546354735483549355035513552355335543555355635573558355935603561356235633564356535663567356835693570357135723573357435753576357735783579358035813582358335843585358635873588358935903591359235933594359535963597359835993600360136023603360436053606360736083609361036113612361336143615361636173618361936203621362236233624362536263627362836293630363136323633363436353636363736383639364036413642364336443645364636473648364936503651365236533654365536563657365836593660366136623663366436653666366736683669367036713672367336743675367636773678367936803681368236833684368536863687368836893690369136923693369436953696369736983699370037013702370337043705370637073708370937103711371237133714371537163717371837193720372137223723372437253726372737283729373037313732373337343735373637373738373937403741374237433744374537463747374837493750375137523753375437553756375737583759376037613762376337643765376637673768376937703771377237733774377537763777377837793780378137823783378437853786378737883789379037913792379337943795379637973798379938003801380238033804380538063807380838093810381138123813381438153816381738183819382038213822382338243825382638273828382938303831383238333834383538363837383838393840384138423843384438453846384738483849385038513852385338543855385638573858385938603861386238633864386538663867386838693870387138723873387438753876387738783879388038813882388338843885388638873888388938903891389238933894389538963897389838993900390139023903390439053906390739083909391039113912391339143915391639173918391939203921392239233924392539263927392839293930393139323933393439353936393739383939394039413942394339443945394639473948394939503951395239533954395539563957395839593960396139623963396439653966396739683969397039713972397339743975397639773978397939803981398239833984398539863987398839893990399139923993399439953996399739983999400040014002400340044005400640074008400940104011401240134014401540164017401840194020402140224023402440254026402740284029403040314032403340344035403640374038403940404041404240434044404540464047404840494050405140524053405440554056405740584059406040614062406340644065406640674068406940704071407240734074407540764077407840794080408140824083408440854086408740884089409040914092409340944095409640974098409941004101410241034104410541064107410841094110411141124113411441154116411741184119412041214122412341244125412641274128412941304131413241334134413541364137413841394140414141424143414441454146414741484149415041514152415341544155415641574158415941604161416241634164416541664167416841694170417141724173417441754176417741784179418041814182418341844185418641874188418941904191419241934194419541964197419841994200420142024203420442054206420742084209421042114212421342144215421642174218421942204221422242234224422542264227422842294230423142324233423442354236423742384239424042414242424342444245424642474248424942504251425242534254425542564257425842594260426142624263426442654266426742684269427042714272427342744275427642774278427942804281428242834284428542864287428842894290429142924293429442954296429742984299430043014302430343044305430643074308430943104311431243134314431543164317431843194320432143224323432443254326432743284329433043314332433343344335433643374338433943404341434243434344434543464347434843494350435143524353435443554356435743584359436043614362436343644365436643674368436943704371437243734374437543764377437843794380438143824383438443854386438743884389439043914392439343944395439643974398439944004401440244034404440544064407440844094410441144124413441444154416441744184419442044214422442344244425442644274428442944304431443244334434443544364437443844394440444144424443444444454446444744484449445044514452445344544455445644574458445944604461446244634464446544664467446844694470447144724473447444754476447744784479448044814482448344844485448644874488448944904491449244934494449544964497449844994500450145024503450445054506450745084509451045114512451345144515451645174518451945204521452245234524452545264527452845294530453145324533453445354536453745384539454045414542454345444545454645474548454945504551455245534554455545564557455845594560456145624563456445654566456745684569457045714572457345744575457645774578457945804581458245834584458545864587458845894590459145924593459445954596459745984599460046014602460346044605460646074608460946104611461246134614461546164617461846194620462146224623462446254626462746284629463046314632463346344635463646374638463946404641464246434644464546464647464846494650465146524653465446554656465746584659466046614662466346644665466646674668466946704671467246734674467546764677467846794680468146824683468446854686468746884689469046914692469346944695469646974698469947004701470247034704470547064707470847094710471147124713471447154716471747184719472047214722472347244725472647274728472947304731473247334734473547364737473847394740474147424743474447454746474747484749475047514752475347544755475647574758475947604761476247634764476547664767476847694770477147724773477447754776477747784779478047814782478347844785478647874788478947904791479247934794479547964797479847994800480148024803480448054806480748084809481048114812481348144815481648174818481948204821482248234824482548264827482848294830483148324833483448354836483748384839484048414842484348444845484648474848484948504851485248534854485548564857485848594860486148624863486448654866486748684869487048714872487348744875487648774878487948804881488248834884488548864887488848894890489148924893489448954896489748984899490049014902490349044905490649074908490949104911491249134914491549164917491849194920492149224923492449254926492749284929493049314932493349344935493649374938493949404941494249434944494549464947494849494950495149524953495449554956495749584959496049614962496349644965496649674968496949704971497249734974497549764977497849794980498149824983498449854986498749884989499049914992499349944995499649974998499950005001500250035004500550065007500850095010501150125013501450155016501750185019502050215022502350245025502650275028502950305031503250335034503550365037503850395040504150425043504450455046504750485049505050515052505350545055505650575058505950605061506250635064506550665067506850695070507150725073507450755076507750785079508050815082508350845085508650875088508950905091509250935094509550965097509850995100510151025103510451055106510751085109511051115112511351145115511651175118511951205121512251235124512551265127512851295130513151325133513451355136513751385139514051415142514351445145514651475148514951505151515251535154515551565157515851595160516151625163516451655166516751685169517051715172517351745175517651775178517951805181518251835184518551865187518851895190519151925193519451955196519751985199520052015202520352045205520652075208520952105211521252135214521552165217521852195220522152225223522452255226522752285229523052315232523352345235523652375238523952405241524252435244524552465247524852495250525152525253525452555256525752585259526052615262526352645265526652675268526952705271527252735274527552765277527852795280528152825283528452855286528752885289529052915292529352945295529652975298529953005301530253035304530553065307530853095310531153125313531453155316531753185319532053215322532353245325532653275328532953305331533253335334533553365337533853395340534153425343534453455346534753485349535053515352535353545355535653575358535953605361536253635364536553665367536853695370537153725373537453755376537753785379538053815382538353845385538653875388538953905391539253935394539553965397539853995400540154025403540454055406540754085409541054115412541354145415541654175418541954205421542254235424542554265427542854295430543154325433543454355436543754385439544054415442544354445445544654475448544954505451545254535454545554565457545854595460546154625463546454655466546754685469547054715472547354745475547654775478547954805481548254835484548554865487548854895490549154925493549454955496549754985499550055015502550355045505550655075508550955105511551255135514551555165517551855195520552155225523552455255526552755285529553055315532553355345535553655375538553955405541554255435544554555465547554855495550555155525553555455555556555755585559556055615562556355645565556655675568556955705571557255735574557555765577557855795580558155825583558455855586558755885589559055915592559355945595559655975598559956005601560256035604560556065607560856095610561156125613561456155616561756185619562056215622562356245625562656275628562956305631563256335634563556365637563856395640564156425643564456455646564756485649565056515652565356545655565656575658565956605661566256635664566556665667566856695670567156725673567456755676567756785679568056815682568356845685568656875688568956905691569256935694569556965697569856995700570157025703570457055706570757085709571057115712571357145715571657175718571957205721572257235724572557265727572857295730573157325733573457355736573757385739574057415742574357445745574657475748574957505751575257535754575557565757575857595760576157625763576457655766576757685769577057715772577357745775577657775778577957805781578257835784578557865787578857895790579157925793579457955796579757985799580058015802580358045805580658075808580958105811581258135814581558165817581858195820582158225823582458255826582758285829583058315832583358345835583658375838583958405841584258435844584558465847584858495850585158525853585458555856585758585859586058615862586358645865586658675868586958705871587258735874587558765877587858795880588158825883588458855886588758885889589058915892589358945895589658975898589959005901590259035904590559065907590859095910591159125913591459155916591759185919592059215922592359245925592659275928592959305931593259335934593559365937593859395940594159425943594459455946594759485949595059515952595359545955595659575958595959605961596259635964596559665967596859695970597159725973597459755976597759785979598059815982598359845985598659875988598959905991599259935994599559965997599859996000600160026003600460056006600760086009601060116012601360146015601660176018601960206021602260236024602560266027602860296030603160326033603460356036603760386039604060416042604360446045604660476048604960506051605260536054605560566057605860596060606160626063606460656066606760686069607060716072607360746075607660776078607960806081608260836084608560866087608860896090609160926093609460956096609760986099610061016102610361046105610661076108610961106111611261136114611561166117611861196120612161226123612461256126612761286129613061316132613361346135613661376138613961406141614261436144614561466147614861496150615161526153615461556156615761586159616061616162616361646165616661676168616961706171617261736174617561766177617861796180618161826183618461856186618761886189619061916192619361946195619661976198619962006201620262036204620562066207620862096210621162126213621462156216621762186219622062216222622362246225622662276228622962306231623262336234623562366237623862396240624162426243624462456246624762486249625062516252625362546255625662576258625962606261626262636264626562666267626862696270627162726273627462756276627762786279628062816282628362846285628662876288628962906291629262936294629562966297629862996300630163026303630463056306630763086309631063116312631363146315631663176318631963206321632263236324632563266327632863296330633163326333633463356336633763386339634063416342634363446345634663476348634963506351635263536354635563566357635863596360636163626363636463656366636763686369637063716372637363746375637663776378637963806381638263836384638563866387638863896390639163926393639463956396639763986399640064016402640364046405640664076408640964106411641264136414641564166417641864196420642164226423642464256426642764286429643064316432643364346435643664376438643964406441644264436444644564466447644864496450645164526453645464556456645764586459646064616462646364646465646664676468646964706471647264736474647564766477647864796480648164826483648464856486648764886489649064916492649364946495649664976498649965006501650265036504650565066507650865096510651165126513651465156516651765186519652065216522652365246525652665276528652965306531653265336534653565366537653865396540654165426543654465456546654765486549655065516552655365546555655665576558655965606561656265636564656565666567656865696570657165726573657465756576657765786579658065816582658365846585658665876588658965906591659265936594659565966597659865996600660166026603660466056606660766086609661066116612661366146615661666176618661966206621662266236624662566266627662866296630663166326633663466356636663766386639664066416642664366446645664666476648664966506651665266536654665566566657665866596660666166626663666466656666666766686669667066716672667366746675667666776678667966806681668266836684668566866687668866896690669166926693669466956696669766986699670067016702670367046705670667076708670967106711671267136714671567166717671867196720672167226723672467256726672767286729673067316732673367346735673667376738673967406741674267436744674567466747674867496750675167526753675467556756675767586759676067616762676367646765676667676768676967706771677267736774677567766777677867796780678167826783678467856786678767886789679067916792679367946795679667976798679968006801680268036804680568066807680868096810681168126813681468156816681768186819682068216822682368246825682668276828682968306831683268336834683568366837683868396840684168426843684468456846684768486849685068516852685368546855685668576858685968606861686268636864686568666867686868696870687168726873687468756876687768786879688068816882688368846885688668876888688968906891689268936894689568966897689868996900690169026903690469056906690769086909691069116912691369146915691669176918691969206921692269236924692569266927692869296930693169326933693469356936693769386939694069416942694369446945694669476948694969506951695269536954695569566957695869596960696169626963696469656966696769686969697069716972697369746975697669776978697969806981698269836984698569866987698869896990699169926993699469956996699769986999700070017002700370047005700670077008700970107011701270137014701570167017701870197020702170227023702470257026702770287029703070317032703370347035703670377038703970407041704270437044704570467047704870497050705170527053705470557056705770587059706070617062706370647065706670677068706970707071707270737074707570767077707870797080708170827083708470857086708770887089709070917092709370947095709670977098709971007101710271037104710571067107710871097110711171127113711471157116711771187119712071217122712371247125712671277128712971307131713271337134713571367137713871397140714171427143714471457146714771487149715071517152715371547155715671577158715971607161716271637164716571667167716871697170717171727173717471757176717771787179718071817182718371847185718671877188718971907191719271937194719571967197719871997200720172027203720472057206720772087209721072117212721372147215721672177218721972207221722272237224722572267227722872297230723172327233723472357236723772387239724072417242724372447245724672477248724972507251725272537254725572567257725872597260726172627263726472657266726772687269727072717272727372747275727672777278727972807281728272837284728572867287728872897290729172927293729472957296729772987299730073017302730373047305730673077308730973107311731273137314731573167317731873197320732173227323732473257326732773287329733073317332733373347335733673377338733973407341734273437344734573467347734873497350735173527353735473557356735773587359736073617362736373647365736673677368736973707371737273737374737573767377737873797380738173827383738473857386738773887389739073917392739373947395739673977398739974007401740274037404740574067407740874097410741174127413741474157416741774187419742074217422742374247425742674277428742974307431743274337434743574367437743874397440744174427443744474457446744774487449745074517452745374547455745674577458745974607461746274637464746574667467746874697470747174727473747474757476747774787479748074817482748374847485748674877488748974907491749274937494749574967497749874997500750175027503750475057506750775087509751075117512751375147515751675177518751975207521752275237524752575267527752875297530753175327533753475357536753775387539754075417542754375447545754675477548754975507551755275537554755575567557755875597560756175627563756475657566756775687569757075717572757375747575757675777578757975807581758275837584758575867587758875897590759175927593759475957596759775987599760076017602760376047605760676077608760976107611761276137614761576167617761876197620762176227623762476257626762776287629763076317632763376347635763676377638763976407641764276437644764576467647764876497650765176527653765476557656765776587659766076617662766376647665766676677668766976707671767276737674767576767677767876797680768176827683768476857686768776887689769076917692769376947695769676977698769977007701770277037704770577067707770877097710771177127713771477157716771777187719772077217722772377247725772677277728772977307731773277337734773577367737773877397740774177427743774477457746774777487749775077517752775377547755775677577758775977607761776277637764776577667767776877697770777177727773777477757776777777787779778077817782778377847785778677877788778977907791779277937794779577967797779877997800780178027803780478057806780778087809781078117812781378147815781678177818781978207821782278237824782578267827782878297830783178327833783478357836783778387839784078417842784378447845784678477848784978507851785278537854785578567857785878597860786178627863786478657866786778687869787078717872787378747875787678777878787978807881788278837884788578867887788878897890789178927893789478957896789778987899790079017902790379047905790679077908790979107911791279137914791579167917791879197920792179227923792479257926792779287929793079317932793379347935793679377938793979407941794279437944794579467947794879497950795179527953795479557956795779587959796079617962796379647965796679677968796979707971797279737974797579767977797879797980798179827983798479857986798779887989799079917992799379947995799679977998799980008001800280038004800580068007800880098010801180128013801480158016801780188019802080218022802380248025802680278028802980308031803280338034803580368037803880398040804180428043804480458046804780488049805080518052805380548055805680578058805980608061806280638064806580668067806880698070807180728073807480758076807780788079808080818082808380848085808680878088808980908091809280938094809580968097809880998100810181028103810481058106810781088109811081118112811381148115811681178118811981208121812281238124812581268127812881298130813181328133813481358136813781388139814081418142814381448145814681478148814981508151815281538154815581568157815881598160816181628163816481658166816781688169817081718172817381748175817681778178817981808181818281838184818581868187818881898190819181928193819481958196819781988199820082018202820382048205820682078208820982108211821282138214821582168217821882198220822182228223822482258226822782288229823082318232823382348235823682378238823982408241824282438244824582468247824882498250825182528253825482558256825782588259826082618262826382648265826682678268826982708271827282738274827582768277827882798280828182828283828482858286828782888289829082918292829382948295829682978298829983008301830283038304830583068307830883098310831183128313831483158316831783188319832083218322832383248325832683278328832983308331833283338334833583368337833883398340834183428343834483458346834783488349835083518352835383548355835683578358835983608361836283638364836583668367836883698370837183728373837483758376837783788379838083818382838383848385838683878388838983908391839283938394839583968397839883998400840184028403840484058406840784088409841084118412841384148415841684178418841984208421842284238424842584268427842884298430843184328433843484358436843784388439844084418442844384448445844684478448844984508451845284538454845584568457845884598460846184628463846484658466846784688469847084718472847384748475847684778478847984808481848284838484848584868487848884898490849184928493849484958496849784988499850085018502850385048505850685078508850985108511851285138514851585168517851885198520852185228523852485258526852785288529853085318532853385348535853685378538853985408541854285438544854585468547854885498550855185528553855485558556855785588559856085618562856385648565856685678568856985708571857285738574857585768577857885798580858185828583858485858586858785888589859085918592859385948595859685978598859986008601860286038604860586068607860886098610861186128613861486158616861786188619862086218622862386248625862686278628862986308631863286338634863586368637863886398640864186428643864486458646864786488649865086518652865386548655865686578658865986608661866286638664866586668667866886698670867186728673867486758676867786788679868086818682868386848685868686878688868986908691869286938694869586968697869886998700870187028703870487058706870787088709871087118712871387148715871687178718871987208721872287238724872587268727872887298730873187328733873487358736873787388739874087418742874387448745874687478748874987508751875287538754875587568757875887598760876187628763876487658766876787688769877087718772877387748775877687778778877987808781878287838784878587868787878887898790879187928793879487958796879787988799880088018802880388048805880688078808880988108811881288138814881588168817881888198820882188228823882488258826882788288829883088318832883388348835883688378838883988408841884288438844884588468847884888498850885188528853885488558856885788588859886088618862886388648865886688678868886988708871887288738874887588768877887888798880888188828883888488858886888788888889889088918892889388948895889688978898889989008901890289038904890589068907890889098910891189128913891489158916891789188919892089218922892389248925892689278928892989308931893289338934893589368937893889398940894189428943894489458946894789488949895089518952895389548955895689578958895989608961896289638964896589668967896889698970897189728973897489758976897789788979898089818982898389848985898689878988898989908991899289938994899589968997899889999000900190029003900490059006900790089009901090119012901390149015901690179018901990209021902290239024902590269027902890299030903190329033903490359036903790389039904090419042904390449045904690479048904990509051905290539054905590569057905890599060906190629063906490659066906790689069907090719072907390749075907690779078907990809081908290839084908590869087908890899090909190929093909490959096909790989099910091019102910391049105910691079108910991109111911291139114911591169117911891199120912191229123912491259126912791289129913091319132913391349135913691379138913991409141914291439144914591469147914891499150915191529153915491559156915791589159916091619162916391649165916691679168916991709171917291739174917591769177917891799180918191829183918491859186918791889189919091919192919391949195919691979198919992009201920292039204920592069207920892099210921192129213921492159216921792189219922092219222922392249225922692279228922992309231923292339234923592369237923892399240924192429243924492459246924792489249925092519252925392549255925692579258925992609261926292639264926592669267926892699270927192729273927492759276927792789279928092819282928392849285928692879288928992909291929292939294929592969297929892999300930193029303930493059306930793089309931093119312931393149315931693179318931993209321932293239324932593269327932893299330933193329333933493359336933793389339934093419342934393449345934693479348934993509351935293539354935593569357935893599360936193629363936493659366936793689369937093719372937393749375937693779378937993809381938293839384938593869387938893899390939193929393939493959396939793989399940094019402940394049405940694079408940994109411941294139414941594169417941894199420942194229423942494259426942794289429943094319432943394349435943694379438943994409441944294439444944594469447944894499450945194529453945494559456945794589459946094619462946394649465946694679468946994709471947294739474947594769477947894799480948194829483948494859486948794889489949094919492949394949495949694979498949995009501950295039504950595069507950895099510951195129513951495159516951795189519952095219522952395249525952695279528952995309531953295339534953595369537953895399540954195429543954495459546954795489549955095519552955395549555955695579558955995609561956295639564956595669567956895699570957195729573957495759576957795789579958095819582958395849585958695879588958995909591959295939594959595969597959895999600960196029603960496059606960796089609961096119612961396149615961696179618961996209621962296239624962596269627962896299630963196329633963496359636963796389639964096419642964396449645964696479648964996509651965296539654965596569657965896599660966196629663966496659666966796689669967096719672967396749675967696779678967996809681968296839684968596869687968896899690969196929693969496959696969796989699970097019702970397049705970697079708970997109711971297139714971597169717971897199720972197229723972497259726972797289729973097319732973397349735973697379738973997409741974297439744974597469747974897499750975197529753975497559756975797589759976097619762976397649765976697679768976997709771977297739774977597769777977897799780978197829783978497859786978797889789979097919792979397949795979697979798979998009801980298039804980598069807980898099810981198129813981498159816981798189819982098219822982398249825982698279828982998309831983298339834983598369837983898399840984198429843984498459846984798489849985098519852985398549855985698579858985998609861986298639864986598669867986898699870987198729873987498759876987798789879988098819882988398849885988698879888988998909891989298939894989598969897989898999900990199029903990499059906990799089909991099119912991399149915991699179918991999209921992299239924992599269927992899299930993199329933993499359936993799389939994099419942994399449945994699479948994999509951995299539954995599569957995899599960996199629963996499659966996799689969997099719972997399749975997699779978997999809981998299839984998599869987998899899990999199929993999499959996999799989999100001000110002100031000410005100061000710008100091001010011100121001310014100151001610017100181001910020100211002210023100241002510026100271002810029100301003110032100331003410035100361003710038100391004010041100421004310044100451004610047100481004910050100511005210053100541005510056100571005810059100601006110062100631006410065100661006710068100691007010071100721007310074100751007610077100781007910080100811008210083100841008510086100871008810089100901009110092100931009410095100961009710098100991010010101101021010310104101051010610107101081010910110101111011210113101141011510116101171011810119101201012110122101231012410125101261012710128101291013010131101321013310134101351013610137101381013910140101411014210143101441014510146101471014810149101501015110152101531015410155101561015710158101591016010161101621016310164101651016610167101681016910170101711017210173101741017510176101771017810179101801018110182101831018410185101861018710188101891019010191101921019310194101951019610197101981019910200102011020210203102041020510206102071020810209102101021110212102131021410215102161021710218102191022010221102221022310224102251022610227102281022910230102311023210233102341023510236102371023810239102401024110242102431024410245102461024710248102491025010251102521025310254102551025610257102581025910260102611026210263102641026510266102671026810269102701027110272102731027410275102761027710278102791028010281102821028310284102851028610287102881028910290102911029210293102941029510296102971029810299103001030110302103031030410305103061030710308103091031010311103121031310314103151031610317103181031910320103211032210323103241032510326103271032810329103301033110332103331033410335103361033710338103391034010341103421034310344103451034610347103481034910350103511035210353103541035510356103571035810359103601036110362103631036410365103661036710368103691037010371103721037310374103751037610377103781037910380103811038210383103841038510386103871038810389103901039110392103931039410395103961039710398103991040010401104021040310404104051040610407104081040910410104111041210413104141041510416104171041810419104201042110422104231042410425104261042710428104291043010431104321043310434104351043610437104381043910440104411044210443104441044510446104471044810449104501045110452104531045410455104561045710458104591046010461104621046310464104651046610467104681046910470104711047210473104741047510476104771047810479104801048110482104831048410485104861048710488104891049010491104921049310494104951049610497104981049910500105011050210503105041050510506105071050810509105101051110512105131051410515105161051710518105191052010521105221052310524105251052610527105281052910530105311053210533105341053510536105371053810539105401054110542105431054410545105461054710548105491055010551105521055310554105551055610557105581055910560105611056210563105641056510566105671056810569105701057110572105731057410575105761057710578105791058010581105821058310584105851058610587105881058910590105911059210593105941059510596105971059810599106001060110602106031060410605106061060710608106091061010611106121061310614106151061610617106181061910620106211062210623106241062510626106271062810629106301063110632106331063410635106361063710638106391064010641106421064310644106451064610647106481064910650106511065210653106541065510656106571065810659106601066110662106631066410665106661066710668106691067010671106721067310674106751067610677106781067910680106811068210683106841068510686106871068810689106901069110692106931069410695106961069710698106991070010701107021070310704107051070610707107081070910710107111071210713107141071510716107171071810719107201072110722107231072410725107261072710728107291073010731107321073310734107351073610737107381073910740107411074210743107441074510746107471074810749107501075110752107531075410755107561075710758107591076010761107621076310764107651076610767107681076910770107711077210773107741077510776107771077810779107801078110782107831078410785107861078710788107891079010791107921079310794107951079610797107981079910800108011080210803108041080510806108071080810809108101081110812108131081410815108161081710818108191082010821108221082310824108251082610827108281082910830108311083210833108341083510836108371083810839108401084110842108431084410845108461084710848108491085010851108521085310854108551085610857108581085910860108611086210863108641086510866108671086810869108701087110872108731087410875108761087710878108791088010881108821088310884108851088610887108881088910890108911089210893108941089510896108971089810899109001090110902109031090410905109061090710908109091091010911109121091310914109151091610917109181091910920109211092210923109241092510926109271092810929109301093110932109331093410935109361093710938109391094010941109421094310944109451094610947109481094910950109511095210953109541095510956109571095810959109601096110962109631096410965109661096710968109691097010971109721097310974109751097610977109781097910980109811098210983109841098510986109871098810989109901099110992109931099410995109961099710998109991100011001110021100311004110051100611007110081100911010110111101211013110141101511016110171101811019110201102111022110231102411025110261102711028110291103011031110321103311034110351103611037110381103911040110411104211043110441104511046110471104811049110501105111052110531105411055110561105711058110591106011061110621106311064110651106611067110681106911070110711107211073110741107511076110771107811079110801108111082110831108411085110861108711088110891109011091110921109311094110951109611097110981109911100111011110211103111041110511106111071110811109111101111111112111131111411115111161111711118111191112011121111221112311124111251112611127111281112911130111311113211133111341113511136111371113811139111401114111142111431114411145111461114711148111491115011151111521115311154111551115611157111581115911160111611116211163111641116511166111671116811169111701117111172111731117411175111761117711178111791118011181111821118311184111851118611187111881118911190111911119211193111941119511196111971119811199112001120111202112031120411205112061120711208112091121011211112121121311214112151121611217112181121911220112211122211223112241122511226112271122811229112301123111232112331123411235112361123711238112391124011241112421124311244112451124611247112481124911250112511125211253112541125511256112571125811259112601126111262112631126411265112661126711268112691127011271112721127311274112751127611277112781127911280112811128211283112841128511286112871128811289112901129111292112931129411295112961129711298112991130011301113021130311304113051130611307113081130911310113111131211313113141131511316113171131811319113201132111322113231132411325113261132711328113291133011331113321133311334113351133611337113381133911340113411134211343113441134511346113471134811349113501135111352113531135411355113561135711358113591136011361113621136311364113651136611367113681136911370113711137211373113741137511376113771137811379113801138111382113831138411385113861138711388113891139011391113921139311394113951139611397113981139911400114011140211403114041140511406114071140811409114101141111412114131141411415114161141711418114191142011421114221142311424114251142611427114281142911430114311143211433114341143511436114371143811439114401144111442114431144411445114461144711448114491145011451114521145311454114551145611457114581145911460114611146211463114641146511466114671146811469114701147111472114731147411475114761147711478114791148011481114821148311484114851148611487114881148911490114911149211493114941149511496114971149811499115001150111502115031150411505115061150711508115091151011511115121151311514115151151611517115181151911520115211152211523115241152511526115271152811529115301153111532115331153411535115361153711538115391154011541115421154311544115451154611547115481154911550115511155211553115541155511556115571155811559115601156111562115631156411565115661156711568115691157011571115721157311574115751157611577115781157911580115811158211583115841158511586115871158811589115901159111592115931159411595115961159711598115991160011601116021160311604116051160611607116081160911610116111161211613116141161511616116171161811619116201162111622116231162411625116261162711628116291163011631116321163311634116351163611637116381163911640116411164211643116441164511646116471164811649116501165111652116531165411655116561165711658116591166011661116621166311664116651166611667116681166911670116711167211673116741167511676116771167811679116801168111682116831168411685116861168711688116891169011691116921169311694116951169611697116981169911700117011170211703117041170511706117071170811709117101171111712117131171411715117161171711718117191172011721117221172311724117251172611727117281172911730117311173211733117341173511736117371173811739117401174111742117431174411745117461174711748117491175011751117521175311754117551175611757117581175911760117611176211763117641176511766117671176811769117701177111772117731177411775117761177711778117791178011781117821178311784117851178611787117881178911790117911179211793117941179511796117971179811799118001180111802118031180411805118061180711808118091181011811118121181311814118151181611817118181181911820118211182211823118241182511826118271182811829118301183111832118331183411835118361183711838118391184011841118421184311844118451184611847118481184911850118511185211853118541185511856118571185811859118601186111862118631186411865118661186711868118691187011871118721187311874118751187611877118781187911880118811188211883118841188511886118871188811889118901189111892118931189411895118961189711898118991190011901119021190311904119051190611907119081190911910119111191211913119141191511916119171191811919119201192111922119231192411925119261192711928119291193011931119321193311934119351193611937119381193911940119411194211943119441194511946119471194811949119501195111952119531195411955119561195711958119591196011961119621196311964119651196611967119681196911970119711197211973119741197511976119771197811979119801198111982119831198411985119861198711988119891199011991119921199311994119951199611997119981199912000120011200212003120041200512006120071200812009120101201112012120131201412015120161201712018120191202012021120221202312024120251202612027120281202912030120311203212033120341203512036120371203812039120401204112042120431204412045120461204712048120491205012051120521205312054120551205612057120581205912060120611206212063120641206512066120671206812069120701207112072120731207412075120761207712078120791208012081120821208312084120851208612087120881208912090120911209212093120941209512096120971209812099121001210112102121031210412105121061210712108121091211012111121121211312114121151211612117121181211912120121211212212123121241212512126121271212812129121301213112132121331213412135121361213712138121391214012141121421214312144121451214612147121481214912150121511215212153121541215512156121571215812159121601216112162121631216412165121661216712168121691217012171121721217312174121751217612177121781217912180121811218212183121841218512186121871218812189121901219112192121931219412195121961219712198121991220012201122021220312204122051220612207122081220912210122111221212213122141221512216122171221812219122201222112222122231222412225122261222712228122291223012231122321223312234122351223612237122381223912240122411224212243122441224512246122471224812249122501225112252122531225412255122561225712258122591226012261122621226312264122651226612267122681226912270122711227212273122741227512276122771227812279122801228112282122831228412285122861228712288122891229012291122921229312294122951229612297122981229912300123011230212303123041230512306123071230812309123101231112312123131231412315123161231712318123191232012321123221232312324123251232612327123281232912330123311233212333123341233512336123371233812339123401234112342123431234412345123461234712348123491235012351123521235312354123551235612357123581235912360123611236212363123641236512366123671236812369123701237112372123731237412375123761237712378123791238012381123821238312384123851238612387123881238912390123911239212393123941239512396123971239812399124001240112402124031240412405124061240712408124091241012411124121241312414124151241612417124181241912420124211242212423124241242512426124271242812429124301243112432124331243412435124361243712438124391244012441124421244312444124451244612447124481244912450124511245212453124541245512456124571245812459124601246112462124631246412465124661246712468124691247012471124721247312474124751247612477124781247912480124811248212483124841248512486124871248812489124901249112492124931249412495124961249712498124991250012501125021250312504125051250612507125081250912510125111251212513125141251512516125171251812519125201252112522125231252412525125261252712528125291253012531125321253312534125351253612537125381253912540125411254212543125441254512546125471254812549125501255112552125531255412555125561255712558125591256012561125621256312564125651256612567125681256912570125711257212573125741257512576125771257812579125801258112582125831258412585125861258712588125891259012591125921259312594125951259612597125981259912600126011260212603126041260512606126071260812609126101261112612126131261412615126161261712618126191262012621126221262312624126251262612627126281262912630126311263212633126341263512636126371263812639126401264112642126431264412645126461264712648126491265012651126521265312654126551265612657126581265912660126611266212663126641266512666126671266812669126701267112672126731267412675126761267712678126791268012681126821268312684126851268612687126881268912690126911269212693126941269512696126971269812699127001270112702127031270412705127061270712708127091271012711127121271312714127151271612717127181271912720127211272212723127241272512726127271272812729127301273112732127331273412735127361273712738127391274012741127421274312744127451274612747127481274912750127511275212753127541275512756127571275812759127601276112762127631276412765127661276712768127691277012771127721277312774127751277612777127781277912780127811278212783127841278512786127871278812789127901279112792127931279412795127961279712798127991280012801128021280312804128051280612807128081280912810128111281212813128141281512816128171281812819128201282112822128231282412825128261282712828128291283012831128321283312834128351283612837128381283912840128411284212843128441284512846128471284812849128501285112852128531285412855128561285712858128591286012861128621286312864128651286612867128681286912870128711287212873128741287512876128771287812879128801288112882128831288412885128861288712888128891289012891128921289312894128951289612897128981289912900129011290212903129041290512906129071290812909129101291112912129131291412915129161291712918129191292012921129221292312924129251292612927129281292912930129311293212933129341293512936129371293812939129401294112942129431294412945129461294712948129491295012951129521295312954129551295612957129581295912960129611296212963129641296512966129671296812969129701297112972129731297412975129761297712978129791298012981129821298312984129851298612987129881298912990129911299212993129941299512996129971299812999130001300113002130031300413005130061300713008130091301013011130121301313014130151301613017130181301913020130211302213023130241302513026130271302813029130301303113032130331303413035130361303713038130391304013041130421304313044130451304613047130481304913050130511305213053130541305513056130571305813059130601306113062130631306413065130661306713068130691307013071130721307313074130751307613077130781307913080130811308213083130841308513086130871308813089130901309113092130931309413095130961309713098130991310013101131021310313104131051310613107131081310913110131111311213113131141311513116131171311813119131201312113122131231312413125131261312713128131291313013131131321313313134131351313613137131381313913140131411314213143131441314513146131471314813149131501315113152131531315413155131561315713158131591316013161131621316313164131651316613167131681316913170131711317213173131741317513176131771317813179131801318113182131831318413185131861318713188131891319013191131921319313194131951319613197131981319913200132011320213203132041320513206132071320813209132101321113212132131321413215132161321713218132191322013221132221322313224132251322613227132281322913230132311323213233132341323513236132371323813239132401324113242132431324413245132461324713248132491325013251132521325313254132551325613257132581325913260132611326213263132641326513266132671326813269132701327113272132731327413275132761327713278132791328013281132821328313284132851328613287132881328913290132911329213293132941329513296132971329813299133001330113302133031330413305133061330713308133091331013311133121331313314133151331613317133181331913320133211332213323133241332513326133271332813329133301333113332133331333413335133361333713338133391334013341133421334313344133451334613347133481334913350133511335213353133541335513356133571335813359133601336113362133631336413365133661336713368133691337013371133721337313374133751337613377133781337913380133811338213383133841338513386133871338813389133901339113392133931339413395133961339713398133991340013401134021340313404134051340613407134081340913410134111341213413134141341513416134171341813419134201342113422134231342413425134261342713428134291343013431134321343313434134351343613437134381343913440134411344213443134441344513446134471344813449134501345113452134531345413455134561345713458134591346013461134621346313464134651346613467134681346913470134711347213473134741347513476134771347813479134801348113482134831348413485134861348713488134891349013491134921349313494134951349613497134981349913500135011350213503135041350513506135071350813509135101351113512135131351413515135161351713518135191352013521135221352313524135251352613527135281352913530135311353213533135341353513536135371353813539135401354113542135431354413545135461354713548135491355013551135521355313554135551355613557135581355913560135611356213563135641356513566135671356813569135701357113572135731357413575135761357713578135791358013581135821358313584135851358613587135881358913590135911359213593135941359513596135971359813599136001360113602136031360413605136061360713608136091361013611136121361313614136151361613617136181361913620136211362213623136241362513626136271362813629136301363113632136331363413635136361363713638136391364013641136421364313644136451364613647136481364913650136511365213653136541365513656136571365813659136601366113662136631366413665136661366713668136691367013671136721367313674136751367613677136781367913680136811368213683136841368513686136871368813689136901369113692136931369413695136961369713698136991370013701137021370313704137051370613707137081370913710137111371213713137141371513716137171371813719137201372113722137231372413725137261372713728137291373013731137321373313734137351373613737137381373913740137411374213743137441374513746137471374813749137501375113752137531375413755137561375713758137591376013761137621376313764137651376613767137681376913770137711377213773137741377513776137771377813779137801378113782137831378413785137861378713788137891379013791137921379313794137951379613797137981379913800138011380213803138041380513806138071380813809138101381113812138131381413815138161381713818138191382013821138221382313824138251382613827138281382913830138311383213833138341383513836138371383813839138401384113842138431384413845138461384713848138491385013851138521385313854138551385613857138581385913860138611386213863138641386513866138671386813869138701387113872138731387413875138761387713878138791388013881138821388313884138851388613887138881388913890138911389213893138941389513896138971389813899139001390113902139031390413905139061390713908139091391013911139121391313914139151391613917139181391913920139211392213923139241392513926139271392813929139301393113932139331393413935139361393713938139391394013941139421394313944139451394613947139481394913950139511395213953139541395513956139571395813959139601396113962139631396413965139661396713968139691397013971139721397313974139751397613977139781397913980139811398213983139841398513986139871398813989139901399113992139931399413995139961399713998139991400014001140021400314004140051400614007140081400914010140111401214013140141401514016140171401814019140201402114022140231402414025140261402714028140291403014031140321403314034140351403614037140381403914040140411404214043140441404514046140471404814049140501405114052140531405414055140561405714058140591406014061140621406314064140651406614067140681406914070140711407214073140741407514076140771407814079140801408114082140831408414085140861408714088140891409014091140921409314094140951409614097140981409914100141011410214103141041410514106141071410814109141101411114112141131411414115141161411714118141191412014121141221412314124141251412614127141281412914130141311413214133141341413514136141371413814139141401414114142141431414414145141461414714148141491415014151141521415314154141551415614157141581415914160141611416214163141641416514166141671416814169141701417114172141731417414175141761417714178141791418014181141821418314184141851418614187141881418914190141911419214193141941419514196141971419814199142001420114202142031420414205142061420714208142091421014211142121421314214142151421614217142181421914220142211422214223142241422514226142271422814229142301423114232142331423414235142361423714238142391424014241142421424314244142451424614247142481424914250142511425214253142541425514256142571425814259142601426114262142631426414265142661426714268142691427014271142721427314274142751427614277142781427914280142811428214283142841428514286142871428814289142901429114292142931429414295142961429714298142991430014301143021430314304143051430614307143081430914310143111431214313143141431514316143171431814319143201432114322143231432414325143261432714328143291433014331143321433314334143351433614337143381433914340143411434214343143441434514346143471434814349143501435114352143531435414355143561435714358143591436014361143621436314364143651436614367143681436914370143711437214373143741437514376143771437814379143801438114382143831438414385143861438714388143891439014391143921439314394143951439614397143981439914400144011440214403144041440514406144071440814409144101441114412144131441414415144161441714418144191442014421144221442314424144251442614427144281442914430144311443214433144341443514436144371443814439144401444114442144431444414445144461444714448144491445014451144521445314454144551445614457144581445914460144611446214463144641446514466144671446814469144701447114472144731447414475144761447714478144791448014481144821448314484144851448614487144881448914490144911449214493144941449514496144971449814499145001450114502145031450414505145061450714508145091451014511145121451314514145151451614517145181451914520145211452214523145241452514526145271452814529145301453114532145331453414535145361453714538145391454014541145421454314544145451454614547145481454914550145511455214553145541455514556145571455814559145601456114562145631456414565145661456714568145691457014571145721457314574145751457614577145781457914580145811458214583145841458514586145871458814589145901459114592145931459414595145961459714598145991460014601146021460314604146051460614607146081460914610146111461214613146141461514616146171461814619146201462114622146231462414625146261462714628146291463014631146321463314634146351463614637146381463914640146411464214643146441464514646146471464814649146501465114652146531465414655146561465714658146591466014661146621466314664146651466614667146681466914670146711467214673146741467514676146771467814679146801468114682146831468414685146861468714688146891469014691146921469314694146951469614697146981469914700147011470214703147041470514706147071470814709147101471114712147131471414715147161471714718147191472014721147221472314724147251472614727147281472914730147311473214733147341473514736147371473814739147401474114742147431474414745147461474714748147491475014751147521475314754147551475614757147581475914760147611476214763147641476514766147671476814769147701477114772147731477414775147761477714778147791478014781147821478314784147851478614787147881478914790147911479214793147941479514796147971479814799148001480114802148031480414805148061480714808148091481014811148121481314814148151481614817148181481914820148211482214823148241482514826148271482814829148301483114832148331483414835148361483714838148391484014841148421484314844148451484614847148481484914850148511485214853148541485514856148571485814859148601486114862148631486414865148661486714868148691487014871148721487314874148751487614877148781487914880148811488214883148841488514886148871488814889148901489114892148931489414895148961489714898148991490014901149021490314904149051490614907149081490914910149111491214913149141491514916149171491814919149201492114922149231492414925149261492714928149291493014931149321493314934149351493614937149381493914940149411494214943149441494514946149471494814949149501495114952149531495414955149561495714958149591496014961149621496314964149651496614967149681496914970149711497214973149741497514976149771497814979149801498114982149831498414985149861498714988149891499014991149921499314994149951499614997149981499915000150011500215003150041500515006150071500815009150101501115012150131501415015150161501715018150191502015021150221502315024150251502615027150281502915030150311503215033150341503515036150371503815039150401504115042150431504415045150461504715048150491505015051150521505315054150551505615057150581505915060150611506215063150641506515066150671506815069150701507115072150731507415075150761507715078150791508015081150821508315084150851508615087150881508915090150911509215093150941509515096150971509815099151001510115102151031510415105151061510715108151091511015111151121511315114151151511615117151181511915120151211512215123151241512515126151271512815129151301513115132151331513415135151361513715138151391514015141151421514315144151451514615147151481514915150151511515215153151541515515156151571515815159151601516115162151631516415165151661516715168151691517015171151721517315174151751517615177151781517915180151811518215183151841518515186151871518815189151901519115192151931519415195151961519715198151991520015201152021520315204152051520615207152081520915210152111521215213152141521515216152171521815219152201522115222152231522415225152261522715228152291523015231152321523315234152351523615237152381523915240152411524215243152441524515246152471524815249152501525115252152531525415255152561525715258152591526015261152621526315264152651526615267152681526915270152711527215273152741527515276152771527815279152801528115282152831528415285152861528715288152891529015291152921529315294152951529615297152981529915300153011530215303153041530515306153071530815309153101531115312153131531415315153161531715318153191532015321153221532315324153251532615327153281532915330153311533215333153341533515336153371533815339153401534115342153431534415345153461534715348153491535015351153521535315354153551535615357153581535915360153611536215363153641536515366153671536815369153701537115372153731537415375153761537715378153791538015381153821538315384153851538615387153881538915390153911539215393153941539515396153971539815399154001540115402154031540415405154061540715408154091541015411154121541315414154151541615417154181541915420154211542215423154241542515426154271542815429154301543115432154331543415435154361543715438154391544015441154421544315444154451544615447154481544915450154511545215453154541545515456154571545815459154601546115462154631546415465154661546715468154691547015471154721547315474154751547615477154781547915480154811548215483154841548515486154871548815489154901549115492154931549415495154961549715498
  1. @%:@! /bin/sh
  2. @%:@ Guess values for system-dependent variables and create Makefiles.
  3. @%:@ Generated by GNU Autoconf 2.69 for libnl 3.2.25.
  4. @%:@
  5. @%:@
  6. @%:@ Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  7. @%:@
  8. @%:@
  9. @%:@ This configure script is free software; the Free Software Foundation
  10. @%:@ gives unlimited permission to copy, distribute and modify it.
  11. ## -------------------- ##
  12. ## M4sh Initialization. ##
  13. ## -------------------- ##
  14. # Be more Bourne compatible
  15. DUALCASE=1; export DUALCASE # for MKS sh
  16. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  17. emulate sh
  18. NULLCMD=:
  19. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  20. # is contrary to our usage. Disable this feature.
  21. alias -g '${1+"$@"}'='"$@"'
  22. setopt NO_GLOB_SUBST
  23. else
  24. case `(set -o) 2>/dev/null` in @%:@(
  25. *posix*) :
  26. set -o posix ;; @%:@(
  27. *) :
  28. ;;
  29. esac
  30. fi
  31. as_nl='
  32. '
  33. export as_nl
  34. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  35. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  36. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  37. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  38. # Prefer a ksh shell builtin over an external printf program on Solaris,
  39. # but without wasting forks for bash or zsh.
  40. if test -z "$BASH_VERSION$ZSH_VERSION" \
  41. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  42. as_echo='print -r --'
  43. as_echo_n='print -rn --'
  44. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  45. as_echo='printf %s\n'
  46. as_echo_n='printf %s'
  47. else
  48. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  49. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  50. as_echo_n='/usr/ucb/echo -n'
  51. else
  52. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  53. as_echo_n_body='eval
  54. arg=$1;
  55. case $arg in @%:@(
  56. *"$as_nl"*)
  57. expr "X$arg" : "X\\(.*\\)$as_nl";
  58. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  59. esac;
  60. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  61. '
  62. export as_echo_n_body
  63. as_echo_n='sh -c $as_echo_n_body as_echo'
  64. fi
  65. export as_echo_body
  66. as_echo='sh -c $as_echo_body as_echo'
  67. fi
  68. # The user is always right.
  69. if test "${PATH_SEPARATOR+set}" != set; then
  70. PATH_SEPARATOR=:
  71. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  72. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  73. PATH_SEPARATOR=';'
  74. }
  75. fi
  76. # IFS
  77. # We need space, tab and new line, in precisely that order. Quoting is
  78. # there to prevent editors from complaining about space-tab.
  79. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  80. # splitting by setting IFS to empty value.)
  81. IFS=" "" $as_nl"
  82. # Find who we are. Look in the path if we contain no directory separator.
  83. as_myself=
  84. case $0 in @%:@((
  85. *[\\/]* ) as_myself=$0 ;;
  86. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  87. for as_dir in $PATH
  88. do
  89. IFS=$as_save_IFS
  90. test -z "$as_dir" && as_dir=.
  91. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  92. done
  93. IFS=$as_save_IFS
  94. ;;
  95. esac
  96. # We did not find ourselves, most probably we were run as `sh COMMAND'
  97. # in which case we are not to be found in the path.
  98. if test "x$as_myself" = x; then
  99. as_myself=$0
  100. fi
  101. if test ! -f "$as_myself"; then
  102. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  103. exit 1
  104. fi
  105. # Unset variables that we do not need and which cause bugs (e.g. in
  106. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  107. # suppresses any "Segmentation fault" message there. '((' could
  108. # trigger a bug in pdksh 5.2.14.
  109. for as_var in BASH_ENV ENV MAIL MAILPATH
  110. do eval test x\${$as_var+set} = xset \
  111. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  112. done
  113. PS1='$ '
  114. PS2='> '
  115. PS4='+ '
  116. # NLS nuisances.
  117. LC_ALL=C
  118. export LC_ALL
  119. LANGUAGE=C
  120. export LANGUAGE
  121. # CDPATH.
  122. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  123. # Use a proper internal environment variable to ensure we don't fall
  124. # into an infinite loop, continuously re-executing ourselves.
  125. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  126. _as_can_reexec=no; export _as_can_reexec;
  127. # We cannot yet assume a decent shell, so we have to provide a
  128. # neutralization value for shells without unset; and this also
  129. # works around shells that cannot unset nonexistent variables.
  130. # Preserve -v and -x to the replacement shell.
  131. BASH_ENV=/dev/null
  132. ENV=/dev/null
  133. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  134. case $- in @%:@ ((((
  135. *v*x* | *x*v* ) as_opts=-vx ;;
  136. *v* ) as_opts=-v ;;
  137. *x* ) as_opts=-x ;;
  138. * ) as_opts= ;;
  139. esac
  140. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  141. # Admittedly, this is quite paranoid, since all the known shells bail
  142. # out after a failed `exec'.
  143. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  144. as_fn_exit 255
  145. fi
  146. # We don't want this to propagate to other subprocesses.
  147. { _as_can_reexec=; unset _as_can_reexec;}
  148. if test "x$CONFIG_SHELL" = x; then
  149. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  150. emulate sh
  151. NULLCMD=:
  152. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  153. # is contrary to our usage. Disable this feature.
  154. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  155. setopt NO_GLOB_SUBST
  156. else
  157. case \`(set -o) 2>/dev/null\` in @%:@(
  158. *posix*) :
  159. set -o posix ;; @%:@(
  160. *) :
  161. ;;
  162. esac
  163. fi
  164. "
  165. as_required="as_fn_return () { (exit \$1); }
  166. as_fn_success () { as_fn_return 0; }
  167. as_fn_failure () { as_fn_return 1; }
  168. as_fn_ret_success () { return 0; }
  169. as_fn_ret_failure () { return 1; }
  170. exitcode=0
  171. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  172. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  173. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  174. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  175. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  176. else
  177. exitcode=1; echo positional parameters were not saved.
  178. fi
  179. test x\$exitcode = x0 || exit 1
  180. test -x / || exit 1"
  181. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  182. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  183. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  184. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  185. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  186. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  187. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. PATH=/empty FPATH=/empty; export PATH FPATH
  190. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  191. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
  192. test \$(( 1 + 1 )) = 2 || exit 1"
  193. if (eval "$as_required") 2>/dev/null; then :
  194. as_have_required=yes
  195. else
  196. as_have_required=no
  197. fi
  198. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  199. else
  200. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  201. as_found=false
  202. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  203. do
  204. IFS=$as_save_IFS
  205. test -z "$as_dir" && as_dir=.
  206. as_found=:
  207. case $as_dir in @%:@(
  208. /*)
  209. for as_base in sh bash ksh sh5; do
  210. # Try only shells that exist, to save several forks.
  211. as_shell=$as_dir/$as_base
  212. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  213. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  214. CONFIG_SHELL=$as_shell as_have_required=yes
  215. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. break 2
  217. fi
  218. fi
  219. done;;
  220. esac
  221. as_found=false
  222. done
  223. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  224. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  225. CONFIG_SHELL=$SHELL as_have_required=yes
  226. fi; }
  227. IFS=$as_save_IFS
  228. if test "x$CONFIG_SHELL" != x; then :
  229. export CONFIG_SHELL
  230. # We cannot yet assume a decent shell, so we have to provide a
  231. # neutralization value for shells without unset; and this also
  232. # works around shells that cannot unset nonexistent variables.
  233. # Preserve -v and -x to the replacement shell.
  234. BASH_ENV=/dev/null
  235. ENV=/dev/null
  236. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  237. case $- in @%:@ ((((
  238. *v*x* | *x*v* ) as_opts=-vx ;;
  239. *v* ) as_opts=-v ;;
  240. *x* ) as_opts=-x ;;
  241. * ) as_opts= ;;
  242. esac
  243. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  244. # Admittedly, this is quite paranoid, since all the known shells bail
  245. # out after a failed `exec'.
  246. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  247. exit 255
  248. fi
  249. if test x$as_have_required = xno; then :
  250. $as_echo "$0: This script requires a shell more modern than all"
  251. $as_echo "$0: the shells that I found on your system."
  252. if test x${ZSH_VERSION+set} = xset ; then
  253. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  254. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  255. else
  256. $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
  257. $0: including any error possibly output before this
  258. $0: message. Then install a modern shell, or manually run
  259. $0: the script under such a shell if you do have one."
  260. fi
  261. exit 1
  262. fi
  263. fi
  264. fi
  265. SHELL=${CONFIG_SHELL-/bin/sh}
  266. export SHELL
  267. # Unset more variables known to interfere with behavior of common tools.
  268. CLICOLOR_FORCE= GREP_OPTIONS=
  269. unset CLICOLOR_FORCE GREP_OPTIONS
  270. ## --------------------- ##
  271. ## M4sh Shell Functions. ##
  272. ## --------------------- ##
  273. @%:@ as_fn_unset VAR
  274. @%:@ ---------------
  275. @%:@ Portably unset VAR.
  276. as_fn_unset ()
  277. {
  278. { eval $1=; unset $1;}
  279. }
  280. as_unset=as_fn_unset
  281. @%:@ as_fn_set_status STATUS
  282. @%:@ -----------------------
  283. @%:@ Set @S|@? to STATUS, without forking.
  284. as_fn_set_status ()
  285. {
  286. return $1
  287. } @%:@ as_fn_set_status
  288. @%:@ as_fn_exit STATUS
  289. @%:@ -----------------
  290. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  291. as_fn_exit ()
  292. {
  293. set +e
  294. as_fn_set_status $1
  295. exit $1
  296. } @%:@ as_fn_exit
  297. @%:@ as_fn_mkdir_p
  298. @%:@ -------------
  299. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  300. as_fn_mkdir_p ()
  301. {
  302. case $as_dir in #(
  303. -*) as_dir=./$as_dir;;
  304. esac
  305. test -d "$as_dir" || eval $as_mkdir_p || {
  306. as_dirs=
  307. while :; do
  308. case $as_dir in #(
  309. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  310. *) as_qdir=$as_dir;;
  311. esac
  312. as_dirs="'$as_qdir' $as_dirs"
  313. as_dir=`$as_dirname -- "$as_dir" ||
  314. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  315. X"$as_dir" : 'X\(//\)[^/]' \| \
  316. X"$as_dir" : 'X\(//\)$' \| \
  317. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  318. $as_echo X"$as_dir" |
  319. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  320. s//\1/
  321. q
  322. }
  323. /^X\(\/\/\)[^/].*/{
  324. s//\1/
  325. q
  326. }
  327. /^X\(\/\/\)$/{
  328. s//\1/
  329. q
  330. }
  331. /^X\(\/\).*/{
  332. s//\1/
  333. q
  334. }
  335. s/.*/./; q'`
  336. test -d "$as_dir" && break
  337. done
  338. test -z "$as_dirs" || eval "mkdir $as_dirs"
  339. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  340. } @%:@ as_fn_mkdir_p
  341. @%:@ as_fn_executable_p FILE
  342. @%:@ -----------------------
  343. @%:@ Test if FILE is an executable regular file.
  344. as_fn_executable_p ()
  345. {
  346. test -f "$1" && test -x "$1"
  347. } @%:@ as_fn_executable_p
  348. @%:@ as_fn_append VAR VALUE
  349. @%:@ ----------------------
  350. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  351. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  352. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  353. @%:@ implementations.
  354. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  355. eval 'as_fn_append ()
  356. {
  357. eval $1+=\$2
  358. }'
  359. else
  360. as_fn_append ()
  361. {
  362. eval $1=\$$1\$2
  363. }
  364. fi # as_fn_append
  365. @%:@ as_fn_arith ARG...
  366. @%:@ ------------------
  367. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  368. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  369. @%:@ must be portable across @S|@(()) and expr.
  370. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  371. eval 'as_fn_arith ()
  372. {
  373. as_val=$(( $* ))
  374. }'
  375. else
  376. as_fn_arith ()
  377. {
  378. as_val=`expr "$@" || test $? -eq 1`
  379. }
  380. fi # as_fn_arith
  381. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  382. @%:@ ----------------------------------------
  383. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  384. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  385. @%:@ script with STATUS, using 1 if that was 0.
  386. as_fn_error ()
  387. {
  388. as_status=$1; test $as_status -eq 0 && as_status=1
  389. if test "$4"; then
  390. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  391. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  392. fi
  393. $as_echo "$as_me: error: $2" >&2
  394. as_fn_exit $as_status
  395. } @%:@ as_fn_error
  396. if expr a : '\(a\)' >/dev/null 2>&1 &&
  397. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  398. as_expr=expr
  399. else
  400. as_expr=false
  401. fi
  402. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  403. as_basename=basename
  404. else
  405. as_basename=false
  406. fi
  407. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  408. as_dirname=dirname
  409. else
  410. as_dirname=false
  411. fi
  412. as_me=`$as_basename -- "$0" ||
  413. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  414. X"$0" : 'X\(//\)$' \| \
  415. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  416. $as_echo X/"$0" |
  417. sed '/^.*\/\([^/][^/]*\)\/*$/{
  418. s//\1/
  419. q
  420. }
  421. /^X\/\(\/\/\)$/{
  422. s//\1/
  423. q
  424. }
  425. /^X\/\(\/\).*/{
  426. s//\1/
  427. q
  428. }
  429. s/.*/./; q'`
  430. # Avoid depending upon Character Ranges.
  431. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  432. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  433. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  434. as_cr_digits='0123456789'
  435. as_cr_alnum=$as_cr_Letters$as_cr_digits
  436. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  437. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  438. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  439. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  440. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  441. sed -n '
  442. p
  443. /[$]LINENO/=
  444. ' <$as_myself |
  445. sed '
  446. s/[$]LINENO.*/&-/
  447. t lineno
  448. b
  449. :lineno
  450. N
  451. :loop
  452. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  453. t loop
  454. s/-\n.*//
  455. ' >$as_me.lineno &&
  456. chmod +x "$as_me.lineno" ||
  457. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  458. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  459. # already done that, so ensure we don't try to do so again and fall
  460. # in an infinite loop. This has already happened in practice.
  461. _as_can_reexec=no; export _as_can_reexec
  462. # Don't try to exec as it changes $[0], causing all sort of problems
  463. # (the dirname of $[0] is not the place where we might find the
  464. # original and so on. Autoconf is especially sensitive to this).
  465. . "./$as_me.lineno"
  466. # Exit status is that of the last command.
  467. exit
  468. }
  469. ECHO_C= ECHO_N= ECHO_T=
  470. case `echo -n x` in @%:@(((((
  471. -n*)
  472. case `echo 'xy\c'` in
  473. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  474. xy) ECHO_C='\c';;
  475. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  476. ECHO_T=' ';;
  477. esac;;
  478. *)
  479. ECHO_N='-n';;
  480. esac
  481. rm -f conf$$ conf$$.exe conf$$.file
  482. if test -d conf$$.dir; then
  483. rm -f conf$$.dir/conf$$.file
  484. else
  485. rm -f conf$$.dir
  486. mkdir conf$$.dir 2>/dev/null
  487. fi
  488. if (echo >conf$$.file) 2>/dev/null; then
  489. if ln -s conf$$.file conf$$ 2>/dev/null; then
  490. as_ln_s='ln -s'
  491. # ... but there are two gotchas:
  492. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  493. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  494. # In both cases, we have to default to `cp -pR'.
  495. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  496. as_ln_s='cp -pR'
  497. elif ln conf$$.file conf$$ 2>/dev/null; then
  498. as_ln_s=ln
  499. else
  500. as_ln_s='cp -pR'
  501. fi
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  506. rmdir conf$$.dir 2>/dev/null
  507. if mkdir -p . 2>/dev/null; then
  508. as_mkdir_p='mkdir -p "$as_dir"'
  509. else
  510. test -d ./-p && rmdir ./-p
  511. as_mkdir_p=false
  512. fi
  513. as_test_x='test -x'
  514. as_executable_p=as_fn_executable_p
  515. # Sed expression to map a string onto a valid CPP name.
  516. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  517. # Sed expression to map a string onto a valid variable name.
  518. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  519. SHELL=${CONFIG_SHELL-/bin/sh}
  520. test -n "$DJDIR" || exec 7<&0 </dev/null
  521. exec 6>&1
  522. # Name of the host.
  523. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  524. # so uname gets run too.
  525. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  526. #
  527. # Initializations.
  528. #
  529. ac_default_prefix=/usr/local
  530. ac_clean_files=
  531. ac_config_libobj_dir=.
  532. LIB@&t@OBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='libnl'
  539. PACKAGE_TARNAME='libnl'
  540. PACKAGE_VERSION='3.2.25'
  541. PACKAGE_STRING='libnl 3.2.25'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL='http://www.infradead.org/~tgr/libnl/'
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. enable_option_checking=no
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIB@&t@OBJS
  584. subdirs
  585. ENABLE_DEBUG_FALSE
  586. ENABLE_DEBUG_TRUE
  587. DISABLE_PTHREADS_FALSE
  588. DISABLE_PTHREADS_TRUE
  589. ENABLE_CLI_FALSE
  590. ENABLE_CLI_TRUE
  591. pkgconfigdir
  592. ENABLE_UNIT_TESTS_FALSE
  593. ENABLE_UNIT_TESTS_TRUE
  594. CHECK_LIBS
  595. CHECK_CFLAGS
  596. PKG_CONFIG_LIBDIR
  597. PKG_CONFIG_PATH
  598. PKG_CONFIG
  599. YACC
  600. FLEX
  601. CPP
  602. OTOOL64
  603. OTOOL
  604. LIPO
  605. NMEDIT
  606. DSYMUTIL
  607. MANIFEST_TOOL
  608. RANLIB
  609. DLLTOOL
  610. OBJDUMP
  611. LN_S
  612. NM
  613. ac_ct_DUMPBIN
  614. DUMPBIN
  615. LD
  616. FGREP
  617. EGREP
  618. GREP
  619. SED
  620. host_os
  621. host_vendor
  622. host_cpu
  623. host
  624. build_os
  625. build_vendor
  626. build_cpu
  627. build
  628. LIBTOOL
  629. LT_AGE
  630. LT_REVISION
  631. LT_CURRENT
  632. LIBNL_VERSION
  633. MIC_VERSION
  634. MIN_VERSION
  635. MAJ_VERSION
  636. am__fastdepCC_FALSE
  637. am__fastdepCC_TRUE
  638. CCDEPMODE
  639. am__nodep
  640. AMDEPBACKSLASH
  641. AMDEP_FALSE
  642. AMDEP_TRUE
  643. am__quote
  644. am__include
  645. DEPDIR
  646. OBJEXT
  647. EXEEXT
  648. ac_ct_CC
  649. CPPFLAGS
  650. LDFLAGS
  651. CFLAGS
  652. CC
  653. ac_ct_AR
  654. AR
  655. AM_BACKSLASH
  656. AM_DEFAULT_VERBOSITY
  657. AM_DEFAULT_V
  658. AM_V
  659. am__untar
  660. am__tar
  661. AMTAR
  662. am__leading_dot
  663. SET_MAKE
  664. AWK
  665. mkdir_p
  666. MKDIR_P
  667. INSTALL_STRIP_PROGRAM
  668. STRIP
  669. install_sh
  670. MAKEINFO
  671. AUTOHEADER
  672. AUTOMAKE
  673. AUTOCONF
  674. ACLOCAL
  675. VERSION
  676. PACKAGE
  677. CYGPATH_W
  678. am__isrc
  679. INSTALL_DATA
  680. INSTALL_SCRIPT
  681. INSTALL_PROGRAM
  682. target_alias
  683. host_alias
  684. build_alias
  685. LIBS
  686. ECHO_T
  687. ECHO_N
  688. ECHO_C
  689. DEFS
  690. mandir
  691. localedir
  692. libdir
  693. psdir
  694. pdfdir
  695. dvidir
  696. htmldir
  697. infodir
  698. docdir
  699. oldincludedir
  700. includedir
  701. runstatedir
  702. localstatedir
  703. sharedstatedir
  704. sysconfdir
  705. datadir
  706. datarootdir
  707. libexecdir
  708. sbindir
  709. bindir
  710. program_transform_name
  711. prefix
  712. exec_prefix
  713. PACKAGE_URL
  714. PACKAGE_BUGREPORT
  715. PACKAGE_STRING
  716. PACKAGE_VERSION
  717. PACKAGE_TARNAME
  718. PACKAGE_NAME
  719. PATH_SEPARATOR
  720. SHELL'
  721. ac_subst_files=''
  722. ac_user_opts='
  723. enable_option_checking
  724. enable_silent_rules
  725. enable_dependency_tracking
  726. enable_shared
  727. enable_static
  728. with_pic
  729. enable_fast_install
  730. with_gnu_ld
  731. with_sysroot
  732. enable_libtool_lock
  733. with_pkgconfigdir
  734. enable_cli
  735. enable_pthreads
  736. enable_debug
  737. '
  738. ac_precious_vars='build_alias
  739. host_alias
  740. target_alias
  741. CC
  742. CFLAGS
  743. LDFLAGS
  744. LIBS
  745. CPPFLAGS
  746. CPP
  747. PKG_CONFIG
  748. PKG_CONFIG_PATH
  749. PKG_CONFIG_LIBDIR
  750. CHECK_CFLAGS
  751. CHECK_LIBS'
  752. ac_subdirs_all='doc'
  753. # Initialize some variables set by options.
  754. ac_init_help=
  755. ac_init_version=false
  756. ac_unrecognized_opts=
  757. ac_unrecognized_sep=
  758. # The variables have the same names as the options, with
  759. # dashes changed to underlines.
  760. cache_file=/dev/null
  761. exec_prefix=NONE
  762. no_create=
  763. no_recursion=
  764. prefix=NONE
  765. program_prefix=NONE
  766. program_suffix=NONE
  767. program_transform_name=s,x,x,
  768. silent=
  769. site=
  770. srcdir=
  771. verbose=
  772. x_includes=NONE
  773. x_libraries=NONE
  774. # Installation directory options.
  775. # These are left unexpanded so users can "make install exec_prefix=/foo"
  776. # and all the variables that are supposed to be based on exec_prefix
  777. # by default will actually change.
  778. # Use braces instead of parens because sh, perl, etc. also accept them.
  779. # (The list follows the same order as the GNU Coding Standards.)
  780. bindir='${exec_prefix}/bin'
  781. sbindir='${exec_prefix}/sbin'
  782. libexecdir='${exec_prefix}/libexec'
  783. datarootdir='${prefix}/share'
  784. datadir='${datarootdir}'
  785. sysconfdir='${prefix}/etc'
  786. sharedstatedir='${prefix}/com'
  787. localstatedir='${prefix}/var'
  788. runstatedir='${localstatedir}/run'
  789. includedir='${prefix}/include'
  790. oldincludedir='/usr/include'
  791. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  792. infodir='${datarootdir}/info'
  793. htmldir='${docdir}'
  794. dvidir='${docdir}'
  795. pdfdir='${docdir}'
  796. psdir='${docdir}'
  797. libdir='${exec_prefix}/lib'
  798. localedir='${datarootdir}/locale'
  799. mandir='${datarootdir}/man'
  800. ac_prev=
  801. ac_dashdash=
  802. for ac_option
  803. do
  804. # If the previous option needs an argument, assign it.
  805. if test -n "$ac_prev"; then
  806. eval $ac_prev=\$ac_option
  807. ac_prev=
  808. continue
  809. fi
  810. case $ac_option in
  811. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  812. *=) ac_optarg= ;;
  813. *) ac_optarg=yes ;;
  814. esac
  815. # Accept the important Cygnus configure options, so we can diagnose typos.
  816. case $ac_dashdash$ac_option in
  817. --)
  818. ac_dashdash=yes ;;
  819. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  820. ac_prev=bindir ;;
  821. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  822. bindir=$ac_optarg ;;
  823. -build | --build | --buil | --bui | --bu)
  824. ac_prev=build_alias ;;
  825. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  826. build_alias=$ac_optarg ;;
  827. -cache-file | --cache-file | --cache-fil | --cache-fi \
  828. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  829. ac_prev=cache_file ;;
  830. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  831. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  832. cache_file=$ac_optarg ;;
  833. --config-cache | -C)
  834. cache_file=config.cache ;;
  835. -datadir | --datadir | --datadi | --datad)
  836. ac_prev=datadir ;;
  837. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  838. datadir=$ac_optarg ;;
  839. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  840. | --dataroo | --dataro | --datar)
  841. ac_prev=datarootdir ;;
  842. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  843. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  844. datarootdir=$ac_optarg ;;
  845. -disable-* | --disable-*)
  846. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  847. # Reject names that are not valid shell variable names.
  848. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  849. as_fn_error $? "invalid feature name: $ac_useropt"
  850. ac_useropt_orig=$ac_useropt
  851. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  852. case $ac_user_opts in
  853. *"
  854. "enable_$ac_useropt"
  855. "*) ;;
  856. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  857. ac_unrecognized_sep=', ';;
  858. esac
  859. eval enable_$ac_useropt=no ;;
  860. -docdir | --docdir | --docdi | --doc | --do)
  861. ac_prev=docdir ;;
  862. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  863. docdir=$ac_optarg ;;
  864. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  865. ac_prev=dvidir ;;
  866. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  867. dvidir=$ac_optarg ;;
  868. -enable-* | --enable-*)
  869. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  870. # Reject names that are not valid shell variable names.
  871. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  872. as_fn_error $? "invalid feature name: $ac_useropt"
  873. ac_useropt_orig=$ac_useropt
  874. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  875. case $ac_user_opts in
  876. *"
  877. "enable_$ac_useropt"
  878. "*) ;;
  879. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  880. ac_unrecognized_sep=', ';;
  881. esac
  882. eval enable_$ac_useropt=\$ac_optarg ;;
  883. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  884. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  885. | --exec | --exe | --ex)
  886. ac_prev=exec_prefix ;;
  887. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  888. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  889. | --exec=* | --exe=* | --ex=*)
  890. exec_prefix=$ac_optarg ;;
  891. -gas | --gas | --ga | --g)
  892. # Obsolete; use --with-gas.
  893. with_gas=yes ;;
  894. -help | --help | --hel | --he | -h)
  895. ac_init_help=long ;;
  896. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  897. ac_init_help=recursive ;;
  898. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  899. ac_init_help=short ;;
  900. -host | --host | --hos | --ho)
  901. ac_prev=host_alias ;;
  902. -host=* | --host=* | --hos=* | --ho=*)
  903. host_alias=$ac_optarg ;;
  904. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  905. ac_prev=htmldir ;;
  906. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  907. | --ht=*)
  908. htmldir=$ac_optarg ;;
  909. -includedir | --includedir | --includedi | --included | --include \
  910. | --includ | --inclu | --incl | --inc)
  911. ac_prev=includedir ;;
  912. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  913. | --includ=* | --inclu=* | --incl=* | --inc=*)
  914. includedir=$ac_optarg ;;
  915. -infodir | --infodir | --infodi | --infod | --info | --inf)
  916. ac_prev=infodir ;;
  917. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  918. infodir=$ac_optarg ;;
  919. -libdir | --libdir | --libdi | --libd)
  920. ac_prev=libdir ;;
  921. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  922. libdir=$ac_optarg ;;
  923. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  924. | --libexe | --libex | --libe)
  925. ac_prev=libexecdir ;;
  926. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  927. | --libexe=* | --libex=* | --libe=*)
  928. libexecdir=$ac_optarg ;;
  929. -localedir | --localedir | --localedi | --localed | --locale)
  930. ac_prev=localedir ;;
  931. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  932. localedir=$ac_optarg ;;
  933. -localstatedir | --localstatedir | --localstatedi | --localstated \
  934. | --localstate | --localstat | --localsta | --localst | --locals)
  935. ac_prev=localstatedir ;;
  936. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  937. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  938. localstatedir=$ac_optarg ;;
  939. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  940. ac_prev=mandir ;;
  941. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  942. mandir=$ac_optarg ;;
  943. -nfp | --nfp | --nf)
  944. # Obsolete; use --without-fp.
  945. with_fp=no ;;
  946. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  947. | --no-cr | --no-c | -n)
  948. no_create=yes ;;
  949. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  950. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  951. no_recursion=yes ;;
  952. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  953. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  954. | --oldin | --oldi | --old | --ol | --o)
  955. ac_prev=oldincludedir ;;
  956. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  957. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  958. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  959. oldincludedir=$ac_optarg ;;
  960. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  961. ac_prev=prefix ;;
  962. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  963. prefix=$ac_optarg ;;
  964. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  965. | --program-pre | --program-pr | --program-p)
  966. ac_prev=program_prefix ;;
  967. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  968. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  969. program_prefix=$ac_optarg ;;
  970. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  971. | --program-suf | --program-su | --program-s)
  972. ac_prev=program_suffix ;;
  973. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  974. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  975. program_suffix=$ac_optarg ;;
  976. -program-transform-name | --program-transform-name \
  977. | --program-transform-nam | --program-transform-na \
  978. | --program-transform-n | --program-transform- \
  979. | --program-transform | --program-transfor \
  980. | --program-transfo | --program-transf \
  981. | --program-trans | --program-tran \
  982. | --progr-tra | --program-tr | --program-t)
  983. ac_prev=program_transform_name ;;
  984. -program-transform-name=* | --program-transform-name=* \
  985. | --program-transform-nam=* | --program-transform-na=* \
  986. | --program-transform-n=* | --program-transform-=* \
  987. | --program-transform=* | --program-transfor=* \
  988. | --program-transfo=* | --program-transf=* \
  989. | --program-trans=* | --program-tran=* \
  990. | --progr-tra=* | --program-tr=* | --program-t=*)
  991. program_transform_name=$ac_optarg ;;
  992. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  993. ac_prev=pdfdir ;;
  994. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  995. pdfdir=$ac_optarg ;;
  996. -psdir | --psdir | --psdi | --psd | --ps)
  997. ac_prev=psdir ;;
  998. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  999. psdir=$ac_optarg ;;
  1000. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1001. | -silent | --silent | --silen | --sile | --sil)
  1002. silent=yes ;;
  1003. -runstatedir | --runstatedir | --runstatedi | --runstated \
  1004. | --runstate | --runstat | --runsta | --runst | --runs \
  1005. | --run | --ru | --r)
  1006. ac_prev=runstatedir ;;
  1007. -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
  1008. | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
  1009. | --run=* | --ru=* | --r=*)
  1010. runstatedir=$ac_optarg ;;
  1011. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  1012. ac_prev=sbindir ;;
  1013. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  1014. | --sbi=* | --sb=*)
  1015. sbindir=$ac_optarg ;;
  1016. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1017. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1018. | --sharedst | --shareds | --shared | --share | --shar \
  1019. | --sha | --sh)
  1020. ac_prev=sharedstatedir ;;
  1021. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1022. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1023. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1024. | --sha=* | --sh=*)
  1025. sharedstatedir=$ac_optarg ;;
  1026. -site | --site | --sit)
  1027. ac_prev=site ;;
  1028. -site=* | --site=* | --sit=*)
  1029. site=$ac_optarg ;;
  1030. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1031. ac_prev=srcdir ;;
  1032. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1033. srcdir=$ac_optarg ;;
  1034. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1035. | --syscon | --sysco | --sysc | --sys | --sy)
  1036. ac_prev=sysconfdir ;;
  1037. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1038. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1039. sysconfdir=$ac_optarg ;;
  1040. -target | --target | --targe | --targ | --tar | --ta | --t)
  1041. ac_prev=target_alias ;;
  1042. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1043. target_alias=$ac_optarg ;;
  1044. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1045. verbose=yes ;;
  1046. -version | --version | --versio | --versi | --vers | -V)
  1047. ac_init_version=: ;;
  1048. -with-* | --with-*)
  1049. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1050. # Reject names that are not valid shell variable names.
  1051. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1052. as_fn_error $? "invalid package name: $ac_useropt"
  1053. ac_useropt_orig=$ac_useropt
  1054. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1055. case $ac_user_opts in
  1056. *"
  1057. "with_$ac_useropt"
  1058. "*) ;;
  1059. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1060. ac_unrecognized_sep=', ';;
  1061. esac
  1062. eval with_$ac_useropt=\$ac_optarg ;;
  1063. -without-* | --without-*)
  1064. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1065. # Reject names that are not valid shell variable names.
  1066. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1067. as_fn_error $? "invalid package name: $ac_useropt"
  1068. ac_useropt_orig=$ac_useropt
  1069. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1070. case $ac_user_opts in
  1071. *"
  1072. "with_$ac_useropt"
  1073. "*) ;;
  1074. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1075. ac_unrecognized_sep=', ';;
  1076. esac
  1077. eval with_$ac_useropt=no ;;
  1078. --x)
  1079. # Obsolete; use --with-x.
  1080. with_x=yes ;;
  1081. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1082. | --x-incl | --x-inc | --x-in | --x-i)
  1083. ac_prev=x_includes ;;
  1084. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1085. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1086. x_includes=$ac_optarg ;;
  1087. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1088. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1089. ac_prev=x_libraries ;;
  1090. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1091. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1092. x_libraries=$ac_optarg ;;
  1093. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1094. Try \`$0 --help' for more information"
  1095. ;;
  1096. *=*)
  1097. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1098. # Reject names that are not valid shell variable names.
  1099. case $ac_envvar in #(
  1100. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1101. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1102. esac
  1103. eval $ac_envvar=\$ac_optarg
  1104. export $ac_envvar ;;
  1105. *)
  1106. # FIXME: should be removed in autoconf 3.0.
  1107. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1108. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1109. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1110. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1111. ;;
  1112. esac
  1113. done
  1114. if test -n "$ac_prev"; then
  1115. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1116. as_fn_error $? "missing argument to $ac_option"
  1117. fi
  1118. if test -n "$ac_unrecognized_opts"; then
  1119. case $enable_option_checking in
  1120. no) ;;
  1121. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1122. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1123. esac
  1124. fi
  1125. # Check all directory arguments for consistency.
  1126. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1127. datadir sysconfdir sharedstatedir localstatedir includedir \
  1128. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1129. libdir localedir mandir runstatedir
  1130. do
  1131. eval ac_val=\$$ac_var
  1132. # Remove trailing slashes.
  1133. case $ac_val in
  1134. */ )
  1135. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1136. eval $ac_var=\$ac_val;;
  1137. esac
  1138. # Be sure to have absolute directory names.
  1139. case $ac_val in
  1140. [\\/$]* | ?:[\\/]* ) continue;;
  1141. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1142. esac
  1143. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1144. done
  1145. # There might be people who depend on the old broken behavior: `$host'
  1146. # used to hold the argument of --host etc.
  1147. # FIXME: To remove some day.
  1148. build=$build_alias
  1149. host=$host_alias
  1150. target=$target_alias
  1151. # FIXME: To remove some day.
  1152. if test "x$host_alias" != x; then
  1153. if test "x$build_alias" = x; then
  1154. cross_compiling=maybe
  1155. elif test "x$build_alias" != "x$host_alias"; then
  1156. cross_compiling=yes
  1157. fi
  1158. fi
  1159. ac_tool_prefix=
  1160. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1161. test "$silent" = yes && exec 6>/dev/null
  1162. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1163. ac_ls_di=`ls -di .` &&
  1164. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1165. as_fn_error $? "working directory cannot be determined"
  1166. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1167. as_fn_error $? "pwd does not report name of working directory"
  1168. # Find the source files, if location was not specified.
  1169. if test -z "$srcdir"; then
  1170. ac_srcdir_defaulted=yes
  1171. # Try the directory containing this script, then the parent directory.
  1172. ac_confdir=`$as_dirname -- "$as_myself" ||
  1173. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1174. X"$as_myself" : 'X\(//\)[^/]' \| \
  1175. X"$as_myself" : 'X\(//\)$' \| \
  1176. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1177. $as_echo X"$as_myself" |
  1178. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1179. s//\1/
  1180. q
  1181. }
  1182. /^X\(\/\/\)[^/].*/{
  1183. s//\1/
  1184. q
  1185. }
  1186. /^X\(\/\/\)$/{
  1187. s//\1/
  1188. q
  1189. }
  1190. /^X\(\/\).*/{
  1191. s//\1/
  1192. q
  1193. }
  1194. s/.*/./; q'`
  1195. srcdir=$ac_confdir
  1196. if test ! -r "$srcdir/$ac_unique_file"; then
  1197. srcdir=..
  1198. fi
  1199. else
  1200. ac_srcdir_defaulted=no
  1201. fi
  1202. if test ! -r "$srcdir/$ac_unique_file"; then
  1203. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1204. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1205. fi
  1206. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1207. ac_abs_confdir=`(
  1208. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1209. pwd)`
  1210. # When building in place, set srcdir=.
  1211. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1212. srcdir=.
  1213. fi
  1214. # Remove unnecessary trailing slashes from srcdir.
  1215. # Double slashes in file names in object file debugging info
  1216. # mess up M-x gdb in Emacs.
  1217. case $srcdir in
  1218. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1219. esac
  1220. for ac_var in $ac_precious_vars; do
  1221. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1222. eval ac_env_${ac_var}_value=\$${ac_var}
  1223. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1224. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1225. done
  1226. #
  1227. # Report the --help message.
  1228. #
  1229. if test "$ac_init_help" = "long"; then
  1230. # Omit some internal or obsolete options to make the list less imposing.
  1231. # This message is too long to be a string in the A/UX 3.1 sh.
  1232. cat <<_ACEOF
  1233. \`configure' configures libnl 3.2.25 to adapt to many kinds of systems.
  1234. Usage: $0 [OPTION]... [VAR=VALUE]...
  1235. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1236. VAR=VALUE. See below for descriptions of some of the useful variables.
  1237. Defaults for the options are specified in brackets.
  1238. Configuration:
  1239. -h, --help display this help and exit
  1240. --help=short display options specific to this package
  1241. --help=recursive display the short help of all the included packages
  1242. -V, --version display version information and exit
  1243. -q, --quiet, --silent do not print \`checking ...' messages
  1244. --cache-file=FILE cache test results in FILE [disabled]
  1245. -C, --config-cache alias for \`--cache-file=config.cache'
  1246. -n, --no-create do not create output files
  1247. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1248. Installation directories:
  1249. --prefix=PREFIX install architecture-independent files in PREFIX
  1250. @<:@@S|@ac_default_prefix@:>@
  1251. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1252. @<:@PREFIX@:>@
  1253. By default, \`make install' will install all the files in
  1254. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1255. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1256. for instance \`--prefix=\$HOME'.
  1257. For better control, use the options below.
  1258. Fine tuning of the installation directories:
  1259. --bindir=DIR user executables [EPREFIX/bin]
  1260. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1261. --libexecdir=DIR program executables [EPREFIX/libexec]
  1262. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1263. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1264. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1265. --runstatedir=DIR modifiable per-process data [LOCALSTATEDIR/run]
  1266. --libdir=DIR object code libraries [EPREFIX/lib]
  1267. --includedir=DIR C header files [PREFIX/include]
  1268. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1269. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1270. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1271. --infodir=DIR info documentation [DATAROOTDIR/info]
  1272. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1273. --mandir=DIR man documentation [DATAROOTDIR/man]
  1274. --docdir=DIR documentation root @<:@DATAROOTDIR/doc/libnl@:>@
  1275. --htmldir=DIR html documentation [DOCDIR]
  1276. --dvidir=DIR dvi documentation [DOCDIR]
  1277. --pdfdir=DIR pdf documentation [DOCDIR]
  1278. --psdir=DIR ps documentation [DOCDIR]
  1279. _ACEOF
  1280. cat <<\_ACEOF
  1281. Program names:
  1282. --program-prefix=PREFIX prepend PREFIX to installed program names
  1283. --program-suffix=SUFFIX append SUFFIX to installed program names
  1284. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1285. System types:
  1286. --build=BUILD configure for building on BUILD [guessed]
  1287. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1288. _ACEOF
  1289. fi
  1290. if test -n "$ac_init_help"; then
  1291. case $ac_init_help in
  1292. short | recursive ) echo "Configuration of libnl 3.2.25:";;
  1293. esac
  1294. cat <<\_ACEOF
  1295. Optional Features:
  1296. --disable-option-checking ignore unrecognized --enable/--with options
  1297. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1298. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1299. --enable-silent-rules less verbose build output (undo: "make V=1")
  1300. --disable-silent-rules verbose build output (undo: "make V=0")
  1301. --enable-dependency-tracking
  1302. do not reject slow dependency extractors
  1303. --disable-dependency-tracking
  1304. speeds up one-time build
  1305. --enable-shared@<:@=PKGS@:>@ build shared libraries @<:@default=yes@:>@
  1306. --enable-static@<:@=PKGS@:>@ build static libraries @<:@default=yes@:>@
  1307. --enable-fast-install@<:@=PKGS@:>@
  1308. optimize for fast installation @<:@default=yes@:>@
  1309. --disable-libtool-lock avoid locking (might break parallel builds)
  1310. --disable-cli Do not build command line interface utils
  1311. --disable-pthreads Disable pthreads support
  1312. --disable-debug Do not include debugging statements
  1313. Optional Packages:
  1314. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1315. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1316. --with-pic@<:@=PKGS@:>@ try to use only PIC/non-PIC objects @<:@default=use
  1317. both@:>@
  1318. --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@
  1319. --with-sysroot=DIR Search for dependent libraries within DIR
  1320. (or the compiler's sysroot if not specified).
  1321. --with-pkgconfigdir=PATH
  1322. Path to the pkgconfig directory @<:@@<:@LIBDIR/pkgconfig@:>@@:>@
  1323. Some influential environment variables:
  1324. CC C compiler command
  1325. CFLAGS C compiler flags
  1326. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1327. nonstandard directory <lib dir>
  1328. LIBS libraries to pass to the linker, e.g. -l<library>
  1329. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1330. you have headers in a nonstandard directory <include dir>
  1331. CPP C preprocessor
  1332. PKG_CONFIG path to pkg-config utility
  1333. PKG_CONFIG_PATH
  1334. directories to add to pkg-config's search path
  1335. PKG_CONFIG_LIBDIR
  1336. path overriding pkg-config's built-in search path
  1337. CHECK_CFLAGS
  1338. C compiler flags for CHECK, overriding pkg-config
  1339. CHECK_LIBS linker flags for CHECK, overriding pkg-config
  1340. Use these variables to override the choices made by `configure' or to help
  1341. it to find libraries and programs with nonstandard names/locations.
  1342. Report bugs to the package provider.
  1343. libnl home page: <http://www.infradead.org/~tgr/libnl/>.
  1344. _ACEOF
  1345. ac_status=$?
  1346. fi
  1347. if test "$ac_init_help" = "recursive"; then
  1348. # If there are subdirs, report their specific --help.
  1349. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1350. test -d "$ac_dir" ||
  1351. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1352. continue
  1353. ac_builddir=.
  1354. case "$ac_dir" in
  1355. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1356. *)
  1357. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1358. # A ".." for each directory in $ac_dir_suffix.
  1359. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1360. case $ac_top_builddir_sub in
  1361. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1362. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1363. esac ;;
  1364. esac
  1365. ac_abs_top_builddir=$ac_pwd
  1366. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1367. # for backward compatibility:
  1368. ac_top_builddir=$ac_top_build_prefix
  1369. case $srcdir in
  1370. .) # We are building in place.
  1371. ac_srcdir=.
  1372. ac_top_srcdir=$ac_top_builddir_sub
  1373. ac_abs_top_srcdir=$ac_pwd ;;
  1374. [\\/]* | ?:[\\/]* ) # Absolute name.
  1375. ac_srcdir=$srcdir$ac_dir_suffix;
  1376. ac_top_srcdir=$srcdir
  1377. ac_abs_top_srcdir=$srcdir ;;
  1378. *) # Relative name.
  1379. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1380. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1381. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1382. esac
  1383. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1384. cd "$ac_dir" || { ac_status=$?; continue; }
  1385. # Check for guested configure.
  1386. if test -f "$ac_srcdir/configure.gnu"; then
  1387. echo &&
  1388. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1389. elif test -f "$ac_srcdir/configure"; then
  1390. echo &&
  1391. $SHELL "$ac_srcdir/configure" --help=recursive
  1392. else
  1393. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1394. fi || ac_status=$?
  1395. cd "$ac_pwd" || { ac_status=$?; break; }
  1396. done
  1397. fi
  1398. test -n "$ac_init_help" && exit $ac_status
  1399. if $ac_init_version; then
  1400. cat <<\_ACEOF
  1401. libnl configure 3.2.25
  1402. generated by GNU Autoconf 2.69
  1403. Copyright (C) 2012 Free Software Foundation, Inc.
  1404. This configure script is free software; the Free Software Foundation
  1405. gives unlimited permission to copy, distribute and modify it.
  1406. _ACEOF
  1407. exit
  1408. fi
  1409. ## ------------------------ ##
  1410. ## Autoconf initialization. ##
  1411. ## ------------------------ ##
  1412. @%:@ ac_fn_c_try_compile LINENO
  1413. @%:@ --------------------------
  1414. @%:@ Try to compile conftest.@S|@ac_ext, and return whether this succeeded.
  1415. ac_fn_c_try_compile ()
  1416. {
  1417. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1418. rm -f conftest.$ac_objext
  1419. if { { ac_try="$ac_compile"
  1420. case "(($ac_try" in
  1421. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1422. *) ac_try_echo=$ac_try;;
  1423. esac
  1424. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1425. $as_echo "$ac_try_echo"; } >&5
  1426. (eval "$ac_compile") 2>conftest.err
  1427. ac_status=$?
  1428. if test -s conftest.err; then
  1429. grep -v '^ *+' conftest.err >conftest.er1
  1430. cat conftest.er1 >&5
  1431. mv -f conftest.er1 conftest.err
  1432. fi
  1433. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1434. test $ac_status = 0; } && {
  1435. test -z "$ac_c_werror_flag" ||
  1436. test ! -s conftest.err
  1437. } && test -s conftest.$ac_objext; then :
  1438. ac_retval=0
  1439. else
  1440. $as_echo "$as_me: failed program was:" >&5
  1441. sed 's/^/| /' conftest.$ac_ext >&5
  1442. ac_retval=1
  1443. fi
  1444. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1445. as_fn_set_status $ac_retval
  1446. } @%:@ ac_fn_c_try_compile
  1447. @%:@ ac_fn_c_try_link LINENO
  1448. @%:@ -----------------------
  1449. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded.
  1450. ac_fn_c_try_link ()
  1451. {
  1452. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1453. rm -f conftest.$ac_objext conftest$ac_exeext
  1454. if { { ac_try="$ac_link"
  1455. case "(($ac_try" in
  1456. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1457. *) ac_try_echo=$ac_try;;
  1458. esac
  1459. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1460. $as_echo "$ac_try_echo"; } >&5
  1461. (eval "$ac_link") 2>conftest.err
  1462. ac_status=$?
  1463. if test -s conftest.err; then
  1464. grep -v '^ *+' conftest.err >conftest.er1
  1465. cat conftest.er1 >&5
  1466. mv -f conftest.er1 conftest.err
  1467. fi
  1468. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1469. test $ac_status = 0; } && {
  1470. test -z "$ac_c_werror_flag" ||
  1471. test ! -s conftest.err
  1472. } && test -s conftest$ac_exeext && {
  1473. test "$cross_compiling" = yes ||
  1474. test -x conftest$ac_exeext
  1475. }; then :
  1476. ac_retval=0
  1477. else
  1478. $as_echo "$as_me: failed program was:" >&5
  1479. sed 's/^/| /' conftest.$ac_ext >&5
  1480. ac_retval=1
  1481. fi
  1482. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1483. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1484. # interfere with the next link command; also delete a directory that is
  1485. # left behind by Apple's compiler. We do this before executing the actions.
  1486. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1487. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1488. as_fn_set_status $ac_retval
  1489. } @%:@ ac_fn_c_try_link
  1490. @%:@ ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1491. @%:@ -------------------------------------------------------
  1492. @%:@ Tests whether HEADER exists and can be compiled using the include files in
  1493. @%:@ INCLUDES, setting the cache variable VAR accordingly.
  1494. ac_fn_c_check_header_compile ()
  1495. {
  1496. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1497. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1498. $as_echo_n "checking for $2... " >&6; }
  1499. if eval \${$3+:} false; then :
  1500. $as_echo_n "(cached) " >&6
  1501. else
  1502. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1503. /* end confdefs.h. */
  1504. $4
  1505. @%:@include <$2>
  1506. _ACEOF
  1507. if ac_fn_c_try_compile "$LINENO"; then :
  1508. eval "$3=yes"
  1509. else
  1510. eval "$3=no"
  1511. fi
  1512. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1513. fi
  1514. eval ac_res=\$$3
  1515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1516. $as_echo "$ac_res" >&6; }
  1517. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1518. } @%:@ ac_fn_c_check_header_compile
  1519. @%:@ ac_fn_c_try_cpp LINENO
  1520. @%:@ ----------------------
  1521. @%:@ Try to preprocess conftest.@S|@ac_ext, and return whether this succeeded.
  1522. ac_fn_c_try_cpp ()
  1523. {
  1524. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1525. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1526. case "(($ac_try" in
  1527. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1528. *) ac_try_echo=$ac_try;;
  1529. esac
  1530. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1531. $as_echo "$ac_try_echo"; } >&5
  1532. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1533. ac_status=$?
  1534. if test -s conftest.err; then
  1535. grep -v '^ *+' conftest.err >conftest.er1
  1536. cat conftest.er1 >&5
  1537. mv -f conftest.er1 conftest.err
  1538. fi
  1539. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1540. test $ac_status = 0; } > conftest.i && {
  1541. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1542. test ! -s conftest.err
  1543. }; then :
  1544. ac_retval=0
  1545. else
  1546. $as_echo "$as_me: failed program was:" >&5
  1547. sed 's/^/| /' conftest.$ac_ext >&5
  1548. ac_retval=1
  1549. fi
  1550. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1551. as_fn_set_status $ac_retval
  1552. } @%:@ ac_fn_c_try_cpp
  1553. @%:@ ac_fn_c_try_run LINENO
  1554. @%:@ ----------------------
  1555. @%:@ Try to link conftest.@S|@ac_ext, and return whether this succeeded. Assumes
  1556. @%:@ that executables *can* be run.
  1557. ac_fn_c_try_run ()
  1558. {
  1559. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1560. if { { ac_try="$ac_link"
  1561. case "(($ac_try" in
  1562. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1563. *) ac_try_echo=$ac_try;;
  1564. esac
  1565. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1566. $as_echo "$ac_try_echo"; } >&5
  1567. (eval "$ac_link") 2>&5
  1568. ac_status=$?
  1569. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1570. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1571. { { case "(($ac_try" in
  1572. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1573. *) ac_try_echo=$ac_try;;
  1574. esac
  1575. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1576. $as_echo "$ac_try_echo"; } >&5
  1577. (eval "$ac_try") 2>&5
  1578. ac_status=$?
  1579. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1580. test $ac_status = 0; }; }; then :
  1581. ac_retval=0
  1582. else
  1583. $as_echo "$as_me: program exited with status $ac_status" >&5
  1584. $as_echo "$as_me: failed program was:" >&5
  1585. sed 's/^/| /' conftest.$ac_ext >&5
  1586. ac_retval=$ac_status
  1587. fi
  1588. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1589. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1590. as_fn_set_status $ac_retval
  1591. } @%:@ ac_fn_c_try_run
  1592. @%:@ ac_fn_c_check_func LINENO FUNC VAR
  1593. @%:@ ----------------------------------
  1594. @%:@ Tests whether FUNC exists, setting the cache variable VAR accordingly
  1595. ac_fn_c_check_func ()
  1596. {
  1597. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1599. $as_echo_n "checking for $2... " >&6; }
  1600. if eval \${$3+:} false; then :
  1601. $as_echo_n "(cached) " >&6
  1602. else
  1603. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1604. /* end confdefs.h. */
  1605. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1606. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1607. #define $2 innocuous_$2
  1608. /* System header to define __stub macros and hopefully few prototypes,
  1609. which can conflict with char $2 (); below.
  1610. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1611. <limits.h> exists even on freestanding compilers. */
  1612. #ifdef __STDC__
  1613. # include <limits.h>
  1614. #else
  1615. # include <assert.h>
  1616. #endif
  1617. #undef $2
  1618. /* Override any GCC internal prototype to avoid an error.
  1619. Use char because int might match the return type of a GCC
  1620. builtin and then its argument prototype would still apply. */
  1621. #ifdef __cplusplus
  1622. extern "C"
  1623. #endif
  1624. char $2 ();
  1625. /* The GNU C library defines this for functions which it implements
  1626. to always fail with ENOSYS. Some functions are actually named
  1627. something starting with __ and the normal name is an alias. */
  1628. #if defined __stub_$2 || defined __stub___$2
  1629. choke me
  1630. #endif
  1631. int
  1632. main ()
  1633. {
  1634. return $2 ();
  1635. ;
  1636. return 0;
  1637. }
  1638. _ACEOF
  1639. if ac_fn_c_try_link "$LINENO"; then :
  1640. eval "$3=yes"
  1641. else
  1642. eval "$3=no"
  1643. fi
  1644. rm -f core conftest.err conftest.$ac_objext \
  1645. conftest$ac_exeext conftest.$ac_ext
  1646. fi
  1647. eval ac_res=\$$3
  1648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1649. $as_echo "$ac_res" >&6; }
  1650. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1651. } @%:@ ac_fn_c_check_func
  1652. cat >config.log <<_ACEOF
  1653. This file contains any messages produced by compilers while
  1654. running configure, to aid debugging if configure makes a mistake.
  1655. It was created by libnl $as_me 3.2.25, which was
  1656. generated by GNU Autoconf 2.69. Invocation command line was
  1657. $ $0 $@
  1658. _ACEOF
  1659. exec 5>>config.log
  1660. {
  1661. cat <<_ASUNAME
  1662. ## --------- ##
  1663. ## Platform. ##
  1664. ## --------- ##
  1665. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1666. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1667. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1668. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1669. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1670. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1671. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1672. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1673. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1674. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1675. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1676. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1677. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1678. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1679. _ASUNAME
  1680. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1681. for as_dir in $PATH
  1682. do
  1683. IFS=$as_save_IFS
  1684. test -z "$as_dir" && as_dir=.
  1685. $as_echo "PATH: $as_dir"
  1686. done
  1687. IFS=$as_save_IFS
  1688. } >&5
  1689. cat >&5 <<_ACEOF
  1690. ## ----------- ##
  1691. ## Core tests. ##
  1692. ## ----------- ##
  1693. _ACEOF
  1694. # Keep a trace of the command line.
  1695. # Strip out --no-create and --no-recursion so they do not pile up.
  1696. # Strip out --silent because we don't want to record it for future runs.
  1697. # Also quote any args containing shell meta-characters.
  1698. # Make two passes to allow for proper duplicate-argument suppression.
  1699. ac_configure_args=
  1700. ac_configure_args0=
  1701. ac_configure_args1=
  1702. ac_must_keep_next=false
  1703. for ac_pass in 1 2
  1704. do
  1705. for ac_arg
  1706. do
  1707. case $ac_arg in
  1708. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1709. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1710. | -silent | --silent | --silen | --sile | --sil)
  1711. continue ;;
  1712. *\'*)
  1713. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1714. esac
  1715. case $ac_pass in
  1716. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1717. 2)
  1718. as_fn_append ac_configure_args1 " '$ac_arg'"
  1719. if test $ac_must_keep_next = true; then
  1720. ac_must_keep_next=false # Got value, back to normal.
  1721. else
  1722. case $ac_arg in
  1723. *=* | --config-cache | -C | -disable-* | --disable-* \
  1724. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1725. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1726. | -with-* | --with-* | -without-* | --without-* | --x)
  1727. case "$ac_configure_args0 " in
  1728. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1729. esac
  1730. ;;
  1731. -* ) ac_must_keep_next=true ;;
  1732. esac
  1733. fi
  1734. as_fn_append ac_configure_args " '$ac_arg'"
  1735. ;;
  1736. esac
  1737. done
  1738. done
  1739. { ac_configure_args0=; unset ac_configure_args0;}
  1740. { ac_configure_args1=; unset ac_configure_args1;}
  1741. # When interrupted or exit'd, cleanup temporary files, and complete
  1742. # config.log. We remove comments because anyway the quotes in there
  1743. # would cause problems or look ugly.
  1744. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1745. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1746. trap 'exit_status=$?
  1747. # Save into config.log some information that might help in debugging.
  1748. {
  1749. echo
  1750. $as_echo "## ---------------- ##
  1751. ## Cache variables. ##
  1752. ## ---------------- ##"
  1753. echo
  1754. # The following way of writing the cache mishandles newlines in values,
  1755. (
  1756. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1757. eval ac_val=\$$ac_var
  1758. case $ac_val in #(
  1759. *${as_nl}*)
  1760. case $ac_var in #(
  1761. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1762. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1763. esac
  1764. case $ac_var in #(
  1765. _ | IFS | as_nl) ;; #(
  1766. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1767. *) { eval $ac_var=; unset $ac_var;} ;;
  1768. esac ;;
  1769. esac
  1770. done
  1771. (set) 2>&1 |
  1772. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1773. *${as_nl}ac_space=\ *)
  1774. sed -n \
  1775. "s/'\''/'\''\\\\'\'''\''/g;
  1776. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1777. ;; #(
  1778. *)
  1779. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1780. ;;
  1781. esac |
  1782. sort
  1783. )
  1784. echo
  1785. $as_echo "## ----------------- ##
  1786. ## Output variables. ##
  1787. ## ----------------- ##"
  1788. echo
  1789. for ac_var in $ac_subst_vars
  1790. do
  1791. eval ac_val=\$$ac_var
  1792. case $ac_val in
  1793. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1794. esac
  1795. $as_echo "$ac_var='\''$ac_val'\''"
  1796. done | sort
  1797. echo
  1798. if test -n "$ac_subst_files"; then
  1799. $as_echo "## ------------------- ##
  1800. ## File substitutions. ##
  1801. ## ------------------- ##"
  1802. echo
  1803. for ac_var in $ac_subst_files
  1804. do
  1805. eval ac_val=\$$ac_var
  1806. case $ac_val in
  1807. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1808. esac
  1809. $as_echo "$ac_var='\''$ac_val'\''"
  1810. done | sort
  1811. echo
  1812. fi
  1813. if test -s confdefs.h; then
  1814. $as_echo "## ----------- ##
  1815. ## confdefs.h. ##
  1816. ## ----------- ##"
  1817. echo
  1818. cat confdefs.h
  1819. echo
  1820. fi
  1821. test "$ac_signal" != 0 &&
  1822. $as_echo "$as_me: caught signal $ac_signal"
  1823. $as_echo "$as_me: exit $exit_status"
  1824. } >&5
  1825. rm -f core *.core core.conftest.* &&
  1826. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1827. exit $exit_status
  1828. ' 0
  1829. for ac_signal in 1 2 13 15; do
  1830. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1831. done
  1832. ac_signal=0
  1833. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1834. rm -f -r conftest* confdefs.h
  1835. $as_echo "/* confdefs.h */" > confdefs.h
  1836. # Predefined preprocessor variables.
  1837. cat >>confdefs.h <<_ACEOF
  1838. @%:@define PACKAGE_NAME "$PACKAGE_NAME"
  1839. _ACEOF
  1840. cat >>confdefs.h <<_ACEOF
  1841. @%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1842. _ACEOF
  1843. cat >>confdefs.h <<_ACEOF
  1844. @%:@define PACKAGE_VERSION "$PACKAGE_VERSION"
  1845. _ACEOF
  1846. cat >>confdefs.h <<_ACEOF
  1847. @%:@define PACKAGE_STRING "$PACKAGE_STRING"
  1848. _ACEOF
  1849. cat >>confdefs.h <<_ACEOF
  1850. @%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1851. _ACEOF
  1852. cat >>confdefs.h <<_ACEOF
  1853. @%:@define PACKAGE_URL "$PACKAGE_URL"
  1854. _ACEOF
  1855. # Let the site file select an alternate cache file if it wants to.
  1856. # Prefer an explicitly selected file to automatically selected ones.
  1857. ac_site_file1=NONE
  1858. ac_site_file2=NONE
  1859. if test -n "$CONFIG_SITE"; then
  1860. # We do not want a PATH search for config.site.
  1861. case $CONFIG_SITE in @%:@((
  1862. -*) ac_site_file1=./$CONFIG_SITE;;
  1863. */*) ac_site_file1=$CONFIG_SITE;;
  1864. *) ac_site_file1=./$CONFIG_SITE;;
  1865. esac
  1866. elif test "x$prefix" != xNONE; then
  1867. ac_site_file1=$prefix/share/config.site
  1868. ac_site_file2=$prefix/etc/config.site
  1869. else
  1870. ac_site_file1=$ac_default_prefix/share/config.site
  1871. ac_site_file2=$ac_default_prefix/etc/config.site
  1872. fi
  1873. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1874. do
  1875. test "x$ac_site_file" = xNONE && continue
  1876. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1877. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1878. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1879. sed 's/^/| /' "$ac_site_file" >&5
  1880. . "$ac_site_file" \
  1881. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1882. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1883. as_fn_error $? "failed to load site script $ac_site_file
  1884. See \`config.log' for more details" "$LINENO" 5; }
  1885. fi
  1886. done
  1887. if test -r "$cache_file"; then
  1888. # Some versions of bash will fail to source /dev/null (special files
  1889. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1890. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1891. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1892. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1893. case $cache_file in
  1894. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1895. *) . "./$cache_file";;
  1896. esac
  1897. fi
  1898. else
  1899. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1900. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1901. >$cache_file
  1902. fi
  1903. # Check that the precious variables saved in the cache have kept the same
  1904. # value.
  1905. ac_cache_corrupted=false
  1906. for ac_var in $ac_precious_vars; do
  1907. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1908. eval ac_new_set=\$ac_env_${ac_var}_set
  1909. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1910. eval ac_new_val=\$ac_env_${ac_var}_value
  1911. case $ac_old_set,$ac_new_set in
  1912. set,)
  1913. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1914. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1915. ac_cache_corrupted=: ;;
  1916. ,set)
  1917. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1918. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1919. ac_cache_corrupted=: ;;
  1920. ,);;
  1921. *)
  1922. if test "x$ac_old_val" != "x$ac_new_val"; then
  1923. # differences in whitespace do not lead to failure.
  1924. ac_old_val_w=`echo x $ac_old_val`
  1925. ac_new_val_w=`echo x $ac_new_val`
  1926. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1927. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1928. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1929. ac_cache_corrupted=:
  1930. else
  1931. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1932. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1933. eval $ac_var=\$ac_old_val
  1934. fi
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1936. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1937. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1938. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1939. fi;;
  1940. esac
  1941. # Pass precious variables to config.status.
  1942. if test "$ac_new_set" = set; then
  1943. case $ac_new_val in
  1944. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1945. *) ac_arg=$ac_var=$ac_new_val ;;
  1946. esac
  1947. case " $ac_configure_args " in
  1948. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1949. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1950. esac
  1951. fi
  1952. done
  1953. if $ac_cache_corrupted; then
  1954. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1955. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1956. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  1957. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  1958. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  1959. fi
  1960. ## -------------------- ##
  1961. ## Main body of script. ##
  1962. ## -------------------- ##
  1963. ac_ext=c
  1964. ac_cpp='$CPP $CPPFLAGS'
  1965. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  1966. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  1967. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  1968. ac_config_headers="$ac_config_headers lib/defs.h"
  1969. ac_aux_dir=
  1970. for ac_dir in build-aux "$srcdir"/build-aux; do
  1971. if test -f "$ac_dir/install-sh"; then
  1972. ac_aux_dir=$ac_dir
  1973. ac_install_sh="$ac_aux_dir/install-sh -c"
  1974. break
  1975. elif test -f "$ac_dir/install.sh"; then
  1976. ac_aux_dir=$ac_dir
  1977. ac_install_sh="$ac_aux_dir/install.sh -c"
  1978. break
  1979. elif test -f "$ac_dir/shtool"; then
  1980. ac_aux_dir=$ac_dir
  1981. ac_install_sh="$ac_aux_dir/shtool install -c"
  1982. break
  1983. fi
  1984. done
  1985. if test -z "$ac_aux_dir"; then
  1986. as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5
  1987. fi
  1988. # These three variables are undocumented and unsupported,
  1989. # and are intended to be withdrawn in a future Autoconf release.
  1990. # They can cause serious problems if a builder's source tree is in a directory
  1991. # whose full name contains unusual characters.
  1992. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  1993. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  1994. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  1995. am__api_version='1.13'
  1996. # Find a good install program. We prefer a C program (faster),
  1997. # so one script is as good as another. But avoid the broken or
  1998. # incompatible versions:
  1999. # SysV /etc/install, /usr/sbin/install
  2000. # SunOS /usr/etc/install
  2001. # IRIX /sbin/install
  2002. # AIX /bin/install
  2003. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2004. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2005. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2006. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2007. # OS/2's system install, which has a completely different semantic
  2008. # ./install, which can be erroneously created by make from ./install.sh.
  2009. # Reject install programs that cannot install multiple files.
  2010. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2011. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2012. if test -z "$INSTALL"; then
  2013. if ${ac_cv_path_install+:} false; then :
  2014. $as_echo_n "(cached) " >&6
  2015. else
  2016. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2017. for as_dir in $PATH
  2018. do
  2019. IFS=$as_save_IFS
  2020. test -z "$as_dir" && as_dir=.
  2021. # Account for people who put trailing slashes in PATH elements.
  2022. case $as_dir/ in @%:@((
  2023. ./ | .// | /[cC]/* | \
  2024. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2025. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2026. /usr/ucb/* ) ;;
  2027. *)
  2028. # OSF1 and SCO ODT 3.0 have their own names for install.
  2029. # Don't use installbsd from OSF since it installs stuff as root
  2030. # by default.
  2031. for ac_prog in ginstall scoinst install; do
  2032. for ac_exec_ext in '' $ac_executable_extensions; do
  2033. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2034. if test $ac_prog = install &&
  2035. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2036. # AIX install. It has an incompatible calling convention.
  2037. :
  2038. elif test $ac_prog = install &&
  2039. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2040. # program-specific install script used by HP pwplus--don't use.
  2041. :
  2042. else
  2043. rm -rf conftest.one conftest.two conftest.dir
  2044. echo one > conftest.one
  2045. echo two > conftest.two
  2046. mkdir conftest.dir
  2047. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2048. test -s conftest.one && test -s conftest.two &&
  2049. test -s conftest.dir/conftest.one &&
  2050. test -s conftest.dir/conftest.two
  2051. then
  2052. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2053. break 3
  2054. fi
  2055. fi
  2056. fi
  2057. done
  2058. done
  2059. ;;
  2060. esac
  2061. done
  2062. IFS=$as_save_IFS
  2063. rm -rf conftest.one conftest.two conftest.dir
  2064. fi
  2065. if test "${ac_cv_path_install+set}" = set; then
  2066. INSTALL=$ac_cv_path_install
  2067. else
  2068. # As a last resort, use the slow shell script. Don't cache a
  2069. # value for INSTALL within a source directory, because that will
  2070. # break other packages using the cache if that directory is
  2071. # removed, or if the value is a relative name.
  2072. INSTALL=$ac_install_sh
  2073. fi
  2074. fi
  2075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2076. $as_echo "$INSTALL" >&6; }
  2077. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2078. # It thinks the first close brace ends the variable substitution.
  2079. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2080. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2081. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2083. $as_echo_n "checking whether build environment is sane... " >&6; }
  2084. # Reject unsafe characters in $srcdir or the absolute working directory
  2085. # name. Accept space and tab only in the latter.
  2086. am_lf='
  2087. '
  2088. case `pwd` in
  2089. *[\\\"\#\$\&\'\`$am_lf]*)
  2090. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2091. esac
  2092. case $srcdir in
  2093. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2094. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2095. esac
  2096. # Do 'set' in a subshell so we don't clobber the current shell's
  2097. # arguments. Must try -L first in case configure is actually a
  2098. # symlink; some systems play weird games with the mod time of symlinks
  2099. # (eg FreeBSD returns the mod time of the symlink's containing
  2100. # directory).
  2101. if (
  2102. am_has_slept=no
  2103. for am_try in 1 2; do
  2104. echo "timestamp, slept: $am_has_slept" > conftest.file
  2105. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2106. if test "$*" = "X"; then
  2107. # -L didn't work.
  2108. set X `ls -t "$srcdir/configure" conftest.file`
  2109. fi
  2110. if test "$*" != "X $srcdir/configure conftest.file" \
  2111. && test "$*" != "X conftest.file $srcdir/configure"; then
  2112. # If neither matched, then we have a broken ls. This can happen
  2113. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2114. # broken ls alias from the environment. This has actually
  2115. # happened. Such a system could not be considered "sane".
  2116. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2117. alias in your environment" "$LINENO" 5
  2118. fi
  2119. if test "$2" = conftest.file || test $am_try -eq 2; then
  2120. break
  2121. fi
  2122. # Just in case.
  2123. sleep 1
  2124. am_has_slept=yes
  2125. done
  2126. test "$2" = conftest.file
  2127. )
  2128. then
  2129. # Ok.
  2130. :
  2131. else
  2132. as_fn_error $? "newly created file is older than distributed files!
  2133. Check your system clock" "$LINENO" 5
  2134. fi
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2136. $as_echo "yes" >&6; }
  2137. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2138. # generated files are strictly newer.
  2139. am_sleep_pid=
  2140. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2141. ( sleep 1 ) &
  2142. am_sleep_pid=$!
  2143. fi
  2144. rm -f conftest.file
  2145. test "$program_prefix" != NONE &&
  2146. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2147. # Use a double $ so make ignores it.
  2148. test "$program_suffix" != NONE &&
  2149. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2150. # Double any \ or $.
  2151. # By default was `s,x,x', remove it if useless.
  2152. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2153. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2154. # expand $ac_aux_dir to an absolute path
  2155. am_aux_dir=`cd $ac_aux_dir && pwd`
  2156. if test x"${MISSING+set}" != xset; then
  2157. case $am_aux_dir in
  2158. *\ * | *\ *)
  2159. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2160. *)
  2161. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2162. esac
  2163. fi
  2164. # Use eval to expand $SHELL
  2165. if eval "$MISSING --is-lightweight"; then
  2166. am_missing_run="$MISSING "
  2167. else
  2168. am_missing_run=
  2169. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2170. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2171. fi
  2172. if test x"${install_sh}" != xset; then
  2173. case $am_aux_dir in
  2174. *\ * | *\ *)
  2175. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2176. *)
  2177. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2178. esac
  2179. fi
  2180. # Installed binaries are usually stripped using 'strip' when the user
  2181. # run "make install-strip". However 'strip' might not be the right
  2182. # tool to use in cross-compilation environments, therefore Automake
  2183. # will honor the 'STRIP' environment variable to overrule this program.
  2184. if test "$cross_compiling" != no; then
  2185. if test -n "$ac_tool_prefix"; then
  2186. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2187. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2188. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2189. $as_echo_n "checking for $ac_word... " >&6; }
  2190. if ${ac_cv_prog_STRIP+:} false; then :
  2191. $as_echo_n "(cached) " >&6
  2192. else
  2193. if test -n "$STRIP"; then
  2194. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2195. else
  2196. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2197. for as_dir in $PATH
  2198. do
  2199. IFS=$as_save_IFS
  2200. test -z "$as_dir" && as_dir=.
  2201. for ac_exec_ext in '' $ac_executable_extensions; do
  2202. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2203. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2204. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2205. break 2
  2206. fi
  2207. done
  2208. done
  2209. IFS=$as_save_IFS
  2210. fi
  2211. fi
  2212. STRIP=$ac_cv_prog_STRIP
  2213. if test -n "$STRIP"; then
  2214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2215. $as_echo "$STRIP" >&6; }
  2216. else
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2218. $as_echo "no" >&6; }
  2219. fi
  2220. fi
  2221. if test -z "$ac_cv_prog_STRIP"; then
  2222. ac_ct_STRIP=$STRIP
  2223. # Extract the first word of "strip", so it can be a program name with args.
  2224. set dummy strip; ac_word=$2
  2225. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2226. $as_echo_n "checking for $ac_word... " >&6; }
  2227. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2228. $as_echo_n "(cached) " >&6
  2229. else
  2230. if test -n "$ac_ct_STRIP"; then
  2231. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2232. else
  2233. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2234. for as_dir in $PATH
  2235. do
  2236. IFS=$as_save_IFS
  2237. test -z "$as_dir" && as_dir=.
  2238. for ac_exec_ext in '' $ac_executable_extensions; do
  2239. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2240. ac_cv_prog_ac_ct_STRIP="strip"
  2241. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2242. break 2
  2243. fi
  2244. done
  2245. done
  2246. IFS=$as_save_IFS
  2247. fi
  2248. fi
  2249. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2250. if test -n "$ac_ct_STRIP"; then
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2252. $as_echo "$ac_ct_STRIP" >&6; }
  2253. else
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2255. $as_echo "no" >&6; }
  2256. fi
  2257. if test "x$ac_ct_STRIP" = x; then
  2258. STRIP=":"
  2259. else
  2260. case $cross_compiling:$ac_tool_warned in
  2261. yes:)
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2263. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2264. ac_tool_warned=yes ;;
  2265. esac
  2266. STRIP=$ac_ct_STRIP
  2267. fi
  2268. else
  2269. STRIP="$ac_cv_prog_STRIP"
  2270. fi
  2271. fi
  2272. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2273. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2274. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2275. if test -z "$MKDIR_P"; then
  2276. if ${ac_cv_path_mkdir+:} false; then :
  2277. $as_echo_n "(cached) " >&6
  2278. else
  2279. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2280. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2281. do
  2282. IFS=$as_save_IFS
  2283. test -z "$as_dir" && as_dir=.
  2284. for ac_prog in mkdir gmkdir; do
  2285. for ac_exec_ext in '' $ac_executable_extensions; do
  2286. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2287. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2288. 'mkdir (GNU coreutils) '* | \
  2289. 'mkdir (coreutils) '* | \
  2290. 'mkdir (fileutils) '4.1*)
  2291. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2292. break 3;;
  2293. esac
  2294. done
  2295. done
  2296. done
  2297. IFS=$as_save_IFS
  2298. fi
  2299. test -d ./--version && rmdir ./--version
  2300. if test "${ac_cv_path_mkdir+set}" = set; then
  2301. MKDIR_P="$ac_cv_path_mkdir -p"
  2302. else
  2303. # As a last resort, use the slow shell script. Don't cache a
  2304. # value for MKDIR_P within a source directory, because that will
  2305. # break other packages using the cache if that directory is
  2306. # removed, or if the value is a relative name.
  2307. MKDIR_P="$ac_install_sh -d"
  2308. fi
  2309. fi
  2310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2311. $as_echo "$MKDIR_P" >&6; }
  2312. for ac_prog in gawk mawk nawk awk
  2313. do
  2314. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2315. set dummy $ac_prog; ac_word=$2
  2316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2317. $as_echo_n "checking for $ac_word... " >&6; }
  2318. if ${ac_cv_prog_AWK+:} false; then :
  2319. $as_echo_n "(cached) " >&6
  2320. else
  2321. if test -n "$AWK"; then
  2322. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2323. else
  2324. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2325. for as_dir in $PATH
  2326. do
  2327. IFS=$as_save_IFS
  2328. test -z "$as_dir" && as_dir=.
  2329. for ac_exec_ext in '' $ac_executable_extensions; do
  2330. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2331. ac_cv_prog_AWK="$ac_prog"
  2332. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2333. break 2
  2334. fi
  2335. done
  2336. done
  2337. IFS=$as_save_IFS
  2338. fi
  2339. fi
  2340. AWK=$ac_cv_prog_AWK
  2341. if test -n "$AWK"; then
  2342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2343. $as_echo "$AWK" >&6; }
  2344. else
  2345. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2346. $as_echo "no" >&6; }
  2347. fi
  2348. test -n "$AWK" && break
  2349. done
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2351. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2352. set x ${MAKE-make}
  2353. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2354. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2355. $as_echo_n "(cached) " >&6
  2356. else
  2357. cat >conftest.make <<\_ACEOF
  2358. SHELL = /bin/sh
  2359. all:
  2360. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2361. _ACEOF
  2362. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2363. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2364. *@@@%%%=?*=@@@%%%*)
  2365. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2366. *)
  2367. eval ac_cv_prog_make_${ac_make}_set=no;;
  2368. esac
  2369. rm -f conftest.make
  2370. fi
  2371. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2372. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2373. $as_echo "yes" >&6; }
  2374. SET_MAKE=
  2375. else
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2377. $as_echo "no" >&6; }
  2378. SET_MAKE="MAKE=${MAKE-make}"
  2379. fi
  2380. rm -rf .tst 2>/dev/null
  2381. mkdir .tst 2>/dev/null
  2382. if test -d .tst; then
  2383. am__leading_dot=.
  2384. else
  2385. am__leading_dot=_
  2386. fi
  2387. rmdir .tst 2>/dev/null
  2388. @%:@ Check whether --enable-silent-rules was given.
  2389. if test "${enable_silent_rules+set}" = set; then :
  2390. enableval=$enable_silent_rules;
  2391. fi
  2392. case $enable_silent_rules in @%:@ (((
  2393. yes) AM_DEFAULT_VERBOSITY=0;;
  2394. no) AM_DEFAULT_VERBOSITY=1;;
  2395. *) AM_DEFAULT_VERBOSITY=1;;
  2396. esac
  2397. am_make=${MAKE-make}
  2398. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2399. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2400. if ${am_cv_make_support_nested_variables+:} false; then :
  2401. $as_echo_n "(cached) " >&6
  2402. else
  2403. if $as_echo 'TRUE=$(BAR$(V))
  2404. BAR0=false
  2405. BAR1=true
  2406. V=1
  2407. am__doit:
  2408. @$(TRUE)
  2409. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2410. am_cv_make_support_nested_variables=yes
  2411. else
  2412. am_cv_make_support_nested_variables=no
  2413. fi
  2414. fi
  2415. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2416. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2417. if test $am_cv_make_support_nested_variables = yes; then
  2418. AM_V='$(V)'
  2419. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2420. else
  2421. AM_V=$AM_DEFAULT_VERBOSITY
  2422. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2423. fi
  2424. AM_BACKSLASH='\'
  2425. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2426. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2427. # is not polluted with repeated "-I."
  2428. am__isrc=' -I$(srcdir)'
  2429. # test to see if srcdir already configured
  2430. if test -f $srcdir/config.status; then
  2431. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2432. fi
  2433. fi
  2434. # test whether we have cygpath
  2435. if test -z "$CYGPATH_W"; then
  2436. if (cygpath --version) >/dev/null 2>/dev/null; then
  2437. CYGPATH_W='cygpath -w'
  2438. else
  2439. CYGPATH_W=echo
  2440. fi
  2441. fi
  2442. # Define the identity of the package.
  2443. PACKAGE='libnl'
  2444. VERSION='3.2.25'
  2445. cat >>confdefs.h <<_ACEOF
  2446. @%:@define PACKAGE "$PACKAGE"
  2447. _ACEOF
  2448. cat >>confdefs.h <<_ACEOF
  2449. @%:@define VERSION "$VERSION"
  2450. _ACEOF
  2451. # Some tools Automake needs.
  2452. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2453. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2454. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2455. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2456. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2457. # For better backward compatibility. To be removed once Automake 1.9.x
  2458. # dies out for good. For more background, see:
  2459. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2460. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2461. mkdir_p='$(MKDIR_P)'
  2462. # We need awk for the "check" target. The system "awk" is bad on
  2463. # some platforms.
  2464. # Always define AMTAR for backward compatibility. Yes, it's still used
  2465. # in the wild :-( We should find a proper way to deprecate it ...
  2466. AMTAR='$${TAR-tar}'
  2467. # We'll loop over all known methods to create a tar archive until one works.
  2468. _am_tools='gnutar pax cpio none'
  2469. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2470. @%:@ Check whether --enable-silent-rules was given.
  2471. if test "${enable_silent_rules+set}" = set; then :
  2472. enableval=$enable_silent_rules;
  2473. fi
  2474. case $enable_silent_rules in @%:@ (((
  2475. yes) AM_DEFAULT_VERBOSITY=0;;
  2476. no) AM_DEFAULT_VERBOSITY=1;;
  2477. *) AM_DEFAULT_VERBOSITY=0;;
  2478. esac
  2479. am_make=${MAKE-make}
  2480. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2481. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2482. if ${am_cv_make_support_nested_variables+:} false; then :
  2483. $as_echo_n "(cached) " >&6
  2484. else
  2485. if $as_echo 'TRUE=$(BAR$(V))
  2486. BAR0=false
  2487. BAR1=true
  2488. V=1
  2489. am__doit:
  2490. @$(TRUE)
  2491. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2492. am_cv_make_support_nested_variables=yes
  2493. else
  2494. am_cv_make_support_nested_variables=no
  2495. fi
  2496. fi
  2497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2498. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2499. if test $am_cv_make_support_nested_variables = yes; then
  2500. AM_V='$(V)'
  2501. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2502. else
  2503. AM_V=$AM_DEFAULT_VERBOSITY
  2504. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2505. fi
  2506. AM_BACKSLASH='\'
  2507. DEPDIR="${am__leading_dot}deps"
  2508. ac_config_commands="$ac_config_commands depfiles"
  2509. am_make=${MAKE-make}
  2510. cat > confinc << 'END'
  2511. am__doit:
  2512. @echo this is the am__doit target
  2513. .PHONY: am__doit
  2514. END
  2515. # If we don't find an include directive, just comment out the code.
  2516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2517. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2518. am__include="#"
  2519. am__quote=
  2520. _am_result=none
  2521. # First try GNU make style include.
  2522. echo "include confinc" > confmf
  2523. # Ignore all kinds of additional output from 'make'.
  2524. case `$am_make -s -f confmf 2> /dev/null` in #(
  2525. *the\ am__doit\ target*)
  2526. am__include=include
  2527. am__quote=
  2528. _am_result=GNU
  2529. ;;
  2530. esac
  2531. # Now try BSD make style include.
  2532. if test "$am__include" = "#"; then
  2533. echo '.include "confinc"' > confmf
  2534. case `$am_make -s -f confmf 2> /dev/null` in #(
  2535. *the\ am__doit\ target*)
  2536. am__include=.include
  2537. am__quote="\""
  2538. _am_result=BSD
  2539. ;;
  2540. esac
  2541. fi
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2543. $as_echo "$_am_result" >&6; }
  2544. rm -f confinc confmf
  2545. @%:@ Check whether --enable-dependency-tracking was given.
  2546. if test "${enable_dependency_tracking+set}" = set; then :
  2547. enableval=$enable_dependency_tracking;
  2548. fi
  2549. if test "x$enable_dependency_tracking" != xno; then
  2550. am_depcomp="$ac_aux_dir/depcomp"
  2551. AMDEPBACKSLASH='\'
  2552. am__nodep='_no'
  2553. fi
  2554. if test "x$enable_dependency_tracking" != xno; then
  2555. AMDEP_TRUE=
  2556. AMDEP_FALSE='#'
  2557. else
  2558. AMDEP_TRUE='#'
  2559. AMDEP_FALSE=
  2560. fi
  2561. ac_ext=c
  2562. ac_cpp='$CPP $CPPFLAGS'
  2563. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2564. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2565. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2566. if test -n "$ac_tool_prefix"; then
  2567. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2568. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2570. $as_echo_n "checking for $ac_word... " >&6; }
  2571. if ${ac_cv_prog_CC+:} false; then :
  2572. $as_echo_n "(cached) " >&6
  2573. else
  2574. if test -n "$CC"; then
  2575. ac_cv_prog_CC="$CC" # Let the user override the test.
  2576. else
  2577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2578. for as_dir in $PATH
  2579. do
  2580. IFS=$as_save_IFS
  2581. test -z "$as_dir" && as_dir=.
  2582. for ac_exec_ext in '' $ac_executable_extensions; do
  2583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2584. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2586. break 2
  2587. fi
  2588. done
  2589. done
  2590. IFS=$as_save_IFS
  2591. fi
  2592. fi
  2593. CC=$ac_cv_prog_CC
  2594. if test -n "$CC"; then
  2595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2596. $as_echo "$CC" >&6; }
  2597. else
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2599. $as_echo "no" >&6; }
  2600. fi
  2601. fi
  2602. if test -z "$ac_cv_prog_CC"; then
  2603. ac_ct_CC=$CC
  2604. # Extract the first word of "gcc", so it can be a program name with args.
  2605. set dummy gcc; ac_word=$2
  2606. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2607. $as_echo_n "checking for $ac_word... " >&6; }
  2608. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2609. $as_echo_n "(cached) " >&6
  2610. else
  2611. if test -n "$ac_ct_CC"; then
  2612. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2613. else
  2614. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2615. for as_dir in $PATH
  2616. do
  2617. IFS=$as_save_IFS
  2618. test -z "$as_dir" && as_dir=.
  2619. for ac_exec_ext in '' $ac_executable_extensions; do
  2620. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2621. ac_cv_prog_ac_ct_CC="gcc"
  2622. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2623. break 2
  2624. fi
  2625. done
  2626. done
  2627. IFS=$as_save_IFS
  2628. fi
  2629. fi
  2630. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2631. if test -n "$ac_ct_CC"; then
  2632. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2633. $as_echo "$ac_ct_CC" >&6; }
  2634. else
  2635. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2636. $as_echo "no" >&6; }
  2637. fi
  2638. if test "x$ac_ct_CC" = x; then
  2639. CC=""
  2640. else
  2641. case $cross_compiling:$ac_tool_warned in
  2642. yes:)
  2643. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2644. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2645. ac_tool_warned=yes ;;
  2646. esac
  2647. CC=$ac_ct_CC
  2648. fi
  2649. else
  2650. CC="$ac_cv_prog_CC"
  2651. fi
  2652. if test -z "$CC"; then
  2653. if test -n "$ac_tool_prefix"; then
  2654. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2655. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2657. $as_echo_n "checking for $ac_word... " >&6; }
  2658. if ${ac_cv_prog_CC+:} false; then :
  2659. $as_echo_n "(cached) " >&6
  2660. else
  2661. if test -n "$CC"; then
  2662. ac_cv_prog_CC="$CC" # Let the user override the test.
  2663. else
  2664. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2665. for as_dir in $PATH
  2666. do
  2667. IFS=$as_save_IFS
  2668. test -z "$as_dir" && as_dir=.
  2669. for ac_exec_ext in '' $ac_executable_extensions; do
  2670. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2671. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2672. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2673. break 2
  2674. fi
  2675. done
  2676. done
  2677. IFS=$as_save_IFS
  2678. fi
  2679. fi
  2680. CC=$ac_cv_prog_CC
  2681. if test -n "$CC"; then
  2682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2683. $as_echo "$CC" >&6; }
  2684. else
  2685. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2686. $as_echo "no" >&6; }
  2687. fi
  2688. fi
  2689. fi
  2690. if test -z "$CC"; then
  2691. # Extract the first word of "cc", so it can be a program name with args.
  2692. set dummy cc; ac_word=$2
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2694. $as_echo_n "checking for $ac_word... " >&6; }
  2695. if ${ac_cv_prog_CC+:} false; then :
  2696. $as_echo_n "(cached) " >&6
  2697. else
  2698. if test -n "$CC"; then
  2699. ac_cv_prog_CC="$CC" # Let the user override the test.
  2700. else
  2701. ac_prog_rejected=no
  2702. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2703. for as_dir in $PATH
  2704. do
  2705. IFS=$as_save_IFS
  2706. test -z "$as_dir" && as_dir=.
  2707. for ac_exec_ext in '' $ac_executable_extensions; do
  2708. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2709. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2710. ac_prog_rejected=yes
  2711. continue
  2712. fi
  2713. ac_cv_prog_CC="cc"
  2714. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2715. break 2
  2716. fi
  2717. done
  2718. done
  2719. IFS=$as_save_IFS
  2720. if test $ac_prog_rejected = yes; then
  2721. # We found a bogon in the path, so make sure we never use it.
  2722. set dummy $ac_cv_prog_CC
  2723. shift
  2724. if test $@%:@ != 0; then
  2725. # We chose a different compiler from the bogus one.
  2726. # However, it has the same basename, so the bogon will be chosen
  2727. # first if we set CC to just the basename; use the full file name.
  2728. shift
  2729. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2730. fi
  2731. fi
  2732. fi
  2733. fi
  2734. CC=$ac_cv_prog_CC
  2735. if test -n "$CC"; then
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2737. $as_echo "$CC" >&6; }
  2738. else
  2739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2740. $as_echo "no" >&6; }
  2741. fi
  2742. fi
  2743. if test -z "$CC"; then
  2744. if test -n "$ac_tool_prefix"; then
  2745. for ac_prog in cl.exe
  2746. do
  2747. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2748. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2749. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2750. $as_echo_n "checking for $ac_word... " >&6; }
  2751. if ${ac_cv_prog_CC+:} false; then :
  2752. $as_echo_n "(cached) " >&6
  2753. else
  2754. if test -n "$CC"; then
  2755. ac_cv_prog_CC="$CC" # Let the user override the test.
  2756. else
  2757. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2758. for as_dir in $PATH
  2759. do
  2760. IFS=$as_save_IFS
  2761. test -z "$as_dir" && as_dir=.
  2762. for ac_exec_ext in '' $ac_executable_extensions; do
  2763. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2764. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2765. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2766. break 2
  2767. fi
  2768. done
  2769. done
  2770. IFS=$as_save_IFS
  2771. fi
  2772. fi
  2773. CC=$ac_cv_prog_CC
  2774. if test -n "$CC"; then
  2775. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2776. $as_echo "$CC" >&6; }
  2777. else
  2778. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2779. $as_echo "no" >&6; }
  2780. fi
  2781. test -n "$CC" && break
  2782. done
  2783. fi
  2784. if test -z "$CC"; then
  2785. ac_ct_CC=$CC
  2786. for ac_prog in cl.exe
  2787. do
  2788. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2789. set dummy $ac_prog; ac_word=$2
  2790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2791. $as_echo_n "checking for $ac_word... " >&6; }
  2792. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2793. $as_echo_n "(cached) " >&6
  2794. else
  2795. if test -n "$ac_ct_CC"; then
  2796. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2797. else
  2798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2799. for as_dir in $PATH
  2800. do
  2801. IFS=$as_save_IFS
  2802. test -z "$as_dir" && as_dir=.
  2803. for ac_exec_ext in '' $ac_executable_extensions; do
  2804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2805. ac_cv_prog_ac_ct_CC="$ac_prog"
  2806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2807. break 2
  2808. fi
  2809. done
  2810. done
  2811. IFS=$as_save_IFS
  2812. fi
  2813. fi
  2814. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2815. if test -n "$ac_ct_CC"; then
  2816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2817. $as_echo "$ac_ct_CC" >&6; }
  2818. else
  2819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2820. $as_echo "no" >&6; }
  2821. fi
  2822. test -n "$ac_ct_CC" && break
  2823. done
  2824. if test "x$ac_ct_CC" = x; then
  2825. CC=""
  2826. else
  2827. case $cross_compiling:$ac_tool_warned in
  2828. yes:)
  2829. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2830. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2831. ac_tool_warned=yes ;;
  2832. esac
  2833. CC=$ac_ct_CC
  2834. fi
  2835. fi
  2836. fi
  2837. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2838. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2839. as_fn_error $? "no acceptable C compiler found in \$PATH
  2840. See \`config.log' for more details" "$LINENO" 5; }
  2841. # Provide some information about the compiler.
  2842. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2843. set X $ac_compile
  2844. ac_compiler=$2
  2845. for ac_option in --version -v -V -qversion; do
  2846. { { ac_try="$ac_compiler $ac_option >&5"
  2847. case "(($ac_try" in
  2848. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2849. *) ac_try_echo=$ac_try;;
  2850. esac
  2851. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2852. $as_echo "$ac_try_echo"; } >&5
  2853. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2854. ac_status=$?
  2855. if test -s conftest.err; then
  2856. sed '10a\
  2857. ... rest of stderr output deleted ...
  2858. 10q' conftest.err >conftest.er1
  2859. cat conftest.er1 >&5
  2860. fi
  2861. rm -f conftest.er1 conftest.err
  2862. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2863. test $ac_status = 0; }
  2864. done
  2865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2866. /* end confdefs.h. */
  2867. int
  2868. main ()
  2869. {
  2870. ;
  2871. return 0;
  2872. }
  2873. _ACEOF
  2874. ac_clean_files_save=$ac_clean_files
  2875. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2876. # Try to create an executable without -o first, disregard a.out.
  2877. # It will help us diagnose broken compilers, and finding out an intuition
  2878. # of exeext.
  2879. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2880. $as_echo_n "checking whether the C compiler works... " >&6; }
  2881. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2882. # The possible output files:
  2883. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2884. ac_rmfiles=
  2885. for ac_file in $ac_files
  2886. do
  2887. case $ac_file in
  2888. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2889. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2890. esac
  2891. done
  2892. rm -f $ac_rmfiles
  2893. if { { ac_try="$ac_link_default"
  2894. case "(($ac_try" in
  2895. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2896. *) ac_try_echo=$ac_try;;
  2897. esac
  2898. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2899. $as_echo "$ac_try_echo"; } >&5
  2900. (eval "$ac_link_default") 2>&5
  2901. ac_status=$?
  2902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2903. test $ac_status = 0; }; then :
  2904. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2905. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2906. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2907. # so that the user can short-circuit this test for compilers unknown to
  2908. # Autoconf.
  2909. for ac_file in $ac_files ''
  2910. do
  2911. test -f "$ac_file" || continue
  2912. case $ac_file in
  2913. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2914. ;;
  2915. [ab].out )
  2916. # We found the default executable, but exeext='' is most
  2917. # certainly right.
  2918. break;;
  2919. *.* )
  2920. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2921. then :; else
  2922. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2923. fi
  2924. # We set ac_cv_exeext here because the later test for it is not
  2925. # safe: cross compilers may not add the suffix if given an `-o'
  2926. # argument, so we may need to know it at that point already.
  2927. # Even if this section looks crufty: it has the advantage of
  2928. # actually working.
  2929. break;;
  2930. * )
  2931. break;;
  2932. esac
  2933. done
  2934. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2935. else
  2936. ac_file=''
  2937. fi
  2938. if test -z "$ac_file"; then :
  2939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2940. $as_echo "no" >&6; }
  2941. $as_echo "$as_me: failed program was:" >&5
  2942. sed 's/^/| /' conftest.$ac_ext >&5
  2943. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2944. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2945. as_fn_error 77 "C compiler cannot create executables
  2946. See \`config.log' for more details" "$LINENO" 5; }
  2947. else
  2948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2949. $as_echo "yes" >&6; }
  2950. fi
  2951. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2952. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2953. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2954. $as_echo "$ac_file" >&6; }
  2955. ac_exeext=$ac_cv_exeext
  2956. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2957. ac_clean_files=$ac_clean_files_save
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2959. $as_echo_n "checking for suffix of executables... " >&6; }
  2960. if { { ac_try="$ac_link"
  2961. case "(($ac_try" in
  2962. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2963. *) ac_try_echo=$ac_try;;
  2964. esac
  2965. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2966. $as_echo "$ac_try_echo"; } >&5
  2967. (eval "$ac_link") 2>&5
  2968. ac_status=$?
  2969. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2970. test $ac_status = 0; }; then :
  2971. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2972. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2973. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2974. # `rm'.
  2975. for ac_file in conftest.exe conftest conftest.*; do
  2976. test -f "$ac_file" || continue
  2977. case $ac_file in
  2978. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2979. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2980. break;;
  2981. * ) break;;
  2982. esac
  2983. done
  2984. else
  2985. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2986. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2987. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2988. See \`config.log' for more details" "$LINENO" 5; }
  2989. fi
  2990. rm -f conftest conftest$ac_cv_exeext
  2991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2992. $as_echo "$ac_cv_exeext" >&6; }
  2993. rm -f conftest.$ac_ext
  2994. EXEEXT=$ac_cv_exeext
  2995. ac_exeext=$EXEEXT
  2996. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2997. /* end confdefs.h. */
  2998. @%:@include <stdio.h>
  2999. int
  3000. main ()
  3001. {
  3002. FILE *f = fopen ("conftest.out", "w");
  3003. return ferror (f) || fclose (f) != 0;
  3004. ;
  3005. return 0;
  3006. }
  3007. _ACEOF
  3008. ac_clean_files="$ac_clean_files conftest.out"
  3009. # Check that the compiler produces executables we can run. If not, either
  3010. # the compiler is broken, or we cross compile.
  3011. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3012. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3013. if test "$cross_compiling" != yes; then
  3014. { { ac_try="$ac_link"
  3015. case "(($ac_try" in
  3016. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3017. *) ac_try_echo=$ac_try;;
  3018. esac
  3019. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3020. $as_echo "$ac_try_echo"; } >&5
  3021. (eval "$ac_link") 2>&5
  3022. ac_status=$?
  3023. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3024. test $ac_status = 0; }
  3025. if { ac_try='./conftest$ac_cv_exeext'
  3026. { { case "(($ac_try" in
  3027. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3028. *) ac_try_echo=$ac_try;;
  3029. esac
  3030. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3031. $as_echo "$ac_try_echo"; } >&5
  3032. (eval "$ac_try") 2>&5
  3033. ac_status=$?
  3034. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3035. test $ac_status = 0; }; }; then
  3036. cross_compiling=no
  3037. else
  3038. if test "$cross_compiling" = maybe; then
  3039. cross_compiling=yes
  3040. else
  3041. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3042. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3043. as_fn_error $? "cannot run C compiled programs.
  3044. If you meant to cross compile, use \`--host'.
  3045. See \`config.log' for more details" "$LINENO" 5; }
  3046. fi
  3047. fi
  3048. fi
  3049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3050. $as_echo "$cross_compiling" >&6; }
  3051. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3052. ac_clean_files=$ac_clean_files_save
  3053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3054. $as_echo_n "checking for suffix of object files... " >&6; }
  3055. if ${ac_cv_objext+:} false; then :
  3056. $as_echo_n "(cached) " >&6
  3057. else
  3058. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3059. /* end confdefs.h. */
  3060. int
  3061. main ()
  3062. {
  3063. ;
  3064. return 0;
  3065. }
  3066. _ACEOF
  3067. rm -f conftest.o conftest.obj
  3068. if { { ac_try="$ac_compile"
  3069. case "(($ac_try" in
  3070. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3071. *) ac_try_echo=$ac_try;;
  3072. esac
  3073. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3074. $as_echo "$ac_try_echo"; } >&5
  3075. (eval "$ac_compile") 2>&5
  3076. ac_status=$?
  3077. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3078. test $ac_status = 0; }; then :
  3079. for ac_file in conftest.o conftest.obj conftest.*; do
  3080. test -f "$ac_file" || continue;
  3081. case $ac_file in
  3082. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3083. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3084. break;;
  3085. esac
  3086. done
  3087. else
  3088. $as_echo "$as_me: failed program was:" >&5
  3089. sed 's/^/| /' conftest.$ac_ext >&5
  3090. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3091. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3092. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3093. See \`config.log' for more details" "$LINENO" 5; }
  3094. fi
  3095. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3096. fi
  3097. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3098. $as_echo "$ac_cv_objext" >&6; }
  3099. OBJEXT=$ac_cv_objext
  3100. ac_objext=$OBJEXT
  3101. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3102. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3103. if ${ac_cv_c_compiler_gnu+:} false; then :
  3104. $as_echo_n "(cached) " >&6
  3105. else
  3106. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3107. /* end confdefs.h. */
  3108. int
  3109. main ()
  3110. {
  3111. #ifndef __GNUC__
  3112. choke me
  3113. #endif
  3114. ;
  3115. return 0;
  3116. }
  3117. _ACEOF
  3118. if ac_fn_c_try_compile "$LINENO"; then :
  3119. ac_compiler_gnu=yes
  3120. else
  3121. ac_compiler_gnu=no
  3122. fi
  3123. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3124. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3125. fi
  3126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3127. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3128. if test $ac_compiler_gnu = yes; then
  3129. GCC=yes
  3130. else
  3131. GCC=
  3132. fi
  3133. ac_test_CFLAGS=${CFLAGS+set}
  3134. ac_save_CFLAGS=$CFLAGS
  3135. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3136. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3137. if ${ac_cv_prog_cc_g+:} false; then :
  3138. $as_echo_n "(cached) " >&6
  3139. else
  3140. ac_save_c_werror_flag=$ac_c_werror_flag
  3141. ac_c_werror_flag=yes
  3142. ac_cv_prog_cc_g=no
  3143. CFLAGS="-g"
  3144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3145. /* end confdefs.h. */
  3146. int
  3147. main ()
  3148. {
  3149. ;
  3150. return 0;
  3151. }
  3152. _ACEOF
  3153. if ac_fn_c_try_compile "$LINENO"; then :
  3154. ac_cv_prog_cc_g=yes
  3155. else
  3156. CFLAGS=""
  3157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3158. /* end confdefs.h. */
  3159. int
  3160. main ()
  3161. {
  3162. ;
  3163. return 0;
  3164. }
  3165. _ACEOF
  3166. if ac_fn_c_try_compile "$LINENO"; then :
  3167. else
  3168. ac_c_werror_flag=$ac_save_c_werror_flag
  3169. CFLAGS="-g"
  3170. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3171. /* end confdefs.h. */
  3172. int
  3173. main ()
  3174. {
  3175. ;
  3176. return 0;
  3177. }
  3178. _ACEOF
  3179. if ac_fn_c_try_compile "$LINENO"; then :
  3180. ac_cv_prog_cc_g=yes
  3181. fi
  3182. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3183. fi
  3184. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3185. fi
  3186. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3187. ac_c_werror_flag=$ac_save_c_werror_flag
  3188. fi
  3189. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3190. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3191. if test "$ac_test_CFLAGS" = set; then
  3192. CFLAGS=$ac_save_CFLAGS
  3193. elif test $ac_cv_prog_cc_g = yes; then
  3194. if test "$GCC" = yes; then
  3195. CFLAGS="-g -O2"
  3196. else
  3197. CFLAGS="-g"
  3198. fi
  3199. else
  3200. if test "$GCC" = yes; then
  3201. CFLAGS="-O2"
  3202. else
  3203. CFLAGS=
  3204. fi
  3205. fi
  3206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3207. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3208. if ${ac_cv_prog_cc_c89+:} false; then :
  3209. $as_echo_n "(cached) " >&6
  3210. else
  3211. ac_cv_prog_cc_c89=no
  3212. ac_save_CC=$CC
  3213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3214. /* end confdefs.h. */
  3215. #include <stdarg.h>
  3216. #include <stdio.h>
  3217. struct stat;
  3218. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3219. struct buf { int x; };
  3220. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3221. static char *e (p, i)
  3222. char **p;
  3223. int i;
  3224. {
  3225. return p[i];
  3226. }
  3227. static char *f (char * (*g) (char **, int), char **p, ...)
  3228. {
  3229. char *s;
  3230. va_list v;
  3231. va_start (v,p);
  3232. s = g (p, va_arg (v,int));
  3233. va_end (v);
  3234. return s;
  3235. }
  3236. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3237. function prototypes and stuff, but not '\xHH' hex character constants.
  3238. These don't provoke an error unfortunately, instead are silently treated
  3239. as 'x'. The following induces an error, until -std is added to get
  3240. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3241. array size at least. It's necessary to write '\x00'==0 to get something
  3242. that's true only with -std. */
  3243. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3244. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3245. inside strings and character constants. */
  3246. #define FOO(x) 'x'
  3247. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3248. int test (int i, double x);
  3249. struct s1 {int (*f) (int a);};
  3250. struct s2 {int (*f) (double a);};
  3251. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3252. int argc;
  3253. char **argv;
  3254. int
  3255. main ()
  3256. {
  3257. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3258. ;
  3259. return 0;
  3260. }
  3261. _ACEOF
  3262. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3263. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3264. do
  3265. CC="$ac_save_CC $ac_arg"
  3266. if ac_fn_c_try_compile "$LINENO"; then :
  3267. ac_cv_prog_cc_c89=$ac_arg
  3268. fi
  3269. rm -f core conftest.err conftest.$ac_objext
  3270. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3271. done
  3272. rm -f conftest.$ac_ext
  3273. CC=$ac_save_CC
  3274. fi
  3275. # AC_CACHE_VAL
  3276. case "x$ac_cv_prog_cc_c89" in
  3277. x)
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3279. $as_echo "none needed" >&6; } ;;
  3280. xno)
  3281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3282. $as_echo "unsupported" >&6; } ;;
  3283. *)
  3284. CC="$CC $ac_cv_prog_cc_c89"
  3285. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3286. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3287. esac
  3288. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3289. fi
  3290. ac_ext=c
  3291. ac_cpp='$CPP $CPPFLAGS'
  3292. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3293. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3294. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3295. depcc="$CC" am_compiler_list=
  3296. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3297. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3298. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3299. $as_echo_n "(cached) " >&6
  3300. else
  3301. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3302. # We make a subdir and do the tests there. Otherwise we can end up
  3303. # making bogus files that we don't know about and never remove. For
  3304. # instance it was reported that on HP-UX the gcc test will end up
  3305. # making a dummy file named 'D' -- because '-MD' means "put the output
  3306. # in D".
  3307. rm -rf conftest.dir
  3308. mkdir conftest.dir
  3309. # Copy depcomp to subdir because otherwise we won't find it if we're
  3310. # using a relative directory.
  3311. cp "$am_depcomp" conftest.dir
  3312. cd conftest.dir
  3313. # We will build objects and dependencies in a subdirectory because
  3314. # it helps to detect inapplicable dependency modes. For instance
  3315. # both Tru64's cc and ICC support -MD to output dependencies as a
  3316. # side effect of compilation, but ICC will put the dependencies in
  3317. # the current directory while Tru64 will put them in the object
  3318. # directory.
  3319. mkdir sub
  3320. am_cv_CC_dependencies_compiler_type=none
  3321. if test "$am_compiler_list" = ""; then
  3322. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3323. fi
  3324. am__universal=false
  3325. case " $depcc " in #(
  3326. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3327. esac
  3328. for depmode in $am_compiler_list; do
  3329. # Setup a source with many dependencies, because some compilers
  3330. # like to wrap large dependency lists on column 80 (with \), and
  3331. # we should not choose a depcomp mode which is confused by this.
  3332. #
  3333. # We need to recreate these files for each test, as the compiler may
  3334. # overwrite some of them when testing with obscure command lines.
  3335. # This happens at least with the AIX C compiler.
  3336. : > sub/conftest.c
  3337. for i in 1 2 3 4 5 6; do
  3338. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3339. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3340. # Solaris 10 /bin/sh.
  3341. echo '/* dummy */' > sub/conftst$i.h
  3342. done
  3343. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3344. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3345. # mode. It turns out that the SunPro C++ compiler does not properly
  3346. # handle '-M -o', and we need to detect this. Also, some Intel
  3347. # versions had trouble with output in subdirs.
  3348. am__obj=sub/conftest.${OBJEXT-o}
  3349. am__minus_obj="-o $am__obj"
  3350. case $depmode in
  3351. gcc)
  3352. # This depmode causes a compiler race in universal mode.
  3353. test "$am__universal" = false || continue
  3354. ;;
  3355. nosideeffect)
  3356. # After this tag, mechanisms are not by side-effect, so they'll
  3357. # only be used when explicitly requested.
  3358. if test "x$enable_dependency_tracking" = xyes; then
  3359. continue
  3360. else
  3361. break
  3362. fi
  3363. ;;
  3364. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3365. # This compiler won't grok '-c -o', but also, the minuso test has
  3366. # not run yet. These depmodes are late enough in the game, and
  3367. # so weak that their functioning should not be impacted.
  3368. am__obj=conftest.${OBJEXT-o}
  3369. am__minus_obj=
  3370. ;;
  3371. none) break ;;
  3372. esac
  3373. if depmode=$depmode \
  3374. source=sub/conftest.c object=$am__obj \
  3375. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3376. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3377. >/dev/null 2>conftest.err &&
  3378. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3379. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3380. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3381. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3382. # icc doesn't choke on unknown options, it will just issue warnings
  3383. # or remarks (even with -Werror). So we grep stderr for any message
  3384. # that says an option was ignored or not supported.
  3385. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3386. # icc: Command line warning: ignoring option '-M'; no argument required
  3387. # The diagnosis changed in icc 8.0:
  3388. # icc: Command line remark: option '-MP' not supported
  3389. if (grep 'ignoring option' conftest.err ||
  3390. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3391. am_cv_CC_dependencies_compiler_type=$depmode
  3392. break
  3393. fi
  3394. fi
  3395. done
  3396. cd ..
  3397. rm -rf conftest.dir
  3398. else
  3399. am_cv_CC_dependencies_compiler_type=none
  3400. fi
  3401. fi
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3403. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3404. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3405. if
  3406. test "x$enable_dependency_tracking" != xno \
  3407. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3408. am__fastdepCC_TRUE=
  3409. am__fastdepCC_FALSE='#'
  3410. else
  3411. am__fastdepCC_TRUE='#'
  3412. am__fastdepCC_FALSE=
  3413. fi
  3414. if test -n "$ac_tool_prefix"; then
  3415. for ac_prog in ar lib "link -lib"
  3416. do
  3417. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3418. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3419. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3420. $as_echo_n "checking for $ac_word... " >&6; }
  3421. if ${ac_cv_prog_AR+:} false; then :
  3422. $as_echo_n "(cached) " >&6
  3423. else
  3424. if test -n "$AR"; then
  3425. ac_cv_prog_AR="$AR" # Let the user override the test.
  3426. else
  3427. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3428. for as_dir in $PATH
  3429. do
  3430. IFS=$as_save_IFS
  3431. test -z "$as_dir" && as_dir=.
  3432. for ac_exec_ext in '' $ac_executable_extensions; do
  3433. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3434. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  3435. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3436. break 2
  3437. fi
  3438. done
  3439. done
  3440. IFS=$as_save_IFS
  3441. fi
  3442. fi
  3443. AR=$ac_cv_prog_AR
  3444. if test -n "$AR"; then
  3445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  3446. $as_echo "$AR" >&6; }
  3447. else
  3448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3449. $as_echo "no" >&6; }
  3450. fi
  3451. test -n "$AR" && break
  3452. done
  3453. fi
  3454. if test -z "$AR"; then
  3455. ac_ct_AR=$AR
  3456. for ac_prog in ar lib "link -lib"
  3457. do
  3458. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3459. set dummy $ac_prog; ac_word=$2
  3460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3461. $as_echo_n "checking for $ac_word... " >&6; }
  3462. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  3463. $as_echo_n "(cached) " >&6
  3464. else
  3465. if test -n "$ac_ct_AR"; then
  3466. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  3467. else
  3468. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3469. for as_dir in $PATH
  3470. do
  3471. IFS=$as_save_IFS
  3472. test -z "$as_dir" && as_dir=.
  3473. for ac_exec_ext in '' $ac_executable_extensions; do
  3474. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3475. ac_cv_prog_ac_ct_AR="$ac_prog"
  3476. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3477. break 2
  3478. fi
  3479. done
  3480. done
  3481. IFS=$as_save_IFS
  3482. fi
  3483. fi
  3484. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  3485. if test -n "$ac_ct_AR"; then
  3486. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  3487. $as_echo "$ac_ct_AR" >&6; }
  3488. else
  3489. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3490. $as_echo "no" >&6; }
  3491. fi
  3492. test -n "$ac_ct_AR" && break
  3493. done
  3494. if test "x$ac_ct_AR" = x; then
  3495. AR="false"
  3496. else
  3497. case $cross_compiling:$ac_tool_warned in
  3498. yes:)
  3499. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3500. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3501. ac_tool_warned=yes ;;
  3502. esac
  3503. AR=$ac_ct_AR
  3504. fi
  3505. fi
  3506. : ${AR=ar}
  3507. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the archiver ($AR) interface" >&5
  3508. $as_echo_n "checking the archiver ($AR) interface... " >&6; }
  3509. if ${am_cv_ar_interface+:} false; then :
  3510. $as_echo_n "(cached) " >&6
  3511. else
  3512. am_cv_ar_interface=ar
  3513. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3514. /* end confdefs.h. */
  3515. int some_variable = 0;
  3516. _ACEOF
  3517. if ac_fn_c_try_compile "$LINENO"; then :
  3518. am_ar_try='$AR cru libconftest.a conftest.$ac_objext >&5'
  3519. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3520. (eval $am_ar_try) 2>&5
  3521. ac_status=$?
  3522. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3523. test $ac_status = 0; }
  3524. if test "$ac_status" -eq 0; then
  3525. am_cv_ar_interface=ar
  3526. else
  3527. am_ar_try='$AR -NOLOGO -OUT:conftest.lib conftest.$ac_objext >&5'
  3528. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$am_ar_try\""; } >&5
  3529. (eval $am_ar_try) 2>&5
  3530. ac_status=$?
  3531. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3532. test $ac_status = 0; }
  3533. if test "$ac_status" -eq 0; then
  3534. am_cv_ar_interface=lib
  3535. else
  3536. am_cv_ar_interface=unknown
  3537. fi
  3538. fi
  3539. rm -f conftest.lib libconftest.a
  3540. fi
  3541. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3542. fi
  3543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_ar_interface" >&5
  3544. $as_echo "$am_cv_ar_interface" >&6; }
  3545. case $am_cv_ar_interface in
  3546. ar)
  3547. ;;
  3548. lib)
  3549. # Microsoft lib, so override with the ar-lib wrapper script.
  3550. # FIXME: It is wrong to rewrite AR.
  3551. # But if we don't then we get into trouble of one sort or another.
  3552. # A longer-term fix would be to have automake use am__AR in this case,
  3553. # and then we could set am__AR="$am_aux_dir/ar-lib \$(AR)" or something
  3554. # similar.
  3555. AR="$am_aux_dir/ar-lib $AR"
  3556. ;;
  3557. unknown)
  3558. as_fn_error $? "could not determine $AR interface" "$LINENO" 5
  3559. ;;
  3560. esac
  3561. MAJ_VERSION=3
  3562. MIN_VERSION=2
  3563. MIC_VERSION=25
  3564. LIBNL_GIT_SHA=
  3565. LIBNL_VERSION=3.2.25
  3566. LT_CURRENT=220
  3567. LT_REVISION=0
  3568. LT_AGE=20
  3569. ac_ext=c
  3570. ac_cpp='$CPP $CPPFLAGS'
  3571. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3572. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3573. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3574. if test -n "$ac_tool_prefix"; then
  3575. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3576. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3578. $as_echo_n "checking for $ac_word... " >&6; }
  3579. if ${ac_cv_prog_CC+:} false; then :
  3580. $as_echo_n "(cached) " >&6
  3581. else
  3582. if test -n "$CC"; then
  3583. ac_cv_prog_CC="$CC" # Let the user override the test.
  3584. else
  3585. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3586. for as_dir in $PATH
  3587. do
  3588. IFS=$as_save_IFS
  3589. test -z "$as_dir" && as_dir=.
  3590. for ac_exec_ext in '' $ac_executable_extensions; do
  3591. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3592. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3593. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3594. break 2
  3595. fi
  3596. done
  3597. done
  3598. IFS=$as_save_IFS
  3599. fi
  3600. fi
  3601. CC=$ac_cv_prog_CC
  3602. if test -n "$CC"; then
  3603. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3604. $as_echo "$CC" >&6; }
  3605. else
  3606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3607. $as_echo "no" >&6; }
  3608. fi
  3609. fi
  3610. if test -z "$ac_cv_prog_CC"; then
  3611. ac_ct_CC=$CC
  3612. # Extract the first word of "gcc", so it can be a program name with args.
  3613. set dummy gcc; ac_word=$2
  3614. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3615. $as_echo_n "checking for $ac_word... " >&6; }
  3616. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3617. $as_echo_n "(cached) " >&6
  3618. else
  3619. if test -n "$ac_ct_CC"; then
  3620. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3621. else
  3622. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3623. for as_dir in $PATH
  3624. do
  3625. IFS=$as_save_IFS
  3626. test -z "$as_dir" && as_dir=.
  3627. for ac_exec_ext in '' $ac_executable_extensions; do
  3628. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3629. ac_cv_prog_ac_ct_CC="gcc"
  3630. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3631. break 2
  3632. fi
  3633. done
  3634. done
  3635. IFS=$as_save_IFS
  3636. fi
  3637. fi
  3638. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3639. if test -n "$ac_ct_CC"; then
  3640. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3641. $as_echo "$ac_ct_CC" >&6; }
  3642. else
  3643. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3644. $as_echo "no" >&6; }
  3645. fi
  3646. if test "x$ac_ct_CC" = x; then
  3647. CC=""
  3648. else
  3649. case $cross_compiling:$ac_tool_warned in
  3650. yes:)
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3652. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3653. ac_tool_warned=yes ;;
  3654. esac
  3655. CC=$ac_ct_CC
  3656. fi
  3657. else
  3658. CC="$ac_cv_prog_CC"
  3659. fi
  3660. if test -z "$CC"; then
  3661. if test -n "$ac_tool_prefix"; then
  3662. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3663. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3665. $as_echo_n "checking for $ac_word... " >&6; }
  3666. if ${ac_cv_prog_CC+:} false; then :
  3667. $as_echo_n "(cached) " >&6
  3668. else
  3669. if test -n "$CC"; then
  3670. ac_cv_prog_CC="$CC" # Let the user override the test.
  3671. else
  3672. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3673. for as_dir in $PATH
  3674. do
  3675. IFS=$as_save_IFS
  3676. test -z "$as_dir" && as_dir=.
  3677. for ac_exec_ext in '' $ac_executable_extensions; do
  3678. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3679. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3680. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3681. break 2
  3682. fi
  3683. done
  3684. done
  3685. IFS=$as_save_IFS
  3686. fi
  3687. fi
  3688. CC=$ac_cv_prog_CC
  3689. if test -n "$CC"; then
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3691. $as_echo "$CC" >&6; }
  3692. else
  3693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3694. $as_echo "no" >&6; }
  3695. fi
  3696. fi
  3697. fi
  3698. if test -z "$CC"; then
  3699. # Extract the first word of "cc", so it can be a program name with args.
  3700. set dummy cc; ac_word=$2
  3701. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3702. $as_echo_n "checking for $ac_word... " >&6; }
  3703. if ${ac_cv_prog_CC+:} false; then :
  3704. $as_echo_n "(cached) " >&6
  3705. else
  3706. if test -n "$CC"; then
  3707. ac_cv_prog_CC="$CC" # Let the user override the test.
  3708. else
  3709. ac_prog_rejected=no
  3710. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3711. for as_dir in $PATH
  3712. do
  3713. IFS=$as_save_IFS
  3714. test -z "$as_dir" && as_dir=.
  3715. for ac_exec_ext in '' $ac_executable_extensions; do
  3716. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3717. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3718. ac_prog_rejected=yes
  3719. continue
  3720. fi
  3721. ac_cv_prog_CC="cc"
  3722. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3723. break 2
  3724. fi
  3725. done
  3726. done
  3727. IFS=$as_save_IFS
  3728. if test $ac_prog_rejected = yes; then
  3729. # We found a bogon in the path, so make sure we never use it.
  3730. set dummy $ac_cv_prog_CC
  3731. shift
  3732. if test $@%:@ != 0; then
  3733. # We chose a different compiler from the bogus one.
  3734. # However, it has the same basename, so the bogon will be chosen
  3735. # first if we set CC to just the basename; use the full file name.
  3736. shift
  3737. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3738. fi
  3739. fi
  3740. fi
  3741. fi
  3742. CC=$ac_cv_prog_CC
  3743. if test -n "$CC"; then
  3744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3745. $as_echo "$CC" >&6; }
  3746. else
  3747. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3748. $as_echo "no" >&6; }
  3749. fi
  3750. fi
  3751. if test -z "$CC"; then
  3752. if test -n "$ac_tool_prefix"; then
  3753. for ac_prog in cl.exe
  3754. do
  3755. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3756. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3758. $as_echo_n "checking for $ac_word... " >&6; }
  3759. if ${ac_cv_prog_CC+:} false; then :
  3760. $as_echo_n "(cached) " >&6
  3761. else
  3762. if test -n "$CC"; then
  3763. ac_cv_prog_CC="$CC" # Let the user override the test.
  3764. else
  3765. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3766. for as_dir in $PATH
  3767. do
  3768. IFS=$as_save_IFS
  3769. test -z "$as_dir" && as_dir=.
  3770. for ac_exec_ext in '' $ac_executable_extensions; do
  3771. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3772. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3773. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3774. break 2
  3775. fi
  3776. done
  3777. done
  3778. IFS=$as_save_IFS
  3779. fi
  3780. fi
  3781. CC=$ac_cv_prog_CC
  3782. if test -n "$CC"; then
  3783. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3784. $as_echo "$CC" >&6; }
  3785. else
  3786. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3787. $as_echo "no" >&6; }
  3788. fi
  3789. test -n "$CC" && break
  3790. done
  3791. fi
  3792. if test -z "$CC"; then
  3793. ac_ct_CC=$CC
  3794. for ac_prog in cl.exe
  3795. do
  3796. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3797. set dummy $ac_prog; ac_word=$2
  3798. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3799. $as_echo_n "checking for $ac_word... " >&6; }
  3800. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3801. $as_echo_n "(cached) " >&6
  3802. else
  3803. if test -n "$ac_ct_CC"; then
  3804. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3805. else
  3806. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3807. for as_dir in $PATH
  3808. do
  3809. IFS=$as_save_IFS
  3810. test -z "$as_dir" && as_dir=.
  3811. for ac_exec_ext in '' $ac_executable_extensions; do
  3812. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3813. ac_cv_prog_ac_ct_CC="$ac_prog"
  3814. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3815. break 2
  3816. fi
  3817. done
  3818. done
  3819. IFS=$as_save_IFS
  3820. fi
  3821. fi
  3822. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3823. if test -n "$ac_ct_CC"; then
  3824. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3825. $as_echo "$ac_ct_CC" >&6; }
  3826. else
  3827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3828. $as_echo "no" >&6; }
  3829. fi
  3830. test -n "$ac_ct_CC" && break
  3831. done
  3832. if test "x$ac_ct_CC" = x; then
  3833. CC=""
  3834. else
  3835. case $cross_compiling:$ac_tool_warned in
  3836. yes:)
  3837. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3838. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3839. ac_tool_warned=yes ;;
  3840. esac
  3841. CC=$ac_ct_CC
  3842. fi
  3843. fi
  3844. fi
  3845. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3846. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3847. as_fn_error $? "no acceptable C compiler found in \$PATH
  3848. See \`config.log' for more details" "$LINENO" 5; }
  3849. # Provide some information about the compiler.
  3850. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3851. set X $ac_compile
  3852. ac_compiler=$2
  3853. for ac_option in --version -v -V -qversion; do
  3854. { { ac_try="$ac_compiler $ac_option >&5"
  3855. case "(($ac_try" in
  3856. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3857. *) ac_try_echo=$ac_try;;
  3858. esac
  3859. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3860. $as_echo "$ac_try_echo"; } >&5
  3861. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3862. ac_status=$?
  3863. if test -s conftest.err; then
  3864. sed '10a\
  3865. ... rest of stderr output deleted ...
  3866. 10q' conftest.err >conftest.er1
  3867. cat conftest.er1 >&5
  3868. fi
  3869. rm -f conftest.er1 conftest.err
  3870. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3871. test $ac_status = 0; }
  3872. done
  3873. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3874. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3875. if ${ac_cv_c_compiler_gnu+:} false; then :
  3876. $as_echo_n "(cached) " >&6
  3877. else
  3878. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3879. /* end confdefs.h. */
  3880. int
  3881. main ()
  3882. {
  3883. #ifndef __GNUC__
  3884. choke me
  3885. #endif
  3886. ;
  3887. return 0;
  3888. }
  3889. _ACEOF
  3890. if ac_fn_c_try_compile "$LINENO"; then :
  3891. ac_compiler_gnu=yes
  3892. else
  3893. ac_compiler_gnu=no
  3894. fi
  3895. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3896. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3897. fi
  3898. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3899. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3900. if test $ac_compiler_gnu = yes; then
  3901. GCC=yes
  3902. else
  3903. GCC=
  3904. fi
  3905. ac_test_CFLAGS=${CFLAGS+set}
  3906. ac_save_CFLAGS=$CFLAGS
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3908. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3909. if ${ac_cv_prog_cc_g+:} false; then :
  3910. $as_echo_n "(cached) " >&6
  3911. else
  3912. ac_save_c_werror_flag=$ac_c_werror_flag
  3913. ac_c_werror_flag=yes
  3914. ac_cv_prog_cc_g=no
  3915. CFLAGS="-g"
  3916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3917. /* end confdefs.h. */
  3918. int
  3919. main ()
  3920. {
  3921. ;
  3922. return 0;
  3923. }
  3924. _ACEOF
  3925. if ac_fn_c_try_compile "$LINENO"; then :
  3926. ac_cv_prog_cc_g=yes
  3927. else
  3928. CFLAGS=""
  3929. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3930. /* end confdefs.h. */
  3931. int
  3932. main ()
  3933. {
  3934. ;
  3935. return 0;
  3936. }
  3937. _ACEOF
  3938. if ac_fn_c_try_compile "$LINENO"; then :
  3939. else
  3940. ac_c_werror_flag=$ac_save_c_werror_flag
  3941. CFLAGS="-g"
  3942. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3943. /* end confdefs.h. */
  3944. int
  3945. main ()
  3946. {
  3947. ;
  3948. return 0;
  3949. }
  3950. _ACEOF
  3951. if ac_fn_c_try_compile "$LINENO"; then :
  3952. ac_cv_prog_cc_g=yes
  3953. fi
  3954. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3955. fi
  3956. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3957. fi
  3958. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3959. ac_c_werror_flag=$ac_save_c_werror_flag
  3960. fi
  3961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3962. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3963. if test "$ac_test_CFLAGS" = set; then
  3964. CFLAGS=$ac_save_CFLAGS
  3965. elif test $ac_cv_prog_cc_g = yes; then
  3966. if test "$GCC" = yes; then
  3967. CFLAGS="-g -O2"
  3968. else
  3969. CFLAGS="-g"
  3970. fi
  3971. else
  3972. if test "$GCC" = yes; then
  3973. CFLAGS="-O2"
  3974. else
  3975. CFLAGS=
  3976. fi
  3977. fi
  3978. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3979. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3980. if ${ac_cv_prog_cc_c89+:} false; then :
  3981. $as_echo_n "(cached) " >&6
  3982. else
  3983. ac_cv_prog_cc_c89=no
  3984. ac_save_CC=$CC
  3985. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3986. /* end confdefs.h. */
  3987. #include <stdarg.h>
  3988. #include <stdio.h>
  3989. struct stat;
  3990. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3991. struct buf { int x; };
  3992. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3993. static char *e (p, i)
  3994. char **p;
  3995. int i;
  3996. {
  3997. return p[i];
  3998. }
  3999. static char *f (char * (*g) (char **, int), char **p, ...)
  4000. {
  4001. char *s;
  4002. va_list v;
  4003. va_start (v,p);
  4004. s = g (p, va_arg (v,int));
  4005. va_end (v);
  4006. return s;
  4007. }
  4008. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4009. function prototypes and stuff, but not '\xHH' hex character constants.
  4010. These don't provoke an error unfortunately, instead are silently treated
  4011. as 'x'. The following induces an error, until -std is added to get
  4012. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4013. array size at least. It's necessary to write '\x00'==0 to get something
  4014. that's true only with -std. */
  4015. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4016. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4017. inside strings and character constants. */
  4018. #define FOO(x) 'x'
  4019. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4020. int test (int i, double x);
  4021. struct s1 {int (*f) (int a);};
  4022. struct s2 {int (*f) (double a);};
  4023. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4024. int argc;
  4025. char **argv;
  4026. int
  4027. main ()
  4028. {
  4029. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4030. ;
  4031. return 0;
  4032. }
  4033. _ACEOF
  4034. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4035. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4036. do
  4037. CC="$ac_save_CC $ac_arg"
  4038. if ac_fn_c_try_compile "$LINENO"; then :
  4039. ac_cv_prog_cc_c89=$ac_arg
  4040. fi
  4041. rm -f core conftest.err conftest.$ac_objext
  4042. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4043. done
  4044. rm -f conftest.$ac_ext
  4045. CC=$ac_save_CC
  4046. fi
  4047. # AC_CACHE_VAL
  4048. case "x$ac_cv_prog_cc_c89" in
  4049. x)
  4050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4051. $as_echo "none needed" >&6; } ;;
  4052. xno)
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4054. $as_echo "unsupported" >&6; } ;;
  4055. *)
  4056. CC="$CC $ac_cv_prog_cc_c89"
  4057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4058. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4059. esac
  4060. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4061. fi
  4062. ac_ext=c
  4063. ac_cpp='$CPP $CPPFLAGS'
  4064. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4065. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4066. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4067. depcc="$CC" am_compiler_list=
  4068. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4069. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4070. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4071. $as_echo_n "(cached) " >&6
  4072. else
  4073. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4074. # We make a subdir and do the tests there. Otherwise we can end up
  4075. # making bogus files that we don't know about and never remove. For
  4076. # instance it was reported that on HP-UX the gcc test will end up
  4077. # making a dummy file named 'D' -- because '-MD' means "put the output
  4078. # in D".
  4079. rm -rf conftest.dir
  4080. mkdir conftest.dir
  4081. # Copy depcomp to subdir because otherwise we won't find it if we're
  4082. # using a relative directory.
  4083. cp "$am_depcomp" conftest.dir
  4084. cd conftest.dir
  4085. # We will build objects and dependencies in a subdirectory because
  4086. # it helps to detect inapplicable dependency modes. For instance
  4087. # both Tru64's cc and ICC support -MD to output dependencies as a
  4088. # side effect of compilation, but ICC will put the dependencies in
  4089. # the current directory while Tru64 will put them in the object
  4090. # directory.
  4091. mkdir sub
  4092. am_cv_CC_dependencies_compiler_type=none
  4093. if test "$am_compiler_list" = ""; then
  4094. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4095. fi
  4096. am__universal=false
  4097. case " $depcc " in #(
  4098. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4099. esac
  4100. for depmode in $am_compiler_list; do
  4101. # Setup a source with many dependencies, because some compilers
  4102. # like to wrap large dependency lists on column 80 (with \), and
  4103. # we should not choose a depcomp mode which is confused by this.
  4104. #
  4105. # We need to recreate these files for each test, as the compiler may
  4106. # overwrite some of them when testing with obscure command lines.
  4107. # This happens at least with the AIX C compiler.
  4108. : > sub/conftest.c
  4109. for i in 1 2 3 4 5 6; do
  4110. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4111. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4112. # Solaris 10 /bin/sh.
  4113. echo '/* dummy */' > sub/conftst$i.h
  4114. done
  4115. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4116. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4117. # mode. It turns out that the SunPro C++ compiler does not properly
  4118. # handle '-M -o', and we need to detect this. Also, some Intel
  4119. # versions had trouble with output in subdirs.
  4120. am__obj=sub/conftest.${OBJEXT-o}
  4121. am__minus_obj="-o $am__obj"
  4122. case $depmode in
  4123. gcc)
  4124. # This depmode causes a compiler race in universal mode.
  4125. test "$am__universal" = false || continue
  4126. ;;
  4127. nosideeffect)
  4128. # After this tag, mechanisms are not by side-effect, so they'll
  4129. # only be used when explicitly requested.
  4130. if test "x$enable_dependency_tracking" = xyes; then
  4131. continue
  4132. else
  4133. break
  4134. fi
  4135. ;;
  4136. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4137. # This compiler won't grok '-c -o', but also, the minuso test has
  4138. # not run yet. These depmodes are late enough in the game, and
  4139. # so weak that their functioning should not be impacted.
  4140. am__obj=conftest.${OBJEXT-o}
  4141. am__minus_obj=
  4142. ;;
  4143. none) break ;;
  4144. esac
  4145. if depmode=$depmode \
  4146. source=sub/conftest.c object=$am__obj \
  4147. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4148. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4149. >/dev/null 2>conftest.err &&
  4150. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4151. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4152. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4153. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4154. # icc doesn't choke on unknown options, it will just issue warnings
  4155. # or remarks (even with -Werror). So we grep stderr for any message
  4156. # that says an option was ignored or not supported.
  4157. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4158. # icc: Command line warning: ignoring option '-M'; no argument required
  4159. # The diagnosis changed in icc 8.0:
  4160. # icc: Command line remark: option '-MP' not supported
  4161. if (grep 'ignoring option' conftest.err ||
  4162. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4163. am_cv_CC_dependencies_compiler_type=$depmode
  4164. break
  4165. fi
  4166. fi
  4167. done
  4168. cd ..
  4169. rm -rf conftest.dir
  4170. else
  4171. am_cv_CC_dependencies_compiler_type=none
  4172. fi
  4173. fi
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4175. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4176. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4177. if
  4178. test "x$enable_dependency_tracking" != xno \
  4179. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4180. am__fastdepCC_TRUE=
  4181. am__fastdepCC_FALSE='#'
  4182. else
  4183. am__fastdepCC_TRUE='#'
  4184. am__fastdepCC_FALSE=
  4185. fi
  4186. if test "x$CC" != xcc; then
  4187. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  4188. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  4189. else
  4190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  4191. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  4192. fi
  4193. set dummy $CC; ac_cc=`$as_echo "$2" |
  4194. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4195. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  4196. $as_echo_n "(cached) " >&6
  4197. else
  4198. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4199. /* end confdefs.h. */
  4200. int
  4201. main ()
  4202. {
  4203. ;
  4204. return 0;
  4205. }
  4206. _ACEOF
  4207. # Make sure it works both with $CC and with simple cc.
  4208. # We do the test twice because some compilers refuse to overwrite an
  4209. # existing .o file with -o, though they will create one.
  4210. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4211. rm -f conftest2.*
  4212. if { { case "(($ac_try" in
  4213. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4214. *) ac_try_echo=$ac_try;;
  4215. esac
  4216. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4217. $as_echo "$ac_try_echo"; } >&5
  4218. (eval "$ac_try") 2>&5
  4219. ac_status=$?
  4220. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4221. test $ac_status = 0; } &&
  4222. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4223. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4224. *) ac_try_echo=$ac_try;;
  4225. esac
  4226. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4227. $as_echo "$ac_try_echo"; } >&5
  4228. (eval "$ac_try") 2>&5
  4229. ac_status=$?
  4230. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4231. test $ac_status = 0; };
  4232. then
  4233. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  4234. if test "x$CC" != xcc; then
  4235. # Test first that cc exists at all.
  4236. if { ac_try='cc -c conftest.$ac_ext >&5'
  4237. { { case "(($ac_try" in
  4238. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4239. *) ac_try_echo=$ac_try;;
  4240. esac
  4241. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4242. $as_echo "$ac_try_echo"; } >&5
  4243. (eval "$ac_try") 2>&5
  4244. ac_status=$?
  4245. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4246. test $ac_status = 0; }; }; then
  4247. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  4248. rm -f conftest2.*
  4249. if { { case "(($ac_try" in
  4250. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4251. *) ac_try_echo=$ac_try;;
  4252. esac
  4253. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4254. $as_echo "$ac_try_echo"; } >&5
  4255. (eval "$ac_try") 2>&5
  4256. ac_status=$?
  4257. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4258. test $ac_status = 0; } &&
  4259. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  4260. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4261. *) ac_try_echo=$ac_try;;
  4262. esac
  4263. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4264. $as_echo "$ac_try_echo"; } >&5
  4265. (eval "$ac_try") 2>&5
  4266. ac_status=$?
  4267. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4268. test $ac_status = 0; };
  4269. then
  4270. # cc works too.
  4271. :
  4272. else
  4273. # cc exists but doesn't like -o.
  4274. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4275. fi
  4276. fi
  4277. fi
  4278. else
  4279. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  4280. fi
  4281. rm -f core conftest*
  4282. fi
  4283. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  4284. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4285. $as_echo "yes" >&6; }
  4286. else
  4287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4288. $as_echo "no" >&6; }
  4289. $as_echo "@%:@define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  4290. fi
  4291. # FIXME: we rely on the cache variable name because
  4292. # there is no other way.
  4293. set dummy $CC
  4294. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  4295. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  4296. if test "$am_t" != yes; then
  4297. # Losing compiler, so override with the script.
  4298. # FIXME: It is wrong to rewrite CC.
  4299. # But if we don't then we get into trouble of one sort or another.
  4300. # A longer-term fix would be to have automake use am__CC in this case,
  4301. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4302. CC="$am_aux_dir/compile $CC"
  4303. fi
  4304. case `pwd` in
  4305. *\ * | *\ *)
  4306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4307. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4308. esac
  4309. macro_version='2.4.2'
  4310. macro_revision='1.3337'
  4311. ltmain="$ac_aux_dir/ltmain.sh"
  4312. # Make sure we can run config.sub.
  4313. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4314. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4315. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4316. $as_echo_n "checking build system type... " >&6; }
  4317. if ${ac_cv_build+:} false; then :
  4318. $as_echo_n "(cached) " >&6
  4319. else
  4320. ac_build_alias=$build_alias
  4321. test "x$ac_build_alias" = x &&
  4322. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4323. test "x$ac_build_alias" = x &&
  4324. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4325. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4326. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4327. fi
  4328. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4329. $as_echo "$ac_cv_build" >&6; }
  4330. case $ac_cv_build in
  4331. *-*-*) ;;
  4332. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4333. esac
  4334. build=$ac_cv_build
  4335. ac_save_IFS=$IFS; IFS='-'
  4336. set x $ac_cv_build
  4337. shift
  4338. build_cpu=$1
  4339. build_vendor=$2
  4340. shift; shift
  4341. # Remember, the first character of IFS is used to create $*,
  4342. # except with old shells:
  4343. build_os=$*
  4344. IFS=$ac_save_IFS
  4345. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4346. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4347. $as_echo_n "checking host system type... " >&6; }
  4348. if ${ac_cv_host+:} false; then :
  4349. $as_echo_n "(cached) " >&6
  4350. else
  4351. if test "x$host_alias" = x; then
  4352. ac_cv_host=$ac_cv_build
  4353. else
  4354. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4355. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4356. fi
  4357. fi
  4358. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4359. $as_echo "$ac_cv_host" >&6; }
  4360. case $ac_cv_host in
  4361. *-*-*) ;;
  4362. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4363. esac
  4364. host=$ac_cv_host
  4365. ac_save_IFS=$IFS; IFS='-'
  4366. set x $ac_cv_host
  4367. shift
  4368. host_cpu=$1
  4369. host_vendor=$2
  4370. shift; shift
  4371. # Remember, the first character of IFS is used to create $*,
  4372. # except with old shells:
  4373. host_os=$*
  4374. IFS=$ac_save_IFS
  4375. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4376. # Backslashify metacharacters that are still active within
  4377. # double-quoted strings.
  4378. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4379. # Same as above, but do not quote variable references.
  4380. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4381. # Sed substitution to delay expansion of an escaped shell variable in a
  4382. # double_quote_subst'ed string.
  4383. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4384. # Sed substitution to delay expansion of an escaped single quote.
  4385. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4386. # Sed substitution to avoid accidental globbing in evaled expressions
  4387. no_glob_subst='s/\*/\\\*/g'
  4388. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4389. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4390. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4392. $as_echo_n "checking how to print strings... " >&6; }
  4393. # Test print first, because it will be a builtin if present.
  4394. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4395. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4396. ECHO='print -r --'
  4397. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4398. ECHO='printf %s\n'
  4399. else
  4400. # Use this function as a fallback that always works.
  4401. func_fallback_echo ()
  4402. {
  4403. eval 'cat <<_LTECHO_EOF
  4404. $1
  4405. _LTECHO_EOF'
  4406. }
  4407. ECHO='func_fallback_echo'
  4408. fi
  4409. # func_echo_all arg...
  4410. # Invoke $ECHO with all args, space-separated.
  4411. func_echo_all ()
  4412. {
  4413. $ECHO ""
  4414. }
  4415. case "$ECHO" in
  4416. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4417. $as_echo "printf" >&6; } ;;
  4418. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4419. $as_echo "print -r" >&6; } ;;
  4420. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4421. $as_echo "cat" >&6; } ;;
  4422. esac
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4424. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4425. if ${ac_cv_path_SED+:} false; then :
  4426. $as_echo_n "(cached) " >&6
  4427. else
  4428. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4429. for ac_i in 1 2 3 4 5 6 7; do
  4430. ac_script="$ac_script$as_nl$ac_script"
  4431. done
  4432. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4433. { ac_script=; unset ac_script;}
  4434. if test -z "$SED"; then
  4435. ac_path_SED_found=false
  4436. # Loop through the user's path and test for each of PROGNAME-LIST
  4437. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4438. for as_dir in $PATH
  4439. do
  4440. IFS=$as_save_IFS
  4441. test -z "$as_dir" && as_dir=.
  4442. for ac_prog in sed gsed; do
  4443. for ac_exec_ext in '' $ac_executable_extensions; do
  4444. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4445. as_fn_executable_p "$ac_path_SED" || continue
  4446. # Check for GNU ac_path_SED and select it if it is found.
  4447. # Check for GNU $ac_path_SED
  4448. case `"$ac_path_SED" --version 2>&1` in
  4449. *GNU*)
  4450. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4451. *)
  4452. ac_count=0
  4453. $as_echo_n 0123456789 >"conftest.in"
  4454. while :
  4455. do
  4456. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4457. mv "conftest.tmp" "conftest.in"
  4458. cp "conftest.in" "conftest.nl"
  4459. $as_echo '' >> "conftest.nl"
  4460. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4461. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4462. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4463. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4464. # Best one so far, save it but keep looking for a better one
  4465. ac_cv_path_SED="$ac_path_SED"
  4466. ac_path_SED_max=$ac_count
  4467. fi
  4468. # 10*(2^10) chars as input seems more than enough
  4469. test $ac_count -gt 10 && break
  4470. done
  4471. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4472. esac
  4473. $ac_path_SED_found && break 3
  4474. done
  4475. done
  4476. done
  4477. IFS=$as_save_IFS
  4478. if test -z "$ac_cv_path_SED"; then
  4479. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4480. fi
  4481. else
  4482. ac_cv_path_SED=$SED
  4483. fi
  4484. fi
  4485. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4486. $as_echo "$ac_cv_path_SED" >&6; }
  4487. SED="$ac_cv_path_SED"
  4488. rm -f conftest.sed
  4489. test -z "$SED" && SED=sed
  4490. Xsed="$SED -e 1s/^X//"
  4491. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  4492. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  4493. if ${ac_cv_path_GREP+:} false; then :
  4494. $as_echo_n "(cached) " >&6
  4495. else
  4496. if test -z "$GREP"; then
  4497. ac_path_GREP_found=false
  4498. # Loop through the user's path and test for each of PROGNAME-LIST
  4499. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4500. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4501. do
  4502. IFS=$as_save_IFS
  4503. test -z "$as_dir" && as_dir=.
  4504. for ac_prog in grep ggrep; do
  4505. for ac_exec_ext in '' $ac_executable_extensions; do
  4506. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  4507. as_fn_executable_p "$ac_path_GREP" || continue
  4508. # Check for GNU ac_path_GREP and select it if it is found.
  4509. # Check for GNU $ac_path_GREP
  4510. case `"$ac_path_GREP" --version 2>&1` in
  4511. *GNU*)
  4512. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  4513. *)
  4514. ac_count=0
  4515. $as_echo_n 0123456789 >"conftest.in"
  4516. while :
  4517. do
  4518. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4519. mv "conftest.tmp" "conftest.in"
  4520. cp "conftest.in" "conftest.nl"
  4521. $as_echo 'GREP' >> "conftest.nl"
  4522. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4523. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4524. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4525. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  4526. # Best one so far, save it but keep looking for a better one
  4527. ac_cv_path_GREP="$ac_path_GREP"
  4528. ac_path_GREP_max=$ac_count
  4529. fi
  4530. # 10*(2^10) chars as input seems more than enough
  4531. test $ac_count -gt 10 && break
  4532. done
  4533. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4534. esac
  4535. $ac_path_GREP_found && break 3
  4536. done
  4537. done
  4538. done
  4539. IFS=$as_save_IFS
  4540. if test -z "$ac_cv_path_GREP"; then
  4541. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4542. fi
  4543. else
  4544. ac_cv_path_GREP=$GREP
  4545. fi
  4546. fi
  4547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  4548. $as_echo "$ac_cv_path_GREP" >&6; }
  4549. GREP="$ac_cv_path_GREP"
  4550. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  4551. $as_echo_n "checking for egrep... " >&6; }
  4552. if ${ac_cv_path_EGREP+:} false; then :
  4553. $as_echo_n "(cached) " >&6
  4554. else
  4555. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  4556. then ac_cv_path_EGREP="$GREP -E"
  4557. else
  4558. if test -z "$EGREP"; then
  4559. ac_path_EGREP_found=false
  4560. # Loop through the user's path and test for each of PROGNAME-LIST
  4561. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4562. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4563. do
  4564. IFS=$as_save_IFS
  4565. test -z "$as_dir" && as_dir=.
  4566. for ac_prog in egrep; do
  4567. for ac_exec_ext in '' $ac_executable_extensions; do
  4568. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4569. as_fn_executable_p "$ac_path_EGREP" || continue
  4570. # Check for GNU ac_path_EGREP and select it if it is found.
  4571. # Check for GNU $ac_path_EGREP
  4572. case `"$ac_path_EGREP" --version 2>&1` in
  4573. *GNU*)
  4574. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4575. *)
  4576. ac_count=0
  4577. $as_echo_n 0123456789 >"conftest.in"
  4578. while :
  4579. do
  4580. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4581. mv "conftest.tmp" "conftest.in"
  4582. cp "conftest.in" "conftest.nl"
  4583. $as_echo 'EGREP' >> "conftest.nl"
  4584. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4585. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4586. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4587. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4588. # Best one so far, save it but keep looking for a better one
  4589. ac_cv_path_EGREP="$ac_path_EGREP"
  4590. ac_path_EGREP_max=$ac_count
  4591. fi
  4592. # 10*(2^10) chars as input seems more than enough
  4593. test $ac_count -gt 10 && break
  4594. done
  4595. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4596. esac
  4597. $ac_path_EGREP_found && break 3
  4598. done
  4599. done
  4600. done
  4601. IFS=$as_save_IFS
  4602. if test -z "$ac_cv_path_EGREP"; then
  4603. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4604. fi
  4605. else
  4606. ac_cv_path_EGREP=$EGREP
  4607. fi
  4608. fi
  4609. fi
  4610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4611. $as_echo "$ac_cv_path_EGREP" >&6; }
  4612. EGREP="$ac_cv_path_EGREP"
  4613. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4614. $as_echo_n "checking for fgrep... " >&6; }
  4615. if ${ac_cv_path_FGREP+:} false; then :
  4616. $as_echo_n "(cached) " >&6
  4617. else
  4618. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4619. then ac_cv_path_FGREP="$GREP -F"
  4620. else
  4621. if test -z "$FGREP"; then
  4622. ac_path_FGREP_found=false
  4623. # Loop through the user's path and test for each of PROGNAME-LIST
  4624. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4625. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4626. do
  4627. IFS=$as_save_IFS
  4628. test -z "$as_dir" && as_dir=.
  4629. for ac_prog in fgrep; do
  4630. for ac_exec_ext in '' $ac_executable_extensions; do
  4631. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4632. as_fn_executable_p "$ac_path_FGREP" || continue
  4633. # Check for GNU ac_path_FGREP and select it if it is found.
  4634. # Check for GNU $ac_path_FGREP
  4635. case `"$ac_path_FGREP" --version 2>&1` in
  4636. *GNU*)
  4637. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4638. *)
  4639. ac_count=0
  4640. $as_echo_n 0123456789 >"conftest.in"
  4641. while :
  4642. do
  4643. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4644. mv "conftest.tmp" "conftest.in"
  4645. cp "conftest.in" "conftest.nl"
  4646. $as_echo 'FGREP' >> "conftest.nl"
  4647. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4648. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4649. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4650. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4651. # Best one so far, save it but keep looking for a better one
  4652. ac_cv_path_FGREP="$ac_path_FGREP"
  4653. ac_path_FGREP_max=$ac_count
  4654. fi
  4655. # 10*(2^10) chars as input seems more than enough
  4656. test $ac_count -gt 10 && break
  4657. done
  4658. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4659. esac
  4660. $ac_path_FGREP_found && break 3
  4661. done
  4662. done
  4663. done
  4664. IFS=$as_save_IFS
  4665. if test -z "$ac_cv_path_FGREP"; then
  4666. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4667. fi
  4668. else
  4669. ac_cv_path_FGREP=$FGREP
  4670. fi
  4671. fi
  4672. fi
  4673. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4674. $as_echo "$ac_cv_path_FGREP" >&6; }
  4675. FGREP="$ac_cv_path_FGREP"
  4676. test -z "$GREP" && GREP=grep
  4677. @%:@ Check whether --with-gnu-ld was given.
  4678. if test "${with_gnu_ld+set}" = set; then :
  4679. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4680. else
  4681. with_gnu_ld=no
  4682. fi
  4683. ac_prog=ld
  4684. if test "$GCC" = yes; then
  4685. # Check if gcc -print-prog-name=ld gives a path.
  4686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4687. $as_echo_n "checking for ld used by $CC... " >&6; }
  4688. case $host in
  4689. *-*-mingw*)
  4690. # gcc leaves a trailing carriage return which upsets mingw
  4691. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4692. *)
  4693. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4694. esac
  4695. case $ac_prog in
  4696. # Accept absolute paths.
  4697. [\\/]* | ?:[\\/]*)
  4698. re_direlt='/[^/][^/]*/\.\./'
  4699. # Canonicalize the pathname of ld
  4700. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4701. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4702. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4703. done
  4704. test -z "$LD" && LD="$ac_prog"
  4705. ;;
  4706. "")
  4707. # If it fails, then pretend we aren't using GCC.
  4708. ac_prog=ld
  4709. ;;
  4710. *)
  4711. # If it is relative, then search for the first ld in PATH.
  4712. with_gnu_ld=unknown
  4713. ;;
  4714. esac
  4715. elif test "$with_gnu_ld" = yes; then
  4716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4717. $as_echo_n "checking for GNU ld... " >&6; }
  4718. else
  4719. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4720. $as_echo_n "checking for non-GNU ld... " >&6; }
  4721. fi
  4722. if ${lt_cv_path_LD+:} false; then :
  4723. $as_echo_n "(cached) " >&6
  4724. else
  4725. if test -z "$LD"; then
  4726. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4727. for ac_dir in $PATH; do
  4728. IFS="$lt_save_ifs"
  4729. test -z "$ac_dir" && ac_dir=.
  4730. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4731. lt_cv_path_LD="$ac_dir/$ac_prog"
  4732. # Check to see if the program is GNU ld. I'd rather use --version,
  4733. # but apparently some variants of GNU ld only accept -v.
  4734. # Break only if it was the GNU/non-GNU ld that we prefer.
  4735. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4736. *GNU* | *'with BFD'*)
  4737. test "$with_gnu_ld" != no && break
  4738. ;;
  4739. *)
  4740. test "$with_gnu_ld" != yes && break
  4741. ;;
  4742. esac
  4743. fi
  4744. done
  4745. IFS="$lt_save_ifs"
  4746. else
  4747. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4748. fi
  4749. fi
  4750. LD="$lt_cv_path_LD"
  4751. if test -n "$LD"; then
  4752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4753. $as_echo "$LD" >&6; }
  4754. else
  4755. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4756. $as_echo "no" >&6; }
  4757. fi
  4758. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4760. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4761. if ${lt_cv_prog_gnu_ld+:} false; then :
  4762. $as_echo_n "(cached) " >&6
  4763. else
  4764. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4765. case `$LD -v 2>&1 </dev/null` in
  4766. *GNU* | *'with BFD'*)
  4767. lt_cv_prog_gnu_ld=yes
  4768. ;;
  4769. *)
  4770. lt_cv_prog_gnu_ld=no
  4771. ;;
  4772. esac
  4773. fi
  4774. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4775. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4776. with_gnu_ld=$lt_cv_prog_gnu_ld
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4778. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4779. if ${lt_cv_path_NM+:} false; then :
  4780. $as_echo_n "(cached) " >&6
  4781. else
  4782. if test -n "$NM"; then
  4783. # Let the user override the test.
  4784. lt_cv_path_NM="$NM"
  4785. else
  4786. lt_nm_to_check="${ac_tool_prefix}nm"
  4787. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4788. lt_nm_to_check="$lt_nm_to_check nm"
  4789. fi
  4790. for lt_tmp_nm in $lt_nm_to_check; do
  4791. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4792. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4793. IFS="$lt_save_ifs"
  4794. test -z "$ac_dir" && ac_dir=.
  4795. tmp_nm="$ac_dir/$lt_tmp_nm"
  4796. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4797. # Check to see if the nm accepts a BSD-compat flag.
  4798. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4799. # nm: unknown option "B" ignored
  4800. # Tru64's nm complains that /dev/null is an invalid object file
  4801. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4802. */dev/null* | *'Invalid file or object type'*)
  4803. lt_cv_path_NM="$tmp_nm -B"
  4804. break
  4805. ;;
  4806. *)
  4807. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4808. */dev/null*)
  4809. lt_cv_path_NM="$tmp_nm -p"
  4810. break
  4811. ;;
  4812. *)
  4813. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4814. continue # so that we can try to find one that supports BSD flags
  4815. ;;
  4816. esac
  4817. ;;
  4818. esac
  4819. fi
  4820. done
  4821. IFS="$lt_save_ifs"
  4822. done
  4823. : ${lt_cv_path_NM=no}
  4824. fi
  4825. fi
  4826. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4827. $as_echo "$lt_cv_path_NM" >&6; }
  4828. if test "$lt_cv_path_NM" != "no"; then
  4829. NM="$lt_cv_path_NM"
  4830. else
  4831. # Didn't find any BSD compatible name lister, look for dumpbin.
  4832. if test -n "$DUMPBIN"; then :
  4833. # Let the user override the test.
  4834. else
  4835. if test -n "$ac_tool_prefix"; then
  4836. for ac_prog in dumpbin "link -dump"
  4837. do
  4838. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4839. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4841. $as_echo_n "checking for $ac_word... " >&6; }
  4842. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4843. $as_echo_n "(cached) " >&6
  4844. else
  4845. if test -n "$DUMPBIN"; then
  4846. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4847. else
  4848. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4849. for as_dir in $PATH
  4850. do
  4851. IFS=$as_save_IFS
  4852. test -z "$as_dir" && as_dir=.
  4853. for ac_exec_ext in '' $ac_executable_extensions; do
  4854. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4855. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4856. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4857. break 2
  4858. fi
  4859. done
  4860. done
  4861. IFS=$as_save_IFS
  4862. fi
  4863. fi
  4864. DUMPBIN=$ac_cv_prog_DUMPBIN
  4865. if test -n "$DUMPBIN"; then
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4867. $as_echo "$DUMPBIN" >&6; }
  4868. else
  4869. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4870. $as_echo "no" >&6; }
  4871. fi
  4872. test -n "$DUMPBIN" && break
  4873. done
  4874. fi
  4875. if test -z "$DUMPBIN"; then
  4876. ac_ct_DUMPBIN=$DUMPBIN
  4877. for ac_prog in dumpbin "link -dump"
  4878. do
  4879. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4880. set dummy $ac_prog; ac_word=$2
  4881. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4882. $as_echo_n "checking for $ac_word... " >&6; }
  4883. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4884. $as_echo_n "(cached) " >&6
  4885. else
  4886. if test -n "$ac_ct_DUMPBIN"; then
  4887. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4888. else
  4889. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4890. for as_dir in $PATH
  4891. do
  4892. IFS=$as_save_IFS
  4893. test -z "$as_dir" && as_dir=.
  4894. for ac_exec_ext in '' $ac_executable_extensions; do
  4895. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4896. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4897. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4898. break 2
  4899. fi
  4900. done
  4901. done
  4902. IFS=$as_save_IFS
  4903. fi
  4904. fi
  4905. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4906. if test -n "$ac_ct_DUMPBIN"; then
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4908. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4909. else
  4910. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4911. $as_echo "no" >&6; }
  4912. fi
  4913. test -n "$ac_ct_DUMPBIN" && break
  4914. done
  4915. if test "x$ac_ct_DUMPBIN" = x; then
  4916. DUMPBIN=":"
  4917. else
  4918. case $cross_compiling:$ac_tool_warned in
  4919. yes:)
  4920. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4921. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4922. ac_tool_warned=yes ;;
  4923. esac
  4924. DUMPBIN=$ac_ct_DUMPBIN
  4925. fi
  4926. fi
  4927. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4928. *COFF*)
  4929. DUMPBIN="$DUMPBIN -symbols"
  4930. ;;
  4931. *)
  4932. DUMPBIN=:
  4933. ;;
  4934. esac
  4935. fi
  4936. if test "$DUMPBIN" != ":"; then
  4937. NM="$DUMPBIN"
  4938. fi
  4939. fi
  4940. test -z "$NM" && NM=nm
  4941. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4942. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4943. if ${lt_cv_nm_interface+:} false; then :
  4944. $as_echo_n "(cached) " >&6
  4945. else
  4946. lt_cv_nm_interface="BSD nm"
  4947. echo "int some_variable = 0;" > conftest.$ac_ext
  4948. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4949. (eval "$ac_compile" 2>conftest.err)
  4950. cat conftest.err >&5
  4951. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4952. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4953. cat conftest.err >&5
  4954. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4955. cat conftest.out >&5
  4956. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4957. lt_cv_nm_interface="MS dumpbin"
  4958. fi
  4959. rm -f conftest*
  4960. fi
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4962. $as_echo "$lt_cv_nm_interface" >&6; }
  4963. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4964. $as_echo_n "checking whether ln -s works... " >&6; }
  4965. LN_S=$as_ln_s
  4966. if test "$LN_S" = "ln -s"; then
  4967. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4968. $as_echo "yes" >&6; }
  4969. else
  4970. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4971. $as_echo "no, using $LN_S" >&6; }
  4972. fi
  4973. # find the maximum length of command line arguments
  4974. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4975. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4976. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4977. $as_echo_n "(cached) " >&6
  4978. else
  4979. i=0
  4980. teststring="ABCD"
  4981. case $build_os in
  4982. msdosdjgpp*)
  4983. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4984. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4985. # during glob expansion). Even if it were fixed, the result of this
  4986. # check would be larger than it should be.
  4987. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4988. ;;
  4989. gnu*)
  4990. # Under GNU Hurd, this test is not required because there is
  4991. # no limit to the length of command line arguments.
  4992. # Libtool will interpret -1 as no limit whatsoever
  4993. lt_cv_sys_max_cmd_len=-1;
  4994. ;;
  4995. cygwin* | mingw* | cegcc*)
  4996. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4997. # about 5 minutes as the teststring grows exponentially.
  4998. # Worse, since 9x/ME are not pre-emptively multitasking,
  4999. # you end up with a "frozen" computer, even though with patience
  5000. # the test eventually succeeds (with a max line length of 256k).
  5001. # Instead, let's just punt: use the minimum linelength reported by
  5002. # all of the supported platforms: 8192 (on NT/2K/XP).
  5003. lt_cv_sys_max_cmd_len=8192;
  5004. ;;
  5005. mint*)
  5006. # On MiNT this can take a long time and run out of memory.
  5007. lt_cv_sys_max_cmd_len=8192;
  5008. ;;
  5009. amigaos*)
  5010. # On AmigaOS with pdksh, this test takes hours, literally.
  5011. # So we just punt and use a minimum line length of 8192.
  5012. lt_cv_sys_max_cmd_len=8192;
  5013. ;;
  5014. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5015. # This has been around since 386BSD, at least. Likely further.
  5016. if test -x /sbin/sysctl; then
  5017. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5018. elif test -x /usr/sbin/sysctl; then
  5019. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5020. else
  5021. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5022. fi
  5023. # And add a safety zone
  5024. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5025. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5026. ;;
  5027. interix*)
  5028. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5029. lt_cv_sys_max_cmd_len=196608
  5030. ;;
  5031. os2*)
  5032. # The test takes a long time on OS/2.
  5033. lt_cv_sys_max_cmd_len=8192
  5034. ;;
  5035. osf*)
  5036. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5037. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5038. # nice to cause kernel panics so lets avoid the loop below.
  5039. # First set a reasonable default.
  5040. lt_cv_sys_max_cmd_len=16384
  5041. #
  5042. if test -x /sbin/sysconfig; then
  5043. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5044. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5045. esac
  5046. fi
  5047. ;;
  5048. sco3.2v5*)
  5049. lt_cv_sys_max_cmd_len=102400
  5050. ;;
  5051. sysv5* | sco5v6* | sysv4.2uw2*)
  5052. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5053. if test -n "$kargmax"; then
  5054. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5055. else
  5056. lt_cv_sys_max_cmd_len=32768
  5057. fi
  5058. ;;
  5059. *)
  5060. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5061. if test -n "$lt_cv_sys_max_cmd_len"; then
  5062. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5063. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5064. else
  5065. # Make teststring a little bigger before we do anything with it.
  5066. # a 1K string should be a reasonable start.
  5067. for i in 1 2 3 4 5 6 7 8 ; do
  5068. teststring=$teststring$teststring
  5069. done
  5070. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5071. # If test is not a shell built-in, we'll probably end up computing a
  5072. # maximum length that is only half of the actual maximum length, but
  5073. # we can't tell.
  5074. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5075. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5076. test $i != 17 # 1/2 MB should be enough
  5077. do
  5078. i=`expr $i + 1`
  5079. teststring=$teststring$teststring
  5080. done
  5081. # Only check the string length outside the loop.
  5082. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5083. teststring=
  5084. # Add a significant safety factor because C++ compilers can tack on
  5085. # massive amounts of additional arguments before passing them to the
  5086. # linker. It appears as though 1/2 is a usable value.
  5087. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5088. fi
  5089. ;;
  5090. esac
  5091. fi
  5092. if test -n $lt_cv_sys_max_cmd_len ; then
  5093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5094. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5095. else
  5096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5097. $as_echo "none" >&6; }
  5098. fi
  5099. max_cmd_len=$lt_cv_sys_max_cmd_len
  5100. : ${CP="cp -f"}
  5101. : ${MV="mv -f"}
  5102. : ${RM="rm -f"}
  5103. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5104. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5105. # Try some XSI features
  5106. xsi_shell=no
  5107. ( _lt_dummy="a/b/c"
  5108. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5109. = c,a/b,b/c, \
  5110. && eval 'test $(( 1 + 1 )) -eq 2 \
  5111. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5112. && xsi_shell=yes
  5113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5114. $as_echo "$xsi_shell" >&6; }
  5115. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5116. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5117. lt_shell_append=no
  5118. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5119. >/dev/null 2>&1 \
  5120. && lt_shell_append=yes
  5121. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5122. $as_echo "$lt_shell_append" >&6; }
  5123. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5124. lt_unset=unset
  5125. else
  5126. lt_unset=false
  5127. fi
  5128. # test EBCDIC or ASCII
  5129. case `echo X|tr X '\101'` in
  5130. A) # ASCII based system
  5131. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5132. lt_SP2NL='tr \040 \012'
  5133. lt_NL2SP='tr \015\012 \040\040'
  5134. ;;
  5135. *) # EBCDIC based system
  5136. lt_SP2NL='tr \100 \n'
  5137. lt_NL2SP='tr \r\n \100\100'
  5138. ;;
  5139. esac
  5140. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5141. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5142. if ${lt_cv_to_host_file_cmd+:} false; then :
  5143. $as_echo_n "(cached) " >&6
  5144. else
  5145. case $host in
  5146. *-*-mingw* )
  5147. case $build in
  5148. *-*-mingw* ) # actually msys
  5149. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5150. ;;
  5151. *-*-cygwin* )
  5152. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5153. ;;
  5154. * ) # otherwise, assume *nix
  5155. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5156. ;;
  5157. esac
  5158. ;;
  5159. *-*-cygwin* )
  5160. case $build in
  5161. *-*-mingw* ) # actually msys
  5162. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5163. ;;
  5164. *-*-cygwin* )
  5165. lt_cv_to_host_file_cmd=func_convert_file_noop
  5166. ;;
  5167. * ) # otherwise, assume *nix
  5168. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5169. ;;
  5170. esac
  5171. ;;
  5172. * ) # unhandled hosts (and "normal" native builds)
  5173. lt_cv_to_host_file_cmd=func_convert_file_noop
  5174. ;;
  5175. esac
  5176. fi
  5177. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5179. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5180. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5181. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5182. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5183. $as_echo_n "(cached) " >&6
  5184. else
  5185. #assume ordinary cross tools, or native build.
  5186. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5187. case $host in
  5188. *-*-mingw* )
  5189. case $build in
  5190. *-*-mingw* ) # actually msys
  5191. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5192. ;;
  5193. esac
  5194. ;;
  5195. esac
  5196. fi
  5197. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5199. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5201. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5202. if ${lt_cv_ld_reload_flag+:} false; then :
  5203. $as_echo_n "(cached) " >&6
  5204. else
  5205. lt_cv_ld_reload_flag='-r'
  5206. fi
  5207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5208. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5209. reload_flag=$lt_cv_ld_reload_flag
  5210. case $reload_flag in
  5211. "" | " "*) ;;
  5212. *) reload_flag=" $reload_flag" ;;
  5213. esac
  5214. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5215. case $host_os in
  5216. cygwin* | mingw* | pw32* | cegcc*)
  5217. if test "$GCC" != yes; then
  5218. reload_cmds=false
  5219. fi
  5220. ;;
  5221. darwin*)
  5222. if test "$GCC" = yes; then
  5223. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5224. else
  5225. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5226. fi
  5227. ;;
  5228. esac
  5229. if test -n "$ac_tool_prefix"; then
  5230. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5231. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5233. $as_echo_n "checking for $ac_word... " >&6; }
  5234. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5235. $as_echo_n "(cached) " >&6
  5236. else
  5237. if test -n "$OBJDUMP"; then
  5238. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5239. else
  5240. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5241. for as_dir in $PATH
  5242. do
  5243. IFS=$as_save_IFS
  5244. test -z "$as_dir" && as_dir=.
  5245. for ac_exec_ext in '' $ac_executable_extensions; do
  5246. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5247. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5248. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5249. break 2
  5250. fi
  5251. done
  5252. done
  5253. IFS=$as_save_IFS
  5254. fi
  5255. fi
  5256. OBJDUMP=$ac_cv_prog_OBJDUMP
  5257. if test -n "$OBJDUMP"; then
  5258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5259. $as_echo "$OBJDUMP" >&6; }
  5260. else
  5261. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5262. $as_echo "no" >&6; }
  5263. fi
  5264. fi
  5265. if test -z "$ac_cv_prog_OBJDUMP"; then
  5266. ac_ct_OBJDUMP=$OBJDUMP
  5267. # Extract the first word of "objdump", so it can be a program name with args.
  5268. set dummy objdump; ac_word=$2
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5270. $as_echo_n "checking for $ac_word... " >&6; }
  5271. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5272. $as_echo_n "(cached) " >&6
  5273. else
  5274. if test -n "$ac_ct_OBJDUMP"; then
  5275. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5276. else
  5277. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5278. for as_dir in $PATH
  5279. do
  5280. IFS=$as_save_IFS
  5281. test -z "$as_dir" && as_dir=.
  5282. for ac_exec_ext in '' $ac_executable_extensions; do
  5283. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5284. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5285. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5286. break 2
  5287. fi
  5288. done
  5289. done
  5290. IFS=$as_save_IFS
  5291. fi
  5292. fi
  5293. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5294. if test -n "$ac_ct_OBJDUMP"; then
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5296. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5297. else
  5298. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5299. $as_echo "no" >&6; }
  5300. fi
  5301. if test "x$ac_ct_OBJDUMP" = x; then
  5302. OBJDUMP="false"
  5303. else
  5304. case $cross_compiling:$ac_tool_warned in
  5305. yes:)
  5306. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5307. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5308. ac_tool_warned=yes ;;
  5309. esac
  5310. OBJDUMP=$ac_ct_OBJDUMP
  5311. fi
  5312. else
  5313. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5314. fi
  5315. test -z "$OBJDUMP" && OBJDUMP=objdump
  5316. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5317. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5318. if ${lt_cv_deplibs_check_method+:} false; then :
  5319. $as_echo_n "(cached) " >&6
  5320. else
  5321. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5322. lt_cv_file_magic_test_file=
  5323. lt_cv_deplibs_check_method='unknown'
  5324. # Need to set the preceding variable on all platforms that support
  5325. # interlibrary dependencies.
  5326. # 'none' -- dependencies not supported.
  5327. # `unknown' -- same as none, but documents that we really don't know.
  5328. # 'pass_all' -- all dependencies passed with no checks.
  5329. # 'test_compile' -- check by making test program.
  5330. # 'file_magic [[regex]]' -- check by looking for files in library path
  5331. # which responds to the $file_magic_cmd with a given extended regex.
  5332. # If you have `file' or equivalent on your system and you're not sure
  5333. # whether `pass_all' will *always* work, you probably want this one.
  5334. case $host_os in
  5335. aix[4-9]*)
  5336. lt_cv_deplibs_check_method=pass_all
  5337. ;;
  5338. beos*)
  5339. lt_cv_deplibs_check_method=pass_all
  5340. ;;
  5341. bsdi[45]*)
  5342. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5343. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5344. lt_cv_file_magic_test_file=/shlib/libc.so
  5345. ;;
  5346. cygwin*)
  5347. # func_win32_libid is a shell function defined in ltmain.sh
  5348. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5349. lt_cv_file_magic_cmd='func_win32_libid'
  5350. ;;
  5351. mingw* | pw32*)
  5352. # Base MSYS/MinGW do not provide the 'file' command needed by
  5353. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5354. # unless we find 'file', for example because we are cross-compiling.
  5355. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5356. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5357. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5358. lt_cv_file_magic_cmd='func_win32_libid'
  5359. else
  5360. # Keep this pattern in sync with the one in func_win32_libid.
  5361. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5362. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5363. fi
  5364. ;;
  5365. cegcc*)
  5366. # use the weaker test based on 'objdump'. See mingw*.
  5367. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5368. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5369. ;;
  5370. darwin* | rhapsody*)
  5371. lt_cv_deplibs_check_method=pass_all
  5372. ;;
  5373. freebsd* | dragonfly*)
  5374. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5375. case $host_cpu in
  5376. i*86 )
  5377. # Not sure whether the presence of OpenBSD here was a mistake.
  5378. # Let's accept both of them until this is cleared up.
  5379. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5380. lt_cv_file_magic_cmd=/usr/bin/file
  5381. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5382. ;;
  5383. esac
  5384. else
  5385. lt_cv_deplibs_check_method=pass_all
  5386. fi
  5387. ;;
  5388. gnu*)
  5389. lt_cv_deplibs_check_method=pass_all
  5390. ;;
  5391. haiku*)
  5392. lt_cv_deplibs_check_method=pass_all
  5393. ;;
  5394. hpux10.20* | hpux11*)
  5395. lt_cv_file_magic_cmd=/usr/bin/file
  5396. case $host_cpu in
  5397. ia64*)
  5398. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5399. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5400. ;;
  5401. hppa*64*)
  5402. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
  5403. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5404. ;;
  5405. *)
  5406. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5407. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5408. ;;
  5409. esac
  5410. ;;
  5411. interix[3-9]*)
  5412. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5413. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5414. ;;
  5415. irix5* | irix6* | nonstopux*)
  5416. case $LD in
  5417. *-32|*"-32 ") libmagic=32-bit;;
  5418. *-n32|*"-n32 ") libmagic=N32;;
  5419. *-64|*"-64 ") libmagic=64-bit;;
  5420. *) libmagic=never-match;;
  5421. esac
  5422. lt_cv_deplibs_check_method=pass_all
  5423. ;;
  5424. # This must be glibc/ELF.
  5425. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5426. lt_cv_deplibs_check_method=pass_all
  5427. ;;
  5428. netbsd*)
  5429. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5430. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5431. else
  5432. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5433. fi
  5434. ;;
  5435. newos6*)
  5436. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5437. lt_cv_file_magic_cmd=/usr/bin/file
  5438. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5439. ;;
  5440. *nto* | *qnx*)
  5441. lt_cv_deplibs_check_method=pass_all
  5442. ;;
  5443. openbsd*)
  5444. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5445. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5446. else
  5447. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5448. fi
  5449. ;;
  5450. osf3* | osf4* | osf5*)
  5451. lt_cv_deplibs_check_method=pass_all
  5452. ;;
  5453. rdos*)
  5454. lt_cv_deplibs_check_method=pass_all
  5455. ;;
  5456. solaris*)
  5457. lt_cv_deplibs_check_method=pass_all
  5458. ;;
  5459. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5460. lt_cv_deplibs_check_method=pass_all
  5461. ;;
  5462. sysv4 | sysv4.3*)
  5463. case $host_vendor in
  5464. motorola)
  5465. 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]'
  5466. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5467. ;;
  5468. ncr)
  5469. lt_cv_deplibs_check_method=pass_all
  5470. ;;
  5471. sequent)
  5472. lt_cv_file_magic_cmd='/bin/file'
  5473. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5474. ;;
  5475. sni)
  5476. lt_cv_file_magic_cmd='/bin/file'
  5477. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5478. lt_cv_file_magic_test_file=/lib/libc.so
  5479. ;;
  5480. siemens)
  5481. lt_cv_deplibs_check_method=pass_all
  5482. ;;
  5483. pc)
  5484. lt_cv_deplibs_check_method=pass_all
  5485. ;;
  5486. esac
  5487. ;;
  5488. tpf*)
  5489. lt_cv_deplibs_check_method=pass_all
  5490. ;;
  5491. esac
  5492. fi
  5493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5494. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5495. file_magic_glob=
  5496. want_nocaseglob=no
  5497. if test "$build" = "$host"; then
  5498. case $host_os in
  5499. mingw* | pw32*)
  5500. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5501. want_nocaseglob=yes
  5502. else
  5503. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5504. fi
  5505. ;;
  5506. esac
  5507. fi
  5508. file_magic_cmd=$lt_cv_file_magic_cmd
  5509. deplibs_check_method=$lt_cv_deplibs_check_method
  5510. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5511. if test -n "$ac_tool_prefix"; then
  5512. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5513. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5514. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5515. $as_echo_n "checking for $ac_word... " >&6; }
  5516. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5517. $as_echo_n "(cached) " >&6
  5518. else
  5519. if test -n "$DLLTOOL"; then
  5520. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5521. else
  5522. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5523. for as_dir in $PATH
  5524. do
  5525. IFS=$as_save_IFS
  5526. test -z "$as_dir" && as_dir=.
  5527. for ac_exec_ext in '' $ac_executable_extensions; do
  5528. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5529. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5530. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5531. break 2
  5532. fi
  5533. done
  5534. done
  5535. IFS=$as_save_IFS
  5536. fi
  5537. fi
  5538. DLLTOOL=$ac_cv_prog_DLLTOOL
  5539. if test -n "$DLLTOOL"; then
  5540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5541. $as_echo "$DLLTOOL" >&6; }
  5542. else
  5543. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5544. $as_echo "no" >&6; }
  5545. fi
  5546. fi
  5547. if test -z "$ac_cv_prog_DLLTOOL"; then
  5548. ac_ct_DLLTOOL=$DLLTOOL
  5549. # Extract the first word of "dlltool", so it can be a program name with args.
  5550. set dummy dlltool; ac_word=$2
  5551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5552. $as_echo_n "checking for $ac_word... " >&6; }
  5553. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5554. $as_echo_n "(cached) " >&6
  5555. else
  5556. if test -n "$ac_ct_DLLTOOL"; then
  5557. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5558. else
  5559. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5560. for as_dir in $PATH
  5561. do
  5562. IFS=$as_save_IFS
  5563. test -z "$as_dir" && as_dir=.
  5564. for ac_exec_ext in '' $ac_executable_extensions; do
  5565. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5566. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5567. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5568. break 2
  5569. fi
  5570. done
  5571. done
  5572. IFS=$as_save_IFS
  5573. fi
  5574. fi
  5575. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5576. if test -n "$ac_ct_DLLTOOL"; then
  5577. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5578. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5579. else
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5581. $as_echo "no" >&6; }
  5582. fi
  5583. if test "x$ac_ct_DLLTOOL" = x; then
  5584. DLLTOOL="false"
  5585. else
  5586. case $cross_compiling:$ac_tool_warned in
  5587. yes:)
  5588. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5589. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5590. ac_tool_warned=yes ;;
  5591. esac
  5592. DLLTOOL=$ac_ct_DLLTOOL
  5593. fi
  5594. else
  5595. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5596. fi
  5597. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5598. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5599. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5600. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5601. $as_echo_n "(cached) " >&6
  5602. else
  5603. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5604. case $host_os in
  5605. cygwin* | mingw* | pw32* | cegcc*)
  5606. # two different shell functions defined in ltmain.sh
  5607. # decide which to use based on capabilities of $DLLTOOL
  5608. case `$DLLTOOL --help 2>&1` in
  5609. *--identify-strict*)
  5610. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5611. ;;
  5612. *)
  5613. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5614. ;;
  5615. esac
  5616. ;;
  5617. *)
  5618. # fallback: assume linklib IS sharedlib
  5619. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5620. ;;
  5621. esac
  5622. fi
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5624. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5625. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5626. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5627. if test -n "$ac_tool_prefix"; then
  5628. for ac_prog in ar
  5629. do
  5630. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5631. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5632. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5633. $as_echo_n "checking for $ac_word... " >&6; }
  5634. if ${ac_cv_prog_AR+:} false; then :
  5635. $as_echo_n "(cached) " >&6
  5636. else
  5637. if test -n "$AR"; then
  5638. ac_cv_prog_AR="$AR" # Let the user override the test.
  5639. else
  5640. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5641. for as_dir in $PATH
  5642. do
  5643. IFS=$as_save_IFS
  5644. test -z "$as_dir" && as_dir=.
  5645. for ac_exec_ext in '' $ac_executable_extensions; do
  5646. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5647. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5648. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5649. break 2
  5650. fi
  5651. done
  5652. done
  5653. IFS=$as_save_IFS
  5654. fi
  5655. fi
  5656. AR=$ac_cv_prog_AR
  5657. if test -n "$AR"; then
  5658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5659. $as_echo "$AR" >&6; }
  5660. else
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5662. $as_echo "no" >&6; }
  5663. fi
  5664. test -n "$AR" && break
  5665. done
  5666. fi
  5667. if test -z "$AR"; then
  5668. ac_ct_AR=$AR
  5669. for ac_prog in ar
  5670. do
  5671. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5672. set dummy $ac_prog; ac_word=$2
  5673. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5674. $as_echo_n "checking for $ac_word... " >&6; }
  5675. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5676. $as_echo_n "(cached) " >&6
  5677. else
  5678. if test -n "$ac_ct_AR"; then
  5679. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5680. else
  5681. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5682. for as_dir in $PATH
  5683. do
  5684. IFS=$as_save_IFS
  5685. test -z "$as_dir" && as_dir=.
  5686. for ac_exec_ext in '' $ac_executable_extensions; do
  5687. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5688. ac_cv_prog_ac_ct_AR="$ac_prog"
  5689. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5690. break 2
  5691. fi
  5692. done
  5693. done
  5694. IFS=$as_save_IFS
  5695. fi
  5696. fi
  5697. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5698. if test -n "$ac_ct_AR"; then
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5700. $as_echo "$ac_ct_AR" >&6; }
  5701. else
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5703. $as_echo "no" >&6; }
  5704. fi
  5705. test -n "$ac_ct_AR" && break
  5706. done
  5707. if test "x$ac_ct_AR" = x; then
  5708. AR="false"
  5709. else
  5710. case $cross_compiling:$ac_tool_warned in
  5711. yes:)
  5712. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5713. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5714. ac_tool_warned=yes ;;
  5715. esac
  5716. AR=$ac_ct_AR
  5717. fi
  5718. fi
  5719. : ${AR=ar}
  5720. : ${AR_FLAGS=cru}
  5721. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5722. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5723. if ${lt_cv_ar_at_file+:} false; then :
  5724. $as_echo_n "(cached) " >&6
  5725. else
  5726. lt_cv_ar_at_file=no
  5727. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5728. /* end confdefs.h. */
  5729. int
  5730. main ()
  5731. {
  5732. ;
  5733. return 0;
  5734. }
  5735. _ACEOF
  5736. if ac_fn_c_try_compile "$LINENO"; then :
  5737. echo conftest.$ac_objext > conftest.lst
  5738. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5739. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5740. (eval $lt_ar_try) 2>&5
  5741. ac_status=$?
  5742. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5743. test $ac_status = 0; }
  5744. if test "$ac_status" -eq 0; then
  5745. # Ensure the archiver fails upon bogus file names.
  5746. rm -f conftest.$ac_objext libconftest.a
  5747. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5748. (eval $lt_ar_try) 2>&5
  5749. ac_status=$?
  5750. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5751. test $ac_status = 0; }
  5752. if test "$ac_status" -ne 0; then
  5753. lt_cv_ar_at_file=@
  5754. fi
  5755. fi
  5756. rm -f conftest.* libconftest.a
  5757. fi
  5758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5759. fi
  5760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5761. $as_echo "$lt_cv_ar_at_file" >&6; }
  5762. if test "x$lt_cv_ar_at_file" = xno; then
  5763. archiver_list_spec=
  5764. else
  5765. archiver_list_spec=$lt_cv_ar_at_file
  5766. fi
  5767. if test -n "$ac_tool_prefix"; then
  5768. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5769. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5770. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5771. $as_echo_n "checking for $ac_word... " >&6; }
  5772. if ${ac_cv_prog_STRIP+:} false; then :
  5773. $as_echo_n "(cached) " >&6
  5774. else
  5775. if test -n "$STRIP"; then
  5776. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5777. else
  5778. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5779. for as_dir in $PATH
  5780. do
  5781. IFS=$as_save_IFS
  5782. test -z "$as_dir" && as_dir=.
  5783. for ac_exec_ext in '' $ac_executable_extensions; do
  5784. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5785. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5786. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5787. break 2
  5788. fi
  5789. done
  5790. done
  5791. IFS=$as_save_IFS
  5792. fi
  5793. fi
  5794. STRIP=$ac_cv_prog_STRIP
  5795. if test -n "$STRIP"; then
  5796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5797. $as_echo "$STRIP" >&6; }
  5798. else
  5799. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5800. $as_echo "no" >&6; }
  5801. fi
  5802. fi
  5803. if test -z "$ac_cv_prog_STRIP"; then
  5804. ac_ct_STRIP=$STRIP
  5805. # Extract the first word of "strip", so it can be a program name with args.
  5806. set dummy strip; ac_word=$2
  5807. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5808. $as_echo_n "checking for $ac_word... " >&6; }
  5809. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5810. $as_echo_n "(cached) " >&6
  5811. else
  5812. if test -n "$ac_ct_STRIP"; then
  5813. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5814. else
  5815. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5816. for as_dir in $PATH
  5817. do
  5818. IFS=$as_save_IFS
  5819. test -z "$as_dir" && as_dir=.
  5820. for ac_exec_ext in '' $ac_executable_extensions; do
  5821. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5822. ac_cv_prog_ac_ct_STRIP="strip"
  5823. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5824. break 2
  5825. fi
  5826. done
  5827. done
  5828. IFS=$as_save_IFS
  5829. fi
  5830. fi
  5831. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5832. if test -n "$ac_ct_STRIP"; then
  5833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5834. $as_echo "$ac_ct_STRIP" >&6; }
  5835. else
  5836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5837. $as_echo "no" >&6; }
  5838. fi
  5839. if test "x$ac_ct_STRIP" = x; then
  5840. STRIP=":"
  5841. else
  5842. case $cross_compiling:$ac_tool_warned in
  5843. yes:)
  5844. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5845. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5846. ac_tool_warned=yes ;;
  5847. esac
  5848. STRIP=$ac_ct_STRIP
  5849. fi
  5850. else
  5851. STRIP="$ac_cv_prog_STRIP"
  5852. fi
  5853. test -z "$STRIP" && STRIP=:
  5854. if test -n "$ac_tool_prefix"; then
  5855. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5856. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5858. $as_echo_n "checking for $ac_word... " >&6; }
  5859. if ${ac_cv_prog_RANLIB+:} false; then :
  5860. $as_echo_n "(cached) " >&6
  5861. else
  5862. if test -n "$RANLIB"; then
  5863. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5864. else
  5865. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5866. for as_dir in $PATH
  5867. do
  5868. IFS=$as_save_IFS
  5869. test -z "$as_dir" && as_dir=.
  5870. for ac_exec_ext in '' $ac_executable_extensions; do
  5871. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5872. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5873. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5874. break 2
  5875. fi
  5876. done
  5877. done
  5878. IFS=$as_save_IFS
  5879. fi
  5880. fi
  5881. RANLIB=$ac_cv_prog_RANLIB
  5882. if test -n "$RANLIB"; then
  5883. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5884. $as_echo "$RANLIB" >&6; }
  5885. else
  5886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5887. $as_echo "no" >&6; }
  5888. fi
  5889. fi
  5890. if test -z "$ac_cv_prog_RANLIB"; then
  5891. ac_ct_RANLIB=$RANLIB
  5892. # Extract the first word of "ranlib", so it can be a program name with args.
  5893. set dummy ranlib; ac_word=$2
  5894. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5895. $as_echo_n "checking for $ac_word... " >&6; }
  5896. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5897. $as_echo_n "(cached) " >&6
  5898. else
  5899. if test -n "$ac_ct_RANLIB"; then
  5900. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5901. else
  5902. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5903. for as_dir in $PATH
  5904. do
  5905. IFS=$as_save_IFS
  5906. test -z "$as_dir" && as_dir=.
  5907. for ac_exec_ext in '' $ac_executable_extensions; do
  5908. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5909. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5910. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5911. break 2
  5912. fi
  5913. done
  5914. done
  5915. IFS=$as_save_IFS
  5916. fi
  5917. fi
  5918. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5919. if test -n "$ac_ct_RANLIB"; then
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5921. $as_echo "$ac_ct_RANLIB" >&6; }
  5922. else
  5923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5924. $as_echo "no" >&6; }
  5925. fi
  5926. if test "x$ac_ct_RANLIB" = x; then
  5927. RANLIB=":"
  5928. else
  5929. case $cross_compiling:$ac_tool_warned in
  5930. yes:)
  5931. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5932. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5933. ac_tool_warned=yes ;;
  5934. esac
  5935. RANLIB=$ac_ct_RANLIB
  5936. fi
  5937. else
  5938. RANLIB="$ac_cv_prog_RANLIB"
  5939. fi
  5940. test -z "$RANLIB" && RANLIB=:
  5941. # Determine commands to create old-style static archives.
  5942. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5943. old_postinstall_cmds='chmod 644 $oldlib'
  5944. old_postuninstall_cmds=
  5945. if test -n "$RANLIB"; then
  5946. case $host_os in
  5947. openbsd*)
  5948. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5949. ;;
  5950. *)
  5951. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5952. ;;
  5953. esac
  5954. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5955. fi
  5956. case $host_os in
  5957. darwin*)
  5958. lock_old_archive_extraction=yes ;;
  5959. *)
  5960. lock_old_archive_extraction=no ;;
  5961. esac
  5962. # If no C compiler was specified, use CC.
  5963. LTCC=${LTCC-"$CC"}
  5964. # If no C compiler flags were specified, use CFLAGS.
  5965. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5966. # Allow CC to be a program name with arguments.
  5967. compiler=$CC
  5968. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5970. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5971. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5972. $as_echo_n "(cached) " >&6
  5973. else
  5974. # These are sane defaults that work on at least a few old systems.
  5975. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5976. # Character class describing NM global symbol codes.
  5977. symcode='[BCDEGRST]'
  5978. # Regexp to match symbols that can be accessed directly from C.
  5979. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5980. # Define system-specific variables.
  5981. case $host_os in
  5982. aix*)
  5983. symcode='[BCDT]'
  5984. ;;
  5985. cygwin* | mingw* | pw32* | cegcc*)
  5986. symcode='[ABCDGISTW]'
  5987. ;;
  5988. hpux*)
  5989. if test "$host_cpu" = ia64; then
  5990. symcode='[ABCDEGRST]'
  5991. fi
  5992. ;;
  5993. irix* | nonstopux*)
  5994. symcode='[BCDEGRST]'
  5995. ;;
  5996. osf*)
  5997. symcode='[BCDEGQRST]'
  5998. ;;
  5999. solaris*)
  6000. symcode='[BDRT]'
  6001. ;;
  6002. sco3.2v5*)
  6003. symcode='[DT]'
  6004. ;;
  6005. sysv4.2uw2*)
  6006. symcode='[DT]'
  6007. ;;
  6008. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6009. symcode='[ABDT]'
  6010. ;;
  6011. sysv4)
  6012. symcode='[DFNSTU]'
  6013. ;;
  6014. esac
  6015. # If we're using GNU nm, then use its standard symbol codes.
  6016. case `$NM -V 2>&1` in
  6017. *GNU* | *'with BFD'*)
  6018. symcode='[ABCDGIRSTW]' ;;
  6019. esac
  6020. # Transform an extracted symbol line into a proper C declaration.
  6021. # Some systems (esp. on ia64) link data and code symbols differently,
  6022. # so use this general approach.
  6023. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6024. # Transform an extracted symbol line into symbol name and symbol address
  6025. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6026. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
  6027. # Handle CRLF in mingw tool chain
  6028. opt_cr=
  6029. case $build_os in
  6030. mingw*)
  6031. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6032. ;;
  6033. esac
  6034. # Try without a prefix underscore, then with it.
  6035. for ac_symprfx in "" "_"; do
  6036. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6037. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6038. # Write the raw and C identifiers.
  6039. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6040. # Fake it for dumpbin and say T for any non-static function
  6041. # and D for any global variable.
  6042. # Also find C++ and __fastcall symbols from MSVC++,
  6043. # which start with @ or ?.
  6044. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6045. " {last_section=section; section=\$ 3};"\
  6046. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6047. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6048. " \$ 0!~/External *\|/{next};"\
  6049. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6050. " {if(hide[section]) next};"\
  6051. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6052. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6053. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6054. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6055. " ' prfx=^$ac_symprfx"
  6056. else
  6057. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6058. fi
  6059. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6060. # Check to see that the pipe works correctly.
  6061. pipe_works=no
  6062. rm -f conftest*
  6063. cat > conftest.$ac_ext <<_LT_EOF
  6064. #ifdef __cplusplus
  6065. extern "C" {
  6066. #endif
  6067. char nm_test_var;
  6068. void nm_test_func(void);
  6069. void nm_test_func(void){}
  6070. #ifdef __cplusplus
  6071. }
  6072. #endif
  6073. int main(){nm_test_var='a';nm_test_func();return(0);}
  6074. _LT_EOF
  6075. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6076. (eval $ac_compile) 2>&5
  6077. ac_status=$?
  6078. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6079. test $ac_status = 0; }; then
  6080. # Now try to grab the symbols.
  6081. nlist=conftest.nm
  6082. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6083. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6084. ac_status=$?
  6085. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6086. test $ac_status = 0; } && test -s "$nlist"; then
  6087. # Try sorting and uniquifying the output.
  6088. if sort "$nlist" | uniq > "$nlist"T; then
  6089. mv -f "$nlist"T "$nlist"
  6090. else
  6091. rm -f "$nlist"T
  6092. fi
  6093. # Make sure that we snagged all the symbols we need.
  6094. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6095. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6096. cat <<_LT_EOF > conftest.$ac_ext
  6097. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6098. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6099. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6100. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6101. # define LT@&t@_DLSYM_CONST
  6102. #elif defined(__osf__)
  6103. /* This system does not cope well with relocations in const data. */
  6104. # define LT@&t@_DLSYM_CONST
  6105. #else
  6106. # define LT@&t@_DLSYM_CONST const
  6107. #endif
  6108. #ifdef __cplusplus
  6109. extern "C" {
  6110. #endif
  6111. _LT_EOF
  6112. # Now generate the symbol file.
  6113. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6114. cat <<_LT_EOF >> conftest.$ac_ext
  6115. /* The mapping between symbol names and symbols. */
  6116. LT@&t@_DLSYM_CONST struct {
  6117. const char *name;
  6118. void *address;
  6119. }
  6120. lt__PROGRAM__LTX_preloaded_symbols[] =
  6121. {
  6122. { "@PROGRAM@", (void *) 0 },
  6123. _LT_EOF
  6124. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6125. cat <<\_LT_EOF >> conftest.$ac_ext
  6126. {0, (void *) 0}
  6127. };
  6128. /* This works around a problem in FreeBSD linker */
  6129. #ifdef FREEBSD_WORKAROUND
  6130. static const void *lt_preloaded_setup() {
  6131. return lt__PROGRAM__LTX_preloaded_symbols;
  6132. }
  6133. #endif
  6134. #ifdef __cplusplus
  6135. }
  6136. #endif
  6137. _LT_EOF
  6138. # Now try linking the two files.
  6139. mv conftest.$ac_objext conftstm.$ac_objext
  6140. lt_globsym_save_LIBS=$LIBS
  6141. lt_globsym_save_CFLAGS=$CFLAGS
  6142. LIBS="conftstm.$ac_objext"
  6143. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6144. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6145. (eval $ac_link) 2>&5
  6146. ac_status=$?
  6147. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6148. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6149. pipe_works=yes
  6150. fi
  6151. LIBS=$lt_globsym_save_LIBS
  6152. CFLAGS=$lt_globsym_save_CFLAGS
  6153. else
  6154. echo "cannot find nm_test_func in $nlist" >&5
  6155. fi
  6156. else
  6157. echo "cannot find nm_test_var in $nlist" >&5
  6158. fi
  6159. else
  6160. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6161. fi
  6162. else
  6163. echo "$progname: failed program was:" >&5
  6164. cat conftest.$ac_ext >&5
  6165. fi
  6166. rm -rf conftest* conftst*
  6167. # Do not use the global_symbol_pipe unless it works.
  6168. if test "$pipe_works" = yes; then
  6169. break
  6170. else
  6171. lt_cv_sys_global_symbol_pipe=
  6172. fi
  6173. done
  6174. fi
  6175. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6176. lt_cv_sys_global_symbol_to_cdecl=
  6177. fi
  6178. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6180. $as_echo "failed" >&6; }
  6181. else
  6182. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6183. $as_echo "ok" >&6; }
  6184. fi
  6185. # Response file support.
  6186. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6187. nm_file_list_spec='@'
  6188. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6189. nm_file_list_spec='@'
  6190. fi
  6191. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6192. $as_echo_n "checking for sysroot... " >&6; }
  6193. @%:@ Check whether --with-sysroot was given.
  6194. if test "${with_sysroot+set}" = set; then :
  6195. withval=$with_sysroot;
  6196. else
  6197. with_sysroot=no
  6198. fi
  6199. lt_sysroot=
  6200. case ${with_sysroot} in #(
  6201. yes)
  6202. if test "$GCC" = yes; then
  6203. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6204. fi
  6205. ;; #(
  6206. /*)
  6207. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6208. ;; #(
  6209. no|'')
  6210. ;; #(
  6211. *)
  6212. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6213. $as_echo "${with_sysroot}" >&6; }
  6214. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6215. ;;
  6216. esac
  6217. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6218. $as_echo "${lt_sysroot:-no}" >&6; }
  6219. @%:@ Check whether --enable-libtool-lock was given.
  6220. if test "${enable_libtool_lock+set}" = set; then :
  6221. enableval=$enable_libtool_lock;
  6222. fi
  6223. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6224. # Some flags need to be propagated to the compiler or linker for good
  6225. # libtool support.
  6226. case $host in
  6227. ia64-*-hpux*)
  6228. # Find out which ABI we are using.
  6229. echo 'int i;' > conftest.$ac_ext
  6230. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6231. (eval $ac_compile) 2>&5
  6232. ac_status=$?
  6233. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6234. test $ac_status = 0; }; then
  6235. case `/usr/bin/file conftest.$ac_objext` in
  6236. *ELF-32*)
  6237. HPUX_IA64_MODE="32"
  6238. ;;
  6239. *ELF-64*)
  6240. HPUX_IA64_MODE="64"
  6241. ;;
  6242. esac
  6243. fi
  6244. rm -rf conftest*
  6245. ;;
  6246. *-*-irix6*)
  6247. # Find out which ABI we are using.
  6248. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6249. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6250. (eval $ac_compile) 2>&5
  6251. ac_status=$?
  6252. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6253. test $ac_status = 0; }; then
  6254. if test "$lt_cv_prog_gnu_ld" = yes; then
  6255. case `/usr/bin/file conftest.$ac_objext` in
  6256. *32-bit*)
  6257. LD="${LD-ld} -melf32bsmip"
  6258. ;;
  6259. *N32*)
  6260. LD="${LD-ld} -melf32bmipn32"
  6261. ;;
  6262. *64-bit*)
  6263. LD="${LD-ld} -melf64bmip"
  6264. ;;
  6265. esac
  6266. else
  6267. case `/usr/bin/file conftest.$ac_objext` in
  6268. *32-bit*)
  6269. LD="${LD-ld} -32"
  6270. ;;
  6271. *N32*)
  6272. LD="${LD-ld} -n32"
  6273. ;;
  6274. *64-bit*)
  6275. LD="${LD-ld} -64"
  6276. ;;
  6277. esac
  6278. fi
  6279. fi
  6280. rm -rf conftest*
  6281. ;;
  6282. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6283. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6284. # Find out which ABI we are using.
  6285. echo 'int i;' > conftest.$ac_ext
  6286. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6287. (eval $ac_compile) 2>&5
  6288. ac_status=$?
  6289. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6290. test $ac_status = 0; }; then
  6291. case `/usr/bin/file conftest.o` in
  6292. *32-bit*)
  6293. case $host in
  6294. x86_64-*kfreebsd*-gnu)
  6295. LD="${LD-ld} -m elf_i386_fbsd"
  6296. ;;
  6297. x86_64-*linux*)
  6298. LD="${LD-ld} -m elf_i386"
  6299. ;;
  6300. powerpc64le-*linux*)
  6301. LD="${LD-ld} -m elf32lppclinux"
  6302. ;;
  6303. powerpc64-*linux*)
  6304. LD="${LD-ld} -m elf32ppclinux"
  6305. ;;
  6306. s390x-*linux*)
  6307. LD="${LD-ld} -m elf_s390"
  6308. ;;
  6309. sparc64-*linux*)
  6310. LD="${LD-ld} -m elf32_sparc"
  6311. ;;
  6312. esac
  6313. ;;
  6314. *64-bit*)
  6315. case $host in
  6316. x86_64-*kfreebsd*-gnu)
  6317. LD="${LD-ld} -m elf_x86_64_fbsd"
  6318. ;;
  6319. x86_64-*linux*)
  6320. LD="${LD-ld} -m elf_x86_64"
  6321. ;;
  6322. powerpcle-*linux*)
  6323. LD="${LD-ld} -m elf64lppc"
  6324. ;;
  6325. powerpc-*linux*)
  6326. LD="${LD-ld} -m elf64ppc"
  6327. ;;
  6328. s390*-*linux*|s390*-*tpf*)
  6329. LD="${LD-ld} -m elf64_s390"
  6330. ;;
  6331. sparc*-*linux*)
  6332. LD="${LD-ld} -m elf64_sparc"
  6333. ;;
  6334. esac
  6335. ;;
  6336. esac
  6337. fi
  6338. rm -rf conftest*
  6339. ;;
  6340. *-*-sco3.2v5*)
  6341. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6342. SAVE_CFLAGS="$CFLAGS"
  6343. CFLAGS="$CFLAGS -belf"
  6344. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6345. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6346. if ${lt_cv_cc_needs_belf+:} false; then :
  6347. $as_echo_n "(cached) " >&6
  6348. else
  6349. ac_ext=c
  6350. ac_cpp='$CPP $CPPFLAGS'
  6351. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6352. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6353. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6354. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6355. /* end confdefs.h. */
  6356. int
  6357. main ()
  6358. {
  6359. ;
  6360. return 0;
  6361. }
  6362. _ACEOF
  6363. if ac_fn_c_try_link "$LINENO"; then :
  6364. lt_cv_cc_needs_belf=yes
  6365. else
  6366. lt_cv_cc_needs_belf=no
  6367. fi
  6368. rm -f core conftest.err conftest.$ac_objext \
  6369. conftest$ac_exeext conftest.$ac_ext
  6370. ac_ext=c
  6371. ac_cpp='$CPP $CPPFLAGS'
  6372. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6373. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6374. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6375. fi
  6376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6377. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6378. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6379. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6380. CFLAGS="$SAVE_CFLAGS"
  6381. fi
  6382. ;;
  6383. *-*solaris*)
  6384. # Find out which ABI we are using.
  6385. echo 'int i;' > conftest.$ac_ext
  6386. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6387. (eval $ac_compile) 2>&5
  6388. ac_status=$?
  6389. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6390. test $ac_status = 0; }; then
  6391. case `/usr/bin/file conftest.o` in
  6392. *64-bit*)
  6393. case $lt_cv_prog_gnu_ld in
  6394. yes*)
  6395. case $host in
  6396. i?86-*-solaris*)
  6397. LD="${LD-ld} -m elf_x86_64"
  6398. ;;
  6399. sparc*-*-solaris*)
  6400. LD="${LD-ld} -m elf64_sparc"
  6401. ;;
  6402. esac
  6403. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6404. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6405. LD="${LD-ld}_sol2"
  6406. fi
  6407. ;;
  6408. *)
  6409. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6410. LD="${LD-ld} -64"
  6411. fi
  6412. ;;
  6413. esac
  6414. ;;
  6415. esac
  6416. fi
  6417. rm -rf conftest*
  6418. ;;
  6419. esac
  6420. need_locks="$enable_libtool_lock"
  6421. if test -n "$ac_tool_prefix"; then
  6422. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6423. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6424. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6425. $as_echo_n "checking for $ac_word... " >&6; }
  6426. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6427. $as_echo_n "(cached) " >&6
  6428. else
  6429. if test -n "$MANIFEST_TOOL"; then
  6430. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6431. else
  6432. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6433. for as_dir in $PATH
  6434. do
  6435. IFS=$as_save_IFS
  6436. test -z "$as_dir" && as_dir=.
  6437. for ac_exec_ext in '' $ac_executable_extensions; do
  6438. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6439. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6440. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6441. break 2
  6442. fi
  6443. done
  6444. done
  6445. IFS=$as_save_IFS
  6446. fi
  6447. fi
  6448. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6449. if test -n "$MANIFEST_TOOL"; then
  6450. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6451. $as_echo "$MANIFEST_TOOL" >&6; }
  6452. else
  6453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6454. $as_echo "no" >&6; }
  6455. fi
  6456. fi
  6457. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6458. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6459. # Extract the first word of "mt", so it can be a program name with args.
  6460. set dummy mt; ac_word=$2
  6461. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6462. $as_echo_n "checking for $ac_word... " >&6; }
  6463. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6464. $as_echo_n "(cached) " >&6
  6465. else
  6466. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6467. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6468. else
  6469. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6470. for as_dir in $PATH
  6471. do
  6472. IFS=$as_save_IFS
  6473. test -z "$as_dir" && as_dir=.
  6474. for ac_exec_ext in '' $ac_executable_extensions; do
  6475. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6476. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6477. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6478. break 2
  6479. fi
  6480. done
  6481. done
  6482. IFS=$as_save_IFS
  6483. fi
  6484. fi
  6485. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6486. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6487. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6488. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6489. else
  6490. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6491. $as_echo "no" >&6; }
  6492. fi
  6493. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6494. MANIFEST_TOOL=":"
  6495. else
  6496. case $cross_compiling:$ac_tool_warned in
  6497. yes:)
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6499. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6500. ac_tool_warned=yes ;;
  6501. esac
  6502. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6503. fi
  6504. else
  6505. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6506. fi
  6507. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6509. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6510. if ${lt_cv_path_mainfest_tool+:} false; then :
  6511. $as_echo_n "(cached) " >&6
  6512. else
  6513. lt_cv_path_mainfest_tool=no
  6514. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6515. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6516. cat conftest.err >&5
  6517. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6518. lt_cv_path_mainfest_tool=yes
  6519. fi
  6520. rm -f conftest*
  6521. fi
  6522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6523. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6524. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6525. MANIFEST_TOOL=:
  6526. fi
  6527. case $host_os in
  6528. rhapsody* | darwin*)
  6529. if test -n "$ac_tool_prefix"; then
  6530. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6531. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6533. $as_echo_n "checking for $ac_word... " >&6; }
  6534. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6535. $as_echo_n "(cached) " >&6
  6536. else
  6537. if test -n "$DSYMUTIL"; then
  6538. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6539. else
  6540. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6541. for as_dir in $PATH
  6542. do
  6543. IFS=$as_save_IFS
  6544. test -z "$as_dir" && as_dir=.
  6545. for ac_exec_ext in '' $ac_executable_extensions; do
  6546. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6547. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6548. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6549. break 2
  6550. fi
  6551. done
  6552. done
  6553. IFS=$as_save_IFS
  6554. fi
  6555. fi
  6556. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6557. if test -n "$DSYMUTIL"; then
  6558. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6559. $as_echo "$DSYMUTIL" >&6; }
  6560. else
  6561. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6562. $as_echo "no" >&6; }
  6563. fi
  6564. fi
  6565. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6566. ac_ct_DSYMUTIL=$DSYMUTIL
  6567. # Extract the first word of "dsymutil", so it can be a program name with args.
  6568. set dummy dsymutil; ac_word=$2
  6569. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6570. $as_echo_n "checking for $ac_word... " >&6; }
  6571. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6572. $as_echo_n "(cached) " >&6
  6573. else
  6574. if test -n "$ac_ct_DSYMUTIL"; then
  6575. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6576. else
  6577. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6578. for as_dir in $PATH
  6579. do
  6580. IFS=$as_save_IFS
  6581. test -z "$as_dir" && as_dir=.
  6582. for ac_exec_ext in '' $ac_executable_extensions; do
  6583. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6584. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6585. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6586. break 2
  6587. fi
  6588. done
  6589. done
  6590. IFS=$as_save_IFS
  6591. fi
  6592. fi
  6593. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6594. if test -n "$ac_ct_DSYMUTIL"; then
  6595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6596. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6597. else
  6598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6599. $as_echo "no" >&6; }
  6600. fi
  6601. if test "x$ac_ct_DSYMUTIL" = x; then
  6602. DSYMUTIL=":"
  6603. else
  6604. case $cross_compiling:$ac_tool_warned in
  6605. yes:)
  6606. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6607. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6608. ac_tool_warned=yes ;;
  6609. esac
  6610. DSYMUTIL=$ac_ct_DSYMUTIL
  6611. fi
  6612. else
  6613. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6614. fi
  6615. if test -n "$ac_tool_prefix"; then
  6616. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6617. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6618. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6619. $as_echo_n "checking for $ac_word... " >&6; }
  6620. if ${ac_cv_prog_NMEDIT+:} false; then :
  6621. $as_echo_n "(cached) " >&6
  6622. else
  6623. if test -n "$NMEDIT"; then
  6624. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6625. else
  6626. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6627. for as_dir in $PATH
  6628. do
  6629. IFS=$as_save_IFS
  6630. test -z "$as_dir" && as_dir=.
  6631. for ac_exec_ext in '' $ac_executable_extensions; do
  6632. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6633. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6634. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6635. break 2
  6636. fi
  6637. done
  6638. done
  6639. IFS=$as_save_IFS
  6640. fi
  6641. fi
  6642. NMEDIT=$ac_cv_prog_NMEDIT
  6643. if test -n "$NMEDIT"; then
  6644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6645. $as_echo "$NMEDIT" >&6; }
  6646. else
  6647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6648. $as_echo "no" >&6; }
  6649. fi
  6650. fi
  6651. if test -z "$ac_cv_prog_NMEDIT"; then
  6652. ac_ct_NMEDIT=$NMEDIT
  6653. # Extract the first word of "nmedit", so it can be a program name with args.
  6654. set dummy nmedit; ac_word=$2
  6655. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6656. $as_echo_n "checking for $ac_word... " >&6; }
  6657. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6658. $as_echo_n "(cached) " >&6
  6659. else
  6660. if test -n "$ac_ct_NMEDIT"; then
  6661. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6662. else
  6663. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6664. for as_dir in $PATH
  6665. do
  6666. IFS=$as_save_IFS
  6667. test -z "$as_dir" && as_dir=.
  6668. for ac_exec_ext in '' $ac_executable_extensions; do
  6669. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6670. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6671. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6672. break 2
  6673. fi
  6674. done
  6675. done
  6676. IFS=$as_save_IFS
  6677. fi
  6678. fi
  6679. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6680. if test -n "$ac_ct_NMEDIT"; then
  6681. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6682. $as_echo "$ac_ct_NMEDIT" >&6; }
  6683. else
  6684. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6685. $as_echo "no" >&6; }
  6686. fi
  6687. if test "x$ac_ct_NMEDIT" = x; then
  6688. NMEDIT=":"
  6689. else
  6690. case $cross_compiling:$ac_tool_warned in
  6691. yes:)
  6692. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6693. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6694. ac_tool_warned=yes ;;
  6695. esac
  6696. NMEDIT=$ac_ct_NMEDIT
  6697. fi
  6698. else
  6699. NMEDIT="$ac_cv_prog_NMEDIT"
  6700. fi
  6701. if test -n "$ac_tool_prefix"; then
  6702. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6703. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6704. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6705. $as_echo_n "checking for $ac_word... " >&6; }
  6706. if ${ac_cv_prog_LIPO+:} false; then :
  6707. $as_echo_n "(cached) " >&6
  6708. else
  6709. if test -n "$LIPO"; then
  6710. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6711. else
  6712. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6713. for as_dir in $PATH
  6714. do
  6715. IFS=$as_save_IFS
  6716. test -z "$as_dir" && as_dir=.
  6717. for ac_exec_ext in '' $ac_executable_extensions; do
  6718. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6719. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6720. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6721. break 2
  6722. fi
  6723. done
  6724. done
  6725. IFS=$as_save_IFS
  6726. fi
  6727. fi
  6728. LIPO=$ac_cv_prog_LIPO
  6729. if test -n "$LIPO"; then
  6730. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6731. $as_echo "$LIPO" >&6; }
  6732. else
  6733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6734. $as_echo "no" >&6; }
  6735. fi
  6736. fi
  6737. if test -z "$ac_cv_prog_LIPO"; then
  6738. ac_ct_LIPO=$LIPO
  6739. # Extract the first word of "lipo", so it can be a program name with args.
  6740. set dummy lipo; ac_word=$2
  6741. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6742. $as_echo_n "checking for $ac_word... " >&6; }
  6743. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6744. $as_echo_n "(cached) " >&6
  6745. else
  6746. if test -n "$ac_ct_LIPO"; then
  6747. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6748. else
  6749. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6750. for as_dir in $PATH
  6751. do
  6752. IFS=$as_save_IFS
  6753. test -z "$as_dir" && as_dir=.
  6754. for ac_exec_ext in '' $ac_executable_extensions; do
  6755. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6756. ac_cv_prog_ac_ct_LIPO="lipo"
  6757. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6758. break 2
  6759. fi
  6760. done
  6761. done
  6762. IFS=$as_save_IFS
  6763. fi
  6764. fi
  6765. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6766. if test -n "$ac_ct_LIPO"; then
  6767. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6768. $as_echo "$ac_ct_LIPO" >&6; }
  6769. else
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6771. $as_echo "no" >&6; }
  6772. fi
  6773. if test "x$ac_ct_LIPO" = x; then
  6774. LIPO=":"
  6775. else
  6776. case $cross_compiling:$ac_tool_warned in
  6777. yes:)
  6778. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6779. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6780. ac_tool_warned=yes ;;
  6781. esac
  6782. LIPO=$ac_ct_LIPO
  6783. fi
  6784. else
  6785. LIPO="$ac_cv_prog_LIPO"
  6786. fi
  6787. if test -n "$ac_tool_prefix"; then
  6788. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6789. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6791. $as_echo_n "checking for $ac_word... " >&6; }
  6792. if ${ac_cv_prog_OTOOL+:} false; then :
  6793. $as_echo_n "(cached) " >&6
  6794. else
  6795. if test -n "$OTOOL"; then
  6796. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6797. else
  6798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6799. for as_dir in $PATH
  6800. do
  6801. IFS=$as_save_IFS
  6802. test -z "$as_dir" && as_dir=.
  6803. for ac_exec_ext in '' $ac_executable_extensions; do
  6804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6805. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6807. break 2
  6808. fi
  6809. done
  6810. done
  6811. IFS=$as_save_IFS
  6812. fi
  6813. fi
  6814. OTOOL=$ac_cv_prog_OTOOL
  6815. if test -n "$OTOOL"; then
  6816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6817. $as_echo "$OTOOL" >&6; }
  6818. else
  6819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6820. $as_echo "no" >&6; }
  6821. fi
  6822. fi
  6823. if test -z "$ac_cv_prog_OTOOL"; then
  6824. ac_ct_OTOOL=$OTOOL
  6825. # Extract the first word of "otool", so it can be a program name with args.
  6826. set dummy otool; ac_word=$2
  6827. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6828. $as_echo_n "checking for $ac_word... " >&6; }
  6829. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6830. $as_echo_n "(cached) " >&6
  6831. else
  6832. if test -n "$ac_ct_OTOOL"; then
  6833. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6834. else
  6835. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6836. for as_dir in $PATH
  6837. do
  6838. IFS=$as_save_IFS
  6839. test -z "$as_dir" && as_dir=.
  6840. for ac_exec_ext in '' $ac_executable_extensions; do
  6841. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6842. ac_cv_prog_ac_ct_OTOOL="otool"
  6843. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6844. break 2
  6845. fi
  6846. done
  6847. done
  6848. IFS=$as_save_IFS
  6849. fi
  6850. fi
  6851. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6852. if test -n "$ac_ct_OTOOL"; then
  6853. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6854. $as_echo "$ac_ct_OTOOL" >&6; }
  6855. else
  6856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6857. $as_echo "no" >&6; }
  6858. fi
  6859. if test "x$ac_ct_OTOOL" = x; then
  6860. OTOOL=":"
  6861. else
  6862. case $cross_compiling:$ac_tool_warned in
  6863. yes:)
  6864. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6865. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6866. ac_tool_warned=yes ;;
  6867. esac
  6868. OTOOL=$ac_ct_OTOOL
  6869. fi
  6870. else
  6871. OTOOL="$ac_cv_prog_OTOOL"
  6872. fi
  6873. if test -n "$ac_tool_prefix"; then
  6874. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6875. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6877. $as_echo_n "checking for $ac_word... " >&6; }
  6878. if ${ac_cv_prog_OTOOL64+:} false; then :
  6879. $as_echo_n "(cached) " >&6
  6880. else
  6881. if test -n "$OTOOL64"; then
  6882. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6883. else
  6884. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6885. for as_dir in $PATH
  6886. do
  6887. IFS=$as_save_IFS
  6888. test -z "$as_dir" && as_dir=.
  6889. for ac_exec_ext in '' $ac_executable_extensions; do
  6890. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6891. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6892. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6893. break 2
  6894. fi
  6895. done
  6896. done
  6897. IFS=$as_save_IFS
  6898. fi
  6899. fi
  6900. OTOOL64=$ac_cv_prog_OTOOL64
  6901. if test -n "$OTOOL64"; then
  6902. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6903. $as_echo "$OTOOL64" >&6; }
  6904. else
  6905. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6906. $as_echo "no" >&6; }
  6907. fi
  6908. fi
  6909. if test -z "$ac_cv_prog_OTOOL64"; then
  6910. ac_ct_OTOOL64=$OTOOL64
  6911. # Extract the first word of "otool64", so it can be a program name with args.
  6912. set dummy otool64; ac_word=$2
  6913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6914. $as_echo_n "checking for $ac_word... " >&6; }
  6915. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6916. $as_echo_n "(cached) " >&6
  6917. else
  6918. if test -n "$ac_ct_OTOOL64"; then
  6919. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6920. else
  6921. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6922. for as_dir in $PATH
  6923. do
  6924. IFS=$as_save_IFS
  6925. test -z "$as_dir" && as_dir=.
  6926. for ac_exec_ext in '' $ac_executable_extensions; do
  6927. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6928. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6929. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6930. break 2
  6931. fi
  6932. done
  6933. done
  6934. IFS=$as_save_IFS
  6935. fi
  6936. fi
  6937. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6938. if test -n "$ac_ct_OTOOL64"; then
  6939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6940. $as_echo "$ac_ct_OTOOL64" >&6; }
  6941. else
  6942. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6943. $as_echo "no" >&6; }
  6944. fi
  6945. if test "x$ac_ct_OTOOL64" = x; then
  6946. OTOOL64=":"
  6947. else
  6948. case $cross_compiling:$ac_tool_warned in
  6949. yes:)
  6950. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6951. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6952. ac_tool_warned=yes ;;
  6953. esac
  6954. OTOOL64=$ac_ct_OTOOL64
  6955. fi
  6956. else
  6957. OTOOL64="$ac_cv_prog_OTOOL64"
  6958. fi
  6959. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6960. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6961. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6962. $as_echo_n "(cached) " >&6
  6963. else
  6964. lt_cv_apple_cc_single_mod=no
  6965. if test -z "${LT_MULTI_MODULE}"; then
  6966. # By default we will add the -single_module flag. You can override
  6967. # by either setting the environment variable LT_MULTI_MODULE
  6968. # non-empty at configure time, or by adding -multi_module to the
  6969. # link flags.
  6970. rm -rf libconftest.dylib*
  6971. echo "int foo(void){return 1;}" > conftest.c
  6972. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6973. -dynamiclib -Wl,-single_module conftest.c" >&5
  6974. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6975. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6976. _lt_result=$?
  6977. # If there is a non-empty error log, and "single_module"
  6978. # appears in it, assume the flag caused a linker warning
  6979. if test -s conftest.err && $GREP single_module conftest.err; then
  6980. cat conftest.err >&5
  6981. # Otherwise, if the output was created with a 0 exit code from
  6982. # the compiler, it worked.
  6983. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6984. lt_cv_apple_cc_single_mod=yes
  6985. else
  6986. cat conftest.err >&5
  6987. fi
  6988. rm -rf libconftest.dylib*
  6989. rm -f conftest.*
  6990. fi
  6991. fi
  6992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6993. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6994. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6995. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6996. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6997. $as_echo_n "(cached) " >&6
  6998. else
  6999. lt_cv_ld_exported_symbols_list=no
  7000. save_LDFLAGS=$LDFLAGS
  7001. echo "_main" > conftest.sym
  7002. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7003. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7004. /* end confdefs.h. */
  7005. int
  7006. main ()
  7007. {
  7008. ;
  7009. return 0;
  7010. }
  7011. _ACEOF
  7012. if ac_fn_c_try_link "$LINENO"; then :
  7013. lt_cv_ld_exported_symbols_list=yes
  7014. else
  7015. lt_cv_ld_exported_symbols_list=no
  7016. fi
  7017. rm -f core conftest.err conftest.$ac_objext \
  7018. conftest$ac_exeext conftest.$ac_ext
  7019. LDFLAGS="$save_LDFLAGS"
  7020. fi
  7021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7022. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7023. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7024. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7025. if ${lt_cv_ld_force_load+:} false; then :
  7026. $as_echo_n "(cached) " >&6
  7027. else
  7028. lt_cv_ld_force_load=no
  7029. cat > conftest.c << _LT_EOF
  7030. int forced_loaded() { return 2;}
  7031. _LT_EOF
  7032. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7033. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7034. echo "$AR cru libconftest.a conftest.o" >&5
  7035. $AR cru libconftest.a conftest.o 2>&5
  7036. echo "$RANLIB libconftest.a" >&5
  7037. $RANLIB libconftest.a 2>&5
  7038. cat > conftest.c << _LT_EOF
  7039. int main() { return 0;}
  7040. _LT_EOF
  7041. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7042. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7043. _lt_result=$?
  7044. if test -s conftest.err && $GREP force_load conftest.err; then
  7045. cat conftest.err >&5
  7046. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7047. lt_cv_ld_force_load=yes
  7048. else
  7049. cat conftest.err >&5
  7050. fi
  7051. rm -f conftest.err libconftest.a conftest conftest.c
  7052. rm -rf conftest.dSYM
  7053. fi
  7054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7055. $as_echo "$lt_cv_ld_force_load" >&6; }
  7056. case $host_os in
  7057. rhapsody* | darwin1.[012])
  7058. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7059. darwin1.*)
  7060. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7061. darwin*) # darwin 5.x on
  7062. # if running on 10.5 or later, the deployment target defaults
  7063. # to the OS version, if on x86, and 10.4, the deployment
  7064. # target defaults to 10.4. Don't you love it?
  7065. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7066. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7067. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7068. 10.[012]*)
  7069. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7070. 10.*)
  7071. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7072. esac
  7073. ;;
  7074. esac
  7075. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7076. _lt_dar_single_mod='$single_module'
  7077. fi
  7078. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7079. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7080. else
  7081. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7082. fi
  7083. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7084. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7085. else
  7086. _lt_dsymutil=
  7087. fi
  7088. ;;
  7089. esac
  7090. ac_ext=c
  7091. ac_cpp='$CPP $CPPFLAGS'
  7092. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7093. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7094. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  7096. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  7097. # On Suns, sometimes $CPP names a directory.
  7098. if test -n "$CPP" && test -d "$CPP"; then
  7099. CPP=
  7100. fi
  7101. if test -z "$CPP"; then
  7102. if ${ac_cv_prog_CPP+:} false; then :
  7103. $as_echo_n "(cached) " >&6
  7104. else
  7105. # Double quotes because CPP needs to be expanded
  7106. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  7107. do
  7108. ac_preproc_ok=false
  7109. for ac_c_preproc_warn_flag in '' yes
  7110. do
  7111. # Use a header file that comes with gcc, so configuring glibc
  7112. # with a fresh cross-compiler works.
  7113. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7114. # <limits.h> exists even on freestanding compilers.
  7115. # On the NeXT, cc -E runs the code through the compiler's parser,
  7116. # not just through cpp. "Syntax error" is here to catch this case.
  7117. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7118. /* end confdefs.h. */
  7119. @%:@ifdef __STDC__
  7120. @%:@ include <limits.h>
  7121. @%:@else
  7122. @%:@ include <assert.h>
  7123. @%:@endif
  7124. Syntax error
  7125. _ACEOF
  7126. if ac_fn_c_try_cpp "$LINENO"; then :
  7127. else
  7128. # Broken: fails on valid input.
  7129. continue
  7130. fi
  7131. rm -f conftest.err conftest.i conftest.$ac_ext
  7132. # OK, works on sane cases. Now check whether nonexistent headers
  7133. # can be detected and how.
  7134. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7135. /* end confdefs.h. */
  7136. @%:@include <ac_nonexistent.h>
  7137. _ACEOF
  7138. if ac_fn_c_try_cpp "$LINENO"; then :
  7139. # Broken: success on invalid input.
  7140. continue
  7141. else
  7142. # Passes both tests.
  7143. ac_preproc_ok=:
  7144. break
  7145. fi
  7146. rm -f conftest.err conftest.i conftest.$ac_ext
  7147. done
  7148. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7149. rm -f conftest.i conftest.err conftest.$ac_ext
  7150. if $ac_preproc_ok; then :
  7151. break
  7152. fi
  7153. done
  7154. ac_cv_prog_CPP=$CPP
  7155. fi
  7156. CPP=$ac_cv_prog_CPP
  7157. else
  7158. ac_cv_prog_CPP=$CPP
  7159. fi
  7160. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  7161. $as_echo "$CPP" >&6; }
  7162. ac_preproc_ok=false
  7163. for ac_c_preproc_warn_flag in '' yes
  7164. do
  7165. # Use a header file that comes with gcc, so configuring glibc
  7166. # with a fresh cross-compiler works.
  7167. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  7168. # <limits.h> exists even on freestanding compilers.
  7169. # On the NeXT, cc -E runs the code through the compiler's parser,
  7170. # not just through cpp. "Syntax error" is here to catch this case.
  7171. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7172. /* end confdefs.h. */
  7173. @%:@ifdef __STDC__
  7174. @%:@ include <limits.h>
  7175. @%:@else
  7176. @%:@ include <assert.h>
  7177. @%:@endif
  7178. Syntax error
  7179. _ACEOF
  7180. if ac_fn_c_try_cpp "$LINENO"; then :
  7181. else
  7182. # Broken: fails on valid input.
  7183. continue
  7184. fi
  7185. rm -f conftest.err conftest.i conftest.$ac_ext
  7186. # OK, works on sane cases. Now check whether nonexistent headers
  7187. # can be detected and how.
  7188. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7189. /* end confdefs.h. */
  7190. @%:@include <ac_nonexistent.h>
  7191. _ACEOF
  7192. if ac_fn_c_try_cpp "$LINENO"; then :
  7193. # Broken: success on invalid input.
  7194. continue
  7195. else
  7196. # Passes both tests.
  7197. ac_preproc_ok=:
  7198. break
  7199. fi
  7200. rm -f conftest.err conftest.i conftest.$ac_ext
  7201. done
  7202. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  7203. rm -f conftest.i conftest.err conftest.$ac_ext
  7204. if $ac_preproc_ok; then :
  7205. else
  7206. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  7207. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  7208. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  7209. See \`config.log' for more details" "$LINENO" 5; }
  7210. fi
  7211. ac_ext=c
  7212. ac_cpp='$CPP $CPPFLAGS'
  7213. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7214. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7215. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  7217. $as_echo_n "checking for ANSI C header files... " >&6; }
  7218. if ${ac_cv_header_stdc+:} false; then :
  7219. $as_echo_n "(cached) " >&6
  7220. else
  7221. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7222. /* end confdefs.h. */
  7223. #include <stdlib.h>
  7224. #include <stdarg.h>
  7225. #include <string.h>
  7226. #include <float.h>
  7227. int
  7228. main ()
  7229. {
  7230. ;
  7231. return 0;
  7232. }
  7233. _ACEOF
  7234. if ac_fn_c_try_compile "$LINENO"; then :
  7235. ac_cv_header_stdc=yes
  7236. else
  7237. ac_cv_header_stdc=no
  7238. fi
  7239. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  7240. if test $ac_cv_header_stdc = yes; then
  7241. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  7242. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7243. /* end confdefs.h. */
  7244. #include <string.h>
  7245. _ACEOF
  7246. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7247. $EGREP "memchr" >/dev/null 2>&1; then :
  7248. else
  7249. ac_cv_header_stdc=no
  7250. fi
  7251. rm -f conftest*
  7252. fi
  7253. if test $ac_cv_header_stdc = yes; then
  7254. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  7255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7256. /* end confdefs.h. */
  7257. #include <stdlib.h>
  7258. _ACEOF
  7259. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  7260. $EGREP "free" >/dev/null 2>&1; then :
  7261. else
  7262. ac_cv_header_stdc=no
  7263. fi
  7264. rm -f conftest*
  7265. fi
  7266. if test $ac_cv_header_stdc = yes; then
  7267. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  7268. if test "$cross_compiling" = yes; then :
  7269. :
  7270. else
  7271. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7272. /* end confdefs.h. */
  7273. #include <ctype.h>
  7274. #include <stdlib.h>
  7275. #if ((' ' & 0x0FF) == 0x020)
  7276. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  7277. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  7278. #else
  7279. # define ISLOWER(c) \
  7280. (('a' <= (c) && (c) <= 'i') \
  7281. || ('j' <= (c) && (c) <= 'r') \
  7282. || ('s' <= (c) && (c) <= 'z'))
  7283. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  7284. #endif
  7285. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  7286. int
  7287. main ()
  7288. {
  7289. int i;
  7290. for (i = 0; i < 256; i++)
  7291. if (XOR (islower (i), ISLOWER (i))
  7292. || toupper (i) != TOUPPER (i))
  7293. return 2;
  7294. return 0;
  7295. }
  7296. _ACEOF
  7297. if ac_fn_c_try_run "$LINENO"; then :
  7298. else
  7299. ac_cv_header_stdc=no
  7300. fi
  7301. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  7302. conftest.$ac_objext conftest.beam conftest.$ac_ext
  7303. fi
  7304. fi
  7305. fi
  7306. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  7307. $as_echo "$ac_cv_header_stdc" >&6; }
  7308. if test $ac_cv_header_stdc = yes; then
  7309. $as_echo "@%:@define STDC_HEADERS 1" >>confdefs.h
  7310. fi
  7311. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  7312. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  7313. inttypes.h stdint.h unistd.h
  7314. do :
  7315. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  7316. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  7317. "
  7318. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  7319. cat >>confdefs.h <<_ACEOF
  7320. @%:@define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  7321. _ACEOF
  7322. fi
  7323. done
  7324. for ac_header in dlfcn.h
  7325. do :
  7326. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7327. "
  7328. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7329. cat >>confdefs.h <<_ACEOF
  7330. @%:@define HAVE_DLFCN_H 1
  7331. _ACEOF
  7332. fi
  7333. done
  7334. # Set options
  7335. enable_dlopen=no
  7336. enable_win32_dll=no
  7337. @%:@ Check whether --enable-shared was given.
  7338. if test "${enable_shared+set}" = set; then :
  7339. enableval=$enable_shared; p=${PACKAGE-default}
  7340. case $enableval in
  7341. yes) enable_shared=yes ;;
  7342. no) enable_shared=no ;;
  7343. *)
  7344. enable_shared=no
  7345. # Look at the argument we got. We use all the common list separators.
  7346. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7347. for pkg in $enableval; do
  7348. IFS="$lt_save_ifs"
  7349. if test "X$pkg" = "X$p"; then
  7350. enable_shared=yes
  7351. fi
  7352. done
  7353. IFS="$lt_save_ifs"
  7354. ;;
  7355. esac
  7356. else
  7357. enable_shared=yes
  7358. fi
  7359. @%:@ Check whether --enable-static was given.
  7360. if test "${enable_static+set}" = set; then :
  7361. enableval=$enable_static; p=${PACKAGE-default}
  7362. case $enableval in
  7363. yes) enable_static=yes ;;
  7364. no) enable_static=no ;;
  7365. *)
  7366. enable_static=no
  7367. # Look at the argument we got. We use all the common list separators.
  7368. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7369. for pkg in $enableval; do
  7370. IFS="$lt_save_ifs"
  7371. if test "X$pkg" = "X$p"; then
  7372. enable_static=yes
  7373. fi
  7374. done
  7375. IFS="$lt_save_ifs"
  7376. ;;
  7377. esac
  7378. else
  7379. enable_static=yes
  7380. fi
  7381. @%:@ Check whether --with-pic was given.
  7382. if test "${with_pic+set}" = set; then :
  7383. withval=$with_pic; lt_p=${PACKAGE-default}
  7384. case $withval in
  7385. yes|no) pic_mode=$withval ;;
  7386. *)
  7387. pic_mode=default
  7388. # Look at the argument we got. We use all the common list separators.
  7389. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7390. for lt_pkg in $withval; do
  7391. IFS="$lt_save_ifs"
  7392. if test "X$lt_pkg" = "X$lt_p"; then
  7393. pic_mode=yes
  7394. fi
  7395. done
  7396. IFS="$lt_save_ifs"
  7397. ;;
  7398. esac
  7399. else
  7400. pic_mode=default
  7401. fi
  7402. test -z "$pic_mode" && pic_mode=default
  7403. @%:@ Check whether --enable-fast-install was given.
  7404. if test "${enable_fast_install+set}" = set; then :
  7405. enableval=$enable_fast_install; p=${PACKAGE-default}
  7406. case $enableval in
  7407. yes) enable_fast_install=yes ;;
  7408. no) enable_fast_install=no ;;
  7409. *)
  7410. enable_fast_install=no
  7411. # Look at the argument we got. We use all the common list separators.
  7412. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7413. for pkg in $enableval; do
  7414. IFS="$lt_save_ifs"
  7415. if test "X$pkg" = "X$p"; then
  7416. enable_fast_install=yes
  7417. fi
  7418. done
  7419. IFS="$lt_save_ifs"
  7420. ;;
  7421. esac
  7422. else
  7423. enable_fast_install=yes
  7424. fi
  7425. # This can be used to rebuild libtool when needed
  7426. LIBTOOL_DEPS="$ltmain"
  7427. # Always use our own libtool.
  7428. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7429. test -z "$LN_S" && LN_S="ln -s"
  7430. if test -n "${ZSH_VERSION+set}" ; then
  7431. setopt NO_GLOB_SUBST
  7432. fi
  7433. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7434. $as_echo_n "checking for objdir... " >&6; }
  7435. if ${lt_cv_objdir+:} false; then :
  7436. $as_echo_n "(cached) " >&6
  7437. else
  7438. rm -f .libs 2>/dev/null
  7439. mkdir .libs 2>/dev/null
  7440. if test -d .libs; then
  7441. lt_cv_objdir=.libs
  7442. else
  7443. # MS-DOS does not allow filenames that begin with a dot.
  7444. lt_cv_objdir=_libs
  7445. fi
  7446. rmdir .libs 2>/dev/null
  7447. fi
  7448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7449. $as_echo "$lt_cv_objdir" >&6; }
  7450. objdir=$lt_cv_objdir
  7451. cat >>confdefs.h <<_ACEOF
  7452. @%:@define LT_OBJDIR "$lt_cv_objdir/"
  7453. _ACEOF
  7454. case $host_os in
  7455. aix3*)
  7456. # AIX sometimes has problems with the GCC collect2 program. For some
  7457. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7458. # vanish in a puff of smoke.
  7459. if test "X${COLLECT_NAMES+set}" != Xset; then
  7460. COLLECT_NAMES=
  7461. export COLLECT_NAMES
  7462. fi
  7463. ;;
  7464. esac
  7465. # Global variables:
  7466. ofile=libtool
  7467. can_build_shared=yes
  7468. # All known linkers require a `.a' archive for static linking (except MSVC,
  7469. # which needs '.lib').
  7470. libext=a
  7471. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7472. old_CC="$CC"
  7473. old_CFLAGS="$CFLAGS"
  7474. # Set sane defaults for various variables
  7475. test -z "$CC" && CC=cc
  7476. test -z "$LTCC" && LTCC=$CC
  7477. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7478. test -z "$LD" && LD=ld
  7479. test -z "$ac_objext" && ac_objext=o
  7480. for cc_temp in $compiler""; do
  7481. case $cc_temp in
  7482. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7483. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7484. \-*) ;;
  7485. *) break;;
  7486. esac
  7487. done
  7488. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7489. # Only perform the check for file, if the check method requires it
  7490. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7491. case $deplibs_check_method in
  7492. file_magic*)
  7493. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7495. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7496. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7497. $as_echo_n "(cached) " >&6
  7498. else
  7499. case $MAGIC_CMD in
  7500. [\\/*] | ?:[\\/]*)
  7501. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7502. ;;
  7503. *)
  7504. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7505. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7506. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7507. for ac_dir in $ac_dummy; do
  7508. IFS="$lt_save_ifs"
  7509. test -z "$ac_dir" && ac_dir=.
  7510. if test -f $ac_dir/${ac_tool_prefix}file; then
  7511. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7512. if test -n "$file_magic_test_file"; then
  7513. case $deplibs_check_method in
  7514. "file_magic "*)
  7515. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7516. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7517. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7518. $EGREP "$file_magic_regex" > /dev/null; then
  7519. :
  7520. else
  7521. cat <<_LT_EOF 1>&2
  7522. *** Warning: the command libtool uses to detect shared libraries,
  7523. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7524. *** The result is that libtool may fail to recognize shared libraries
  7525. *** as such. This will affect the creation of libtool libraries that
  7526. *** depend on shared libraries, but programs linked with such libtool
  7527. *** libraries will work regardless of this problem. Nevertheless, you
  7528. *** may want to report the problem to your system manager and/or to
  7529. *** bug-libtool@gnu.org
  7530. _LT_EOF
  7531. fi ;;
  7532. esac
  7533. fi
  7534. break
  7535. fi
  7536. done
  7537. IFS="$lt_save_ifs"
  7538. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7539. ;;
  7540. esac
  7541. fi
  7542. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7543. if test -n "$MAGIC_CMD"; then
  7544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7545. $as_echo "$MAGIC_CMD" >&6; }
  7546. else
  7547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7548. $as_echo "no" >&6; }
  7549. fi
  7550. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7551. if test -n "$ac_tool_prefix"; then
  7552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7553. $as_echo_n "checking for file... " >&6; }
  7554. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7555. $as_echo_n "(cached) " >&6
  7556. else
  7557. case $MAGIC_CMD in
  7558. [\\/*] | ?:[\\/]*)
  7559. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7560. ;;
  7561. *)
  7562. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7563. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7564. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7565. for ac_dir in $ac_dummy; do
  7566. IFS="$lt_save_ifs"
  7567. test -z "$ac_dir" && ac_dir=.
  7568. if test -f $ac_dir/file; then
  7569. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7570. if test -n "$file_magic_test_file"; then
  7571. case $deplibs_check_method in
  7572. "file_magic "*)
  7573. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7574. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7575. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7576. $EGREP "$file_magic_regex" > /dev/null; then
  7577. :
  7578. else
  7579. cat <<_LT_EOF 1>&2
  7580. *** Warning: the command libtool uses to detect shared libraries,
  7581. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7582. *** The result is that libtool may fail to recognize shared libraries
  7583. *** as such. This will affect the creation of libtool libraries that
  7584. *** depend on shared libraries, but programs linked with such libtool
  7585. *** libraries will work regardless of this problem. Nevertheless, you
  7586. *** may want to report the problem to your system manager and/or to
  7587. *** bug-libtool@gnu.org
  7588. _LT_EOF
  7589. fi ;;
  7590. esac
  7591. fi
  7592. break
  7593. fi
  7594. done
  7595. IFS="$lt_save_ifs"
  7596. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7597. ;;
  7598. esac
  7599. fi
  7600. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7601. if test -n "$MAGIC_CMD"; then
  7602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7603. $as_echo "$MAGIC_CMD" >&6; }
  7604. else
  7605. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7606. $as_echo "no" >&6; }
  7607. fi
  7608. else
  7609. MAGIC_CMD=:
  7610. fi
  7611. fi
  7612. fi
  7613. ;;
  7614. esac
  7615. # Use C for the default configuration in the libtool script
  7616. lt_save_CC="$CC"
  7617. ac_ext=c
  7618. ac_cpp='$CPP $CPPFLAGS'
  7619. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7620. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7621. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7622. # Source file extension for C test sources.
  7623. ac_ext=c
  7624. # Object file extension for compiled C test sources.
  7625. objext=o
  7626. objext=$objext
  7627. # Code to be used in simple compile tests
  7628. lt_simple_compile_test_code="int some_variable = 0;"
  7629. # Code to be used in simple link tests
  7630. lt_simple_link_test_code='int main(){return(0);}'
  7631. # If no C compiler was specified, use CC.
  7632. LTCC=${LTCC-"$CC"}
  7633. # If no C compiler flags were specified, use CFLAGS.
  7634. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7635. # Allow CC to be a program name with arguments.
  7636. compiler=$CC
  7637. # Save the default compiler, since it gets overwritten when the other
  7638. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7639. compiler_DEFAULT=$CC
  7640. # save warnings/boilerplate of simple test code
  7641. ac_outfile=conftest.$ac_objext
  7642. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7643. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7644. _lt_compiler_boilerplate=`cat conftest.err`
  7645. $RM conftest*
  7646. ac_outfile=conftest.$ac_objext
  7647. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7648. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7649. _lt_linker_boilerplate=`cat conftest.err`
  7650. $RM -r conftest*
  7651. ## CAVEAT EMPTOR:
  7652. ## There is no encapsulation within the following macros, do not change
  7653. ## the running order or otherwise move them around unless you know exactly
  7654. ## what you are doing...
  7655. if test -n "$compiler"; then
  7656. lt_prog_compiler_no_builtin_flag=
  7657. if test "$GCC" = yes; then
  7658. case $cc_basename in
  7659. nvcc*)
  7660. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7661. *)
  7662. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7663. esac
  7664. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7665. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7666. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7667. $as_echo_n "(cached) " >&6
  7668. else
  7669. lt_cv_prog_compiler_rtti_exceptions=no
  7670. ac_outfile=conftest.$ac_objext
  7671. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7672. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7673. # Insert the option either (1) after the last *FLAGS variable, or
  7674. # (2) before a word containing "conftest.", or (3) at the end.
  7675. # Note that $ac_compile itself does not contain backslashes and begins
  7676. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7677. # The option is referenced via a variable to avoid confusing sed.
  7678. lt_compile=`echo "$ac_compile" | $SED \
  7679. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7680. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7681. -e 's:$: $lt_compiler_flag:'`
  7682. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7683. (eval "$lt_compile" 2>conftest.err)
  7684. ac_status=$?
  7685. cat conftest.err >&5
  7686. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7687. if (exit $ac_status) && test -s "$ac_outfile"; then
  7688. # The compiler can only warn and ignore the option if not recognized
  7689. # So say no if there are warnings other than the usual output.
  7690. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7691. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7692. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7693. lt_cv_prog_compiler_rtti_exceptions=yes
  7694. fi
  7695. fi
  7696. $RM conftest*
  7697. fi
  7698. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7699. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7700. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7701. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7702. else
  7703. :
  7704. fi
  7705. fi
  7706. lt_prog_compiler_wl=
  7707. lt_prog_compiler_pic=
  7708. lt_prog_compiler_static=
  7709. if test "$GCC" = yes; then
  7710. lt_prog_compiler_wl='-Wl,'
  7711. lt_prog_compiler_static='-static'
  7712. case $host_os in
  7713. aix*)
  7714. # All AIX code is PIC.
  7715. if test "$host_cpu" = ia64; then
  7716. # AIX 5 now supports IA64 processor
  7717. lt_prog_compiler_static='-Bstatic'
  7718. fi
  7719. ;;
  7720. amigaos*)
  7721. case $host_cpu in
  7722. powerpc)
  7723. # see comment about AmigaOS4 .so support
  7724. lt_prog_compiler_pic='-fPIC'
  7725. ;;
  7726. m68k)
  7727. # FIXME: we need at least 68020 code to build shared libraries, but
  7728. # adding the `-m68020' flag to GCC prevents building anything better,
  7729. # like `-m68040'.
  7730. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7731. ;;
  7732. esac
  7733. ;;
  7734. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7735. # PIC is the default for these OSes.
  7736. ;;
  7737. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7738. # This hack is so that the source file can tell whether it is being
  7739. # built for inclusion in a dll (and should export symbols for example).
  7740. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7741. # (--disable-auto-import) libraries
  7742. lt_prog_compiler_pic='-DDLL_EXPORT'
  7743. ;;
  7744. darwin* | rhapsody*)
  7745. # PIC is the default on this platform
  7746. # Common symbols not allowed in MH_DYLIB files
  7747. lt_prog_compiler_pic='-fno-common'
  7748. ;;
  7749. haiku*)
  7750. # PIC is the default for Haiku.
  7751. # The "-static" flag exists, but is broken.
  7752. lt_prog_compiler_static=
  7753. ;;
  7754. hpux*)
  7755. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7756. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7757. # sets the default TLS model and affects inlining.
  7758. case $host_cpu in
  7759. hppa*64*)
  7760. # +Z the default
  7761. ;;
  7762. *)
  7763. lt_prog_compiler_pic='-fPIC'
  7764. ;;
  7765. esac
  7766. ;;
  7767. interix[3-9]*)
  7768. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7769. # Instead, we relocate shared libraries at runtime.
  7770. ;;
  7771. msdosdjgpp*)
  7772. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7773. # on systems that don't support them.
  7774. lt_prog_compiler_can_build_shared=no
  7775. enable_shared=no
  7776. ;;
  7777. *nto* | *qnx*)
  7778. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7779. # it will coredump.
  7780. lt_prog_compiler_pic='-fPIC -shared'
  7781. ;;
  7782. sysv4*MP*)
  7783. if test -d /usr/nec; then
  7784. lt_prog_compiler_pic=-Kconform_pic
  7785. fi
  7786. ;;
  7787. *)
  7788. lt_prog_compiler_pic='-fPIC'
  7789. ;;
  7790. esac
  7791. case $cc_basename in
  7792. nvcc*) # Cuda Compiler Driver 2.2
  7793. lt_prog_compiler_wl='-Xlinker '
  7794. if test -n "$lt_prog_compiler_pic"; then
  7795. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7796. fi
  7797. ;;
  7798. esac
  7799. else
  7800. # PORTME Check for flag to pass linker flags through the system compiler.
  7801. case $host_os in
  7802. aix*)
  7803. lt_prog_compiler_wl='-Wl,'
  7804. if test "$host_cpu" = ia64; then
  7805. # AIX 5 now supports IA64 processor
  7806. lt_prog_compiler_static='-Bstatic'
  7807. else
  7808. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7809. fi
  7810. ;;
  7811. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7812. # This hack is so that the source file can tell whether it is being
  7813. # built for inclusion in a dll (and should export symbols for example).
  7814. lt_prog_compiler_pic='-DDLL_EXPORT'
  7815. ;;
  7816. hpux9* | hpux10* | hpux11*)
  7817. lt_prog_compiler_wl='-Wl,'
  7818. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7819. # not for PA HP-UX.
  7820. case $host_cpu in
  7821. hppa*64*|ia64*)
  7822. # +Z the default
  7823. ;;
  7824. *)
  7825. lt_prog_compiler_pic='+Z'
  7826. ;;
  7827. esac
  7828. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7829. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7830. ;;
  7831. irix5* | irix6* | nonstopux*)
  7832. lt_prog_compiler_wl='-Wl,'
  7833. # PIC (with -KPIC) is the default.
  7834. lt_prog_compiler_static='-non_shared'
  7835. ;;
  7836. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7837. case $cc_basename in
  7838. # old Intel for x86_64 which still supported -KPIC.
  7839. ecc*)
  7840. lt_prog_compiler_wl='-Wl,'
  7841. lt_prog_compiler_pic='-KPIC'
  7842. lt_prog_compiler_static='-static'
  7843. ;;
  7844. # icc used to be incompatible with GCC.
  7845. # ICC 10 doesn't accept -KPIC any more.
  7846. icc* | ifort*)
  7847. lt_prog_compiler_wl='-Wl,'
  7848. lt_prog_compiler_pic='-fPIC'
  7849. lt_prog_compiler_static='-static'
  7850. ;;
  7851. # Lahey Fortran 8.1.
  7852. lf95*)
  7853. lt_prog_compiler_wl='-Wl,'
  7854. lt_prog_compiler_pic='--shared'
  7855. lt_prog_compiler_static='--static'
  7856. ;;
  7857. nagfor*)
  7858. # NAG Fortran compiler
  7859. lt_prog_compiler_wl='-Wl,-Wl,,'
  7860. lt_prog_compiler_pic='-PIC'
  7861. lt_prog_compiler_static='-Bstatic'
  7862. ;;
  7863. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7864. # Portland Group compilers (*not* the Pentium gcc compiler,
  7865. # which looks to be a dead project)
  7866. lt_prog_compiler_wl='-Wl,'
  7867. lt_prog_compiler_pic='-fpic'
  7868. lt_prog_compiler_static='-Bstatic'
  7869. ;;
  7870. ccc*)
  7871. lt_prog_compiler_wl='-Wl,'
  7872. # All Alpha code is PIC.
  7873. lt_prog_compiler_static='-non_shared'
  7874. ;;
  7875. xl* | bgxl* | bgf* | mpixl*)
  7876. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7877. lt_prog_compiler_wl='-Wl,'
  7878. lt_prog_compiler_pic='-qpic'
  7879. lt_prog_compiler_static='-qstaticlink'
  7880. ;;
  7881. *)
  7882. case `$CC -V 2>&1 | sed 5q` in
  7883. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7884. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7885. lt_prog_compiler_pic='-KPIC'
  7886. lt_prog_compiler_static='-Bstatic'
  7887. lt_prog_compiler_wl=''
  7888. ;;
  7889. *Sun\ F* | *Sun*Fortran*)
  7890. lt_prog_compiler_pic='-KPIC'
  7891. lt_prog_compiler_static='-Bstatic'
  7892. lt_prog_compiler_wl='-Qoption ld '
  7893. ;;
  7894. *Sun\ C*)
  7895. # Sun C 5.9
  7896. lt_prog_compiler_pic='-KPIC'
  7897. lt_prog_compiler_static='-Bstatic'
  7898. lt_prog_compiler_wl='-Wl,'
  7899. ;;
  7900. *Intel*\ [CF]*Compiler*)
  7901. lt_prog_compiler_wl='-Wl,'
  7902. lt_prog_compiler_pic='-fPIC'
  7903. lt_prog_compiler_static='-static'
  7904. ;;
  7905. *Portland\ Group*)
  7906. lt_prog_compiler_wl='-Wl,'
  7907. lt_prog_compiler_pic='-fpic'
  7908. lt_prog_compiler_static='-Bstatic'
  7909. ;;
  7910. esac
  7911. ;;
  7912. esac
  7913. ;;
  7914. newsos6)
  7915. lt_prog_compiler_pic='-KPIC'
  7916. lt_prog_compiler_static='-Bstatic'
  7917. ;;
  7918. *nto* | *qnx*)
  7919. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7920. # it will coredump.
  7921. lt_prog_compiler_pic='-fPIC -shared'
  7922. ;;
  7923. osf3* | osf4* | osf5*)
  7924. lt_prog_compiler_wl='-Wl,'
  7925. # All OSF/1 code is PIC.
  7926. lt_prog_compiler_static='-non_shared'
  7927. ;;
  7928. rdos*)
  7929. lt_prog_compiler_static='-non_shared'
  7930. ;;
  7931. solaris*)
  7932. lt_prog_compiler_pic='-KPIC'
  7933. lt_prog_compiler_static='-Bstatic'
  7934. case $cc_basename in
  7935. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7936. lt_prog_compiler_wl='-Qoption ld ';;
  7937. *)
  7938. lt_prog_compiler_wl='-Wl,';;
  7939. esac
  7940. ;;
  7941. sunos4*)
  7942. lt_prog_compiler_wl='-Qoption ld '
  7943. lt_prog_compiler_pic='-PIC'
  7944. lt_prog_compiler_static='-Bstatic'
  7945. ;;
  7946. sysv4 | sysv4.2uw2* | sysv4.3*)
  7947. lt_prog_compiler_wl='-Wl,'
  7948. lt_prog_compiler_pic='-KPIC'
  7949. lt_prog_compiler_static='-Bstatic'
  7950. ;;
  7951. sysv4*MP*)
  7952. if test -d /usr/nec ;then
  7953. lt_prog_compiler_pic='-Kconform_pic'
  7954. lt_prog_compiler_static='-Bstatic'
  7955. fi
  7956. ;;
  7957. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7958. lt_prog_compiler_wl='-Wl,'
  7959. lt_prog_compiler_pic='-KPIC'
  7960. lt_prog_compiler_static='-Bstatic'
  7961. ;;
  7962. unicos*)
  7963. lt_prog_compiler_wl='-Wl,'
  7964. lt_prog_compiler_can_build_shared=no
  7965. ;;
  7966. uts4*)
  7967. lt_prog_compiler_pic='-pic'
  7968. lt_prog_compiler_static='-Bstatic'
  7969. ;;
  7970. *)
  7971. lt_prog_compiler_can_build_shared=no
  7972. ;;
  7973. esac
  7974. fi
  7975. case $host_os in
  7976. # For platforms which do not support PIC, -DPIC is meaningless:
  7977. *djgpp*)
  7978. lt_prog_compiler_pic=
  7979. ;;
  7980. *)
  7981. lt_prog_compiler_pic="$lt_prog_compiler_pic@&t@ -DPIC"
  7982. ;;
  7983. esac
  7984. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7985. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7986. if ${lt_cv_prog_compiler_pic+:} false; then :
  7987. $as_echo_n "(cached) " >&6
  7988. else
  7989. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7990. fi
  7991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7992. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7993. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7994. #
  7995. # Check to make sure the PIC flag actually works.
  7996. #
  7997. if test -n "$lt_prog_compiler_pic"; then
  7998. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7999. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8000. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8001. $as_echo_n "(cached) " >&6
  8002. else
  8003. lt_cv_prog_compiler_pic_works=no
  8004. ac_outfile=conftest.$ac_objext
  8005. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8006. lt_compiler_flag="$lt_prog_compiler_pic@&t@ -DPIC"
  8007. # Insert the option either (1) after the last *FLAGS variable, or
  8008. # (2) before a word containing "conftest.", or (3) at the end.
  8009. # Note that $ac_compile itself does not contain backslashes and begins
  8010. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8011. # The option is referenced via a variable to avoid confusing sed.
  8012. lt_compile=`echo "$ac_compile" | $SED \
  8013. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8014. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8015. -e 's:$: $lt_compiler_flag:'`
  8016. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8017. (eval "$lt_compile" 2>conftest.err)
  8018. ac_status=$?
  8019. cat conftest.err >&5
  8020. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8021. if (exit $ac_status) && test -s "$ac_outfile"; then
  8022. # The compiler can only warn and ignore the option if not recognized
  8023. # So say no if there are warnings other than the usual output.
  8024. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8025. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8026. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8027. lt_cv_prog_compiler_pic_works=yes
  8028. fi
  8029. fi
  8030. $RM conftest*
  8031. fi
  8032. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8033. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8034. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8035. case $lt_prog_compiler_pic in
  8036. "" | " "*) ;;
  8037. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8038. esac
  8039. else
  8040. lt_prog_compiler_pic=
  8041. lt_prog_compiler_can_build_shared=no
  8042. fi
  8043. fi
  8044. #
  8045. # Check to make sure the static flag actually works.
  8046. #
  8047. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8048. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8049. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8050. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8051. $as_echo_n "(cached) " >&6
  8052. else
  8053. lt_cv_prog_compiler_static_works=no
  8054. save_LDFLAGS="$LDFLAGS"
  8055. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8056. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8057. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8058. # The linker can only warn and ignore the option if not recognized
  8059. # So say no if there are warnings
  8060. if test -s conftest.err; then
  8061. # Append any errors to the config.log.
  8062. cat conftest.err 1>&5
  8063. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8064. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8065. if diff conftest.exp conftest.er2 >/dev/null; then
  8066. lt_cv_prog_compiler_static_works=yes
  8067. fi
  8068. else
  8069. lt_cv_prog_compiler_static_works=yes
  8070. fi
  8071. fi
  8072. $RM -r conftest*
  8073. LDFLAGS="$save_LDFLAGS"
  8074. fi
  8075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8076. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8077. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8078. :
  8079. else
  8080. lt_prog_compiler_static=
  8081. fi
  8082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8083. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8084. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8085. $as_echo_n "(cached) " >&6
  8086. else
  8087. lt_cv_prog_compiler_c_o=no
  8088. $RM -r conftest 2>/dev/null
  8089. mkdir conftest
  8090. cd conftest
  8091. mkdir out
  8092. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8093. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8094. # Insert the option either (1) after the last *FLAGS variable, or
  8095. # (2) before a word containing "conftest.", or (3) at the end.
  8096. # Note that $ac_compile itself does not contain backslashes and begins
  8097. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8098. lt_compile=`echo "$ac_compile" | $SED \
  8099. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8100. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8101. -e 's:$: $lt_compiler_flag:'`
  8102. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8103. (eval "$lt_compile" 2>out/conftest.err)
  8104. ac_status=$?
  8105. cat out/conftest.err >&5
  8106. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8107. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8108. then
  8109. # The compiler can only warn and ignore the option if not recognized
  8110. # So say no if there are warnings
  8111. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8112. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8113. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8114. lt_cv_prog_compiler_c_o=yes
  8115. fi
  8116. fi
  8117. chmod u+w . 2>&5
  8118. $RM conftest*
  8119. # SGI C++ compiler will create directory out/ii_files/ for
  8120. # template instantiation
  8121. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8122. $RM out/* && rmdir out
  8123. cd ..
  8124. $RM -r conftest
  8125. $RM conftest*
  8126. fi
  8127. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8128. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8130. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8131. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8132. $as_echo_n "(cached) " >&6
  8133. else
  8134. lt_cv_prog_compiler_c_o=no
  8135. $RM -r conftest 2>/dev/null
  8136. mkdir conftest
  8137. cd conftest
  8138. mkdir out
  8139. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8140. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8141. # Insert the option either (1) after the last *FLAGS variable, or
  8142. # (2) before a word containing "conftest.", or (3) at the end.
  8143. # Note that $ac_compile itself does not contain backslashes and begins
  8144. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8145. lt_compile=`echo "$ac_compile" | $SED \
  8146. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8147. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8148. -e 's:$: $lt_compiler_flag:'`
  8149. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8150. (eval "$lt_compile" 2>out/conftest.err)
  8151. ac_status=$?
  8152. cat out/conftest.err >&5
  8153. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8154. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8155. then
  8156. # The compiler can only warn and ignore the option if not recognized
  8157. # So say no if there are warnings
  8158. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8159. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8160. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8161. lt_cv_prog_compiler_c_o=yes
  8162. fi
  8163. fi
  8164. chmod u+w . 2>&5
  8165. $RM conftest*
  8166. # SGI C++ compiler will create directory out/ii_files/ for
  8167. # template instantiation
  8168. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8169. $RM out/* && rmdir out
  8170. cd ..
  8171. $RM -r conftest
  8172. $RM conftest*
  8173. fi
  8174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8175. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8176. hard_links="nottested"
  8177. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8178. # do not overwrite the value of need_locks provided by the user
  8179. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8180. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8181. hard_links=yes
  8182. $RM conftest*
  8183. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8184. touch conftest.a
  8185. ln conftest.a conftest.b 2>&5 || hard_links=no
  8186. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8188. $as_echo "$hard_links" >&6; }
  8189. if test "$hard_links" = no; then
  8190. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8191. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8192. need_locks=warn
  8193. fi
  8194. else
  8195. need_locks=no
  8196. fi
  8197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8198. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8199. runpath_var=
  8200. allow_undefined_flag=
  8201. always_export_symbols=no
  8202. archive_cmds=
  8203. archive_expsym_cmds=
  8204. compiler_needs_object=no
  8205. enable_shared_with_static_runtimes=no
  8206. export_dynamic_flag_spec=
  8207. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8208. hardcode_automatic=no
  8209. hardcode_direct=no
  8210. hardcode_direct_absolute=no
  8211. hardcode_libdir_flag_spec=
  8212. hardcode_libdir_separator=
  8213. hardcode_minus_L=no
  8214. hardcode_shlibpath_var=unsupported
  8215. inherit_rpath=no
  8216. link_all_deplibs=unknown
  8217. module_cmds=
  8218. module_expsym_cmds=
  8219. old_archive_from_new_cmds=
  8220. old_archive_from_expsyms_cmds=
  8221. thread_safe_flag_spec=
  8222. whole_archive_flag_spec=
  8223. # include_expsyms should be a list of space-separated symbols to be *always*
  8224. # included in the symbol list
  8225. include_expsyms=
  8226. # exclude_expsyms can be an extended regexp of symbols to exclude
  8227. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8228. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8229. # as well as any symbol that contains `d'.
  8230. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8231. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8232. # platforms (ab)use it in PIC code, but their linkers get confused if
  8233. # the symbol is explicitly referenced. Since portable code cannot
  8234. # rely on this symbol name, it's probably fine to never include it in
  8235. # preloaded symbol tables.
  8236. # Exclude shared library initialization/finalization symbols.
  8237. extract_expsyms_cmds=
  8238. case $host_os in
  8239. cygwin* | mingw* | pw32* | cegcc*)
  8240. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8241. # When not using gcc, we currently assume that we are using
  8242. # Microsoft Visual C++.
  8243. if test "$GCC" != yes; then
  8244. with_gnu_ld=no
  8245. fi
  8246. ;;
  8247. interix*)
  8248. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8249. with_gnu_ld=yes
  8250. ;;
  8251. openbsd*)
  8252. with_gnu_ld=no
  8253. ;;
  8254. esac
  8255. ld_shlibs=yes
  8256. # On some targets, GNU ld is compatible enough with the native linker
  8257. # that we're better off using the native interface for both.
  8258. lt_use_gnu_ld_interface=no
  8259. if test "$with_gnu_ld" = yes; then
  8260. case $host_os in
  8261. aix*)
  8262. # The AIX port of GNU ld has always aspired to compatibility
  8263. # with the native linker. However, as the warning in the GNU ld
  8264. # block says, versions before 2.19.5* couldn't really create working
  8265. # shared libraries, regardless of the interface used.
  8266. case `$LD -v 2>&1` in
  8267. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8268. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8269. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8270. *)
  8271. lt_use_gnu_ld_interface=yes
  8272. ;;
  8273. esac
  8274. ;;
  8275. *)
  8276. lt_use_gnu_ld_interface=yes
  8277. ;;
  8278. esac
  8279. fi
  8280. if test "$lt_use_gnu_ld_interface" = yes; then
  8281. # If archive_cmds runs LD, not CC, wlarc should be empty
  8282. wlarc='${wl}'
  8283. # Set some defaults for GNU ld with shared library support. These
  8284. # are reset later if shared libraries are not supported. Putting them
  8285. # here allows them to be overridden if necessary.
  8286. runpath_var=LD_RUN_PATH
  8287. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8288. export_dynamic_flag_spec='${wl}--export-dynamic'
  8289. # ancient GNU ld didn't support --whole-archive et. al.
  8290. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8291. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8292. else
  8293. whole_archive_flag_spec=
  8294. fi
  8295. supports_anon_versioning=no
  8296. case `$LD -v 2>&1` in
  8297. *GNU\ gold*) supports_anon_versioning=yes ;;
  8298. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8299. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8300. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8301. *\ 2.11.*) ;; # other 2.11 versions
  8302. *) supports_anon_versioning=yes ;;
  8303. esac
  8304. # See if GNU ld supports shared libraries.
  8305. case $host_os in
  8306. aix[3-9]*)
  8307. # On AIX/PPC, the GNU linker is very broken
  8308. if test "$host_cpu" != ia64; then
  8309. ld_shlibs=no
  8310. cat <<_LT_EOF 1>&2
  8311. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8312. *** to be unable to reliably create shared libraries on AIX.
  8313. *** Therefore, libtool is disabling shared libraries support. If you
  8314. *** really care for shared libraries, you may want to install binutils
  8315. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8316. *** You will then need to restart the configuration process.
  8317. _LT_EOF
  8318. fi
  8319. ;;
  8320. amigaos*)
  8321. case $host_cpu in
  8322. powerpc)
  8323. # see comment about AmigaOS4 .so support
  8324. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8325. archive_expsym_cmds=''
  8326. ;;
  8327. m68k)
  8328. 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)'
  8329. hardcode_libdir_flag_spec='-L$libdir'
  8330. hardcode_minus_L=yes
  8331. ;;
  8332. esac
  8333. ;;
  8334. beos*)
  8335. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8336. allow_undefined_flag=unsupported
  8337. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8338. # support --undefined. This deserves some investigation. FIXME
  8339. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8340. else
  8341. ld_shlibs=no
  8342. fi
  8343. ;;
  8344. cygwin* | mingw* | pw32* | cegcc*)
  8345. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8346. # as there is no search path for DLLs.
  8347. hardcode_libdir_flag_spec='-L$libdir'
  8348. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8349. allow_undefined_flag=unsupported
  8350. always_export_symbols=no
  8351. enable_shared_with_static_runtimes=yes
  8352. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8353. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8354. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8355. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8356. # If the export-symbols file already is a .def file (1st line
  8357. # is EXPORTS), use it as is; otherwise, prepend...
  8358. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8359. cp $export_symbols $output_objdir/$soname.def;
  8360. else
  8361. echo EXPORTS > $output_objdir/$soname.def;
  8362. cat $export_symbols >> $output_objdir/$soname.def;
  8363. fi~
  8364. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8365. else
  8366. ld_shlibs=no
  8367. fi
  8368. ;;
  8369. haiku*)
  8370. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8371. link_all_deplibs=yes
  8372. ;;
  8373. interix[3-9]*)
  8374. hardcode_direct=no
  8375. hardcode_shlibpath_var=no
  8376. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8377. export_dynamic_flag_spec='${wl}-E'
  8378. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8379. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8380. # default) and relocated if they conflict, which is a slow very memory
  8381. # consuming and fragmenting process. To avoid this, we pick a random,
  8382. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8383. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8384. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8385. archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8386. ;;
  8387. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8388. tmp_diet=no
  8389. if test "$host_os" = linux-dietlibc; then
  8390. case $cc_basename in
  8391. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8392. esac
  8393. fi
  8394. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8395. && test "$tmp_diet" = no
  8396. then
  8397. tmp_addflag=' $pic_flag'
  8398. tmp_sharedflag='-shared'
  8399. case $cc_basename,$host_cpu in
  8400. pgcc*) # Portland Group C compiler
  8401. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8402. tmp_addflag=' $pic_flag'
  8403. ;;
  8404. pgf77* | pgf90* | pgf95* | pgfortran*)
  8405. # Portland Group f77 and f90 compilers
  8406. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8407. tmp_addflag=' $pic_flag -Mnomain' ;;
  8408. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8409. tmp_addflag=' -i_dynamic' ;;
  8410. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8411. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8412. ifc* | ifort*) # Intel Fortran compiler
  8413. tmp_addflag=' -nofor_main' ;;
  8414. lf95*) # Lahey Fortran 8.1
  8415. whole_archive_flag_spec=
  8416. tmp_sharedflag='--shared' ;;
  8417. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8418. tmp_sharedflag='-qmkshrobj'
  8419. tmp_addflag= ;;
  8420. nvcc*) # Cuda Compiler Driver 2.2
  8421. whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8422. compiler_needs_object=yes
  8423. ;;
  8424. esac
  8425. case `$CC -V 2>&1 | sed 5q` in
  8426. *Sun\ C*) # Sun C 5.9
  8427. whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
  8428. compiler_needs_object=yes
  8429. tmp_sharedflag='-G' ;;
  8430. *Sun\ F*) # Sun Fortran 8.3
  8431. tmp_sharedflag='-G' ;;
  8432. esac
  8433. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8434. if test "x$supports_anon_versioning" = xyes; then
  8435. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8436. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8437. echo "local: *; };" >> $output_objdir/$libname.ver~
  8438. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8439. fi
  8440. case $cc_basename in
  8441. xlf* | bgf* | bgxlf* | mpixlf*)
  8442. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8443. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8444. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8445. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8446. if test "x$supports_anon_versioning" = xyes; then
  8447. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8448. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8449. echo "local: *; };" >> $output_objdir/$libname.ver~
  8450. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8451. fi
  8452. ;;
  8453. esac
  8454. else
  8455. ld_shlibs=no
  8456. fi
  8457. ;;
  8458. netbsd*)
  8459. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8460. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8461. wlarc=
  8462. else
  8463. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8464. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8465. fi
  8466. ;;
  8467. solaris*)
  8468. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8469. ld_shlibs=no
  8470. cat <<_LT_EOF 1>&2
  8471. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8472. *** create shared libraries on Solaris systems. Therefore, libtool
  8473. *** is disabling shared libraries support. We urge you to upgrade GNU
  8474. *** binutils to release 2.9.1 or newer. Another option is to modify
  8475. *** your PATH or compiler configuration so that the native linker is
  8476. *** used, and then restart.
  8477. _LT_EOF
  8478. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8479. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8480. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8481. else
  8482. ld_shlibs=no
  8483. fi
  8484. ;;
  8485. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8486. case `$LD -v 2>&1` in
  8487. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8488. ld_shlibs=no
  8489. cat <<_LT_EOF 1>&2
  8490. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8491. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8492. *** is disabling shared libraries support. We urge you to upgrade GNU
  8493. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8494. *** your PATH or compiler configuration so that the native linker is
  8495. *** used, and then restart.
  8496. _LT_EOF
  8497. ;;
  8498. *)
  8499. # For security reasons, it is highly recommended that you always
  8500. # use absolute paths for naming shared libraries, and exclude the
  8501. # DT_RUNPATH tag from executables and libraries. But doing so
  8502. # requires that you compile everything twice, which is a pain.
  8503. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8504. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8505. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8506. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8507. else
  8508. ld_shlibs=no
  8509. fi
  8510. ;;
  8511. esac
  8512. ;;
  8513. sunos4*)
  8514. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8515. wlarc=
  8516. hardcode_direct=yes
  8517. hardcode_shlibpath_var=no
  8518. ;;
  8519. *)
  8520. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8521. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8522. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8523. else
  8524. ld_shlibs=no
  8525. fi
  8526. ;;
  8527. esac
  8528. if test "$ld_shlibs" = no; then
  8529. runpath_var=
  8530. hardcode_libdir_flag_spec=
  8531. export_dynamic_flag_spec=
  8532. whole_archive_flag_spec=
  8533. fi
  8534. else
  8535. # PORTME fill in a description of your system's linker (not GNU ld)
  8536. case $host_os in
  8537. aix3*)
  8538. allow_undefined_flag=unsupported
  8539. always_export_symbols=yes
  8540. 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'
  8541. # Note: this linker hardcodes the directories in LIBPATH if there
  8542. # are no directories specified by -L.
  8543. hardcode_minus_L=yes
  8544. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8545. # Neither direct hardcoding nor static linking is supported with a
  8546. # broken collect2.
  8547. hardcode_direct=unsupported
  8548. fi
  8549. ;;
  8550. aix[4-9]*)
  8551. if test "$host_cpu" = ia64; then
  8552. # On IA64, the linker does run time linking by default, so we don't
  8553. # have to do anything special.
  8554. aix_use_runtimelinking=no
  8555. exp_sym_flag='-Bexport'
  8556. no_entry_flag=""
  8557. else
  8558. # If we're using GNU nm, then we don't want the "-C" option.
  8559. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8560. # Also, AIX nm treats weak defined symbols like other global
  8561. # defined symbols, whereas GNU nm marks them as "W".
  8562. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8563. export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8564. else
  8565. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8566. fi
  8567. aix_use_runtimelinking=no
  8568. # Test if we are trying to use run time linking or normal
  8569. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8570. # need to do runtime linking.
  8571. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8572. for ld_flag in $LDFLAGS; do
  8573. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8574. aix_use_runtimelinking=yes
  8575. break
  8576. fi
  8577. done
  8578. ;;
  8579. esac
  8580. exp_sym_flag='-bexport'
  8581. no_entry_flag='-bnoentry'
  8582. fi
  8583. # When large executables or shared objects are built, AIX ld can
  8584. # have problems creating the table of contents. If linking a library
  8585. # or program results in "error TOC overflow" add -mminimal-toc to
  8586. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8587. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8588. archive_cmds=''
  8589. hardcode_direct=yes
  8590. hardcode_direct_absolute=yes
  8591. hardcode_libdir_separator=':'
  8592. link_all_deplibs=yes
  8593. file_list_spec='${wl}-f,'
  8594. if test "$GCC" = yes; then
  8595. case $host_os in aix4.[012]|aix4.[012].*)
  8596. # We only want to do this on AIX 4.2 and lower, the check
  8597. # below for broken collect2 doesn't work under 4.3+
  8598. collect2name=`${CC} -print-prog-name=collect2`
  8599. if test -f "$collect2name" &&
  8600. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8601. then
  8602. # We have reworked collect2
  8603. :
  8604. else
  8605. # We have old collect2
  8606. hardcode_direct=unsupported
  8607. # It fails to find uninstalled libraries when the uninstalled
  8608. # path is not listed in the libpath. Setting hardcode_minus_L
  8609. # to unsupported forces relinking
  8610. hardcode_minus_L=yes
  8611. hardcode_libdir_flag_spec='-L$libdir'
  8612. hardcode_libdir_separator=
  8613. fi
  8614. ;;
  8615. esac
  8616. shared_flag='-shared'
  8617. if test "$aix_use_runtimelinking" = yes; then
  8618. shared_flag="$shared_flag "'${wl}-G'
  8619. fi
  8620. else
  8621. # not using gcc
  8622. if test "$host_cpu" = ia64; then
  8623. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8624. # chokes on -Wl,-G. The following line is correct:
  8625. shared_flag='-G'
  8626. else
  8627. if test "$aix_use_runtimelinking" = yes; then
  8628. shared_flag='${wl}-G'
  8629. else
  8630. shared_flag='${wl}-bM:SRE'
  8631. fi
  8632. fi
  8633. fi
  8634. export_dynamic_flag_spec='${wl}-bexpall'
  8635. # It seems that -bexpall does not export symbols beginning with
  8636. # underscore (_), so it is better to generate a list of symbols to export.
  8637. always_export_symbols=yes
  8638. if test "$aix_use_runtimelinking" = yes; then
  8639. # Warning - without using the other runtime loading flags (-brtl),
  8640. # -berok will link without error, but may produce a broken library.
  8641. allow_undefined_flag='-berok'
  8642. # Determine the default libpath from the value encoded in an
  8643. # empty executable.
  8644. if test "${lt_cv_aix_libpath+set}" = set; then
  8645. aix_libpath=$lt_cv_aix_libpath
  8646. else
  8647. if ${lt_cv_aix_libpath_+:} false; then :
  8648. $as_echo_n "(cached) " >&6
  8649. else
  8650. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8651. /* end confdefs.h. */
  8652. int
  8653. main ()
  8654. {
  8655. ;
  8656. return 0;
  8657. }
  8658. _ACEOF
  8659. if ac_fn_c_try_link "$LINENO"; then :
  8660. lt_aix_libpath_sed='
  8661. /Import File Strings/,/^$/ {
  8662. /^0/ {
  8663. s/^0 *\([^ ]*\) *$/\1/
  8664. p
  8665. }
  8666. }'
  8667. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8668. # Check for a 64-bit object if we didn't find anything.
  8669. if test -z "$lt_cv_aix_libpath_"; then
  8670. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8671. fi
  8672. fi
  8673. rm -f core conftest.err conftest.$ac_objext \
  8674. conftest$ac_exeext conftest.$ac_ext
  8675. if test -z "$lt_cv_aix_libpath_"; then
  8676. lt_cv_aix_libpath_="/usr/lib:/lib"
  8677. fi
  8678. fi
  8679. aix_libpath=$lt_cv_aix_libpath_
  8680. fi
  8681. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8682. archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
  8683. else
  8684. if test "$host_cpu" = ia64; then
  8685. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8686. allow_undefined_flag="-z nodefs"
  8687. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
  8688. else
  8689. # Determine the default libpath from the value encoded in an
  8690. # empty executable.
  8691. if test "${lt_cv_aix_libpath+set}" = set; then
  8692. aix_libpath=$lt_cv_aix_libpath
  8693. else
  8694. if ${lt_cv_aix_libpath_+:} false; then :
  8695. $as_echo_n "(cached) " >&6
  8696. else
  8697. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8698. /* end confdefs.h. */
  8699. int
  8700. main ()
  8701. {
  8702. ;
  8703. return 0;
  8704. }
  8705. _ACEOF
  8706. if ac_fn_c_try_link "$LINENO"; then :
  8707. lt_aix_libpath_sed='
  8708. /Import File Strings/,/^$/ {
  8709. /^0/ {
  8710. s/^0 *\([^ ]*\) *$/\1/
  8711. p
  8712. }
  8713. }'
  8714. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8715. # Check for a 64-bit object if we didn't find anything.
  8716. if test -z "$lt_cv_aix_libpath_"; then
  8717. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8718. fi
  8719. fi
  8720. rm -f core conftest.err conftest.$ac_objext \
  8721. conftest$ac_exeext conftest.$ac_ext
  8722. if test -z "$lt_cv_aix_libpath_"; then
  8723. lt_cv_aix_libpath_="/usr/lib:/lib"
  8724. fi
  8725. fi
  8726. aix_libpath=$lt_cv_aix_libpath_
  8727. fi
  8728. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8729. # Warning - without using the other run time loading flags,
  8730. # -berok will link without error, but may produce a broken library.
  8731. no_undefined_flag=' ${wl}-bernotok'
  8732. allow_undefined_flag=' ${wl}-berok'
  8733. if test "$with_gnu_ld" = yes; then
  8734. # We only use this code for GNU lds that support --whole-archive.
  8735. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8736. else
  8737. # Exported symbols can be pulled into shared objects from archives
  8738. whole_archive_flag_spec='$convenience'
  8739. fi
  8740. archive_cmds_need_lc=yes
  8741. # This is similar to how AIX traditionally builds its shared libraries.
  8742. archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
  8743. fi
  8744. fi
  8745. ;;
  8746. amigaos*)
  8747. case $host_cpu in
  8748. powerpc)
  8749. # see comment about AmigaOS4 .so support
  8750. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8751. archive_expsym_cmds=''
  8752. ;;
  8753. m68k)
  8754. 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)'
  8755. hardcode_libdir_flag_spec='-L$libdir'
  8756. hardcode_minus_L=yes
  8757. ;;
  8758. esac
  8759. ;;
  8760. bsdi[45]*)
  8761. export_dynamic_flag_spec=-rdynamic
  8762. ;;
  8763. cygwin* | mingw* | pw32* | cegcc*)
  8764. # When not using gcc, we currently assume that we are using
  8765. # Microsoft Visual C++.
  8766. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8767. # no search path for DLLs.
  8768. case $cc_basename in
  8769. cl*)
  8770. # Native MSVC
  8771. hardcode_libdir_flag_spec=' '
  8772. allow_undefined_flag=unsupported
  8773. always_export_symbols=yes
  8774. file_list_spec='@'
  8775. # Tell ltmain to make .lib files, not .a files.
  8776. libext=lib
  8777. # Tell ltmain to make .dll files, not .so files.
  8778. shrext_cmds=".dll"
  8779. # FIXME: Setting linknames here is a bad hack.
  8780. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8781. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8782. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8783. else
  8784. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8785. fi~
  8786. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8787. linknames='
  8788. # The linker will not automatically build a static lib if we build a DLL.
  8789. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8790. enable_shared_with_static_runtimes=yes
  8791. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8792. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8793. # Don't use ranlib
  8794. old_postinstall_cmds='chmod 644 $oldlib'
  8795. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8796. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8797. case $lt_outputfile in
  8798. *.exe|*.EXE) ;;
  8799. *)
  8800. lt_outputfile="$lt_outputfile.exe"
  8801. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8802. ;;
  8803. esac~
  8804. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8805. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8806. $RM "$lt_outputfile.manifest";
  8807. fi'
  8808. ;;
  8809. *)
  8810. # Assume MSVC wrapper
  8811. hardcode_libdir_flag_spec=' '
  8812. allow_undefined_flag=unsupported
  8813. # Tell ltmain to make .lib files, not .a files.
  8814. libext=lib
  8815. # Tell ltmain to make .dll files, not .so files.
  8816. shrext_cmds=".dll"
  8817. # FIXME: Setting linknames here is a bad hack.
  8818. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8819. # The linker will automatically build a .lib file if we build a DLL.
  8820. old_archive_from_new_cmds='true'
  8821. # FIXME: Should let the user specify the lib program.
  8822. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8823. enable_shared_with_static_runtimes=yes
  8824. ;;
  8825. esac
  8826. ;;
  8827. darwin* | rhapsody*)
  8828. archive_cmds_need_lc=no
  8829. hardcode_direct=no
  8830. hardcode_automatic=yes
  8831. hardcode_shlibpath_var=unsupported
  8832. if test "$lt_cv_ld_force_load" = "yes"; then
  8833. whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  8834. else
  8835. whole_archive_flag_spec=''
  8836. fi
  8837. link_all_deplibs=yes
  8838. allow_undefined_flag="$_lt_dar_allow_undefined"
  8839. case $cc_basename in
  8840. ifort*) _lt_dar_can_shared=yes ;;
  8841. *) _lt_dar_can_shared=$GCC ;;
  8842. esac
  8843. if test "$_lt_dar_can_shared" = "yes"; then
  8844. output_verbose_link_cmd=func_echo_all
  8845. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8846. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8847. archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
  8848. module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
  8849. else
  8850. ld_shlibs=no
  8851. fi
  8852. ;;
  8853. dgux*)
  8854. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8855. hardcode_libdir_flag_spec='-L$libdir'
  8856. hardcode_shlibpath_var=no
  8857. ;;
  8858. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8859. # support. Future versions do this automatically, but an explicit c++rt0.o
  8860. # does not break anything, and helps significantly (at the cost of a little
  8861. # extra space).
  8862. freebsd2.2*)
  8863. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8864. hardcode_libdir_flag_spec='-R$libdir'
  8865. hardcode_direct=yes
  8866. hardcode_shlibpath_var=no
  8867. ;;
  8868. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8869. freebsd2.*)
  8870. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8871. hardcode_direct=yes
  8872. hardcode_minus_L=yes
  8873. hardcode_shlibpath_var=no
  8874. ;;
  8875. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8876. freebsd* | dragonfly*)
  8877. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8878. hardcode_libdir_flag_spec='-R$libdir'
  8879. hardcode_direct=yes
  8880. hardcode_shlibpath_var=no
  8881. ;;
  8882. hpux9*)
  8883. if test "$GCC" = yes; then
  8884. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8885. else
  8886. 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'
  8887. fi
  8888. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8889. hardcode_libdir_separator=:
  8890. hardcode_direct=yes
  8891. # hardcode_minus_L: Not really in the search PATH,
  8892. # but as the default location of the library.
  8893. hardcode_minus_L=yes
  8894. export_dynamic_flag_spec='${wl}-E'
  8895. ;;
  8896. hpux10*)
  8897. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8898. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8899. else
  8900. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8901. fi
  8902. if test "$with_gnu_ld" = no; then
  8903. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8904. hardcode_libdir_separator=:
  8905. hardcode_direct=yes
  8906. hardcode_direct_absolute=yes
  8907. export_dynamic_flag_spec='${wl}-E'
  8908. # hardcode_minus_L: Not really in the search PATH,
  8909. # but as the default location of the library.
  8910. hardcode_minus_L=yes
  8911. fi
  8912. ;;
  8913. hpux11*)
  8914. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8915. case $host_cpu in
  8916. hppa*64*)
  8917. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8918. ;;
  8919. ia64*)
  8920. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8921. ;;
  8922. *)
  8923. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8924. ;;
  8925. esac
  8926. else
  8927. case $host_cpu in
  8928. hppa*64*)
  8929. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8930. ;;
  8931. ia64*)
  8932. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8933. ;;
  8934. *)
  8935. # Older versions of the 11.00 compiler do not understand -b yet
  8936. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8937. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8938. $as_echo_n "checking if $CC understands -b... " >&6; }
  8939. if ${lt_cv_prog_compiler__b+:} false; then :
  8940. $as_echo_n "(cached) " >&6
  8941. else
  8942. lt_cv_prog_compiler__b=no
  8943. save_LDFLAGS="$LDFLAGS"
  8944. LDFLAGS="$LDFLAGS -b"
  8945. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8946. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8947. # The linker can only warn and ignore the option if not recognized
  8948. # So say no if there are warnings
  8949. if test -s conftest.err; then
  8950. # Append any errors to the config.log.
  8951. cat conftest.err 1>&5
  8952. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8953. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8954. if diff conftest.exp conftest.er2 >/dev/null; then
  8955. lt_cv_prog_compiler__b=yes
  8956. fi
  8957. else
  8958. lt_cv_prog_compiler__b=yes
  8959. fi
  8960. fi
  8961. $RM -r conftest*
  8962. LDFLAGS="$save_LDFLAGS"
  8963. fi
  8964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8965. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8966. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8967. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8968. else
  8969. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8970. fi
  8971. ;;
  8972. esac
  8973. fi
  8974. if test "$with_gnu_ld" = no; then
  8975. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8976. hardcode_libdir_separator=:
  8977. case $host_cpu in
  8978. hppa*64*|ia64*)
  8979. hardcode_direct=no
  8980. hardcode_shlibpath_var=no
  8981. ;;
  8982. *)
  8983. hardcode_direct=yes
  8984. hardcode_direct_absolute=yes
  8985. export_dynamic_flag_spec='${wl}-E'
  8986. # hardcode_minus_L: Not really in the search PATH,
  8987. # but as the default location of the library.
  8988. hardcode_minus_L=yes
  8989. ;;
  8990. esac
  8991. fi
  8992. ;;
  8993. irix5* | irix6* | nonstopux*)
  8994. if test "$GCC" = yes; then
  8995. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8996. # Try to use the -exported_symbol ld option, if it does not
  8997. # work, assume that -exports_file does not work either and
  8998. # implicitly export all symbols.
  8999. # This should be the same for all languages, so no per-tag cache variable.
  9000. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  9001. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  9002. if ${lt_cv_irix_exported_symbol+:} false; then :
  9003. $as_echo_n "(cached) " >&6
  9004. else
  9005. save_LDFLAGS="$LDFLAGS"
  9006. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9007. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9008. /* end confdefs.h. */
  9009. int foo (void) { return 0; }
  9010. _ACEOF
  9011. if ac_fn_c_try_link "$LINENO"; then :
  9012. lt_cv_irix_exported_symbol=yes
  9013. else
  9014. lt_cv_irix_exported_symbol=no
  9015. fi
  9016. rm -f core conftest.err conftest.$ac_objext \
  9017. conftest$ac_exeext conftest.$ac_ext
  9018. LDFLAGS="$save_LDFLAGS"
  9019. fi
  9020. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  9021. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  9022. if test "$lt_cv_irix_exported_symbol" = yes; then
  9023. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  9024. fi
  9025. else
  9026. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9027. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
  9028. fi
  9029. archive_cmds_need_lc='no'
  9030. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9031. hardcode_libdir_separator=:
  9032. inherit_rpath=yes
  9033. link_all_deplibs=yes
  9034. ;;
  9035. netbsd*)
  9036. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9037. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9038. else
  9039. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9040. fi
  9041. hardcode_libdir_flag_spec='-R$libdir'
  9042. hardcode_direct=yes
  9043. hardcode_shlibpath_var=no
  9044. ;;
  9045. newsos6)
  9046. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9047. hardcode_direct=yes
  9048. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9049. hardcode_libdir_separator=:
  9050. hardcode_shlibpath_var=no
  9051. ;;
  9052. *nto* | *qnx*)
  9053. ;;
  9054. openbsd*)
  9055. if test -f /usr/libexec/ld.so; then
  9056. hardcode_direct=yes
  9057. hardcode_shlibpath_var=no
  9058. hardcode_direct_absolute=yes
  9059. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9060. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9061. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9062. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9063. export_dynamic_flag_spec='${wl}-E'
  9064. else
  9065. case $host_os in
  9066. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9067. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9068. hardcode_libdir_flag_spec='-R$libdir'
  9069. ;;
  9070. *)
  9071. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9072. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9073. ;;
  9074. esac
  9075. fi
  9076. else
  9077. ld_shlibs=no
  9078. fi
  9079. ;;
  9080. os2*)
  9081. hardcode_libdir_flag_spec='-L$libdir'
  9082. hardcode_minus_L=yes
  9083. allow_undefined_flag=unsupported
  9084. 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'
  9085. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9086. ;;
  9087. osf3*)
  9088. if test "$GCC" = yes; then
  9089. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9090. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9091. else
  9092. allow_undefined_flag=' -expect_unresolved \*'
  9093. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9094. fi
  9095. archive_cmds_need_lc='no'
  9096. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9097. hardcode_libdir_separator=:
  9098. ;;
  9099. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9100. if test "$GCC" = yes; then
  9101. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9102. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  9103. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9104. else
  9105. allow_undefined_flag=' -expect_unresolved \*'
  9106. archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  9107. archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
  9108. $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
  9109. # Both c and cxx compiler support -rpath directly
  9110. hardcode_libdir_flag_spec='-rpath $libdir'
  9111. fi
  9112. archive_cmds_need_lc='no'
  9113. hardcode_libdir_separator=:
  9114. ;;
  9115. solaris*)
  9116. no_undefined_flag=' -z defs'
  9117. if test "$GCC" = yes; then
  9118. wlarc='${wl}'
  9119. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9120. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9121. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9122. else
  9123. case `$CC -V 2>&1` in
  9124. *"Compilers 5.0"*)
  9125. wlarc=''
  9126. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9127. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9128. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9129. ;;
  9130. *)
  9131. wlarc='${wl}'
  9132. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9133. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9134. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9135. ;;
  9136. esac
  9137. fi
  9138. hardcode_libdir_flag_spec='-R$libdir'
  9139. hardcode_shlibpath_var=no
  9140. case $host_os in
  9141. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9142. *)
  9143. # The compiler driver will combine and reorder linker options,
  9144. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9145. # but is careful enough not to reorder.
  9146. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9147. if test "$GCC" = yes; then
  9148. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9149. else
  9150. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9151. fi
  9152. ;;
  9153. esac
  9154. link_all_deplibs=yes
  9155. ;;
  9156. sunos4*)
  9157. if test "x$host_vendor" = xsequent; then
  9158. # Use $CC to link under sequent, because it throws in some extra .o
  9159. # files that make .init and .fini sections work.
  9160. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9161. else
  9162. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9163. fi
  9164. hardcode_libdir_flag_spec='-L$libdir'
  9165. hardcode_direct=yes
  9166. hardcode_minus_L=yes
  9167. hardcode_shlibpath_var=no
  9168. ;;
  9169. sysv4)
  9170. case $host_vendor in
  9171. sni)
  9172. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9173. hardcode_direct=yes # is this really true???
  9174. ;;
  9175. siemens)
  9176. ## LD is ld it makes a PLAMLIB
  9177. ## CC just makes a GrossModule.
  9178. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9179. reload_cmds='$CC -r -o $output$reload_objs'
  9180. hardcode_direct=no
  9181. ;;
  9182. motorola)
  9183. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9184. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9185. ;;
  9186. esac
  9187. runpath_var='LD_RUN_PATH'
  9188. hardcode_shlibpath_var=no
  9189. ;;
  9190. sysv4.3*)
  9191. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9192. hardcode_shlibpath_var=no
  9193. export_dynamic_flag_spec='-Bexport'
  9194. ;;
  9195. sysv4*MP*)
  9196. if test -d /usr/nec; then
  9197. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9198. hardcode_shlibpath_var=no
  9199. runpath_var=LD_RUN_PATH
  9200. hardcode_runpath_var=yes
  9201. ld_shlibs=yes
  9202. fi
  9203. ;;
  9204. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9205. no_undefined_flag='${wl}-z,text'
  9206. archive_cmds_need_lc=no
  9207. hardcode_shlibpath_var=no
  9208. runpath_var='LD_RUN_PATH'
  9209. if test "$GCC" = yes; then
  9210. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9211. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9212. else
  9213. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9214. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9215. fi
  9216. ;;
  9217. sysv5* | sco3.2v5* | sco5v6*)
  9218. # Note: We can NOT use -z defs as we might desire, because we do not
  9219. # link with -lc, and that would cause any symbols used from libc to
  9220. # always be unresolved, which means just about no library would
  9221. # ever link correctly. If we're not using GNU ld we use -z text
  9222. # though, which does catch some bad symbols but isn't as heavy-handed
  9223. # as -z defs.
  9224. no_undefined_flag='${wl}-z,text'
  9225. allow_undefined_flag='${wl}-z,nodefs'
  9226. archive_cmds_need_lc=no
  9227. hardcode_shlibpath_var=no
  9228. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9229. hardcode_libdir_separator=':'
  9230. link_all_deplibs=yes
  9231. export_dynamic_flag_spec='${wl}-Bexport'
  9232. runpath_var='LD_RUN_PATH'
  9233. if test "$GCC" = yes; then
  9234. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9235. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9236. else
  9237. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9238. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9239. fi
  9240. ;;
  9241. uts4*)
  9242. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9243. hardcode_libdir_flag_spec='-L$libdir'
  9244. hardcode_shlibpath_var=no
  9245. ;;
  9246. *)
  9247. ld_shlibs=no
  9248. ;;
  9249. esac
  9250. if test x$host_vendor = xsni; then
  9251. case $host in
  9252. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9253. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9254. ;;
  9255. esac
  9256. fi
  9257. fi
  9258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9259. $as_echo "$ld_shlibs" >&6; }
  9260. test "$ld_shlibs" = no && can_build_shared=no
  9261. with_gnu_ld=$with_gnu_ld
  9262. #
  9263. # Do we need to explicitly link libc?
  9264. #
  9265. case "x$archive_cmds_need_lc" in
  9266. x|xyes)
  9267. # Assume -lc should be added
  9268. archive_cmds_need_lc=yes
  9269. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9270. case $archive_cmds in
  9271. *'~'*)
  9272. # FIXME: we may have to deal with multi-command sequences.
  9273. ;;
  9274. '$CC '*)
  9275. # Test whether the compiler implicitly links with -lc since on some
  9276. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9277. # to ld, don't add -lc before -lgcc.
  9278. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9279. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9280. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9281. $as_echo_n "(cached) " >&6
  9282. else
  9283. $RM conftest*
  9284. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9285. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9286. (eval $ac_compile) 2>&5
  9287. ac_status=$?
  9288. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9289. test $ac_status = 0; } 2>conftest.err; then
  9290. soname=conftest
  9291. lib=conftest
  9292. libobjs=conftest.$ac_objext
  9293. deplibs=
  9294. wl=$lt_prog_compiler_wl
  9295. pic_flag=$lt_prog_compiler_pic
  9296. compiler_flags=-v
  9297. linker_flags=-v
  9298. verstring=
  9299. output_objdir=.
  9300. libname=conftest
  9301. lt_save_allow_undefined_flag=$allow_undefined_flag
  9302. allow_undefined_flag=
  9303. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9304. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9305. ac_status=$?
  9306. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9307. test $ac_status = 0; }
  9308. then
  9309. lt_cv_archive_cmds_need_lc=no
  9310. else
  9311. lt_cv_archive_cmds_need_lc=yes
  9312. fi
  9313. allow_undefined_flag=$lt_save_allow_undefined_flag
  9314. else
  9315. cat conftest.err 1>&5
  9316. fi
  9317. $RM conftest*
  9318. fi
  9319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9320. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9321. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9322. ;;
  9323. esac
  9324. fi
  9325. ;;
  9326. esac
  9327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9328. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9329. if test "$GCC" = yes; then
  9330. case $host_os in
  9331. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9332. *) lt_awk_arg="/^libraries:/" ;;
  9333. esac
  9334. case $host_os in
  9335. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9336. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9337. esac
  9338. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9339. case $lt_search_path_spec in
  9340. *\;*)
  9341. # if the path contains ";" then we assume it to be the separator
  9342. # otherwise default to the standard path separator (i.e. ":") - it is
  9343. # assumed that no part of a normal pathname contains ";" but that should
  9344. # okay in the real world where ";" in dirpaths is itself problematic.
  9345. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9346. ;;
  9347. *)
  9348. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9349. ;;
  9350. esac
  9351. # Ok, now we have the path, separated by spaces, we can step through it
  9352. # and add multilib dir if necessary.
  9353. lt_tmp_lt_search_path_spec=
  9354. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9355. for lt_sys_path in $lt_search_path_spec; do
  9356. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9357. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9358. else
  9359. test -d "$lt_sys_path" && \
  9360. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9361. fi
  9362. done
  9363. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9364. BEGIN {RS=" "; FS="/|\n";} {
  9365. lt_foo="";
  9366. lt_count=0;
  9367. for (lt_i = NF; lt_i > 0; lt_i--) {
  9368. if ($lt_i != "" && $lt_i != ".") {
  9369. if ($lt_i == "..") {
  9370. lt_count++;
  9371. } else {
  9372. if (lt_count == 0) {
  9373. lt_foo="/" $lt_i lt_foo;
  9374. } else {
  9375. lt_count--;
  9376. }
  9377. }
  9378. }
  9379. }
  9380. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9381. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9382. }'`
  9383. # AWK program above erroneously prepends '/' to C:/dos/paths
  9384. # for these hosts.
  9385. case $host_os in
  9386. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9387. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9388. esac
  9389. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9390. else
  9391. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9392. fi
  9393. library_names_spec=
  9394. libname_spec='lib$name'
  9395. soname_spec=
  9396. shrext_cmds=".so"
  9397. postinstall_cmds=
  9398. postuninstall_cmds=
  9399. finish_cmds=
  9400. finish_eval=
  9401. shlibpath_var=
  9402. shlibpath_overrides_runpath=unknown
  9403. version_type=none
  9404. dynamic_linker="$host_os ld.so"
  9405. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9406. need_lib_prefix=unknown
  9407. hardcode_into_libs=no
  9408. # when you set need_version to no, make sure it does not cause -set_version
  9409. # flags to be left without arguments
  9410. need_version=unknown
  9411. case $host_os in
  9412. aix3*)
  9413. version_type=linux # correct to gnu/linux during the next big refactor
  9414. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9415. shlibpath_var=LIBPATH
  9416. # AIX 3 has no versioning support, so we append a major version to the name.
  9417. soname_spec='${libname}${release}${shared_ext}$major'
  9418. ;;
  9419. aix[4-9]*)
  9420. version_type=linux # correct to gnu/linux during the next big refactor
  9421. need_lib_prefix=no
  9422. need_version=no
  9423. hardcode_into_libs=yes
  9424. if test "$host_cpu" = ia64; then
  9425. # AIX 5 supports IA64
  9426. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9427. shlibpath_var=LD_LIBRARY_PATH
  9428. else
  9429. # With GCC up to 2.95.x, collect2 would create an import file
  9430. # for dependence libraries. The import file would start with
  9431. # the line `#! .'. This would cause the generated library to
  9432. # depend on `.', always an invalid library. This was fixed in
  9433. # development snapshots of GCC prior to 3.0.
  9434. case $host_os in
  9435. aix4 | aix4.[01] | aix4.[01].*)
  9436. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9437. echo ' yes '
  9438. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9439. :
  9440. else
  9441. can_build_shared=no
  9442. fi
  9443. ;;
  9444. esac
  9445. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9446. # soname into executable. Probably we can add versioning support to
  9447. # collect2, so additional links can be useful in future.
  9448. if test "$aix_use_runtimelinking" = yes; then
  9449. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9450. # instead of lib<name>.a to let people know that these are not
  9451. # typical AIX shared libraries.
  9452. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9453. else
  9454. # We preserve .a as extension for shared libraries through AIX4.2
  9455. # and later when we are not doing run time linking.
  9456. library_names_spec='${libname}${release}.a $libname.a'
  9457. soname_spec='${libname}${release}${shared_ext}$major'
  9458. fi
  9459. shlibpath_var=LIBPATH
  9460. fi
  9461. ;;
  9462. amigaos*)
  9463. case $host_cpu in
  9464. powerpc)
  9465. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9466. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9467. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9468. ;;
  9469. m68k)
  9470. library_names_spec='$libname.ixlibrary $libname.a'
  9471. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9472. finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''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'
  9473. ;;
  9474. esac
  9475. ;;
  9476. beos*)
  9477. library_names_spec='${libname}${shared_ext}'
  9478. dynamic_linker="$host_os ld.so"
  9479. shlibpath_var=LIBRARY_PATH
  9480. ;;
  9481. bsdi[45]*)
  9482. version_type=linux # correct to gnu/linux during the next big refactor
  9483. need_version=no
  9484. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9485. soname_spec='${libname}${release}${shared_ext}$major'
  9486. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9487. shlibpath_var=LD_LIBRARY_PATH
  9488. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9489. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9490. # the default ld.so.conf also contains /usr/contrib/lib and
  9491. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9492. # libtool to hard-code these into programs
  9493. ;;
  9494. cygwin* | mingw* | pw32* | cegcc*)
  9495. version_type=windows
  9496. shrext_cmds=".dll"
  9497. need_version=no
  9498. need_lib_prefix=no
  9499. case $GCC,$cc_basename in
  9500. yes,*)
  9501. # gcc
  9502. library_names_spec='$libname.dll.a'
  9503. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9504. postinstall_cmds='base_file=`basename \${file}`~
  9505. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9506. dldir=$destdir/`dirname \$dlpath`~
  9507. test -d \$dldir || mkdir -p \$dldir~
  9508. $install_prog $dir/$dlname \$dldir/$dlname~
  9509. chmod a+x \$dldir/$dlname~
  9510. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9511. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9512. fi'
  9513. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9514. dlpath=$dir/\$dldll~
  9515. $RM \$dlpath'
  9516. shlibpath_overrides_runpath=yes
  9517. case $host_os in
  9518. cygwin*)
  9519. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9520. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9521. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9522. ;;
  9523. mingw* | cegcc*)
  9524. # MinGW DLLs use traditional 'lib' prefix
  9525. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9526. ;;
  9527. pw32*)
  9528. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9529. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9530. ;;
  9531. esac
  9532. dynamic_linker='Win32 ld.exe'
  9533. ;;
  9534. *,cl*)
  9535. # Native MSVC
  9536. libname_spec='$name'
  9537. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9538. library_names_spec='${libname}.dll.lib'
  9539. case $build_os in
  9540. mingw*)
  9541. sys_lib_search_path_spec=
  9542. lt_save_ifs=$IFS
  9543. IFS=';'
  9544. for lt_path in $LIB
  9545. do
  9546. IFS=$lt_save_ifs
  9547. # Let DOS variable expansion print the short 8.3 style file name.
  9548. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9549. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9550. done
  9551. IFS=$lt_save_ifs
  9552. # Convert to MSYS style.
  9553. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9554. ;;
  9555. cygwin*)
  9556. # Convert to unix form, then to dos form, then back to unix form
  9557. # but this time dos style (no spaces!) so that the unix form looks
  9558. # like /cygdrive/c/PROGRA~1:/cygdr...
  9559. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9560. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9561. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9562. ;;
  9563. *)
  9564. sys_lib_search_path_spec="$LIB"
  9565. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9566. # It is most probably a Windows format PATH.
  9567. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9568. else
  9569. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9570. fi
  9571. # FIXME: find the short name or the path components, as spaces are
  9572. # common. (e.g. "Program Files" -> "PROGRA~1")
  9573. ;;
  9574. esac
  9575. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9576. postinstall_cmds='base_file=`basename \${file}`~
  9577. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9578. dldir=$destdir/`dirname \$dlpath`~
  9579. test -d \$dldir || mkdir -p \$dldir~
  9580. $install_prog $dir/$dlname \$dldir/$dlname'
  9581. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9582. dlpath=$dir/\$dldll~
  9583. $RM \$dlpath'
  9584. shlibpath_overrides_runpath=yes
  9585. dynamic_linker='Win32 link.exe'
  9586. ;;
  9587. *)
  9588. # Assume MSVC wrapper
  9589. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9590. dynamic_linker='Win32 ld.exe'
  9591. ;;
  9592. esac
  9593. # FIXME: first we should search . and the directory the executable is in
  9594. shlibpath_var=PATH
  9595. ;;
  9596. darwin* | rhapsody*)
  9597. dynamic_linker="$host_os dyld"
  9598. version_type=darwin
  9599. need_lib_prefix=no
  9600. need_version=no
  9601. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9602. soname_spec='${libname}${release}${major}$shared_ext'
  9603. shlibpath_overrides_runpath=yes
  9604. shlibpath_var=DYLD_LIBRARY_PATH
  9605. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9606. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9607. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9608. ;;
  9609. dgux*)
  9610. version_type=linux # correct to gnu/linux during the next big refactor
  9611. need_lib_prefix=no
  9612. need_version=no
  9613. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9614. soname_spec='${libname}${release}${shared_ext}$major'
  9615. shlibpath_var=LD_LIBRARY_PATH
  9616. ;;
  9617. freebsd* | dragonfly*)
  9618. # DragonFly does not have aout. When/if they implement a new
  9619. # versioning mechanism, adjust this.
  9620. if test -x /usr/bin/objformat; then
  9621. objformat=`/usr/bin/objformat`
  9622. else
  9623. case $host_os in
  9624. freebsd[23].*) objformat=aout ;;
  9625. *) objformat=elf ;;
  9626. esac
  9627. fi
  9628. version_type=freebsd-$objformat
  9629. case $version_type in
  9630. freebsd-elf*)
  9631. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9632. need_version=no
  9633. need_lib_prefix=no
  9634. ;;
  9635. freebsd-*)
  9636. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9637. need_version=yes
  9638. ;;
  9639. esac
  9640. shlibpath_var=LD_LIBRARY_PATH
  9641. case $host_os in
  9642. freebsd2.*)
  9643. shlibpath_overrides_runpath=yes
  9644. ;;
  9645. freebsd3.[01]* | freebsdelf3.[01]*)
  9646. shlibpath_overrides_runpath=yes
  9647. hardcode_into_libs=yes
  9648. ;;
  9649. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9650. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9651. shlibpath_overrides_runpath=no
  9652. hardcode_into_libs=yes
  9653. ;;
  9654. *) # from 4.6 on, and DragonFly
  9655. shlibpath_overrides_runpath=yes
  9656. hardcode_into_libs=yes
  9657. ;;
  9658. esac
  9659. ;;
  9660. gnu*)
  9661. version_type=linux # correct to gnu/linux during the next big refactor
  9662. need_lib_prefix=no
  9663. need_version=no
  9664. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9665. soname_spec='${libname}${release}${shared_ext}$major'
  9666. shlibpath_var=LD_LIBRARY_PATH
  9667. shlibpath_overrides_runpath=no
  9668. hardcode_into_libs=yes
  9669. ;;
  9670. haiku*)
  9671. version_type=linux # correct to gnu/linux during the next big refactor
  9672. need_lib_prefix=no
  9673. need_version=no
  9674. dynamic_linker="$host_os runtime_loader"
  9675. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9676. soname_spec='${libname}${release}${shared_ext}$major'
  9677. shlibpath_var=LIBRARY_PATH
  9678. shlibpath_overrides_runpath=yes
  9679. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9680. hardcode_into_libs=yes
  9681. ;;
  9682. hpux9* | hpux10* | hpux11*)
  9683. # Give a soname corresponding to the major version so that dld.sl refuses to
  9684. # link against other versions.
  9685. version_type=sunos
  9686. need_lib_prefix=no
  9687. need_version=no
  9688. case $host_cpu in
  9689. ia64*)
  9690. shrext_cmds='.so'
  9691. hardcode_into_libs=yes
  9692. dynamic_linker="$host_os dld.so"
  9693. shlibpath_var=LD_LIBRARY_PATH
  9694. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9695. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9696. soname_spec='${libname}${release}${shared_ext}$major'
  9697. if test "X$HPUX_IA64_MODE" = X32; then
  9698. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9699. else
  9700. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9701. fi
  9702. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9703. ;;
  9704. hppa*64*)
  9705. shrext_cmds='.sl'
  9706. hardcode_into_libs=yes
  9707. dynamic_linker="$host_os dld.sl"
  9708. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9709. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9710. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9711. soname_spec='${libname}${release}${shared_ext}$major'
  9712. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9713. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9714. ;;
  9715. *)
  9716. shrext_cmds='.sl'
  9717. dynamic_linker="$host_os dld.sl"
  9718. shlibpath_var=SHLIB_PATH
  9719. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9720. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9721. soname_spec='${libname}${release}${shared_ext}$major'
  9722. ;;
  9723. esac
  9724. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9725. postinstall_cmds='chmod 555 $lib'
  9726. # or fails outright, so override atomically:
  9727. install_override_mode=555
  9728. ;;
  9729. interix[3-9]*)
  9730. version_type=linux # correct to gnu/linux during the next big refactor
  9731. need_lib_prefix=no
  9732. need_version=no
  9733. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9734. soname_spec='${libname}${release}${shared_ext}$major'
  9735. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9736. shlibpath_var=LD_LIBRARY_PATH
  9737. shlibpath_overrides_runpath=no
  9738. hardcode_into_libs=yes
  9739. ;;
  9740. irix5* | irix6* | nonstopux*)
  9741. case $host_os in
  9742. nonstopux*) version_type=nonstopux ;;
  9743. *)
  9744. if test "$lt_cv_prog_gnu_ld" = yes; then
  9745. version_type=linux # correct to gnu/linux during the next big refactor
  9746. else
  9747. version_type=irix
  9748. fi ;;
  9749. esac
  9750. need_lib_prefix=no
  9751. need_version=no
  9752. soname_spec='${libname}${release}${shared_ext}$major'
  9753. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9754. case $host_os in
  9755. irix5* | nonstopux*)
  9756. libsuff= shlibsuff=
  9757. ;;
  9758. *)
  9759. case $LD in # libtool.m4 will add one of these switches to LD
  9760. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9761. libsuff= shlibsuff= libmagic=32-bit;;
  9762. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9763. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9764. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9765. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9766. *) libsuff= shlibsuff= libmagic=never-match;;
  9767. esac
  9768. ;;
  9769. esac
  9770. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9771. shlibpath_overrides_runpath=no
  9772. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9773. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9774. hardcode_into_libs=yes
  9775. ;;
  9776. # No shared lib support for Linux oldld, aout, or coff.
  9777. linux*oldld* | linux*aout* | linux*coff*)
  9778. dynamic_linker=no
  9779. ;;
  9780. # This must be glibc/ELF.
  9781. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9782. version_type=linux # correct to gnu/linux during the next big refactor
  9783. need_lib_prefix=no
  9784. need_version=no
  9785. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9786. soname_spec='${libname}${release}${shared_ext}$major'
  9787. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9788. shlibpath_var=LD_LIBRARY_PATH
  9789. shlibpath_overrides_runpath=no
  9790. # Some binutils ld are patched to set DT_RUNPATH
  9791. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9792. $as_echo_n "(cached) " >&6
  9793. else
  9794. lt_cv_shlibpath_overrides_runpath=no
  9795. save_LDFLAGS=$LDFLAGS
  9796. save_libdir=$libdir
  9797. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9798. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9799. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9800. /* end confdefs.h. */
  9801. int
  9802. main ()
  9803. {
  9804. ;
  9805. return 0;
  9806. }
  9807. _ACEOF
  9808. if ac_fn_c_try_link "$LINENO"; then :
  9809. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9810. lt_cv_shlibpath_overrides_runpath=yes
  9811. fi
  9812. fi
  9813. rm -f core conftest.err conftest.$ac_objext \
  9814. conftest$ac_exeext conftest.$ac_ext
  9815. LDFLAGS=$save_LDFLAGS
  9816. libdir=$save_libdir
  9817. fi
  9818. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9819. # This implies no fast_install, which is unacceptable.
  9820. # Some rework will be needed to allow for fast_install
  9821. # before this can be enabled.
  9822. hardcode_into_libs=yes
  9823. # Add ABI-specific directories to the system library path.
  9824. sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib"
  9825. # Append ld.so.conf contents to the search path
  9826. if test -f /etc/ld.so.conf; then
  9827. lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
  9828. sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra"
  9829. fi
  9830. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9831. # powerpc, because MkLinux only supported shared libraries with the
  9832. # GNU dynamic linker. Since this was broken with cross compilers,
  9833. # most powerpc-linux boxes support dynamic linking these days and
  9834. # people can always --disable-shared, the test was removed, and we
  9835. # assume the GNU/Linux dynamic linker is in use.
  9836. dynamic_linker='GNU/Linux ld.so'
  9837. ;;
  9838. netbsd*)
  9839. version_type=sunos
  9840. need_lib_prefix=no
  9841. need_version=no
  9842. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9844. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9845. dynamic_linker='NetBSD (a.out) ld.so'
  9846. else
  9847. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9848. soname_spec='${libname}${release}${shared_ext}$major'
  9849. dynamic_linker='NetBSD ld.elf_so'
  9850. fi
  9851. shlibpath_var=LD_LIBRARY_PATH
  9852. shlibpath_overrides_runpath=yes
  9853. hardcode_into_libs=yes
  9854. ;;
  9855. newsos6)
  9856. version_type=linux # correct to gnu/linux during the next big refactor
  9857. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9858. shlibpath_var=LD_LIBRARY_PATH
  9859. shlibpath_overrides_runpath=yes
  9860. ;;
  9861. *nto* | *qnx*)
  9862. version_type=qnx
  9863. need_lib_prefix=no
  9864. need_version=no
  9865. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9866. soname_spec='${libname}${release}${shared_ext}$major'
  9867. shlibpath_var=LD_LIBRARY_PATH
  9868. shlibpath_overrides_runpath=no
  9869. hardcode_into_libs=yes
  9870. dynamic_linker='ldqnx.so'
  9871. ;;
  9872. openbsd*)
  9873. version_type=sunos
  9874. sys_lib_dlsearch_path_spec="/usr/lib"
  9875. need_lib_prefix=no
  9876. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9877. case $host_os in
  9878. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9879. *) need_version=no ;;
  9880. esac
  9881. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9882. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9883. shlibpath_var=LD_LIBRARY_PATH
  9884. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9885. case $host_os in
  9886. openbsd2.[89] | openbsd2.[89].*)
  9887. shlibpath_overrides_runpath=no
  9888. ;;
  9889. *)
  9890. shlibpath_overrides_runpath=yes
  9891. ;;
  9892. esac
  9893. else
  9894. shlibpath_overrides_runpath=yes
  9895. fi
  9896. ;;
  9897. os2*)
  9898. libname_spec='$name'
  9899. shrext_cmds=".dll"
  9900. need_lib_prefix=no
  9901. library_names_spec='$libname${shared_ext} $libname.a'
  9902. dynamic_linker='OS/2 ld.exe'
  9903. shlibpath_var=LIBPATH
  9904. ;;
  9905. osf3* | osf4* | osf5*)
  9906. version_type=osf
  9907. need_lib_prefix=no
  9908. need_version=no
  9909. soname_spec='${libname}${release}${shared_ext}$major'
  9910. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9911. shlibpath_var=LD_LIBRARY_PATH
  9912. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9913. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9914. ;;
  9915. rdos*)
  9916. dynamic_linker=no
  9917. ;;
  9918. solaris*)
  9919. version_type=linux # correct to gnu/linux during the next big refactor
  9920. need_lib_prefix=no
  9921. need_version=no
  9922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9923. soname_spec='${libname}${release}${shared_ext}$major'
  9924. shlibpath_var=LD_LIBRARY_PATH
  9925. shlibpath_overrides_runpath=yes
  9926. hardcode_into_libs=yes
  9927. # ldd complains unless libraries are executable
  9928. postinstall_cmds='chmod +x $lib'
  9929. ;;
  9930. sunos4*)
  9931. version_type=sunos
  9932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9933. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9934. shlibpath_var=LD_LIBRARY_PATH
  9935. shlibpath_overrides_runpath=yes
  9936. if test "$with_gnu_ld" = yes; then
  9937. need_lib_prefix=no
  9938. fi
  9939. need_version=yes
  9940. ;;
  9941. sysv4 | sysv4.3*)
  9942. version_type=linux # correct to gnu/linux during the next big refactor
  9943. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9944. soname_spec='${libname}${release}${shared_ext}$major'
  9945. shlibpath_var=LD_LIBRARY_PATH
  9946. case $host_vendor in
  9947. sni)
  9948. shlibpath_overrides_runpath=no
  9949. need_lib_prefix=no
  9950. runpath_var=LD_RUN_PATH
  9951. ;;
  9952. siemens)
  9953. need_lib_prefix=no
  9954. ;;
  9955. motorola)
  9956. need_lib_prefix=no
  9957. need_version=no
  9958. shlibpath_overrides_runpath=no
  9959. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9960. ;;
  9961. esac
  9962. ;;
  9963. sysv4*MP*)
  9964. if test -d /usr/nec ;then
  9965. version_type=linux # correct to gnu/linux during the next big refactor
  9966. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9967. soname_spec='$libname${shared_ext}.$major'
  9968. shlibpath_var=LD_LIBRARY_PATH
  9969. fi
  9970. ;;
  9971. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9972. version_type=freebsd-elf
  9973. need_lib_prefix=no
  9974. need_version=no
  9975. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9976. soname_spec='${libname}${release}${shared_ext}$major'
  9977. shlibpath_var=LD_LIBRARY_PATH
  9978. shlibpath_overrides_runpath=yes
  9979. hardcode_into_libs=yes
  9980. if test "$with_gnu_ld" = yes; then
  9981. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9982. else
  9983. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9984. case $host_os in
  9985. sco3.2v5*)
  9986. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9987. ;;
  9988. esac
  9989. fi
  9990. sys_lib_dlsearch_path_spec='/usr/lib'
  9991. ;;
  9992. tpf*)
  9993. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9994. version_type=linux # correct to gnu/linux during the next big refactor
  9995. need_lib_prefix=no
  9996. need_version=no
  9997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9998. shlibpath_var=LD_LIBRARY_PATH
  9999. shlibpath_overrides_runpath=no
  10000. hardcode_into_libs=yes
  10001. ;;
  10002. uts4*)
  10003. version_type=linux # correct to gnu/linux during the next big refactor
  10004. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10005. soname_spec='${libname}${release}${shared_ext}$major'
  10006. shlibpath_var=LD_LIBRARY_PATH
  10007. ;;
  10008. *)
  10009. dynamic_linker=no
  10010. ;;
  10011. esac
  10012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10013. $as_echo "$dynamic_linker" >&6; }
  10014. test "$dynamic_linker" = no && can_build_shared=no
  10015. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10016. if test "$GCC" = yes; then
  10017. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10018. fi
  10019. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10020. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10021. fi
  10022. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10023. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10024. fi
  10025. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10026. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10027. hardcode_action=
  10028. if test -n "$hardcode_libdir_flag_spec" ||
  10029. test -n "$runpath_var" ||
  10030. test "X$hardcode_automatic" = "Xyes" ; then
  10031. # We can hardcode non-existent directories.
  10032. if test "$hardcode_direct" != no &&
  10033. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10034. # have to relink, otherwise we might link with an installed library
  10035. # when we should be linking with a yet-to-be-installed one
  10036. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10037. test "$hardcode_minus_L" != no; then
  10038. # Linking always hardcodes the temporary library directory.
  10039. hardcode_action=relink
  10040. else
  10041. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10042. hardcode_action=immediate
  10043. fi
  10044. else
  10045. # We cannot hardcode anything, or else we can only hardcode existing
  10046. # directories.
  10047. hardcode_action=unsupported
  10048. fi
  10049. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10050. $as_echo "$hardcode_action" >&6; }
  10051. if test "$hardcode_action" = relink ||
  10052. test "$inherit_rpath" = yes; then
  10053. # Fast installation is not supported
  10054. enable_fast_install=no
  10055. elif test "$shlibpath_overrides_runpath" = yes ||
  10056. test "$enable_shared" = no; then
  10057. # Fast installation is not necessary
  10058. enable_fast_install=needless
  10059. fi
  10060. if test "x$enable_dlopen" != xyes; then
  10061. enable_dlopen=unknown
  10062. enable_dlopen_self=unknown
  10063. enable_dlopen_self_static=unknown
  10064. else
  10065. lt_cv_dlopen=no
  10066. lt_cv_dlopen_libs=
  10067. case $host_os in
  10068. beos*)
  10069. lt_cv_dlopen="load_add_on"
  10070. lt_cv_dlopen_libs=
  10071. lt_cv_dlopen_self=yes
  10072. ;;
  10073. mingw* | pw32* | cegcc*)
  10074. lt_cv_dlopen="LoadLibrary"
  10075. lt_cv_dlopen_libs=
  10076. ;;
  10077. cygwin*)
  10078. lt_cv_dlopen="dlopen"
  10079. lt_cv_dlopen_libs=
  10080. ;;
  10081. darwin*)
  10082. # if libdl is installed we need to link against it
  10083. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10084. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10085. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10086. $as_echo_n "(cached) " >&6
  10087. else
  10088. ac_check_lib_save_LIBS=$LIBS
  10089. LIBS="-ldl $LIBS"
  10090. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10091. /* end confdefs.h. */
  10092. /* Override any GCC internal prototype to avoid an error.
  10093. Use char because int might match the return type of a GCC
  10094. builtin and then its argument prototype would still apply. */
  10095. #ifdef __cplusplus
  10096. extern "C"
  10097. #endif
  10098. char dlopen ();
  10099. int
  10100. main ()
  10101. {
  10102. return dlopen ();
  10103. ;
  10104. return 0;
  10105. }
  10106. _ACEOF
  10107. if ac_fn_c_try_link "$LINENO"; then :
  10108. ac_cv_lib_dl_dlopen=yes
  10109. else
  10110. ac_cv_lib_dl_dlopen=no
  10111. fi
  10112. rm -f core conftest.err conftest.$ac_objext \
  10113. conftest$ac_exeext conftest.$ac_ext
  10114. LIBS=$ac_check_lib_save_LIBS
  10115. fi
  10116. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10117. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10118. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10119. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10120. else
  10121. lt_cv_dlopen="dyld"
  10122. lt_cv_dlopen_libs=
  10123. lt_cv_dlopen_self=yes
  10124. fi
  10125. ;;
  10126. *)
  10127. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10128. if test "x$ac_cv_func_shl_load" = xyes; then :
  10129. lt_cv_dlopen="shl_load"
  10130. else
  10131. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10132. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10133. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10134. $as_echo_n "(cached) " >&6
  10135. else
  10136. ac_check_lib_save_LIBS=$LIBS
  10137. LIBS="-ldld $LIBS"
  10138. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10139. /* end confdefs.h. */
  10140. /* Override any GCC internal prototype to avoid an error.
  10141. Use char because int might match the return type of a GCC
  10142. builtin and then its argument prototype would still apply. */
  10143. #ifdef __cplusplus
  10144. extern "C"
  10145. #endif
  10146. char shl_load ();
  10147. int
  10148. main ()
  10149. {
  10150. return shl_load ();
  10151. ;
  10152. return 0;
  10153. }
  10154. _ACEOF
  10155. if ac_fn_c_try_link "$LINENO"; then :
  10156. ac_cv_lib_dld_shl_load=yes
  10157. else
  10158. ac_cv_lib_dld_shl_load=no
  10159. fi
  10160. rm -f core conftest.err conftest.$ac_objext \
  10161. conftest$ac_exeext conftest.$ac_ext
  10162. LIBS=$ac_check_lib_save_LIBS
  10163. fi
  10164. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10165. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10166. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10167. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10168. else
  10169. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10170. if test "x$ac_cv_func_dlopen" = xyes; then :
  10171. lt_cv_dlopen="dlopen"
  10172. else
  10173. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10174. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10175. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10176. $as_echo_n "(cached) " >&6
  10177. else
  10178. ac_check_lib_save_LIBS=$LIBS
  10179. LIBS="-ldl $LIBS"
  10180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10181. /* end confdefs.h. */
  10182. /* Override any GCC internal prototype to avoid an error.
  10183. Use char because int might match the return type of a GCC
  10184. builtin and then its argument prototype would still apply. */
  10185. #ifdef __cplusplus
  10186. extern "C"
  10187. #endif
  10188. char dlopen ();
  10189. int
  10190. main ()
  10191. {
  10192. return dlopen ();
  10193. ;
  10194. return 0;
  10195. }
  10196. _ACEOF
  10197. if ac_fn_c_try_link "$LINENO"; then :
  10198. ac_cv_lib_dl_dlopen=yes
  10199. else
  10200. ac_cv_lib_dl_dlopen=no
  10201. fi
  10202. rm -f core conftest.err conftest.$ac_objext \
  10203. conftest$ac_exeext conftest.$ac_ext
  10204. LIBS=$ac_check_lib_save_LIBS
  10205. fi
  10206. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10207. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10208. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10209. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10210. else
  10211. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10212. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10213. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10214. $as_echo_n "(cached) " >&6
  10215. else
  10216. ac_check_lib_save_LIBS=$LIBS
  10217. LIBS="-lsvld $LIBS"
  10218. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10219. /* end confdefs.h. */
  10220. /* Override any GCC internal prototype to avoid an error.
  10221. Use char because int might match the return type of a GCC
  10222. builtin and then its argument prototype would still apply. */
  10223. #ifdef __cplusplus
  10224. extern "C"
  10225. #endif
  10226. char dlopen ();
  10227. int
  10228. main ()
  10229. {
  10230. return dlopen ();
  10231. ;
  10232. return 0;
  10233. }
  10234. _ACEOF
  10235. if ac_fn_c_try_link "$LINENO"; then :
  10236. ac_cv_lib_svld_dlopen=yes
  10237. else
  10238. ac_cv_lib_svld_dlopen=no
  10239. fi
  10240. rm -f core conftest.err conftest.$ac_objext \
  10241. conftest$ac_exeext conftest.$ac_ext
  10242. LIBS=$ac_check_lib_save_LIBS
  10243. fi
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10245. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10246. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10247. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10248. else
  10249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10250. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10251. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10252. $as_echo_n "(cached) " >&6
  10253. else
  10254. ac_check_lib_save_LIBS=$LIBS
  10255. LIBS="-ldld $LIBS"
  10256. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10257. /* end confdefs.h. */
  10258. /* Override any GCC internal prototype to avoid an error.
  10259. Use char because int might match the return type of a GCC
  10260. builtin and then its argument prototype would still apply. */
  10261. #ifdef __cplusplus
  10262. extern "C"
  10263. #endif
  10264. char dld_link ();
  10265. int
  10266. main ()
  10267. {
  10268. return dld_link ();
  10269. ;
  10270. return 0;
  10271. }
  10272. _ACEOF
  10273. if ac_fn_c_try_link "$LINENO"; then :
  10274. ac_cv_lib_dld_dld_link=yes
  10275. else
  10276. ac_cv_lib_dld_dld_link=no
  10277. fi
  10278. rm -f core conftest.err conftest.$ac_objext \
  10279. conftest$ac_exeext conftest.$ac_ext
  10280. LIBS=$ac_check_lib_save_LIBS
  10281. fi
  10282. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10283. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10284. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10285. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10286. fi
  10287. fi
  10288. fi
  10289. fi
  10290. fi
  10291. fi
  10292. ;;
  10293. esac
  10294. if test "x$lt_cv_dlopen" != xno; then
  10295. enable_dlopen=yes
  10296. else
  10297. enable_dlopen=no
  10298. fi
  10299. case $lt_cv_dlopen in
  10300. dlopen)
  10301. save_CPPFLAGS="$CPPFLAGS"
  10302. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10303. save_LDFLAGS="$LDFLAGS"
  10304. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10305. save_LIBS="$LIBS"
  10306. LIBS="$lt_cv_dlopen_libs $LIBS"
  10307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10308. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10309. if ${lt_cv_dlopen_self+:} false; then :
  10310. $as_echo_n "(cached) " >&6
  10311. else
  10312. if test "$cross_compiling" = yes; then :
  10313. lt_cv_dlopen_self=cross
  10314. else
  10315. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10316. lt_status=$lt_dlunknown
  10317. cat > conftest.$ac_ext <<_LT_EOF
  10318. #line $LINENO "configure"
  10319. #include "confdefs.h"
  10320. #if HAVE_DLFCN_H
  10321. #include <dlfcn.h>
  10322. #endif
  10323. #include <stdio.h>
  10324. #ifdef RTLD_GLOBAL
  10325. # define LT_DLGLOBAL RTLD_GLOBAL
  10326. #else
  10327. # ifdef DL_GLOBAL
  10328. # define LT_DLGLOBAL DL_GLOBAL
  10329. # else
  10330. # define LT_DLGLOBAL 0
  10331. # endif
  10332. #endif
  10333. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10334. find out it does not work in some platform. */
  10335. #ifndef LT_DLLAZY_OR_NOW
  10336. # ifdef RTLD_LAZY
  10337. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10338. # else
  10339. # ifdef DL_LAZY
  10340. # define LT_DLLAZY_OR_NOW DL_LAZY
  10341. # else
  10342. # ifdef RTLD_NOW
  10343. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10344. # else
  10345. # ifdef DL_NOW
  10346. # define LT_DLLAZY_OR_NOW DL_NOW
  10347. # else
  10348. # define LT_DLLAZY_OR_NOW 0
  10349. # endif
  10350. # endif
  10351. # endif
  10352. # endif
  10353. #endif
  10354. /* When -fvisbility=hidden is used, assume the code has been annotated
  10355. correspondingly for the symbols needed. */
  10356. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10357. int fnord () __attribute__((visibility("default")));
  10358. #endif
  10359. int fnord () { return 42; }
  10360. int main ()
  10361. {
  10362. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10363. int status = $lt_dlunknown;
  10364. if (self)
  10365. {
  10366. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10367. else
  10368. {
  10369. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10370. else puts (dlerror ());
  10371. }
  10372. /* dlclose (self); */
  10373. }
  10374. else
  10375. puts (dlerror ());
  10376. return status;
  10377. }
  10378. _LT_EOF
  10379. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10380. (eval $ac_link) 2>&5
  10381. ac_status=$?
  10382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10383. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10384. (./conftest; exit; ) >&5 2>/dev/null
  10385. lt_status=$?
  10386. case x$lt_status in
  10387. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10388. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10389. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10390. esac
  10391. else :
  10392. # compilation failed
  10393. lt_cv_dlopen_self=no
  10394. fi
  10395. fi
  10396. rm -fr conftest*
  10397. fi
  10398. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10399. $as_echo "$lt_cv_dlopen_self" >&6; }
  10400. if test "x$lt_cv_dlopen_self" = xyes; then
  10401. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10402. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10403. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10404. if ${lt_cv_dlopen_self_static+:} false; then :
  10405. $as_echo_n "(cached) " >&6
  10406. else
  10407. if test "$cross_compiling" = yes; then :
  10408. lt_cv_dlopen_self_static=cross
  10409. else
  10410. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10411. lt_status=$lt_dlunknown
  10412. cat > conftest.$ac_ext <<_LT_EOF
  10413. #line $LINENO "configure"
  10414. #include "confdefs.h"
  10415. #if HAVE_DLFCN_H
  10416. #include <dlfcn.h>
  10417. #endif
  10418. #include <stdio.h>
  10419. #ifdef RTLD_GLOBAL
  10420. # define LT_DLGLOBAL RTLD_GLOBAL
  10421. #else
  10422. # ifdef DL_GLOBAL
  10423. # define LT_DLGLOBAL DL_GLOBAL
  10424. # else
  10425. # define LT_DLGLOBAL 0
  10426. # endif
  10427. #endif
  10428. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10429. find out it does not work in some platform. */
  10430. #ifndef LT_DLLAZY_OR_NOW
  10431. # ifdef RTLD_LAZY
  10432. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10433. # else
  10434. # ifdef DL_LAZY
  10435. # define LT_DLLAZY_OR_NOW DL_LAZY
  10436. # else
  10437. # ifdef RTLD_NOW
  10438. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10439. # else
  10440. # ifdef DL_NOW
  10441. # define LT_DLLAZY_OR_NOW DL_NOW
  10442. # else
  10443. # define LT_DLLAZY_OR_NOW 0
  10444. # endif
  10445. # endif
  10446. # endif
  10447. # endif
  10448. #endif
  10449. /* When -fvisbility=hidden is used, assume the code has been annotated
  10450. correspondingly for the symbols needed. */
  10451. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10452. int fnord () __attribute__((visibility("default")));
  10453. #endif
  10454. int fnord () { return 42; }
  10455. int main ()
  10456. {
  10457. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10458. int status = $lt_dlunknown;
  10459. if (self)
  10460. {
  10461. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10462. else
  10463. {
  10464. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10465. else puts (dlerror ());
  10466. }
  10467. /* dlclose (self); */
  10468. }
  10469. else
  10470. puts (dlerror ());
  10471. return status;
  10472. }
  10473. _LT_EOF
  10474. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10475. (eval $ac_link) 2>&5
  10476. ac_status=$?
  10477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10478. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10479. (./conftest; exit; ) >&5 2>/dev/null
  10480. lt_status=$?
  10481. case x$lt_status in
  10482. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10483. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10484. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10485. esac
  10486. else :
  10487. # compilation failed
  10488. lt_cv_dlopen_self_static=no
  10489. fi
  10490. fi
  10491. rm -fr conftest*
  10492. fi
  10493. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10494. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10495. fi
  10496. CPPFLAGS="$save_CPPFLAGS"
  10497. LDFLAGS="$save_LDFLAGS"
  10498. LIBS="$save_LIBS"
  10499. ;;
  10500. esac
  10501. case $lt_cv_dlopen_self in
  10502. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10503. *) enable_dlopen_self=unknown ;;
  10504. esac
  10505. case $lt_cv_dlopen_self_static in
  10506. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10507. *) enable_dlopen_self_static=unknown ;;
  10508. esac
  10509. fi
  10510. striplib=
  10511. old_striplib=
  10512. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10513. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10514. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10515. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10516. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10517. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10518. $as_echo "yes" >&6; }
  10519. else
  10520. # FIXME - insert some real tests, host_os isn't really good enough
  10521. case $host_os in
  10522. darwin*)
  10523. if test -n "$STRIP" ; then
  10524. striplib="$STRIP -x"
  10525. old_striplib="$STRIP -S"
  10526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10527. $as_echo "yes" >&6; }
  10528. else
  10529. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10530. $as_echo "no" >&6; }
  10531. fi
  10532. ;;
  10533. *)
  10534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10535. $as_echo "no" >&6; }
  10536. ;;
  10537. esac
  10538. fi
  10539. # Report which library types will actually be built
  10540. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10541. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10542. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10543. $as_echo "$can_build_shared" >&6; }
  10544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10545. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10546. test "$can_build_shared" = "no" && enable_shared=no
  10547. # On AIX, shared libraries and static libraries use the same namespace, and
  10548. # are all built from PIC.
  10549. case $host_os in
  10550. aix3*)
  10551. test "$enable_shared" = yes && enable_static=no
  10552. if test -n "$RANLIB"; then
  10553. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10554. postinstall_cmds='$RANLIB $lib'
  10555. fi
  10556. ;;
  10557. aix[4-9]*)
  10558. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10559. test "$enable_shared" = yes && enable_static=no
  10560. fi
  10561. ;;
  10562. esac
  10563. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10564. $as_echo "$enable_shared" >&6; }
  10565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10566. $as_echo_n "checking whether to build static libraries... " >&6; }
  10567. # Make sure either enable_shared or enable_static is yes.
  10568. test "$enable_shared" = yes || enable_static=yes
  10569. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10570. $as_echo "$enable_static" >&6; }
  10571. fi
  10572. ac_ext=c
  10573. ac_cpp='$CPP $CPPFLAGS'
  10574. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10575. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10576. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10577. CC="$lt_save_CC"
  10578. ac_config_commands="$ac_config_commands libtool"
  10579. # Only expand once:
  10580. for ac_prog in 'flex'
  10581. do
  10582. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10583. set dummy $ac_prog; ac_word=$2
  10584. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10585. $as_echo_n "checking for $ac_word... " >&6; }
  10586. if ${ac_cv_prog_FLEX+:} false; then :
  10587. $as_echo_n "(cached) " >&6
  10588. else
  10589. if test -n "$FLEX"; then
  10590. ac_cv_prog_FLEX="$FLEX" # Let the user override the test.
  10591. else
  10592. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10593. for as_dir in $PATH
  10594. do
  10595. IFS=$as_save_IFS
  10596. test -z "$as_dir" && as_dir=.
  10597. for ac_exec_ext in '' $ac_executable_extensions; do
  10598. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10599. ac_cv_prog_FLEX="$ac_prog"
  10600. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10601. break 2
  10602. fi
  10603. done
  10604. done
  10605. IFS=$as_save_IFS
  10606. fi
  10607. fi
  10608. FLEX=$ac_cv_prog_FLEX
  10609. if test -n "$FLEX"; then
  10610. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FLEX" >&5
  10611. $as_echo "$FLEX" >&6; }
  10612. else
  10613. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10614. $as_echo "no" >&6; }
  10615. fi
  10616. test -n "$FLEX" && break
  10617. done
  10618. for ac_prog in 'bison -y'
  10619. do
  10620. # Extract the first word of "$ac_prog", so it can be a program name with args.
  10621. set dummy $ac_prog; ac_word=$2
  10622. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10623. $as_echo_n "checking for $ac_word... " >&6; }
  10624. if ${ac_cv_prog_YACC+:} false; then :
  10625. $as_echo_n "(cached) " >&6
  10626. else
  10627. if test -n "$YACC"; then
  10628. ac_cv_prog_YACC="$YACC" # Let the user override the test.
  10629. else
  10630. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10631. for as_dir in $PATH
  10632. do
  10633. IFS=$as_save_IFS
  10634. test -z "$as_dir" && as_dir=.
  10635. for ac_exec_ext in '' $ac_executable_extensions; do
  10636. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10637. ac_cv_prog_YACC="$ac_prog"
  10638. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10639. break 2
  10640. fi
  10641. done
  10642. done
  10643. IFS=$as_save_IFS
  10644. fi
  10645. fi
  10646. YACC=$ac_cv_prog_YACC
  10647. if test -n "$YACC"; then
  10648. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
  10649. $as_echo "$YACC" >&6; }
  10650. else
  10651. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10652. $as_echo "no" >&6; }
  10653. fi
  10654. test -n "$YACC" && break
  10655. done
  10656. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
  10657. $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
  10658. if ${ac_cv_c_const+:} false; then :
  10659. $as_echo_n "(cached) " >&6
  10660. else
  10661. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10662. /* end confdefs.h. */
  10663. int
  10664. main ()
  10665. {
  10666. #ifndef __cplusplus
  10667. /* Ultrix mips cc rejects this sort of thing. */
  10668. typedef int charset[2];
  10669. const charset cs = { 0, 0 };
  10670. /* SunOS 4.1.1 cc rejects this. */
  10671. char const *const *pcpcc;
  10672. char **ppc;
  10673. /* NEC SVR4.0.2 mips cc rejects this. */
  10674. struct point {int x, y;};
  10675. static struct point const zero = {0,0};
  10676. /* AIX XL C 1.02.0.0 rejects this.
  10677. It does not let you subtract one const X* pointer from another in
  10678. an arm of an if-expression whose if-part is not a constant
  10679. expression */
  10680. const char *g = "string";
  10681. pcpcc = &g + (g ? g-g : 0);
  10682. /* HPUX 7.0 cc rejects these. */
  10683. ++pcpcc;
  10684. ppc = (char**) pcpcc;
  10685. pcpcc = (char const *const *) ppc;
  10686. { /* SCO 3.2v4 cc rejects this sort of thing. */
  10687. char tx;
  10688. char *t = &tx;
  10689. char const *s = 0 ? (char *) 0 : (char const *) 0;
  10690. *t++ = 0;
  10691. if (s) return 0;
  10692. }
  10693. { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
  10694. int x[] = {25, 17};
  10695. const int *foo = &x[0];
  10696. ++foo;
  10697. }
  10698. { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
  10699. typedef const int *iptr;
  10700. iptr p = 0;
  10701. ++p;
  10702. }
  10703. { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
  10704. "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
  10705. struct s { int j; const int *ap[3]; } bx;
  10706. struct s *b = &bx; b->j = 5;
  10707. }
  10708. { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
  10709. const int foo = 10;
  10710. if (!foo) return 0;
  10711. }
  10712. return !cs[0] && !zero.x;
  10713. #endif
  10714. ;
  10715. return 0;
  10716. }
  10717. _ACEOF
  10718. if ac_fn_c_try_compile "$LINENO"; then :
  10719. ac_cv_c_const=yes
  10720. else
  10721. ac_cv_c_const=no
  10722. fi
  10723. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10724. fi
  10725. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
  10726. $as_echo "$ac_cv_c_const" >&6; }
  10727. if test $ac_cv_c_const = no; then
  10728. $as_echo "@%:@define const /**/" >>confdefs.h
  10729. fi
  10730. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
  10731. $as_echo_n "checking for inline... " >&6; }
  10732. if ${ac_cv_c_inline+:} false; then :
  10733. $as_echo_n "(cached) " >&6
  10734. else
  10735. ac_cv_c_inline=no
  10736. for ac_kw in inline __inline__ __inline; do
  10737. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10738. /* end confdefs.h. */
  10739. #ifndef __cplusplus
  10740. typedef int foo_t;
  10741. static $ac_kw foo_t static_foo () {return 0; }
  10742. $ac_kw foo_t foo () {return 0; }
  10743. #endif
  10744. _ACEOF
  10745. if ac_fn_c_try_compile "$LINENO"; then :
  10746. ac_cv_c_inline=$ac_kw
  10747. fi
  10748. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10749. test "$ac_cv_c_inline" != no && break
  10750. done
  10751. fi
  10752. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
  10753. $as_echo "$ac_cv_c_inline" >&6; }
  10754. case $ac_cv_c_inline in
  10755. inline | yes) ;;
  10756. *)
  10757. case $ac_cv_c_inline in
  10758. no) ac_val=;;
  10759. *) ac_val=$ac_cv_c_inline;;
  10760. esac
  10761. cat >>confdefs.h <<_ACEOF
  10762. #ifndef __cplusplus
  10763. #define inline $ac_val
  10764. #endif
  10765. _ACEOF
  10766. ;;
  10767. esac
  10768. if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
  10769. if test -n "$ac_tool_prefix"; then
  10770. # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
  10771. set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
  10772. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10773. $as_echo_n "checking for $ac_word... " >&6; }
  10774. if ${ac_cv_path_PKG_CONFIG+:} false; then :
  10775. $as_echo_n "(cached) " >&6
  10776. else
  10777. case $PKG_CONFIG in
  10778. [\\/]* | ?:[\\/]*)
  10779. ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
  10780. ;;
  10781. *)
  10782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10783. for as_dir in $PATH
  10784. do
  10785. IFS=$as_save_IFS
  10786. test -z "$as_dir" && as_dir=.
  10787. for ac_exec_ext in '' $ac_executable_extensions; do
  10788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10789. ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10791. break 2
  10792. fi
  10793. done
  10794. done
  10795. IFS=$as_save_IFS
  10796. ;;
  10797. esac
  10798. fi
  10799. PKG_CONFIG=$ac_cv_path_PKG_CONFIG
  10800. if test -n "$PKG_CONFIG"; then
  10801. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
  10802. $as_echo "$PKG_CONFIG" >&6; }
  10803. else
  10804. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10805. $as_echo "no" >&6; }
  10806. fi
  10807. fi
  10808. if test -z "$ac_cv_path_PKG_CONFIG"; then
  10809. ac_pt_PKG_CONFIG=$PKG_CONFIG
  10810. # Extract the first word of "pkg-config", so it can be a program name with args.
  10811. set dummy pkg-config; ac_word=$2
  10812. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  10813. $as_echo_n "checking for $ac_word... " >&6; }
  10814. if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
  10815. $as_echo_n "(cached) " >&6
  10816. else
  10817. case $ac_pt_PKG_CONFIG in
  10818. [\\/]* | ?:[\\/]*)
  10819. ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
  10820. ;;
  10821. *)
  10822. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  10823. for as_dir in $PATH
  10824. do
  10825. IFS=$as_save_IFS
  10826. test -z "$as_dir" && as_dir=.
  10827. for ac_exec_ext in '' $ac_executable_extensions; do
  10828. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  10829. ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
  10830. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  10831. break 2
  10832. fi
  10833. done
  10834. done
  10835. IFS=$as_save_IFS
  10836. ;;
  10837. esac
  10838. fi
  10839. ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
  10840. if test -n "$ac_pt_PKG_CONFIG"; then
  10841. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
  10842. $as_echo "$ac_pt_PKG_CONFIG" >&6; }
  10843. else
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10845. $as_echo "no" >&6; }
  10846. fi
  10847. if test "x$ac_pt_PKG_CONFIG" = x; then
  10848. PKG_CONFIG=""
  10849. else
  10850. case $cross_compiling:$ac_tool_warned in
  10851. yes:)
  10852. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  10853. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  10854. ac_tool_warned=yes ;;
  10855. esac
  10856. PKG_CONFIG=$ac_pt_PKG_CONFIG
  10857. fi
  10858. else
  10859. PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
  10860. fi
  10861. fi
  10862. if test -n "$PKG_CONFIG"; then
  10863. _pkg_min_version=0.9.0
  10864. { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
  10865. $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
  10866. if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
  10867. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10868. $as_echo "yes" >&6; }
  10869. else
  10870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10871. $as_echo "no" >&6; }
  10872. PKG_CONFIG=""
  10873. fi
  10874. fi
  10875. pkg_failed=no
  10876. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5
  10877. $as_echo_n "checking for CHECK... " >&6; }
  10878. if test -n "$CHECK_CFLAGS"; then
  10879. pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS"
  10880. elif test -n "$PKG_CONFIG"; then
  10881. if test -n "$PKG_CONFIG" && \
  10882. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
  10883. ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
  10884. ac_status=$?
  10885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10886. test $ac_status = 0; }; then
  10887. pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.0" 2>/dev/null`
  10888. test "x$?" != "x0" && pkg_failed=yes
  10889. else
  10890. pkg_failed=yes
  10891. fi
  10892. else
  10893. pkg_failed=untried
  10894. fi
  10895. if test -n "$CHECK_LIBS"; then
  10896. pkg_cv_CHECK_LIBS="$CHECK_LIBS"
  10897. elif test -n "$PKG_CONFIG"; then
  10898. if test -n "$PKG_CONFIG" && \
  10899. { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.0\""; } >&5
  10900. ($PKG_CONFIG --exists --print-errors "check >= 0.9.0") 2>&5
  10901. ac_status=$?
  10902. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10903. test $ac_status = 0; }; then
  10904. pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.0" 2>/dev/null`
  10905. test "x$?" != "x0" && pkg_failed=yes
  10906. else
  10907. pkg_failed=yes
  10908. fi
  10909. else
  10910. pkg_failed=untried
  10911. fi
  10912. if test $pkg_failed = yes; then
  10913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10914. $as_echo "no" >&6; }
  10915. if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
  10916. _pkg_short_errors_supported=yes
  10917. else
  10918. _pkg_short_errors_supported=no
  10919. fi
  10920. if test $_pkg_short_errors_supported = yes; then
  10921. CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
  10922. else
  10923. CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.0" 2>&1`
  10924. fi
  10925. # Put the nasty error message in config.log where it belongs
  10926. echo "$CHECK_PKG_ERRORS" >&5
  10927. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
  10928. $as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
  10929. enable_unit_tests="no"
  10930. elif test $pkg_failed = untried; then
  10931. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10932. $as_echo "no" >&6; }
  10933. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: *** Disabling building of unit tests" >&5
  10934. $as_echo "$as_me: WARNING: *** Disabling building of unit tests" >&2;}
  10935. enable_unit_tests="no"
  10936. else
  10937. CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS
  10938. CHECK_LIBS=$pkg_cv_CHECK_LIBS
  10939. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10940. $as_echo "yes" >&6; }
  10941. enable_unit_tests="yes"
  10942. fi
  10943. if test "$enable_unit_tests" = "yes"; then
  10944. ENABLE_UNIT_TESTS_TRUE=
  10945. ENABLE_UNIT_TESTS_FALSE='#'
  10946. else
  10947. ENABLE_UNIT_TESTS_TRUE='#'
  10948. ENABLE_UNIT_TESTS_FALSE=
  10949. fi
  10950. @%:@ Check whether --with-pkgconfigdir was given.
  10951. if test "${with_pkgconfigdir+set}" = set; then :
  10952. withval=$with_pkgconfigdir; pkgconfigdir="$withval"
  10953. else
  10954. pkgconfigdir='${libdir}/pkgconfig'
  10955. fi
  10956. @%:@ Check whether --enable-cli was given.
  10957. if test "${enable_cli+set}" = set; then :
  10958. enableval=$enable_cli; enable_cli="$enableval"
  10959. else
  10960. enable_cli="yes"
  10961. fi
  10962. if test "$enable_cli" = "yes"; then
  10963. ENABLE_CLI_TRUE=
  10964. ENABLE_CLI_FALSE='#'
  10965. else
  10966. ENABLE_CLI_TRUE='#'
  10967. ENABLE_CLI_FALSE=
  10968. fi
  10969. @%:@ Check whether --enable-pthreads was given.
  10970. if test "${enable_pthreads+set}" = set; then :
  10971. enableval=$enable_pthreads; enable_pthreads="$enableval"
  10972. else
  10973. enable_pthreads="yes"
  10974. fi
  10975. if test "$enable_pthreads" = "no"; then
  10976. DISABLE_PTHREADS_TRUE=
  10977. DISABLE_PTHREADS_FALSE='#'
  10978. else
  10979. DISABLE_PTHREADS_TRUE='#'
  10980. DISABLE_PTHREADS_FALSE=
  10981. fi
  10982. @%:@ Check whether --enable-debug was given.
  10983. if test "${enable_debug+set}" = set; then :
  10984. enableval=$enable_debug; enable_debug="$enableval"
  10985. else
  10986. enable_debug="yes"
  10987. fi
  10988. if test "$enable_debug" = "no" ; then
  10989. ENABLE_DEBUG_TRUE=
  10990. ENABLE_DEBUG_FALSE='#'
  10991. else
  10992. ENABLE_DEBUG_TRUE='#'
  10993. ENABLE_DEBUG_FALSE=
  10994. fi
  10995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
  10996. $as_echo_n "checking for pow in -lm... " >&6; }
  10997. if ${ac_cv_lib_m_pow+:} false; then :
  10998. $as_echo_n "(cached) " >&6
  10999. else
  11000. ac_check_lib_save_LIBS=$LIBS
  11001. LIBS="-lm $LIBS"
  11002. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11003. /* end confdefs.h. */
  11004. /* Override any GCC internal prototype to avoid an error.
  11005. Use char because int might match the return type of a GCC
  11006. builtin and then its argument prototype would still apply. */
  11007. #ifdef __cplusplus
  11008. extern "C"
  11009. #endif
  11010. char pow ();
  11011. int
  11012. main ()
  11013. {
  11014. return pow ();
  11015. ;
  11016. return 0;
  11017. }
  11018. _ACEOF
  11019. if ac_fn_c_try_link "$LINENO"; then :
  11020. ac_cv_lib_m_pow=yes
  11021. else
  11022. ac_cv_lib_m_pow=no
  11023. fi
  11024. rm -f core conftest.err conftest.$ac_objext \
  11025. conftest$ac_exeext conftest.$ac_ext
  11026. LIBS=$ac_check_lib_save_LIBS
  11027. fi
  11028. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
  11029. $as_echo "$ac_cv_lib_m_pow" >&6; }
  11030. if test "x$ac_cv_lib_m_pow" = xyes; then :
  11031. cat >>confdefs.h <<_ACEOF
  11032. @%:@define HAVE_LIBM 1
  11033. _ACEOF
  11034. LIBS="-lm $LIBS"
  11035. else
  11036. as_fn_error $? "libm is required" "$LINENO" 5
  11037. fi
  11038. if test "x$enable_pthreads" = "xno"; then
  11039. $as_echo "@%:@define DISABLE_PTHREADS 1" >>confdefs.h
  11040. else
  11041. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5
  11042. $as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; }
  11043. if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then :
  11044. $as_echo_n "(cached) " >&6
  11045. else
  11046. ac_check_lib_save_LIBS=$LIBS
  11047. LIBS="-lpthread $LIBS"
  11048. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  11049. /* end confdefs.h. */
  11050. /* Override any GCC internal prototype to avoid an error.
  11051. Use char because int might match the return type of a GCC
  11052. builtin and then its argument prototype would still apply. */
  11053. #ifdef __cplusplus
  11054. extern "C"
  11055. #endif
  11056. char pthread_mutex_lock ();
  11057. int
  11058. main ()
  11059. {
  11060. return pthread_mutex_lock ();
  11061. ;
  11062. return 0;
  11063. }
  11064. _ACEOF
  11065. if ac_fn_c_try_link "$LINENO"; then :
  11066. ac_cv_lib_pthread_pthread_mutex_lock=yes
  11067. else
  11068. ac_cv_lib_pthread_pthread_mutex_lock=no
  11069. fi
  11070. rm -f core conftest.err conftest.$ac_objext \
  11071. conftest$ac_exeext conftest.$ac_ext
  11072. LIBS=$ac_check_lib_save_LIBS
  11073. fi
  11074. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5
  11075. $as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; }
  11076. if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then :
  11077. cat >>confdefs.h <<_ACEOF
  11078. @%:@define HAVE_LIBPTHREAD 1
  11079. _ACEOF
  11080. LIBS="-lpthread $LIBS"
  11081. else
  11082. as_fn_error $? "libpthread is required" "$LINENO" 5
  11083. fi
  11084. fi
  11085. if test "x$enable_debug" = "xyes"; then
  11086. $as_echo "@%:@define NL_DEBUG 1" >>confdefs.h
  11087. fi
  11088. subdirs="$subdirs doc"
  11089. ac_config_files="$ac_config_files Makefile libnl.sym libnl-3.0.pc libnl-route-3.0.pc libnl-genl-3.0.pc libnl-nf-3.0.pc libnl-cli-3.0.pc lib/Makefile include/Makefile src/Makefile src/lib/Makefile tests/Makefile man/Makefile python/Makefile python/setup.py python/doc/Makefile python/examples/Makefile python/netlink/Makefile python/netlink/genl/Makefile python/netlink/route/Makefile python/tests/Makefile include/netlink/version.h"
  11090. ac_errcount=0
  11091. if test -z "$YACC"; then
  11092. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: bison not found. Please install before continuing." >&5
  11093. $as_echo "$as_me: WARNING: bison not found. Please install before continuing." >&2;}
  11094. ac_errcount=$((ac_errcount + 1))
  11095. fi
  11096. if test -z "$FLEX"; then
  11097. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: flex not found. Please install before continuing." >&5
  11098. $as_echo "$as_me: WARNING: flex not found. Please install before continuing." >&2;}
  11099. ac_errcount=$((ac_errcount + 1))
  11100. fi
  11101. if test $ac_errcount -gt 0; then
  11102. as_fn_error $? "Required packages are missing. Please install them and rerun ./configure" "$LINENO" 5
  11103. fi
  11104. cat >confcache <<\_ACEOF
  11105. # This file is a shell script that caches the results of configure
  11106. # tests run on this system so they can be shared between configure
  11107. # scripts and configure runs, see configure's option --config-cache.
  11108. # It is not useful on other systems. If it contains results you don't
  11109. # want to keep, you may remove or edit it.
  11110. #
  11111. # config.status only pays attention to the cache file if you give it
  11112. # the --recheck option to rerun configure.
  11113. #
  11114. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  11115. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  11116. # following values.
  11117. _ACEOF
  11118. # The following way of writing the cache mishandles newlines in values,
  11119. # but we know of no workaround that is simple, portable, and efficient.
  11120. # So, we kill variables containing newlines.
  11121. # Ultrix sh set writes to stderr and can't be redirected directly,
  11122. # and sets the high bit in the cache file unless we assign to the vars.
  11123. (
  11124. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  11125. eval ac_val=\$$ac_var
  11126. case $ac_val in #(
  11127. *${as_nl}*)
  11128. case $ac_var in #(
  11129. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  11130. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  11131. esac
  11132. case $ac_var in #(
  11133. _ | IFS | as_nl) ;; #(
  11134. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  11135. *) { eval $ac_var=; unset $ac_var;} ;;
  11136. esac ;;
  11137. esac
  11138. done
  11139. (set) 2>&1 |
  11140. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  11141. *${as_nl}ac_space=\ *)
  11142. # `set' does not quote correctly, so add quotes: double-quote
  11143. # substitution turns \\\\ into \\, and sed turns \\ into \.
  11144. sed -n \
  11145. "s/'/'\\\\''/g;
  11146. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  11147. ;; #(
  11148. *)
  11149. # `set' quotes correctly as required by POSIX, so do not add quotes.
  11150. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  11151. ;;
  11152. esac |
  11153. sort
  11154. ) |
  11155. sed '
  11156. /^ac_cv_env_/b end
  11157. t clear
  11158. :clear
  11159. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  11160. t end
  11161. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  11162. :end' >>confcache
  11163. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  11164. if test -w "$cache_file"; then
  11165. if test "x$cache_file" != "x/dev/null"; then
  11166. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  11167. $as_echo "$as_me: updating cache $cache_file" >&6;}
  11168. if test ! -f "$cache_file" || test -h "$cache_file"; then
  11169. cat confcache >"$cache_file"
  11170. else
  11171. case $cache_file in #(
  11172. */* | ?:*)
  11173. mv -f confcache "$cache_file"$$ &&
  11174. mv -f "$cache_file"$$ "$cache_file" ;; #(
  11175. *)
  11176. mv -f confcache "$cache_file" ;;
  11177. esac
  11178. fi
  11179. fi
  11180. else
  11181. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  11182. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  11183. fi
  11184. fi
  11185. rm -f confcache
  11186. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  11187. # Let make expand exec_prefix.
  11188. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  11189. DEFS=-DHAVE_CONFIG_H
  11190. ac_libobjs=
  11191. ac_ltlibobjs=
  11192. U=
  11193. for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue
  11194. # 1. Remove the extension, and $U if already installed.
  11195. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  11196. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  11197. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  11198. # will be set to the directory where LIBOBJS objects are built.
  11199. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  11200. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  11201. done
  11202. LIB@&t@OBJS=$ac_libobjs
  11203. LTLIBOBJS=$ac_ltlibobjs
  11204. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  11205. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  11206. if test -n "$am_sleep_pid"; then
  11207. # Hide warnings about reused PIDs.
  11208. wait $am_sleep_pid 2>/dev/null
  11209. fi
  11210. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  11211. $as_echo "done" >&6; }
  11212. if test -n "$EXEEXT"; then
  11213. am__EXEEXT_TRUE=
  11214. am__EXEEXT_FALSE='#'
  11215. else
  11216. am__EXEEXT_TRUE='#'
  11217. am__EXEEXT_FALSE=
  11218. fi
  11219. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  11220. as_fn_error $? "conditional \"AMDEP\" was never defined.
  11221. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11222. fi
  11223. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11224. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11225. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11226. fi
  11227. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  11228. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  11229. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11230. fi
  11231. if test -z "${ENABLE_UNIT_TESTS_TRUE}" && test -z "${ENABLE_UNIT_TESTS_FALSE}"; then
  11232. as_fn_error $? "conditional \"ENABLE_UNIT_TESTS\" was never defined.
  11233. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11234. fi
  11235. if test -z "${ENABLE_CLI_TRUE}" && test -z "${ENABLE_CLI_FALSE}"; then
  11236. as_fn_error $? "conditional \"ENABLE_CLI\" was never defined.
  11237. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11238. fi
  11239. if test -z "${DISABLE_PTHREADS_TRUE}" && test -z "${DISABLE_PTHREADS_FALSE}"; then
  11240. as_fn_error $? "conditional \"DISABLE_PTHREADS\" was never defined.
  11241. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11242. fi
  11243. if test -z "${ENABLE_DEBUG_TRUE}" && test -z "${ENABLE_DEBUG_FALSE}"; then
  11244. as_fn_error $? "conditional \"ENABLE_DEBUG\" was never defined.
  11245. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  11246. fi
  11247. : "${CONFIG_STATUS=./config.status}"
  11248. ac_write_fail=0
  11249. ac_clean_files_save=$ac_clean_files
  11250. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  11251. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  11252. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  11253. as_write_fail=0
  11254. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  11255. #! $SHELL
  11256. # Generated by $as_me.
  11257. # Run this file to recreate the current configuration.
  11258. # Compiler output produced by configure, useful for debugging
  11259. # configure, is in config.log if it exists.
  11260. debug=false
  11261. ac_cs_recheck=false
  11262. ac_cs_silent=false
  11263. SHELL=\${CONFIG_SHELL-$SHELL}
  11264. export SHELL
  11265. _ASEOF
  11266. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  11267. ## -------------------- ##
  11268. ## M4sh Initialization. ##
  11269. ## -------------------- ##
  11270. # Be more Bourne compatible
  11271. DUALCASE=1; export DUALCASE # for MKS sh
  11272. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  11273. emulate sh
  11274. NULLCMD=:
  11275. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  11276. # is contrary to our usage. Disable this feature.
  11277. alias -g '${1+"$@"}'='"$@"'
  11278. setopt NO_GLOB_SUBST
  11279. else
  11280. case `(set -o) 2>/dev/null` in @%:@(
  11281. *posix*) :
  11282. set -o posix ;; @%:@(
  11283. *) :
  11284. ;;
  11285. esac
  11286. fi
  11287. as_nl='
  11288. '
  11289. export as_nl
  11290. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  11291. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  11292. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  11293. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  11294. # Prefer a ksh shell builtin over an external printf program on Solaris,
  11295. # but without wasting forks for bash or zsh.
  11296. if test -z "$BASH_VERSION$ZSH_VERSION" \
  11297. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  11298. as_echo='print -r --'
  11299. as_echo_n='print -rn --'
  11300. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  11301. as_echo='printf %s\n'
  11302. as_echo_n='printf %s'
  11303. else
  11304. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  11305. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  11306. as_echo_n='/usr/ucb/echo -n'
  11307. else
  11308. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  11309. as_echo_n_body='eval
  11310. arg=$1;
  11311. case $arg in @%:@(
  11312. *"$as_nl"*)
  11313. expr "X$arg" : "X\\(.*\\)$as_nl";
  11314. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  11315. esac;
  11316. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  11317. '
  11318. export as_echo_n_body
  11319. as_echo_n='sh -c $as_echo_n_body as_echo'
  11320. fi
  11321. export as_echo_body
  11322. as_echo='sh -c $as_echo_body as_echo'
  11323. fi
  11324. # The user is always right.
  11325. if test "${PATH_SEPARATOR+set}" != set; then
  11326. PATH_SEPARATOR=:
  11327. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  11328. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  11329. PATH_SEPARATOR=';'
  11330. }
  11331. fi
  11332. # IFS
  11333. # We need space, tab and new line, in precisely that order. Quoting is
  11334. # there to prevent editors from complaining about space-tab.
  11335. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  11336. # splitting by setting IFS to empty value.)
  11337. IFS=" "" $as_nl"
  11338. # Find who we are. Look in the path if we contain no directory separator.
  11339. as_myself=
  11340. case $0 in @%:@((
  11341. *[\\/]* ) as_myself=$0 ;;
  11342. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11343. for as_dir in $PATH
  11344. do
  11345. IFS=$as_save_IFS
  11346. test -z "$as_dir" && as_dir=.
  11347. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11348. done
  11349. IFS=$as_save_IFS
  11350. ;;
  11351. esac
  11352. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11353. # in which case we are not to be found in the path.
  11354. if test "x$as_myself" = x; then
  11355. as_myself=$0
  11356. fi
  11357. if test ! -f "$as_myself"; then
  11358. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11359. exit 1
  11360. fi
  11361. # Unset variables that we do not need and which cause bugs (e.g. in
  11362. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11363. # suppresses any "Segmentation fault" message there. '((' could
  11364. # trigger a bug in pdksh 5.2.14.
  11365. for as_var in BASH_ENV ENV MAIL MAILPATH
  11366. do eval test x\${$as_var+set} = xset \
  11367. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11368. done
  11369. PS1='$ '
  11370. PS2='> '
  11371. PS4='+ '
  11372. # NLS nuisances.
  11373. LC_ALL=C
  11374. export LC_ALL
  11375. LANGUAGE=C
  11376. export LANGUAGE
  11377. # CDPATH.
  11378. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11379. @%:@ as_fn_error STATUS ERROR [LINENO LOG_FD]
  11380. @%:@ ----------------------------------------
  11381. @%:@ Output "`basename @S|@0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11382. @%:@ provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11383. @%:@ script with STATUS, using 1 if that was 0.
  11384. as_fn_error ()
  11385. {
  11386. as_status=$1; test $as_status -eq 0 && as_status=1
  11387. if test "$4"; then
  11388. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11389. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11390. fi
  11391. $as_echo "$as_me: error: $2" >&2
  11392. as_fn_exit $as_status
  11393. } @%:@ as_fn_error
  11394. @%:@ as_fn_set_status STATUS
  11395. @%:@ -----------------------
  11396. @%:@ Set @S|@? to STATUS, without forking.
  11397. as_fn_set_status ()
  11398. {
  11399. return $1
  11400. } @%:@ as_fn_set_status
  11401. @%:@ as_fn_exit STATUS
  11402. @%:@ -----------------
  11403. @%:@ Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11404. as_fn_exit ()
  11405. {
  11406. set +e
  11407. as_fn_set_status $1
  11408. exit $1
  11409. } @%:@ as_fn_exit
  11410. @%:@ as_fn_unset VAR
  11411. @%:@ ---------------
  11412. @%:@ Portably unset VAR.
  11413. as_fn_unset ()
  11414. {
  11415. { eval $1=; unset $1;}
  11416. }
  11417. as_unset=as_fn_unset
  11418. @%:@ as_fn_append VAR VALUE
  11419. @%:@ ----------------------
  11420. @%:@ Append the text in VALUE to the end of the definition contained in VAR. Take
  11421. @%:@ advantage of any shell optimizations that allow amortized linear growth over
  11422. @%:@ repeated appends, instead of the typical quadratic growth present in naive
  11423. @%:@ implementations.
  11424. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11425. eval 'as_fn_append ()
  11426. {
  11427. eval $1+=\$2
  11428. }'
  11429. else
  11430. as_fn_append ()
  11431. {
  11432. eval $1=\$$1\$2
  11433. }
  11434. fi # as_fn_append
  11435. @%:@ as_fn_arith ARG...
  11436. @%:@ ------------------
  11437. @%:@ Perform arithmetic evaluation on the ARGs, and store the result in the
  11438. @%:@ global @S|@as_val. Take advantage of shells that can avoid forks. The arguments
  11439. @%:@ must be portable across @S|@(()) and expr.
  11440. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11441. eval 'as_fn_arith ()
  11442. {
  11443. as_val=$(( $* ))
  11444. }'
  11445. else
  11446. as_fn_arith ()
  11447. {
  11448. as_val=`expr "$@" || test $? -eq 1`
  11449. }
  11450. fi # as_fn_arith
  11451. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11452. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11453. as_expr=expr
  11454. else
  11455. as_expr=false
  11456. fi
  11457. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11458. as_basename=basename
  11459. else
  11460. as_basename=false
  11461. fi
  11462. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11463. as_dirname=dirname
  11464. else
  11465. as_dirname=false
  11466. fi
  11467. as_me=`$as_basename -- "$0" ||
  11468. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11469. X"$0" : 'X\(//\)$' \| \
  11470. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11471. $as_echo X/"$0" |
  11472. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11473. s//\1/
  11474. q
  11475. }
  11476. /^X\/\(\/\/\)$/{
  11477. s//\1/
  11478. q
  11479. }
  11480. /^X\/\(\/\).*/{
  11481. s//\1/
  11482. q
  11483. }
  11484. s/.*/./; q'`
  11485. # Avoid depending upon Character Ranges.
  11486. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11487. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11488. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11489. as_cr_digits='0123456789'
  11490. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11491. ECHO_C= ECHO_N= ECHO_T=
  11492. case `echo -n x` in @%:@(((((
  11493. -n*)
  11494. case `echo 'xy\c'` in
  11495. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11496. xy) ECHO_C='\c';;
  11497. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11498. ECHO_T=' ';;
  11499. esac;;
  11500. *)
  11501. ECHO_N='-n';;
  11502. esac
  11503. rm -f conf$$ conf$$.exe conf$$.file
  11504. if test -d conf$$.dir; then
  11505. rm -f conf$$.dir/conf$$.file
  11506. else
  11507. rm -f conf$$.dir
  11508. mkdir conf$$.dir 2>/dev/null
  11509. fi
  11510. if (echo >conf$$.file) 2>/dev/null; then
  11511. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11512. as_ln_s='ln -s'
  11513. # ... but there are two gotchas:
  11514. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11515. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11516. # In both cases, we have to default to `cp -pR'.
  11517. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11518. as_ln_s='cp -pR'
  11519. elif ln conf$$.file conf$$ 2>/dev/null; then
  11520. as_ln_s=ln
  11521. else
  11522. as_ln_s='cp -pR'
  11523. fi
  11524. else
  11525. as_ln_s='cp -pR'
  11526. fi
  11527. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11528. rmdir conf$$.dir 2>/dev/null
  11529. @%:@ as_fn_mkdir_p
  11530. @%:@ -------------
  11531. @%:@ Create "@S|@as_dir" as a directory, including parents if necessary.
  11532. as_fn_mkdir_p ()
  11533. {
  11534. case $as_dir in #(
  11535. -*) as_dir=./$as_dir;;
  11536. esac
  11537. test -d "$as_dir" || eval $as_mkdir_p || {
  11538. as_dirs=
  11539. while :; do
  11540. case $as_dir in #(
  11541. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11542. *) as_qdir=$as_dir;;
  11543. esac
  11544. as_dirs="'$as_qdir' $as_dirs"
  11545. as_dir=`$as_dirname -- "$as_dir" ||
  11546. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11547. X"$as_dir" : 'X\(//\)[^/]' \| \
  11548. X"$as_dir" : 'X\(//\)$' \| \
  11549. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11550. $as_echo X"$as_dir" |
  11551. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11552. s//\1/
  11553. q
  11554. }
  11555. /^X\(\/\/\)[^/].*/{
  11556. s//\1/
  11557. q
  11558. }
  11559. /^X\(\/\/\)$/{
  11560. s//\1/
  11561. q
  11562. }
  11563. /^X\(\/\).*/{
  11564. s//\1/
  11565. q
  11566. }
  11567. s/.*/./; q'`
  11568. test -d "$as_dir" && break
  11569. done
  11570. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11571. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11572. } @%:@ as_fn_mkdir_p
  11573. if mkdir -p . 2>/dev/null; then
  11574. as_mkdir_p='mkdir -p "$as_dir"'
  11575. else
  11576. test -d ./-p && rmdir ./-p
  11577. as_mkdir_p=false
  11578. fi
  11579. @%:@ as_fn_executable_p FILE
  11580. @%:@ -----------------------
  11581. @%:@ Test if FILE is an executable regular file.
  11582. as_fn_executable_p ()
  11583. {
  11584. test -f "$1" && test -x "$1"
  11585. } @%:@ as_fn_executable_p
  11586. as_test_x='test -x'
  11587. as_executable_p=as_fn_executable_p
  11588. # Sed expression to map a string onto a valid CPP name.
  11589. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11590. # Sed expression to map a string onto a valid variable name.
  11591. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11592. exec 6>&1
  11593. ## ----------------------------------- ##
  11594. ## Main body of $CONFIG_STATUS script. ##
  11595. ## ----------------------------------- ##
  11596. _ASEOF
  11597. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11598. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11599. # Save the log message, to keep $0 and so on meaningful, and to
  11600. # report actual input values of CONFIG_FILES etc. instead of their
  11601. # values after options handling.
  11602. ac_log="
  11603. This file was extended by libnl $as_me 3.2.25, which was
  11604. generated by GNU Autoconf 2.69. Invocation command line was
  11605. CONFIG_FILES = $CONFIG_FILES
  11606. CONFIG_HEADERS = $CONFIG_HEADERS
  11607. CONFIG_LINKS = $CONFIG_LINKS
  11608. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11609. $ $0 $@
  11610. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11611. "
  11612. _ACEOF
  11613. case $ac_config_files in *"
  11614. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11615. esac
  11616. case $ac_config_headers in *"
  11617. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11618. esac
  11619. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11620. # Files that config.status was made for.
  11621. config_files="$ac_config_files"
  11622. config_headers="$ac_config_headers"
  11623. config_commands="$ac_config_commands"
  11624. _ACEOF
  11625. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11626. ac_cs_usage="\
  11627. \`$as_me' instantiates files and other configuration actions
  11628. from templates according to the current configuration. Unless the files
  11629. and actions are specified as TAGs, all are instantiated by default.
  11630. Usage: $0 [OPTION]... [TAG]...
  11631. -h, --help print this help, then exit
  11632. -V, --version print version number and configuration settings, then exit
  11633. --config print configuration, then exit
  11634. -q, --quiet, --silent
  11635. do not print progress messages
  11636. -d, --debug don't remove temporary files
  11637. --recheck update $as_me by reconfiguring in the same conditions
  11638. --file=FILE[:TEMPLATE]
  11639. instantiate the configuration file FILE
  11640. --header=FILE[:TEMPLATE]
  11641. instantiate the configuration header FILE
  11642. Configuration files:
  11643. $config_files
  11644. Configuration headers:
  11645. $config_headers
  11646. Configuration commands:
  11647. $config_commands
  11648. Report bugs to the package provider.
  11649. libnl home page: <http://www.infradead.org/~tgr/libnl/>."
  11650. _ACEOF
  11651. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11652. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11653. ac_cs_version="\\
  11654. libnl config.status 3.2.25
  11655. configured by $0, generated by GNU Autoconf 2.69,
  11656. with options \\"\$ac_cs_config\\"
  11657. Copyright (C) 2012 Free Software Foundation, Inc.
  11658. This config.status script is free software; the Free Software Foundation
  11659. gives unlimited permission to copy, distribute and modify it."
  11660. ac_pwd='$ac_pwd'
  11661. srcdir='$srcdir'
  11662. INSTALL='$INSTALL'
  11663. MKDIR_P='$MKDIR_P'
  11664. AWK='$AWK'
  11665. test -n "\$AWK" || AWK=awk
  11666. _ACEOF
  11667. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11668. # The default lists apply if the user does not specify any file.
  11669. ac_need_defaults=:
  11670. while test $# != 0
  11671. do
  11672. case $1 in
  11673. --*=?*)
  11674. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11675. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11676. ac_shift=:
  11677. ;;
  11678. --*=)
  11679. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11680. ac_optarg=
  11681. ac_shift=:
  11682. ;;
  11683. *)
  11684. ac_option=$1
  11685. ac_optarg=$2
  11686. ac_shift=shift
  11687. ;;
  11688. esac
  11689. case $ac_option in
  11690. # Handling of the options.
  11691. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11692. ac_cs_recheck=: ;;
  11693. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11694. $as_echo "$ac_cs_version"; exit ;;
  11695. --config | --confi | --conf | --con | --co | --c )
  11696. $as_echo "$ac_cs_config"; exit ;;
  11697. --debug | --debu | --deb | --de | --d | -d )
  11698. debug=: ;;
  11699. --file | --fil | --fi | --f )
  11700. $ac_shift
  11701. case $ac_optarg in
  11702. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11703. '') as_fn_error $? "missing file argument" ;;
  11704. esac
  11705. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11706. ac_need_defaults=false;;
  11707. --header | --heade | --head | --hea )
  11708. $ac_shift
  11709. case $ac_optarg in
  11710. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11711. esac
  11712. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11713. ac_need_defaults=false;;
  11714. --he | --h)
  11715. # Conflict between --help and --header
  11716. as_fn_error $? "ambiguous option: \`$1'
  11717. Try \`$0 --help' for more information.";;
  11718. --help | --hel | -h )
  11719. $as_echo "$ac_cs_usage"; exit ;;
  11720. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11721. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11722. ac_cs_silent=: ;;
  11723. # This is an error.
  11724. -*) as_fn_error $? "unrecognized option: \`$1'
  11725. Try \`$0 --help' for more information." ;;
  11726. *) as_fn_append ac_config_targets " $1"
  11727. ac_need_defaults=false ;;
  11728. esac
  11729. shift
  11730. done
  11731. ac_configure_extra_args=
  11732. if $ac_cs_silent; then
  11733. exec 6>/dev/null
  11734. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11735. fi
  11736. _ACEOF
  11737. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11738. if \$ac_cs_recheck; then
  11739. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11740. shift
  11741. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11742. CONFIG_SHELL='$SHELL'
  11743. export CONFIG_SHELL
  11744. exec "\$@"
  11745. fi
  11746. _ACEOF
  11747. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11748. exec 5>>config.log
  11749. {
  11750. echo
  11751. sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX
  11752. @%:@@%:@ Running $as_me. @%:@@%:@
  11753. _ASBOX
  11754. $as_echo "$ac_log"
  11755. } >&5
  11756. _ACEOF
  11757. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11758. #
  11759. # INIT-COMMANDS
  11760. #
  11761. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11762. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11763. # if CDPATH is set.
  11764. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11765. sed_quote_subst='$sed_quote_subst'
  11766. double_quote_subst='$double_quote_subst'
  11767. delay_variable_subst='$delay_variable_subst'
  11768. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11769. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11770. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11771. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11772. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11773. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11774. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11775. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11776. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  11777. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11778. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11779. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11780. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11781. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11782. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11783. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11784. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11785. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11786. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11787. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11788. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11789. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11790. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11791. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11792. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11793. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11794. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11795. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11796. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11797. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  11798. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  11799. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11800. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11801. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11802. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11803. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11804. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  11805. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  11806. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  11807. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  11808. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11809. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11810. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  11811. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11812. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11813. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11814. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11815. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11816. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11817. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11818. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11819. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11820. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11821. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11822. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11823. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11824. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11825. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  11826. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  11827. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11828. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11829. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11830. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11831. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11832. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11833. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11834. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11835. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  11836. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11837. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11838. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11839. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11840. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11841. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11842. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11843. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11844. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11845. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11846. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11847. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11848. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11849. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11850. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11851. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11852. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11853. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11854. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11855. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11856. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11857. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11858. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11859. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11860. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11861. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11862. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11863. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11864. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11865. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11866. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11867. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11868. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11869. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11870. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11871. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11872. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  11873. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11874. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11875. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11876. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11877. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11878. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11879. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11880. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11881. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11882. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11883. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11884. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11885. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11886. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11887. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11888. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11889. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11890. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11891. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11892. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11893. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11894. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11895. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11896. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11897. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11898. LTCC='$LTCC'
  11899. LTCFLAGS='$LTCFLAGS'
  11900. compiler='$compiler_DEFAULT'
  11901. # A function that is used when there is no print builtin or printf.
  11902. func_fallback_echo ()
  11903. {
  11904. eval 'cat <<_LTECHO_EOF
  11905. \$1
  11906. _LTECHO_EOF'
  11907. }
  11908. # Quote evaled strings.
  11909. for var in SHELL \
  11910. ECHO \
  11911. PATH_SEPARATOR \
  11912. SED \
  11913. GREP \
  11914. EGREP \
  11915. FGREP \
  11916. LD \
  11917. NM \
  11918. LN_S \
  11919. lt_SP2NL \
  11920. lt_NL2SP \
  11921. reload_flag \
  11922. OBJDUMP \
  11923. deplibs_check_method \
  11924. file_magic_cmd \
  11925. file_magic_glob \
  11926. want_nocaseglob \
  11927. DLLTOOL \
  11928. sharedlib_from_linklib_cmd \
  11929. AR \
  11930. AR_FLAGS \
  11931. archiver_list_spec \
  11932. STRIP \
  11933. RANLIB \
  11934. CC \
  11935. CFLAGS \
  11936. compiler \
  11937. lt_cv_sys_global_symbol_pipe \
  11938. lt_cv_sys_global_symbol_to_cdecl \
  11939. lt_cv_sys_global_symbol_to_c_name_address \
  11940. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11941. nm_file_list_spec \
  11942. lt_prog_compiler_no_builtin_flag \
  11943. lt_prog_compiler_pic \
  11944. lt_prog_compiler_wl \
  11945. lt_prog_compiler_static \
  11946. lt_cv_prog_compiler_c_o \
  11947. need_locks \
  11948. MANIFEST_TOOL \
  11949. DSYMUTIL \
  11950. NMEDIT \
  11951. LIPO \
  11952. OTOOL \
  11953. OTOOL64 \
  11954. shrext_cmds \
  11955. export_dynamic_flag_spec \
  11956. whole_archive_flag_spec \
  11957. compiler_needs_object \
  11958. with_gnu_ld \
  11959. allow_undefined_flag \
  11960. no_undefined_flag \
  11961. hardcode_libdir_flag_spec \
  11962. hardcode_libdir_separator \
  11963. exclude_expsyms \
  11964. include_expsyms \
  11965. file_list_spec \
  11966. variables_saved_for_relink \
  11967. libname_spec \
  11968. library_names_spec \
  11969. soname_spec \
  11970. install_override_mode \
  11971. finish_eval \
  11972. old_striplib \
  11973. striplib; do
  11974. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11975. *[\\\\\\\`\\"\\\$]*)
  11976. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11977. ;;
  11978. *)
  11979. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11980. ;;
  11981. esac
  11982. done
  11983. # Double-quote double-evaled strings.
  11984. for var in reload_cmds \
  11985. old_postinstall_cmds \
  11986. old_postuninstall_cmds \
  11987. old_archive_cmds \
  11988. extract_expsyms_cmds \
  11989. old_archive_from_new_cmds \
  11990. old_archive_from_expsyms_cmds \
  11991. archive_cmds \
  11992. archive_expsym_cmds \
  11993. module_cmds \
  11994. module_expsym_cmds \
  11995. export_symbols_cmds \
  11996. prelink_cmds \
  11997. postlink_cmds \
  11998. postinstall_cmds \
  11999. postuninstall_cmds \
  12000. finish_cmds \
  12001. sys_lib_search_path_spec \
  12002. sys_lib_dlsearch_path_spec; do
  12003. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  12004. *[\\\\\\\`\\"\\\$]*)
  12005. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  12006. ;;
  12007. *)
  12008. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  12009. ;;
  12010. esac
  12011. done
  12012. ac_aux_dir='$ac_aux_dir'
  12013. xsi_shell='$xsi_shell'
  12014. lt_shell_append='$lt_shell_append'
  12015. # See if we are running on zsh, and set the options which allow our
  12016. # commands through without removal of \ escapes INIT.
  12017. if test -n "\${ZSH_VERSION+set}" ; then
  12018. setopt NO_GLOB_SUBST
  12019. fi
  12020. PACKAGE='$PACKAGE'
  12021. VERSION='$VERSION'
  12022. TIMESTAMP='$TIMESTAMP'
  12023. RM='$RM'
  12024. ofile='$ofile'
  12025. _ACEOF
  12026. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12027. # Handling of arguments.
  12028. for ac_config_target in $ac_config_targets
  12029. do
  12030. case $ac_config_target in
  12031. "lib/defs.h") CONFIG_HEADERS="$CONFIG_HEADERS lib/defs.h" ;;
  12032. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  12033. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  12034. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  12035. "libnl.sym") CONFIG_FILES="$CONFIG_FILES libnl.sym" ;;
  12036. "libnl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-3.0.pc" ;;
  12037. "libnl-route-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-route-3.0.pc" ;;
  12038. "libnl-genl-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-genl-3.0.pc" ;;
  12039. "libnl-nf-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-nf-3.0.pc" ;;
  12040. "libnl-cli-3.0.pc") CONFIG_FILES="$CONFIG_FILES libnl-cli-3.0.pc" ;;
  12041. "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;;
  12042. "include/Makefile") CONFIG_FILES="$CONFIG_FILES include/Makefile" ;;
  12043. "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
  12044. "src/lib/Makefile") CONFIG_FILES="$CONFIG_FILES src/lib/Makefile" ;;
  12045. "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;;
  12046. "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;;
  12047. "python/Makefile") CONFIG_FILES="$CONFIG_FILES python/Makefile" ;;
  12048. "python/setup.py") CONFIG_FILES="$CONFIG_FILES python/setup.py" ;;
  12049. "python/doc/Makefile") CONFIG_FILES="$CONFIG_FILES python/doc/Makefile" ;;
  12050. "python/examples/Makefile") CONFIG_FILES="$CONFIG_FILES python/examples/Makefile" ;;
  12051. "python/netlink/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/Makefile" ;;
  12052. "python/netlink/genl/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/genl/Makefile" ;;
  12053. "python/netlink/route/Makefile") CONFIG_FILES="$CONFIG_FILES python/netlink/route/Makefile" ;;
  12054. "python/tests/Makefile") CONFIG_FILES="$CONFIG_FILES python/tests/Makefile" ;;
  12055. "include/netlink/version.h") CONFIG_FILES="$CONFIG_FILES include/netlink/version.h" ;;
  12056. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  12057. esac
  12058. done
  12059. # If the user did not use the arguments to specify the items to instantiate,
  12060. # then the envvar interface is used. Set only those that are not.
  12061. # We use the long form for the default assignment because of an extremely
  12062. # bizarre bug on SunOS 4.1.3.
  12063. if $ac_need_defaults; then
  12064. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  12065. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  12066. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  12067. fi
  12068. # Have a temporary directory for convenience. Make it in the build tree
  12069. # simply because there is no reason against having it here, and in addition,
  12070. # creating and moving files from /tmp can sometimes cause problems.
  12071. # Hook for its removal unless debugging.
  12072. # Note that there is a small window in which the directory will not be cleaned:
  12073. # after its creation but before its name has been assigned to `$tmp'.
  12074. $debug ||
  12075. {
  12076. tmp= ac_tmp=
  12077. trap 'exit_status=$?
  12078. : "${ac_tmp:=$tmp}"
  12079. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  12080. ' 0
  12081. trap 'as_fn_exit 1' 1 2 13 15
  12082. }
  12083. # Create a (secure) tmp directory for tmp files.
  12084. {
  12085. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  12086. test -d "$tmp"
  12087. } ||
  12088. {
  12089. tmp=./conf$$-$RANDOM
  12090. (umask 077 && mkdir "$tmp")
  12091. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  12092. ac_tmp=$tmp
  12093. # Set up the scripts for CONFIG_FILES section.
  12094. # No need to generate them if there are no CONFIG_FILES.
  12095. # This happens for instance with `./config.status config.h'.
  12096. if test -n "$CONFIG_FILES"; then
  12097. ac_cr=`echo X | tr X '\015'`
  12098. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  12099. # But we know of no other shell where ac_cr would be empty at this
  12100. # point, so we can use a bashism as a fallback.
  12101. if test "x$ac_cr" = x; then
  12102. eval ac_cr=\$\'\\r\'
  12103. fi
  12104. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  12105. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  12106. ac_cs_awk_cr='\\r'
  12107. else
  12108. ac_cs_awk_cr=$ac_cr
  12109. fi
  12110. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  12111. _ACEOF
  12112. {
  12113. echo "cat >conf$$subs.awk <<_ACEOF" &&
  12114. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  12115. echo "_ACEOF"
  12116. } >conf$$subs.sh ||
  12117. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12118. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  12119. ac_delim='%!_!# '
  12120. for ac_last_try in false false false false false :; do
  12121. . ./conf$$subs.sh ||
  12122. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12123. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  12124. if test $ac_delim_n = $ac_delim_num; then
  12125. break
  12126. elif $ac_last_try; then
  12127. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  12128. else
  12129. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12130. fi
  12131. done
  12132. rm -f conf$$subs.sh
  12133. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12134. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  12135. _ACEOF
  12136. sed -n '
  12137. h
  12138. s/^/S["/; s/!.*/"]=/
  12139. p
  12140. g
  12141. s/^[^!]*!//
  12142. :repl
  12143. t repl
  12144. s/'"$ac_delim"'$//
  12145. t delim
  12146. :nl
  12147. h
  12148. s/\(.\{148\}\)..*/\1/
  12149. t more1
  12150. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  12151. p
  12152. n
  12153. b repl
  12154. :more1
  12155. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12156. p
  12157. g
  12158. s/.\{148\}//
  12159. t nl
  12160. :delim
  12161. h
  12162. s/\(.\{148\}\)..*/\1/
  12163. t more2
  12164. s/["\\]/\\&/g; s/^/"/; s/$/"/
  12165. p
  12166. b
  12167. :more2
  12168. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  12169. p
  12170. g
  12171. s/.\{148\}//
  12172. t delim
  12173. ' <conf$$subs.awk | sed '
  12174. /^[^""]/{
  12175. N
  12176. s/\n//
  12177. }
  12178. ' >>$CONFIG_STATUS || ac_write_fail=1
  12179. rm -f conf$$subs.awk
  12180. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12181. _ACAWK
  12182. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  12183. for (key in S) S_is_set[key] = 1
  12184. FS = ""
  12185. }
  12186. {
  12187. line = $ 0
  12188. nfields = split(line, field, "@")
  12189. substed = 0
  12190. len = length(field[1])
  12191. for (i = 2; i < nfields; i++) {
  12192. key = field[i]
  12193. keylen = length(key)
  12194. if (S_is_set[key]) {
  12195. value = S[key]
  12196. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  12197. len += length(value) + length(field[++i])
  12198. substed = 1
  12199. } else
  12200. len += 1 + keylen
  12201. }
  12202. print line
  12203. }
  12204. _ACAWK
  12205. _ACEOF
  12206. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12207. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  12208. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  12209. else
  12210. cat
  12211. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  12212. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  12213. _ACEOF
  12214. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  12215. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  12216. # trailing colons and then remove the whole line if VPATH becomes empty
  12217. # (actually we leave an empty line to preserve line numbers).
  12218. if test "x$srcdir" = x.; then
  12219. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  12220. h
  12221. s///
  12222. s/^/:/
  12223. s/[ ]*$/:/
  12224. s/:\$(srcdir):/:/g
  12225. s/:\${srcdir}:/:/g
  12226. s/:@srcdir@:/:/g
  12227. s/^:*//
  12228. s/:*$//
  12229. x
  12230. s/\(=[ ]*\).*/\1/
  12231. G
  12232. s/\n//
  12233. s/^[^=]*=[ ]*$//
  12234. }'
  12235. fi
  12236. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12237. fi # test -n "$CONFIG_FILES"
  12238. # Set up the scripts for CONFIG_HEADERS section.
  12239. # No need to generate them if there are no CONFIG_HEADERS.
  12240. # This happens for instance with `./config.status Makefile'.
  12241. if test -n "$CONFIG_HEADERS"; then
  12242. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  12243. BEGIN {
  12244. _ACEOF
  12245. # Transform confdefs.h into an awk script `defines.awk', embedded as
  12246. # here-document in config.status, that substitutes the proper values into
  12247. # config.h.in to produce config.h.
  12248. # Create a delimiter string that does not exist in confdefs.h, to ease
  12249. # handling of long lines.
  12250. ac_delim='%!_!# '
  12251. for ac_last_try in false false :; do
  12252. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  12253. if test -z "$ac_tt"; then
  12254. break
  12255. elif $ac_last_try; then
  12256. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  12257. else
  12258. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  12259. fi
  12260. done
  12261. # For the awk script, D is an array of macro values keyed by name,
  12262. # likewise P contains macro parameters if any. Preserve backslash
  12263. # newline sequences.
  12264. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  12265. sed -n '
  12266. s/.\{148\}/&'"$ac_delim"'/g
  12267. t rset
  12268. :rset
  12269. s/^[ ]*#[ ]*define[ ][ ]*/ /
  12270. t def
  12271. d
  12272. :def
  12273. s/\\$//
  12274. t bsnl
  12275. s/["\\]/\\&/g
  12276. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12277. D["\1"]=" \3"/p
  12278. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  12279. d
  12280. :bsnl
  12281. s/["\\]/\\&/g
  12282. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  12283. D["\1"]=" \3\\\\\\n"\\/p
  12284. t cont
  12285. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  12286. t cont
  12287. d
  12288. :cont
  12289. n
  12290. s/.\{148\}/&'"$ac_delim"'/g
  12291. t clear
  12292. :clear
  12293. s/\\$//
  12294. t bsnlc
  12295. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  12296. d
  12297. :bsnlc
  12298. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  12299. b cont
  12300. ' <confdefs.h | sed '
  12301. s/'"$ac_delim"'/"\\\
  12302. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  12303. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12304. for (key in D) D_is_set[key] = 1
  12305. FS = ""
  12306. }
  12307. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  12308. line = \$ 0
  12309. split(line, arg, " ")
  12310. if (arg[1] == "#") {
  12311. defundef = arg[2]
  12312. mac1 = arg[3]
  12313. } else {
  12314. defundef = substr(arg[1], 2)
  12315. mac1 = arg[2]
  12316. }
  12317. split(mac1, mac2, "(") #)
  12318. macro = mac2[1]
  12319. prefix = substr(line, 1, index(line, defundef) - 1)
  12320. if (D_is_set[macro]) {
  12321. # Preserve the white space surrounding the "#".
  12322. print prefix "define", macro P[macro] D[macro]
  12323. next
  12324. } else {
  12325. # Replace #undef with comments. This is necessary, for example,
  12326. # in the case of _POSIX_SOURCE, which is predefined and required
  12327. # on some systems where configure will not decide to define it.
  12328. if (defundef == "undef") {
  12329. print "/*", prefix defundef, macro, "*/"
  12330. next
  12331. }
  12332. }
  12333. }
  12334. { print }
  12335. _ACAWK
  12336. _ACEOF
  12337. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12338. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  12339. fi # test -n "$CONFIG_HEADERS"
  12340. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  12341. shift
  12342. for ac_tag
  12343. do
  12344. case $ac_tag in
  12345. :[FHLC]) ac_mode=$ac_tag; continue;;
  12346. esac
  12347. case $ac_mode$ac_tag in
  12348. :[FHL]*:*);;
  12349. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  12350. :[FH]-) ac_tag=-:-;;
  12351. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  12352. esac
  12353. ac_save_IFS=$IFS
  12354. IFS=:
  12355. set x $ac_tag
  12356. IFS=$ac_save_IFS
  12357. shift
  12358. ac_file=$1
  12359. shift
  12360. case $ac_mode in
  12361. :L) ac_source=$1;;
  12362. :[FH])
  12363. ac_file_inputs=
  12364. for ac_f
  12365. do
  12366. case $ac_f in
  12367. -) ac_f="$ac_tmp/stdin";;
  12368. *) # Look for the file first in the build tree, then in the source tree
  12369. # (if the path is not absolute). The absolute path cannot be DOS-style,
  12370. # because $ac_f cannot contain `:'.
  12371. test -f "$ac_f" ||
  12372. case $ac_f in
  12373. [\\/$]*) false;;
  12374. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  12375. esac ||
  12376. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12377. esac
  12378. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12379. as_fn_append ac_file_inputs " '$ac_f'"
  12380. done
  12381. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12382. # use $as_me), people would be surprised to read:
  12383. # /* config.h. Generated by config.status. */
  12384. configure_input='Generated from '`
  12385. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12386. `' by configure.'
  12387. if test x"$ac_file" != x-; then
  12388. configure_input="$ac_file. $configure_input"
  12389. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12390. $as_echo "$as_me: creating $ac_file" >&6;}
  12391. fi
  12392. # Neutralize special characters interpreted by sed in replacement strings.
  12393. case $configure_input in #(
  12394. *\&* | *\|* | *\\* )
  12395. ac_sed_conf_input=`$as_echo "$configure_input" |
  12396. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12397. *) ac_sed_conf_input=$configure_input;;
  12398. esac
  12399. case $ac_tag in
  12400. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12401. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12402. esac
  12403. ;;
  12404. esac
  12405. ac_dir=`$as_dirname -- "$ac_file" ||
  12406. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12407. X"$ac_file" : 'X\(//\)[^/]' \| \
  12408. X"$ac_file" : 'X\(//\)$' \| \
  12409. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12410. $as_echo X"$ac_file" |
  12411. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12412. s//\1/
  12413. q
  12414. }
  12415. /^X\(\/\/\)[^/].*/{
  12416. s//\1/
  12417. q
  12418. }
  12419. /^X\(\/\/\)$/{
  12420. s//\1/
  12421. q
  12422. }
  12423. /^X\(\/\).*/{
  12424. s//\1/
  12425. q
  12426. }
  12427. s/.*/./; q'`
  12428. as_dir="$ac_dir"; as_fn_mkdir_p
  12429. ac_builddir=.
  12430. case "$ac_dir" in
  12431. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12432. *)
  12433. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12434. # A ".." for each directory in $ac_dir_suffix.
  12435. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12436. case $ac_top_builddir_sub in
  12437. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12438. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12439. esac ;;
  12440. esac
  12441. ac_abs_top_builddir=$ac_pwd
  12442. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12443. # for backward compatibility:
  12444. ac_top_builddir=$ac_top_build_prefix
  12445. case $srcdir in
  12446. .) # We are building in place.
  12447. ac_srcdir=.
  12448. ac_top_srcdir=$ac_top_builddir_sub
  12449. ac_abs_top_srcdir=$ac_pwd ;;
  12450. [\\/]* | ?:[\\/]* ) # Absolute name.
  12451. ac_srcdir=$srcdir$ac_dir_suffix;
  12452. ac_top_srcdir=$srcdir
  12453. ac_abs_top_srcdir=$srcdir ;;
  12454. *) # Relative name.
  12455. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12456. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12457. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12458. esac
  12459. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12460. case $ac_mode in
  12461. :F)
  12462. #
  12463. # CONFIG_FILE
  12464. #
  12465. case $INSTALL in
  12466. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12467. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12468. esac
  12469. ac_MKDIR_P=$MKDIR_P
  12470. case $MKDIR_P in
  12471. [\\/$]* | ?:[\\/]* ) ;;
  12472. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12473. esac
  12474. _ACEOF
  12475. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12476. # If the template does not know about datarootdir, expand it.
  12477. # FIXME: This hack should be removed a few years after 2.60.
  12478. ac_datarootdir_hack=; ac_datarootdir_seen=
  12479. ac_sed_dataroot='
  12480. /datarootdir/ {
  12481. p
  12482. q
  12483. }
  12484. /@datadir@/p
  12485. /@docdir@/p
  12486. /@infodir@/p
  12487. /@localedir@/p
  12488. /@mandir@/p'
  12489. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12490. *datarootdir*) ac_datarootdir_seen=yes;;
  12491. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12492. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12493. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12494. _ACEOF
  12495. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12496. ac_datarootdir_hack='
  12497. s&@datadir@&$datadir&g
  12498. s&@docdir@&$docdir&g
  12499. s&@infodir@&$infodir&g
  12500. s&@localedir@&$localedir&g
  12501. s&@mandir@&$mandir&g
  12502. s&\\\${datarootdir}&$datarootdir&g' ;;
  12503. esac
  12504. _ACEOF
  12505. # Neutralize VPATH when `$srcdir' = `.'.
  12506. # Shell code in configure.ac might set extrasub.
  12507. # FIXME: do we really want to maintain this feature?
  12508. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12509. ac_sed_extra="$ac_vpsub
  12510. $extrasub
  12511. _ACEOF
  12512. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12513. :t
  12514. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12515. s|@configure_input@|$ac_sed_conf_input|;t t
  12516. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12517. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12518. s&@srcdir@&$ac_srcdir&;t t
  12519. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12520. s&@top_srcdir@&$ac_top_srcdir&;t t
  12521. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12522. s&@builddir@&$ac_builddir&;t t
  12523. s&@abs_builddir@&$ac_abs_builddir&;t t
  12524. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12525. s&@INSTALL@&$ac_INSTALL&;t t
  12526. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12527. $ac_datarootdir_hack
  12528. "
  12529. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12530. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12531. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12532. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12533. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12534. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12535. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12536. which seems to be undefined. Please make sure it is defined" >&5
  12537. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12538. which seems to be undefined. Please make sure it is defined" >&2;}
  12539. rm -f "$ac_tmp/stdin"
  12540. case $ac_file in
  12541. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12542. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12543. esac \
  12544. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12545. ;;
  12546. :H)
  12547. #
  12548. # CONFIG_HEADER
  12549. #
  12550. if test x"$ac_file" != x-; then
  12551. {
  12552. $as_echo "/* $configure_input */" \
  12553. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12554. } >"$ac_tmp/config.h" \
  12555. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12556. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12557. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12558. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12559. else
  12560. rm -f "$ac_file"
  12561. mv "$ac_tmp/config.h" "$ac_file" \
  12562. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12563. fi
  12564. else
  12565. $as_echo "/* $configure_input */" \
  12566. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12567. || as_fn_error $? "could not create -" "$LINENO" 5
  12568. fi
  12569. # Compute "$ac_file"'s index in $config_headers.
  12570. _am_arg="$ac_file"
  12571. _am_stamp_count=1
  12572. for _am_header in $config_headers :; do
  12573. case $_am_header in
  12574. $_am_arg | $_am_arg:* )
  12575. break ;;
  12576. * )
  12577. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12578. esac
  12579. done
  12580. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12581. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12582. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12583. X"$_am_arg" : 'X\(//\)$' \| \
  12584. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12585. $as_echo X"$_am_arg" |
  12586. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12587. s//\1/
  12588. q
  12589. }
  12590. /^X\(\/\/\)[^/].*/{
  12591. s//\1/
  12592. q
  12593. }
  12594. /^X\(\/\/\)$/{
  12595. s//\1/
  12596. q
  12597. }
  12598. /^X\(\/\).*/{
  12599. s//\1/
  12600. q
  12601. }
  12602. s/.*/./; q'`/stamp-h$_am_stamp_count
  12603. ;;
  12604. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12605. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12606. ;;
  12607. esac
  12608. case $ac_file$ac_mode in
  12609. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12610. # Older Autoconf quotes --file arguments for eval, but not when files
  12611. # are listed without --file. Let's play safe and only enable the eval
  12612. # if we detect the quoting.
  12613. case $CONFIG_FILES in
  12614. *\'*) eval set x "$CONFIG_FILES" ;;
  12615. *) set x $CONFIG_FILES ;;
  12616. esac
  12617. shift
  12618. for mf
  12619. do
  12620. # Strip MF so we end up with the name of the file.
  12621. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12622. # Check whether this is an Automake generated Makefile or not.
  12623. # We used to match only the files named 'Makefile.in', but
  12624. # some people rename them; so instead we look at the file content.
  12625. # Grep'ing the first line is not enough: some people post-process
  12626. # each Makefile.in and add a new line on top of each file to say so.
  12627. # Grep'ing the whole file is not good either: AIX grep has a line
  12628. # limit of 2048, but all sed's we know have understand at least 4000.
  12629. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12630. dirpart=`$as_dirname -- "$mf" ||
  12631. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12632. X"$mf" : 'X\(//\)[^/]' \| \
  12633. X"$mf" : 'X\(//\)$' \| \
  12634. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12635. $as_echo X"$mf" |
  12636. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12637. s//\1/
  12638. q
  12639. }
  12640. /^X\(\/\/\)[^/].*/{
  12641. s//\1/
  12642. q
  12643. }
  12644. /^X\(\/\/\)$/{
  12645. s//\1/
  12646. q
  12647. }
  12648. /^X\(\/\).*/{
  12649. s//\1/
  12650. q
  12651. }
  12652. s/.*/./; q'`
  12653. else
  12654. continue
  12655. fi
  12656. # Extract the definition of DEPDIR, am__include, and am__quote
  12657. # from the Makefile without running 'make'.
  12658. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12659. test -z "$DEPDIR" && continue
  12660. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12661. test -z "$am__include" && continue
  12662. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12663. # Find all dependency output files, they are included files with
  12664. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12665. # simplest approach to changing $(DEPDIR) to its actual value in the
  12666. # expansion.
  12667. for file in `sed -n "
  12668. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12669. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12670. # Make sure the directory exists.
  12671. test -f "$dirpart/$file" && continue
  12672. fdir=`$as_dirname -- "$file" ||
  12673. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12674. X"$file" : 'X\(//\)[^/]' \| \
  12675. X"$file" : 'X\(//\)$' \| \
  12676. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12677. $as_echo X"$file" |
  12678. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12679. s//\1/
  12680. q
  12681. }
  12682. /^X\(\/\/\)[^/].*/{
  12683. s//\1/
  12684. q
  12685. }
  12686. /^X\(\/\/\)$/{
  12687. s//\1/
  12688. q
  12689. }
  12690. /^X\(\/\).*/{
  12691. s//\1/
  12692. q
  12693. }
  12694. s/.*/./; q'`
  12695. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12696. # echo "creating $dirpart/$file"
  12697. echo '# dummy' > "$dirpart/$file"
  12698. done
  12699. done
  12700. }
  12701. ;;
  12702. "libtool":C)
  12703. # See if we are running on zsh, and set the options which allow our
  12704. # commands through without removal of \ escapes.
  12705. if test -n "${ZSH_VERSION+set}" ; then
  12706. setopt NO_GLOB_SUBST
  12707. fi
  12708. cfgfile="${ofile}T"
  12709. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12710. $RM "$cfgfile"
  12711. cat <<_LT_EOF >> "$cfgfile"
  12712. #! $SHELL
  12713. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12714. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12715. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12716. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12717. #
  12718. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12719. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  12720. # Foundation, Inc.
  12721. # Written by Gordon Matzigkeit, 1996
  12722. #
  12723. # This file is part of GNU Libtool.
  12724. #
  12725. # GNU Libtool is free software; you can redistribute it and/or
  12726. # modify it under the terms of the GNU General Public License as
  12727. # published by the Free Software Foundation; either version 2 of
  12728. # the License, or (at your option) any later version.
  12729. #
  12730. # As a special exception to the GNU General Public License,
  12731. # if you distribute this file as part of a program or library that
  12732. # is built using GNU Libtool, you may include this file under the
  12733. # same distribution terms that you use for the rest of that program.
  12734. #
  12735. # GNU Libtool is distributed in the hope that it will be useful,
  12736. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12737. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12738. # GNU General Public License for more details.
  12739. #
  12740. # You should have received a copy of the GNU General Public License
  12741. # along with GNU Libtool; see the file COPYING. If not, a copy
  12742. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12743. # obtained by writing to the Free Software Foundation, Inc.,
  12744. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12745. # The names of the tagged configurations supported by this script.
  12746. available_tags=""
  12747. # ### BEGIN LIBTOOL CONFIG
  12748. # Which release of libtool.m4 was used?
  12749. macro_version=$macro_version
  12750. macro_revision=$macro_revision
  12751. # Whether or not to build shared libraries.
  12752. build_libtool_libs=$enable_shared
  12753. # Whether or not to build static libraries.
  12754. build_old_libs=$enable_static
  12755. # What type of objects to build.
  12756. pic_mode=$pic_mode
  12757. # Whether or not to optimize for fast installation.
  12758. fast_install=$enable_fast_install
  12759. # Shell to use when invoking shell scripts.
  12760. SHELL=$lt_SHELL
  12761. # An echo program that protects backslashes.
  12762. ECHO=$lt_ECHO
  12763. # The PATH separator for the build system.
  12764. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  12765. # The host system.
  12766. host_alias=$host_alias
  12767. host=$host
  12768. host_os=$host_os
  12769. # The build system.
  12770. build_alias=$build_alias
  12771. build=$build
  12772. build_os=$build_os
  12773. # A sed program that does not truncate output.
  12774. SED=$lt_SED
  12775. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12776. Xsed="\$SED -e 1s/^X//"
  12777. # A grep program that handles long lines.
  12778. GREP=$lt_GREP
  12779. # An ERE matcher.
  12780. EGREP=$lt_EGREP
  12781. # A literal string matcher.
  12782. FGREP=$lt_FGREP
  12783. # A BSD- or MS-compatible name lister.
  12784. NM=$lt_NM
  12785. # Whether we need soft or hard links.
  12786. LN_S=$lt_LN_S
  12787. # What is the maximum length of a command?
  12788. max_cmd_len=$max_cmd_len
  12789. # Object file suffix (normally "o").
  12790. objext=$ac_objext
  12791. # Executable file suffix (normally "").
  12792. exeext=$exeext
  12793. # whether the shell understands "unset".
  12794. lt_unset=$lt_unset
  12795. # turn spaces into newlines.
  12796. SP2NL=$lt_lt_SP2NL
  12797. # turn newlines into spaces.
  12798. NL2SP=$lt_lt_NL2SP
  12799. # convert \$build file names to \$host format.
  12800. to_host_file_cmd=$lt_cv_to_host_file_cmd
  12801. # convert \$build files to toolchain format.
  12802. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  12803. # An object symbol dumper.
  12804. OBJDUMP=$lt_OBJDUMP
  12805. # Method to check whether dependent libraries are shared objects.
  12806. deplibs_check_method=$lt_deplibs_check_method
  12807. # Command to use when deplibs_check_method = "file_magic".
  12808. file_magic_cmd=$lt_file_magic_cmd
  12809. # How to find potential files when deplibs_check_method = "file_magic".
  12810. file_magic_glob=$lt_file_magic_glob
  12811. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  12812. want_nocaseglob=$lt_want_nocaseglob
  12813. # DLL creation program.
  12814. DLLTOOL=$lt_DLLTOOL
  12815. # Command to associate shared and link libraries.
  12816. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  12817. # The archiver.
  12818. AR=$lt_AR
  12819. # Flags to create an archive.
  12820. AR_FLAGS=$lt_AR_FLAGS
  12821. # How to feed a file listing to the archiver.
  12822. archiver_list_spec=$lt_archiver_list_spec
  12823. # A symbol stripping program.
  12824. STRIP=$lt_STRIP
  12825. # Commands used to install an old-style archive.
  12826. RANLIB=$lt_RANLIB
  12827. old_postinstall_cmds=$lt_old_postinstall_cmds
  12828. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12829. # Whether to use a lock for old archive extraction.
  12830. lock_old_archive_extraction=$lock_old_archive_extraction
  12831. # A C compiler.
  12832. LTCC=$lt_CC
  12833. # LTCC compiler flags.
  12834. LTCFLAGS=$lt_CFLAGS
  12835. # Take the output of nm and produce a listing of raw symbols and C names.
  12836. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12837. # Transform the output of nm in a proper C declaration.
  12838. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12839. # Transform the output of nm in a C name address pair.
  12840. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12841. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12842. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12843. # Specify filename containing input files for \$NM.
  12844. nm_file_list_spec=$lt_nm_file_list_spec
  12845. # The root where to search for dependent libraries,and in which our libraries should be installed.
  12846. lt_sysroot=$lt_sysroot
  12847. # The name of the directory that contains temporary libtool files.
  12848. objdir=$objdir
  12849. # Used to examine libraries when file_magic_cmd begins with "file".
  12850. MAGIC_CMD=$MAGIC_CMD
  12851. # Must we lock files when doing compilation?
  12852. need_locks=$lt_need_locks
  12853. # Manifest tool.
  12854. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  12855. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12856. DSYMUTIL=$lt_DSYMUTIL
  12857. # Tool to change global to local symbols on Mac OS X.
  12858. NMEDIT=$lt_NMEDIT
  12859. # Tool to manipulate fat objects and archives on Mac OS X.
  12860. LIPO=$lt_LIPO
  12861. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12862. OTOOL=$lt_OTOOL
  12863. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12864. OTOOL64=$lt_OTOOL64
  12865. # Old archive suffix (normally "a").
  12866. libext=$libext
  12867. # Shared library suffix (normally ".so").
  12868. shrext_cmds=$lt_shrext_cmds
  12869. # The commands to extract the exported symbol list from a shared archive.
  12870. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12871. # Variables whose values should be saved in libtool wrapper scripts and
  12872. # restored at link time.
  12873. variables_saved_for_relink=$lt_variables_saved_for_relink
  12874. # Do we need the "lib" prefix for modules?
  12875. need_lib_prefix=$need_lib_prefix
  12876. # Do we need a version for libraries?
  12877. need_version=$need_version
  12878. # Library versioning type.
  12879. version_type=$version_type
  12880. # Shared library runtime path variable.
  12881. runpath_var=$runpath_var
  12882. # Shared library path variable.
  12883. shlibpath_var=$shlibpath_var
  12884. # Is shlibpath searched before the hard-coded library search path?
  12885. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12886. # Format of library name prefix.
  12887. libname_spec=$lt_libname_spec
  12888. # List of archive names. First name is the real one, the rest are links.
  12889. # The last name is the one that the linker finds with -lNAME
  12890. library_names_spec=$lt_library_names_spec
  12891. # The coded name of the library, if different from the real name.
  12892. soname_spec=$lt_soname_spec
  12893. # Permission mode override for installation of shared libraries.
  12894. install_override_mode=$lt_install_override_mode
  12895. # Command to use after installation of a shared archive.
  12896. postinstall_cmds=$lt_postinstall_cmds
  12897. # Command to use after uninstallation of a shared archive.
  12898. postuninstall_cmds=$lt_postuninstall_cmds
  12899. # Commands used to finish a libtool library installation in a directory.
  12900. finish_cmds=$lt_finish_cmds
  12901. # As "finish_cmds", except a single script fragment to be evaled but
  12902. # not shown.
  12903. finish_eval=$lt_finish_eval
  12904. # Whether we should hardcode library paths into libraries.
  12905. hardcode_into_libs=$hardcode_into_libs
  12906. # Compile-time system search path for libraries.
  12907. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12908. # Run-time system search path for libraries.
  12909. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12910. # Whether dlopen is supported.
  12911. dlopen_support=$enable_dlopen
  12912. # Whether dlopen of programs is supported.
  12913. dlopen_self=$enable_dlopen_self
  12914. # Whether dlopen of statically linked programs is supported.
  12915. dlopen_self_static=$enable_dlopen_self_static
  12916. # Commands to strip libraries.
  12917. old_striplib=$lt_old_striplib
  12918. striplib=$lt_striplib
  12919. # The linker used to build libraries.
  12920. LD=$lt_LD
  12921. # How to create reloadable object files.
  12922. reload_flag=$lt_reload_flag
  12923. reload_cmds=$lt_reload_cmds
  12924. # Commands used to build an old-style archive.
  12925. old_archive_cmds=$lt_old_archive_cmds
  12926. # A language specific compiler.
  12927. CC=$lt_compiler
  12928. # Is the compiler the GNU compiler?
  12929. with_gcc=$GCC
  12930. # Compiler flag to turn off builtin functions.
  12931. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12932. # Additional compiler flags for building library objects.
  12933. pic_flag=$lt_lt_prog_compiler_pic
  12934. # How to pass a linker flag through the compiler.
  12935. wl=$lt_lt_prog_compiler_wl
  12936. # Compiler flag to prevent dynamic linking.
  12937. link_static_flag=$lt_lt_prog_compiler_static
  12938. # Does compiler simultaneously support -c and -o options?
  12939. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12940. # Whether or not to add -lc for building shared libraries.
  12941. build_libtool_need_lc=$archive_cmds_need_lc
  12942. # Whether or not to disallow shared libs when runtime libs are static.
  12943. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12944. # Compiler flag to allow reflexive dlopens.
  12945. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12946. # Compiler flag to generate shared objects directly from archives.
  12947. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12948. # Whether the compiler copes with passing no objects directly.
  12949. compiler_needs_object=$lt_compiler_needs_object
  12950. # Create an old-style archive from a shared archive.
  12951. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12952. # Create a temporary old-style archive to link instead of a shared archive.
  12953. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12954. # Commands used to build a shared archive.
  12955. archive_cmds=$lt_archive_cmds
  12956. archive_expsym_cmds=$lt_archive_expsym_cmds
  12957. # Commands used to build a loadable module if different from building
  12958. # a shared archive.
  12959. module_cmds=$lt_module_cmds
  12960. module_expsym_cmds=$lt_module_expsym_cmds
  12961. # Whether we are building with GNU ld or not.
  12962. with_gnu_ld=$lt_with_gnu_ld
  12963. # Flag that allows shared libraries with undefined symbols to be built.
  12964. allow_undefined_flag=$lt_allow_undefined_flag
  12965. # Flag that enforces no undefined symbols.
  12966. no_undefined_flag=$lt_no_undefined_flag
  12967. # Flag to hardcode \$libdir into a binary during linking.
  12968. # This must work even if \$libdir does not exist
  12969. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12970. # Whether we need a single "-rpath" flag with a separated argument.
  12971. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12972. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12973. # DIR into the resulting binary.
  12974. hardcode_direct=$hardcode_direct
  12975. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12976. # DIR into the resulting binary and the resulting library dependency is
  12977. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12978. # library is relocated.
  12979. hardcode_direct_absolute=$hardcode_direct_absolute
  12980. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12981. # into the resulting binary.
  12982. hardcode_minus_L=$hardcode_minus_L
  12983. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12984. # into the resulting binary.
  12985. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12986. # Set to "yes" if building a shared library automatically hardcodes DIR
  12987. # into the library and all subsequent libraries and executables linked
  12988. # against it.
  12989. hardcode_automatic=$hardcode_automatic
  12990. # Set to yes if linker adds runtime paths of dependent libraries
  12991. # to runtime path list.
  12992. inherit_rpath=$inherit_rpath
  12993. # Whether libtool must link a program against all its dependency libraries.
  12994. link_all_deplibs=$link_all_deplibs
  12995. # Set to "yes" if exported symbols are required.
  12996. always_export_symbols=$always_export_symbols
  12997. # The commands to list exported symbols.
  12998. export_symbols_cmds=$lt_export_symbols_cmds
  12999. # Symbols that should not be listed in the preloaded symbols.
  13000. exclude_expsyms=$lt_exclude_expsyms
  13001. # Symbols that must always be exported.
  13002. include_expsyms=$lt_include_expsyms
  13003. # Commands necessary for linking programs (against libraries) with templates.
  13004. prelink_cmds=$lt_prelink_cmds
  13005. # Commands necessary for finishing linking programs.
  13006. postlink_cmds=$lt_postlink_cmds
  13007. # Specify filename containing input files.
  13008. file_list_spec=$lt_file_list_spec
  13009. # How to hardcode a shared library path into an executable.
  13010. hardcode_action=$hardcode_action
  13011. # ### END LIBTOOL CONFIG
  13012. _LT_EOF
  13013. case $host_os in
  13014. aix3*)
  13015. cat <<\_LT_EOF >> "$cfgfile"
  13016. # AIX sometimes has problems with the GCC collect2 program. For some
  13017. # reason, if we set the COLLECT_NAMES environment variable, the problems
  13018. # vanish in a puff of smoke.
  13019. if test "X${COLLECT_NAMES+set}" != Xset; then
  13020. COLLECT_NAMES=
  13021. export COLLECT_NAMES
  13022. fi
  13023. _LT_EOF
  13024. ;;
  13025. esac
  13026. ltmain="$ac_aux_dir/ltmain.sh"
  13027. # We use sed instead of cat because bash on DJGPP gets confused if
  13028. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  13029. # text mode, it properly converts lines to CR/LF. This bash problem
  13030. # is reportedly fixed, but why not run on old versions too?
  13031. sed '$q' "$ltmain" >> "$cfgfile" \
  13032. || (rm -f "$cfgfile"; exit 1)
  13033. if test x"$xsi_shell" = xyes; then
  13034. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  13035. func_dirname ()\
  13036. {\
  13037. \ case ${1} in\
  13038. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13039. \ * ) func_dirname_result="${3}" ;;\
  13040. \ esac\
  13041. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  13042. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13043. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13044. test 0 -eq $? || _lt_function_replace_fail=:
  13045. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  13046. func_basename ()\
  13047. {\
  13048. \ func_basename_result="${1##*/}"\
  13049. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13050. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13051. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13052. test 0 -eq $? || _lt_function_replace_fail=:
  13053. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  13054. func_dirname_and_basename ()\
  13055. {\
  13056. \ case ${1} in\
  13057. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  13058. \ * ) func_dirname_result="${3}" ;;\
  13059. \ esac\
  13060. \ func_basename_result="${1##*/}"\
  13061. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  13062. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13063. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13064. test 0 -eq $? || _lt_function_replace_fail=:
  13065. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  13066. func_stripname ()\
  13067. {\
  13068. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  13069. \ # positional parameters, so assign one to ordinary parameter first.\
  13070. \ func_stripname_result=${3}\
  13071. \ func_stripname_result=${func_stripname_result#"${1}"}\
  13072. \ func_stripname_result=${func_stripname_result%"${2}"}\
  13073. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  13074. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13075. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13076. test 0 -eq $? || _lt_function_replace_fail=:
  13077. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  13078. func_split_long_opt ()\
  13079. {\
  13080. \ func_split_long_opt_name=${1%%=*}\
  13081. \ func_split_long_opt_arg=${1#*=}\
  13082. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13083. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13084. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13085. test 0 -eq $? || _lt_function_replace_fail=:
  13086. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  13087. func_split_short_opt ()\
  13088. {\
  13089. \ func_split_short_opt_arg=${1#??}\
  13090. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  13091. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  13092. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13093. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13094. test 0 -eq $? || _lt_function_replace_fail=:
  13095. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  13096. func_lo2o ()\
  13097. {\
  13098. \ case ${1} in\
  13099. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  13100. \ *) func_lo2o_result=${1} ;;\
  13101. \ esac\
  13102. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  13103. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13104. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13105. test 0 -eq $? || _lt_function_replace_fail=:
  13106. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  13107. func_xform ()\
  13108. {\
  13109. func_xform_result=${1%.*}.lo\
  13110. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  13111. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13112. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13113. test 0 -eq $? || _lt_function_replace_fail=:
  13114. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  13115. func_arith ()\
  13116. {\
  13117. func_arith_result=$(( $* ))\
  13118. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  13119. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13120. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13121. test 0 -eq $? || _lt_function_replace_fail=:
  13122. sed -e '/^func_len ()$/,/^} # func_len /c\
  13123. func_len ()\
  13124. {\
  13125. func_len_result=${#1}\
  13126. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  13127. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13128. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13129. test 0 -eq $? || _lt_function_replace_fail=:
  13130. fi
  13131. if test x"$lt_shell_append" = xyes; then
  13132. sed -e '/^func_append ()$/,/^} # func_append /c\
  13133. func_append ()\
  13134. {\
  13135. eval "${1}+=\\${2}"\
  13136. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  13137. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13138. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13139. test 0 -eq $? || _lt_function_replace_fail=:
  13140. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  13141. func_append_quoted ()\
  13142. {\
  13143. \ func_quote_for_eval "${2}"\
  13144. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  13145. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  13146. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13147. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13148. test 0 -eq $? || _lt_function_replace_fail=:
  13149. # Save a `func_append' function call where possible by direct use of '+='
  13150. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  13151. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13152. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13153. test 0 -eq $? || _lt_function_replace_fail=:
  13154. else
  13155. # Save a `func_append' function call even when '+=' is not available
  13156. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  13157. && mv -f "$cfgfile.tmp" "$cfgfile" \
  13158. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  13159. test 0 -eq $? || _lt_function_replace_fail=:
  13160. fi
  13161. if test x"$_lt_function_replace_fail" = x":"; then
  13162. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  13163. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  13164. fi
  13165. mv -f "$cfgfile" "$ofile" ||
  13166. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  13167. chmod +x "$ofile"
  13168. ;;
  13169. esac
  13170. done # for ac_tag
  13171. as_fn_exit 0
  13172. _ACEOF
  13173. ac_clean_files=$ac_clean_files_save
  13174. test $ac_write_fail = 0 ||
  13175. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  13176. # configure is writing to config.log, and then calls config.status.
  13177. # config.status does its own redirection, appending to config.log.
  13178. # Unfortunately, on DOS this fails, as config.log is still kept open
  13179. # by configure, so config.status won't be able to write to it; its
  13180. # output is simply discarded. So we exec the FD to /dev/null,
  13181. # effectively closing config.log, so it can be properly (re)opened and
  13182. # appended to by config.status. When coming back to configure, we
  13183. # need to make the FD available again.
  13184. if test "$no_create" != yes; then
  13185. ac_cs_success=:
  13186. ac_config_status_args=
  13187. test "$silent" = yes &&
  13188. ac_config_status_args="$ac_config_status_args --quiet"
  13189. exec 5>/dev/null
  13190. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  13191. exec 5>>config.log
  13192. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  13193. # would make configure fail if this is the last instruction.
  13194. $ac_cs_success || as_fn_exit 1
  13195. fi
  13196. #
  13197. # CONFIG_SUBDIRS section.
  13198. #
  13199. if test "$no_recursion" != yes; then
  13200. # Remove --cache-file, --srcdir, and --disable-option-checking arguments
  13201. # so they do not pile up.
  13202. ac_sub_configure_args=
  13203. ac_prev=
  13204. eval "set x $ac_configure_args"
  13205. shift
  13206. for ac_arg
  13207. do
  13208. if test -n "$ac_prev"; then
  13209. ac_prev=
  13210. continue
  13211. fi
  13212. case $ac_arg in
  13213. -cache-file | --cache-file | --cache-fil | --cache-fi \
  13214. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  13215. ac_prev=cache_file ;;
  13216. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  13217. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
  13218. | --c=*)
  13219. ;;
  13220. --config-cache | -C)
  13221. ;;
  13222. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  13223. ac_prev=srcdir ;;
  13224. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  13225. ;;
  13226. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  13227. ac_prev=prefix ;;
  13228. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  13229. ;;
  13230. --disable-option-checking)
  13231. ;;
  13232. *)
  13233. case $ac_arg in
  13234. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13235. esac
  13236. as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
  13237. esac
  13238. done
  13239. # Always prepend --prefix to ensure using the same prefix
  13240. # in subdir configurations.
  13241. ac_arg="--prefix=$prefix"
  13242. case $ac_arg in
  13243. *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  13244. esac
  13245. ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
  13246. # Pass --silent
  13247. if test "$silent" = yes; then
  13248. ac_sub_configure_args="--silent $ac_sub_configure_args"
  13249. fi
  13250. # Always prepend --disable-option-checking to silence warnings, since
  13251. # different subdirs can have different --enable and --with options.
  13252. ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
  13253. ac_popdir=`pwd`
  13254. for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
  13255. # Do not complain, so a configure script can configure whichever
  13256. # parts of a large source tree are present.
  13257. test -d "$srcdir/$ac_dir" || continue
  13258. ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
  13259. $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
  13260. $as_echo "$ac_msg" >&6
  13261. as_dir="$ac_dir"; as_fn_mkdir_p
  13262. ac_builddir=.
  13263. case "$ac_dir" in
  13264. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13265. *)
  13266. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  13267. # A ".." for each directory in $ac_dir_suffix.
  13268. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  13269. case $ac_top_builddir_sub in
  13270. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  13271. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  13272. esac ;;
  13273. esac
  13274. ac_abs_top_builddir=$ac_pwd
  13275. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  13276. # for backward compatibility:
  13277. ac_top_builddir=$ac_top_build_prefix
  13278. case $srcdir in
  13279. .) # We are building in place.
  13280. ac_srcdir=.
  13281. ac_top_srcdir=$ac_top_builddir_sub
  13282. ac_abs_top_srcdir=$ac_pwd ;;
  13283. [\\/]* | ?:[\\/]* ) # Absolute name.
  13284. ac_srcdir=$srcdir$ac_dir_suffix;
  13285. ac_top_srcdir=$srcdir
  13286. ac_abs_top_srcdir=$srcdir ;;
  13287. *) # Relative name.
  13288. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  13289. ac_top_srcdir=$ac_top_build_prefix$srcdir
  13290. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  13291. esac
  13292. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  13293. cd "$ac_dir"
  13294. # Check for guested configure; otherwise get Cygnus style configure.
  13295. if test -f "$ac_srcdir/configure.gnu"; then
  13296. ac_sub_configure=$ac_srcdir/configure.gnu
  13297. elif test -f "$ac_srcdir/configure"; then
  13298. ac_sub_configure=$ac_srcdir/configure
  13299. elif test -f "$ac_srcdir/configure.in"; then
  13300. # This should be Cygnus configure.
  13301. ac_sub_configure=$ac_aux_dir/configure
  13302. else
  13303. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
  13304. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
  13305. ac_sub_configure=
  13306. fi
  13307. # The recursion is here.
  13308. if test -n "$ac_sub_configure"; then
  13309. # Make the cache file name correct relative to the subdirectory.
  13310. case $cache_file in
  13311. [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
  13312. *) # Relative name.
  13313. ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
  13314. esac
  13315. { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
  13316. $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
  13317. # The eval makes quoting arguments work.
  13318. eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
  13319. --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
  13320. as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
  13321. fi
  13322. cd "$ac_popdir"
  13323. done
  13324. fi
  13325. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  13326. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  13327. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  13328. fi
  13329. echo "-------------------------------------------------------------------------------"
  13330. echo " NOTE"
  13331. echo ""
  13332. echo " There have been some changes starting with 3.2 regarding where and how libnl"
  13333. echo " is being installed on the system in order to allow multiple libnl versions"
  13334. echo " to be installed in parallel:"
  13335. echo ""
  13336. echo " - Headers will be installed in ${includedir}/libnl${MAJ_VERSION}, therefore"
  13337. echo " you will need to add \"-I/usr/include/libnl${MAJ_VERSION}\" to CFLAGS"
  13338. echo ""
  13339. echo " - The library basename was renamed to libnl-${MAJ_VERSION}, i.e. the SO names become"
  13340. echo " libnl-${MAJ_VERSION}.so., libnl-route-${MAJ_VERSION}.so, etc."
  13341. echo ""
  13342. echo " - libtool versioning was assumed, to ease detection of compatible library"
  13343. echo " versions."
  13344. echo ""
  13345. echo " If you are using pkg-config for detecting and linking against the library "
  13346. echo " things will continue magically as if nothing every happened. If you are "
  13347. echo " linking manually you need to adapt your Makefiles or switch to using "
  13348. echo " pkg-config files."
  13349. echo ""
  13350. echo "-------------------------------------------------------------------------------"