configure 395 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for libenet 1.3.6.
  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 $? 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 "$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 $as_val. Take advantage of shells that can avoid forks. The arguments
  369. # must be portable across $(()) 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 $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. LIBOBJS=
  533. cross_compiling=no
  534. subdirs=
  535. MFLAGS=
  536. MAKEFLAGS=
  537. # Identity of this package.
  538. PACKAGE_NAME='libenet'
  539. PACKAGE_TARNAME='libenet'
  540. PACKAGE_VERSION='1.3.6'
  541. PACKAGE_STRING='libenet 1.3.6'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. ac_unique_file="include/enet/enet.h"
  545. # Factoring default headers for most tests.
  546. ac_includes_default="\
  547. #include <stdio.h>
  548. #ifdef HAVE_SYS_TYPES_H
  549. # include <sys/types.h>
  550. #endif
  551. #ifdef HAVE_SYS_STAT_H
  552. # include <sys/stat.h>
  553. #endif
  554. #ifdef STDC_HEADERS
  555. # include <stdlib.h>
  556. # include <stddef.h>
  557. #else
  558. # ifdef HAVE_STDLIB_H
  559. # include <stdlib.h>
  560. # endif
  561. #endif
  562. #ifdef HAVE_STRING_H
  563. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  564. # include <memory.h>
  565. # endif
  566. # include <string.h>
  567. #endif
  568. #ifdef HAVE_STRINGS_H
  569. # include <strings.h>
  570. #endif
  571. #ifdef HAVE_INTTYPES_H
  572. # include <inttypes.h>
  573. #endif
  574. #ifdef HAVE_STDINT_H
  575. # include <stdint.h>
  576. #endif
  577. #ifdef HAVE_UNISTD_H
  578. # include <unistd.h>
  579. #endif"
  580. ac_subst_vars='am__EXEEXT_FALSE
  581. am__EXEEXT_TRUE
  582. LTLIBOBJS
  583. LIBOBJS
  584. CPP
  585. OTOOL64
  586. OTOOL
  587. LIPO
  588. NMEDIT
  589. DSYMUTIL
  590. MANIFEST_TOOL
  591. RANLIB
  592. ac_ct_AR
  593. AR
  594. DLLTOOL
  595. OBJDUMP
  596. LN_S
  597. NM
  598. ac_ct_DUMPBIN
  599. DUMPBIN
  600. LD
  601. FGREP
  602. EGREP
  603. GREP
  604. SED
  605. host_os
  606. host_vendor
  607. host_cpu
  608. host
  609. build_os
  610. build_vendor
  611. build_cpu
  612. build
  613. LIBTOOL
  614. am__fastdepCC_FALSE
  615. am__fastdepCC_TRUE
  616. CCDEPMODE
  617. am__nodep
  618. AMDEPBACKSLASH
  619. AMDEP_FALSE
  620. AMDEP_TRUE
  621. am__quote
  622. am__include
  623. DEPDIR
  624. OBJEXT
  625. EXEEXT
  626. ac_ct_CC
  627. CPPFLAGS
  628. LDFLAGS
  629. CFLAGS
  630. CC
  631. MAINT
  632. MAINTAINER_MODE_FALSE
  633. MAINTAINER_MODE_TRUE
  634. am__untar
  635. am__tar
  636. AMTAR
  637. am__leading_dot
  638. SET_MAKE
  639. AWK
  640. mkdir_p
  641. MKDIR_P
  642. INSTALL_STRIP_PROGRAM
  643. STRIP
  644. install_sh
  645. MAKEINFO
  646. AUTOHEADER
  647. AUTOMAKE
  648. AUTOCONF
  649. ACLOCAL
  650. VERSION
  651. PACKAGE
  652. CYGPATH_W
  653. am__isrc
  654. INSTALL_DATA
  655. INSTALL_SCRIPT
  656. INSTALL_PROGRAM
  657. target_alias
  658. host_alias
  659. build_alias
  660. LIBS
  661. ECHO_T
  662. ECHO_N
  663. ECHO_C
  664. DEFS
  665. mandir
  666. localedir
  667. libdir
  668. psdir
  669. pdfdir
  670. dvidir
  671. htmldir
  672. infodir
  673. docdir
  674. oldincludedir
  675. includedir
  676. localstatedir
  677. sharedstatedir
  678. sysconfdir
  679. datadir
  680. datarootdir
  681. libexecdir
  682. sbindir
  683. bindir
  684. program_transform_name
  685. prefix
  686. exec_prefix
  687. PACKAGE_URL
  688. PACKAGE_BUGREPORT
  689. PACKAGE_STRING
  690. PACKAGE_VERSION
  691. PACKAGE_TARNAME
  692. PACKAGE_NAME
  693. PATH_SEPARATOR
  694. SHELL'
  695. ac_subst_files=''
  696. ac_user_opts='
  697. enable_option_checking
  698. enable_maintainer_mode
  699. enable_dependency_tracking
  700. enable_shared
  701. enable_static
  702. with_pic
  703. enable_fast_install
  704. with_gnu_ld
  705. with_sysroot
  706. enable_libtool_lock
  707. '
  708. ac_precious_vars='build_alias
  709. host_alias
  710. target_alias
  711. CC
  712. CFLAGS
  713. LDFLAGS
  714. LIBS
  715. CPPFLAGS
  716. CPP'
  717. # Initialize some variables set by options.
  718. ac_init_help=
  719. ac_init_version=false
  720. ac_unrecognized_opts=
  721. ac_unrecognized_sep=
  722. # The variables have the same names as the options, with
  723. # dashes changed to underlines.
  724. cache_file=/dev/null
  725. exec_prefix=NONE
  726. no_create=
  727. no_recursion=
  728. prefix=NONE
  729. program_prefix=NONE
  730. program_suffix=NONE
  731. program_transform_name=s,x,x,
  732. silent=
  733. site=
  734. srcdir=
  735. verbose=
  736. x_includes=NONE
  737. x_libraries=NONE
  738. # Installation directory options.
  739. # These are left unexpanded so users can "make install exec_prefix=/foo"
  740. # and all the variables that are supposed to be based on exec_prefix
  741. # by default will actually change.
  742. # Use braces instead of parens because sh, perl, etc. also accept them.
  743. # (The list follows the same order as the GNU Coding Standards.)
  744. bindir='${exec_prefix}/bin'
  745. sbindir='${exec_prefix}/sbin'
  746. libexecdir='${exec_prefix}/libexec'
  747. datarootdir='${prefix}/share'
  748. datadir='${datarootdir}'
  749. sysconfdir='${prefix}/etc'
  750. sharedstatedir='${prefix}/com'
  751. localstatedir='${prefix}/var'
  752. includedir='${prefix}/include'
  753. oldincludedir='/usr/include'
  754. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  755. infodir='${datarootdir}/info'
  756. htmldir='${docdir}'
  757. dvidir='${docdir}'
  758. pdfdir='${docdir}'
  759. psdir='${docdir}'
  760. libdir='${exec_prefix}/lib'
  761. localedir='${datarootdir}/locale'
  762. mandir='${datarootdir}/man'
  763. ac_prev=
  764. ac_dashdash=
  765. for ac_option
  766. do
  767. # If the previous option needs an argument, assign it.
  768. if test -n "$ac_prev"; then
  769. eval $ac_prev=\$ac_option
  770. ac_prev=
  771. continue
  772. fi
  773. case $ac_option in
  774. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  775. *=) ac_optarg= ;;
  776. *) ac_optarg=yes ;;
  777. esac
  778. # Accept the important Cygnus configure options, so we can diagnose typos.
  779. case $ac_dashdash$ac_option in
  780. --)
  781. ac_dashdash=yes ;;
  782. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  783. ac_prev=bindir ;;
  784. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  785. bindir=$ac_optarg ;;
  786. -build | --build | --buil | --bui | --bu)
  787. ac_prev=build_alias ;;
  788. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  789. build_alias=$ac_optarg ;;
  790. -cache-file | --cache-file | --cache-fil | --cache-fi \
  791. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  792. ac_prev=cache_file ;;
  793. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  794. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  795. cache_file=$ac_optarg ;;
  796. --config-cache | -C)
  797. cache_file=config.cache ;;
  798. -datadir | --datadir | --datadi | --datad)
  799. ac_prev=datadir ;;
  800. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  801. datadir=$ac_optarg ;;
  802. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  803. | --dataroo | --dataro | --datar)
  804. ac_prev=datarootdir ;;
  805. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  806. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  807. datarootdir=$ac_optarg ;;
  808. -disable-* | --disable-*)
  809. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  810. # Reject names that are not valid shell variable names.
  811. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  812. as_fn_error $? "invalid feature name: $ac_useropt"
  813. ac_useropt_orig=$ac_useropt
  814. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  815. case $ac_user_opts in
  816. *"
  817. "enable_$ac_useropt"
  818. "*) ;;
  819. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  820. ac_unrecognized_sep=', ';;
  821. esac
  822. eval enable_$ac_useropt=no ;;
  823. -docdir | --docdir | --docdi | --doc | --do)
  824. ac_prev=docdir ;;
  825. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  826. docdir=$ac_optarg ;;
  827. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  828. ac_prev=dvidir ;;
  829. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  830. dvidir=$ac_optarg ;;
  831. -enable-* | --enable-*)
  832. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  833. # Reject names that are not valid shell variable names.
  834. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  835. as_fn_error $? "invalid feature name: $ac_useropt"
  836. ac_useropt_orig=$ac_useropt
  837. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  838. case $ac_user_opts in
  839. *"
  840. "enable_$ac_useropt"
  841. "*) ;;
  842. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  843. ac_unrecognized_sep=', ';;
  844. esac
  845. eval enable_$ac_useropt=\$ac_optarg ;;
  846. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  847. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  848. | --exec | --exe | --ex)
  849. ac_prev=exec_prefix ;;
  850. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  851. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  852. | --exec=* | --exe=* | --ex=*)
  853. exec_prefix=$ac_optarg ;;
  854. -gas | --gas | --ga | --g)
  855. # Obsolete; use --with-gas.
  856. with_gas=yes ;;
  857. -help | --help | --hel | --he | -h)
  858. ac_init_help=long ;;
  859. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  860. ac_init_help=recursive ;;
  861. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  862. ac_init_help=short ;;
  863. -host | --host | --hos | --ho)
  864. ac_prev=host_alias ;;
  865. -host=* | --host=* | --hos=* | --ho=*)
  866. host_alias=$ac_optarg ;;
  867. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  868. ac_prev=htmldir ;;
  869. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  870. | --ht=*)
  871. htmldir=$ac_optarg ;;
  872. -includedir | --includedir | --includedi | --included | --include \
  873. | --includ | --inclu | --incl | --inc)
  874. ac_prev=includedir ;;
  875. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  876. | --includ=* | --inclu=* | --incl=* | --inc=*)
  877. includedir=$ac_optarg ;;
  878. -infodir | --infodir | --infodi | --infod | --info | --inf)
  879. ac_prev=infodir ;;
  880. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  881. infodir=$ac_optarg ;;
  882. -libdir | --libdir | --libdi | --libd)
  883. ac_prev=libdir ;;
  884. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  885. libdir=$ac_optarg ;;
  886. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  887. | --libexe | --libex | --libe)
  888. ac_prev=libexecdir ;;
  889. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  890. | --libexe=* | --libex=* | --libe=*)
  891. libexecdir=$ac_optarg ;;
  892. -localedir | --localedir | --localedi | --localed | --locale)
  893. ac_prev=localedir ;;
  894. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  895. localedir=$ac_optarg ;;
  896. -localstatedir | --localstatedir | --localstatedi | --localstated \
  897. | --localstate | --localstat | --localsta | --localst | --locals)
  898. ac_prev=localstatedir ;;
  899. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  900. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  901. localstatedir=$ac_optarg ;;
  902. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  903. ac_prev=mandir ;;
  904. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  905. mandir=$ac_optarg ;;
  906. -nfp | --nfp | --nf)
  907. # Obsolete; use --without-fp.
  908. with_fp=no ;;
  909. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  910. | --no-cr | --no-c | -n)
  911. no_create=yes ;;
  912. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  913. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  914. no_recursion=yes ;;
  915. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  916. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  917. | --oldin | --oldi | --old | --ol | --o)
  918. ac_prev=oldincludedir ;;
  919. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  920. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  921. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  922. oldincludedir=$ac_optarg ;;
  923. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  924. ac_prev=prefix ;;
  925. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  926. prefix=$ac_optarg ;;
  927. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  928. | --program-pre | --program-pr | --program-p)
  929. ac_prev=program_prefix ;;
  930. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  931. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  932. program_prefix=$ac_optarg ;;
  933. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  934. | --program-suf | --program-su | --program-s)
  935. ac_prev=program_suffix ;;
  936. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  937. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  938. program_suffix=$ac_optarg ;;
  939. -program-transform-name | --program-transform-name \
  940. | --program-transform-nam | --program-transform-na \
  941. | --program-transform-n | --program-transform- \
  942. | --program-transform | --program-transfor \
  943. | --program-transfo | --program-transf \
  944. | --program-trans | --program-tran \
  945. | --progr-tra | --program-tr | --program-t)
  946. ac_prev=program_transform_name ;;
  947. -program-transform-name=* | --program-transform-name=* \
  948. | --program-transform-nam=* | --program-transform-na=* \
  949. | --program-transform-n=* | --program-transform-=* \
  950. | --program-transform=* | --program-transfor=* \
  951. | --program-transfo=* | --program-transf=* \
  952. | --program-trans=* | --program-tran=* \
  953. | --progr-tra=* | --program-tr=* | --program-t=*)
  954. program_transform_name=$ac_optarg ;;
  955. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  956. ac_prev=pdfdir ;;
  957. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  958. pdfdir=$ac_optarg ;;
  959. -psdir | --psdir | --psdi | --psd | --ps)
  960. ac_prev=psdir ;;
  961. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  962. psdir=$ac_optarg ;;
  963. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  964. | -silent | --silent | --silen | --sile | --sil)
  965. silent=yes ;;
  966. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  967. ac_prev=sbindir ;;
  968. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  969. | --sbi=* | --sb=*)
  970. sbindir=$ac_optarg ;;
  971. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  972. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  973. | --sharedst | --shareds | --shared | --share | --shar \
  974. | --sha | --sh)
  975. ac_prev=sharedstatedir ;;
  976. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  977. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  978. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  979. | --sha=* | --sh=*)
  980. sharedstatedir=$ac_optarg ;;
  981. -site | --site | --sit)
  982. ac_prev=site ;;
  983. -site=* | --site=* | --sit=*)
  984. site=$ac_optarg ;;
  985. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  986. ac_prev=srcdir ;;
  987. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  988. srcdir=$ac_optarg ;;
  989. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  990. | --syscon | --sysco | --sysc | --sys | --sy)
  991. ac_prev=sysconfdir ;;
  992. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  993. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  994. sysconfdir=$ac_optarg ;;
  995. -target | --target | --targe | --targ | --tar | --ta | --t)
  996. ac_prev=target_alias ;;
  997. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  998. target_alias=$ac_optarg ;;
  999. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1000. verbose=yes ;;
  1001. -version | --version | --versio | --versi | --vers | -V)
  1002. ac_init_version=: ;;
  1003. -with-* | --with-*)
  1004. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1005. # Reject names that are not valid shell variable names.
  1006. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1007. as_fn_error $? "invalid package name: $ac_useropt"
  1008. ac_useropt_orig=$ac_useropt
  1009. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1010. case $ac_user_opts in
  1011. *"
  1012. "with_$ac_useropt"
  1013. "*) ;;
  1014. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1015. ac_unrecognized_sep=', ';;
  1016. esac
  1017. eval with_$ac_useropt=\$ac_optarg ;;
  1018. -without-* | --without-*)
  1019. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1020. # Reject names that are not valid shell variable names.
  1021. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1022. as_fn_error $? "invalid package name: $ac_useropt"
  1023. ac_useropt_orig=$ac_useropt
  1024. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1025. case $ac_user_opts in
  1026. *"
  1027. "with_$ac_useropt"
  1028. "*) ;;
  1029. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1030. ac_unrecognized_sep=', ';;
  1031. esac
  1032. eval with_$ac_useropt=no ;;
  1033. --x)
  1034. # Obsolete; use --with-x.
  1035. with_x=yes ;;
  1036. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1037. | --x-incl | --x-inc | --x-in | --x-i)
  1038. ac_prev=x_includes ;;
  1039. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1040. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1041. x_includes=$ac_optarg ;;
  1042. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1043. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1044. ac_prev=x_libraries ;;
  1045. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1046. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1047. x_libraries=$ac_optarg ;;
  1048. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1049. Try \`$0 --help' for more information"
  1050. ;;
  1051. *=*)
  1052. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1053. # Reject names that are not valid shell variable names.
  1054. case $ac_envvar in #(
  1055. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1056. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1057. esac
  1058. eval $ac_envvar=\$ac_optarg
  1059. export $ac_envvar ;;
  1060. *)
  1061. # FIXME: should be removed in autoconf 3.0.
  1062. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1063. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1064. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1065. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1066. ;;
  1067. esac
  1068. done
  1069. if test -n "$ac_prev"; then
  1070. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1071. as_fn_error $? "missing argument to $ac_option"
  1072. fi
  1073. if test -n "$ac_unrecognized_opts"; then
  1074. case $enable_option_checking in
  1075. no) ;;
  1076. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1077. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1078. esac
  1079. fi
  1080. # Check all directory arguments for consistency.
  1081. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1082. datadir sysconfdir sharedstatedir localstatedir includedir \
  1083. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1084. libdir localedir mandir
  1085. do
  1086. eval ac_val=\$$ac_var
  1087. # Remove trailing slashes.
  1088. case $ac_val in
  1089. */ )
  1090. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1091. eval $ac_var=\$ac_val;;
  1092. esac
  1093. # Be sure to have absolute directory names.
  1094. case $ac_val in
  1095. [\\/$]* | ?:[\\/]* ) continue;;
  1096. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1097. esac
  1098. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1099. done
  1100. # There might be people who depend on the old broken behavior: `$host'
  1101. # used to hold the argument of --host etc.
  1102. # FIXME: To remove some day.
  1103. build=$build_alias
  1104. host=$host_alias
  1105. target=$target_alias
  1106. # FIXME: To remove some day.
  1107. if test "x$host_alias" != x; then
  1108. if test "x$build_alias" = x; then
  1109. cross_compiling=maybe
  1110. elif test "x$build_alias" != "x$host_alias"; then
  1111. cross_compiling=yes
  1112. fi
  1113. fi
  1114. ac_tool_prefix=
  1115. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1116. test "$silent" = yes && exec 6>/dev/null
  1117. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1118. ac_ls_di=`ls -di .` &&
  1119. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1120. as_fn_error $? "working directory cannot be determined"
  1121. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1122. as_fn_error $? "pwd does not report name of working directory"
  1123. # Find the source files, if location was not specified.
  1124. if test -z "$srcdir"; then
  1125. ac_srcdir_defaulted=yes
  1126. # Try the directory containing this script, then the parent directory.
  1127. ac_confdir=`$as_dirname -- "$as_myself" ||
  1128. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1129. X"$as_myself" : 'X\(//\)[^/]' \| \
  1130. X"$as_myself" : 'X\(//\)$' \| \
  1131. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1132. $as_echo X"$as_myself" |
  1133. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1134. s//\1/
  1135. q
  1136. }
  1137. /^X\(\/\/\)[^/].*/{
  1138. s//\1/
  1139. q
  1140. }
  1141. /^X\(\/\/\)$/{
  1142. s//\1/
  1143. q
  1144. }
  1145. /^X\(\/\).*/{
  1146. s//\1/
  1147. q
  1148. }
  1149. s/.*/./; q'`
  1150. srcdir=$ac_confdir
  1151. if test ! -r "$srcdir/$ac_unique_file"; then
  1152. srcdir=..
  1153. fi
  1154. else
  1155. ac_srcdir_defaulted=no
  1156. fi
  1157. if test ! -r "$srcdir/$ac_unique_file"; then
  1158. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1159. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1160. fi
  1161. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1162. ac_abs_confdir=`(
  1163. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1164. pwd)`
  1165. # When building in place, set srcdir=.
  1166. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1167. srcdir=.
  1168. fi
  1169. # Remove unnecessary trailing slashes from srcdir.
  1170. # Double slashes in file names in object file debugging info
  1171. # mess up M-x gdb in Emacs.
  1172. case $srcdir in
  1173. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1174. esac
  1175. for ac_var in $ac_precious_vars; do
  1176. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1177. eval ac_env_${ac_var}_value=\$${ac_var}
  1178. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1179. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1180. done
  1181. #
  1182. # Report the --help message.
  1183. #
  1184. if test "$ac_init_help" = "long"; then
  1185. # Omit some internal or obsolete options to make the list less imposing.
  1186. # This message is too long to be a string in the A/UX 3.1 sh.
  1187. cat <<_ACEOF
  1188. \`configure' configures libenet 1.3.6 to adapt to many kinds of systems.
  1189. Usage: $0 [OPTION]... [VAR=VALUE]...
  1190. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1191. VAR=VALUE. See below for descriptions of some of the useful variables.
  1192. Defaults for the options are specified in brackets.
  1193. Configuration:
  1194. -h, --help display this help and exit
  1195. --help=short display options specific to this package
  1196. --help=recursive display the short help of all the included packages
  1197. -V, --version display version information and exit
  1198. -q, --quiet, --silent do not print \`checking ...' messages
  1199. --cache-file=FILE cache test results in FILE [disabled]
  1200. -C, --config-cache alias for \`--cache-file=config.cache'
  1201. -n, --no-create do not create output files
  1202. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1203. Installation directories:
  1204. --prefix=PREFIX install architecture-independent files in PREFIX
  1205. [$ac_default_prefix]
  1206. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1207. [PREFIX]
  1208. By default, \`make install' will install all the files in
  1209. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1210. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1211. for instance \`--prefix=\$HOME'.
  1212. For better control, use the options below.
  1213. Fine tuning of the installation directories:
  1214. --bindir=DIR user executables [EPREFIX/bin]
  1215. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1216. --libexecdir=DIR program executables [EPREFIX/libexec]
  1217. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1218. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1219. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1220. --libdir=DIR object code libraries [EPREFIX/lib]
  1221. --includedir=DIR C header files [PREFIX/include]
  1222. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1223. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1224. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1225. --infodir=DIR info documentation [DATAROOTDIR/info]
  1226. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1227. --mandir=DIR man documentation [DATAROOTDIR/man]
  1228. --docdir=DIR documentation root [DATAROOTDIR/doc/libenet]
  1229. --htmldir=DIR html documentation [DOCDIR]
  1230. --dvidir=DIR dvi documentation [DOCDIR]
  1231. --pdfdir=DIR pdf documentation [DOCDIR]
  1232. --psdir=DIR ps documentation [DOCDIR]
  1233. _ACEOF
  1234. cat <<\_ACEOF
  1235. Program names:
  1236. --program-prefix=PREFIX prepend PREFIX to installed program names
  1237. --program-suffix=SUFFIX append SUFFIX to installed program names
  1238. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1239. System types:
  1240. --build=BUILD configure for building on BUILD [guessed]
  1241. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1242. _ACEOF
  1243. fi
  1244. if test -n "$ac_init_help"; then
  1245. case $ac_init_help in
  1246. short | recursive ) echo "Configuration of libenet 1.3.6:";;
  1247. esac
  1248. cat <<\_ACEOF
  1249. Optional Features:
  1250. --disable-option-checking ignore unrecognized --enable/--with options
  1251. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1252. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1253. --disable-maintainer-mode disable make rules and dependencies not useful
  1254. (and sometimes confusing) to the casual installer
  1255. --disable-dependency-tracking speeds up one-time build
  1256. --enable-dependency-tracking do not reject slow dependency extractors
  1257. --enable-shared[=PKGS] build shared libraries [default=yes]
  1258. --enable-static[=PKGS] build static libraries [default=yes]
  1259. --enable-fast-install[=PKGS]
  1260. optimize for fast installation [default=yes]
  1261. --disable-libtool-lock avoid locking (might break parallel builds)
  1262. Optional Packages:
  1263. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1264. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1265. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1266. both]
  1267. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1268. --with-sysroot=DIR Search for dependent libraries within DIR
  1269. (or the compiler's sysroot if not specified).
  1270. Some influential environment variables:
  1271. CC C compiler command
  1272. CFLAGS C compiler flags
  1273. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1274. nonstandard directory <lib dir>
  1275. LIBS libraries to pass to the linker, e.g. -l<library>
  1276. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1277. you have headers in a nonstandard directory <include dir>
  1278. CPP C preprocessor
  1279. Use these variables to override the choices made by `configure' or to help
  1280. it to find libraries and programs with nonstandard names/locations.
  1281. Report bugs to the package provider.
  1282. _ACEOF
  1283. ac_status=$?
  1284. fi
  1285. if test "$ac_init_help" = "recursive"; then
  1286. # If there are subdirs, report their specific --help.
  1287. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1288. test -d "$ac_dir" ||
  1289. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1290. continue
  1291. ac_builddir=.
  1292. case "$ac_dir" in
  1293. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1294. *)
  1295. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1296. # A ".." for each directory in $ac_dir_suffix.
  1297. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1298. case $ac_top_builddir_sub in
  1299. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1300. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1301. esac ;;
  1302. esac
  1303. ac_abs_top_builddir=$ac_pwd
  1304. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1305. # for backward compatibility:
  1306. ac_top_builddir=$ac_top_build_prefix
  1307. case $srcdir in
  1308. .) # We are building in place.
  1309. ac_srcdir=.
  1310. ac_top_srcdir=$ac_top_builddir_sub
  1311. ac_abs_top_srcdir=$ac_pwd ;;
  1312. [\\/]* | ?:[\\/]* ) # Absolute name.
  1313. ac_srcdir=$srcdir$ac_dir_suffix;
  1314. ac_top_srcdir=$srcdir
  1315. ac_abs_top_srcdir=$srcdir ;;
  1316. *) # Relative name.
  1317. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1318. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1319. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1320. esac
  1321. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1322. cd "$ac_dir" || { ac_status=$?; continue; }
  1323. # Check for guested configure.
  1324. if test -f "$ac_srcdir/configure.gnu"; then
  1325. echo &&
  1326. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1327. elif test -f "$ac_srcdir/configure"; then
  1328. echo &&
  1329. $SHELL "$ac_srcdir/configure" --help=recursive
  1330. else
  1331. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1332. fi || ac_status=$?
  1333. cd "$ac_pwd" || { ac_status=$?; break; }
  1334. done
  1335. fi
  1336. test -n "$ac_init_help" && exit $ac_status
  1337. if $ac_init_version; then
  1338. cat <<\_ACEOF
  1339. libenet configure 1.3.6
  1340. generated by GNU Autoconf 2.69
  1341. Copyright (C) 2012 Free Software Foundation, Inc.
  1342. This configure script is free software; the Free Software Foundation
  1343. gives unlimited permission to copy, distribute and modify it.
  1344. _ACEOF
  1345. exit
  1346. fi
  1347. ## ------------------------ ##
  1348. ## Autoconf initialization. ##
  1349. ## ------------------------ ##
  1350. # ac_fn_c_try_compile LINENO
  1351. # --------------------------
  1352. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1353. ac_fn_c_try_compile ()
  1354. {
  1355. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1356. rm -f conftest.$ac_objext
  1357. if { { ac_try="$ac_compile"
  1358. case "(($ac_try" in
  1359. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1360. *) ac_try_echo=$ac_try;;
  1361. esac
  1362. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1363. $as_echo "$ac_try_echo"; } >&5
  1364. (eval "$ac_compile") 2>conftest.err
  1365. ac_status=$?
  1366. if test -s conftest.err; then
  1367. grep -v '^ *+' conftest.err >conftest.er1
  1368. cat conftest.er1 >&5
  1369. mv -f conftest.er1 conftest.err
  1370. fi
  1371. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1372. test $ac_status = 0; } && {
  1373. test -z "$ac_c_werror_flag" ||
  1374. test ! -s conftest.err
  1375. } && test -s conftest.$ac_objext; then :
  1376. ac_retval=0
  1377. else
  1378. $as_echo "$as_me: failed program was:" >&5
  1379. sed 's/^/| /' conftest.$ac_ext >&5
  1380. ac_retval=1
  1381. fi
  1382. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1383. as_fn_set_status $ac_retval
  1384. } # ac_fn_c_try_compile
  1385. # ac_fn_c_try_link LINENO
  1386. # -----------------------
  1387. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1388. ac_fn_c_try_link ()
  1389. {
  1390. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1391. rm -f conftest.$ac_objext conftest$ac_exeext
  1392. if { { ac_try="$ac_link"
  1393. case "(($ac_try" in
  1394. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1395. *) ac_try_echo=$ac_try;;
  1396. esac
  1397. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1398. $as_echo "$ac_try_echo"; } >&5
  1399. (eval "$ac_link") 2>conftest.err
  1400. ac_status=$?
  1401. if test -s conftest.err; then
  1402. grep -v '^ *+' conftest.err >conftest.er1
  1403. cat conftest.er1 >&5
  1404. mv -f conftest.er1 conftest.err
  1405. fi
  1406. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1407. test $ac_status = 0; } && {
  1408. test -z "$ac_c_werror_flag" ||
  1409. test ! -s conftest.err
  1410. } && test -s conftest$ac_exeext && {
  1411. test "$cross_compiling" = yes ||
  1412. test -x conftest$ac_exeext
  1413. }; then :
  1414. ac_retval=0
  1415. else
  1416. $as_echo "$as_me: failed program was:" >&5
  1417. sed 's/^/| /' conftest.$ac_ext >&5
  1418. ac_retval=1
  1419. fi
  1420. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1421. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1422. # interfere with the next link command; also delete a directory that is
  1423. # left behind by Apple's compiler. We do this before executing the actions.
  1424. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1425. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1426. as_fn_set_status $ac_retval
  1427. } # ac_fn_c_try_link
  1428. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1429. # -------------------------------------------------------
  1430. # Tests whether HEADER exists and can be compiled using the include files in
  1431. # INCLUDES, setting the cache variable VAR accordingly.
  1432. ac_fn_c_check_header_compile ()
  1433. {
  1434. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1436. $as_echo_n "checking for $2... " >&6; }
  1437. if eval \${$3+:} false; then :
  1438. $as_echo_n "(cached) " >&6
  1439. else
  1440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1441. /* end confdefs.h. */
  1442. $4
  1443. #include <$2>
  1444. _ACEOF
  1445. if ac_fn_c_try_compile "$LINENO"; then :
  1446. eval "$3=yes"
  1447. else
  1448. eval "$3=no"
  1449. fi
  1450. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1451. fi
  1452. eval ac_res=\$$3
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1454. $as_echo "$ac_res" >&6; }
  1455. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1456. } # ac_fn_c_check_header_compile
  1457. # ac_fn_c_try_cpp LINENO
  1458. # ----------------------
  1459. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1460. ac_fn_c_try_cpp ()
  1461. {
  1462. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1463. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1464. case "(($ac_try" in
  1465. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1466. *) ac_try_echo=$ac_try;;
  1467. esac
  1468. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1469. $as_echo "$ac_try_echo"; } >&5
  1470. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1471. ac_status=$?
  1472. if test -s conftest.err; then
  1473. grep -v '^ *+' conftest.err >conftest.er1
  1474. cat conftest.er1 >&5
  1475. mv -f conftest.er1 conftest.err
  1476. fi
  1477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1478. test $ac_status = 0; } > conftest.i && {
  1479. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1480. test ! -s conftest.err
  1481. }; then :
  1482. ac_retval=0
  1483. else
  1484. $as_echo "$as_me: failed program was:" >&5
  1485. sed 's/^/| /' conftest.$ac_ext >&5
  1486. ac_retval=1
  1487. fi
  1488. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1489. as_fn_set_status $ac_retval
  1490. } # ac_fn_c_try_cpp
  1491. # ac_fn_c_try_run LINENO
  1492. # ----------------------
  1493. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1494. # that executables *can* be run.
  1495. ac_fn_c_try_run ()
  1496. {
  1497. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1498. if { { ac_try="$ac_link"
  1499. case "(($ac_try" in
  1500. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1501. *) ac_try_echo=$ac_try;;
  1502. esac
  1503. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1504. $as_echo "$ac_try_echo"; } >&5
  1505. (eval "$ac_link") 2>&5
  1506. ac_status=$?
  1507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1508. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1509. { { case "(($ac_try" in
  1510. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1511. *) ac_try_echo=$ac_try;;
  1512. esac
  1513. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1514. $as_echo "$ac_try_echo"; } >&5
  1515. (eval "$ac_try") 2>&5
  1516. ac_status=$?
  1517. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1518. test $ac_status = 0; }; }; then :
  1519. ac_retval=0
  1520. else
  1521. $as_echo "$as_me: program exited with status $ac_status" >&5
  1522. $as_echo "$as_me: failed program was:" >&5
  1523. sed 's/^/| /' conftest.$ac_ext >&5
  1524. ac_retval=$ac_status
  1525. fi
  1526. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1527. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1528. as_fn_set_status $ac_retval
  1529. } # ac_fn_c_try_run
  1530. # ac_fn_c_check_func LINENO FUNC VAR
  1531. # ----------------------------------
  1532. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1533. ac_fn_c_check_func ()
  1534. {
  1535. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1536. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1537. $as_echo_n "checking for $2... " >&6; }
  1538. if eval \${$3+:} false; then :
  1539. $as_echo_n "(cached) " >&6
  1540. else
  1541. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1542. /* end confdefs.h. */
  1543. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1544. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1545. #define $2 innocuous_$2
  1546. /* System header to define __stub macros and hopefully few prototypes,
  1547. which can conflict with char $2 (); below.
  1548. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1549. <limits.h> exists even on freestanding compilers. */
  1550. #ifdef __STDC__
  1551. # include <limits.h>
  1552. #else
  1553. # include <assert.h>
  1554. #endif
  1555. #undef $2
  1556. /* Override any GCC internal prototype to avoid an error.
  1557. Use char because int might match the return type of a GCC
  1558. builtin and then its argument prototype would still apply. */
  1559. #ifdef __cplusplus
  1560. extern "C"
  1561. #endif
  1562. char $2 ();
  1563. /* The GNU C library defines this for functions which it implements
  1564. to always fail with ENOSYS. Some functions are actually named
  1565. something starting with __ and the normal name is an alias. */
  1566. #if defined __stub_$2 || defined __stub___$2
  1567. choke me
  1568. #endif
  1569. int
  1570. main ()
  1571. {
  1572. return $2 ();
  1573. ;
  1574. return 0;
  1575. }
  1576. _ACEOF
  1577. if ac_fn_c_try_link "$LINENO"; then :
  1578. eval "$3=yes"
  1579. else
  1580. eval "$3=no"
  1581. fi
  1582. rm -f core conftest.err conftest.$ac_objext \
  1583. conftest$ac_exeext conftest.$ac_ext
  1584. fi
  1585. eval ac_res=\$$3
  1586. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1587. $as_echo "$ac_res" >&6; }
  1588. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1589. } # ac_fn_c_check_func
  1590. # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
  1591. # ----------------------------------------------------
  1592. # Tries to find if the field MEMBER exists in type AGGR, after including
  1593. # INCLUDES, setting cache variable VAR accordingly.
  1594. ac_fn_c_check_member ()
  1595. {
  1596. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1597. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
  1598. $as_echo_n "checking for $2.$3... " >&6; }
  1599. if eval \${$4+:} false; then :
  1600. $as_echo_n "(cached) " >&6
  1601. else
  1602. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1603. /* end confdefs.h. */
  1604. $5
  1605. int
  1606. main ()
  1607. {
  1608. static $2 ac_aggr;
  1609. if (ac_aggr.$3)
  1610. return 0;
  1611. ;
  1612. return 0;
  1613. }
  1614. _ACEOF
  1615. if ac_fn_c_try_compile "$LINENO"; then :
  1616. eval "$4=yes"
  1617. else
  1618. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1619. /* end confdefs.h. */
  1620. $5
  1621. int
  1622. main ()
  1623. {
  1624. static $2 ac_aggr;
  1625. if (sizeof ac_aggr.$3)
  1626. return 0;
  1627. ;
  1628. return 0;
  1629. }
  1630. _ACEOF
  1631. if ac_fn_c_try_compile "$LINENO"; then :
  1632. eval "$4=yes"
  1633. else
  1634. eval "$4=no"
  1635. fi
  1636. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1637. fi
  1638. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1639. fi
  1640. eval ac_res=\$$4
  1641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1642. $as_echo "$ac_res" >&6; }
  1643. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1644. } # ac_fn_c_check_member
  1645. # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
  1646. # -------------------------------------------
  1647. # Tests whether TYPE exists after having included INCLUDES, setting cache
  1648. # variable VAR accordingly.
  1649. ac_fn_c_check_type ()
  1650. {
  1651. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1652. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1653. $as_echo_n "checking for $2... " >&6; }
  1654. if eval \${$3+:} false; then :
  1655. $as_echo_n "(cached) " >&6
  1656. else
  1657. eval "$3=no"
  1658. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1659. /* end confdefs.h. */
  1660. $4
  1661. int
  1662. main ()
  1663. {
  1664. if (sizeof ($2))
  1665. return 0;
  1666. ;
  1667. return 0;
  1668. }
  1669. _ACEOF
  1670. if ac_fn_c_try_compile "$LINENO"; then :
  1671. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1672. /* end confdefs.h. */
  1673. $4
  1674. int
  1675. main ()
  1676. {
  1677. if (sizeof (($2)))
  1678. return 0;
  1679. ;
  1680. return 0;
  1681. }
  1682. _ACEOF
  1683. if ac_fn_c_try_compile "$LINENO"; then :
  1684. else
  1685. eval "$3=yes"
  1686. fi
  1687. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1688. fi
  1689. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1690. fi
  1691. eval ac_res=\$$3
  1692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1693. $as_echo "$ac_res" >&6; }
  1694. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1695. } # ac_fn_c_check_type
  1696. cat >config.log <<_ACEOF
  1697. This file contains any messages produced by compilers while
  1698. running configure, to aid debugging if configure makes a mistake.
  1699. It was created by libenet $as_me 1.3.6, which was
  1700. generated by GNU Autoconf 2.69. Invocation command line was
  1701. $ $0 $@
  1702. _ACEOF
  1703. exec 5>>config.log
  1704. {
  1705. cat <<_ASUNAME
  1706. ## --------- ##
  1707. ## Platform. ##
  1708. ## --------- ##
  1709. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1710. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1711. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1712. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1713. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1714. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1715. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1716. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1717. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1718. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1719. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1720. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1721. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1722. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1723. _ASUNAME
  1724. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1725. for as_dir in $PATH
  1726. do
  1727. IFS=$as_save_IFS
  1728. test -z "$as_dir" && as_dir=.
  1729. $as_echo "PATH: $as_dir"
  1730. done
  1731. IFS=$as_save_IFS
  1732. } >&5
  1733. cat >&5 <<_ACEOF
  1734. ## ----------- ##
  1735. ## Core tests. ##
  1736. ## ----------- ##
  1737. _ACEOF
  1738. # Keep a trace of the command line.
  1739. # Strip out --no-create and --no-recursion so they do not pile up.
  1740. # Strip out --silent because we don't want to record it for future runs.
  1741. # Also quote any args containing shell meta-characters.
  1742. # Make two passes to allow for proper duplicate-argument suppression.
  1743. ac_configure_args=
  1744. ac_configure_args0=
  1745. ac_configure_args1=
  1746. ac_must_keep_next=false
  1747. for ac_pass in 1 2
  1748. do
  1749. for ac_arg
  1750. do
  1751. case $ac_arg in
  1752. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1753. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1754. | -silent | --silent | --silen | --sile | --sil)
  1755. continue ;;
  1756. *\'*)
  1757. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1758. esac
  1759. case $ac_pass in
  1760. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1761. 2)
  1762. as_fn_append ac_configure_args1 " '$ac_arg'"
  1763. if test $ac_must_keep_next = true; then
  1764. ac_must_keep_next=false # Got value, back to normal.
  1765. else
  1766. case $ac_arg in
  1767. *=* | --config-cache | -C | -disable-* | --disable-* \
  1768. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1769. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1770. | -with-* | --with-* | -without-* | --without-* | --x)
  1771. case "$ac_configure_args0 " in
  1772. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1773. esac
  1774. ;;
  1775. -* ) ac_must_keep_next=true ;;
  1776. esac
  1777. fi
  1778. as_fn_append ac_configure_args " '$ac_arg'"
  1779. ;;
  1780. esac
  1781. done
  1782. done
  1783. { ac_configure_args0=; unset ac_configure_args0;}
  1784. { ac_configure_args1=; unset ac_configure_args1;}
  1785. # When interrupted or exit'd, cleanup temporary files, and complete
  1786. # config.log. We remove comments because anyway the quotes in there
  1787. # would cause problems or look ugly.
  1788. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1789. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1790. trap 'exit_status=$?
  1791. # Save into config.log some information that might help in debugging.
  1792. {
  1793. echo
  1794. $as_echo "## ---------------- ##
  1795. ## Cache variables. ##
  1796. ## ---------------- ##"
  1797. echo
  1798. # The following way of writing the cache mishandles newlines in values,
  1799. (
  1800. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1801. eval ac_val=\$$ac_var
  1802. case $ac_val in #(
  1803. *${as_nl}*)
  1804. case $ac_var in #(
  1805. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1806. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1807. esac
  1808. case $ac_var in #(
  1809. _ | IFS | as_nl) ;; #(
  1810. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1811. *) { eval $ac_var=; unset $ac_var;} ;;
  1812. esac ;;
  1813. esac
  1814. done
  1815. (set) 2>&1 |
  1816. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1817. *${as_nl}ac_space=\ *)
  1818. sed -n \
  1819. "s/'\''/'\''\\\\'\'''\''/g;
  1820. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1821. ;; #(
  1822. *)
  1823. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1824. ;;
  1825. esac |
  1826. sort
  1827. )
  1828. echo
  1829. $as_echo "## ----------------- ##
  1830. ## Output variables. ##
  1831. ## ----------------- ##"
  1832. echo
  1833. for ac_var in $ac_subst_vars
  1834. do
  1835. eval ac_val=\$$ac_var
  1836. case $ac_val in
  1837. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1838. esac
  1839. $as_echo "$ac_var='\''$ac_val'\''"
  1840. done | sort
  1841. echo
  1842. if test -n "$ac_subst_files"; then
  1843. $as_echo "## ------------------- ##
  1844. ## File substitutions. ##
  1845. ## ------------------- ##"
  1846. echo
  1847. for ac_var in $ac_subst_files
  1848. do
  1849. eval ac_val=\$$ac_var
  1850. case $ac_val in
  1851. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1852. esac
  1853. $as_echo "$ac_var='\''$ac_val'\''"
  1854. done | sort
  1855. echo
  1856. fi
  1857. if test -s confdefs.h; then
  1858. $as_echo "## ----------- ##
  1859. ## confdefs.h. ##
  1860. ## ----------- ##"
  1861. echo
  1862. cat confdefs.h
  1863. echo
  1864. fi
  1865. test "$ac_signal" != 0 &&
  1866. $as_echo "$as_me: caught signal $ac_signal"
  1867. $as_echo "$as_me: exit $exit_status"
  1868. } >&5
  1869. rm -f core *.core core.conftest.* &&
  1870. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  1871. exit $exit_status
  1872. ' 0
  1873. for ac_signal in 1 2 13 15; do
  1874. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  1875. done
  1876. ac_signal=0
  1877. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  1878. rm -f -r conftest* confdefs.h
  1879. $as_echo "/* confdefs.h */" > confdefs.h
  1880. # Predefined preprocessor variables.
  1881. cat >>confdefs.h <<_ACEOF
  1882. #define PACKAGE_NAME "$PACKAGE_NAME"
  1883. _ACEOF
  1884. cat >>confdefs.h <<_ACEOF
  1885. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  1886. _ACEOF
  1887. cat >>confdefs.h <<_ACEOF
  1888. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  1889. _ACEOF
  1890. cat >>confdefs.h <<_ACEOF
  1891. #define PACKAGE_STRING "$PACKAGE_STRING"
  1892. _ACEOF
  1893. cat >>confdefs.h <<_ACEOF
  1894. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  1895. _ACEOF
  1896. cat >>confdefs.h <<_ACEOF
  1897. #define PACKAGE_URL "$PACKAGE_URL"
  1898. _ACEOF
  1899. # Let the site file select an alternate cache file if it wants to.
  1900. # Prefer an explicitly selected file to automatically selected ones.
  1901. ac_site_file1=NONE
  1902. ac_site_file2=NONE
  1903. if test -n "$CONFIG_SITE"; then
  1904. # We do not want a PATH search for config.site.
  1905. case $CONFIG_SITE in #((
  1906. -*) ac_site_file1=./$CONFIG_SITE;;
  1907. */*) ac_site_file1=$CONFIG_SITE;;
  1908. *) ac_site_file1=./$CONFIG_SITE;;
  1909. esac
  1910. elif test "x$prefix" != xNONE; then
  1911. ac_site_file1=$prefix/share/config.site
  1912. ac_site_file2=$prefix/etc/config.site
  1913. else
  1914. ac_site_file1=$ac_default_prefix/share/config.site
  1915. ac_site_file2=$ac_default_prefix/etc/config.site
  1916. fi
  1917. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  1918. do
  1919. test "x$ac_site_file" = xNONE && continue
  1920. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  1921. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  1922. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  1923. sed 's/^/| /' "$ac_site_file" >&5
  1924. . "$ac_site_file" \
  1925. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1926. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  1927. as_fn_error $? "failed to load site script $ac_site_file
  1928. See \`config.log' for more details" "$LINENO" 5; }
  1929. fi
  1930. done
  1931. if test -r "$cache_file"; then
  1932. # Some versions of bash will fail to source /dev/null (special files
  1933. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  1934. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  1935. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  1936. $as_echo "$as_me: loading cache $cache_file" >&6;}
  1937. case $cache_file in
  1938. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  1939. *) . "./$cache_file";;
  1940. esac
  1941. fi
  1942. else
  1943. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  1944. $as_echo "$as_me: creating cache $cache_file" >&6;}
  1945. >$cache_file
  1946. fi
  1947. # Check that the precious variables saved in the cache have kept the same
  1948. # value.
  1949. ac_cache_corrupted=false
  1950. for ac_var in $ac_precious_vars; do
  1951. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  1952. eval ac_new_set=\$ac_env_${ac_var}_set
  1953. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  1954. eval ac_new_val=\$ac_env_${ac_var}_value
  1955. case $ac_old_set,$ac_new_set in
  1956. set,)
  1957. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  1958. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  1959. ac_cache_corrupted=: ;;
  1960. ,set)
  1961. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  1962. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  1963. ac_cache_corrupted=: ;;
  1964. ,);;
  1965. *)
  1966. if test "x$ac_old_val" != "x$ac_new_val"; then
  1967. # differences in whitespace do not lead to failure.
  1968. ac_old_val_w=`echo x $ac_old_val`
  1969. ac_new_val_w=`echo x $ac_new_val`
  1970. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  1971. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  1972. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  1973. ac_cache_corrupted=:
  1974. else
  1975. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  1976. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  1977. eval $ac_var=\$ac_old_val
  1978. fi
  1979. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  1980. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  1981. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  1982. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  1983. fi;;
  1984. esac
  1985. # Pass precious variables to config.status.
  1986. if test "$ac_new_set" = set; then
  1987. case $ac_new_val in
  1988. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  1989. *) ac_arg=$ac_var=$ac_new_val ;;
  1990. esac
  1991. case " $ac_configure_args " in
  1992. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  1993. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  1994. esac
  1995. fi
  1996. done
  1997. if $ac_cache_corrupted; then
  1998. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  1999. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2000. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2001. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2002. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2003. fi
  2004. ## -------------------- ##
  2005. ## Main body of script. ##
  2006. ## -------------------- ##
  2007. ac_ext=c
  2008. ac_cpp='$CPP $CPPFLAGS'
  2009. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2010. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2011. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2012. am__api_version='1.11'
  2013. ac_aux_dir=
  2014. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2015. if test -f "$ac_dir/install-sh"; then
  2016. ac_aux_dir=$ac_dir
  2017. ac_install_sh="$ac_aux_dir/install-sh -c"
  2018. break
  2019. elif test -f "$ac_dir/install.sh"; then
  2020. ac_aux_dir=$ac_dir
  2021. ac_install_sh="$ac_aux_dir/install.sh -c"
  2022. break
  2023. elif test -f "$ac_dir/shtool"; then
  2024. ac_aux_dir=$ac_dir
  2025. ac_install_sh="$ac_aux_dir/shtool install -c"
  2026. break
  2027. fi
  2028. done
  2029. if test -z "$ac_aux_dir"; then
  2030. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2031. fi
  2032. # These three variables are undocumented and unsupported,
  2033. # and are intended to be withdrawn in a future Autoconf release.
  2034. # They can cause serious problems if a builder's source tree is in a directory
  2035. # whose full name contains unusual characters.
  2036. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2037. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2038. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2039. # Find a good install program. We prefer a C program (faster),
  2040. # so one script is as good as another. But avoid the broken or
  2041. # incompatible versions:
  2042. # SysV /etc/install, /usr/sbin/install
  2043. # SunOS /usr/etc/install
  2044. # IRIX /sbin/install
  2045. # AIX /bin/install
  2046. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2047. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2048. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2049. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2050. # OS/2's system install, which has a completely different semantic
  2051. # ./install, which can be erroneously created by make from ./install.sh.
  2052. # Reject install programs that cannot install multiple files.
  2053. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2054. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2055. if test -z "$INSTALL"; then
  2056. if ${ac_cv_path_install+:} false; then :
  2057. $as_echo_n "(cached) " >&6
  2058. else
  2059. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2060. for as_dir in $PATH
  2061. do
  2062. IFS=$as_save_IFS
  2063. test -z "$as_dir" && as_dir=.
  2064. # Account for people who put trailing slashes in PATH elements.
  2065. case $as_dir/ in #((
  2066. ./ | .// | /[cC]/* | \
  2067. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2068. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2069. /usr/ucb/* ) ;;
  2070. *)
  2071. # OSF1 and SCO ODT 3.0 have their own names for install.
  2072. # Don't use installbsd from OSF since it installs stuff as root
  2073. # by default.
  2074. for ac_prog in ginstall scoinst install; do
  2075. for ac_exec_ext in '' $ac_executable_extensions; do
  2076. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2077. if test $ac_prog = install &&
  2078. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2079. # AIX install. It has an incompatible calling convention.
  2080. :
  2081. elif test $ac_prog = install &&
  2082. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2083. # program-specific install script used by HP pwplus--don't use.
  2084. :
  2085. else
  2086. rm -rf conftest.one conftest.two conftest.dir
  2087. echo one > conftest.one
  2088. echo two > conftest.two
  2089. mkdir conftest.dir
  2090. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2091. test -s conftest.one && test -s conftest.two &&
  2092. test -s conftest.dir/conftest.one &&
  2093. test -s conftest.dir/conftest.two
  2094. then
  2095. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2096. break 3
  2097. fi
  2098. fi
  2099. fi
  2100. done
  2101. done
  2102. ;;
  2103. esac
  2104. done
  2105. IFS=$as_save_IFS
  2106. rm -rf conftest.one conftest.two conftest.dir
  2107. fi
  2108. if test "${ac_cv_path_install+set}" = set; then
  2109. INSTALL=$ac_cv_path_install
  2110. else
  2111. # As a last resort, use the slow shell script. Don't cache a
  2112. # value for INSTALL within a source directory, because that will
  2113. # break other packages using the cache if that directory is
  2114. # removed, or if the value is a relative name.
  2115. INSTALL=$ac_install_sh
  2116. fi
  2117. fi
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2119. $as_echo "$INSTALL" >&6; }
  2120. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2121. # It thinks the first close brace ends the variable substitution.
  2122. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2123. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2124. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2125. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2126. $as_echo_n "checking whether build environment is sane... " >&6; }
  2127. # Just in case
  2128. sleep 1
  2129. echo timestamp > conftest.file
  2130. # Reject unsafe characters in $srcdir or the absolute working directory
  2131. # name. Accept space and tab only in the latter.
  2132. am_lf='
  2133. '
  2134. case `pwd` in
  2135. *[\\\"\#\$\&\'\`$am_lf]*)
  2136. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2137. esac
  2138. case $srcdir in
  2139. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2140. as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
  2141. esac
  2142. # Do `set' in a subshell so we don't clobber the current shell's
  2143. # arguments. Must try -L first in case configure is actually a
  2144. # symlink; some systems play weird games with the mod time of symlinks
  2145. # (eg FreeBSD returns the mod time of the symlink's containing
  2146. # directory).
  2147. if (
  2148. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2149. if test "$*" = "X"; then
  2150. # -L didn't work.
  2151. set X `ls -t "$srcdir/configure" conftest.file`
  2152. fi
  2153. rm -f conftest.file
  2154. if test "$*" != "X $srcdir/configure conftest.file" \
  2155. && test "$*" != "X conftest.file $srcdir/configure"; then
  2156. # If neither matched, then we have a broken ls. This can happen
  2157. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2158. # broken ls alias from the environment. This has actually
  2159. # happened. Such a system could not be considered "sane".
  2160. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2161. alias in your environment" "$LINENO" 5
  2162. fi
  2163. test "$2" = conftest.file
  2164. )
  2165. then
  2166. # Ok.
  2167. :
  2168. else
  2169. as_fn_error $? "newly created file is older than distributed files!
  2170. Check your system clock" "$LINENO" 5
  2171. fi
  2172. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2173. $as_echo "yes" >&6; }
  2174. test "$program_prefix" != NONE &&
  2175. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2176. # Use a double $ so make ignores it.
  2177. test "$program_suffix" != NONE &&
  2178. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2179. # Double any \ or $.
  2180. # By default was `s,x,x', remove it if useless.
  2181. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2182. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2183. # expand $ac_aux_dir to an absolute path
  2184. am_aux_dir=`cd $ac_aux_dir && pwd`
  2185. if test x"${MISSING+set}" != xset; then
  2186. case $am_aux_dir in
  2187. *\ * | *\ *)
  2188. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2189. *)
  2190. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2191. esac
  2192. fi
  2193. # Use eval to expand $SHELL
  2194. if eval "$MISSING --run true"; then
  2195. am_missing_run="$MISSING --run "
  2196. else
  2197. am_missing_run=
  2198. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
  2199. $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
  2200. fi
  2201. if test x"${install_sh}" != xset; then
  2202. case $am_aux_dir in
  2203. *\ * | *\ *)
  2204. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2205. *)
  2206. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2207. esac
  2208. fi
  2209. # Installed binaries are usually stripped using `strip' when the user
  2210. # run `make install-strip'. However `strip' might not be the right
  2211. # tool to use in cross-compilation environments, therefore Automake
  2212. # will honor the `STRIP' environment variable to overrule this program.
  2213. if test "$cross_compiling" != no; then
  2214. if test -n "$ac_tool_prefix"; then
  2215. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2216. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2217. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2218. $as_echo_n "checking for $ac_word... " >&6; }
  2219. if ${ac_cv_prog_STRIP+:} false; then :
  2220. $as_echo_n "(cached) " >&6
  2221. else
  2222. if test -n "$STRIP"; then
  2223. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2224. else
  2225. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2226. for as_dir in $PATH
  2227. do
  2228. IFS=$as_save_IFS
  2229. test -z "$as_dir" && as_dir=.
  2230. for ac_exec_ext in '' $ac_executable_extensions; do
  2231. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2232. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2233. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2234. break 2
  2235. fi
  2236. done
  2237. done
  2238. IFS=$as_save_IFS
  2239. fi
  2240. fi
  2241. STRIP=$ac_cv_prog_STRIP
  2242. if test -n "$STRIP"; then
  2243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2244. $as_echo "$STRIP" >&6; }
  2245. else
  2246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2247. $as_echo "no" >&6; }
  2248. fi
  2249. fi
  2250. if test -z "$ac_cv_prog_STRIP"; then
  2251. ac_ct_STRIP=$STRIP
  2252. # Extract the first word of "strip", so it can be a program name with args.
  2253. set dummy strip; ac_word=$2
  2254. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2255. $as_echo_n "checking for $ac_word... " >&6; }
  2256. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2257. $as_echo_n "(cached) " >&6
  2258. else
  2259. if test -n "$ac_ct_STRIP"; then
  2260. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2261. else
  2262. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2263. for as_dir in $PATH
  2264. do
  2265. IFS=$as_save_IFS
  2266. test -z "$as_dir" && as_dir=.
  2267. for ac_exec_ext in '' $ac_executable_extensions; do
  2268. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2269. ac_cv_prog_ac_ct_STRIP="strip"
  2270. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2271. break 2
  2272. fi
  2273. done
  2274. done
  2275. IFS=$as_save_IFS
  2276. fi
  2277. fi
  2278. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2279. if test -n "$ac_ct_STRIP"; then
  2280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2281. $as_echo "$ac_ct_STRIP" >&6; }
  2282. else
  2283. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2284. $as_echo "no" >&6; }
  2285. fi
  2286. if test "x$ac_ct_STRIP" = x; then
  2287. STRIP=":"
  2288. else
  2289. case $cross_compiling:$ac_tool_warned in
  2290. yes:)
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2292. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2293. ac_tool_warned=yes ;;
  2294. esac
  2295. STRIP=$ac_ct_STRIP
  2296. fi
  2297. else
  2298. STRIP="$ac_cv_prog_STRIP"
  2299. fi
  2300. fi
  2301. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2302. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2303. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2304. if test -z "$MKDIR_P"; then
  2305. if ${ac_cv_path_mkdir+:} false; then :
  2306. $as_echo_n "(cached) " >&6
  2307. else
  2308. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2309. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2310. do
  2311. IFS=$as_save_IFS
  2312. test -z "$as_dir" && as_dir=.
  2313. for ac_prog in mkdir gmkdir; do
  2314. for ac_exec_ext in '' $ac_executable_extensions; do
  2315. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2316. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2317. 'mkdir (GNU coreutils) '* | \
  2318. 'mkdir (coreutils) '* | \
  2319. 'mkdir (fileutils) '4.1*)
  2320. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2321. break 3;;
  2322. esac
  2323. done
  2324. done
  2325. done
  2326. IFS=$as_save_IFS
  2327. fi
  2328. test -d ./--version && rmdir ./--version
  2329. if test "${ac_cv_path_mkdir+set}" = set; then
  2330. MKDIR_P="$ac_cv_path_mkdir -p"
  2331. else
  2332. # As a last resort, use the slow shell script. Don't cache a
  2333. # value for MKDIR_P within a source directory, because that will
  2334. # break other packages using the cache if that directory is
  2335. # removed, or if the value is a relative name.
  2336. MKDIR_P="$ac_install_sh -d"
  2337. fi
  2338. fi
  2339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2340. $as_echo "$MKDIR_P" >&6; }
  2341. mkdir_p="$MKDIR_P"
  2342. case $mkdir_p in
  2343. [\\/$]* | ?:[\\/]*) ;;
  2344. */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;;
  2345. esac
  2346. for ac_prog in gawk mawk nawk awk
  2347. do
  2348. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2349. set dummy $ac_prog; ac_word=$2
  2350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2351. $as_echo_n "checking for $ac_word... " >&6; }
  2352. if ${ac_cv_prog_AWK+:} false; then :
  2353. $as_echo_n "(cached) " >&6
  2354. else
  2355. if test -n "$AWK"; then
  2356. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2357. else
  2358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2359. for as_dir in $PATH
  2360. do
  2361. IFS=$as_save_IFS
  2362. test -z "$as_dir" && as_dir=.
  2363. for ac_exec_ext in '' $ac_executable_extensions; do
  2364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2365. ac_cv_prog_AWK="$ac_prog"
  2366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2367. break 2
  2368. fi
  2369. done
  2370. done
  2371. IFS=$as_save_IFS
  2372. fi
  2373. fi
  2374. AWK=$ac_cv_prog_AWK
  2375. if test -n "$AWK"; then
  2376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2377. $as_echo "$AWK" >&6; }
  2378. else
  2379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2380. $as_echo "no" >&6; }
  2381. fi
  2382. test -n "$AWK" && break
  2383. done
  2384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2385. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2386. set x ${MAKE-make}
  2387. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2388. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2389. $as_echo_n "(cached) " >&6
  2390. else
  2391. cat >conftest.make <<\_ACEOF
  2392. SHELL = /bin/sh
  2393. all:
  2394. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2395. _ACEOF
  2396. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2397. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2398. *@@@%%%=?*=@@@%%%*)
  2399. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2400. *)
  2401. eval ac_cv_prog_make_${ac_make}_set=no;;
  2402. esac
  2403. rm -f conftest.make
  2404. fi
  2405. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2406. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2407. $as_echo "yes" >&6; }
  2408. SET_MAKE=
  2409. else
  2410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2411. $as_echo "no" >&6; }
  2412. SET_MAKE="MAKE=${MAKE-make}"
  2413. fi
  2414. rm -rf .tst 2>/dev/null
  2415. mkdir .tst 2>/dev/null
  2416. if test -d .tst; then
  2417. am__leading_dot=.
  2418. else
  2419. am__leading_dot=_
  2420. fi
  2421. rmdir .tst 2>/dev/null
  2422. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2423. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2424. # is not polluted with repeated "-I."
  2425. am__isrc=' -I$(srcdir)'
  2426. # test to see if srcdir already configured
  2427. if test -f $srcdir/config.status; then
  2428. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2429. fi
  2430. fi
  2431. # test whether we have cygpath
  2432. if test -z "$CYGPATH_W"; then
  2433. if (cygpath --version) >/dev/null 2>/dev/null; then
  2434. CYGPATH_W='cygpath -w'
  2435. else
  2436. CYGPATH_W=echo
  2437. fi
  2438. fi
  2439. # Define the identity of the package.
  2440. PACKAGE='libenet'
  2441. VERSION='1.3.6'
  2442. cat >>confdefs.h <<_ACEOF
  2443. #define PACKAGE "$PACKAGE"
  2444. _ACEOF
  2445. cat >>confdefs.h <<_ACEOF
  2446. #define VERSION "$VERSION"
  2447. _ACEOF
  2448. # Some tools Automake needs.
  2449. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2450. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2451. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2452. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2453. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2454. # We need awk for the "check" target. The system "awk" is bad on
  2455. # some platforms.
  2456. # Always define AMTAR for backward compatibility. Yes, it's still used
  2457. # in the wild :-( We should find a proper way to deprecate it ...
  2458. AMTAR='$${TAR-tar}'
  2459. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2460. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2461. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2462. # Check whether --enable-maintainer-mode was given.
  2463. if test "${enable_maintainer_mode+set}" = set; then :
  2464. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2465. else
  2466. USE_MAINTAINER_MODE=yes
  2467. fi
  2468. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2469. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2470. if test $USE_MAINTAINER_MODE = yes; then
  2471. MAINTAINER_MODE_TRUE=
  2472. MAINTAINER_MODE_FALSE='#'
  2473. else
  2474. MAINTAINER_MODE_TRUE='#'
  2475. MAINTAINER_MODE_FALSE=
  2476. fi
  2477. MAINT=$MAINTAINER_MODE_TRUE
  2478. ac_ext=c
  2479. ac_cpp='$CPP $CPPFLAGS'
  2480. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2481. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2482. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2483. if test -n "$ac_tool_prefix"; then
  2484. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2485. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2487. $as_echo_n "checking for $ac_word... " >&6; }
  2488. if ${ac_cv_prog_CC+:} false; then :
  2489. $as_echo_n "(cached) " >&6
  2490. else
  2491. if test -n "$CC"; then
  2492. ac_cv_prog_CC="$CC" # Let the user override the test.
  2493. else
  2494. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2495. for as_dir in $PATH
  2496. do
  2497. IFS=$as_save_IFS
  2498. test -z "$as_dir" && as_dir=.
  2499. for ac_exec_ext in '' $ac_executable_extensions; do
  2500. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2501. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2502. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2503. break 2
  2504. fi
  2505. done
  2506. done
  2507. IFS=$as_save_IFS
  2508. fi
  2509. fi
  2510. CC=$ac_cv_prog_CC
  2511. if test -n "$CC"; then
  2512. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2513. $as_echo "$CC" >&6; }
  2514. else
  2515. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2516. $as_echo "no" >&6; }
  2517. fi
  2518. fi
  2519. if test -z "$ac_cv_prog_CC"; then
  2520. ac_ct_CC=$CC
  2521. # Extract the first word of "gcc", so it can be a program name with args.
  2522. set dummy gcc; ac_word=$2
  2523. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2524. $as_echo_n "checking for $ac_word... " >&6; }
  2525. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2526. $as_echo_n "(cached) " >&6
  2527. else
  2528. if test -n "$ac_ct_CC"; then
  2529. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2530. else
  2531. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2532. for as_dir in $PATH
  2533. do
  2534. IFS=$as_save_IFS
  2535. test -z "$as_dir" && as_dir=.
  2536. for ac_exec_ext in '' $ac_executable_extensions; do
  2537. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2538. ac_cv_prog_ac_ct_CC="gcc"
  2539. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2540. break 2
  2541. fi
  2542. done
  2543. done
  2544. IFS=$as_save_IFS
  2545. fi
  2546. fi
  2547. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2548. if test -n "$ac_ct_CC"; then
  2549. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2550. $as_echo "$ac_ct_CC" >&6; }
  2551. else
  2552. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2553. $as_echo "no" >&6; }
  2554. fi
  2555. if test "x$ac_ct_CC" = x; then
  2556. CC=""
  2557. else
  2558. case $cross_compiling:$ac_tool_warned in
  2559. yes:)
  2560. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2561. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2562. ac_tool_warned=yes ;;
  2563. esac
  2564. CC=$ac_ct_CC
  2565. fi
  2566. else
  2567. CC="$ac_cv_prog_CC"
  2568. fi
  2569. if test -z "$CC"; then
  2570. if test -n "$ac_tool_prefix"; then
  2571. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2572. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2573. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2574. $as_echo_n "checking for $ac_word... " >&6; }
  2575. if ${ac_cv_prog_CC+:} false; then :
  2576. $as_echo_n "(cached) " >&6
  2577. else
  2578. if test -n "$CC"; then
  2579. ac_cv_prog_CC="$CC" # Let the user override the test.
  2580. else
  2581. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2582. for as_dir in $PATH
  2583. do
  2584. IFS=$as_save_IFS
  2585. test -z "$as_dir" && as_dir=.
  2586. for ac_exec_ext in '' $ac_executable_extensions; do
  2587. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2588. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2589. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2590. break 2
  2591. fi
  2592. done
  2593. done
  2594. IFS=$as_save_IFS
  2595. fi
  2596. fi
  2597. CC=$ac_cv_prog_CC
  2598. if test -n "$CC"; then
  2599. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2600. $as_echo "$CC" >&6; }
  2601. else
  2602. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2603. $as_echo "no" >&6; }
  2604. fi
  2605. fi
  2606. fi
  2607. if test -z "$CC"; then
  2608. # Extract the first word of "cc", so it can be a program name with args.
  2609. set dummy cc; ac_word=$2
  2610. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2611. $as_echo_n "checking for $ac_word... " >&6; }
  2612. if ${ac_cv_prog_CC+:} false; then :
  2613. $as_echo_n "(cached) " >&6
  2614. else
  2615. if test -n "$CC"; then
  2616. ac_cv_prog_CC="$CC" # Let the user override the test.
  2617. else
  2618. ac_prog_rejected=no
  2619. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2620. for as_dir in $PATH
  2621. do
  2622. IFS=$as_save_IFS
  2623. test -z "$as_dir" && as_dir=.
  2624. for ac_exec_ext in '' $ac_executable_extensions; do
  2625. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2626. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2627. ac_prog_rejected=yes
  2628. continue
  2629. fi
  2630. ac_cv_prog_CC="cc"
  2631. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2632. break 2
  2633. fi
  2634. done
  2635. done
  2636. IFS=$as_save_IFS
  2637. if test $ac_prog_rejected = yes; then
  2638. # We found a bogon in the path, so make sure we never use it.
  2639. set dummy $ac_cv_prog_CC
  2640. shift
  2641. if test $# != 0; then
  2642. # We chose a different compiler from the bogus one.
  2643. # However, it has the same basename, so the bogon will be chosen
  2644. # first if we set CC to just the basename; use the full file name.
  2645. shift
  2646. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2647. fi
  2648. fi
  2649. fi
  2650. fi
  2651. CC=$ac_cv_prog_CC
  2652. if test -n "$CC"; then
  2653. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2654. $as_echo "$CC" >&6; }
  2655. else
  2656. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2657. $as_echo "no" >&6; }
  2658. fi
  2659. fi
  2660. if test -z "$CC"; then
  2661. if test -n "$ac_tool_prefix"; then
  2662. for ac_prog in cl.exe
  2663. do
  2664. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2665. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2667. $as_echo_n "checking for $ac_word... " >&6; }
  2668. if ${ac_cv_prog_CC+:} false; then :
  2669. $as_echo_n "(cached) " >&6
  2670. else
  2671. if test -n "$CC"; then
  2672. ac_cv_prog_CC="$CC" # Let the user override the test.
  2673. else
  2674. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2675. for as_dir in $PATH
  2676. do
  2677. IFS=$as_save_IFS
  2678. test -z "$as_dir" && as_dir=.
  2679. for ac_exec_ext in '' $ac_executable_extensions; do
  2680. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2681. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2682. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2683. break 2
  2684. fi
  2685. done
  2686. done
  2687. IFS=$as_save_IFS
  2688. fi
  2689. fi
  2690. CC=$ac_cv_prog_CC
  2691. if test -n "$CC"; then
  2692. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2693. $as_echo "$CC" >&6; }
  2694. else
  2695. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2696. $as_echo "no" >&6; }
  2697. fi
  2698. test -n "$CC" && break
  2699. done
  2700. fi
  2701. if test -z "$CC"; then
  2702. ac_ct_CC=$CC
  2703. for ac_prog in cl.exe
  2704. do
  2705. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2706. set dummy $ac_prog; ac_word=$2
  2707. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2708. $as_echo_n "checking for $ac_word... " >&6; }
  2709. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2710. $as_echo_n "(cached) " >&6
  2711. else
  2712. if test -n "$ac_ct_CC"; then
  2713. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2714. else
  2715. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2716. for as_dir in $PATH
  2717. do
  2718. IFS=$as_save_IFS
  2719. test -z "$as_dir" && as_dir=.
  2720. for ac_exec_ext in '' $ac_executable_extensions; do
  2721. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2722. ac_cv_prog_ac_ct_CC="$ac_prog"
  2723. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2724. break 2
  2725. fi
  2726. done
  2727. done
  2728. IFS=$as_save_IFS
  2729. fi
  2730. fi
  2731. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2732. if test -n "$ac_ct_CC"; then
  2733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2734. $as_echo "$ac_ct_CC" >&6; }
  2735. else
  2736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2737. $as_echo "no" >&6; }
  2738. fi
  2739. test -n "$ac_ct_CC" && break
  2740. done
  2741. if test "x$ac_ct_CC" = x; then
  2742. CC=""
  2743. else
  2744. case $cross_compiling:$ac_tool_warned in
  2745. yes:)
  2746. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2747. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2748. ac_tool_warned=yes ;;
  2749. esac
  2750. CC=$ac_ct_CC
  2751. fi
  2752. fi
  2753. fi
  2754. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2756. as_fn_error $? "no acceptable C compiler found in \$PATH
  2757. See \`config.log' for more details" "$LINENO" 5; }
  2758. # Provide some information about the compiler.
  2759. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2760. set X $ac_compile
  2761. ac_compiler=$2
  2762. for ac_option in --version -v -V -qversion; do
  2763. { { ac_try="$ac_compiler $ac_option >&5"
  2764. case "(($ac_try" in
  2765. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2766. *) ac_try_echo=$ac_try;;
  2767. esac
  2768. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2769. $as_echo "$ac_try_echo"; } >&5
  2770. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2771. ac_status=$?
  2772. if test -s conftest.err; then
  2773. sed '10a\
  2774. ... rest of stderr output deleted ...
  2775. 10q' conftest.err >conftest.er1
  2776. cat conftest.er1 >&5
  2777. fi
  2778. rm -f conftest.er1 conftest.err
  2779. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2780. test $ac_status = 0; }
  2781. done
  2782. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2783. /* end confdefs.h. */
  2784. int
  2785. main ()
  2786. {
  2787. ;
  2788. return 0;
  2789. }
  2790. _ACEOF
  2791. ac_clean_files_save=$ac_clean_files
  2792. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2793. # Try to create an executable without -o first, disregard a.out.
  2794. # It will help us diagnose broken compilers, and finding out an intuition
  2795. # of exeext.
  2796. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2797. $as_echo_n "checking whether the C compiler works... " >&6; }
  2798. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2799. # The possible output files:
  2800. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2801. ac_rmfiles=
  2802. for ac_file in $ac_files
  2803. do
  2804. case $ac_file in
  2805. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2806. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2807. esac
  2808. done
  2809. rm -f $ac_rmfiles
  2810. if { { ac_try="$ac_link_default"
  2811. case "(($ac_try" in
  2812. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2813. *) ac_try_echo=$ac_try;;
  2814. esac
  2815. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2816. $as_echo "$ac_try_echo"; } >&5
  2817. (eval "$ac_link_default") 2>&5
  2818. ac_status=$?
  2819. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2820. test $ac_status = 0; }; then :
  2821. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2822. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2823. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2824. # so that the user can short-circuit this test for compilers unknown to
  2825. # Autoconf.
  2826. for ac_file in $ac_files ''
  2827. do
  2828. test -f "$ac_file" || continue
  2829. case $ac_file in
  2830. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2831. ;;
  2832. [ab].out )
  2833. # We found the default executable, but exeext='' is most
  2834. # certainly right.
  2835. break;;
  2836. *.* )
  2837. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2838. then :; else
  2839. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2840. fi
  2841. # We set ac_cv_exeext here because the later test for it is not
  2842. # safe: cross compilers may not add the suffix if given an `-o'
  2843. # argument, so we may need to know it at that point already.
  2844. # Even if this section looks crufty: it has the advantage of
  2845. # actually working.
  2846. break;;
  2847. * )
  2848. break;;
  2849. esac
  2850. done
  2851. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2852. else
  2853. ac_file=''
  2854. fi
  2855. if test -z "$ac_file"; then :
  2856. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2857. $as_echo "no" >&6; }
  2858. $as_echo "$as_me: failed program was:" >&5
  2859. sed 's/^/| /' conftest.$ac_ext >&5
  2860. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2861. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2862. as_fn_error 77 "C compiler cannot create executables
  2863. See \`config.log' for more details" "$LINENO" 5; }
  2864. else
  2865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2866. $as_echo "yes" >&6; }
  2867. fi
  2868. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2869. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2871. $as_echo "$ac_file" >&6; }
  2872. ac_exeext=$ac_cv_exeext
  2873. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2874. ac_clean_files=$ac_clean_files_save
  2875. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2876. $as_echo_n "checking for suffix of executables... " >&6; }
  2877. if { { ac_try="$ac_link"
  2878. case "(($ac_try" in
  2879. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2880. *) ac_try_echo=$ac_try;;
  2881. esac
  2882. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2883. $as_echo "$ac_try_echo"; } >&5
  2884. (eval "$ac_link") 2>&5
  2885. ac_status=$?
  2886. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2887. test $ac_status = 0; }; then :
  2888. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2889. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2890. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2891. # `rm'.
  2892. for ac_file in conftest.exe conftest conftest.*; do
  2893. test -f "$ac_file" || continue
  2894. case $ac_file in
  2895. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2896. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2897. break;;
  2898. * ) break;;
  2899. esac
  2900. done
  2901. else
  2902. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2903. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2904. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2905. See \`config.log' for more details" "$LINENO" 5; }
  2906. fi
  2907. rm -f conftest conftest$ac_cv_exeext
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2909. $as_echo "$ac_cv_exeext" >&6; }
  2910. rm -f conftest.$ac_ext
  2911. EXEEXT=$ac_cv_exeext
  2912. ac_exeext=$EXEEXT
  2913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2914. /* end confdefs.h. */
  2915. #include <stdio.h>
  2916. int
  2917. main ()
  2918. {
  2919. FILE *f = fopen ("conftest.out", "w");
  2920. return ferror (f) || fclose (f) != 0;
  2921. ;
  2922. return 0;
  2923. }
  2924. _ACEOF
  2925. ac_clean_files="$ac_clean_files conftest.out"
  2926. # Check that the compiler produces executables we can run. If not, either
  2927. # the compiler is broken, or we cross compile.
  2928. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2929. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2930. if test "$cross_compiling" != yes; then
  2931. { { ac_try="$ac_link"
  2932. case "(($ac_try" in
  2933. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2934. *) ac_try_echo=$ac_try;;
  2935. esac
  2936. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2937. $as_echo "$ac_try_echo"; } >&5
  2938. (eval "$ac_link") 2>&5
  2939. ac_status=$?
  2940. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2941. test $ac_status = 0; }
  2942. if { ac_try='./conftest$ac_cv_exeext'
  2943. { { case "(($ac_try" in
  2944. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2945. *) ac_try_echo=$ac_try;;
  2946. esac
  2947. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2948. $as_echo "$ac_try_echo"; } >&5
  2949. (eval "$ac_try") 2>&5
  2950. ac_status=$?
  2951. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2952. test $ac_status = 0; }; }; then
  2953. cross_compiling=no
  2954. else
  2955. if test "$cross_compiling" = maybe; then
  2956. cross_compiling=yes
  2957. else
  2958. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2959. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2960. as_fn_error $? "cannot run C compiled programs.
  2961. If you meant to cross compile, use \`--host'.
  2962. See \`config.log' for more details" "$LINENO" 5; }
  2963. fi
  2964. fi
  2965. fi
  2966. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2967. $as_echo "$cross_compiling" >&6; }
  2968. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2969. ac_clean_files=$ac_clean_files_save
  2970. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2971. $as_echo_n "checking for suffix of object files... " >&6; }
  2972. if ${ac_cv_objext+:} false; then :
  2973. $as_echo_n "(cached) " >&6
  2974. else
  2975. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2976. /* end confdefs.h. */
  2977. int
  2978. main ()
  2979. {
  2980. ;
  2981. return 0;
  2982. }
  2983. _ACEOF
  2984. rm -f conftest.o conftest.obj
  2985. if { { ac_try="$ac_compile"
  2986. case "(($ac_try" in
  2987. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2988. *) ac_try_echo=$ac_try;;
  2989. esac
  2990. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2991. $as_echo "$ac_try_echo"; } >&5
  2992. (eval "$ac_compile") 2>&5
  2993. ac_status=$?
  2994. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2995. test $ac_status = 0; }; then :
  2996. for ac_file in conftest.o conftest.obj conftest.*; do
  2997. test -f "$ac_file" || continue;
  2998. case $ac_file in
  2999. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3000. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3001. break;;
  3002. esac
  3003. done
  3004. else
  3005. $as_echo "$as_me: failed program was:" >&5
  3006. sed 's/^/| /' conftest.$ac_ext >&5
  3007. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3008. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3009. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3010. See \`config.log' for more details" "$LINENO" 5; }
  3011. fi
  3012. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3013. fi
  3014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3015. $as_echo "$ac_cv_objext" >&6; }
  3016. OBJEXT=$ac_cv_objext
  3017. ac_objext=$OBJEXT
  3018. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3019. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3020. if ${ac_cv_c_compiler_gnu+:} false; then :
  3021. $as_echo_n "(cached) " >&6
  3022. else
  3023. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3024. /* end confdefs.h. */
  3025. int
  3026. main ()
  3027. {
  3028. #ifndef __GNUC__
  3029. choke me
  3030. #endif
  3031. ;
  3032. return 0;
  3033. }
  3034. _ACEOF
  3035. if ac_fn_c_try_compile "$LINENO"; then :
  3036. ac_compiler_gnu=yes
  3037. else
  3038. ac_compiler_gnu=no
  3039. fi
  3040. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3041. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3042. fi
  3043. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3044. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3045. if test $ac_compiler_gnu = yes; then
  3046. GCC=yes
  3047. else
  3048. GCC=
  3049. fi
  3050. ac_test_CFLAGS=${CFLAGS+set}
  3051. ac_save_CFLAGS=$CFLAGS
  3052. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3053. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3054. if ${ac_cv_prog_cc_g+:} false; then :
  3055. $as_echo_n "(cached) " >&6
  3056. else
  3057. ac_save_c_werror_flag=$ac_c_werror_flag
  3058. ac_c_werror_flag=yes
  3059. ac_cv_prog_cc_g=no
  3060. CFLAGS="-g"
  3061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3062. /* end confdefs.h. */
  3063. int
  3064. main ()
  3065. {
  3066. ;
  3067. return 0;
  3068. }
  3069. _ACEOF
  3070. if ac_fn_c_try_compile "$LINENO"; then :
  3071. ac_cv_prog_cc_g=yes
  3072. else
  3073. CFLAGS=""
  3074. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3075. /* end confdefs.h. */
  3076. int
  3077. main ()
  3078. {
  3079. ;
  3080. return 0;
  3081. }
  3082. _ACEOF
  3083. if ac_fn_c_try_compile "$LINENO"; then :
  3084. else
  3085. ac_c_werror_flag=$ac_save_c_werror_flag
  3086. CFLAGS="-g"
  3087. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3088. /* end confdefs.h. */
  3089. int
  3090. main ()
  3091. {
  3092. ;
  3093. return 0;
  3094. }
  3095. _ACEOF
  3096. if ac_fn_c_try_compile "$LINENO"; then :
  3097. ac_cv_prog_cc_g=yes
  3098. fi
  3099. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3100. fi
  3101. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3102. fi
  3103. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3104. ac_c_werror_flag=$ac_save_c_werror_flag
  3105. fi
  3106. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3107. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3108. if test "$ac_test_CFLAGS" = set; then
  3109. CFLAGS=$ac_save_CFLAGS
  3110. elif test $ac_cv_prog_cc_g = yes; then
  3111. if test "$GCC" = yes; then
  3112. CFLAGS="-g -O2"
  3113. else
  3114. CFLAGS="-g"
  3115. fi
  3116. else
  3117. if test "$GCC" = yes; then
  3118. CFLAGS="-O2"
  3119. else
  3120. CFLAGS=
  3121. fi
  3122. fi
  3123. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3124. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3125. if ${ac_cv_prog_cc_c89+:} false; then :
  3126. $as_echo_n "(cached) " >&6
  3127. else
  3128. ac_cv_prog_cc_c89=no
  3129. ac_save_CC=$CC
  3130. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3131. /* end confdefs.h. */
  3132. #include <stdarg.h>
  3133. #include <stdio.h>
  3134. struct stat;
  3135. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3136. struct buf { int x; };
  3137. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3138. static char *e (p, i)
  3139. char **p;
  3140. int i;
  3141. {
  3142. return p[i];
  3143. }
  3144. static char *f (char * (*g) (char **, int), char **p, ...)
  3145. {
  3146. char *s;
  3147. va_list v;
  3148. va_start (v,p);
  3149. s = g (p, va_arg (v,int));
  3150. va_end (v);
  3151. return s;
  3152. }
  3153. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3154. function prototypes and stuff, but not '\xHH' hex character constants.
  3155. These don't provoke an error unfortunately, instead are silently treated
  3156. as 'x'. The following induces an error, until -std is added to get
  3157. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3158. array size at least. It's necessary to write '\x00'==0 to get something
  3159. that's true only with -std. */
  3160. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3161. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3162. inside strings and character constants. */
  3163. #define FOO(x) 'x'
  3164. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3165. int test (int i, double x);
  3166. struct s1 {int (*f) (int a);};
  3167. struct s2 {int (*f) (double a);};
  3168. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3169. int argc;
  3170. char **argv;
  3171. int
  3172. main ()
  3173. {
  3174. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3175. ;
  3176. return 0;
  3177. }
  3178. _ACEOF
  3179. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3180. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3181. do
  3182. CC="$ac_save_CC $ac_arg"
  3183. if ac_fn_c_try_compile "$LINENO"; then :
  3184. ac_cv_prog_cc_c89=$ac_arg
  3185. fi
  3186. rm -f core conftest.err conftest.$ac_objext
  3187. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3188. done
  3189. rm -f conftest.$ac_ext
  3190. CC=$ac_save_CC
  3191. fi
  3192. # AC_CACHE_VAL
  3193. case "x$ac_cv_prog_cc_c89" in
  3194. x)
  3195. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3196. $as_echo "none needed" >&6; } ;;
  3197. xno)
  3198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3199. $as_echo "unsupported" >&6; } ;;
  3200. *)
  3201. CC="$CC $ac_cv_prog_cc_c89"
  3202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3203. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3204. esac
  3205. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3206. fi
  3207. ac_ext=c
  3208. ac_cpp='$CPP $CPPFLAGS'
  3209. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3210. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3211. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3212. DEPDIR="${am__leading_dot}deps"
  3213. ac_config_commands="$ac_config_commands depfiles"
  3214. am_make=${MAKE-make}
  3215. cat > confinc << 'END'
  3216. am__doit:
  3217. @echo this is the am__doit target
  3218. .PHONY: am__doit
  3219. END
  3220. # If we don't find an include directive, just comment out the code.
  3221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  3222. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  3223. am__include="#"
  3224. am__quote=
  3225. _am_result=none
  3226. # First try GNU make style include.
  3227. echo "include confinc" > confmf
  3228. # Ignore all kinds of additional output from `make'.
  3229. case `$am_make -s -f confmf 2> /dev/null` in #(
  3230. *the\ am__doit\ target*)
  3231. am__include=include
  3232. am__quote=
  3233. _am_result=GNU
  3234. ;;
  3235. esac
  3236. # Now try BSD make style include.
  3237. if test "$am__include" = "#"; then
  3238. echo '.include "confinc"' > confmf
  3239. case `$am_make -s -f confmf 2> /dev/null` in #(
  3240. *the\ am__doit\ target*)
  3241. am__include=.include
  3242. am__quote="\""
  3243. _am_result=BSD
  3244. ;;
  3245. esac
  3246. fi
  3247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  3248. $as_echo "$_am_result" >&6; }
  3249. rm -f confinc confmf
  3250. # Check whether --enable-dependency-tracking was given.
  3251. if test "${enable_dependency_tracking+set}" = set; then :
  3252. enableval=$enable_dependency_tracking;
  3253. fi
  3254. if test "x$enable_dependency_tracking" != xno; then
  3255. am_depcomp="$ac_aux_dir/depcomp"
  3256. AMDEPBACKSLASH='\'
  3257. am__nodep='_no'
  3258. fi
  3259. if test "x$enable_dependency_tracking" != xno; then
  3260. AMDEP_TRUE=
  3261. AMDEP_FALSE='#'
  3262. else
  3263. AMDEP_TRUE='#'
  3264. AMDEP_FALSE=
  3265. fi
  3266. depcc="$CC" am_compiler_list=
  3267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3268. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3269. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3270. $as_echo_n "(cached) " >&6
  3271. else
  3272. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3273. # We make a subdir and do the tests there. Otherwise we can end up
  3274. # making bogus files that we don't know about and never remove. For
  3275. # instance it was reported that on HP-UX the gcc test will end up
  3276. # making a dummy file named `D' -- because `-MD' means `put the output
  3277. # in D'.
  3278. rm -rf conftest.dir
  3279. mkdir conftest.dir
  3280. # Copy depcomp to subdir because otherwise we won't find it if we're
  3281. # using a relative directory.
  3282. cp "$am_depcomp" conftest.dir
  3283. cd conftest.dir
  3284. # We will build objects and dependencies in a subdirectory because
  3285. # it helps to detect inapplicable dependency modes. For instance
  3286. # both Tru64's cc and ICC support -MD to output dependencies as a
  3287. # side effect of compilation, but ICC will put the dependencies in
  3288. # the current directory while Tru64 will put them in the object
  3289. # directory.
  3290. mkdir sub
  3291. am_cv_CC_dependencies_compiler_type=none
  3292. if test "$am_compiler_list" = ""; then
  3293. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3294. fi
  3295. am__universal=false
  3296. case " $depcc " in #(
  3297. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3298. esac
  3299. for depmode in $am_compiler_list; do
  3300. # Setup a source with many dependencies, because some compilers
  3301. # like to wrap large dependency lists on column 80 (with \), and
  3302. # we should not choose a depcomp mode which is confused by this.
  3303. #
  3304. # We need to recreate these files for each test, as the compiler may
  3305. # overwrite some of them when testing with obscure command lines.
  3306. # This happens at least with the AIX C compiler.
  3307. : > sub/conftest.c
  3308. for i in 1 2 3 4 5 6; do
  3309. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3310. # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
  3311. # Solaris 8's {/usr,}/bin/sh.
  3312. touch sub/conftst$i.h
  3313. done
  3314. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3315. # We check with `-c' and `-o' for the sake of the "dashmstdout"
  3316. # mode. It turns out that the SunPro C++ compiler does not properly
  3317. # handle `-M -o', and we need to detect this. Also, some Intel
  3318. # versions had trouble with output in subdirs
  3319. am__obj=sub/conftest.${OBJEXT-o}
  3320. am__minus_obj="-o $am__obj"
  3321. case $depmode in
  3322. gcc)
  3323. # This depmode causes a compiler race in universal mode.
  3324. test "$am__universal" = false || continue
  3325. ;;
  3326. nosideeffect)
  3327. # after this tag, mechanisms are not by side-effect, so they'll
  3328. # only be used when explicitly requested
  3329. if test "x$enable_dependency_tracking" = xyes; then
  3330. continue
  3331. else
  3332. break
  3333. fi
  3334. ;;
  3335. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3336. # This compiler won't grok `-c -o', but also, the minuso test has
  3337. # not run yet. These depmodes are late enough in the game, and
  3338. # so weak that their functioning should not be impacted.
  3339. am__obj=conftest.${OBJEXT-o}
  3340. am__minus_obj=
  3341. ;;
  3342. none) break ;;
  3343. esac
  3344. if depmode=$depmode \
  3345. source=sub/conftest.c object=$am__obj \
  3346. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3347. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3348. >/dev/null 2>conftest.err &&
  3349. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3350. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3351. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3352. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3353. # icc doesn't choke on unknown options, it will just issue warnings
  3354. # or remarks (even with -Werror). So we grep stderr for any message
  3355. # that says an option was ignored or not supported.
  3356. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3357. # icc: Command line warning: ignoring option '-M'; no argument required
  3358. # The diagnosis changed in icc 8.0:
  3359. # icc: Command line remark: option '-MP' not supported
  3360. if (grep 'ignoring option' conftest.err ||
  3361. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3362. am_cv_CC_dependencies_compiler_type=$depmode
  3363. break
  3364. fi
  3365. fi
  3366. done
  3367. cd ..
  3368. rm -rf conftest.dir
  3369. else
  3370. am_cv_CC_dependencies_compiler_type=none
  3371. fi
  3372. fi
  3373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3374. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3375. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3376. if
  3377. test "x$enable_dependency_tracking" != xno \
  3378. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3379. am__fastdepCC_TRUE=
  3380. am__fastdepCC_FALSE='#'
  3381. else
  3382. am__fastdepCC_TRUE='#'
  3383. am__fastdepCC_FALSE=
  3384. fi
  3385. case `pwd` in
  3386. *\ * | *\ *)
  3387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  3388. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  3389. esac
  3390. macro_version='2.4.2'
  3391. macro_revision='1.3337'
  3392. ltmain="$ac_aux_dir/ltmain.sh"
  3393. # Make sure we can run config.sub.
  3394. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  3395. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  3396. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  3397. $as_echo_n "checking build system type... " >&6; }
  3398. if ${ac_cv_build+:} false; then :
  3399. $as_echo_n "(cached) " >&6
  3400. else
  3401. ac_build_alias=$build_alias
  3402. test "x$ac_build_alias" = x &&
  3403. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  3404. test "x$ac_build_alias" = x &&
  3405. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  3406. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  3407. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  3408. fi
  3409. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  3410. $as_echo "$ac_cv_build" >&6; }
  3411. case $ac_cv_build in
  3412. *-*-*) ;;
  3413. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  3414. esac
  3415. build=$ac_cv_build
  3416. ac_save_IFS=$IFS; IFS='-'
  3417. set x $ac_cv_build
  3418. shift
  3419. build_cpu=$1
  3420. build_vendor=$2
  3421. shift; shift
  3422. # Remember, the first character of IFS is used to create $*,
  3423. # except with old shells:
  3424. build_os=$*
  3425. IFS=$ac_save_IFS
  3426. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  3427. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  3428. $as_echo_n "checking host system type... " >&6; }
  3429. if ${ac_cv_host+:} false; then :
  3430. $as_echo_n "(cached) " >&6
  3431. else
  3432. if test "x$host_alias" = x; then
  3433. ac_cv_host=$ac_cv_build
  3434. else
  3435. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  3436. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  3437. fi
  3438. fi
  3439. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  3440. $as_echo "$ac_cv_host" >&6; }
  3441. case $ac_cv_host in
  3442. *-*-*) ;;
  3443. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  3444. esac
  3445. host=$ac_cv_host
  3446. ac_save_IFS=$IFS; IFS='-'
  3447. set x $ac_cv_host
  3448. shift
  3449. host_cpu=$1
  3450. host_vendor=$2
  3451. shift; shift
  3452. # Remember, the first character of IFS is used to create $*,
  3453. # except with old shells:
  3454. host_os=$*
  3455. IFS=$ac_save_IFS
  3456. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  3457. # Backslashify metacharacters that are still active within
  3458. # double-quoted strings.
  3459. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  3460. # Same as above, but do not quote variable references.
  3461. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  3462. # Sed substitution to delay expansion of an escaped shell variable in a
  3463. # double_quote_subst'ed string.
  3464. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  3465. # Sed substitution to delay expansion of an escaped single quote.
  3466. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  3467. # Sed substitution to avoid accidental globbing in evaled expressions
  3468. no_glob_subst='s/\*/\\\*/g'
  3469. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  3470. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  3471. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  3472. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  3473. $as_echo_n "checking how to print strings... " >&6; }
  3474. # Test print first, because it will be a builtin if present.
  3475. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  3476. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  3477. ECHO='print -r --'
  3478. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  3479. ECHO='printf %s\n'
  3480. else
  3481. # Use this function as a fallback that always works.
  3482. func_fallback_echo ()
  3483. {
  3484. eval 'cat <<_LTECHO_EOF
  3485. $1
  3486. _LTECHO_EOF'
  3487. }
  3488. ECHO='func_fallback_echo'
  3489. fi
  3490. # func_echo_all arg...
  3491. # Invoke $ECHO with all args, space-separated.
  3492. func_echo_all ()
  3493. {
  3494. $ECHO ""
  3495. }
  3496. case "$ECHO" in
  3497. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  3498. $as_echo "printf" >&6; } ;;
  3499. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  3500. $as_echo "print -r" >&6; } ;;
  3501. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  3502. $as_echo "cat" >&6; } ;;
  3503. esac
  3504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  3505. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  3506. if ${ac_cv_path_SED+:} false; then :
  3507. $as_echo_n "(cached) " >&6
  3508. else
  3509. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  3510. for ac_i in 1 2 3 4 5 6 7; do
  3511. ac_script="$ac_script$as_nl$ac_script"
  3512. done
  3513. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  3514. { ac_script=; unset ac_script;}
  3515. if test -z "$SED"; then
  3516. ac_path_SED_found=false
  3517. # Loop through the user's path and test for each of PROGNAME-LIST
  3518. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3519. for as_dir in $PATH
  3520. do
  3521. IFS=$as_save_IFS
  3522. test -z "$as_dir" && as_dir=.
  3523. for ac_prog in sed gsed; do
  3524. for ac_exec_ext in '' $ac_executable_extensions; do
  3525. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  3526. as_fn_executable_p "$ac_path_SED" || continue
  3527. # Check for GNU ac_path_SED and select it if it is found.
  3528. # Check for GNU $ac_path_SED
  3529. case `"$ac_path_SED" --version 2>&1` in
  3530. *GNU*)
  3531. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  3532. *)
  3533. ac_count=0
  3534. $as_echo_n 0123456789 >"conftest.in"
  3535. while :
  3536. do
  3537. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3538. mv "conftest.tmp" "conftest.in"
  3539. cp "conftest.in" "conftest.nl"
  3540. $as_echo '' >> "conftest.nl"
  3541. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3542. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3543. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3544. if test $ac_count -gt ${ac_path_SED_max-0}; then
  3545. # Best one so far, save it but keep looking for a better one
  3546. ac_cv_path_SED="$ac_path_SED"
  3547. ac_path_SED_max=$ac_count
  3548. fi
  3549. # 10*(2^10) chars as input seems more than enough
  3550. test $ac_count -gt 10 && break
  3551. done
  3552. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3553. esac
  3554. $ac_path_SED_found && break 3
  3555. done
  3556. done
  3557. done
  3558. IFS=$as_save_IFS
  3559. if test -z "$ac_cv_path_SED"; then
  3560. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  3561. fi
  3562. else
  3563. ac_cv_path_SED=$SED
  3564. fi
  3565. fi
  3566. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  3567. $as_echo "$ac_cv_path_SED" >&6; }
  3568. SED="$ac_cv_path_SED"
  3569. rm -f conftest.sed
  3570. test -z "$SED" && SED=sed
  3571. Xsed="$SED -e 1s/^X//"
  3572. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3573. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3574. if ${ac_cv_path_GREP+:} false; then :
  3575. $as_echo_n "(cached) " >&6
  3576. else
  3577. if test -z "$GREP"; then
  3578. ac_path_GREP_found=false
  3579. # Loop through the user's path and test for each of PROGNAME-LIST
  3580. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3581. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3582. do
  3583. IFS=$as_save_IFS
  3584. test -z "$as_dir" && as_dir=.
  3585. for ac_prog in grep ggrep; do
  3586. for ac_exec_ext in '' $ac_executable_extensions; do
  3587. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3588. as_fn_executable_p "$ac_path_GREP" || continue
  3589. # Check for GNU ac_path_GREP and select it if it is found.
  3590. # Check for GNU $ac_path_GREP
  3591. case `"$ac_path_GREP" --version 2>&1` in
  3592. *GNU*)
  3593. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3594. *)
  3595. ac_count=0
  3596. $as_echo_n 0123456789 >"conftest.in"
  3597. while :
  3598. do
  3599. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3600. mv "conftest.tmp" "conftest.in"
  3601. cp "conftest.in" "conftest.nl"
  3602. $as_echo 'GREP' >> "conftest.nl"
  3603. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3604. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3605. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3606. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3607. # Best one so far, save it but keep looking for a better one
  3608. ac_cv_path_GREP="$ac_path_GREP"
  3609. ac_path_GREP_max=$ac_count
  3610. fi
  3611. # 10*(2^10) chars as input seems more than enough
  3612. test $ac_count -gt 10 && break
  3613. done
  3614. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3615. esac
  3616. $ac_path_GREP_found && break 3
  3617. done
  3618. done
  3619. done
  3620. IFS=$as_save_IFS
  3621. if test -z "$ac_cv_path_GREP"; then
  3622. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3623. fi
  3624. else
  3625. ac_cv_path_GREP=$GREP
  3626. fi
  3627. fi
  3628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3629. $as_echo "$ac_cv_path_GREP" >&6; }
  3630. GREP="$ac_cv_path_GREP"
  3631. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3632. $as_echo_n "checking for egrep... " >&6; }
  3633. if ${ac_cv_path_EGREP+:} false; then :
  3634. $as_echo_n "(cached) " >&6
  3635. else
  3636. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3637. then ac_cv_path_EGREP="$GREP -E"
  3638. else
  3639. if test -z "$EGREP"; then
  3640. ac_path_EGREP_found=false
  3641. # Loop through the user's path and test for each of PROGNAME-LIST
  3642. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3643. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3644. do
  3645. IFS=$as_save_IFS
  3646. test -z "$as_dir" && as_dir=.
  3647. for ac_prog in egrep; do
  3648. for ac_exec_ext in '' $ac_executable_extensions; do
  3649. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3650. as_fn_executable_p "$ac_path_EGREP" || continue
  3651. # Check for GNU ac_path_EGREP and select it if it is found.
  3652. # Check for GNU $ac_path_EGREP
  3653. case `"$ac_path_EGREP" --version 2>&1` in
  3654. *GNU*)
  3655. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3656. *)
  3657. ac_count=0
  3658. $as_echo_n 0123456789 >"conftest.in"
  3659. while :
  3660. do
  3661. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3662. mv "conftest.tmp" "conftest.in"
  3663. cp "conftest.in" "conftest.nl"
  3664. $as_echo 'EGREP' >> "conftest.nl"
  3665. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3666. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3667. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3668. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3669. # Best one so far, save it but keep looking for a better one
  3670. ac_cv_path_EGREP="$ac_path_EGREP"
  3671. ac_path_EGREP_max=$ac_count
  3672. fi
  3673. # 10*(2^10) chars as input seems more than enough
  3674. test $ac_count -gt 10 && break
  3675. done
  3676. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3677. esac
  3678. $ac_path_EGREP_found && break 3
  3679. done
  3680. done
  3681. done
  3682. IFS=$as_save_IFS
  3683. if test -z "$ac_cv_path_EGREP"; then
  3684. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3685. fi
  3686. else
  3687. ac_cv_path_EGREP=$EGREP
  3688. fi
  3689. fi
  3690. fi
  3691. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3692. $as_echo "$ac_cv_path_EGREP" >&6; }
  3693. EGREP="$ac_cv_path_EGREP"
  3694. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  3695. $as_echo_n "checking for fgrep... " >&6; }
  3696. if ${ac_cv_path_FGREP+:} false; then :
  3697. $as_echo_n "(cached) " >&6
  3698. else
  3699. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  3700. then ac_cv_path_FGREP="$GREP -F"
  3701. else
  3702. if test -z "$FGREP"; then
  3703. ac_path_FGREP_found=false
  3704. # Loop through the user's path and test for each of PROGNAME-LIST
  3705. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3706. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3707. do
  3708. IFS=$as_save_IFS
  3709. test -z "$as_dir" && as_dir=.
  3710. for ac_prog in fgrep; do
  3711. for ac_exec_ext in '' $ac_executable_extensions; do
  3712. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  3713. as_fn_executable_p "$ac_path_FGREP" || continue
  3714. # Check for GNU ac_path_FGREP and select it if it is found.
  3715. # Check for GNU $ac_path_FGREP
  3716. case `"$ac_path_FGREP" --version 2>&1` in
  3717. *GNU*)
  3718. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  3719. *)
  3720. ac_count=0
  3721. $as_echo_n 0123456789 >"conftest.in"
  3722. while :
  3723. do
  3724. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3725. mv "conftest.tmp" "conftest.in"
  3726. cp "conftest.in" "conftest.nl"
  3727. $as_echo 'FGREP' >> "conftest.nl"
  3728. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3729. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3730. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3731. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  3732. # Best one so far, save it but keep looking for a better one
  3733. ac_cv_path_FGREP="$ac_path_FGREP"
  3734. ac_path_FGREP_max=$ac_count
  3735. fi
  3736. # 10*(2^10) chars as input seems more than enough
  3737. test $ac_count -gt 10 && break
  3738. done
  3739. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3740. esac
  3741. $ac_path_FGREP_found && break 3
  3742. done
  3743. done
  3744. done
  3745. IFS=$as_save_IFS
  3746. if test -z "$ac_cv_path_FGREP"; then
  3747. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3748. fi
  3749. else
  3750. ac_cv_path_FGREP=$FGREP
  3751. fi
  3752. fi
  3753. fi
  3754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  3755. $as_echo "$ac_cv_path_FGREP" >&6; }
  3756. FGREP="$ac_cv_path_FGREP"
  3757. test -z "$GREP" && GREP=grep
  3758. # Check whether --with-gnu-ld was given.
  3759. if test "${with_gnu_ld+set}" = set; then :
  3760. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  3761. else
  3762. with_gnu_ld=no
  3763. fi
  3764. ac_prog=ld
  3765. if test "$GCC" = yes; then
  3766. # Check if gcc -print-prog-name=ld gives a path.
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  3768. $as_echo_n "checking for ld used by $CC... " >&6; }
  3769. case $host in
  3770. *-*-mingw*)
  3771. # gcc leaves a trailing carriage return which upsets mingw
  3772. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  3773. *)
  3774. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  3775. esac
  3776. case $ac_prog in
  3777. # Accept absolute paths.
  3778. [\\/]* | ?:[\\/]*)
  3779. re_direlt='/[^/][^/]*/\.\./'
  3780. # Canonicalize the pathname of ld
  3781. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  3782. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  3783. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  3784. done
  3785. test -z "$LD" && LD="$ac_prog"
  3786. ;;
  3787. "")
  3788. # If it fails, then pretend we aren't using GCC.
  3789. ac_prog=ld
  3790. ;;
  3791. *)
  3792. # If it is relative, then search for the first ld in PATH.
  3793. with_gnu_ld=unknown
  3794. ;;
  3795. esac
  3796. elif test "$with_gnu_ld" = yes; then
  3797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  3798. $as_echo_n "checking for GNU ld... " >&6; }
  3799. else
  3800. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  3801. $as_echo_n "checking for non-GNU ld... " >&6; }
  3802. fi
  3803. if ${lt_cv_path_LD+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. if test -z "$LD"; then
  3807. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3808. for ac_dir in $PATH; do
  3809. IFS="$lt_save_ifs"
  3810. test -z "$ac_dir" && ac_dir=.
  3811. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  3812. lt_cv_path_LD="$ac_dir/$ac_prog"
  3813. # Check to see if the program is GNU ld. I'd rather use --version,
  3814. # but apparently some variants of GNU ld only accept -v.
  3815. # Break only if it was the GNU/non-GNU ld that we prefer.
  3816. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  3817. *GNU* | *'with BFD'*)
  3818. test "$with_gnu_ld" != no && break
  3819. ;;
  3820. *)
  3821. test "$with_gnu_ld" != yes && break
  3822. ;;
  3823. esac
  3824. fi
  3825. done
  3826. IFS="$lt_save_ifs"
  3827. else
  3828. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  3829. fi
  3830. fi
  3831. LD="$lt_cv_path_LD"
  3832. if test -n "$LD"; then
  3833. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  3834. $as_echo "$LD" >&6; }
  3835. else
  3836. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3837. $as_echo "no" >&6; }
  3838. fi
  3839. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  3840. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  3841. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  3842. if ${lt_cv_prog_gnu_ld+:} false; then :
  3843. $as_echo_n "(cached) " >&6
  3844. else
  3845. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  3846. case `$LD -v 2>&1 </dev/null` in
  3847. *GNU* | *'with BFD'*)
  3848. lt_cv_prog_gnu_ld=yes
  3849. ;;
  3850. *)
  3851. lt_cv_prog_gnu_ld=no
  3852. ;;
  3853. esac
  3854. fi
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  3856. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  3857. with_gnu_ld=$lt_cv_prog_gnu_ld
  3858. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  3859. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  3860. if ${lt_cv_path_NM+:} false; then :
  3861. $as_echo_n "(cached) " >&6
  3862. else
  3863. if test -n "$NM"; then
  3864. # Let the user override the test.
  3865. lt_cv_path_NM="$NM"
  3866. else
  3867. lt_nm_to_check="${ac_tool_prefix}nm"
  3868. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  3869. lt_nm_to_check="$lt_nm_to_check nm"
  3870. fi
  3871. for lt_tmp_nm in $lt_nm_to_check; do
  3872. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  3873. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  3874. IFS="$lt_save_ifs"
  3875. test -z "$ac_dir" && ac_dir=.
  3876. tmp_nm="$ac_dir/$lt_tmp_nm"
  3877. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  3878. # Check to see if the nm accepts a BSD-compat flag.
  3879. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  3880. # nm: unknown option "B" ignored
  3881. # Tru64's nm complains that /dev/null is an invalid object file
  3882. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  3883. */dev/null* | *'Invalid file or object type'*)
  3884. lt_cv_path_NM="$tmp_nm -B"
  3885. break
  3886. ;;
  3887. *)
  3888. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  3889. */dev/null*)
  3890. lt_cv_path_NM="$tmp_nm -p"
  3891. break
  3892. ;;
  3893. *)
  3894. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  3895. continue # so that we can try to find one that supports BSD flags
  3896. ;;
  3897. esac
  3898. ;;
  3899. esac
  3900. fi
  3901. done
  3902. IFS="$lt_save_ifs"
  3903. done
  3904. : ${lt_cv_path_NM=no}
  3905. fi
  3906. fi
  3907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  3908. $as_echo "$lt_cv_path_NM" >&6; }
  3909. if test "$lt_cv_path_NM" != "no"; then
  3910. NM="$lt_cv_path_NM"
  3911. else
  3912. # Didn't find any BSD compatible name lister, look for dumpbin.
  3913. if test -n "$DUMPBIN"; then :
  3914. # Let the user override the test.
  3915. else
  3916. if test -n "$ac_tool_prefix"; then
  3917. for ac_prog in dumpbin "link -dump"
  3918. do
  3919. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3920. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3921. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3922. $as_echo_n "checking for $ac_word... " >&6; }
  3923. if ${ac_cv_prog_DUMPBIN+:} false; then :
  3924. $as_echo_n "(cached) " >&6
  3925. else
  3926. if test -n "$DUMPBIN"; then
  3927. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  3928. else
  3929. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3930. for as_dir in $PATH
  3931. do
  3932. IFS=$as_save_IFS
  3933. test -z "$as_dir" && as_dir=.
  3934. for ac_exec_ext in '' $ac_executable_extensions; do
  3935. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3936. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  3937. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3938. break 2
  3939. fi
  3940. done
  3941. done
  3942. IFS=$as_save_IFS
  3943. fi
  3944. fi
  3945. DUMPBIN=$ac_cv_prog_DUMPBIN
  3946. if test -n "$DUMPBIN"; then
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  3948. $as_echo "$DUMPBIN" >&6; }
  3949. else
  3950. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3951. $as_echo "no" >&6; }
  3952. fi
  3953. test -n "$DUMPBIN" && break
  3954. done
  3955. fi
  3956. if test -z "$DUMPBIN"; then
  3957. ac_ct_DUMPBIN=$DUMPBIN
  3958. for ac_prog in dumpbin "link -dump"
  3959. do
  3960. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3961. set dummy $ac_prog; ac_word=$2
  3962. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3963. $as_echo_n "checking for $ac_word... " >&6; }
  3964. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  3965. $as_echo_n "(cached) " >&6
  3966. else
  3967. if test -n "$ac_ct_DUMPBIN"; then
  3968. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  3969. else
  3970. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3971. for as_dir in $PATH
  3972. do
  3973. IFS=$as_save_IFS
  3974. test -z "$as_dir" && as_dir=.
  3975. for ac_exec_ext in '' $ac_executable_extensions; do
  3976. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3977. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  3978. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3979. break 2
  3980. fi
  3981. done
  3982. done
  3983. IFS=$as_save_IFS
  3984. fi
  3985. fi
  3986. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  3987. if test -n "$ac_ct_DUMPBIN"; then
  3988. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  3989. $as_echo "$ac_ct_DUMPBIN" >&6; }
  3990. else
  3991. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3992. $as_echo "no" >&6; }
  3993. fi
  3994. test -n "$ac_ct_DUMPBIN" && break
  3995. done
  3996. if test "x$ac_ct_DUMPBIN" = x; then
  3997. DUMPBIN=":"
  3998. else
  3999. case $cross_compiling:$ac_tool_warned in
  4000. yes:)
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4002. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4003. ac_tool_warned=yes ;;
  4004. esac
  4005. DUMPBIN=$ac_ct_DUMPBIN
  4006. fi
  4007. fi
  4008. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4009. *COFF*)
  4010. DUMPBIN="$DUMPBIN -symbols"
  4011. ;;
  4012. *)
  4013. DUMPBIN=:
  4014. ;;
  4015. esac
  4016. fi
  4017. if test "$DUMPBIN" != ":"; then
  4018. NM="$DUMPBIN"
  4019. fi
  4020. fi
  4021. test -z "$NM" && NM=nm
  4022. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4023. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4024. if ${lt_cv_nm_interface+:} false; then :
  4025. $as_echo_n "(cached) " >&6
  4026. else
  4027. lt_cv_nm_interface="BSD nm"
  4028. echo "int some_variable = 0;" > conftest.$ac_ext
  4029. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4030. (eval "$ac_compile" 2>conftest.err)
  4031. cat conftest.err >&5
  4032. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4033. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4034. cat conftest.err >&5
  4035. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4036. cat conftest.out >&5
  4037. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4038. lt_cv_nm_interface="MS dumpbin"
  4039. fi
  4040. rm -f conftest*
  4041. fi
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  4043. $as_echo "$lt_cv_nm_interface" >&6; }
  4044. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  4045. $as_echo_n "checking whether ln -s works... " >&6; }
  4046. LN_S=$as_ln_s
  4047. if test "$LN_S" = "ln -s"; then
  4048. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  4049. $as_echo "yes" >&6; }
  4050. else
  4051. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  4052. $as_echo "no, using $LN_S" >&6; }
  4053. fi
  4054. # find the maximum length of command line arguments
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  4056. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  4057. if ${lt_cv_sys_max_cmd_len+:} false; then :
  4058. $as_echo_n "(cached) " >&6
  4059. else
  4060. i=0
  4061. teststring="ABCD"
  4062. case $build_os in
  4063. msdosdjgpp*)
  4064. # On DJGPP, this test can blow up pretty badly due to problems in libc
  4065. # (any single argument exceeding 2000 bytes causes a buffer overrun
  4066. # during glob expansion). Even if it were fixed, the result of this
  4067. # check would be larger than it should be.
  4068. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  4069. ;;
  4070. gnu*)
  4071. # Under GNU Hurd, this test is not required because there is
  4072. # no limit to the length of command line arguments.
  4073. # Libtool will interpret -1 as no limit whatsoever
  4074. lt_cv_sys_max_cmd_len=-1;
  4075. ;;
  4076. cygwin* | mingw* | cegcc*)
  4077. # On Win9x/ME, this test blows up -- it succeeds, but takes
  4078. # about 5 minutes as the teststring grows exponentially.
  4079. # Worse, since 9x/ME are not pre-emptively multitasking,
  4080. # you end up with a "frozen" computer, even though with patience
  4081. # the test eventually succeeds (with a max line length of 256k).
  4082. # Instead, let's just punt: use the minimum linelength reported by
  4083. # all of the supported platforms: 8192 (on NT/2K/XP).
  4084. lt_cv_sys_max_cmd_len=8192;
  4085. ;;
  4086. mint*)
  4087. # On MiNT this can take a long time and run out of memory.
  4088. lt_cv_sys_max_cmd_len=8192;
  4089. ;;
  4090. amigaos*)
  4091. # On AmigaOS with pdksh, this test takes hours, literally.
  4092. # So we just punt and use a minimum line length of 8192.
  4093. lt_cv_sys_max_cmd_len=8192;
  4094. ;;
  4095. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  4096. # This has been around since 386BSD, at least. Likely further.
  4097. if test -x /sbin/sysctl; then
  4098. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  4099. elif test -x /usr/sbin/sysctl; then
  4100. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  4101. else
  4102. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  4103. fi
  4104. # And add a safety zone
  4105. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4106. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4107. ;;
  4108. interix*)
  4109. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  4110. lt_cv_sys_max_cmd_len=196608
  4111. ;;
  4112. os2*)
  4113. # The test takes a long time on OS/2.
  4114. lt_cv_sys_max_cmd_len=8192
  4115. ;;
  4116. osf*)
  4117. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  4118. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  4119. # nice to cause kernel panics so lets avoid the loop below.
  4120. # First set a reasonable default.
  4121. lt_cv_sys_max_cmd_len=16384
  4122. #
  4123. if test -x /sbin/sysconfig; then
  4124. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  4125. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  4126. esac
  4127. fi
  4128. ;;
  4129. sco3.2v5*)
  4130. lt_cv_sys_max_cmd_len=102400
  4131. ;;
  4132. sysv5* | sco5v6* | sysv4.2uw2*)
  4133. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  4134. if test -n "$kargmax"; then
  4135. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  4136. else
  4137. lt_cv_sys_max_cmd_len=32768
  4138. fi
  4139. ;;
  4140. *)
  4141. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  4142. if test -n "$lt_cv_sys_max_cmd_len"; then
  4143. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  4144. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  4145. else
  4146. # Make teststring a little bigger before we do anything with it.
  4147. # a 1K string should be a reasonable start.
  4148. for i in 1 2 3 4 5 6 7 8 ; do
  4149. teststring=$teststring$teststring
  4150. done
  4151. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  4152. # If test is not a shell built-in, we'll probably end up computing a
  4153. # maximum length that is only half of the actual maximum length, but
  4154. # we can't tell.
  4155. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  4156. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  4157. test $i != 17 # 1/2 MB should be enough
  4158. do
  4159. i=`expr $i + 1`
  4160. teststring=$teststring$teststring
  4161. done
  4162. # Only check the string length outside the loop.
  4163. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  4164. teststring=
  4165. # Add a significant safety factor because C++ compilers can tack on
  4166. # massive amounts of additional arguments before passing them to the
  4167. # linker. It appears as though 1/2 is a usable value.
  4168. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  4169. fi
  4170. ;;
  4171. esac
  4172. fi
  4173. if test -n $lt_cv_sys_max_cmd_len ; then
  4174. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  4175. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  4176. else
  4177. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  4178. $as_echo "none" >&6; }
  4179. fi
  4180. max_cmd_len=$lt_cv_sys_max_cmd_len
  4181. : ${CP="cp -f"}
  4182. : ${MV="mv -f"}
  4183. : ${RM="rm -f"}
  4184. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  4185. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  4186. # Try some XSI features
  4187. xsi_shell=no
  4188. ( _lt_dummy="a/b/c"
  4189. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  4190. = c,a/b,b/c, \
  4191. && eval 'test $(( 1 + 1 )) -eq 2 \
  4192. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  4193. && xsi_shell=yes
  4194. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  4195. $as_echo "$xsi_shell" >&6; }
  4196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  4197. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  4198. lt_shell_append=no
  4199. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  4200. >/dev/null 2>&1 \
  4201. && lt_shell_append=yes
  4202. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  4203. $as_echo "$lt_shell_append" >&6; }
  4204. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  4205. lt_unset=unset
  4206. else
  4207. lt_unset=false
  4208. fi
  4209. # test EBCDIC or ASCII
  4210. case `echo X|tr X '\101'` in
  4211. A) # ASCII based system
  4212. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  4213. lt_SP2NL='tr \040 \012'
  4214. lt_NL2SP='tr \015\012 \040\040'
  4215. ;;
  4216. *) # EBCDIC based system
  4217. lt_SP2NL='tr \100 \n'
  4218. lt_NL2SP='tr \r\n \100\100'
  4219. ;;
  4220. esac
  4221. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  4222. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  4223. if ${lt_cv_to_host_file_cmd+:} false; then :
  4224. $as_echo_n "(cached) " >&6
  4225. else
  4226. case $host in
  4227. *-*-mingw* )
  4228. case $build in
  4229. *-*-mingw* ) # actually msys
  4230. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  4231. ;;
  4232. *-*-cygwin* )
  4233. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  4234. ;;
  4235. * ) # otherwise, assume *nix
  4236. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  4237. ;;
  4238. esac
  4239. ;;
  4240. *-*-cygwin* )
  4241. case $build in
  4242. *-*-mingw* ) # actually msys
  4243. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  4244. ;;
  4245. *-*-cygwin* )
  4246. lt_cv_to_host_file_cmd=func_convert_file_noop
  4247. ;;
  4248. * ) # otherwise, assume *nix
  4249. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  4250. ;;
  4251. esac
  4252. ;;
  4253. * ) # unhandled hosts (and "normal" native builds)
  4254. lt_cv_to_host_file_cmd=func_convert_file_noop
  4255. ;;
  4256. esac
  4257. fi
  4258. to_host_file_cmd=$lt_cv_to_host_file_cmd
  4259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  4260. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  4261. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  4262. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  4263. if ${lt_cv_to_tool_file_cmd+:} false; then :
  4264. $as_echo_n "(cached) " >&6
  4265. else
  4266. #assume ordinary cross tools, or native build.
  4267. lt_cv_to_tool_file_cmd=func_convert_file_noop
  4268. case $host in
  4269. *-*-mingw* )
  4270. case $build in
  4271. *-*-mingw* ) # actually msys
  4272. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  4273. ;;
  4274. esac
  4275. ;;
  4276. esac
  4277. fi
  4278. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  4279. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  4280. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  4281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  4282. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  4283. if ${lt_cv_ld_reload_flag+:} false; then :
  4284. $as_echo_n "(cached) " >&6
  4285. else
  4286. lt_cv_ld_reload_flag='-r'
  4287. fi
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  4289. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  4290. reload_flag=$lt_cv_ld_reload_flag
  4291. case $reload_flag in
  4292. "" | " "*) ;;
  4293. *) reload_flag=" $reload_flag" ;;
  4294. esac
  4295. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4296. case $host_os in
  4297. cygwin* | mingw* | pw32* | cegcc*)
  4298. if test "$GCC" != yes; then
  4299. reload_cmds=false
  4300. fi
  4301. ;;
  4302. darwin*)
  4303. if test "$GCC" = yes; then
  4304. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  4305. else
  4306. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  4307. fi
  4308. ;;
  4309. esac
  4310. if test -n "$ac_tool_prefix"; then
  4311. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4312. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4313. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4314. $as_echo_n "checking for $ac_word... " >&6; }
  4315. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4316. $as_echo_n "(cached) " >&6
  4317. else
  4318. if test -n "$OBJDUMP"; then
  4319. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4320. else
  4321. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4322. for as_dir in $PATH
  4323. do
  4324. IFS=$as_save_IFS
  4325. test -z "$as_dir" && as_dir=.
  4326. for ac_exec_ext in '' $ac_executable_extensions; do
  4327. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4328. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4329. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4330. break 2
  4331. fi
  4332. done
  4333. done
  4334. IFS=$as_save_IFS
  4335. fi
  4336. fi
  4337. OBJDUMP=$ac_cv_prog_OBJDUMP
  4338. if test -n "$OBJDUMP"; then
  4339. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4340. $as_echo "$OBJDUMP" >&6; }
  4341. else
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4343. $as_echo "no" >&6; }
  4344. fi
  4345. fi
  4346. if test -z "$ac_cv_prog_OBJDUMP"; then
  4347. ac_ct_OBJDUMP=$OBJDUMP
  4348. # Extract the first word of "objdump", so it can be a program name with args.
  4349. set dummy objdump; ac_word=$2
  4350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4351. $as_echo_n "checking for $ac_word... " >&6; }
  4352. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4353. $as_echo_n "(cached) " >&6
  4354. else
  4355. if test -n "$ac_ct_OBJDUMP"; then
  4356. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4357. else
  4358. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4359. for as_dir in $PATH
  4360. do
  4361. IFS=$as_save_IFS
  4362. test -z "$as_dir" && as_dir=.
  4363. for ac_exec_ext in '' $ac_executable_extensions; do
  4364. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4365. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4366. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4367. break 2
  4368. fi
  4369. done
  4370. done
  4371. IFS=$as_save_IFS
  4372. fi
  4373. fi
  4374. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4375. if test -n "$ac_ct_OBJDUMP"; then
  4376. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4377. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4378. else
  4379. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4380. $as_echo "no" >&6; }
  4381. fi
  4382. if test "x$ac_ct_OBJDUMP" = x; then
  4383. OBJDUMP="false"
  4384. else
  4385. case $cross_compiling:$ac_tool_warned in
  4386. yes:)
  4387. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4388. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4389. ac_tool_warned=yes ;;
  4390. esac
  4391. OBJDUMP=$ac_ct_OBJDUMP
  4392. fi
  4393. else
  4394. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4395. fi
  4396. test -z "$OBJDUMP" && OBJDUMP=objdump
  4397. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  4398. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  4399. if ${lt_cv_deplibs_check_method+:} false; then :
  4400. $as_echo_n "(cached) " >&6
  4401. else
  4402. lt_cv_file_magic_cmd='$MAGIC_CMD'
  4403. lt_cv_file_magic_test_file=
  4404. lt_cv_deplibs_check_method='unknown'
  4405. # Need to set the preceding variable on all platforms that support
  4406. # interlibrary dependencies.
  4407. # 'none' -- dependencies not supported.
  4408. # `unknown' -- same as none, but documents that we really don't know.
  4409. # 'pass_all' -- all dependencies passed with no checks.
  4410. # 'test_compile' -- check by making test program.
  4411. # 'file_magic [[regex]]' -- check by looking for files in library path
  4412. # which responds to the $file_magic_cmd with a given extended regex.
  4413. # If you have `file' or equivalent on your system and you're not sure
  4414. # whether `pass_all' will *always* work, you probably want this one.
  4415. case $host_os in
  4416. aix[4-9]*)
  4417. lt_cv_deplibs_check_method=pass_all
  4418. ;;
  4419. beos*)
  4420. lt_cv_deplibs_check_method=pass_all
  4421. ;;
  4422. bsdi[45]*)
  4423. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  4424. lt_cv_file_magic_cmd='/usr/bin/file -L'
  4425. lt_cv_file_magic_test_file=/shlib/libc.so
  4426. ;;
  4427. cygwin*)
  4428. # func_win32_libid is a shell function defined in ltmain.sh
  4429. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4430. lt_cv_file_magic_cmd='func_win32_libid'
  4431. ;;
  4432. mingw* | pw32*)
  4433. # Base MSYS/MinGW do not provide the 'file' command needed by
  4434. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  4435. # unless we find 'file', for example because we are cross-compiling.
  4436. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  4437. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  4438. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  4439. lt_cv_file_magic_cmd='func_win32_libid'
  4440. else
  4441. # Keep this pattern in sync with the one in func_win32_libid.
  4442. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  4443. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4444. fi
  4445. ;;
  4446. cegcc*)
  4447. # use the weaker test based on 'objdump'. See mingw*.
  4448. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  4449. lt_cv_file_magic_cmd='$OBJDUMP -f'
  4450. ;;
  4451. darwin* | rhapsody*)
  4452. lt_cv_deplibs_check_method=pass_all
  4453. ;;
  4454. freebsd* | dragonfly*)
  4455. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4456. case $host_cpu in
  4457. i*86 )
  4458. # Not sure whether the presence of OpenBSD here was a mistake.
  4459. # Let's accept both of them until this is cleared up.
  4460. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  4461. lt_cv_file_magic_cmd=/usr/bin/file
  4462. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  4463. ;;
  4464. esac
  4465. else
  4466. lt_cv_deplibs_check_method=pass_all
  4467. fi
  4468. ;;
  4469. haiku*)
  4470. lt_cv_deplibs_check_method=pass_all
  4471. ;;
  4472. hpux10.20* | hpux11*)
  4473. lt_cv_file_magic_cmd=/usr/bin/file
  4474. case $host_cpu in
  4475. ia64*)
  4476. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  4477. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  4478. ;;
  4479. hppa*64*)
  4480. 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]'
  4481. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  4482. ;;
  4483. *)
  4484. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  4485. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  4486. ;;
  4487. esac
  4488. ;;
  4489. interix[3-9]*)
  4490. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  4491. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  4492. ;;
  4493. irix5* | irix6* | nonstopux*)
  4494. case $LD in
  4495. *-32|*"-32 ") libmagic=32-bit;;
  4496. *-n32|*"-n32 ") libmagic=N32;;
  4497. *-64|*"-64 ") libmagic=64-bit;;
  4498. *) libmagic=never-match;;
  4499. esac
  4500. lt_cv_deplibs_check_method=pass_all
  4501. ;;
  4502. # This must be glibc/ELF.
  4503. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  4504. lt_cv_deplibs_check_method=pass_all
  4505. ;;
  4506. netbsd* | netbsdelf*-gnu)
  4507. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  4508. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4509. else
  4510. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  4511. fi
  4512. ;;
  4513. newos6*)
  4514. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  4515. lt_cv_file_magic_cmd=/usr/bin/file
  4516. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  4517. ;;
  4518. *nto* | *qnx*)
  4519. lt_cv_deplibs_check_method=pass_all
  4520. ;;
  4521. openbsd*)
  4522. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  4523. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  4524. else
  4525. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  4526. fi
  4527. ;;
  4528. osf3* | osf4* | osf5*)
  4529. lt_cv_deplibs_check_method=pass_all
  4530. ;;
  4531. rdos*)
  4532. lt_cv_deplibs_check_method=pass_all
  4533. ;;
  4534. solaris*)
  4535. lt_cv_deplibs_check_method=pass_all
  4536. ;;
  4537. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  4538. lt_cv_deplibs_check_method=pass_all
  4539. ;;
  4540. sysv4 | sysv4.3*)
  4541. case $host_vendor in
  4542. motorola)
  4543. 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]'
  4544. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  4545. ;;
  4546. ncr)
  4547. lt_cv_deplibs_check_method=pass_all
  4548. ;;
  4549. sequent)
  4550. lt_cv_file_magic_cmd='/bin/file'
  4551. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  4552. ;;
  4553. sni)
  4554. lt_cv_file_magic_cmd='/bin/file'
  4555. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  4556. lt_cv_file_magic_test_file=/lib/libc.so
  4557. ;;
  4558. siemens)
  4559. lt_cv_deplibs_check_method=pass_all
  4560. ;;
  4561. pc)
  4562. lt_cv_deplibs_check_method=pass_all
  4563. ;;
  4564. esac
  4565. ;;
  4566. tpf*)
  4567. lt_cv_deplibs_check_method=pass_all
  4568. ;;
  4569. esac
  4570. fi
  4571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  4572. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  4573. file_magic_glob=
  4574. want_nocaseglob=no
  4575. if test "$build" = "$host"; then
  4576. case $host_os in
  4577. mingw* | pw32*)
  4578. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  4579. want_nocaseglob=yes
  4580. else
  4581. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  4582. fi
  4583. ;;
  4584. esac
  4585. fi
  4586. file_magic_cmd=$lt_cv_file_magic_cmd
  4587. deplibs_check_method=$lt_cv_deplibs_check_method
  4588. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  4589. if test -n "$ac_tool_prefix"; then
  4590. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4591. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4592. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4593. $as_echo_n "checking for $ac_word... " >&6; }
  4594. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4595. $as_echo_n "(cached) " >&6
  4596. else
  4597. if test -n "$DLLTOOL"; then
  4598. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4599. else
  4600. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4601. for as_dir in $PATH
  4602. do
  4603. IFS=$as_save_IFS
  4604. test -z "$as_dir" && as_dir=.
  4605. for ac_exec_ext in '' $ac_executable_extensions; do
  4606. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4607. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4608. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4609. break 2
  4610. fi
  4611. done
  4612. done
  4613. IFS=$as_save_IFS
  4614. fi
  4615. fi
  4616. DLLTOOL=$ac_cv_prog_DLLTOOL
  4617. if test -n "$DLLTOOL"; then
  4618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4619. $as_echo "$DLLTOOL" >&6; }
  4620. else
  4621. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4622. $as_echo "no" >&6; }
  4623. fi
  4624. fi
  4625. if test -z "$ac_cv_prog_DLLTOOL"; then
  4626. ac_ct_DLLTOOL=$DLLTOOL
  4627. # Extract the first word of "dlltool", so it can be a program name with args.
  4628. set dummy dlltool; ac_word=$2
  4629. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4630. $as_echo_n "checking for $ac_word... " >&6; }
  4631. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4632. $as_echo_n "(cached) " >&6
  4633. else
  4634. if test -n "$ac_ct_DLLTOOL"; then
  4635. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4636. else
  4637. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4638. for as_dir in $PATH
  4639. do
  4640. IFS=$as_save_IFS
  4641. test -z "$as_dir" && as_dir=.
  4642. for ac_exec_ext in '' $ac_executable_extensions; do
  4643. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4644. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4645. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4646. break 2
  4647. fi
  4648. done
  4649. done
  4650. IFS=$as_save_IFS
  4651. fi
  4652. fi
  4653. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4654. if test -n "$ac_ct_DLLTOOL"; then
  4655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4656. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4657. else
  4658. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4659. $as_echo "no" >&6; }
  4660. fi
  4661. if test "x$ac_ct_DLLTOOL" = x; then
  4662. DLLTOOL="false"
  4663. else
  4664. case $cross_compiling:$ac_tool_warned in
  4665. yes:)
  4666. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4667. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4668. ac_tool_warned=yes ;;
  4669. esac
  4670. DLLTOOL=$ac_ct_DLLTOOL
  4671. fi
  4672. else
  4673. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4674. fi
  4675. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4676. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  4677. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  4678. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  4679. $as_echo_n "(cached) " >&6
  4680. else
  4681. lt_cv_sharedlib_from_linklib_cmd='unknown'
  4682. case $host_os in
  4683. cygwin* | mingw* | pw32* | cegcc*)
  4684. # two different shell functions defined in ltmain.sh
  4685. # decide which to use based on capabilities of $DLLTOOL
  4686. case `$DLLTOOL --help 2>&1` in
  4687. *--identify-strict*)
  4688. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  4689. ;;
  4690. *)
  4691. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  4692. ;;
  4693. esac
  4694. ;;
  4695. *)
  4696. # fallback: assume linklib IS sharedlib
  4697. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  4698. ;;
  4699. esac
  4700. fi
  4701. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  4702. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  4703. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  4704. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  4705. if test -n "$ac_tool_prefix"; then
  4706. for ac_prog in ar
  4707. do
  4708. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4709. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4710. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4711. $as_echo_n "checking for $ac_word... " >&6; }
  4712. if ${ac_cv_prog_AR+:} false; then :
  4713. $as_echo_n "(cached) " >&6
  4714. else
  4715. if test -n "$AR"; then
  4716. ac_cv_prog_AR="$AR" # Let the user override the test.
  4717. else
  4718. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4719. for as_dir in $PATH
  4720. do
  4721. IFS=$as_save_IFS
  4722. test -z "$as_dir" && as_dir=.
  4723. for ac_exec_ext in '' $ac_executable_extensions; do
  4724. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4725. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  4726. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4727. break 2
  4728. fi
  4729. done
  4730. done
  4731. IFS=$as_save_IFS
  4732. fi
  4733. fi
  4734. AR=$ac_cv_prog_AR
  4735. if test -n "$AR"; then
  4736. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  4737. $as_echo "$AR" >&6; }
  4738. else
  4739. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4740. $as_echo "no" >&6; }
  4741. fi
  4742. test -n "$AR" && break
  4743. done
  4744. fi
  4745. if test -z "$AR"; then
  4746. ac_ct_AR=$AR
  4747. for ac_prog in ar
  4748. do
  4749. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4750. set dummy $ac_prog; ac_word=$2
  4751. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4752. $as_echo_n "checking for $ac_word... " >&6; }
  4753. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  4754. $as_echo_n "(cached) " >&6
  4755. else
  4756. if test -n "$ac_ct_AR"; then
  4757. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  4758. else
  4759. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4760. for as_dir in $PATH
  4761. do
  4762. IFS=$as_save_IFS
  4763. test -z "$as_dir" && as_dir=.
  4764. for ac_exec_ext in '' $ac_executable_extensions; do
  4765. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4766. ac_cv_prog_ac_ct_AR="$ac_prog"
  4767. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4768. break 2
  4769. fi
  4770. done
  4771. done
  4772. IFS=$as_save_IFS
  4773. fi
  4774. fi
  4775. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  4776. if test -n "$ac_ct_AR"; then
  4777. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  4778. $as_echo "$ac_ct_AR" >&6; }
  4779. else
  4780. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4781. $as_echo "no" >&6; }
  4782. fi
  4783. test -n "$ac_ct_AR" && break
  4784. done
  4785. if test "x$ac_ct_AR" = x; then
  4786. AR="false"
  4787. else
  4788. case $cross_compiling:$ac_tool_warned in
  4789. yes:)
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4791. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4792. ac_tool_warned=yes ;;
  4793. esac
  4794. AR=$ac_ct_AR
  4795. fi
  4796. fi
  4797. : ${AR=ar}
  4798. : ${AR_FLAGS=cru}
  4799. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  4800. $as_echo_n "checking for archiver @FILE support... " >&6; }
  4801. if ${lt_cv_ar_at_file+:} false; then :
  4802. $as_echo_n "(cached) " >&6
  4803. else
  4804. lt_cv_ar_at_file=no
  4805. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4806. /* end confdefs.h. */
  4807. int
  4808. main ()
  4809. {
  4810. ;
  4811. return 0;
  4812. }
  4813. _ACEOF
  4814. if ac_fn_c_try_compile "$LINENO"; then :
  4815. echo conftest.$ac_objext > conftest.lst
  4816. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  4817. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4818. (eval $lt_ar_try) 2>&5
  4819. ac_status=$?
  4820. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4821. test $ac_status = 0; }
  4822. if test "$ac_status" -eq 0; then
  4823. # Ensure the archiver fails upon bogus file names.
  4824. rm -f conftest.$ac_objext libconftest.a
  4825. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  4826. (eval $lt_ar_try) 2>&5
  4827. ac_status=$?
  4828. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4829. test $ac_status = 0; }
  4830. if test "$ac_status" -ne 0; then
  4831. lt_cv_ar_at_file=@
  4832. fi
  4833. fi
  4834. rm -f conftest.* libconftest.a
  4835. fi
  4836. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4837. fi
  4838. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  4839. $as_echo "$lt_cv_ar_at_file" >&6; }
  4840. if test "x$lt_cv_ar_at_file" = xno; then
  4841. archiver_list_spec=
  4842. else
  4843. archiver_list_spec=$lt_cv_ar_at_file
  4844. fi
  4845. if test -n "$ac_tool_prefix"; then
  4846. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  4847. set dummy ${ac_tool_prefix}strip; ac_word=$2
  4848. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4849. $as_echo_n "checking for $ac_word... " >&6; }
  4850. if ${ac_cv_prog_STRIP+:} false; then :
  4851. $as_echo_n "(cached) " >&6
  4852. else
  4853. if test -n "$STRIP"; then
  4854. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  4855. else
  4856. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4857. for as_dir in $PATH
  4858. do
  4859. IFS=$as_save_IFS
  4860. test -z "$as_dir" && as_dir=.
  4861. for ac_exec_ext in '' $ac_executable_extensions; do
  4862. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4863. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  4864. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4865. break 2
  4866. fi
  4867. done
  4868. done
  4869. IFS=$as_save_IFS
  4870. fi
  4871. fi
  4872. STRIP=$ac_cv_prog_STRIP
  4873. if test -n "$STRIP"; then
  4874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  4875. $as_echo "$STRIP" >&6; }
  4876. else
  4877. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4878. $as_echo "no" >&6; }
  4879. fi
  4880. fi
  4881. if test -z "$ac_cv_prog_STRIP"; then
  4882. ac_ct_STRIP=$STRIP
  4883. # Extract the first word of "strip", so it can be a program name with args.
  4884. set dummy strip; ac_word=$2
  4885. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4886. $as_echo_n "checking for $ac_word... " >&6; }
  4887. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  4888. $as_echo_n "(cached) " >&6
  4889. else
  4890. if test -n "$ac_ct_STRIP"; then
  4891. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  4892. else
  4893. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4894. for as_dir in $PATH
  4895. do
  4896. IFS=$as_save_IFS
  4897. test -z "$as_dir" && as_dir=.
  4898. for ac_exec_ext in '' $ac_executable_extensions; do
  4899. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4900. ac_cv_prog_ac_ct_STRIP="strip"
  4901. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4902. break 2
  4903. fi
  4904. done
  4905. done
  4906. IFS=$as_save_IFS
  4907. fi
  4908. fi
  4909. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  4910. if test -n "$ac_ct_STRIP"; then
  4911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  4912. $as_echo "$ac_ct_STRIP" >&6; }
  4913. else
  4914. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4915. $as_echo "no" >&6; }
  4916. fi
  4917. if test "x$ac_ct_STRIP" = x; then
  4918. STRIP=":"
  4919. else
  4920. case $cross_compiling:$ac_tool_warned in
  4921. yes:)
  4922. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4923. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4924. ac_tool_warned=yes ;;
  4925. esac
  4926. STRIP=$ac_ct_STRIP
  4927. fi
  4928. else
  4929. STRIP="$ac_cv_prog_STRIP"
  4930. fi
  4931. test -z "$STRIP" && STRIP=:
  4932. if test -n "$ac_tool_prefix"; then
  4933. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  4934. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  4935. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4936. $as_echo_n "checking for $ac_word... " >&6; }
  4937. if ${ac_cv_prog_RANLIB+:} false; then :
  4938. $as_echo_n "(cached) " >&6
  4939. else
  4940. if test -n "$RANLIB"; then
  4941. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  4942. else
  4943. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4944. for as_dir in $PATH
  4945. do
  4946. IFS=$as_save_IFS
  4947. test -z "$as_dir" && as_dir=.
  4948. for ac_exec_ext in '' $ac_executable_extensions; do
  4949. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4950. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  4951. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4952. break 2
  4953. fi
  4954. done
  4955. done
  4956. IFS=$as_save_IFS
  4957. fi
  4958. fi
  4959. RANLIB=$ac_cv_prog_RANLIB
  4960. if test -n "$RANLIB"; then
  4961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  4962. $as_echo "$RANLIB" >&6; }
  4963. else
  4964. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4965. $as_echo "no" >&6; }
  4966. fi
  4967. fi
  4968. if test -z "$ac_cv_prog_RANLIB"; then
  4969. ac_ct_RANLIB=$RANLIB
  4970. # Extract the first word of "ranlib", so it can be a program name with args.
  4971. set dummy ranlib; ac_word=$2
  4972. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4973. $as_echo_n "checking for $ac_word... " >&6; }
  4974. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  4975. $as_echo_n "(cached) " >&6
  4976. else
  4977. if test -n "$ac_ct_RANLIB"; then
  4978. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  4979. else
  4980. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4981. for as_dir in $PATH
  4982. do
  4983. IFS=$as_save_IFS
  4984. test -z "$as_dir" && as_dir=.
  4985. for ac_exec_ext in '' $ac_executable_extensions; do
  4986. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4987. ac_cv_prog_ac_ct_RANLIB="ranlib"
  4988. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4989. break 2
  4990. fi
  4991. done
  4992. done
  4993. IFS=$as_save_IFS
  4994. fi
  4995. fi
  4996. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  4997. if test -n "$ac_ct_RANLIB"; then
  4998. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  4999. $as_echo "$ac_ct_RANLIB" >&6; }
  5000. else
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5002. $as_echo "no" >&6; }
  5003. fi
  5004. if test "x$ac_ct_RANLIB" = x; then
  5005. RANLIB=":"
  5006. else
  5007. case $cross_compiling:$ac_tool_warned in
  5008. yes:)
  5009. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5010. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5011. ac_tool_warned=yes ;;
  5012. esac
  5013. RANLIB=$ac_ct_RANLIB
  5014. fi
  5015. else
  5016. RANLIB="$ac_cv_prog_RANLIB"
  5017. fi
  5018. test -z "$RANLIB" && RANLIB=:
  5019. # Determine commands to create old-style static archives.
  5020. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5021. old_postinstall_cmds='chmod 644 $oldlib'
  5022. old_postuninstall_cmds=
  5023. if test -n "$RANLIB"; then
  5024. case $host_os in
  5025. openbsd*)
  5026. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5027. ;;
  5028. *)
  5029. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5030. ;;
  5031. esac
  5032. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5033. fi
  5034. case $host_os in
  5035. darwin*)
  5036. lock_old_archive_extraction=yes ;;
  5037. *)
  5038. lock_old_archive_extraction=no ;;
  5039. esac
  5040. # If no C compiler was specified, use CC.
  5041. LTCC=${LTCC-"$CC"}
  5042. # If no C compiler flags were specified, use CFLAGS.
  5043. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  5044. # Allow CC to be a program name with arguments.
  5045. compiler=$CC
  5046. # Check for command to grab the raw symbol name followed by C symbol from nm.
  5047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  5048. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  5049. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  5050. $as_echo_n "(cached) " >&6
  5051. else
  5052. # These are sane defaults that work on at least a few old systems.
  5053. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  5054. # Character class describing NM global symbol codes.
  5055. symcode='[BCDEGRST]'
  5056. # Regexp to match symbols that can be accessed directly from C.
  5057. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  5058. # Define system-specific variables.
  5059. case $host_os in
  5060. aix*)
  5061. symcode='[BCDT]'
  5062. ;;
  5063. cygwin* | mingw* | pw32* | cegcc*)
  5064. symcode='[ABCDGISTW]'
  5065. ;;
  5066. hpux*)
  5067. if test "$host_cpu" = ia64; then
  5068. symcode='[ABCDEGRST]'
  5069. fi
  5070. ;;
  5071. irix* | nonstopux*)
  5072. symcode='[BCDEGRST]'
  5073. ;;
  5074. osf*)
  5075. symcode='[BCDEGQRST]'
  5076. ;;
  5077. solaris*)
  5078. symcode='[BDRT]'
  5079. ;;
  5080. sco3.2v5*)
  5081. symcode='[DT]'
  5082. ;;
  5083. sysv4.2uw2*)
  5084. symcode='[DT]'
  5085. ;;
  5086. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  5087. symcode='[ABDT]'
  5088. ;;
  5089. sysv4)
  5090. symcode='[DFNSTU]'
  5091. ;;
  5092. esac
  5093. # If we're using GNU nm, then use its standard symbol codes.
  5094. case `$NM -V 2>&1` in
  5095. *GNU* | *'with BFD'*)
  5096. symcode='[ABCDGIRSTW]' ;;
  5097. esac
  5098. # Transform an extracted symbol line into a proper C declaration.
  5099. # Some systems (esp. on ia64) link data and code symbols differently,
  5100. # so use this general approach.
  5101. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  5102. # Transform an extracted symbol line into symbol name and symbol address
  5103. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  5104. 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'"
  5105. # Handle CRLF in mingw tool chain
  5106. opt_cr=
  5107. case $build_os in
  5108. mingw*)
  5109. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  5110. ;;
  5111. esac
  5112. # Try without a prefix underscore, then with it.
  5113. for ac_symprfx in "" "_"; do
  5114. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  5115. symxfrm="\\1 $ac_symprfx\\2 \\2"
  5116. # Write the raw and C identifiers.
  5117. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5118. # Fake it for dumpbin and say T for any non-static function
  5119. # and D for any global variable.
  5120. # Also find C++ and __fastcall symbols from MSVC++,
  5121. # which start with @ or ?.
  5122. lt_cv_sys_global_symbol_pipe="$AWK '"\
  5123. " {last_section=section; section=\$ 3};"\
  5124. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  5125. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  5126. " \$ 0!~/External *\|/{next};"\
  5127. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  5128. " {if(hide[section]) next};"\
  5129. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  5130. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  5131. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  5132. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  5133. " ' prfx=^$ac_symprfx"
  5134. else
  5135. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  5136. fi
  5137. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  5138. # Check to see that the pipe works correctly.
  5139. pipe_works=no
  5140. rm -f conftest*
  5141. cat > conftest.$ac_ext <<_LT_EOF
  5142. #ifdef __cplusplus
  5143. extern "C" {
  5144. #endif
  5145. char nm_test_var;
  5146. void nm_test_func(void);
  5147. void nm_test_func(void){}
  5148. #ifdef __cplusplus
  5149. }
  5150. #endif
  5151. int main(){nm_test_var='a';nm_test_func();return(0);}
  5152. _LT_EOF
  5153. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5154. (eval $ac_compile) 2>&5
  5155. ac_status=$?
  5156. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5157. test $ac_status = 0; }; then
  5158. # Now try to grab the symbols.
  5159. nlist=conftest.nm
  5160. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  5161. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  5162. ac_status=$?
  5163. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5164. test $ac_status = 0; } && test -s "$nlist"; then
  5165. # Try sorting and uniquifying the output.
  5166. if sort "$nlist" | uniq > "$nlist"T; then
  5167. mv -f "$nlist"T "$nlist"
  5168. else
  5169. rm -f "$nlist"T
  5170. fi
  5171. # Make sure that we snagged all the symbols we need.
  5172. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  5173. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  5174. cat <<_LT_EOF > conftest.$ac_ext
  5175. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  5176. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  5177. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  5178. relocations are performed -- see ld's documentation on pseudo-relocs. */
  5179. # define LT_DLSYM_CONST
  5180. #elif defined(__osf__)
  5181. /* This system does not cope well with relocations in const data. */
  5182. # define LT_DLSYM_CONST
  5183. #else
  5184. # define LT_DLSYM_CONST const
  5185. #endif
  5186. #ifdef __cplusplus
  5187. extern "C" {
  5188. #endif
  5189. _LT_EOF
  5190. # Now generate the symbol file.
  5191. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  5192. cat <<_LT_EOF >> conftest.$ac_ext
  5193. /* The mapping between symbol names and symbols. */
  5194. LT_DLSYM_CONST struct {
  5195. const char *name;
  5196. void *address;
  5197. }
  5198. lt__PROGRAM__LTX_preloaded_symbols[] =
  5199. {
  5200. { "@PROGRAM@", (void *) 0 },
  5201. _LT_EOF
  5202. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  5203. cat <<\_LT_EOF >> conftest.$ac_ext
  5204. {0, (void *) 0}
  5205. };
  5206. /* This works around a problem in FreeBSD linker */
  5207. #ifdef FREEBSD_WORKAROUND
  5208. static const void *lt_preloaded_setup() {
  5209. return lt__PROGRAM__LTX_preloaded_symbols;
  5210. }
  5211. #endif
  5212. #ifdef __cplusplus
  5213. }
  5214. #endif
  5215. _LT_EOF
  5216. # Now try linking the two files.
  5217. mv conftest.$ac_objext conftstm.$ac_objext
  5218. lt_globsym_save_LIBS=$LIBS
  5219. lt_globsym_save_CFLAGS=$CFLAGS
  5220. LIBS="conftstm.$ac_objext"
  5221. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  5222. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  5223. (eval $ac_link) 2>&5
  5224. ac_status=$?
  5225. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5226. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  5227. pipe_works=yes
  5228. fi
  5229. LIBS=$lt_globsym_save_LIBS
  5230. CFLAGS=$lt_globsym_save_CFLAGS
  5231. else
  5232. echo "cannot find nm_test_func in $nlist" >&5
  5233. fi
  5234. else
  5235. echo "cannot find nm_test_var in $nlist" >&5
  5236. fi
  5237. else
  5238. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  5239. fi
  5240. else
  5241. echo "$progname: failed program was:" >&5
  5242. cat conftest.$ac_ext >&5
  5243. fi
  5244. rm -rf conftest* conftst*
  5245. # Do not use the global_symbol_pipe unless it works.
  5246. if test "$pipe_works" = yes; then
  5247. break
  5248. else
  5249. lt_cv_sys_global_symbol_pipe=
  5250. fi
  5251. done
  5252. fi
  5253. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  5254. lt_cv_sys_global_symbol_to_cdecl=
  5255. fi
  5256. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  5257. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  5258. $as_echo "failed" >&6; }
  5259. else
  5260. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  5261. $as_echo "ok" >&6; }
  5262. fi
  5263. # Response file support.
  5264. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  5265. nm_file_list_spec='@'
  5266. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  5267. nm_file_list_spec='@'
  5268. fi
  5269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  5270. $as_echo_n "checking for sysroot... " >&6; }
  5271. # Check whether --with-sysroot was given.
  5272. if test "${with_sysroot+set}" = set; then :
  5273. withval=$with_sysroot;
  5274. else
  5275. with_sysroot=no
  5276. fi
  5277. lt_sysroot=
  5278. case ${with_sysroot} in #(
  5279. yes)
  5280. if test "$GCC" = yes; then
  5281. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  5282. fi
  5283. ;; #(
  5284. /*)
  5285. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  5286. ;; #(
  5287. no|'')
  5288. ;; #(
  5289. *)
  5290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  5291. $as_echo "${with_sysroot}" >&6; }
  5292. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  5293. ;;
  5294. esac
  5295. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  5296. $as_echo "${lt_sysroot:-no}" >&6; }
  5297. # Check whether --enable-libtool-lock was given.
  5298. if test "${enable_libtool_lock+set}" = set; then :
  5299. enableval=$enable_libtool_lock;
  5300. fi
  5301. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  5302. # Some flags need to be propagated to the compiler or linker for good
  5303. # libtool support.
  5304. case $host in
  5305. ia64-*-hpux*)
  5306. # Find out which ABI we are using.
  5307. echo 'int i;' > conftest.$ac_ext
  5308. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5309. (eval $ac_compile) 2>&5
  5310. ac_status=$?
  5311. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5312. test $ac_status = 0; }; then
  5313. case `/usr/bin/file conftest.$ac_objext` in
  5314. *ELF-32*)
  5315. HPUX_IA64_MODE="32"
  5316. ;;
  5317. *ELF-64*)
  5318. HPUX_IA64_MODE="64"
  5319. ;;
  5320. esac
  5321. fi
  5322. rm -rf conftest*
  5323. ;;
  5324. *-*-irix6*)
  5325. # Find out which ABI we are using.
  5326. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  5327. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5328. (eval $ac_compile) 2>&5
  5329. ac_status=$?
  5330. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5331. test $ac_status = 0; }; then
  5332. if test "$lt_cv_prog_gnu_ld" = yes; then
  5333. case `/usr/bin/file conftest.$ac_objext` in
  5334. *32-bit*)
  5335. LD="${LD-ld} -melf32bsmip"
  5336. ;;
  5337. *N32*)
  5338. LD="${LD-ld} -melf32bmipn32"
  5339. ;;
  5340. *64-bit*)
  5341. LD="${LD-ld} -melf64bmip"
  5342. ;;
  5343. esac
  5344. else
  5345. case `/usr/bin/file conftest.$ac_objext` in
  5346. *32-bit*)
  5347. LD="${LD-ld} -32"
  5348. ;;
  5349. *N32*)
  5350. LD="${LD-ld} -n32"
  5351. ;;
  5352. *64-bit*)
  5353. LD="${LD-ld} -64"
  5354. ;;
  5355. esac
  5356. fi
  5357. fi
  5358. rm -rf conftest*
  5359. ;;
  5360. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  5361. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  5362. # Find out which ABI we are using.
  5363. echo 'int i;' > conftest.$ac_ext
  5364. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5365. (eval $ac_compile) 2>&5
  5366. ac_status=$?
  5367. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5368. test $ac_status = 0; }; then
  5369. case `/usr/bin/file conftest.o` in
  5370. *32-bit*)
  5371. case $host in
  5372. x86_64-*kfreebsd*-gnu)
  5373. LD="${LD-ld} -m elf_i386_fbsd"
  5374. ;;
  5375. x86_64-*linux*)
  5376. LD="${LD-ld} -m elf_i386"
  5377. ;;
  5378. ppc64-*linux*|powerpc64-*linux*)
  5379. LD="${LD-ld} -m elf32ppclinux"
  5380. ;;
  5381. s390x-*linux*)
  5382. LD="${LD-ld} -m elf_s390"
  5383. ;;
  5384. sparc64-*linux*)
  5385. LD="${LD-ld} -m elf32_sparc"
  5386. ;;
  5387. esac
  5388. ;;
  5389. *64-bit*)
  5390. case $host in
  5391. x86_64-*kfreebsd*-gnu)
  5392. LD="${LD-ld} -m elf_x86_64_fbsd"
  5393. ;;
  5394. x86_64-*linux*)
  5395. LD="${LD-ld} -m elf_x86_64"
  5396. ;;
  5397. ppc*-*linux*|powerpc*-*linux*)
  5398. LD="${LD-ld} -m elf64ppc"
  5399. ;;
  5400. s390*-*linux*|s390*-*tpf*)
  5401. LD="${LD-ld} -m elf64_s390"
  5402. ;;
  5403. sparc*-*linux*)
  5404. LD="${LD-ld} -m elf64_sparc"
  5405. ;;
  5406. esac
  5407. ;;
  5408. esac
  5409. fi
  5410. rm -rf conftest*
  5411. ;;
  5412. *-*-sco3.2v5*)
  5413. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  5414. SAVE_CFLAGS="$CFLAGS"
  5415. CFLAGS="$CFLAGS -belf"
  5416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  5417. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  5418. if ${lt_cv_cc_needs_belf+:} false; then :
  5419. $as_echo_n "(cached) " >&6
  5420. else
  5421. ac_ext=c
  5422. ac_cpp='$CPP $CPPFLAGS'
  5423. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5424. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5425. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5426. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5427. /* end confdefs.h. */
  5428. int
  5429. main ()
  5430. {
  5431. ;
  5432. return 0;
  5433. }
  5434. _ACEOF
  5435. if ac_fn_c_try_link "$LINENO"; then :
  5436. lt_cv_cc_needs_belf=yes
  5437. else
  5438. lt_cv_cc_needs_belf=no
  5439. fi
  5440. rm -f core conftest.err conftest.$ac_objext \
  5441. conftest$ac_exeext conftest.$ac_ext
  5442. ac_ext=c
  5443. ac_cpp='$CPP $CPPFLAGS'
  5444. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5445. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5446. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5447. fi
  5448. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  5449. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  5450. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  5451. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  5452. CFLAGS="$SAVE_CFLAGS"
  5453. fi
  5454. ;;
  5455. *-*solaris*)
  5456. # Find out which ABI we are using.
  5457. echo 'int i;' > conftest.$ac_ext
  5458. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  5459. (eval $ac_compile) 2>&5
  5460. ac_status=$?
  5461. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5462. test $ac_status = 0; }; then
  5463. case `/usr/bin/file conftest.o` in
  5464. *64-bit*)
  5465. case $lt_cv_prog_gnu_ld in
  5466. yes*)
  5467. case $host in
  5468. i?86-*-solaris*)
  5469. LD="${LD-ld} -m elf_x86_64"
  5470. ;;
  5471. sparc*-*-solaris*)
  5472. LD="${LD-ld} -m elf64_sparc"
  5473. ;;
  5474. esac
  5475. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  5476. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  5477. LD="${LD-ld}_sol2"
  5478. fi
  5479. ;;
  5480. *)
  5481. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  5482. LD="${LD-ld} -64"
  5483. fi
  5484. ;;
  5485. esac
  5486. ;;
  5487. esac
  5488. fi
  5489. rm -rf conftest*
  5490. ;;
  5491. esac
  5492. need_locks="$enable_libtool_lock"
  5493. if test -n "$ac_tool_prefix"; then
  5494. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  5495. set dummy ${ac_tool_prefix}mt; ac_word=$2
  5496. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5497. $as_echo_n "checking for $ac_word... " >&6; }
  5498. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  5499. $as_echo_n "(cached) " >&6
  5500. else
  5501. if test -n "$MANIFEST_TOOL"; then
  5502. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  5503. else
  5504. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5505. for as_dir in $PATH
  5506. do
  5507. IFS=$as_save_IFS
  5508. test -z "$as_dir" && as_dir=.
  5509. for ac_exec_ext in '' $ac_executable_extensions; do
  5510. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5511. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  5512. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5513. break 2
  5514. fi
  5515. done
  5516. done
  5517. IFS=$as_save_IFS
  5518. fi
  5519. fi
  5520. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  5521. if test -n "$MANIFEST_TOOL"; then
  5522. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  5523. $as_echo "$MANIFEST_TOOL" >&6; }
  5524. else
  5525. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5526. $as_echo "no" >&6; }
  5527. fi
  5528. fi
  5529. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  5530. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  5531. # Extract the first word of "mt", so it can be a program name with args.
  5532. set dummy mt; ac_word=$2
  5533. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5534. $as_echo_n "checking for $ac_word... " >&6; }
  5535. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  5536. $as_echo_n "(cached) " >&6
  5537. else
  5538. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5539. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  5540. else
  5541. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5542. for as_dir in $PATH
  5543. do
  5544. IFS=$as_save_IFS
  5545. test -z "$as_dir" && as_dir=.
  5546. for ac_exec_ext in '' $ac_executable_extensions; do
  5547. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5548. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  5549. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5550. break 2
  5551. fi
  5552. done
  5553. done
  5554. IFS=$as_save_IFS
  5555. fi
  5556. fi
  5557. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  5558. if test -n "$ac_ct_MANIFEST_TOOL"; then
  5559. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  5560. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  5561. else
  5562. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5563. $as_echo "no" >&6; }
  5564. fi
  5565. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  5566. MANIFEST_TOOL=":"
  5567. else
  5568. case $cross_compiling:$ac_tool_warned in
  5569. yes:)
  5570. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5571. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5572. ac_tool_warned=yes ;;
  5573. esac
  5574. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  5575. fi
  5576. else
  5577. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  5578. fi
  5579. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  5580. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  5581. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  5582. if ${lt_cv_path_mainfest_tool+:} false; then :
  5583. $as_echo_n "(cached) " >&6
  5584. else
  5585. lt_cv_path_mainfest_tool=no
  5586. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  5587. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  5588. cat conftest.err >&5
  5589. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  5590. lt_cv_path_mainfest_tool=yes
  5591. fi
  5592. rm -f conftest*
  5593. fi
  5594. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  5595. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  5596. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  5597. MANIFEST_TOOL=:
  5598. fi
  5599. case $host_os in
  5600. rhapsody* | darwin*)
  5601. if test -n "$ac_tool_prefix"; then
  5602. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  5603. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  5604. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5605. $as_echo_n "checking for $ac_word... " >&6; }
  5606. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  5607. $as_echo_n "(cached) " >&6
  5608. else
  5609. if test -n "$DSYMUTIL"; then
  5610. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  5611. else
  5612. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5613. for as_dir in $PATH
  5614. do
  5615. IFS=$as_save_IFS
  5616. test -z "$as_dir" && as_dir=.
  5617. for ac_exec_ext in '' $ac_executable_extensions; do
  5618. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5619. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  5620. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5621. break 2
  5622. fi
  5623. done
  5624. done
  5625. IFS=$as_save_IFS
  5626. fi
  5627. fi
  5628. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  5629. if test -n "$DSYMUTIL"; then
  5630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  5631. $as_echo "$DSYMUTIL" >&6; }
  5632. else
  5633. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5634. $as_echo "no" >&6; }
  5635. fi
  5636. fi
  5637. if test -z "$ac_cv_prog_DSYMUTIL"; then
  5638. ac_ct_DSYMUTIL=$DSYMUTIL
  5639. # Extract the first word of "dsymutil", so it can be a program name with args.
  5640. set dummy dsymutil; ac_word=$2
  5641. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5642. $as_echo_n "checking for $ac_word... " >&6; }
  5643. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  5644. $as_echo_n "(cached) " >&6
  5645. else
  5646. if test -n "$ac_ct_DSYMUTIL"; then
  5647. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  5648. else
  5649. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5650. for as_dir in $PATH
  5651. do
  5652. IFS=$as_save_IFS
  5653. test -z "$as_dir" && as_dir=.
  5654. for ac_exec_ext in '' $ac_executable_extensions; do
  5655. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5656. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  5657. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5658. break 2
  5659. fi
  5660. done
  5661. done
  5662. IFS=$as_save_IFS
  5663. fi
  5664. fi
  5665. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  5666. if test -n "$ac_ct_DSYMUTIL"; then
  5667. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  5668. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  5669. else
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5671. $as_echo "no" >&6; }
  5672. fi
  5673. if test "x$ac_ct_DSYMUTIL" = x; then
  5674. DSYMUTIL=":"
  5675. else
  5676. case $cross_compiling:$ac_tool_warned in
  5677. yes:)
  5678. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5679. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5680. ac_tool_warned=yes ;;
  5681. esac
  5682. DSYMUTIL=$ac_ct_DSYMUTIL
  5683. fi
  5684. else
  5685. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  5686. fi
  5687. if test -n "$ac_tool_prefix"; then
  5688. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  5689. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  5690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5691. $as_echo_n "checking for $ac_word... " >&6; }
  5692. if ${ac_cv_prog_NMEDIT+:} false; then :
  5693. $as_echo_n "(cached) " >&6
  5694. else
  5695. if test -n "$NMEDIT"; then
  5696. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  5697. else
  5698. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5699. for as_dir in $PATH
  5700. do
  5701. IFS=$as_save_IFS
  5702. test -z "$as_dir" && as_dir=.
  5703. for ac_exec_ext in '' $ac_executable_extensions; do
  5704. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5705. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  5706. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5707. break 2
  5708. fi
  5709. done
  5710. done
  5711. IFS=$as_save_IFS
  5712. fi
  5713. fi
  5714. NMEDIT=$ac_cv_prog_NMEDIT
  5715. if test -n "$NMEDIT"; then
  5716. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  5717. $as_echo "$NMEDIT" >&6; }
  5718. else
  5719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5720. $as_echo "no" >&6; }
  5721. fi
  5722. fi
  5723. if test -z "$ac_cv_prog_NMEDIT"; then
  5724. ac_ct_NMEDIT=$NMEDIT
  5725. # Extract the first word of "nmedit", so it can be a program name with args.
  5726. set dummy nmedit; ac_word=$2
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5728. $as_echo_n "checking for $ac_word... " >&6; }
  5729. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  5730. $as_echo_n "(cached) " >&6
  5731. else
  5732. if test -n "$ac_ct_NMEDIT"; then
  5733. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  5734. else
  5735. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5736. for as_dir in $PATH
  5737. do
  5738. IFS=$as_save_IFS
  5739. test -z "$as_dir" && as_dir=.
  5740. for ac_exec_ext in '' $ac_executable_extensions; do
  5741. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5742. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  5743. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5744. break 2
  5745. fi
  5746. done
  5747. done
  5748. IFS=$as_save_IFS
  5749. fi
  5750. fi
  5751. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  5752. if test -n "$ac_ct_NMEDIT"; then
  5753. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  5754. $as_echo "$ac_ct_NMEDIT" >&6; }
  5755. else
  5756. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5757. $as_echo "no" >&6; }
  5758. fi
  5759. if test "x$ac_ct_NMEDIT" = x; then
  5760. NMEDIT=":"
  5761. else
  5762. case $cross_compiling:$ac_tool_warned in
  5763. yes:)
  5764. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5765. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5766. ac_tool_warned=yes ;;
  5767. esac
  5768. NMEDIT=$ac_ct_NMEDIT
  5769. fi
  5770. else
  5771. NMEDIT="$ac_cv_prog_NMEDIT"
  5772. fi
  5773. if test -n "$ac_tool_prefix"; then
  5774. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  5775. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5777. $as_echo_n "checking for $ac_word... " >&6; }
  5778. if ${ac_cv_prog_LIPO+:} false; then :
  5779. $as_echo_n "(cached) " >&6
  5780. else
  5781. if test -n "$LIPO"; then
  5782. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  5783. else
  5784. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5785. for as_dir in $PATH
  5786. do
  5787. IFS=$as_save_IFS
  5788. test -z "$as_dir" && as_dir=.
  5789. for ac_exec_ext in '' $ac_executable_extensions; do
  5790. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5791. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  5792. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5793. break 2
  5794. fi
  5795. done
  5796. done
  5797. IFS=$as_save_IFS
  5798. fi
  5799. fi
  5800. LIPO=$ac_cv_prog_LIPO
  5801. if test -n "$LIPO"; then
  5802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  5803. $as_echo "$LIPO" >&6; }
  5804. else
  5805. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5806. $as_echo "no" >&6; }
  5807. fi
  5808. fi
  5809. if test -z "$ac_cv_prog_LIPO"; then
  5810. ac_ct_LIPO=$LIPO
  5811. # Extract the first word of "lipo", so it can be a program name with args.
  5812. set dummy lipo; ac_word=$2
  5813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5814. $as_echo_n "checking for $ac_word... " >&6; }
  5815. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  5816. $as_echo_n "(cached) " >&6
  5817. else
  5818. if test -n "$ac_ct_LIPO"; then
  5819. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  5820. else
  5821. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5822. for as_dir in $PATH
  5823. do
  5824. IFS=$as_save_IFS
  5825. test -z "$as_dir" && as_dir=.
  5826. for ac_exec_ext in '' $ac_executable_extensions; do
  5827. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5828. ac_cv_prog_ac_ct_LIPO="lipo"
  5829. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5830. break 2
  5831. fi
  5832. done
  5833. done
  5834. IFS=$as_save_IFS
  5835. fi
  5836. fi
  5837. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  5838. if test -n "$ac_ct_LIPO"; then
  5839. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  5840. $as_echo "$ac_ct_LIPO" >&6; }
  5841. else
  5842. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5843. $as_echo "no" >&6; }
  5844. fi
  5845. if test "x$ac_ct_LIPO" = x; then
  5846. LIPO=":"
  5847. else
  5848. case $cross_compiling:$ac_tool_warned in
  5849. yes:)
  5850. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5851. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5852. ac_tool_warned=yes ;;
  5853. esac
  5854. LIPO=$ac_ct_LIPO
  5855. fi
  5856. else
  5857. LIPO="$ac_cv_prog_LIPO"
  5858. fi
  5859. if test -n "$ac_tool_prefix"; then
  5860. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  5861. set dummy ${ac_tool_prefix}otool; ac_word=$2
  5862. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5863. $as_echo_n "checking for $ac_word... " >&6; }
  5864. if ${ac_cv_prog_OTOOL+:} false; then :
  5865. $as_echo_n "(cached) " >&6
  5866. else
  5867. if test -n "$OTOOL"; then
  5868. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  5869. else
  5870. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5871. for as_dir in $PATH
  5872. do
  5873. IFS=$as_save_IFS
  5874. test -z "$as_dir" && as_dir=.
  5875. for ac_exec_ext in '' $ac_executable_extensions; do
  5876. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5877. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  5878. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5879. break 2
  5880. fi
  5881. done
  5882. done
  5883. IFS=$as_save_IFS
  5884. fi
  5885. fi
  5886. OTOOL=$ac_cv_prog_OTOOL
  5887. if test -n "$OTOOL"; then
  5888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  5889. $as_echo "$OTOOL" >&6; }
  5890. else
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5892. $as_echo "no" >&6; }
  5893. fi
  5894. fi
  5895. if test -z "$ac_cv_prog_OTOOL"; then
  5896. ac_ct_OTOOL=$OTOOL
  5897. # Extract the first word of "otool", so it can be a program name with args.
  5898. set dummy otool; ac_word=$2
  5899. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5900. $as_echo_n "checking for $ac_word... " >&6; }
  5901. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  5902. $as_echo_n "(cached) " >&6
  5903. else
  5904. if test -n "$ac_ct_OTOOL"; then
  5905. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  5906. else
  5907. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5908. for as_dir in $PATH
  5909. do
  5910. IFS=$as_save_IFS
  5911. test -z "$as_dir" && as_dir=.
  5912. for ac_exec_ext in '' $ac_executable_extensions; do
  5913. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5914. ac_cv_prog_ac_ct_OTOOL="otool"
  5915. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5916. break 2
  5917. fi
  5918. done
  5919. done
  5920. IFS=$as_save_IFS
  5921. fi
  5922. fi
  5923. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  5924. if test -n "$ac_ct_OTOOL"; then
  5925. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  5926. $as_echo "$ac_ct_OTOOL" >&6; }
  5927. else
  5928. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5929. $as_echo "no" >&6; }
  5930. fi
  5931. if test "x$ac_ct_OTOOL" = x; then
  5932. OTOOL=":"
  5933. else
  5934. case $cross_compiling:$ac_tool_warned in
  5935. yes:)
  5936. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5937. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5938. ac_tool_warned=yes ;;
  5939. esac
  5940. OTOOL=$ac_ct_OTOOL
  5941. fi
  5942. else
  5943. OTOOL="$ac_cv_prog_OTOOL"
  5944. fi
  5945. if test -n "$ac_tool_prefix"; then
  5946. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  5947. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  5948. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5949. $as_echo_n "checking for $ac_word... " >&6; }
  5950. if ${ac_cv_prog_OTOOL64+:} false; then :
  5951. $as_echo_n "(cached) " >&6
  5952. else
  5953. if test -n "$OTOOL64"; then
  5954. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  5955. else
  5956. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5957. for as_dir in $PATH
  5958. do
  5959. IFS=$as_save_IFS
  5960. test -z "$as_dir" && as_dir=.
  5961. for ac_exec_ext in '' $ac_executable_extensions; do
  5962. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5963. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  5964. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5965. break 2
  5966. fi
  5967. done
  5968. done
  5969. IFS=$as_save_IFS
  5970. fi
  5971. fi
  5972. OTOOL64=$ac_cv_prog_OTOOL64
  5973. if test -n "$OTOOL64"; then
  5974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  5975. $as_echo "$OTOOL64" >&6; }
  5976. else
  5977. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5978. $as_echo "no" >&6; }
  5979. fi
  5980. fi
  5981. if test -z "$ac_cv_prog_OTOOL64"; then
  5982. ac_ct_OTOOL64=$OTOOL64
  5983. # Extract the first word of "otool64", so it can be a program name with args.
  5984. set dummy otool64; ac_word=$2
  5985. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5986. $as_echo_n "checking for $ac_word... " >&6; }
  5987. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  5988. $as_echo_n "(cached) " >&6
  5989. else
  5990. if test -n "$ac_ct_OTOOL64"; then
  5991. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  5992. else
  5993. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5994. for as_dir in $PATH
  5995. do
  5996. IFS=$as_save_IFS
  5997. test -z "$as_dir" && as_dir=.
  5998. for ac_exec_ext in '' $ac_executable_extensions; do
  5999. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6000. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6001. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6002. break 2
  6003. fi
  6004. done
  6005. done
  6006. IFS=$as_save_IFS
  6007. fi
  6008. fi
  6009. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  6010. if test -n "$ac_ct_OTOOL64"; then
  6011. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  6012. $as_echo "$ac_ct_OTOOL64" >&6; }
  6013. else
  6014. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6015. $as_echo "no" >&6; }
  6016. fi
  6017. if test "x$ac_ct_OTOOL64" = x; then
  6018. OTOOL64=":"
  6019. else
  6020. case $cross_compiling:$ac_tool_warned in
  6021. yes:)
  6022. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6023. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6024. ac_tool_warned=yes ;;
  6025. esac
  6026. OTOOL64=$ac_ct_OTOOL64
  6027. fi
  6028. else
  6029. OTOOL64="$ac_cv_prog_OTOOL64"
  6030. fi
  6031. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  6032. $as_echo_n "checking for -single_module linker flag... " >&6; }
  6033. if ${lt_cv_apple_cc_single_mod+:} false; then :
  6034. $as_echo_n "(cached) " >&6
  6035. else
  6036. lt_cv_apple_cc_single_mod=no
  6037. if test -z "${LT_MULTI_MODULE}"; then
  6038. # By default we will add the -single_module flag. You can override
  6039. # by either setting the environment variable LT_MULTI_MODULE
  6040. # non-empty at configure time, or by adding -multi_module to the
  6041. # link flags.
  6042. rm -rf libconftest.dylib*
  6043. echo "int foo(void){return 1;}" > conftest.c
  6044. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6045. -dynamiclib -Wl,-single_module conftest.c" >&5
  6046. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  6047. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  6048. _lt_result=$?
  6049. # If there is a non-empty error log, and "single_module"
  6050. # appears in it, assume the flag caused a linker warning
  6051. if test -s conftest.err && $GREP single_module conftest.err; then
  6052. cat conftest.err >&5
  6053. # Otherwise, if the output was created with a 0 exit code from
  6054. # the compiler, it worked.
  6055. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  6056. lt_cv_apple_cc_single_mod=yes
  6057. else
  6058. cat conftest.err >&5
  6059. fi
  6060. rm -rf libconftest.dylib*
  6061. rm -f conftest.*
  6062. fi
  6063. fi
  6064. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  6065. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  6066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  6067. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  6068. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  6069. $as_echo_n "(cached) " >&6
  6070. else
  6071. lt_cv_ld_exported_symbols_list=no
  6072. save_LDFLAGS=$LDFLAGS
  6073. echo "_main" > conftest.sym
  6074. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  6075. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6076. /* end confdefs.h. */
  6077. int
  6078. main ()
  6079. {
  6080. ;
  6081. return 0;
  6082. }
  6083. _ACEOF
  6084. if ac_fn_c_try_link "$LINENO"; then :
  6085. lt_cv_ld_exported_symbols_list=yes
  6086. else
  6087. lt_cv_ld_exported_symbols_list=no
  6088. fi
  6089. rm -f core conftest.err conftest.$ac_objext \
  6090. conftest$ac_exeext conftest.$ac_ext
  6091. LDFLAGS="$save_LDFLAGS"
  6092. fi
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  6094. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  6095. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  6096. $as_echo_n "checking for -force_load linker flag... " >&6; }
  6097. if ${lt_cv_ld_force_load+:} false; then :
  6098. $as_echo_n "(cached) " >&6
  6099. else
  6100. lt_cv_ld_force_load=no
  6101. cat > conftest.c << _LT_EOF
  6102. int forced_loaded() { return 2;}
  6103. _LT_EOF
  6104. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  6105. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  6106. echo "$AR cru libconftest.a conftest.o" >&5
  6107. $AR cru libconftest.a conftest.o 2>&5
  6108. echo "$RANLIB libconftest.a" >&5
  6109. $RANLIB libconftest.a 2>&5
  6110. cat > conftest.c << _LT_EOF
  6111. int main() { return 0;}
  6112. _LT_EOF
  6113. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  6114. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  6115. _lt_result=$?
  6116. if test -s conftest.err && $GREP force_load conftest.err; then
  6117. cat conftest.err >&5
  6118. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  6119. lt_cv_ld_force_load=yes
  6120. else
  6121. cat conftest.err >&5
  6122. fi
  6123. rm -f conftest.err libconftest.a conftest conftest.c
  6124. rm -rf conftest.dSYM
  6125. fi
  6126. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  6127. $as_echo "$lt_cv_ld_force_load" >&6; }
  6128. case $host_os in
  6129. rhapsody* | darwin1.[012])
  6130. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  6131. darwin1.*)
  6132. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6133. darwin*) # darwin 5.x on
  6134. # if running on 10.5 or later, the deployment target defaults
  6135. # to the OS version, if on x86, and 10.4, the deployment
  6136. # target defaults to 10.4. Don't you love it?
  6137. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  6138. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  6139. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6140. 10.[012]*)
  6141. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  6142. 10.*)
  6143. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  6144. esac
  6145. ;;
  6146. esac
  6147. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  6148. _lt_dar_single_mod='$single_module'
  6149. fi
  6150. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  6151. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  6152. else
  6153. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  6154. fi
  6155. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  6156. _lt_dsymutil='~$DSYMUTIL $lib || :'
  6157. else
  6158. _lt_dsymutil=
  6159. fi
  6160. ;;
  6161. esac
  6162. ac_ext=c
  6163. ac_cpp='$CPP $CPPFLAGS'
  6164. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6165. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6166. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6167. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  6168. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  6169. # On Suns, sometimes $CPP names a directory.
  6170. if test -n "$CPP" && test -d "$CPP"; then
  6171. CPP=
  6172. fi
  6173. if test -z "$CPP"; then
  6174. if ${ac_cv_prog_CPP+:} false; then :
  6175. $as_echo_n "(cached) " >&6
  6176. else
  6177. # Double quotes because CPP needs to be expanded
  6178. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  6179. do
  6180. ac_preproc_ok=false
  6181. for ac_c_preproc_warn_flag in '' yes
  6182. do
  6183. # Use a header file that comes with gcc, so configuring glibc
  6184. # with a fresh cross-compiler works.
  6185. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6186. # <limits.h> exists even on freestanding compilers.
  6187. # On the NeXT, cc -E runs the code through the compiler's parser,
  6188. # not just through cpp. "Syntax error" is here to catch this case.
  6189. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6190. /* end confdefs.h. */
  6191. #ifdef __STDC__
  6192. # include <limits.h>
  6193. #else
  6194. # include <assert.h>
  6195. #endif
  6196. Syntax error
  6197. _ACEOF
  6198. if ac_fn_c_try_cpp "$LINENO"; then :
  6199. else
  6200. # Broken: fails on valid input.
  6201. continue
  6202. fi
  6203. rm -f conftest.err conftest.i conftest.$ac_ext
  6204. # OK, works on sane cases. Now check whether nonexistent headers
  6205. # can be detected and how.
  6206. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6207. /* end confdefs.h. */
  6208. #include <ac_nonexistent.h>
  6209. _ACEOF
  6210. if ac_fn_c_try_cpp "$LINENO"; then :
  6211. # Broken: success on invalid input.
  6212. continue
  6213. else
  6214. # Passes both tests.
  6215. ac_preproc_ok=:
  6216. break
  6217. fi
  6218. rm -f conftest.err conftest.i conftest.$ac_ext
  6219. done
  6220. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6221. rm -f conftest.i conftest.err conftest.$ac_ext
  6222. if $ac_preproc_ok; then :
  6223. break
  6224. fi
  6225. done
  6226. ac_cv_prog_CPP=$CPP
  6227. fi
  6228. CPP=$ac_cv_prog_CPP
  6229. else
  6230. ac_cv_prog_CPP=$CPP
  6231. fi
  6232. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  6233. $as_echo "$CPP" >&6; }
  6234. ac_preproc_ok=false
  6235. for ac_c_preproc_warn_flag in '' yes
  6236. do
  6237. # Use a header file that comes with gcc, so configuring glibc
  6238. # with a fresh cross-compiler works.
  6239. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  6240. # <limits.h> exists even on freestanding compilers.
  6241. # On the NeXT, cc -E runs the code through the compiler's parser,
  6242. # not just through cpp. "Syntax error" is here to catch this case.
  6243. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6244. /* end confdefs.h. */
  6245. #ifdef __STDC__
  6246. # include <limits.h>
  6247. #else
  6248. # include <assert.h>
  6249. #endif
  6250. Syntax error
  6251. _ACEOF
  6252. if ac_fn_c_try_cpp "$LINENO"; then :
  6253. else
  6254. # Broken: fails on valid input.
  6255. continue
  6256. fi
  6257. rm -f conftest.err conftest.i conftest.$ac_ext
  6258. # OK, works on sane cases. Now check whether nonexistent headers
  6259. # can be detected and how.
  6260. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6261. /* end confdefs.h. */
  6262. #include <ac_nonexistent.h>
  6263. _ACEOF
  6264. if ac_fn_c_try_cpp "$LINENO"; then :
  6265. # Broken: success on invalid input.
  6266. continue
  6267. else
  6268. # Passes both tests.
  6269. ac_preproc_ok=:
  6270. break
  6271. fi
  6272. rm -f conftest.err conftest.i conftest.$ac_ext
  6273. done
  6274. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  6275. rm -f conftest.i conftest.err conftest.$ac_ext
  6276. if $ac_preproc_ok; then :
  6277. else
  6278. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  6279. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  6280. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  6281. See \`config.log' for more details" "$LINENO" 5; }
  6282. fi
  6283. ac_ext=c
  6284. ac_cpp='$CPP $CPPFLAGS'
  6285. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6286. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6287. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  6289. $as_echo_n "checking for ANSI C header files... " >&6; }
  6290. if ${ac_cv_header_stdc+:} false; then :
  6291. $as_echo_n "(cached) " >&6
  6292. else
  6293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6294. /* end confdefs.h. */
  6295. #include <stdlib.h>
  6296. #include <stdarg.h>
  6297. #include <string.h>
  6298. #include <float.h>
  6299. int
  6300. main ()
  6301. {
  6302. ;
  6303. return 0;
  6304. }
  6305. _ACEOF
  6306. if ac_fn_c_try_compile "$LINENO"; then :
  6307. ac_cv_header_stdc=yes
  6308. else
  6309. ac_cv_header_stdc=no
  6310. fi
  6311. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  6312. if test $ac_cv_header_stdc = yes; then
  6313. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  6314. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6315. /* end confdefs.h. */
  6316. #include <string.h>
  6317. _ACEOF
  6318. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6319. $EGREP "memchr" >/dev/null 2>&1; then :
  6320. else
  6321. ac_cv_header_stdc=no
  6322. fi
  6323. rm -f conftest*
  6324. fi
  6325. if test $ac_cv_header_stdc = yes; then
  6326. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  6327. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6328. /* end confdefs.h. */
  6329. #include <stdlib.h>
  6330. _ACEOF
  6331. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  6332. $EGREP "free" >/dev/null 2>&1; then :
  6333. else
  6334. ac_cv_header_stdc=no
  6335. fi
  6336. rm -f conftest*
  6337. fi
  6338. if test $ac_cv_header_stdc = yes; then
  6339. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  6340. if test "$cross_compiling" = yes; then :
  6341. :
  6342. else
  6343. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6344. /* end confdefs.h. */
  6345. #include <ctype.h>
  6346. #include <stdlib.h>
  6347. #if ((' ' & 0x0FF) == 0x020)
  6348. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  6349. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  6350. #else
  6351. # define ISLOWER(c) \
  6352. (('a' <= (c) && (c) <= 'i') \
  6353. || ('j' <= (c) && (c) <= 'r') \
  6354. || ('s' <= (c) && (c) <= 'z'))
  6355. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  6356. #endif
  6357. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  6358. int
  6359. main ()
  6360. {
  6361. int i;
  6362. for (i = 0; i < 256; i++)
  6363. if (XOR (islower (i), ISLOWER (i))
  6364. || toupper (i) != TOUPPER (i))
  6365. return 2;
  6366. return 0;
  6367. }
  6368. _ACEOF
  6369. if ac_fn_c_try_run "$LINENO"; then :
  6370. else
  6371. ac_cv_header_stdc=no
  6372. fi
  6373. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  6374. conftest.$ac_objext conftest.beam conftest.$ac_ext
  6375. fi
  6376. fi
  6377. fi
  6378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  6379. $as_echo "$ac_cv_header_stdc" >&6; }
  6380. if test $ac_cv_header_stdc = yes; then
  6381. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  6382. fi
  6383. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  6384. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  6385. inttypes.h stdint.h unistd.h
  6386. do :
  6387. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  6388. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  6389. "
  6390. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  6391. cat >>confdefs.h <<_ACEOF
  6392. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  6393. _ACEOF
  6394. fi
  6395. done
  6396. for ac_header in dlfcn.h
  6397. do :
  6398. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  6399. "
  6400. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  6401. cat >>confdefs.h <<_ACEOF
  6402. #define HAVE_DLFCN_H 1
  6403. _ACEOF
  6404. fi
  6405. done
  6406. # Set options
  6407. enable_dlopen=no
  6408. enable_win32_dll=no
  6409. # Check whether --enable-shared was given.
  6410. if test "${enable_shared+set}" = set; then :
  6411. enableval=$enable_shared; p=${PACKAGE-default}
  6412. case $enableval in
  6413. yes) enable_shared=yes ;;
  6414. no) enable_shared=no ;;
  6415. *)
  6416. enable_shared=no
  6417. # Look at the argument we got. We use all the common list separators.
  6418. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6419. for pkg in $enableval; do
  6420. IFS="$lt_save_ifs"
  6421. if test "X$pkg" = "X$p"; then
  6422. enable_shared=yes
  6423. fi
  6424. done
  6425. IFS="$lt_save_ifs"
  6426. ;;
  6427. esac
  6428. else
  6429. enable_shared=yes
  6430. fi
  6431. # Check whether --enable-static was given.
  6432. if test "${enable_static+set}" = set; then :
  6433. enableval=$enable_static; p=${PACKAGE-default}
  6434. case $enableval in
  6435. yes) enable_static=yes ;;
  6436. no) enable_static=no ;;
  6437. *)
  6438. enable_static=no
  6439. # Look at the argument we got. We use all the common list separators.
  6440. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6441. for pkg in $enableval; do
  6442. IFS="$lt_save_ifs"
  6443. if test "X$pkg" = "X$p"; then
  6444. enable_static=yes
  6445. fi
  6446. done
  6447. IFS="$lt_save_ifs"
  6448. ;;
  6449. esac
  6450. else
  6451. enable_static=yes
  6452. fi
  6453. # Check whether --with-pic was given.
  6454. if test "${with_pic+set}" = set; then :
  6455. withval=$with_pic; lt_p=${PACKAGE-default}
  6456. case $withval in
  6457. yes|no) pic_mode=$withval ;;
  6458. *)
  6459. pic_mode=default
  6460. # Look at the argument we got. We use all the common list separators.
  6461. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6462. for lt_pkg in $withval; do
  6463. IFS="$lt_save_ifs"
  6464. if test "X$lt_pkg" = "X$lt_p"; then
  6465. pic_mode=yes
  6466. fi
  6467. done
  6468. IFS="$lt_save_ifs"
  6469. ;;
  6470. esac
  6471. else
  6472. pic_mode=default
  6473. fi
  6474. test -z "$pic_mode" && pic_mode=default
  6475. # Check whether --enable-fast-install was given.
  6476. if test "${enable_fast_install+set}" = set; then :
  6477. enableval=$enable_fast_install; p=${PACKAGE-default}
  6478. case $enableval in
  6479. yes) enable_fast_install=yes ;;
  6480. no) enable_fast_install=no ;;
  6481. *)
  6482. enable_fast_install=no
  6483. # Look at the argument we got. We use all the common list separators.
  6484. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  6485. for pkg in $enableval; do
  6486. IFS="$lt_save_ifs"
  6487. if test "X$pkg" = "X$p"; then
  6488. enable_fast_install=yes
  6489. fi
  6490. done
  6491. IFS="$lt_save_ifs"
  6492. ;;
  6493. esac
  6494. else
  6495. enable_fast_install=yes
  6496. fi
  6497. # This can be used to rebuild libtool when needed
  6498. LIBTOOL_DEPS="$ltmain"
  6499. # Always use our own libtool.
  6500. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  6501. test -z "$LN_S" && LN_S="ln -s"
  6502. if test -n "${ZSH_VERSION+set}" ; then
  6503. setopt NO_GLOB_SUBST
  6504. fi
  6505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  6506. $as_echo_n "checking for objdir... " >&6; }
  6507. if ${lt_cv_objdir+:} false; then :
  6508. $as_echo_n "(cached) " >&6
  6509. else
  6510. rm -f .libs 2>/dev/null
  6511. mkdir .libs 2>/dev/null
  6512. if test -d .libs; then
  6513. lt_cv_objdir=.libs
  6514. else
  6515. # MS-DOS does not allow filenames that begin with a dot.
  6516. lt_cv_objdir=_libs
  6517. fi
  6518. rmdir .libs 2>/dev/null
  6519. fi
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  6521. $as_echo "$lt_cv_objdir" >&6; }
  6522. objdir=$lt_cv_objdir
  6523. cat >>confdefs.h <<_ACEOF
  6524. #define LT_OBJDIR "$lt_cv_objdir/"
  6525. _ACEOF
  6526. case $host_os in
  6527. aix3*)
  6528. # AIX sometimes has problems with the GCC collect2 program. For some
  6529. # reason, if we set the COLLECT_NAMES environment variable, the problems
  6530. # vanish in a puff of smoke.
  6531. if test "X${COLLECT_NAMES+set}" != Xset; then
  6532. COLLECT_NAMES=
  6533. export COLLECT_NAMES
  6534. fi
  6535. ;;
  6536. esac
  6537. # Global variables:
  6538. ofile=libtool
  6539. can_build_shared=yes
  6540. # All known linkers require a `.a' archive for static linking (except MSVC,
  6541. # which needs '.lib').
  6542. libext=a
  6543. with_gnu_ld="$lt_cv_prog_gnu_ld"
  6544. old_CC="$CC"
  6545. old_CFLAGS="$CFLAGS"
  6546. # Set sane defaults for various variables
  6547. test -z "$CC" && CC=cc
  6548. test -z "$LTCC" && LTCC=$CC
  6549. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  6550. test -z "$LD" && LD=ld
  6551. test -z "$ac_objext" && ac_objext=o
  6552. for cc_temp in $compiler""; do
  6553. case $cc_temp in
  6554. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  6555. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  6556. \-*) ;;
  6557. *) break;;
  6558. esac
  6559. done
  6560. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  6561. # Only perform the check for file, if the check method requires it
  6562. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  6563. case $deplibs_check_method in
  6564. file_magic*)
  6565. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  6566. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  6567. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  6568. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6569. $as_echo_n "(cached) " >&6
  6570. else
  6571. case $MAGIC_CMD in
  6572. [\\/*] | ?:[\\/]*)
  6573. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6574. ;;
  6575. *)
  6576. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6577. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6578. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6579. for ac_dir in $ac_dummy; do
  6580. IFS="$lt_save_ifs"
  6581. test -z "$ac_dir" && ac_dir=.
  6582. if test -f $ac_dir/${ac_tool_prefix}file; then
  6583. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  6584. if test -n "$file_magic_test_file"; then
  6585. case $deplibs_check_method in
  6586. "file_magic "*)
  6587. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6588. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6589. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6590. $EGREP "$file_magic_regex" > /dev/null; then
  6591. :
  6592. else
  6593. cat <<_LT_EOF 1>&2
  6594. *** Warning: the command libtool uses to detect shared libraries,
  6595. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6596. *** The result is that libtool may fail to recognize shared libraries
  6597. *** as such. This will affect the creation of libtool libraries that
  6598. *** depend on shared libraries, but programs linked with such libtool
  6599. *** libraries will work regardless of this problem. Nevertheless, you
  6600. *** may want to report the problem to your system manager and/or to
  6601. *** bug-libtool@gnu.org
  6602. _LT_EOF
  6603. fi ;;
  6604. esac
  6605. fi
  6606. break
  6607. fi
  6608. done
  6609. IFS="$lt_save_ifs"
  6610. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6611. ;;
  6612. esac
  6613. fi
  6614. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6615. if test -n "$MAGIC_CMD"; then
  6616. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6617. $as_echo "$MAGIC_CMD" >&6; }
  6618. else
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6620. $as_echo "no" >&6; }
  6621. fi
  6622. if test -z "$lt_cv_path_MAGIC_CMD"; then
  6623. if test -n "$ac_tool_prefix"; then
  6624. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  6625. $as_echo_n "checking for file... " >&6; }
  6626. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  6627. $as_echo_n "(cached) " >&6
  6628. else
  6629. case $MAGIC_CMD in
  6630. [\\/*] | ?:[\\/]*)
  6631. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  6632. ;;
  6633. *)
  6634. lt_save_MAGIC_CMD="$MAGIC_CMD"
  6635. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  6636. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  6637. for ac_dir in $ac_dummy; do
  6638. IFS="$lt_save_ifs"
  6639. test -z "$ac_dir" && ac_dir=.
  6640. if test -f $ac_dir/file; then
  6641. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  6642. if test -n "$file_magic_test_file"; then
  6643. case $deplibs_check_method in
  6644. "file_magic "*)
  6645. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  6646. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6647. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  6648. $EGREP "$file_magic_regex" > /dev/null; then
  6649. :
  6650. else
  6651. cat <<_LT_EOF 1>&2
  6652. *** Warning: the command libtool uses to detect shared libraries,
  6653. *** $file_magic_cmd, produces output that libtool cannot recognize.
  6654. *** The result is that libtool may fail to recognize shared libraries
  6655. *** as such. This will affect the creation of libtool libraries that
  6656. *** depend on shared libraries, but programs linked with such libtool
  6657. *** libraries will work regardless of this problem. Nevertheless, you
  6658. *** may want to report the problem to your system manager and/or to
  6659. *** bug-libtool@gnu.org
  6660. _LT_EOF
  6661. fi ;;
  6662. esac
  6663. fi
  6664. break
  6665. fi
  6666. done
  6667. IFS="$lt_save_ifs"
  6668. MAGIC_CMD="$lt_save_MAGIC_CMD"
  6669. ;;
  6670. esac
  6671. fi
  6672. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  6673. if test -n "$MAGIC_CMD"; then
  6674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  6675. $as_echo "$MAGIC_CMD" >&6; }
  6676. else
  6677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6678. $as_echo "no" >&6; }
  6679. fi
  6680. else
  6681. MAGIC_CMD=:
  6682. fi
  6683. fi
  6684. fi
  6685. ;;
  6686. esac
  6687. # Use C for the default configuration in the libtool script
  6688. lt_save_CC="$CC"
  6689. ac_ext=c
  6690. ac_cpp='$CPP $CPPFLAGS'
  6691. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6692. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6693. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6694. # Source file extension for C test sources.
  6695. ac_ext=c
  6696. # Object file extension for compiled C test sources.
  6697. objext=o
  6698. objext=$objext
  6699. # Code to be used in simple compile tests
  6700. lt_simple_compile_test_code="int some_variable = 0;"
  6701. # Code to be used in simple link tests
  6702. lt_simple_link_test_code='int main(){return(0);}'
  6703. # If no C compiler was specified, use CC.
  6704. LTCC=${LTCC-"$CC"}
  6705. # If no C compiler flags were specified, use CFLAGS.
  6706. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6707. # Allow CC to be a program name with arguments.
  6708. compiler=$CC
  6709. # Save the default compiler, since it gets overwritten when the other
  6710. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  6711. compiler_DEFAULT=$CC
  6712. # save warnings/boilerplate of simple test code
  6713. ac_outfile=conftest.$ac_objext
  6714. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  6715. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6716. _lt_compiler_boilerplate=`cat conftest.err`
  6717. $RM conftest*
  6718. ac_outfile=conftest.$ac_objext
  6719. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  6720. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  6721. _lt_linker_boilerplate=`cat conftest.err`
  6722. $RM -r conftest*
  6723. ## CAVEAT EMPTOR:
  6724. ## There is no encapsulation within the following macros, do not change
  6725. ## the running order or otherwise move them around unless you know exactly
  6726. ## what you are doing...
  6727. if test -n "$compiler"; then
  6728. lt_prog_compiler_no_builtin_flag=
  6729. if test "$GCC" = yes; then
  6730. case $cc_basename in
  6731. nvcc*)
  6732. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  6733. *)
  6734. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  6735. esac
  6736. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  6737. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  6738. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  6739. $as_echo_n "(cached) " >&6
  6740. else
  6741. lt_cv_prog_compiler_rtti_exceptions=no
  6742. ac_outfile=conftest.$ac_objext
  6743. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  6744. lt_compiler_flag="-fno-rtti -fno-exceptions"
  6745. # Insert the option either (1) after the last *FLAGS variable, or
  6746. # (2) before a word containing "conftest.", or (3) at the end.
  6747. # Note that $ac_compile itself does not contain backslashes and begins
  6748. # with a dollar sign (not a hyphen), so the echo should work correctly.
  6749. # The option is referenced via a variable to avoid confusing sed.
  6750. lt_compile=`echo "$ac_compile" | $SED \
  6751. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  6752. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  6753. -e 's:$: $lt_compiler_flag:'`
  6754. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  6755. (eval "$lt_compile" 2>conftest.err)
  6756. ac_status=$?
  6757. cat conftest.err >&5
  6758. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  6759. if (exit $ac_status) && test -s "$ac_outfile"; then
  6760. # The compiler can only warn and ignore the option if not recognized
  6761. # So say no if there are warnings other than the usual output.
  6762. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  6763. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  6764. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  6765. lt_cv_prog_compiler_rtti_exceptions=yes
  6766. fi
  6767. fi
  6768. $RM conftest*
  6769. fi
  6770. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  6771. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  6772. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  6773. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  6774. else
  6775. :
  6776. fi
  6777. fi
  6778. lt_prog_compiler_wl=
  6779. lt_prog_compiler_pic=
  6780. lt_prog_compiler_static=
  6781. if test "$GCC" = yes; then
  6782. lt_prog_compiler_wl='-Wl,'
  6783. lt_prog_compiler_static='-static'
  6784. case $host_os in
  6785. aix*)
  6786. # All AIX code is PIC.
  6787. if test "$host_cpu" = ia64; then
  6788. # AIX 5 now supports IA64 processor
  6789. lt_prog_compiler_static='-Bstatic'
  6790. fi
  6791. ;;
  6792. amigaos*)
  6793. case $host_cpu in
  6794. powerpc)
  6795. # see comment about AmigaOS4 .so support
  6796. lt_prog_compiler_pic='-fPIC'
  6797. ;;
  6798. m68k)
  6799. # FIXME: we need at least 68020 code to build shared libraries, but
  6800. # adding the `-m68020' flag to GCC prevents building anything better,
  6801. # like `-m68040'.
  6802. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  6803. ;;
  6804. esac
  6805. ;;
  6806. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  6807. # PIC is the default for these OSes.
  6808. ;;
  6809. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6810. # This hack is so that the source file can tell whether it is being
  6811. # built for inclusion in a dll (and should export symbols for example).
  6812. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  6813. # (--disable-auto-import) libraries
  6814. lt_prog_compiler_pic='-DDLL_EXPORT'
  6815. ;;
  6816. darwin* | rhapsody*)
  6817. # PIC is the default on this platform
  6818. # Common symbols not allowed in MH_DYLIB files
  6819. lt_prog_compiler_pic='-fno-common'
  6820. ;;
  6821. haiku*)
  6822. # PIC is the default for Haiku.
  6823. # The "-static" flag exists, but is broken.
  6824. lt_prog_compiler_static=
  6825. ;;
  6826. hpux*)
  6827. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  6828. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  6829. # sets the default TLS model and affects inlining.
  6830. case $host_cpu in
  6831. hppa*64*)
  6832. # +Z the default
  6833. ;;
  6834. *)
  6835. lt_prog_compiler_pic='-fPIC'
  6836. ;;
  6837. esac
  6838. ;;
  6839. interix[3-9]*)
  6840. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  6841. # Instead, we relocate shared libraries at runtime.
  6842. ;;
  6843. msdosdjgpp*)
  6844. # Just because we use GCC doesn't mean we suddenly get shared libraries
  6845. # on systems that don't support them.
  6846. lt_prog_compiler_can_build_shared=no
  6847. enable_shared=no
  6848. ;;
  6849. *nto* | *qnx*)
  6850. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6851. # it will coredump.
  6852. lt_prog_compiler_pic='-fPIC -shared'
  6853. ;;
  6854. sysv4*MP*)
  6855. if test -d /usr/nec; then
  6856. lt_prog_compiler_pic=-Kconform_pic
  6857. fi
  6858. ;;
  6859. *)
  6860. lt_prog_compiler_pic='-fPIC'
  6861. ;;
  6862. esac
  6863. case $cc_basename in
  6864. nvcc*) # Cuda Compiler Driver 2.2
  6865. lt_prog_compiler_wl='-Xlinker '
  6866. if test -n "$lt_prog_compiler_pic"; then
  6867. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  6868. fi
  6869. ;;
  6870. esac
  6871. else
  6872. # PORTME Check for flag to pass linker flags through the system compiler.
  6873. case $host_os in
  6874. aix*)
  6875. lt_prog_compiler_wl='-Wl,'
  6876. if test "$host_cpu" = ia64; then
  6877. # AIX 5 now supports IA64 processor
  6878. lt_prog_compiler_static='-Bstatic'
  6879. else
  6880. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  6881. fi
  6882. ;;
  6883. mingw* | cygwin* | pw32* | os2* | cegcc*)
  6884. # This hack is so that the source file can tell whether it is being
  6885. # built for inclusion in a dll (and should export symbols for example).
  6886. lt_prog_compiler_pic='-DDLL_EXPORT'
  6887. ;;
  6888. hpux9* | hpux10* | hpux11*)
  6889. lt_prog_compiler_wl='-Wl,'
  6890. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  6891. # not for PA HP-UX.
  6892. case $host_cpu in
  6893. hppa*64*|ia64*)
  6894. # +Z the default
  6895. ;;
  6896. *)
  6897. lt_prog_compiler_pic='+Z'
  6898. ;;
  6899. esac
  6900. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  6901. lt_prog_compiler_static='${wl}-a ${wl}archive'
  6902. ;;
  6903. irix5* | irix6* | nonstopux*)
  6904. lt_prog_compiler_wl='-Wl,'
  6905. # PIC (with -KPIC) is the default.
  6906. lt_prog_compiler_static='-non_shared'
  6907. ;;
  6908. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  6909. case $cc_basename in
  6910. # old Intel for x86_64 which still supported -KPIC.
  6911. ecc*)
  6912. lt_prog_compiler_wl='-Wl,'
  6913. lt_prog_compiler_pic='-KPIC'
  6914. lt_prog_compiler_static='-static'
  6915. ;;
  6916. # icc used to be incompatible with GCC.
  6917. # ICC 10 doesn't accept -KPIC any more.
  6918. icc* | ifort*)
  6919. lt_prog_compiler_wl='-Wl,'
  6920. lt_prog_compiler_pic='-fPIC'
  6921. lt_prog_compiler_static='-static'
  6922. ;;
  6923. # Lahey Fortran 8.1.
  6924. lf95*)
  6925. lt_prog_compiler_wl='-Wl,'
  6926. lt_prog_compiler_pic='--shared'
  6927. lt_prog_compiler_static='--static'
  6928. ;;
  6929. nagfor*)
  6930. # NAG Fortran compiler
  6931. lt_prog_compiler_wl='-Wl,-Wl,,'
  6932. lt_prog_compiler_pic='-PIC'
  6933. lt_prog_compiler_static='-Bstatic'
  6934. ;;
  6935. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  6936. # Portland Group compilers (*not* the Pentium gcc compiler,
  6937. # which looks to be a dead project)
  6938. lt_prog_compiler_wl='-Wl,'
  6939. lt_prog_compiler_pic='-fpic'
  6940. lt_prog_compiler_static='-Bstatic'
  6941. ;;
  6942. ccc*)
  6943. lt_prog_compiler_wl='-Wl,'
  6944. # All Alpha code is PIC.
  6945. lt_prog_compiler_static='-non_shared'
  6946. ;;
  6947. xl* | bgxl* | bgf* | mpixl*)
  6948. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  6949. lt_prog_compiler_wl='-Wl,'
  6950. lt_prog_compiler_pic='-qpic'
  6951. lt_prog_compiler_static='-qstaticlink'
  6952. ;;
  6953. *)
  6954. case `$CC -V 2>&1 | sed 5q` in
  6955. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  6956. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  6957. lt_prog_compiler_pic='-KPIC'
  6958. lt_prog_compiler_static='-Bstatic'
  6959. lt_prog_compiler_wl=''
  6960. ;;
  6961. *Sun\ F* | *Sun*Fortran*)
  6962. lt_prog_compiler_pic='-KPIC'
  6963. lt_prog_compiler_static='-Bstatic'
  6964. lt_prog_compiler_wl='-Qoption ld '
  6965. ;;
  6966. *Sun\ C*)
  6967. # Sun C 5.9
  6968. lt_prog_compiler_pic='-KPIC'
  6969. lt_prog_compiler_static='-Bstatic'
  6970. lt_prog_compiler_wl='-Wl,'
  6971. ;;
  6972. *Intel*\ [CF]*Compiler*)
  6973. lt_prog_compiler_wl='-Wl,'
  6974. lt_prog_compiler_pic='-fPIC'
  6975. lt_prog_compiler_static='-static'
  6976. ;;
  6977. *Portland\ Group*)
  6978. lt_prog_compiler_wl='-Wl,'
  6979. lt_prog_compiler_pic='-fpic'
  6980. lt_prog_compiler_static='-Bstatic'
  6981. ;;
  6982. esac
  6983. ;;
  6984. esac
  6985. ;;
  6986. newsos6)
  6987. lt_prog_compiler_pic='-KPIC'
  6988. lt_prog_compiler_static='-Bstatic'
  6989. ;;
  6990. *nto* | *qnx*)
  6991. # QNX uses GNU C++, but need to define -shared option too, otherwise
  6992. # it will coredump.
  6993. lt_prog_compiler_pic='-fPIC -shared'
  6994. ;;
  6995. osf3* | osf4* | osf5*)
  6996. lt_prog_compiler_wl='-Wl,'
  6997. # All OSF/1 code is PIC.
  6998. lt_prog_compiler_static='-non_shared'
  6999. ;;
  7000. rdos*)
  7001. lt_prog_compiler_static='-non_shared'
  7002. ;;
  7003. solaris*)
  7004. lt_prog_compiler_pic='-KPIC'
  7005. lt_prog_compiler_static='-Bstatic'
  7006. case $cc_basename in
  7007. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7008. lt_prog_compiler_wl='-Qoption ld ';;
  7009. *)
  7010. lt_prog_compiler_wl='-Wl,';;
  7011. esac
  7012. ;;
  7013. sunos4*)
  7014. lt_prog_compiler_wl='-Qoption ld '
  7015. lt_prog_compiler_pic='-PIC'
  7016. lt_prog_compiler_static='-Bstatic'
  7017. ;;
  7018. sysv4 | sysv4.2uw2* | sysv4.3*)
  7019. lt_prog_compiler_wl='-Wl,'
  7020. lt_prog_compiler_pic='-KPIC'
  7021. lt_prog_compiler_static='-Bstatic'
  7022. ;;
  7023. sysv4*MP*)
  7024. if test -d /usr/nec ;then
  7025. lt_prog_compiler_pic='-Kconform_pic'
  7026. lt_prog_compiler_static='-Bstatic'
  7027. fi
  7028. ;;
  7029. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7030. lt_prog_compiler_wl='-Wl,'
  7031. lt_prog_compiler_pic='-KPIC'
  7032. lt_prog_compiler_static='-Bstatic'
  7033. ;;
  7034. unicos*)
  7035. lt_prog_compiler_wl='-Wl,'
  7036. lt_prog_compiler_can_build_shared=no
  7037. ;;
  7038. uts4*)
  7039. lt_prog_compiler_pic='-pic'
  7040. lt_prog_compiler_static='-Bstatic'
  7041. ;;
  7042. *)
  7043. lt_prog_compiler_can_build_shared=no
  7044. ;;
  7045. esac
  7046. fi
  7047. case $host_os in
  7048. # For platforms which do not support PIC, -DPIC is meaningless:
  7049. *djgpp*)
  7050. lt_prog_compiler_pic=
  7051. ;;
  7052. *)
  7053. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7054. ;;
  7055. esac
  7056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7057. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7058. if ${lt_cv_prog_compiler_pic+:} false; then :
  7059. $as_echo_n "(cached) " >&6
  7060. else
  7061. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7062. fi
  7063. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7064. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7065. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7066. #
  7067. # Check to make sure the PIC flag actually works.
  7068. #
  7069. if test -n "$lt_prog_compiler_pic"; then
  7070. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7071. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7072. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7073. $as_echo_n "(cached) " >&6
  7074. else
  7075. lt_cv_prog_compiler_pic_works=no
  7076. ac_outfile=conftest.$ac_objext
  7077. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7078. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7079. # Insert the option either (1) after the last *FLAGS variable, or
  7080. # (2) before a word containing "conftest.", or (3) at the end.
  7081. # Note that $ac_compile itself does not contain backslashes and begins
  7082. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7083. # The option is referenced via a variable to avoid confusing sed.
  7084. lt_compile=`echo "$ac_compile" | $SED \
  7085. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7086. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7087. -e 's:$: $lt_compiler_flag:'`
  7088. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7089. (eval "$lt_compile" 2>conftest.err)
  7090. ac_status=$?
  7091. cat conftest.err >&5
  7092. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7093. if (exit $ac_status) && test -s "$ac_outfile"; then
  7094. # The compiler can only warn and ignore the option if not recognized
  7095. # So say no if there are warnings other than the usual output.
  7096. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7097. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7098. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7099. lt_cv_prog_compiler_pic_works=yes
  7100. fi
  7101. fi
  7102. $RM conftest*
  7103. fi
  7104. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7105. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7106. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7107. case $lt_prog_compiler_pic in
  7108. "" | " "*) ;;
  7109. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7110. esac
  7111. else
  7112. lt_prog_compiler_pic=
  7113. lt_prog_compiler_can_build_shared=no
  7114. fi
  7115. fi
  7116. #
  7117. # Check to make sure the static flag actually works.
  7118. #
  7119. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7121. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7122. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7123. $as_echo_n "(cached) " >&6
  7124. else
  7125. lt_cv_prog_compiler_static_works=no
  7126. save_LDFLAGS="$LDFLAGS"
  7127. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7128. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7129. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7130. # The linker can only warn and ignore the option if not recognized
  7131. # So say no if there are warnings
  7132. if test -s conftest.err; then
  7133. # Append any errors to the config.log.
  7134. cat conftest.err 1>&5
  7135. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7136. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7137. if diff conftest.exp conftest.er2 >/dev/null; then
  7138. lt_cv_prog_compiler_static_works=yes
  7139. fi
  7140. else
  7141. lt_cv_prog_compiler_static_works=yes
  7142. fi
  7143. fi
  7144. $RM -r conftest*
  7145. LDFLAGS="$save_LDFLAGS"
  7146. fi
  7147. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7148. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7149. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7150. :
  7151. else
  7152. lt_prog_compiler_static=
  7153. fi
  7154. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7155. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7156. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7157. $as_echo_n "(cached) " >&6
  7158. else
  7159. lt_cv_prog_compiler_c_o=no
  7160. $RM -r conftest 2>/dev/null
  7161. mkdir conftest
  7162. cd conftest
  7163. mkdir out
  7164. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7165. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7166. # Insert the option either (1) after the last *FLAGS variable, or
  7167. # (2) before a word containing "conftest.", or (3) at the end.
  7168. # Note that $ac_compile itself does not contain backslashes and begins
  7169. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7170. lt_compile=`echo "$ac_compile" | $SED \
  7171. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7172. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7173. -e 's:$: $lt_compiler_flag:'`
  7174. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7175. (eval "$lt_compile" 2>out/conftest.err)
  7176. ac_status=$?
  7177. cat out/conftest.err >&5
  7178. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7179. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7180. then
  7181. # The compiler can only warn and ignore the option if not recognized
  7182. # So say no if there are warnings
  7183. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7184. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7185. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7186. lt_cv_prog_compiler_c_o=yes
  7187. fi
  7188. fi
  7189. chmod u+w . 2>&5
  7190. $RM conftest*
  7191. # SGI C++ compiler will create directory out/ii_files/ for
  7192. # template instantiation
  7193. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7194. $RM out/* && rmdir out
  7195. cd ..
  7196. $RM -r conftest
  7197. $RM conftest*
  7198. fi
  7199. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7200. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7202. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7203. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7204. $as_echo_n "(cached) " >&6
  7205. else
  7206. lt_cv_prog_compiler_c_o=no
  7207. $RM -r conftest 2>/dev/null
  7208. mkdir conftest
  7209. cd conftest
  7210. mkdir out
  7211. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7212. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7213. # Insert the option either (1) after the last *FLAGS variable, or
  7214. # (2) before a word containing "conftest.", or (3) at the end.
  7215. # Note that $ac_compile itself does not contain backslashes and begins
  7216. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7217. lt_compile=`echo "$ac_compile" | $SED \
  7218. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7219. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7220. -e 's:$: $lt_compiler_flag:'`
  7221. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7222. (eval "$lt_compile" 2>out/conftest.err)
  7223. ac_status=$?
  7224. cat out/conftest.err >&5
  7225. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7226. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7227. then
  7228. # The compiler can only warn and ignore the option if not recognized
  7229. # So say no if there are warnings
  7230. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7231. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7232. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7233. lt_cv_prog_compiler_c_o=yes
  7234. fi
  7235. fi
  7236. chmod u+w . 2>&5
  7237. $RM conftest*
  7238. # SGI C++ compiler will create directory out/ii_files/ for
  7239. # template instantiation
  7240. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7241. $RM out/* && rmdir out
  7242. cd ..
  7243. $RM -r conftest
  7244. $RM conftest*
  7245. fi
  7246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7247. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7248. hard_links="nottested"
  7249. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  7250. # do not overwrite the value of need_locks provided by the user
  7251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  7252. $as_echo_n "checking if we can lock with hard links... " >&6; }
  7253. hard_links=yes
  7254. $RM conftest*
  7255. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7256. touch conftest.a
  7257. ln conftest.a conftest.b 2>&5 || hard_links=no
  7258. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  7259. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  7260. $as_echo "$hard_links" >&6; }
  7261. if test "$hard_links" = no; then
  7262. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  7263. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  7264. need_locks=warn
  7265. fi
  7266. else
  7267. need_locks=no
  7268. fi
  7269. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  7270. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  7271. runpath_var=
  7272. allow_undefined_flag=
  7273. always_export_symbols=no
  7274. archive_cmds=
  7275. archive_expsym_cmds=
  7276. compiler_needs_object=no
  7277. enable_shared_with_static_runtimes=no
  7278. export_dynamic_flag_spec=
  7279. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  7280. hardcode_automatic=no
  7281. hardcode_direct=no
  7282. hardcode_direct_absolute=no
  7283. hardcode_libdir_flag_spec=
  7284. hardcode_libdir_separator=
  7285. hardcode_minus_L=no
  7286. hardcode_shlibpath_var=unsupported
  7287. inherit_rpath=no
  7288. link_all_deplibs=unknown
  7289. module_cmds=
  7290. module_expsym_cmds=
  7291. old_archive_from_new_cmds=
  7292. old_archive_from_expsyms_cmds=
  7293. thread_safe_flag_spec=
  7294. whole_archive_flag_spec=
  7295. # include_expsyms should be a list of space-separated symbols to be *always*
  7296. # included in the symbol list
  7297. include_expsyms=
  7298. # exclude_expsyms can be an extended regexp of symbols to exclude
  7299. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  7300. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  7301. # as well as any symbol that contains `d'.
  7302. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  7303. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  7304. # platforms (ab)use it in PIC code, but their linkers get confused if
  7305. # the symbol is explicitly referenced. Since portable code cannot
  7306. # rely on this symbol name, it's probably fine to never include it in
  7307. # preloaded symbol tables.
  7308. # Exclude shared library initialization/finalization symbols.
  7309. extract_expsyms_cmds=
  7310. case $host_os in
  7311. cygwin* | mingw* | pw32* | cegcc*)
  7312. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  7313. # When not using gcc, we currently assume that we are using
  7314. # Microsoft Visual C++.
  7315. if test "$GCC" != yes; then
  7316. with_gnu_ld=no
  7317. fi
  7318. ;;
  7319. interix*)
  7320. # we just hope/assume this is gcc and not c89 (= MSVC++)
  7321. with_gnu_ld=yes
  7322. ;;
  7323. openbsd*)
  7324. with_gnu_ld=no
  7325. ;;
  7326. linux* | k*bsd*-gnu | gnu*)
  7327. link_all_deplibs=no
  7328. ;;
  7329. esac
  7330. ld_shlibs=yes
  7331. # On some targets, GNU ld is compatible enough with the native linker
  7332. # that we're better off using the native interface for both.
  7333. lt_use_gnu_ld_interface=no
  7334. if test "$with_gnu_ld" = yes; then
  7335. case $host_os in
  7336. aix*)
  7337. # The AIX port of GNU ld has always aspired to compatibility
  7338. # with the native linker. However, as the warning in the GNU ld
  7339. # block says, versions before 2.19.5* couldn't really create working
  7340. # shared libraries, regardless of the interface used.
  7341. case `$LD -v 2>&1` in
  7342. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  7343. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  7344. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  7345. *)
  7346. lt_use_gnu_ld_interface=yes
  7347. ;;
  7348. esac
  7349. ;;
  7350. *)
  7351. lt_use_gnu_ld_interface=yes
  7352. ;;
  7353. esac
  7354. fi
  7355. if test "$lt_use_gnu_ld_interface" = yes; then
  7356. # If archive_cmds runs LD, not CC, wlarc should be empty
  7357. wlarc='${wl}'
  7358. # Set some defaults for GNU ld with shared library support. These
  7359. # are reset later if shared libraries are not supported. Putting them
  7360. # here allows them to be overridden if necessary.
  7361. runpath_var=LD_RUN_PATH
  7362. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7363. export_dynamic_flag_spec='${wl}--export-dynamic'
  7364. # ancient GNU ld didn't support --whole-archive et. al.
  7365. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  7366. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  7367. else
  7368. whole_archive_flag_spec=
  7369. fi
  7370. supports_anon_versioning=no
  7371. case `$LD -v 2>&1` in
  7372. *GNU\ gold*) supports_anon_versioning=yes ;;
  7373. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  7374. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  7375. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  7376. *\ 2.11.*) ;; # other 2.11 versions
  7377. *) supports_anon_versioning=yes ;;
  7378. esac
  7379. # See if GNU ld supports shared libraries.
  7380. case $host_os in
  7381. aix[3-9]*)
  7382. # On AIX/PPC, the GNU linker is very broken
  7383. if test "$host_cpu" != ia64; then
  7384. ld_shlibs=no
  7385. cat <<_LT_EOF 1>&2
  7386. *** Warning: the GNU linker, at least up to release 2.19, is reported
  7387. *** to be unable to reliably create shared libraries on AIX.
  7388. *** Therefore, libtool is disabling shared libraries support. If you
  7389. *** really care for shared libraries, you may want to install binutils
  7390. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  7391. *** You will then need to restart the configuration process.
  7392. _LT_EOF
  7393. fi
  7394. ;;
  7395. amigaos*)
  7396. case $host_cpu in
  7397. powerpc)
  7398. # see comment about AmigaOS4 .so support
  7399. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7400. archive_expsym_cmds=''
  7401. ;;
  7402. m68k)
  7403. 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)'
  7404. hardcode_libdir_flag_spec='-L$libdir'
  7405. hardcode_minus_L=yes
  7406. ;;
  7407. esac
  7408. ;;
  7409. beos*)
  7410. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7411. allow_undefined_flag=unsupported
  7412. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  7413. # support --undefined. This deserves some investigation. FIXME
  7414. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7415. else
  7416. ld_shlibs=no
  7417. fi
  7418. ;;
  7419. cygwin* | mingw* | pw32* | cegcc*)
  7420. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  7421. # as there is no search path for DLLs.
  7422. hardcode_libdir_flag_spec='-L$libdir'
  7423. export_dynamic_flag_spec='${wl}--export-all-symbols'
  7424. allow_undefined_flag=unsupported
  7425. always_export_symbols=no
  7426. enable_shared_with_static_runtimes=yes
  7427. 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'
  7428. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  7429. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  7430. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7431. # If the export-symbols file already is a .def file (1st line
  7432. # is EXPORTS), use it as is; otherwise, prepend...
  7433. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7434. cp $export_symbols $output_objdir/$soname.def;
  7435. else
  7436. echo EXPORTS > $output_objdir/$soname.def;
  7437. cat $export_symbols >> $output_objdir/$soname.def;
  7438. fi~
  7439. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  7440. else
  7441. ld_shlibs=no
  7442. fi
  7443. ;;
  7444. haiku*)
  7445. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7446. link_all_deplibs=yes
  7447. ;;
  7448. interix[3-9]*)
  7449. hardcode_direct=no
  7450. hardcode_shlibpath_var=no
  7451. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  7452. export_dynamic_flag_spec='${wl}-E'
  7453. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  7454. # Instead, shared libraries are loaded at an image base (0x10000000 by
  7455. # default) and relocated if they conflict, which is a slow very memory
  7456. # consuming and fragmenting process. To avoid this, we pick a random,
  7457. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  7458. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  7459. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  7460. 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'
  7461. ;;
  7462. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  7463. tmp_diet=no
  7464. if test "$host_os" = linux-dietlibc; then
  7465. case $cc_basename in
  7466. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  7467. esac
  7468. fi
  7469. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  7470. && test "$tmp_diet" = no
  7471. then
  7472. tmp_addflag=' $pic_flag'
  7473. tmp_sharedflag='-shared'
  7474. case $cc_basename,$host_cpu in
  7475. pgcc*) # Portland Group C compiler
  7476. 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'
  7477. tmp_addflag=' $pic_flag'
  7478. ;;
  7479. pgf77* | pgf90* | pgf95* | pgfortran*)
  7480. # Portland Group f77 and f90 compilers
  7481. 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'
  7482. tmp_addflag=' $pic_flag -Mnomain' ;;
  7483. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  7484. tmp_addflag=' -i_dynamic' ;;
  7485. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  7486. tmp_addflag=' -i_dynamic -nofor_main' ;;
  7487. ifc* | ifort*) # Intel Fortran compiler
  7488. tmp_addflag=' -nofor_main' ;;
  7489. lf95*) # Lahey Fortran 8.1
  7490. whole_archive_flag_spec=
  7491. tmp_sharedflag='--shared' ;;
  7492. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  7493. tmp_sharedflag='-qmkshrobj'
  7494. tmp_addflag= ;;
  7495. nvcc*) # Cuda Compiler Driver 2.2
  7496. 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'
  7497. compiler_needs_object=yes
  7498. ;;
  7499. esac
  7500. case `$CC -V 2>&1 | sed 5q` in
  7501. *Sun\ C*) # Sun C 5.9
  7502. 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'
  7503. compiler_needs_object=yes
  7504. tmp_sharedflag='-G' ;;
  7505. *Sun\ F*) # Sun Fortran 8.3
  7506. tmp_sharedflag='-G' ;;
  7507. esac
  7508. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7509. if test "x$supports_anon_versioning" = xyes; then
  7510. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7511. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7512. echo "local: *; };" >> $output_objdir/$libname.ver~
  7513. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  7514. fi
  7515. case $cc_basename in
  7516. xlf* | bgf* | bgxlf* | mpixlf*)
  7517. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  7518. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  7519. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7520. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  7521. if test "x$supports_anon_versioning" = xyes; then
  7522. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  7523. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  7524. echo "local: *; };" >> $output_objdir/$libname.ver~
  7525. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  7526. fi
  7527. ;;
  7528. esac
  7529. else
  7530. ld_shlibs=no
  7531. fi
  7532. ;;
  7533. netbsd* | netbsdelf*-gnu)
  7534. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  7535. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  7536. wlarc=
  7537. else
  7538. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7539. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7540. fi
  7541. ;;
  7542. solaris*)
  7543. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  7544. ld_shlibs=no
  7545. cat <<_LT_EOF 1>&2
  7546. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  7547. *** create shared libraries on Solaris systems. Therefore, libtool
  7548. *** is disabling shared libraries support. We urge you to upgrade GNU
  7549. *** binutils to release 2.9.1 or newer. Another option is to modify
  7550. *** your PATH or compiler configuration so that the native linker is
  7551. *** used, and then restart.
  7552. _LT_EOF
  7553. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7554. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7555. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7556. else
  7557. ld_shlibs=no
  7558. fi
  7559. ;;
  7560. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  7561. case `$LD -v 2>&1` in
  7562. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  7563. ld_shlibs=no
  7564. cat <<_LT_EOF 1>&2
  7565. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  7566. *** reliably create shared libraries on SCO systems. Therefore, libtool
  7567. *** is disabling shared libraries support. We urge you to upgrade GNU
  7568. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  7569. *** your PATH or compiler configuration so that the native linker is
  7570. *** used, and then restart.
  7571. _LT_EOF
  7572. ;;
  7573. *)
  7574. # For security reasons, it is highly recommended that you always
  7575. # use absolute paths for naming shared libraries, and exclude the
  7576. # DT_RUNPATH tag from executables and libraries. But doing so
  7577. # requires that you compile everything twice, which is a pain.
  7578. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7579. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  7580. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7581. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7582. else
  7583. ld_shlibs=no
  7584. fi
  7585. ;;
  7586. esac
  7587. ;;
  7588. sunos4*)
  7589. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7590. wlarc=
  7591. hardcode_direct=yes
  7592. hardcode_shlibpath_var=no
  7593. ;;
  7594. *)
  7595. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  7596. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7597. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  7598. else
  7599. ld_shlibs=no
  7600. fi
  7601. ;;
  7602. esac
  7603. if test "$ld_shlibs" = no; then
  7604. runpath_var=
  7605. hardcode_libdir_flag_spec=
  7606. export_dynamic_flag_spec=
  7607. whole_archive_flag_spec=
  7608. fi
  7609. else
  7610. # PORTME fill in a description of your system's linker (not GNU ld)
  7611. case $host_os in
  7612. aix3*)
  7613. allow_undefined_flag=unsupported
  7614. always_export_symbols=yes
  7615. 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'
  7616. # Note: this linker hardcodes the directories in LIBPATH if there
  7617. # are no directories specified by -L.
  7618. hardcode_minus_L=yes
  7619. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  7620. # Neither direct hardcoding nor static linking is supported with a
  7621. # broken collect2.
  7622. hardcode_direct=unsupported
  7623. fi
  7624. ;;
  7625. aix[4-9]*)
  7626. if test "$host_cpu" = ia64; then
  7627. # On IA64, the linker does run time linking by default, so we don't
  7628. # have to do anything special.
  7629. aix_use_runtimelinking=no
  7630. exp_sym_flag='-Bexport'
  7631. no_entry_flag=""
  7632. else
  7633. # If we're using GNU nm, then we don't want the "-C" option.
  7634. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  7635. # Also, AIX nm treats weak defined symbols like other global
  7636. # defined symbols, whereas GNU nm marks them as "W".
  7637. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  7638. 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'
  7639. else
  7640. 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'
  7641. fi
  7642. aix_use_runtimelinking=no
  7643. # Test if we are trying to use run time linking or normal
  7644. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  7645. # need to do runtime linking.
  7646. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  7647. for ld_flag in $LDFLAGS; do
  7648. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  7649. aix_use_runtimelinking=yes
  7650. break
  7651. fi
  7652. done
  7653. ;;
  7654. esac
  7655. exp_sym_flag='-bexport'
  7656. no_entry_flag='-bnoentry'
  7657. fi
  7658. # When large executables or shared objects are built, AIX ld can
  7659. # have problems creating the table of contents. If linking a library
  7660. # or program results in "error TOC overflow" add -mminimal-toc to
  7661. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  7662. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  7663. archive_cmds=''
  7664. hardcode_direct=yes
  7665. hardcode_direct_absolute=yes
  7666. hardcode_libdir_separator=':'
  7667. link_all_deplibs=yes
  7668. file_list_spec='${wl}-f,'
  7669. if test "$GCC" = yes; then
  7670. case $host_os in aix4.[012]|aix4.[012].*)
  7671. # We only want to do this on AIX 4.2 and lower, the check
  7672. # below for broken collect2 doesn't work under 4.3+
  7673. collect2name=`${CC} -print-prog-name=collect2`
  7674. if test -f "$collect2name" &&
  7675. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  7676. then
  7677. # We have reworked collect2
  7678. :
  7679. else
  7680. # We have old collect2
  7681. hardcode_direct=unsupported
  7682. # It fails to find uninstalled libraries when the uninstalled
  7683. # path is not listed in the libpath. Setting hardcode_minus_L
  7684. # to unsupported forces relinking
  7685. hardcode_minus_L=yes
  7686. hardcode_libdir_flag_spec='-L$libdir'
  7687. hardcode_libdir_separator=
  7688. fi
  7689. ;;
  7690. esac
  7691. shared_flag='-shared'
  7692. if test "$aix_use_runtimelinking" = yes; then
  7693. shared_flag="$shared_flag "'${wl}-G'
  7694. fi
  7695. link_all_deplibs=no
  7696. else
  7697. # not using gcc
  7698. if test "$host_cpu" = ia64; then
  7699. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  7700. # chokes on -Wl,-G. The following line is correct:
  7701. shared_flag='-G'
  7702. else
  7703. if test "$aix_use_runtimelinking" = yes; then
  7704. shared_flag='${wl}-G'
  7705. else
  7706. shared_flag='${wl}-bM:SRE'
  7707. fi
  7708. fi
  7709. fi
  7710. export_dynamic_flag_spec='${wl}-bexpall'
  7711. # It seems that -bexpall does not export symbols beginning with
  7712. # underscore (_), so it is better to generate a list of symbols to export.
  7713. always_export_symbols=yes
  7714. if test "$aix_use_runtimelinking" = yes; then
  7715. # Warning - without using the other runtime loading flags (-brtl),
  7716. # -berok will link without error, but may produce a broken library.
  7717. allow_undefined_flag='-berok'
  7718. # Determine the default libpath from the value encoded in an
  7719. # empty executable.
  7720. if test "${lt_cv_aix_libpath+set}" = set; then
  7721. aix_libpath=$lt_cv_aix_libpath
  7722. else
  7723. if ${lt_cv_aix_libpath_+:} false; then :
  7724. $as_echo_n "(cached) " >&6
  7725. else
  7726. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7727. /* end confdefs.h. */
  7728. int
  7729. main ()
  7730. {
  7731. ;
  7732. return 0;
  7733. }
  7734. _ACEOF
  7735. if ac_fn_c_try_link "$LINENO"; then :
  7736. lt_aix_libpath_sed='
  7737. /Import File Strings/,/^$/ {
  7738. /^0/ {
  7739. s/^0 *\([^ ]*\) *$/\1/
  7740. p
  7741. }
  7742. }'
  7743. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7744. # Check for a 64-bit object if we didn't find anything.
  7745. if test -z "$lt_cv_aix_libpath_"; then
  7746. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7747. fi
  7748. fi
  7749. rm -f core conftest.err conftest.$ac_objext \
  7750. conftest$ac_exeext conftest.$ac_ext
  7751. if test -z "$lt_cv_aix_libpath_"; then
  7752. lt_cv_aix_libpath_="/usr/lib:/lib"
  7753. fi
  7754. fi
  7755. aix_libpath=$lt_cv_aix_libpath_
  7756. fi
  7757. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7758. 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"
  7759. else
  7760. if test "$host_cpu" = ia64; then
  7761. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  7762. allow_undefined_flag="-z nodefs"
  7763. 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"
  7764. else
  7765. # Determine the default libpath from the value encoded in an
  7766. # empty executable.
  7767. if test "${lt_cv_aix_libpath+set}" = set; then
  7768. aix_libpath=$lt_cv_aix_libpath
  7769. else
  7770. if ${lt_cv_aix_libpath_+:} false; then :
  7771. $as_echo_n "(cached) " >&6
  7772. else
  7773. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7774. /* end confdefs.h. */
  7775. int
  7776. main ()
  7777. {
  7778. ;
  7779. return 0;
  7780. }
  7781. _ACEOF
  7782. if ac_fn_c_try_link "$LINENO"; then :
  7783. lt_aix_libpath_sed='
  7784. /Import File Strings/,/^$/ {
  7785. /^0/ {
  7786. s/^0 *\([^ ]*\) *$/\1/
  7787. p
  7788. }
  7789. }'
  7790. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7791. # Check for a 64-bit object if we didn't find anything.
  7792. if test -z "$lt_cv_aix_libpath_"; then
  7793. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  7794. fi
  7795. fi
  7796. rm -f core conftest.err conftest.$ac_objext \
  7797. conftest$ac_exeext conftest.$ac_ext
  7798. if test -z "$lt_cv_aix_libpath_"; then
  7799. lt_cv_aix_libpath_="/usr/lib:/lib"
  7800. fi
  7801. fi
  7802. aix_libpath=$lt_cv_aix_libpath_
  7803. fi
  7804. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  7805. # Warning - without using the other run time loading flags,
  7806. # -berok will link without error, but may produce a broken library.
  7807. no_undefined_flag=' ${wl}-bernotok'
  7808. allow_undefined_flag=' ${wl}-berok'
  7809. if test "$with_gnu_ld" = yes; then
  7810. # We only use this code for GNU lds that support --whole-archive.
  7811. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  7812. else
  7813. # Exported symbols can be pulled into shared objects from archives
  7814. whole_archive_flag_spec='$convenience'
  7815. fi
  7816. archive_cmds_need_lc=yes
  7817. # This is similar to how AIX traditionally builds its shared libraries.
  7818. 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'
  7819. fi
  7820. fi
  7821. ;;
  7822. amigaos*)
  7823. case $host_cpu in
  7824. powerpc)
  7825. # see comment about AmigaOS4 .so support
  7826. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  7827. archive_expsym_cmds=''
  7828. ;;
  7829. m68k)
  7830. 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)'
  7831. hardcode_libdir_flag_spec='-L$libdir'
  7832. hardcode_minus_L=yes
  7833. ;;
  7834. esac
  7835. ;;
  7836. bsdi[45]*)
  7837. export_dynamic_flag_spec=-rdynamic
  7838. ;;
  7839. cygwin* | mingw* | pw32* | cegcc*)
  7840. # When not using gcc, we currently assume that we are using
  7841. # Microsoft Visual C++.
  7842. # hardcode_libdir_flag_spec is actually meaningless, as there is
  7843. # no search path for DLLs.
  7844. case $cc_basename in
  7845. cl*)
  7846. # Native MSVC
  7847. hardcode_libdir_flag_spec=' '
  7848. allow_undefined_flag=unsupported
  7849. always_export_symbols=yes
  7850. file_list_spec='@'
  7851. # Tell ltmain to make .lib files, not .a files.
  7852. libext=lib
  7853. # Tell ltmain to make .dll files, not .so files.
  7854. shrext_cmds=".dll"
  7855. # FIXME: Setting linknames here is a bad hack.
  7856. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  7857. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  7858. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  7859. else
  7860. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  7861. fi~
  7862. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  7863. linknames='
  7864. # The linker will not automatically build a static lib if we build a DLL.
  7865. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  7866. enable_shared_with_static_runtimes=yes
  7867. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  7868. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  7869. # Don't use ranlib
  7870. old_postinstall_cmds='chmod 644 $oldlib'
  7871. postlink_cmds='lt_outputfile="@OUTPUT@"~
  7872. lt_tool_outputfile="@TOOL_OUTPUT@"~
  7873. case $lt_outputfile in
  7874. *.exe|*.EXE) ;;
  7875. *)
  7876. lt_outputfile="$lt_outputfile.exe"
  7877. lt_tool_outputfile="$lt_tool_outputfile.exe"
  7878. ;;
  7879. esac~
  7880. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  7881. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  7882. $RM "$lt_outputfile.manifest";
  7883. fi'
  7884. ;;
  7885. *)
  7886. # Assume MSVC wrapper
  7887. hardcode_libdir_flag_spec=' '
  7888. allow_undefined_flag=unsupported
  7889. # Tell ltmain to make .lib files, not .a files.
  7890. libext=lib
  7891. # Tell ltmain to make .dll files, not .so files.
  7892. shrext_cmds=".dll"
  7893. # FIXME: Setting linknames here is a bad hack.
  7894. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  7895. # The linker will automatically build a .lib file if we build a DLL.
  7896. old_archive_from_new_cmds='true'
  7897. # FIXME: Should let the user specify the lib program.
  7898. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  7899. enable_shared_with_static_runtimes=yes
  7900. ;;
  7901. esac
  7902. ;;
  7903. darwin* | rhapsody*)
  7904. archive_cmds_need_lc=no
  7905. hardcode_direct=no
  7906. hardcode_automatic=yes
  7907. hardcode_shlibpath_var=unsupported
  7908. if test "$lt_cv_ld_force_load" = "yes"; then
  7909. 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\"`'
  7910. else
  7911. whole_archive_flag_spec=''
  7912. fi
  7913. link_all_deplibs=yes
  7914. allow_undefined_flag="$_lt_dar_allow_undefined"
  7915. case $cc_basename in
  7916. ifort*) _lt_dar_can_shared=yes ;;
  7917. *) _lt_dar_can_shared=$GCC ;;
  7918. esac
  7919. if test "$_lt_dar_can_shared" = "yes"; then
  7920. output_verbose_link_cmd=func_echo_all
  7921. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  7922. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  7923. 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}"
  7924. 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}"
  7925. else
  7926. ld_shlibs=no
  7927. fi
  7928. ;;
  7929. dgux*)
  7930. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  7931. hardcode_libdir_flag_spec='-L$libdir'
  7932. hardcode_shlibpath_var=no
  7933. ;;
  7934. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  7935. # support. Future versions do this automatically, but an explicit c++rt0.o
  7936. # does not break anything, and helps significantly (at the cost of a little
  7937. # extra space).
  7938. freebsd2.2*)
  7939. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  7940. hardcode_libdir_flag_spec='-R$libdir'
  7941. hardcode_direct=yes
  7942. hardcode_shlibpath_var=no
  7943. ;;
  7944. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  7945. freebsd2.*)
  7946. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  7947. hardcode_direct=yes
  7948. hardcode_minus_L=yes
  7949. hardcode_shlibpath_var=no
  7950. ;;
  7951. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  7952. freebsd* | dragonfly*)
  7953. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  7954. hardcode_libdir_flag_spec='-R$libdir'
  7955. hardcode_direct=yes
  7956. hardcode_shlibpath_var=no
  7957. ;;
  7958. hpux9*)
  7959. if test "$GCC" = yes; then
  7960. 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'
  7961. else
  7962. 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'
  7963. fi
  7964. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7965. hardcode_libdir_separator=:
  7966. hardcode_direct=yes
  7967. # hardcode_minus_L: Not really in the search PATH,
  7968. # but as the default location of the library.
  7969. hardcode_minus_L=yes
  7970. export_dynamic_flag_spec='${wl}-E'
  7971. ;;
  7972. hpux10*)
  7973. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7974. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  7975. else
  7976. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  7977. fi
  7978. if test "$with_gnu_ld" = no; then
  7979. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  7980. hardcode_libdir_separator=:
  7981. hardcode_direct=yes
  7982. hardcode_direct_absolute=yes
  7983. export_dynamic_flag_spec='${wl}-E'
  7984. # hardcode_minus_L: Not really in the search PATH,
  7985. # but as the default location of the library.
  7986. hardcode_minus_L=yes
  7987. fi
  7988. ;;
  7989. hpux11*)
  7990. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  7991. case $host_cpu in
  7992. hppa*64*)
  7993. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  7994. ;;
  7995. ia64*)
  7996. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  7997. ;;
  7998. *)
  7999. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8000. ;;
  8001. esac
  8002. else
  8003. case $host_cpu in
  8004. hppa*64*)
  8005. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8006. ;;
  8007. ia64*)
  8008. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8009. ;;
  8010. *)
  8011. # Older versions of the 11.00 compiler do not understand -b yet
  8012. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8013. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8014. $as_echo_n "checking if $CC understands -b... " >&6; }
  8015. if ${lt_cv_prog_compiler__b+:} false; then :
  8016. $as_echo_n "(cached) " >&6
  8017. else
  8018. lt_cv_prog_compiler__b=no
  8019. save_LDFLAGS="$LDFLAGS"
  8020. LDFLAGS="$LDFLAGS -b"
  8021. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8022. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8023. # The linker can only warn and ignore the option if not recognized
  8024. # So say no if there are warnings
  8025. if test -s conftest.err; then
  8026. # Append any errors to the config.log.
  8027. cat conftest.err 1>&5
  8028. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8029. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8030. if diff conftest.exp conftest.er2 >/dev/null; then
  8031. lt_cv_prog_compiler__b=yes
  8032. fi
  8033. else
  8034. lt_cv_prog_compiler__b=yes
  8035. fi
  8036. fi
  8037. $RM -r conftest*
  8038. LDFLAGS="$save_LDFLAGS"
  8039. fi
  8040. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8041. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8042. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8043. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8044. else
  8045. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8046. fi
  8047. ;;
  8048. esac
  8049. fi
  8050. if test "$with_gnu_ld" = no; then
  8051. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8052. hardcode_libdir_separator=:
  8053. case $host_cpu in
  8054. hppa*64*|ia64*)
  8055. hardcode_direct=no
  8056. hardcode_shlibpath_var=no
  8057. ;;
  8058. *)
  8059. hardcode_direct=yes
  8060. hardcode_direct_absolute=yes
  8061. export_dynamic_flag_spec='${wl}-E'
  8062. # hardcode_minus_L: Not really in the search PATH,
  8063. # but as the default location of the library.
  8064. hardcode_minus_L=yes
  8065. ;;
  8066. esac
  8067. fi
  8068. ;;
  8069. irix5* | irix6* | nonstopux*)
  8070. if test "$GCC" = yes; then
  8071. 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'
  8072. # Try to use the -exported_symbol ld option, if it does not
  8073. # work, assume that -exports_file does not work either and
  8074. # implicitly export all symbols.
  8075. # This should be the same for all languages, so no per-tag cache variable.
  8076. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8077. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8078. if ${lt_cv_irix_exported_symbol+:} false; then :
  8079. $as_echo_n "(cached) " >&6
  8080. else
  8081. save_LDFLAGS="$LDFLAGS"
  8082. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8083. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8084. /* end confdefs.h. */
  8085. int foo (void) { return 0; }
  8086. _ACEOF
  8087. if ac_fn_c_try_link "$LINENO"; then :
  8088. lt_cv_irix_exported_symbol=yes
  8089. else
  8090. lt_cv_irix_exported_symbol=no
  8091. fi
  8092. rm -f core conftest.err conftest.$ac_objext \
  8093. conftest$ac_exeext conftest.$ac_ext
  8094. LDFLAGS="$save_LDFLAGS"
  8095. fi
  8096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8097. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8098. if test "$lt_cv_irix_exported_symbol" = yes; then
  8099. 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'
  8100. fi
  8101. else
  8102. 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'
  8103. 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'
  8104. fi
  8105. archive_cmds_need_lc='no'
  8106. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8107. hardcode_libdir_separator=:
  8108. inherit_rpath=yes
  8109. link_all_deplibs=yes
  8110. ;;
  8111. netbsd* | netbsdelf*-gnu)
  8112. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8113. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8114. else
  8115. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8116. fi
  8117. hardcode_libdir_flag_spec='-R$libdir'
  8118. hardcode_direct=yes
  8119. hardcode_shlibpath_var=no
  8120. ;;
  8121. newsos6)
  8122. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8123. hardcode_direct=yes
  8124. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8125. hardcode_libdir_separator=:
  8126. hardcode_shlibpath_var=no
  8127. ;;
  8128. *nto* | *qnx*)
  8129. ;;
  8130. openbsd*)
  8131. if test -f /usr/libexec/ld.so; then
  8132. hardcode_direct=yes
  8133. hardcode_shlibpath_var=no
  8134. hardcode_direct_absolute=yes
  8135. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8136. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8137. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8138. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8139. export_dynamic_flag_spec='${wl}-E'
  8140. else
  8141. case $host_os in
  8142. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8143. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8144. hardcode_libdir_flag_spec='-R$libdir'
  8145. ;;
  8146. *)
  8147. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8148. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8149. ;;
  8150. esac
  8151. fi
  8152. else
  8153. ld_shlibs=no
  8154. fi
  8155. ;;
  8156. os2*)
  8157. hardcode_libdir_flag_spec='-L$libdir'
  8158. hardcode_minus_L=yes
  8159. allow_undefined_flag=unsupported
  8160. 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'
  8161. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8162. ;;
  8163. osf3*)
  8164. if test "$GCC" = yes; then
  8165. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8166. 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'
  8167. else
  8168. allow_undefined_flag=' -expect_unresolved \*'
  8169. 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'
  8170. fi
  8171. archive_cmds_need_lc='no'
  8172. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8173. hardcode_libdir_separator=:
  8174. ;;
  8175. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8176. if test "$GCC" = yes; then
  8177. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8178. 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'
  8179. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8180. else
  8181. allow_undefined_flag=' -expect_unresolved \*'
  8182. 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'
  8183. 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~
  8184. $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'
  8185. # Both c and cxx compiler support -rpath directly
  8186. hardcode_libdir_flag_spec='-rpath $libdir'
  8187. fi
  8188. archive_cmds_need_lc='no'
  8189. hardcode_libdir_separator=:
  8190. ;;
  8191. solaris*)
  8192. no_undefined_flag=' -z defs'
  8193. if test "$GCC" = yes; then
  8194. wlarc='${wl}'
  8195. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8196. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8197. $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'
  8198. else
  8199. case `$CC -V 2>&1` in
  8200. *"Compilers 5.0"*)
  8201. wlarc=''
  8202. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8203. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8204. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8205. ;;
  8206. *)
  8207. wlarc='${wl}'
  8208. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8209. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8210. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8211. ;;
  8212. esac
  8213. fi
  8214. hardcode_libdir_flag_spec='-R$libdir'
  8215. hardcode_shlibpath_var=no
  8216. case $host_os in
  8217. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8218. *)
  8219. # The compiler driver will combine and reorder linker options,
  8220. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8221. # but is careful enough not to reorder.
  8222. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8223. if test "$GCC" = yes; then
  8224. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8225. else
  8226. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8227. fi
  8228. ;;
  8229. esac
  8230. link_all_deplibs=yes
  8231. ;;
  8232. sunos4*)
  8233. if test "x$host_vendor" = xsequent; then
  8234. # Use $CC to link under sequent, because it throws in some extra .o
  8235. # files that make .init and .fini sections work.
  8236. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8237. else
  8238. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  8239. fi
  8240. hardcode_libdir_flag_spec='-L$libdir'
  8241. hardcode_direct=yes
  8242. hardcode_minus_L=yes
  8243. hardcode_shlibpath_var=no
  8244. ;;
  8245. sysv4)
  8246. case $host_vendor in
  8247. sni)
  8248. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8249. hardcode_direct=yes # is this really true???
  8250. ;;
  8251. siemens)
  8252. ## LD is ld it makes a PLAMLIB
  8253. ## CC just makes a GrossModule.
  8254. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  8255. reload_cmds='$CC -r -o $output$reload_objs'
  8256. hardcode_direct=no
  8257. ;;
  8258. motorola)
  8259. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8260. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  8261. ;;
  8262. esac
  8263. runpath_var='LD_RUN_PATH'
  8264. hardcode_shlibpath_var=no
  8265. ;;
  8266. sysv4.3*)
  8267. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8268. hardcode_shlibpath_var=no
  8269. export_dynamic_flag_spec='-Bexport'
  8270. ;;
  8271. sysv4*MP*)
  8272. if test -d /usr/nec; then
  8273. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8274. hardcode_shlibpath_var=no
  8275. runpath_var=LD_RUN_PATH
  8276. hardcode_runpath_var=yes
  8277. ld_shlibs=yes
  8278. fi
  8279. ;;
  8280. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  8281. no_undefined_flag='${wl}-z,text'
  8282. archive_cmds_need_lc=no
  8283. hardcode_shlibpath_var=no
  8284. runpath_var='LD_RUN_PATH'
  8285. if test "$GCC" = yes; then
  8286. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8287. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8288. else
  8289. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8290. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8291. fi
  8292. ;;
  8293. sysv5* | sco3.2v5* | sco5v6*)
  8294. # Note: We can NOT use -z defs as we might desire, because we do not
  8295. # link with -lc, and that would cause any symbols used from libc to
  8296. # always be unresolved, which means just about no library would
  8297. # ever link correctly. If we're not using GNU ld we use -z text
  8298. # though, which does catch some bad symbols but isn't as heavy-handed
  8299. # as -z defs.
  8300. no_undefined_flag='${wl}-z,text'
  8301. allow_undefined_flag='${wl}-z,nodefs'
  8302. archive_cmds_need_lc=no
  8303. hardcode_shlibpath_var=no
  8304. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  8305. hardcode_libdir_separator=':'
  8306. link_all_deplibs=yes
  8307. export_dynamic_flag_spec='${wl}-Bexport'
  8308. runpath_var='LD_RUN_PATH'
  8309. if test "$GCC" = yes; then
  8310. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8311. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8312. else
  8313. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8314. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  8315. fi
  8316. ;;
  8317. uts4*)
  8318. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8319. hardcode_libdir_flag_spec='-L$libdir'
  8320. hardcode_shlibpath_var=no
  8321. ;;
  8322. *)
  8323. ld_shlibs=no
  8324. ;;
  8325. esac
  8326. if test x$host_vendor = xsni; then
  8327. case $host in
  8328. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  8329. export_dynamic_flag_spec='${wl}-Blargedynsym'
  8330. ;;
  8331. esac
  8332. fi
  8333. fi
  8334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  8335. $as_echo "$ld_shlibs" >&6; }
  8336. test "$ld_shlibs" = no && can_build_shared=no
  8337. with_gnu_ld=$with_gnu_ld
  8338. #
  8339. # Do we need to explicitly link libc?
  8340. #
  8341. case "x$archive_cmds_need_lc" in
  8342. x|xyes)
  8343. # Assume -lc should be added
  8344. archive_cmds_need_lc=yes
  8345. if test "$enable_shared" = yes && test "$GCC" = yes; then
  8346. case $archive_cmds in
  8347. *'~'*)
  8348. # FIXME: we may have to deal with multi-command sequences.
  8349. ;;
  8350. '$CC '*)
  8351. # Test whether the compiler implicitly links with -lc since on some
  8352. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  8353. # to ld, don't add -lc before -lgcc.
  8354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  8355. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  8356. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  8357. $as_echo_n "(cached) " >&6
  8358. else
  8359. $RM conftest*
  8360. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8361. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  8362. (eval $ac_compile) 2>&5
  8363. ac_status=$?
  8364. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8365. test $ac_status = 0; } 2>conftest.err; then
  8366. soname=conftest
  8367. lib=conftest
  8368. libobjs=conftest.$ac_objext
  8369. deplibs=
  8370. wl=$lt_prog_compiler_wl
  8371. pic_flag=$lt_prog_compiler_pic
  8372. compiler_flags=-v
  8373. linker_flags=-v
  8374. verstring=
  8375. output_objdir=.
  8376. libname=conftest
  8377. lt_save_allow_undefined_flag=$allow_undefined_flag
  8378. allow_undefined_flag=
  8379. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  8380. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  8381. ac_status=$?
  8382. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  8383. test $ac_status = 0; }
  8384. then
  8385. lt_cv_archive_cmds_need_lc=no
  8386. else
  8387. lt_cv_archive_cmds_need_lc=yes
  8388. fi
  8389. allow_undefined_flag=$lt_save_allow_undefined_flag
  8390. else
  8391. cat conftest.err 1>&5
  8392. fi
  8393. $RM conftest*
  8394. fi
  8395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  8396. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  8397. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  8398. ;;
  8399. esac
  8400. fi
  8401. ;;
  8402. esac
  8403. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  8404. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  8405. if test "$GCC" = yes; then
  8406. case $host_os in
  8407. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  8408. *) lt_awk_arg="/^libraries:/" ;;
  8409. esac
  8410. case $host_os in
  8411. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  8412. *) lt_sed_strip_eq="s,=/,/,g" ;;
  8413. esac
  8414. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  8415. case $lt_search_path_spec in
  8416. *\;*)
  8417. # if the path contains ";" then we assume it to be the separator
  8418. # otherwise default to the standard path separator (i.e. ":") - it is
  8419. # assumed that no part of a normal pathname contains ";" but that should
  8420. # okay in the real world where ";" in dirpaths is itself problematic.
  8421. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  8422. ;;
  8423. *)
  8424. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  8425. ;;
  8426. esac
  8427. # Ok, now we have the path, separated by spaces, we can step through it
  8428. # and add multilib dir if necessary.
  8429. lt_tmp_lt_search_path_spec=
  8430. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  8431. for lt_sys_path in $lt_search_path_spec; do
  8432. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  8433. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  8434. else
  8435. test -d "$lt_sys_path" && \
  8436. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  8437. fi
  8438. done
  8439. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  8440. BEGIN {RS=" "; FS="/|\n";} {
  8441. lt_foo="";
  8442. lt_count=0;
  8443. for (lt_i = NF; lt_i > 0; lt_i--) {
  8444. if ($lt_i != "" && $lt_i != ".") {
  8445. if ($lt_i == "..") {
  8446. lt_count++;
  8447. } else {
  8448. if (lt_count == 0) {
  8449. lt_foo="/" $lt_i lt_foo;
  8450. } else {
  8451. lt_count--;
  8452. }
  8453. }
  8454. }
  8455. }
  8456. if (lt_foo != "") { lt_freq[lt_foo]++; }
  8457. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  8458. }'`
  8459. # AWK program above erroneously prepends '/' to C:/dos/paths
  8460. # for these hosts.
  8461. case $host_os in
  8462. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  8463. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  8464. esac
  8465. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  8466. else
  8467. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  8468. fi
  8469. library_names_spec=
  8470. libname_spec='lib$name'
  8471. soname_spec=
  8472. shrext_cmds=".so"
  8473. postinstall_cmds=
  8474. postuninstall_cmds=
  8475. finish_cmds=
  8476. finish_eval=
  8477. shlibpath_var=
  8478. shlibpath_overrides_runpath=unknown
  8479. version_type=none
  8480. dynamic_linker="$host_os ld.so"
  8481. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  8482. need_lib_prefix=unknown
  8483. hardcode_into_libs=no
  8484. # when you set need_version to no, make sure it does not cause -set_version
  8485. # flags to be left without arguments
  8486. need_version=unknown
  8487. case $host_os in
  8488. aix3*)
  8489. version_type=linux # correct to gnu/linux during the next big refactor
  8490. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  8491. shlibpath_var=LIBPATH
  8492. # AIX 3 has no versioning support, so we append a major version to the name.
  8493. soname_spec='${libname}${release}${shared_ext}$major'
  8494. ;;
  8495. aix[4-9]*)
  8496. version_type=linux # correct to gnu/linux during the next big refactor
  8497. need_lib_prefix=no
  8498. need_version=no
  8499. hardcode_into_libs=yes
  8500. if test "$host_cpu" = ia64; then
  8501. # AIX 5 supports IA64
  8502. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  8503. shlibpath_var=LD_LIBRARY_PATH
  8504. else
  8505. # With GCC up to 2.95.x, collect2 would create an import file
  8506. # for dependence libraries. The import file would start with
  8507. # the line `#! .'. This would cause the generated library to
  8508. # depend on `.', always an invalid library. This was fixed in
  8509. # development snapshots of GCC prior to 3.0.
  8510. case $host_os in
  8511. aix4 | aix4.[01] | aix4.[01].*)
  8512. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  8513. echo ' yes '
  8514. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  8515. :
  8516. else
  8517. can_build_shared=no
  8518. fi
  8519. ;;
  8520. esac
  8521. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  8522. # soname into executable. Probably we can add versioning support to
  8523. # collect2, so additional links can be useful in future.
  8524. if test "$aix_use_runtimelinking" = yes; then
  8525. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  8526. # instead of lib<name>.a to let people know that these are not
  8527. # typical AIX shared libraries.
  8528. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8529. else
  8530. # We preserve .a as extension for shared libraries through AIX4.2
  8531. # and later when we are not doing run time linking.
  8532. library_names_spec='${libname}${release}.a $libname.a'
  8533. soname_spec='${libname}${release}${shared_ext}$major'
  8534. fi
  8535. shlibpath_var=LIBPATH
  8536. fi
  8537. ;;
  8538. amigaos*)
  8539. case $host_cpu in
  8540. powerpc)
  8541. # Since July 2007 AmigaOS4 officially supports .so libraries.
  8542. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  8543. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8544. ;;
  8545. m68k)
  8546. library_names_spec='$libname.ixlibrary $libname.a'
  8547. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  8548. 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'
  8549. ;;
  8550. esac
  8551. ;;
  8552. beos*)
  8553. library_names_spec='${libname}${shared_ext}'
  8554. dynamic_linker="$host_os ld.so"
  8555. shlibpath_var=LIBRARY_PATH
  8556. ;;
  8557. bsdi[45]*)
  8558. version_type=linux # correct to gnu/linux during the next big refactor
  8559. need_version=no
  8560. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8561. soname_spec='${libname}${release}${shared_ext}$major'
  8562. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  8563. shlibpath_var=LD_LIBRARY_PATH
  8564. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  8565. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  8566. # the default ld.so.conf also contains /usr/contrib/lib and
  8567. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  8568. # libtool to hard-code these into programs
  8569. ;;
  8570. cygwin* | mingw* | pw32* | cegcc*)
  8571. version_type=windows
  8572. shrext_cmds=".dll"
  8573. need_version=no
  8574. need_lib_prefix=no
  8575. case $GCC,$cc_basename in
  8576. yes,*)
  8577. # gcc
  8578. library_names_spec='$libname.dll.a'
  8579. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8580. postinstall_cmds='base_file=`basename \${file}`~
  8581. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8582. dldir=$destdir/`dirname \$dlpath`~
  8583. test -d \$dldir || mkdir -p \$dldir~
  8584. $install_prog $dir/$dlname \$dldir/$dlname~
  8585. chmod a+x \$dldir/$dlname~
  8586. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  8587. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  8588. fi'
  8589. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8590. dlpath=$dir/\$dldll~
  8591. $RM \$dlpath'
  8592. shlibpath_overrides_runpath=yes
  8593. case $host_os in
  8594. cygwin*)
  8595. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  8596. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8597. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  8598. ;;
  8599. mingw* | cegcc*)
  8600. # MinGW DLLs use traditional 'lib' prefix
  8601. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8602. ;;
  8603. pw32*)
  8604. # pw32 DLLs use 'pw' prefix rather than 'lib'
  8605. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8606. ;;
  8607. esac
  8608. dynamic_linker='Win32 ld.exe'
  8609. ;;
  8610. *,cl*)
  8611. # Native MSVC
  8612. libname_spec='$name'
  8613. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  8614. library_names_spec='${libname}.dll.lib'
  8615. case $build_os in
  8616. mingw*)
  8617. sys_lib_search_path_spec=
  8618. lt_save_ifs=$IFS
  8619. IFS=';'
  8620. for lt_path in $LIB
  8621. do
  8622. IFS=$lt_save_ifs
  8623. # Let DOS variable expansion print the short 8.3 style file name.
  8624. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  8625. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  8626. done
  8627. IFS=$lt_save_ifs
  8628. # Convert to MSYS style.
  8629. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  8630. ;;
  8631. cygwin*)
  8632. # Convert to unix form, then to dos form, then back to unix form
  8633. # but this time dos style (no spaces!) so that the unix form looks
  8634. # like /cygdrive/c/PROGRA~1:/cygdr...
  8635. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  8636. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  8637. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8638. ;;
  8639. *)
  8640. sys_lib_search_path_spec="$LIB"
  8641. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  8642. # It is most probably a Windows format PATH.
  8643. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  8644. else
  8645. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  8646. fi
  8647. # FIXME: find the short name or the path components, as spaces are
  8648. # common. (e.g. "Program Files" -> "PROGRA~1")
  8649. ;;
  8650. esac
  8651. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  8652. postinstall_cmds='base_file=`basename \${file}`~
  8653. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  8654. dldir=$destdir/`dirname \$dlpath`~
  8655. test -d \$dldir || mkdir -p \$dldir~
  8656. $install_prog $dir/$dlname \$dldir/$dlname'
  8657. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  8658. dlpath=$dir/\$dldll~
  8659. $RM \$dlpath'
  8660. shlibpath_overrides_runpath=yes
  8661. dynamic_linker='Win32 link.exe'
  8662. ;;
  8663. *)
  8664. # Assume MSVC wrapper
  8665. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  8666. dynamic_linker='Win32 ld.exe'
  8667. ;;
  8668. esac
  8669. # FIXME: first we should search . and the directory the executable is in
  8670. shlibpath_var=PATH
  8671. ;;
  8672. darwin* | rhapsody*)
  8673. dynamic_linker="$host_os dyld"
  8674. version_type=darwin
  8675. need_lib_prefix=no
  8676. need_version=no
  8677. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  8678. soname_spec='${libname}${release}${major}$shared_ext'
  8679. shlibpath_overrides_runpath=yes
  8680. shlibpath_var=DYLD_LIBRARY_PATH
  8681. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  8682. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  8683. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  8684. ;;
  8685. dgux*)
  8686. version_type=linux # correct to gnu/linux during the next big refactor
  8687. need_lib_prefix=no
  8688. need_version=no
  8689. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  8690. soname_spec='${libname}${release}${shared_ext}$major'
  8691. shlibpath_var=LD_LIBRARY_PATH
  8692. ;;
  8693. freebsd* | dragonfly*)
  8694. # DragonFly does not have aout. When/if they implement a new
  8695. # versioning mechanism, adjust this.
  8696. if test -x /usr/bin/objformat; then
  8697. objformat=`/usr/bin/objformat`
  8698. else
  8699. case $host_os in
  8700. freebsd[23].*) objformat=aout ;;
  8701. *) objformat=elf ;;
  8702. esac
  8703. fi
  8704. version_type=freebsd-$objformat
  8705. case $version_type in
  8706. freebsd-elf*)
  8707. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  8708. need_version=no
  8709. need_lib_prefix=no
  8710. ;;
  8711. freebsd-*)
  8712. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  8713. need_version=yes
  8714. ;;
  8715. esac
  8716. shlibpath_var=LD_LIBRARY_PATH
  8717. case $host_os in
  8718. freebsd2.*)
  8719. shlibpath_overrides_runpath=yes
  8720. ;;
  8721. freebsd3.[01]* | freebsdelf3.[01]*)
  8722. shlibpath_overrides_runpath=yes
  8723. hardcode_into_libs=yes
  8724. ;;
  8725. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  8726. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  8727. shlibpath_overrides_runpath=no
  8728. hardcode_into_libs=yes
  8729. ;;
  8730. *) # from 4.6 on, and DragonFly
  8731. shlibpath_overrides_runpath=yes
  8732. hardcode_into_libs=yes
  8733. ;;
  8734. esac
  8735. ;;
  8736. haiku*)
  8737. version_type=linux # correct to gnu/linux during the next big refactor
  8738. need_lib_prefix=no
  8739. need_version=no
  8740. dynamic_linker="$host_os runtime_loader"
  8741. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  8742. soname_spec='${libname}${release}${shared_ext}$major'
  8743. shlibpath_var=LIBRARY_PATH
  8744. shlibpath_overrides_runpath=yes
  8745. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  8746. hardcode_into_libs=yes
  8747. ;;
  8748. hpux9* | hpux10* | hpux11*)
  8749. # Give a soname corresponding to the major version so that dld.sl refuses to
  8750. # link against other versions.
  8751. version_type=sunos
  8752. need_lib_prefix=no
  8753. need_version=no
  8754. case $host_cpu in
  8755. ia64*)
  8756. shrext_cmds='.so'
  8757. hardcode_into_libs=yes
  8758. dynamic_linker="$host_os dld.so"
  8759. shlibpath_var=LD_LIBRARY_PATH
  8760. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8761. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8762. soname_spec='${libname}${release}${shared_ext}$major'
  8763. if test "X$HPUX_IA64_MODE" = X32; then
  8764. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  8765. else
  8766. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  8767. fi
  8768. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8769. ;;
  8770. hppa*64*)
  8771. shrext_cmds='.sl'
  8772. hardcode_into_libs=yes
  8773. dynamic_linker="$host_os dld.sl"
  8774. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  8775. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  8776. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8777. soname_spec='${libname}${release}${shared_ext}$major'
  8778. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  8779. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  8780. ;;
  8781. *)
  8782. shrext_cmds='.sl'
  8783. dynamic_linker="$host_os dld.sl"
  8784. shlibpath_var=SHLIB_PATH
  8785. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  8786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8787. soname_spec='${libname}${release}${shared_ext}$major'
  8788. ;;
  8789. esac
  8790. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  8791. postinstall_cmds='chmod 555 $lib'
  8792. # or fails outright, so override atomically:
  8793. install_override_mode=555
  8794. ;;
  8795. interix[3-9]*)
  8796. version_type=linux # correct to gnu/linux during the next big refactor
  8797. need_lib_prefix=no
  8798. need_version=no
  8799. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8800. soname_spec='${libname}${release}${shared_ext}$major'
  8801. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  8802. shlibpath_var=LD_LIBRARY_PATH
  8803. shlibpath_overrides_runpath=no
  8804. hardcode_into_libs=yes
  8805. ;;
  8806. irix5* | irix6* | nonstopux*)
  8807. case $host_os in
  8808. nonstopux*) version_type=nonstopux ;;
  8809. *)
  8810. if test "$lt_cv_prog_gnu_ld" = yes; then
  8811. version_type=linux # correct to gnu/linux during the next big refactor
  8812. else
  8813. version_type=irix
  8814. fi ;;
  8815. esac
  8816. need_lib_prefix=no
  8817. need_version=no
  8818. soname_spec='${libname}${release}${shared_ext}$major'
  8819. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  8820. case $host_os in
  8821. irix5* | nonstopux*)
  8822. libsuff= shlibsuff=
  8823. ;;
  8824. *)
  8825. case $LD in # libtool.m4 will add one of these switches to LD
  8826. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  8827. libsuff= shlibsuff= libmagic=32-bit;;
  8828. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  8829. libsuff=32 shlibsuff=N32 libmagic=N32;;
  8830. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  8831. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  8832. *) libsuff= shlibsuff= libmagic=never-match;;
  8833. esac
  8834. ;;
  8835. esac
  8836. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  8837. shlibpath_overrides_runpath=no
  8838. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  8839. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  8840. hardcode_into_libs=yes
  8841. ;;
  8842. # No shared lib support for Linux oldld, aout, or coff.
  8843. linux*oldld* | linux*aout* | linux*coff*)
  8844. dynamic_linker=no
  8845. ;;
  8846. # This must be glibc/ELF.
  8847. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
  8848. version_type=linux # correct to gnu/linux during the next big refactor
  8849. need_lib_prefix=no
  8850. need_version=no
  8851. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8852. soname_spec='${libname}${release}${shared_ext}$major'
  8853. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  8854. shlibpath_var=LD_LIBRARY_PATH
  8855. shlibpath_overrides_runpath=no
  8856. # Some binutils ld are patched to set DT_RUNPATH
  8857. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  8858. $as_echo_n "(cached) " >&6
  8859. else
  8860. lt_cv_shlibpath_overrides_runpath=no
  8861. save_LDFLAGS=$LDFLAGS
  8862. save_libdir=$libdir
  8863. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  8864. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  8865. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8866. /* end confdefs.h. */
  8867. int
  8868. main ()
  8869. {
  8870. ;
  8871. return 0;
  8872. }
  8873. _ACEOF
  8874. if ac_fn_c_try_link "$LINENO"; then :
  8875. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  8876. lt_cv_shlibpath_overrides_runpath=yes
  8877. fi
  8878. fi
  8879. rm -f core conftest.err conftest.$ac_objext \
  8880. conftest$ac_exeext conftest.$ac_ext
  8881. LDFLAGS=$save_LDFLAGS
  8882. libdir=$save_libdir
  8883. fi
  8884. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  8885. # This implies no fast_install, which is unacceptable.
  8886. # Some rework will be needed to allow for fast_install
  8887. # before this can be enabled.
  8888. hardcode_into_libs=yes
  8889. # Append ld.so.conf contents to the search path
  8890. if test -f /etc/ld.so.conf; then
  8891. 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' ' '`
  8892. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  8893. fi
  8894. # We used to test for /lib/ld.so.1 and disable shared libraries on
  8895. # powerpc, because MkLinux only supported shared libraries with the
  8896. # GNU dynamic linker. Since this was broken with cross compilers,
  8897. # most powerpc-linux boxes support dynamic linking these days and
  8898. # people can always --disable-shared, the test was removed, and we
  8899. # assume the GNU/Linux dynamic linker is in use.
  8900. dynamic_linker='GNU/Linux ld.so'
  8901. ;;
  8902. netbsdelf*-gnu)
  8903. version_type=linux
  8904. need_lib_prefix=no
  8905. need_version=no
  8906. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8907. soname_spec='${libname}${release}${shared_ext}$major'
  8908. shlibpath_var=LD_LIBRARY_PATH
  8909. shlibpath_overrides_runpath=no
  8910. hardcode_into_libs=yes
  8911. dynamic_linker='NetBSD ld.elf_so'
  8912. ;;
  8913. netbsd*)
  8914. version_type=sunos
  8915. need_lib_prefix=no
  8916. need_version=no
  8917. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8918. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8919. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8920. dynamic_linker='NetBSD (a.out) ld.so'
  8921. else
  8922. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  8923. soname_spec='${libname}${release}${shared_ext}$major'
  8924. dynamic_linker='NetBSD ld.elf_so'
  8925. fi
  8926. shlibpath_var=LD_LIBRARY_PATH
  8927. shlibpath_overrides_runpath=yes
  8928. hardcode_into_libs=yes
  8929. ;;
  8930. newsos6)
  8931. version_type=linux # correct to gnu/linux during the next big refactor
  8932. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8933. shlibpath_var=LD_LIBRARY_PATH
  8934. shlibpath_overrides_runpath=yes
  8935. ;;
  8936. *nto* | *qnx*)
  8937. version_type=qnx
  8938. need_lib_prefix=no
  8939. need_version=no
  8940. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8941. soname_spec='${libname}${release}${shared_ext}$major'
  8942. shlibpath_var=LD_LIBRARY_PATH
  8943. shlibpath_overrides_runpath=no
  8944. hardcode_into_libs=yes
  8945. dynamic_linker='ldqnx.so'
  8946. ;;
  8947. openbsd*)
  8948. version_type=sunos
  8949. sys_lib_dlsearch_path_spec="/usr/lib"
  8950. need_lib_prefix=no
  8951. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  8952. case $host_os in
  8953. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  8954. *) need_version=no ;;
  8955. esac
  8956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  8957. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  8958. shlibpath_var=LD_LIBRARY_PATH
  8959. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8960. case $host_os in
  8961. openbsd2.[89] | openbsd2.[89].*)
  8962. shlibpath_overrides_runpath=no
  8963. ;;
  8964. *)
  8965. shlibpath_overrides_runpath=yes
  8966. ;;
  8967. esac
  8968. else
  8969. shlibpath_overrides_runpath=yes
  8970. fi
  8971. ;;
  8972. os2*)
  8973. libname_spec='$name'
  8974. shrext_cmds=".dll"
  8975. need_lib_prefix=no
  8976. library_names_spec='$libname${shared_ext} $libname.a'
  8977. dynamic_linker='OS/2 ld.exe'
  8978. shlibpath_var=LIBPATH
  8979. ;;
  8980. osf3* | osf4* | osf5*)
  8981. version_type=osf
  8982. need_lib_prefix=no
  8983. need_version=no
  8984. soname_spec='${libname}${release}${shared_ext}$major'
  8985. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8986. shlibpath_var=LD_LIBRARY_PATH
  8987. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  8988. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  8989. ;;
  8990. rdos*)
  8991. dynamic_linker=no
  8992. ;;
  8993. solaris*)
  8994. version_type=linux # correct to gnu/linux during the next big refactor
  8995. need_lib_prefix=no
  8996. need_version=no
  8997. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  8998. soname_spec='${libname}${release}${shared_ext}$major'
  8999. shlibpath_var=LD_LIBRARY_PATH
  9000. shlibpath_overrides_runpath=yes
  9001. hardcode_into_libs=yes
  9002. # ldd complains unless libraries are executable
  9003. postinstall_cmds='chmod +x $lib'
  9004. ;;
  9005. sunos4*)
  9006. version_type=sunos
  9007. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9008. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9009. shlibpath_var=LD_LIBRARY_PATH
  9010. shlibpath_overrides_runpath=yes
  9011. if test "$with_gnu_ld" = yes; then
  9012. need_lib_prefix=no
  9013. fi
  9014. need_version=yes
  9015. ;;
  9016. sysv4 | sysv4.3*)
  9017. version_type=linux # correct to gnu/linux during the next big refactor
  9018. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9019. soname_spec='${libname}${release}${shared_ext}$major'
  9020. shlibpath_var=LD_LIBRARY_PATH
  9021. case $host_vendor in
  9022. sni)
  9023. shlibpath_overrides_runpath=no
  9024. need_lib_prefix=no
  9025. runpath_var=LD_RUN_PATH
  9026. ;;
  9027. siemens)
  9028. need_lib_prefix=no
  9029. ;;
  9030. motorola)
  9031. need_lib_prefix=no
  9032. need_version=no
  9033. shlibpath_overrides_runpath=no
  9034. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9035. ;;
  9036. esac
  9037. ;;
  9038. sysv4*MP*)
  9039. if test -d /usr/nec ;then
  9040. version_type=linux # correct to gnu/linux during the next big refactor
  9041. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9042. soname_spec='$libname${shared_ext}.$major'
  9043. shlibpath_var=LD_LIBRARY_PATH
  9044. fi
  9045. ;;
  9046. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9047. version_type=freebsd-elf
  9048. need_lib_prefix=no
  9049. need_version=no
  9050. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9051. soname_spec='${libname}${release}${shared_ext}$major'
  9052. shlibpath_var=LD_LIBRARY_PATH
  9053. shlibpath_overrides_runpath=yes
  9054. hardcode_into_libs=yes
  9055. if test "$with_gnu_ld" = yes; then
  9056. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9057. else
  9058. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9059. case $host_os in
  9060. sco3.2v5*)
  9061. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9062. ;;
  9063. esac
  9064. fi
  9065. sys_lib_dlsearch_path_spec='/usr/lib'
  9066. ;;
  9067. tpf*)
  9068. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9069. version_type=linux # correct to gnu/linux during the next big refactor
  9070. need_lib_prefix=no
  9071. need_version=no
  9072. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9073. shlibpath_var=LD_LIBRARY_PATH
  9074. shlibpath_overrides_runpath=no
  9075. hardcode_into_libs=yes
  9076. ;;
  9077. uts4*)
  9078. version_type=linux # correct to gnu/linux during the next big refactor
  9079. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9080. soname_spec='${libname}${release}${shared_ext}$major'
  9081. shlibpath_var=LD_LIBRARY_PATH
  9082. ;;
  9083. *)
  9084. dynamic_linker=no
  9085. ;;
  9086. esac
  9087. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9088. $as_echo "$dynamic_linker" >&6; }
  9089. test "$dynamic_linker" = no && can_build_shared=no
  9090. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9091. if test "$GCC" = yes; then
  9092. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9093. fi
  9094. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9095. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9096. fi
  9097. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9098. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9099. fi
  9100. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9101. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9102. hardcode_action=
  9103. if test -n "$hardcode_libdir_flag_spec" ||
  9104. test -n "$runpath_var" ||
  9105. test "X$hardcode_automatic" = "Xyes" ; then
  9106. # We can hardcode non-existent directories.
  9107. if test "$hardcode_direct" != no &&
  9108. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9109. # have to relink, otherwise we might link with an installed library
  9110. # when we should be linking with a yet-to-be-installed one
  9111. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9112. test "$hardcode_minus_L" != no; then
  9113. # Linking always hardcodes the temporary library directory.
  9114. hardcode_action=relink
  9115. else
  9116. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9117. hardcode_action=immediate
  9118. fi
  9119. else
  9120. # We cannot hardcode anything, or else we can only hardcode existing
  9121. # directories.
  9122. hardcode_action=unsupported
  9123. fi
  9124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9125. $as_echo "$hardcode_action" >&6; }
  9126. if test "$hardcode_action" = relink ||
  9127. test "$inherit_rpath" = yes; then
  9128. # Fast installation is not supported
  9129. enable_fast_install=no
  9130. elif test "$shlibpath_overrides_runpath" = yes ||
  9131. test "$enable_shared" = no; then
  9132. # Fast installation is not necessary
  9133. enable_fast_install=needless
  9134. fi
  9135. if test "x$enable_dlopen" != xyes; then
  9136. enable_dlopen=unknown
  9137. enable_dlopen_self=unknown
  9138. enable_dlopen_self_static=unknown
  9139. else
  9140. lt_cv_dlopen=no
  9141. lt_cv_dlopen_libs=
  9142. case $host_os in
  9143. beos*)
  9144. lt_cv_dlopen="load_add_on"
  9145. lt_cv_dlopen_libs=
  9146. lt_cv_dlopen_self=yes
  9147. ;;
  9148. mingw* | pw32* | cegcc*)
  9149. lt_cv_dlopen="LoadLibrary"
  9150. lt_cv_dlopen_libs=
  9151. ;;
  9152. cygwin*)
  9153. lt_cv_dlopen="dlopen"
  9154. lt_cv_dlopen_libs=
  9155. ;;
  9156. darwin*)
  9157. # if libdl is installed we need to link against it
  9158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9159. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9160. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9161. $as_echo_n "(cached) " >&6
  9162. else
  9163. ac_check_lib_save_LIBS=$LIBS
  9164. LIBS="-ldl $LIBS"
  9165. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9166. /* end confdefs.h. */
  9167. /* Override any GCC internal prototype to avoid an error.
  9168. Use char because int might match the return type of a GCC
  9169. builtin and then its argument prototype would still apply. */
  9170. #ifdef __cplusplus
  9171. extern "C"
  9172. #endif
  9173. char dlopen ();
  9174. int
  9175. main ()
  9176. {
  9177. return dlopen ();
  9178. ;
  9179. return 0;
  9180. }
  9181. _ACEOF
  9182. if ac_fn_c_try_link "$LINENO"; then :
  9183. ac_cv_lib_dl_dlopen=yes
  9184. else
  9185. ac_cv_lib_dl_dlopen=no
  9186. fi
  9187. rm -f core conftest.err conftest.$ac_objext \
  9188. conftest$ac_exeext conftest.$ac_ext
  9189. LIBS=$ac_check_lib_save_LIBS
  9190. fi
  9191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9192. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9193. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9194. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9195. else
  9196. lt_cv_dlopen="dyld"
  9197. lt_cv_dlopen_libs=
  9198. lt_cv_dlopen_self=yes
  9199. fi
  9200. ;;
  9201. *)
  9202. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9203. if test "x$ac_cv_func_shl_load" = xyes; then :
  9204. lt_cv_dlopen="shl_load"
  9205. else
  9206. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9207. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9208. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9209. $as_echo_n "(cached) " >&6
  9210. else
  9211. ac_check_lib_save_LIBS=$LIBS
  9212. LIBS="-ldld $LIBS"
  9213. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9214. /* end confdefs.h. */
  9215. /* Override any GCC internal prototype to avoid an error.
  9216. Use char because int might match the return type of a GCC
  9217. builtin and then its argument prototype would still apply. */
  9218. #ifdef __cplusplus
  9219. extern "C"
  9220. #endif
  9221. char shl_load ();
  9222. int
  9223. main ()
  9224. {
  9225. return shl_load ();
  9226. ;
  9227. return 0;
  9228. }
  9229. _ACEOF
  9230. if ac_fn_c_try_link "$LINENO"; then :
  9231. ac_cv_lib_dld_shl_load=yes
  9232. else
  9233. ac_cv_lib_dld_shl_load=no
  9234. fi
  9235. rm -f core conftest.err conftest.$ac_objext \
  9236. conftest$ac_exeext conftest.$ac_ext
  9237. LIBS=$ac_check_lib_save_LIBS
  9238. fi
  9239. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  9240. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  9241. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  9242. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  9243. else
  9244. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  9245. if test "x$ac_cv_func_dlopen" = xyes; then :
  9246. lt_cv_dlopen="dlopen"
  9247. else
  9248. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9249. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9250. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9251. $as_echo_n "(cached) " >&6
  9252. else
  9253. ac_check_lib_save_LIBS=$LIBS
  9254. LIBS="-ldl $LIBS"
  9255. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9256. /* end confdefs.h. */
  9257. /* Override any GCC internal prototype to avoid an error.
  9258. Use char because int might match the return type of a GCC
  9259. builtin and then its argument prototype would still apply. */
  9260. #ifdef __cplusplus
  9261. extern "C"
  9262. #endif
  9263. char dlopen ();
  9264. int
  9265. main ()
  9266. {
  9267. return dlopen ();
  9268. ;
  9269. return 0;
  9270. }
  9271. _ACEOF
  9272. if ac_fn_c_try_link "$LINENO"; then :
  9273. ac_cv_lib_dl_dlopen=yes
  9274. else
  9275. ac_cv_lib_dl_dlopen=no
  9276. fi
  9277. rm -f core conftest.err conftest.$ac_objext \
  9278. conftest$ac_exeext conftest.$ac_ext
  9279. LIBS=$ac_check_lib_save_LIBS
  9280. fi
  9281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9282. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9283. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9284. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9285. else
  9286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  9287. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  9288. if ${ac_cv_lib_svld_dlopen+:} false; then :
  9289. $as_echo_n "(cached) " >&6
  9290. else
  9291. ac_check_lib_save_LIBS=$LIBS
  9292. LIBS="-lsvld $LIBS"
  9293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9294. /* end confdefs.h. */
  9295. /* Override any GCC internal prototype to avoid an error.
  9296. Use char because int might match the return type of a GCC
  9297. builtin and then its argument prototype would still apply. */
  9298. #ifdef __cplusplus
  9299. extern "C"
  9300. #endif
  9301. char dlopen ();
  9302. int
  9303. main ()
  9304. {
  9305. return dlopen ();
  9306. ;
  9307. return 0;
  9308. }
  9309. _ACEOF
  9310. if ac_fn_c_try_link "$LINENO"; then :
  9311. ac_cv_lib_svld_dlopen=yes
  9312. else
  9313. ac_cv_lib_svld_dlopen=no
  9314. fi
  9315. rm -f core conftest.err conftest.$ac_objext \
  9316. conftest$ac_exeext conftest.$ac_ext
  9317. LIBS=$ac_check_lib_save_LIBS
  9318. fi
  9319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  9320. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  9321. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  9322. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  9323. else
  9324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  9325. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  9326. if ${ac_cv_lib_dld_dld_link+:} false; then :
  9327. $as_echo_n "(cached) " >&6
  9328. else
  9329. ac_check_lib_save_LIBS=$LIBS
  9330. LIBS="-ldld $LIBS"
  9331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9332. /* end confdefs.h. */
  9333. /* Override any GCC internal prototype to avoid an error.
  9334. Use char because int might match the return type of a GCC
  9335. builtin and then its argument prototype would still apply. */
  9336. #ifdef __cplusplus
  9337. extern "C"
  9338. #endif
  9339. char dld_link ();
  9340. int
  9341. main ()
  9342. {
  9343. return dld_link ();
  9344. ;
  9345. return 0;
  9346. }
  9347. _ACEOF
  9348. if ac_fn_c_try_link "$LINENO"; then :
  9349. ac_cv_lib_dld_dld_link=yes
  9350. else
  9351. ac_cv_lib_dld_dld_link=no
  9352. fi
  9353. rm -f core conftest.err conftest.$ac_objext \
  9354. conftest$ac_exeext conftest.$ac_ext
  9355. LIBS=$ac_check_lib_save_LIBS
  9356. fi
  9357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  9358. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  9359. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  9360. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  9361. fi
  9362. fi
  9363. fi
  9364. fi
  9365. fi
  9366. fi
  9367. ;;
  9368. esac
  9369. if test "x$lt_cv_dlopen" != xno; then
  9370. enable_dlopen=yes
  9371. else
  9372. enable_dlopen=no
  9373. fi
  9374. case $lt_cv_dlopen in
  9375. dlopen)
  9376. save_CPPFLAGS="$CPPFLAGS"
  9377. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  9378. save_LDFLAGS="$LDFLAGS"
  9379. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  9380. save_LIBS="$LIBS"
  9381. LIBS="$lt_cv_dlopen_libs $LIBS"
  9382. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  9383. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  9384. if ${lt_cv_dlopen_self+:} false; then :
  9385. $as_echo_n "(cached) " >&6
  9386. else
  9387. if test "$cross_compiling" = yes; then :
  9388. lt_cv_dlopen_self=cross
  9389. else
  9390. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9391. lt_status=$lt_dlunknown
  9392. cat > conftest.$ac_ext <<_LT_EOF
  9393. #line $LINENO "configure"
  9394. #include "confdefs.h"
  9395. #if HAVE_DLFCN_H
  9396. #include <dlfcn.h>
  9397. #endif
  9398. #include <stdio.h>
  9399. #ifdef RTLD_GLOBAL
  9400. # define LT_DLGLOBAL RTLD_GLOBAL
  9401. #else
  9402. # ifdef DL_GLOBAL
  9403. # define LT_DLGLOBAL DL_GLOBAL
  9404. # else
  9405. # define LT_DLGLOBAL 0
  9406. # endif
  9407. #endif
  9408. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9409. find out it does not work in some platform. */
  9410. #ifndef LT_DLLAZY_OR_NOW
  9411. # ifdef RTLD_LAZY
  9412. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9413. # else
  9414. # ifdef DL_LAZY
  9415. # define LT_DLLAZY_OR_NOW DL_LAZY
  9416. # else
  9417. # ifdef RTLD_NOW
  9418. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9419. # else
  9420. # ifdef DL_NOW
  9421. # define LT_DLLAZY_OR_NOW DL_NOW
  9422. # else
  9423. # define LT_DLLAZY_OR_NOW 0
  9424. # endif
  9425. # endif
  9426. # endif
  9427. # endif
  9428. #endif
  9429. /* When -fvisbility=hidden is used, assume the code has been annotated
  9430. correspondingly for the symbols needed. */
  9431. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9432. int fnord () __attribute__((visibility("default")));
  9433. #endif
  9434. int fnord () { return 42; }
  9435. int main ()
  9436. {
  9437. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9438. int status = $lt_dlunknown;
  9439. if (self)
  9440. {
  9441. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9442. else
  9443. {
  9444. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9445. else puts (dlerror ());
  9446. }
  9447. /* dlclose (self); */
  9448. }
  9449. else
  9450. puts (dlerror ());
  9451. return status;
  9452. }
  9453. _LT_EOF
  9454. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9455. (eval $ac_link) 2>&5
  9456. ac_status=$?
  9457. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9458. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9459. (./conftest; exit; ) >&5 2>/dev/null
  9460. lt_status=$?
  9461. case x$lt_status in
  9462. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  9463. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  9464. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  9465. esac
  9466. else :
  9467. # compilation failed
  9468. lt_cv_dlopen_self=no
  9469. fi
  9470. fi
  9471. rm -fr conftest*
  9472. fi
  9473. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  9474. $as_echo "$lt_cv_dlopen_self" >&6; }
  9475. if test "x$lt_cv_dlopen_self" = xyes; then
  9476. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  9477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  9478. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  9479. if ${lt_cv_dlopen_self_static+:} false; then :
  9480. $as_echo_n "(cached) " >&6
  9481. else
  9482. if test "$cross_compiling" = yes; then :
  9483. lt_cv_dlopen_self_static=cross
  9484. else
  9485. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  9486. lt_status=$lt_dlunknown
  9487. cat > conftest.$ac_ext <<_LT_EOF
  9488. #line $LINENO "configure"
  9489. #include "confdefs.h"
  9490. #if HAVE_DLFCN_H
  9491. #include <dlfcn.h>
  9492. #endif
  9493. #include <stdio.h>
  9494. #ifdef RTLD_GLOBAL
  9495. # define LT_DLGLOBAL RTLD_GLOBAL
  9496. #else
  9497. # ifdef DL_GLOBAL
  9498. # define LT_DLGLOBAL DL_GLOBAL
  9499. # else
  9500. # define LT_DLGLOBAL 0
  9501. # endif
  9502. #endif
  9503. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  9504. find out it does not work in some platform. */
  9505. #ifndef LT_DLLAZY_OR_NOW
  9506. # ifdef RTLD_LAZY
  9507. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  9508. # else
  9509. # ifdef DL_LAZY
  9510. # define LT_DLLAZY_OR_NOW DL_LAZY
  9511. # else
  9512. # ifdef RTLD_NOW
  9513. # define LT_DLLAZY_OR_NOW RTLD_NOW
  9514. # else
  9515. # ifdef DL_NOW
  9516. # define LT_DLLAZY_OR_NOW DL_NOW
  9517. # else
  9518. # define LT_DLLAZY_OR_NOW 0
  9519. # endif
  9520. # endif
  9521. # endif
  9522. # endif
  9523. #endif
  9524. /* When -fvisbility=hidden is used, assume the code has been annotated
  9525. correspondingly for the symbols needed. */
  9526. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  9527. int fnord () __attribute__((visibility("default")));
  9528. #endif
  9529. int fnord () { return 42; }
  9530. int main ()
  9531. {
  9532. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  9533. int status = $lt_dlunknown;
  9534. if (self)
  9535. {
  9536. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  9537. else
  9538. {
  9539. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  9540. else puts (dlerror ());
  9541. }
  9542. /* dlclose (self); */
  9543. }
  9544. else
  9545. puts (dlerror ());
  9546. return status;
  9547. }
  9548. _LT_EOF
  9549. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  9550. (eval $ac_link) 2>&5
  9551. ac_status=$?
  9552. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9553. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  9554. (./conftest; exit; ) >&5 2>/dev/null
  9555. lt_status=$?
  9556. case x$lt_status in
  9557. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  9558. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  9559. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  9560. esac
  9561. else :
  9562. # compilation failed
  9563. lt_cv_dlopen_self_static=no
  9564. fi
  9565. fi
  9566. rm -fr conftest*
  9567. fi
  9568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  9569. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  9570. fi
  9571. CPPFLAGS="$save_CPPFLAGS"
  9572. LDFLAGS="$save_LDFLAGS"
  9573. LIBS="$save_LIBS"
  9574. ;;
  9575. esac
  9576. case $lt_cv_dlopen_self in
  9577. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  9578. *) enable_dlopen_self=unknown ;;
  9579. esac
  9580. case $lt_cv_dlopen_self_static in
  9581. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  9582. *) enable_dlopen_self_static=unknown ;;
  9583. esac
  9584. fi
  9585. striplib=
  9586. old_striplib=
  9587. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  9588. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  9589. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  9590. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  9591. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  9592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9593. $as_echo "yes" >&6; }
  9594. else
  9595. # FIXME - insert some real tests, host_os isn't really good enough
  9596. case $host_os in
  9597. darwin*)
  9598. if test -n "$STRIP" ; then
  9599. striplib="$STRIP -x"
  9600. old_striplib="$STRIP -S"
  9601. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  9602. $as_echo "yes" >&6; }
  9603. else
  9604. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9605. $as_echo "no" >&6; }
  9606. fi
  9607. ;;
  9608. *)
  9609. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  9610. $as_echo "no" >&6; }
  9611. ;;
  9612. esac
  9613. fi
  9614. # Report which library types will actually be built
  9615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  9616. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  9617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  9618. $as_echo "$can_build_shared" >&6; }
  9619. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  9620. $as_echo_n "checking whether to build shared libraries... " >&6; }
  9621. test "$can_build_shared" = "no" && enable_shared=no
  9622. # On AIX, shared libraries and static libraries use the same namespace, and
  9623. # are all built from PIC.
  9624. case $host_os in
  9625. aix3*)
  9626. test "$enable_shared" = yes && enable_static=no
  9627. if test -n "$RANLIB"; then
  9628. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  9629. postinstall_cmds='$RANLIB $lib'
  9630. fi
  9631. ;;
  9632. aix[4-9]*)
  9633. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  9634. test "$enable_shared" = yes && enable_static=no
  9635. fi
  9636. ;;
  9637. esac
  9638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  9639. $as_echo "$enable_shared" >&6; }
  9640. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  9641. $as_echo_n "checking whether to build static libraries... " >&6; }
  9642. # Make sure either enable_shared or enable_static is yes.
  9643. test "$enable_shared" = yes || enable_static=yes
  9644. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  9645. $as_echo "$enable_static" >&6; }
  9646. fi
  9647. ac_ext=c
  9648. ac_cpp='$CPP $CPPFLAGS'
  9649. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  9650. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  9651. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  9652. CC="$lt_save_CC"
  9653. ac_config_commands="$ac_config_commands libtool"
  9654. # Only expand once:
  9655. ac_fn_c_check_func "$LINENO" "gethostbyaddr_r" "ac_cv_func_gethostbyaddr_r"
  9656. if test "x$ac_cv_func_gethostbyaddr_r" = xyes; then :
  9657. $as_echo "#define HAS_GETHOSTBYADDR_R 1" >>confdefs.h
  9658. fi
  9659. ac_fn_c_check_func "$LINENO" "gethostbyname_r" "ac_cv_func_gethostbyname_r"
  9660. if test "x$ac_cv_func_gethostbyname_r" = xyes; then :
  9661. $as_echo "#define HAS_GETHOSTBYNAME_R 1" >>confdefs.h
  9662. fi
  9663. ac_fn_c_check_func "$LINENO" "poll" "ac_cv_func_poll"
  9664. if test "x$ac_cv_func_poll" = xyes; then :
  9665. $as_echo "#define HAS_POLL 1" >>confdefs.h
  9666. fi
  9667. ac_fn_c_check_func "$LINENO" "fcntl" "ac_cv_func_fcntl"
  9668. if test "x$ac_cv_func_fcntl" = xyes; then :
  9669. $as_echo "#define HAS_FCNTL 1" >>confdefs.h
  9670. fi
  9671. ac_fn_c_check_func "$LINENO" "inet_pton" "ac_cv_func_inet_pton"
  9672. if test "x$ac_cv_func_inet_pton" = xyes; then :
  9673. $as_echo "#define HAS_INET_PTON 1" >>confdefs.h
  9674. fi
  9675. ac_fn_c_check_func "$LINENO" "inet_ntop" "ac_cv_func_inet_ntop"
  9676. if test "x$ac_cv_func_inet_ntop" = xyes; then :
  9677. $as_echo "#define HAS_INET_NTOP 1" >>confdefs.h
  9678. fi
  9679. ac_fn_c_check_member "$LINENO" "struct msghdr" "msg_flags" "ac_cv_member_struct_msghdr_msg_flags" "#include <sys/socket.h>
  9680. "
  9681. if test "x$ac_cv_member_struct_msghdr_msg_flags" = xyes; then :
  9682. $as_echo "#define HAS_MSGHDR_FLAGS 1" >>confdefs.h
  9683. fi
  9684. ac_fn_c_check_type "$LINENO" "socklen_t" "ac_cv_type_socklen_t" "#include <sys/types.h>
  9685. #include <sys/socket.h>
  9686. "
  9687. if test "x$ac_cv_type_socklen_t" = xyes; then :
  9688. $as_echo "#define HAS_SOCKLEN_T 1" >>confdefs.h
  9689. fi
  9690. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9691. /* end confdefs.h. */
  9692. #include </usr/include/sys/socket.h>
  9693. _ACEOF
  9694. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9695. $EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then :
  9696. $as_echo "#define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN" >>confdefs.h
  9697. fi
  9698. rm -f conftest*
  9699. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9700. /* end confdefs.h. */
  9701. #include <socket.h>
  9702. _ACEOF
  9703. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  9704. $EGREP "MSG_MAXIOVLEN" >/dev/null 2>&1; then :
  9705. $as_echo "#define ENET_BUFFER_MAXIMUM MSG_MAXIOVLEN" >>confdefs.h
  9706. fi
  9707. rm -f conftest*
  9708. ac_config_files="$ac_config_files Makefile libenet.pc"
  9709. cat >confcache <<\_ACEOF
  9710. # This file is a shell script that caches the results of configure
  9711. # tests run on this system so they can be shared between configure
  9712. # scripts and configure runs, see configure's option --config-cache.
  9713. # It is not useful on other systems. If it contains results you don't
  9714. # want to keep, you may remove or edit it.
  9715. #
  9716. # config.status only pays attention to the cache file if you give it
  9717. # the --recheck option to rerun configure.
  9718. #
  9719. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  9720. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  9721. # following values.
  9722. _ACEOF
  9723. # The following way of writing the cache mishandles newlines in values,
  9724. # but we know of no workaround that is simple, portable, and efficient.
  9725. # So, we kill variables containing newlines.
  9726. # Ultrix sh set writes to stderr and can't be redirected directly,
  9727. # and sets the high bit in the cache file unless we assign to the vars.
  9728. (
  9729. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  9730. eval ac_val=\$$ac_var
  9731. case $ac_val in #(
  9732. *${as_nl}*)
  9733. case $ac_var in #(
  9734. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  9735. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  9736. esac
  9737. case $ac_var in #(
  9738. _ | IFS | as_nl) ;; #(
  9739. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  9740. *) { eval $ac_var=; unset $ac_var;} ;;
  9741. esac ;;
  9742. esac
  9743. done
  9744. (set) 2>&1 |
  9745. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  9746. *${as_nl}ac_space=\ *)
  9747. # `set' does not quote correctly, so add quotes: double-quote
  9748. # substitution turns \\\\ into \\, and sed turns \\ into \.
  9749. sed -n \
  9750. "s/'/'\\\\''/g;
  9751. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  9752. ;; #(
  9753. *)
  9754. # `set' quotes correctly as required by POSIX, so do not add quotes.
  9755. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  9756. ;;
  9757. esac |
  9758. sort
  9759. ) |
  9760. sed '
  9761. /^ac_cv_env_/b end
  9762. t clear
  9763. :clear
  9764. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  9765. t end
  9766. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  9767. :end' >>confcache
  9768. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  9769. if test -w "$cache_file"; then
  9770. if test "x$cache_file" != "x/dev/null"; then
  9771. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  9772. $as_echo "$as_me: updating cache $cache_file" >&6;}
  9773. if test ! -f "$cache_file" || test -h "$cache_file"; then
  9774. cat confcache >"$cache_file"
  9775. else
  9776. case $cache_file in #(
  9777. */* | ?:*)
  9778. mv -f confcache "$cache_file"$$ &&
  9779. mv -f "$cache_file"$$ "$cache_file" ;; #(
  9780. *)
  9781. mv -f confcache "$cache_file" ;;
  9782. esac
  9783. fi
  9784. fi
  9785. else
  9786. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  9787. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  9788. fi
  9789. fi
  9790. rm -f confcache
  9791. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  9792. # Let make expand exec_prefix.
  9793. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  9794. # Transform confdefs.h into DEFS.
  9795. # Protect against shell expansion while executing Makefile rules.
  9796. # Protect against Makefile macro expansion.
  9797. #
  9798. # If the first sed substitution is executed (which looks for macros that
  9799. # take arguments), then branch to the quote section. Otherwise,
  9800. # look for a macro that doesn't take arguments.
  9801. ac_script='
  9802. :mline
  9803. /\\$/{
  9804. N
  9805. s,\\\n,,
  9806. b mline
  9807. }
  9808. t clear
  9809. :clear
  9810. s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
  9811. t quote
  9812. s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
  9813. t quote
  9814. b any
  9815. :quote
  9816. s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
  9817. s/\[/\\&/g
  9818. s/\]/\\&/g
  9819. s/\$/$$/g
  9820. H
  9821. :any
  9822. ${
  9823. g
  9824. s/^\n//
  9825. s/\n/ /g
  9826. p
  9827. }
  9828. '
  9829. DEFS=`sed -n "$ac_script" confdefs.h`
  9830. ac_libobjs=
  9831. ac_ltlibobjs=
  9832. U=
  9833. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  9834. # 1. Remove the extension, and $U if already installed.
  9835. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  9836. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  9837. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  9838. # will be set to the directory where LIBOBJS objects are built.
  9839. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  9840. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  9841. done
  9842. LIBOBJS=$ac_libobjs
  9843. LTLIBOBJS=$ac_ltlibobjs
  9844. if test -n "$EXEEXT"; then
  9845. am__EXEEXT_TRUE=
  9846. am__EXEEXT_FALSE='#'
  9847. else
  9848. am__EXEEXT_TRUE='#'
  9849. am__EXEEXT_FALSE=
  9850. fi
  9851. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  9852. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  9853. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9854. fi
  9855. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  9856. as_fn_error $? "conditional \"AMDEP\" was never defined.
  9857. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9858. fi
  9859. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  9860. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  9861. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  9862. fi
  9863. : "${CONFIG_STATUS=./config.status}"
  9864. ac_write_fail=0
  9865. ac_clean_files_save=$ac_clean_files
  9866. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  9867. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  9868. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  9869. as_write_fail=0
  9870. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  9871. #! $SHELL
  9872. # Generated by $as_me.
  9873. # Run this file to recreate the current configuration.
  9874. # Compiler output produced by configure, useful for debugging
  9875. # configure, is in config.log if it exists.
  9876. debug=false
  9877. ac_cs_recheck=false
  9878. ac_cs_silent=false
  9879. SHELL=\${CONFIG_SHELL-$SHELL}
  9880. export SHELL
  9881. _ASEOF
  9882. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  9883. ## -------------------- ##
  9884. ## M4sh Initialization. ##
  9885. ## -------------------- ##
  9886. # Be more Bourne compatible
  9887. DUALCASE=1; export DUALCASE # for MKS sh
  9888. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  9889. emulate sh
  9890. NULLCMD=:
  9891. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  9892. # is contrary to our usage. Disable this feature.
  9893. alias -g '${1+"$@"}'='"$@"'
  9894. setopt NO_GLOB_SUBST
  9895. else
  9896. case `(set -o) 2>/dev/null` in #(
  9897. *posix*) :
  9898. set -o posix ;; #(
  9899. *) :
  9900. ;;
  9901. esac
  9902. fi
  9903. as_nl='
  9904. '
  9905. export as_nl
  9906. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  9907. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  9908. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  9909. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  9910. # Prefer a ksh shell builtin over an external printf program on Solaris,
  9911. # but without wasting forks for bash or zsh.
  9912. if test -z "$BASH_VERSION$ZSH_VERSION" \
  9913. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  9914. as_echo='print -r --'
  9915. as_echo_n='print -rn --'
  9916. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  9917. as_echo='printf %s\n'
  9918. as_echo_n='printf %s'
  9919. else
  9920. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  9921. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  9922. as_echo_n='/usr/ucb/echo -n'
  9923. else
  9924. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  9925. as_echo_n_body='eval
  9926. arg=$1;
  9927. case $arg in #(
  9928. *"$as_nl"*)
  9929. expr "X$arg" : "X\\(.*\\)$as_nl";
  9930. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  9931. esac;
  9932. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  9933. '
  9934. export as_echo_n_body
  9935. as_echo_n='sh -c $as_echo_n_body as_echo'
  9936. fi
  9937. export as_echo_body
  9938. as_echo='sh -c $as_echo_body as_echo'
  9939. fi
  9940. # The user is always right.
  9941. if test "${PATH_SEPARATOR+set}" != set; then
  9942. PATH_SEPARATOR=:
  9943. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  9944. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  9945. PATH_SEPARATOR=';'
  9946. }
  9947. fi
  9948. # IFS
  9949. # We need space, tab and new line, in precisely that order. Quoting is
  9950. # there to prevent editors from complaining about space-tab.
  9951. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  9952. # splitting by setting IFS to empty value.)
  9953. IFS=" "" $as_nl"
  9954. # Find who we are. Look in the path if we contain no directory separator.
  9955. as_myself=
  9956. case $0 in #((
  9957. *[\\/]* ) as_myself=$0 ;;
  9958. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  9959. for as_dir in $PATH
  9960. do
  9961. IFS=$as_save_IFS
  9962. test -z "$as_dir" && as_dir=.
  9963. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  9964. done
  9965. IFS=$as_save_IFS
  9966. ;;
  9967. esac
  9968. # We did not find ourselves, most probably we were run as `sh COMMAND'
  9969. # in which case we are not to be found in the path.
  9970. if test "x$as_myself" = x; then
  9971. as_myself=$0
  9972. fi
  9973. if test ! -f "$as_myself"; then
  9974. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  9975. exit 1
  9976. fi
  9977. # Unset variables that we do not need and which cause bugs (e.g. in
  9978. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  9979. # suppresses any "Segmentation fault" message there. '((' could
  9980. # trigger a bug in pdksh 5.2.14.
  9981. for as_var in BASH_ENV ENV MAIL MAILPATH
  9982. do eval test x\${$as_var+set} = xset \
  9983. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  9984. done
  9985. PS1='$ '
  9986. PS2='> '
  9987. PS4='+ '
  9988. # NLS nuisances.
  9989. LC_ALL=C
  9990. export LC_ALL
  9991. LANGUAGE=C
  9992. export LANGUAGE
  9993. # CDPATH.
  9994. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  9995. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  9996. # ----------------------------------------
  9997. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  9998. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  9999. # script with STATUS, using 1 if that was 0.
  10000. as_fn_error ()
  10001. {
  10002. as_status=$1; test $as_status -eq 0 && as_status=1
  10003. if test "$4"; then
  10004. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  10005. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  10006. fi
  10007. $as_echo "$as_me: error: $2" >&2
  10008. as_fn_exit $as_status
  10009. } # as_fn_error
  10010. # as_fn_set_status STATUS
  10011. # -----------------------
  10012. # Set $? to STATUS, without forking.
  10013. as_fn_set_status ()
  10014. {
  10015. return $1
  10016. } # as_fn_set_status
  10017. # as_fn_exit STATUS
  10018. # -----------------
  10019. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  10020. as_fn_exit ()
  10021. {
  10022. set +e
  10023. as_fn_set_status $1
  10024. exit $1
  10025. } # as_fn_exit
  10026. # as_fn_unset VAR
  10027. # ---------------
  10028. # Portably unset VAR.
  10029. as_fn_unset ()
  10030. {
  10031. { eval $1=; unset $1;}
  10032. }
  10033. as_unset=as_fn_unset
  10034. # as_fn_append VAR VALUE
  10035. # ----------------------
  10036. # Append the text in VALUE to the end of the definition contained in VAR. Take
  10037. # advantage of any shell optimizations that allow amortized linear growth over
  10038. # repeated appends, instead of the typical quadratic growth present in naive
  10039. # implementations.
  10040. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  10041. eval 'as_fn_append ()
  10042. {
  10043. eval $1+=\$2
  10044. }'
  10045. else
  10046. as_fn_append ()
  10047. {
  10048. eval $1=\$$1\$2
  10049. }
  10050. fi # as_fn_append
  10051. # as_fn_arith ARG...
  10052. # ------------------
  10053. # Perform arithmetic evaluation on the ARGs, and store the result in the
  10054. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  10055. # must be portable across $(()) and expr.
  10056. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  10057. eval 'as_fn_arith ()
  10058. {
  10059. as_val=$(( $* ))
  10060. }'
  10061. else
  10062. as_fn_arith ()
  10063. {
  10064. as_val=`expr "$@" || test $? -eq 1`
  10065. }
  10066. fi # as_fn_arith
  10067. if expr a : '\(a\)' >/dev/null 2>&1 &&
  10068. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  10069. as_expr=expr
  10070. else
  10071. as_expr=false
  10072. fi
  10073. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  10074. as_basename=basename
  10075. else
  10076. as_basename=false
  10077. fi
  10078. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  10079. as_dirname=dirname
  10080. else
  10081. as_dirname=false
  10082. fi
  10083. as_me=`$as_basename -- "$0" ||
  10084. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  10085. X"$0" : 'X\(//\)$' \| \
  10086. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  10087. $as_echo X/"$0" |
  10088. sed '/^.*\/\([^/][^/]*\)\/*$/{
  10089. s//\1/
  10090. q
  10091. }
  10092. /^X\/\(\/\/\)$/{
  10093. s//\1/
  10094. q
  10095. }
  10096. /^X\/\(\/\).*/{
  10097. s//\1/
  10098. q
  10099. }
  10100. s/.*/./; q'`
  10101. # Avoid depending upon Character Ranges.
  10102. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  10103. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  10104. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  10105. as_cr_digits='0123456789'
  10106. as_cr_alnum=$as_cr_Letters$as_cr_digits
  10107. ECHO_C= ECHO_N= ECHO_T=
  10108. case `echo -n x` in #(((((
  10109. -n*)
  10110. case `echo 'xy\c'` in
  10111. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  10112. xy) ECHO_C='\c';;
  10113. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  10114. ECHO_T=' ';;
  10115. esac;;
  10116. *)
  10117. ECHO_N='-n';;
  10118. esac
  10119. rm -f conf$$ conf$$.exe conf$$.file
  10120. if test -d conf$$.dir; then
  10121. rm -f conf$$.dir/conf$$.file
  10122. else
  10123. rm -f conf$$.dir
  10124. mkdir conf$$.dir 2>/dev/null
  10125. fi
  10126. if (echo >conf$$.file) 2>/dev/null; then
  10127. if ln -s conf$$.file conf$$ 2>/dev/null; then
  10128. as_ln_s='ln -s'
  10129. # ... but there are two gotchas:
  10130. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  10131. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  10132. # In both cases, we have to default to `cp -pR'.
  10133. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  10134. as_ln_s='cp -pR'
  10135. elif ln conf$$.file conf$$ 2>/dev/null; then
  10136. as_ln_s=ln
  10137. else
  10138. as_ln_s='cp -pR'
  10139. fi
  10140. else
  10141. as_ln_s='cp -pR'
  10142. fi
  10143. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  10144. rmdir conf$$.dir 2>/dev/null
  10145. # as_fn_mkdir_p
  10146. # -------------
  10147. # Create "$as_dir" as a directory, including parents if necessary.
  10148. as_fn_mkdir_p ()
  10149. {
  10150. case $as_dir in #(
  10151. -*) as_dir=./$as_dir;;
  10152. esac
  10153. test -d "$as_dir" || eval $as_mkdir_p || {
  10154. as_dirs=
  10155. while :; do
  10156. case $as_dir in #(
  10157. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  10158. *) as_qdir=$as_dir;;
  10159. esac
  10160. as_dirs="'$as_qdir' $as_dirs"
  10161. as_dir=`$as_dirname -- "$as_dir" ||
  10162. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10163. X"$as_dir" : 'X\(//\)[^/]' \| \
  10164. X"$as_dir" : 'X\(//\)$' \| \
  10165. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  10166. $as_echo X"$as_dir" |
  10167. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10168. s//\1/
  10169. q
  10170. }
  10171. /^X\(\/\/\)[^/].*/{
  10172. s//\1/
  10173. q
  10174. }
  10175. /^X\(\/\/\)$/{
  10176. s//\1/
  10177. q
  10178. }
  10179. /^X\(\/\).*/{
  10180. s//\1/
  10181. q
  10182. }
  10183. s/.*/./; q'`
  10184. test -d "$as_dir" && break
  10185. done
  10186. test -z "$as_dirs" || eval "mkdir $as_dirs"
  10187. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  10188. } # as_fn_mkdir_p
  10189. if mkdir -p . 2>/dev/null; then
  10190. as_mkdir_p='mkdir -p "$as_dir"'
  10191. else
  10192. test -d ./-p && rmdir ./-p
  10193. as_mkdir_p=false
  10194. fi
  10195. # as_fn_executable_p FILE
  10196. # -----------------------
  10197. # Test if FILE is an executable regular file.
  10198. as_fn_executable_p ()
  10199. {
  10200. test -f "$1" && test -x "$1"
  10201. } # as_fn_executable_p
  10202. as_test_x='test -x'
  10203. as_executable_p=as_fn_executable_p
  10204. # Sed expression to map a string onto a valid CPP name.
  10205. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  10206. # Sed expression to map a string onto a valid variable name.
  10207. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  10208. exec 6>&1
  10209. ## ----------------------------------- ##
  10210. ## Main body of $CONFIG_STATUS script. ##
  10211. ## ----------------------------------- ##
  10212. _ASEOF
  10213. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  10214. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10215. # Save the log message, to keep $0 and so on meaningful, and to
  10216. # report actual input values of CONFIG_FILES etc. instead of their
  10217. # values after options handling.
  10218. ac_log="
  10219. This file was extended by libenet $as_me 1.3.6, which was
  10220. generated by GNU Autoconf 2.69. Invocation command line was
  10221. CONFIG_FILES = $CONFIG_FILES
  10222. CONFIG_HEADERS = $CONFIG_HEADERS
  10223. CONFIG_LINKS = $CONFIG_LINKS
  10224. CONFIG_COMMANDS = $CONFIG_COMMANDS
  10225. $ $0 $@
  10226. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  10227. "
  10228. _ACEOF
  10229. case $ac_config_files in *"
  10230. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  10231. esac
  10232. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10233. # Files that config.status was made for.
  10234. config_files="$ac_config_files"
  10235. config_commands="$ac_config_commands"
  10236. _ACEOF
  10237. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10238. ac_cs_usage="\
  10239. \`$as_me' instantiates files and other configuration actions
  10240. from templates according to the current configuration. Unless the files
  10241. and actions are specified as TAGs, all are instantiated by default.
  10242. Usage: $0 [OPTION]... [TAG]...
  10243. -h, --help print this help, then exit
  10244. -V, --version print version number and configuration settings, then exit
  10245. --config print configuration, then exit
  10246. -q, --quiet, --silent
  10247. do not print progress messages
  10248. -d, --debug don't remove temporary files
  10249. --recheck update $as_me by reconfiguring in the same conditions
  10250. --file=FILE[:TEMPLATE]
  10251. instantiate the configuration file FILE
  10252. Configuration files:
  10253. $config_files
  10254. Configuration commands:
  10255. $config_commands
  10256. Report bugs to the package provider."
  10257. _ACEOF
  10258. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10259. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  10260. ac_cs_version="\\
  10261. libenet config.status 1.3.6
  10262. configured by $0, generated by GNU Autoconf 2.69,
  10263. with options \\"\$ac_cs_config\\"
  10264. Copyright (C) 2012 Free Software Foundation, Inc.
  10265. This config.status script is free software; the Free Software Foundation
  10266. gives unlimited permission to copy, distribute and modify it."
  10267. ac_pwd='$ac_pwd'
  10268. srcdir='$srcdir'
  10269. INSTALL='$INSTALL'
  10270. MKDIR_P='$MKDIR_P'
  10271. AWK='$AWK'
  10272. test -n "\$AWK" || AWK=awk
  10273. _ACEOF
  10274. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10275. # The default lists apply if the user does not specify any file.
  10276. ac_need_defaults=:
  10277. while test $# != 0
  10278. do
  10279. case $1 in
  10280. --*=?*)
  10281. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10282. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  10283. ac_shift=:
  10284. ;;
  10285. --*=)
  10286. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  10287. ac_optarg=
  10288. ac_shift=:
  10289. ;;
  10290. *)
  10291. ac_option=$1
  10292. ac_optarg=$2
  10293. ac_shift=shift
  10294. ;;
  10295. esac
  10296. case $ac_option in
  10297. # Handling of the options.
  10298. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  10299. ac_cs_recheck=: ;;
  10300. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  10301. $as_echo "$ac_cs_version"; exit ;;
  10302. --config | --confi | --conf | --con | --co | --c )
  10303. $as_echo "$ac_cs_config"; exit ;;
  10304. --debug | --debu | --deb | --de | --d | -d )
  10305. debug=: ;;
  10306. --file | --fil | --fi | --f )
  10307. $ac_shift
  10308. case $ac_optarg in
  10309. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  10310. '') as_fn_error $? "missing file argument" ;;
  10311. esac
  10312. as_fn_append CONFIG_FILES " '$ac_optarg'"
  10313. ac_need_defaults=false;;
  10314. --he | --h | --help | --hel | -h )
  10315. $as_echo "$ac_cs_usage"; exit ;;
  10316. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  10317. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  10318. ac_cs_silent=: ;;
  10319. # This is an error.
  10320. -*) as_fn_error $? "unrecognized option: \`$1'
  10321. Try \`$0 --help' for more information." ;;
  10322. *) as_fn_append ac_config_targets " $1"
  10323. ac_need_defaults=false ;;
  10324. esac
  10325. shift
  10326. done
  10327. ac_configure_extra_args=
  10328. if $ac_cs_silent; then
  10329. exec 6>/dev/null
  10330. ac_configure_extra_args="$ac_configure_extra_args --silent"
  10331. fi
  10332. _ACEOF
  10333. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10334. if \$ac_cs_recheck; then
  10335. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  10336. shift
  10337. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  10338. CONFIG_SHELL='$SHELL'
  10339. export CONFIG_SHELL
  10340. exec "\$@"
  10341. fi
  10342. _ACEOF
  10343. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10344. exec 5>>config.log
  10345. {
  10346. echo
  10347. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  10348. ## Running $as_me. ##
  10349. _ASBOX
  10350. $as_echo "$ac_log"
  10351. } >&5
  10352. _ACEOF
  10353. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10354. #
  10355. # INIT-COMMANDS
  10356. #
  10357. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  10358. # The HP-UX ksh and POSIX shell print the target directory to stdout
  10359. # if CDPATH is set.
  10360. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  10361. sed_quote_subst='$sed_quote_subst'
  10362. double_quote_subst='$double_quote_subst'
  10363. delay_variable_subst='$delay_variable_subst'
  10364. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  10365. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  10366. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  10367. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  10368. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  10369. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  10370. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  10371. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  10372. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  10373. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  10374. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  10375. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  10376. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  10377. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  10378. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  10379. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  10380. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  10381. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  10382. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  10383. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  10384. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  10385. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  10386. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  10387. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  10388. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  10389. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  10390. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  10391. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  10392. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  10393. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  10394. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  10395. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  10396. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  10397. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  10398. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  10399. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  10400. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  10401. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  10402. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  10403. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  10404. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  10405. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  10406. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  10407. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  10408. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  10409. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10410. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10411. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  10412. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  10413. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  10414. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  10415. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  10416. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  10417. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  10418. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  10419. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  10420. 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"`'
  10421. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  10422. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  10423. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  10424. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  10425. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  10426. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  10427. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  10428. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  10429. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  10430. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  10431. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  10432. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  10433. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  10434. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  10435. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  10436. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  10437. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  10438. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  10439. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10440. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  10441. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  10442. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  10443. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  10444. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  10445. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  10446. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  10447. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  10448. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10449. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  10450. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  10451. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  10452. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10453. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  10454. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  10455. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  10456. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  10457. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  10458. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  10459. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10460. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  10461. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  10462. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  10463. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  10464. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  10465. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  10466. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  10467. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  10468. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  10469. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  10470. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  10471. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  10472. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  10473. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  10474. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  10475. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  10476. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  10477. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  10478. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  10479. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  10480. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  10481. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  10482. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  10483. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  10484. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  10485. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  10486. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  10487. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  10488. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  10489. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  10490. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  10491. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  10492. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  10493. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  10494. LTCC='$LTCC'
  10495. LTCFLAGS='$LTCFLAGS'
  10496. compiler='$compiler_DEFAULT'
  10497. # A function that is used when there is no print builtin or printf.
  10498. func_fallback_echo ()
  10499. {
  10500. eval 'cat <<_LTECHO_EOF
  10501. \$1
  10502. _LTECHO_EOF'
  10503. }
  10504. # Quote evaled strings.
  10505. for var in SHELL \
  10506. ECHO \
  10507. PATH_SEPARATOR \
  10508. SED \
  10509. GREP \
  10510. EGREP \
  10511. FGREP \
  10512. LD \
  10513. NM \
  10514. LN_S \
  10515. lt_SP2NL \
  10516. lt_NL2SP \
  10517. reload_flag \
  10518. OBJDUMP \
  10519. deplibs_check_method \
  10520. file_magic_cmd \
  10521. file_magic_glob \
  10522. want_nocaseglob \
  10523. DLLTOOL \
  10524. sharedlib_from_linklib_cmd \
  10525. AR \
  10526. AR_FLAGS \
  10527. archiver_list_spec \
  10528. STRIP \
  10529. RANLIB \
  10530. CC \
  10531. CFLAGS \
  10532. compiler \
  10533. lt_cv_sys_global_symbol_pipe \
  10534. lt_cv_sys_global_symbol_to_cdecl \
  10535. lt_cv_sys_global_symbol_to_c_name_address \
  10536. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  10537. nm_file_list_spec \
  10538. lt_prog_compiler_no_builtin_flag \
  10539. lt_prog_compiler_pic \
  10540. lt_prog_compiler_wl \
  10541. lt_prog_compiler_static \
  10542. lt_cv_prog_compiler_c_o \
  10543. need_locks \
  10544. MANIFEST_TOOL \
  10545. DSYMUTIL \
  10546. NMEDIT \
  10547. LIPO \
  10548. OTOOL \
  10549. OTOOL64 \
  10550. shrext_cmds \
  10551. export_dynamic_flag_spec \
  10552. whole_archive_flag_spec \
  10553. compiler_needs_object \
  10554. with_gnu_ld \
  10555. allow_undefined_flag \
  10556. no_undefined_flag \
  10557. hardcode_libdir_flag_spec \
  10558. hardcode_libdir_separator \
  10559. exclude_expsyms \
  10560. include_expsyms \
  10561. file_list_spec \
  10562. variables_saved_for_relink \
  10563. libname_spec \
  10564. library_names_spec \
  10565. soname_spec \
  10566. install_override_mode \
  10567. finish_eval \
  10568. old_striplib \
  10569. striplib; do
  10570. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10571. *[\\\\\\\`\\"\\\$]*)
  10572. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  10573. ;;
  10574. *)
  10575. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10576. ;;
  10577. esac
  10578. done
  10579. # Double-quote double-evaled strings.
  10580. for var in reload_cmds \
  10581. old_postinstall_cmds \
  10582. old_postuninstall_cmds \
  10583. old_archive_cmds \
  10584. extract_expsyms_cmds \
  10585. old_archive_from_new_cmds \
  10586. old_archive_from_expsyms_cmds \
  10587. archive_cmds \
  10588. archive_expsym_cmds \
  10589. module_cmds \
  10590. module_expsym_cmds \
  10591. export_symbols_cmds \
  10592. prelink_cmds \
  10593. postlink_cmds \
  10594. postinstall_cmds \
  10595. postuninstall_cmds \
  10596. finish_cmds \
  10597. sys_lib_search_path_spec \
  10598. sys_lib_dlsearch_path_spec; do
  10599. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  10600. *[\\\\\\\`\\"\\\$]*)
  10601. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  10602. ;;
  10603. *)
  10604. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  10605. ;;
  10606. esac
  10607. done
  10608. ac_aux_dir='$ac_aux_dir'
  10609. xsi_shell='$xsi_shell'
  10610. lt_shell_append='$lt_shell_append'
  10611. # See if we are running on zsh, and set the options which allow our
  10612. # commands through without removal of \ escapes INIT.
  10613. if test -n "\${ZSH_VERSION+set}" ; then
  10614. setopt NO_GLOB_SUBST
  10615. fi
  10616. PACKAGE='$PACKAGE'
  10617. VERSION='$VERSION'
  10618. TIMESTAMP='$TIMESTAMP'
  10619. RM='$RM'
  10620. ofile='$ofile'
  10621. _ACEOF
  10622. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10623. # Handling of arguments.
  10624. for ac_config_target in $ac_config_targets
  10625. do
  10626. case $ac_config_target in
  10627. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  10628. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  10629. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  10630. "libenet.pc") CONFIG_FILES="$CONFIG_FILES libenet.pc" ;;
  10631. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  10632. esac
  10633. done
  10634. # If the user did not use the arguments to specify the items to instantiate,
  10635. # then the envvar interface is used. Set only those that are not.
  10636. # We use the long form for the default assignment because of an extremely
  10637. # bizarre bug on SunOS 4.1.3.
  10638. if $ac_need_defaults; then
  10639. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  10640. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  10641. fi
  10642. # Have a temporary directory for convenience. Make it in the build tree
  10643. # simply because there is no reason against having it here, and in addition,
  10644. # creating and moving files from /tmp can sometimes cause problems.
  10645. # Hook for its removal unless debugging.
  10646. # Note that there is a small window in which the directory will not be cleaned:
  10647. # after its creation but before its name has been assigned to `$tmp'.
  10648. $debug ||
  10649. {
  10650. tmp= ac_tmp=
  10651. trap 'exit_status=$?
  10652. : "${ac_tmp:=$tmp}"
  10653. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  10654. ' 0
  10655. trap 'as_fn_exit 1' 1 2 13 15
  10656. }
  10657. # Create a (secure) tmp directory for tmp files.
  10658. {
  10659. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  10660. test -d "$tmp"
  10661. } ||
  10662. {
  10663. tmp=./conf$$-$RANDOM
  10664. (umask 077 && mkdir "$tmp")
  10665. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  10666. ac_tmp=$tmp
  10667. # Set up the scripts for CONFIG_FILES section.
  10668. # No need to generate them if there are no CONFIG_FILES.
  10669. # This happens for instance with `./config.status config.h'.
  10670. if test -n "$CONFIG_FILES"; then
  10671. ac_cr=`echo X | tr X '\015'`
  10672. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  10673. # But we know of no other shell where ac_cr would be empty at this
  10674. # point, so we can use a bashism as a fallback.
  10675. if test "x$ac_cr" = x; then
  10676. eval ac_cr=\$\'\\r\'
  10677. fi
  10678. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  10679. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  10680. ac_cs_awk_cr='\\r'
  10681. else
  10682. ac_cs_awk_cr=$ac_cr
  10683. fi
  10684. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  10685. _ACEOF
  10686. {
  10687. echo "cat >conf$$subs.awk <<_ACEOF" &&
  10688. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  10689. echo "_ACEOF"
  10690. } >conf$$subs.sh ||
  10691. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10692. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  10693. ac_delim='%!_!# '
  10694. for ac_last_try in false false false false false :; do
  10695. . ./conf$$subs.sh ||
  10696. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10697. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  10698. if test $ac_delim_n = $ac_delim_num; then
  10699. break
  10700. elif $ac_last_try; then
  10701. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  10702. else
  10703. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  10704. fi
  10705. done
  10706. rm -f conf$$subs.sh
  10707. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10708. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  10709. _ACEOF
  10710. sed -n '
  10711. h
  10712. s/^/S["/; s/!.*/"]=/
  10713. p
  10714. g
  10715. s/^[^!]*!//
  10716. :repl
  10717. t repl
  10718. s/'"$ac_delim"'$//
  10719. t delim
  10720. :nl
  10721. h
  10722. s/\(.\{148\}\)..*/\1/
  10723. t more1
  10724. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  10725. p
  10726. n
  10727. b repl
  10728. :more1
  10729. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10730. p
  10731. g
  10732. s/.\{148\}//
  10733. t nl
  10734. :delim
  10735. h
  10736. s/\(.\{148\}\)..*/\1/
  10737. t more2
  10738. s/["\\]/\\&/g; s/^/"/; s/$/"/
  10739. p
  10740. b
  10741. :more2
  10742. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  10743. p
  10744. g
  10745. s/.\{148\}//
  10746. t delim
  10747. ' <conf$$subs.awk | sed '
  10748. /^[^""]/{
  10749. N
  10750. s/\n//
  10751. }
  10752. ' >>$CONFIG_STATUS || ac_write_fail=1
  10753. rm -f conf$$subs.awk
  10754. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10755. _ACAWK
  10756. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  10757. for (key in S) S_is_set[key] = 1
  10758. FS = ""
  10759. }
  10760. {
  10761. line = $ 0
  10762. nfields = split(line, field, "@")
  10763. substed = 0
  10764. len = length(field[1])
  10765. for (i = 2; i < nfields; i++) {
  10766. key = field[i]
  10767. keylen = length(key)
  10768. if (S_is_set[key]) {
  10769. value = S[key]
  10770. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  10771. len += length(value) + length(field[++i])
  10772. substed = 1
  10773. } else
  10774. len += 1 + keylen
  10775. }
  10776. print line
  10777. }
  10778. _ACAWK
  10779. _ACEOF
  10780. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10781. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  10782. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  10783. else
  10784. cat
  10785. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  10786. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  10787. _ACEOF
  10788. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  10789. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  10790. # trailing colons and then remove the whole line if VPATH becomes empty
  10791. # (actually we leave an empty line to preserve line numbers).
  10792. if test "x$srcdir" = x.; then
  10793. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  10794. h
  10795. s///
  10796. s/^/:/
  10797. s/[ ]*$/:/
  10798. s/:\$(srcdir):/:/g
  10799. s/:\${srcdir}:/:/g
  10800. s/:@srcdir@:/:/g
  10801. s/^:*//
  10802. s/:*$//
  10803. x
  10804. s/\(=[ ]*\).*/\1/
  10805. G
  10806. s/\n//
  10807. s/^[^=]*=[ ]*$//
  10808. }'
  10809. fi
  10810. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10811. fi # test -n "$CONFIG_FILES"
  10812. eval set X " :F $CONFIG_FILES :C $CONFIG_COMMANDS"
  10813. shift
  10814. for ac_tag
  10815. do
  10816. case $ac_tag in
  10817. :[FHLC]) ac_mode=$ac_tag; continue;;
  10818. esac
  10819. case $ac_mode$ac_tag in
  10820. :[FHL]*:*);;
  10821. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  10822. :[FH]-) ac_tag=-:-;;
  10823. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  10824. esac
  10825. ac_save_IFS=$IFS
  10826. IFS=:
  10827. set x $ac_tag
  10828. IFS=$ac_save_IFS
  10829. shift
  10830. ac_file=$1
  10831. shift
  10832. case $ac_mode in
  10833. :L) ac_source=$1;;
  10834. :[FH])
  10835. ac_file_inputs=
  10836. for ac_f
  10837. do
  10838. case $ac_f in
  10839. -) ac_f="$ac_tmp/stdin";;
  10840. *) # Look for the file first in the build tree, then in the source tree
  10841. # (if the path is not absolute). The absolute path cannot be DOS-style,
  10842. # because $ac_f cannot contain `:'.
  10843. test -f "$ac_f" ||
  10844. case $ac_f in
  10845. [\\/$]*) false;;
  10846. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  10847. esac ||
  10848. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  10849. esac
  10850. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  10851. as_fn_append ac_file_inputs " '$ac_f'"
  10852. done
  10853. # Let's still pretend it is `configure' which instantiates (i.e., don't
  10854. # use $as_me), people would be surprised to read:
  10855. # /* config.h. Generated by config.status. */
  10856. configure_input='Generated from '`
  10857. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  10858. `' by configure.'
  10859. if test x"$ac_file" != x-; then
  10860. configure_input="$ac_file. $configure_input"
  10861. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  10862. $as_echo "$as_me: creating $ac_file" >&6;}
  10863. fi
  10864. # Neutralize special characters interpreted by sed in replacement strings.
  10865. case $configure_input in #(
  10866. *\&* | *\|* | *\\* )
  10867. ac_sed_conf_input=`$as_echo "$configure_input" |
  10868. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  10869. *) ac_sed_conf_input=$configure_input;;
  10870. esac
  10871. case $ac_tag in
  10872. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  10873. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  10874. esac
  10875. ;;
  10876. esac
  10877. ac_dir=`$as_dirname -- "$ac_file" ||
  10878. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  10879. X"$ac_file" : 'X\(//\)[^/]' \| \
  10880. X"$ac_file" : 'X\(//\)$' \| \
  10881. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  10882. $as_echo X"$ac_file" |
  10883. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  10884. s//\1/
  10885. q
  10886. }
  10887. /^X\(\/\/\)[^/].*/{
  10888. s//\1/
  10889. q
  10890. }
  10891. /^X\(\/\/\)$/{
  10892. s//\1/
  10893. q
  10894. }
  10895. /^X\(\/\).*/{
  10896. s//\1/
  10897. q
  10898. }
  10899. s/.*/./; q'`
  10900. as_dir="$ac_dir"; as_fn_mkdir_p
  10901. ac_builddir=.
  10902. case "$ac_dir" in
  10903. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10904. *)
  10905. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  10906. # A ".." for each directory in $ac_dir_suffix.
  10907. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  10908. case $ac_top_builddir_sub in
  10909. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  10910. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  10911. esac ;;
  10912. esac
  10913. ac_abs_top_builddir=$ac_pwd
  10914. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  10915. # for backward compatibility:
  10916. ac_top_builddir=$ac_top_build_prefix
  10917. case $srcdir in
  10918. .) # We are building in place.
  10919. ac_srcdir=.
  10920. ac_top_srcdir=$ac_top_builddir_sub
  10921. ac_abs_top_srcdir=$ac_pwd ;;
  10922. [\\/]* | ?:[\\/]* ) # Absolute name.
  10923. ac_srcdir=$srcdir$ac_dir_suffix;
  10924. ac_top_srcdir=$srcdir
  10925. ac_abs_top_srcdir=$srcdir ;;
  10926. *) # Relative name.
  10927. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  10928. ac_top_srcdir=$ac_top_build_prefix$srcdir
  10929. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  10930. esac
  10931. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  10932. case $ac_mode in
  10933. :F)
  10934. #
  10935. # CONFIG_FILE
  10936. #
  10937. case $INSTALL in
  10938. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  10939. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  10940. esac
  10941. ac_MKDIR_P=$MKDIR_P
  10942. case $MKDIR_P in
  10943. [\\/$]* | ?:[\\/]* ) ;;
  10944. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  10945. esac
  10946. _ACEOF
  10947. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10948. # If the template does not know about datarootdir, expand it.
  10949. # FIXME: This hack should be removed a few years after 2.60.
  10950. ac_datarootdir_hack=; ac_datarootdir_seen=
  10951. ac_sed_dataroot='
  10952. /datarootdir/ {
  10953. p
  10954. q
  10955. }
  10956. /@datadir@/p
  10957. /@docdir@/p
  10958. /@infodir@/p
  10959. /@localedir@/p
  10960. /@mandir@/p'
  10961. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  10962. *datarootdir*) ac_datarootdir_seen=yes;;
  10963. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  10964. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  10965. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  10966. _ACEOF
  10967. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10968. ac_datarootdir_hack='
  10969. s&@datadir@&$datadir&g
  10970. s&@docdir@&$docdir&g
  10971. s&@infodir@&$infodir&g
  10972. s&@localedir@&$localedir&g
  10973. s&@mandir@&$mandir&g
  10974. s&\\\${datarootdir}&$datarootdir&g' ;;
  10975. esac
  10976. _ACEOF
  10977. # Neutralize VPATH when `$srcdir' = `.'.
  10978. # Shell code in configure.ac might set extrasub.
  10979. # FIXME: do we really want to maintain this feature?
  10980. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  10981. ac_sed_extra="$ac_vpsub
  10982. $extrasub
  10983. _ACEOF
  10984. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  10985. :t
  10986. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  10987. s|@configure_input@|$ac_sed_conf_input|;t t
  10988. s&@top_builddir@&$ac_top_builddir_sub&;t t
  10989. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  10990. s&@srcdir@&$ac_srcdir&;t t
  10991. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  10992. s&@top_srcdir@&$ac_top_srcdir&;t t
  10993. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  10994. s&@builddir@&$ac_builddir&;t t
  10995. s&@abs_builddir@&$ac_abs_builddir&;t t
  10996. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  10997. s&@INSTALL@&$ac_INSTALL&;t t
  10998. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  10999. $ac_datarootdir_hack
  11000. "
  11001. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  11002. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11003. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  11004. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  11005. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  11006. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  11007. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11008. which seems to be undefined. Please make sure it is defined" >&5
  11009. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  11010. which seems to be undefined. Please make sure it is defined" >&2;}
  11011. rm -f "$ac_tmp/stdin"
  11012. case $ac_file in
  11013. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  11014. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  11015. esac \
  11016. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  11017. ;;
  11018. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  11019. $as_echo "$as_me: executing $ac_file commands" >&6;}
  11020. ;;
  11021. esac
  11022. case $ac_file$ac_mode in
  11023. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  11024. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  11025. # are listed without --file. Let's play safe and only enable the eval
  11026. # if we detect the quoting.
  11027. case $CONFIG_FILES in
  11028. *\'*) eval set x "$CONFIG_FILES" ;;
  11029. *) set x $CONFIG_FILES ;;
  11030. esac
  11031. shift
  11032. for mf
  11033. do
  11034. # Strip MF so we end up with the name of the file.
  11035. mf=`echo "$mf" | sed -e 's/:.*$//'`
  11036. # Check whether this is an Automake generated Makefile or not.
  11037. # We used to match only the files named `Makefile.in', but
  11038. # some people rename them; so instead we look at the file content.
  11039. # Grep'ing the first line is not enough: some people post-process
  11040. # each Makefile.in and add a new line on top of each file to say so.
  11041. # Grep'ing the whole file is not good either: AIX grep has a line
  11042. # limit of 2048, but all sed's we know have understand at least 4000.
  11043. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  11044. dirpart=`$as_dirname -- "$mf" ||
  11045. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11046. X"$mf" : 'X\(//\)[^/]' \| \
  11047. X"$mf" : 'X\(//\)$' \| \
  11048. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  11049. $as_echo X"$mf" |
  11050. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11051. s//\1/
  11052. q
  11053. }
  11054. /^X\(\/\/\)[^/].*/{
  11055. s//\1/
  11056. q
  11057. }
  11058. /^X\(\/\/\)$/{
  11059. s//\1/
  11060. q
  11061. }
  11062. /^X\(\/\).*/{
  11063. s//\1/
  11064. q
  11065. }
  11066. s/.*/./; q'`
  11067. else
  11068. continue
  11069. fi
  11070. # Extract the definition of DEPDIR, am__include, and am__quote
  11071. # from the Makefile without running `make'.
  11072. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  11073. test -z "$DEPDIR" && continue
  11074. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  11075. test -z "am__include" && continue
  11076. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  11077. # When using ansi2knr, U may be empty or an underscore; expand it
  11078. U=`sed -n 's/^U = //p' < "$mf"`
  11079. # Find all dependency output files, they are included files with
  11080. # $(DEPDIR) in their names. We invoke sed twice because it is the
  11081. # simplest approach to changing $(DEPDIR) to its actual value in the
  11082. # expansion.
  11083. for file in `sed -n "
  11084. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  11085. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
  11086. # Make sure the directory exists.
  11087. test -f "$dirpart/$file" && continue
  11088. fdir=`$as_dirname -- "$file" ||
  11089. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11090. X"$file" : 'X\(//\)[^/]' \| \
  11091. X"$file" : 'X\(//\)$' \| \
  11092. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  11093. $as_echo X"$file" |
  11094. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11095. s//\1/
  11096. q
  11097. }
  11098. /^X\(\/\/\)[^/].*/{
  11099. s//\1/
  11100. q
  11101. }
  11102. /^X\(\/\/\)$/{
  11103. s//\1/
  11104. q
  11105. }
  11106. /^X\(\/\).*/{
  11107. s//\1/
  11108. q
  11109. }
  11110. s/.*/./; q'`
  11111. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  11112. # echo "creating $dirpart/$file"
  11113. echo '# dummy' > "$dirpart/$file"
  11114. done
  11115. done
  11116. }
  11117. ;;
  11118. "libtool":C)
  11119. # See if we are running on zsh, and set the options which allow our
  11120. # commands through without removal of \ escapes.
  11121. if test -n "${ZSH_VERSION+set}" ; then
  11122. setopt NO_GLOB_SUBST
  11123. fi
  11124. cfgfile="${ofile}T"
  11125. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  11126. $RM "$cfgfile"
  11127. cat <<_LT_EOF >> "$cfgfile"
  11128. #! $SHELL
  11129. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  11130. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  11131. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  11132. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  11133. #
  11134. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  11135. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  11136. # Foundation, Inc.
  11137. # Written by Gordon Matzigkeit, 1996
  11138. #
  11139. # This file is part of GNU Libtool.
  11140. #
  11141. # GNU Libtool is free software; you can redistribute it and/or
  11142. # modify it under the terms of the GNU General Public License as
  11143. # published by the Free Software Foundation; either version 2 of
  11144. # the License, or (at your option) any later version.
  11145. #
  11146. # As a special exception to the GNU General Public License,
  11147. # if you distribute this file as part of a program or library that
  11148. # is built using GNU Libtool, you may include this file under the
  11149. # same distribution terms that you use for the rest of that program.
  11150. #
  11151. # GNU Libtool is distributed in the hope that it will be useful,
  11152. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11153. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11154. # GNU General Public License for more details.
  11155. #
  11156. # You should have received a copy of the GNU General Public License
  11157. # along with GNU Libtool; see the file COPYING. If not, a copy
  11158. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  11159. # obtained by writing to the Free Software Foundation, Inc.,
  11160. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  11161. # The names of the tagged configurations supported by this script.
  11162. available_tags=""
  11163. # ### BEGIN LIBTOOL CONFIG
  11164. # Which release of libtool.m4 was used?
  11165. macro_version=$macro_version
  11166. macro_revision=$macro_revision
  11167. # Whether or not to build shared libraries.
  11168. build_libtool_libs=$enable_shared
  11169. # Whether or not to build static libraries.
  11170. build_old_libs=$enable_static
  11171. # What type of objects to build.
  11172. pic_mode=$pic_mode
  11173. # Whether or not to optimize for fast installation.
  11174. fast_install=$enable_fast_install
  11175. # Shell to use when invoking shell scripts.
  11176. SHELL=$lt_SHELL
  11177. # An echo program that protects backslashes.
  11178. ECHO=$lt_ECHO
  11179. # The PATH separator for the build system.
  11180. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  11181. # The host system.
  11182. host_alias=$host_alias
  11183. host=$host
  11184. host_os=$host_os
  11185. # The build system.
  11186. build_alias=$build_alias
  11187. build=$build
  11188. build_os=$build_os
  11189. # A sed program that does not truncate output.
  11190. SED=$lt_SED
  11191. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  11192. Xsed="\$SED -e 1s/^X//"
  11193. # A grep program that handles long lines.
  11194. GREP=$lt_GREP
  11195. # An ERE matcher.
  11196. EGREP=$lt_EGREP
  11197. # A literal string matcher.
  11198. FGREP=$lt_FGREP
  11199. # A BSD- or MS-compatible name lister.
  11200. NM=$lt_NM
  11201. # Whether we need soft or hard links.
  11202. LN_S=$lt_LN_S
  11203. # What is the maximum length of a command?
  11204. max_cmd_len=$max_cmd_len
  11205. # Object file suffix (normally "o").
  11206. objext=$ac_objext
  11207. # Executable file suffix (normally "").
  11208. exeext=$exeext
  11209. # whether the shell understands "unset".
  11210. lt_unset=$lt_unset
  11211. # turn spaces into newlines.
  11212. SP2NL=$lt_lt_SP2NL
  11213. # turn newlines into spaces.
  11214. NL2SP=$lt_lt_NL2SP
  11215. # convert \$build file names to \$host format.
  11216. to_host_file_cmd=$lt_cv_to_host_file_cmd
  11217. # convert \$build files to toolchain format.
  11218. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  11219. # An object symbol dumper.
  11220. OBJDUMP=$lt_OBJDUMP
  11221. # Method to check whether dependent libraries are shared objects.
  11222. deplibs_check_method=$lt_deplibs_check_method
  11223. # Command to use when deplibs_check_method = "file_magic".
  11224. file_magic_cmd=$lt_file_magic_cmd
  11225. # How to find potential files when deplibs_check_method = "file_magic".
  11226. file_magic_glob=$lt_file_magic_glob
  11227. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  11228. want_nocaseglob=$lt_want_nocaseglob
  11229. # DLL creation program.
  11230. DLLTOOL=$lt_DLLTOOL
  11231. # Command to associate shared and link libraries.
  11232. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  11233. # The archiver.
  11234. AR=$lt_AR
  11235. # Flags to create an archive.
  11236. AR_FLAGS=$lt_AR_FLAGS
  11237. # How to feed a file listing to the archiver.
  11238. archiver_list_spec=$lt_archiver_list_spec
  11239. # A symbol stripping program.
  11240. STRIP=$lt_STRIP
  11241. # Commands used to install an old-style archive.
  11242. RANLIB=$lt_RANLIB
  11243. old_postinstall_cmds=$lt_old_postinstall_cmds
  11244. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  11245. # Whether to use a lock for old archive extraction.
  11246. lock_old_archive_extraction=$lock_old_archive_extraction
  11247. # A C compiler.
  11248. LTCC=$lt_CC
  11249. # LTCC compiler flags.
  11250. LTCFLAGS=$lt_CFLAGS
  11251. # Take the output of nm and produce a listing of raw symbols and C names.
  11252. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  11253. # Transform the output of nm in a proper C declaration.
  11254. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  11255. # Transform the output of nm in a C name address pair.
  11256. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  11257. # Transform the output of nm in a C name address pair when lib prefix is needed.
  11258. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  11259. # Specify filename containing input files for \$NM.
  11260. nm_file_list_spec=$lt_nm_file_list_spec
  11261. # The root where to search for dependent libraries,and in which our libraries should be installed.
  11262. lt_sysroot=$lt_sysroot
  11263. # The name of the directory that contains temporary libtool files.
  11264. objdir=$objdir
  11265. # Used to examine libraries when file_magic_cmd begins with "file".
  11266. MAGIC_CMD=$MAGIC_CMD
  11267. # Must we lock files when doing compilation?
  11268. need_locks=$lt_need_locks
  11269. # Manifest tool.
  11270. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  11271. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  11272. DSYMUTIL=$lt_DSYMUTIL
  11273. # Tool to change global to local symbols on Mac OS X.
  11274. NMEDIT=$lt_NMEDIT
  11275. # Tool to manipulate fat objects and archives on Mac OS X.
  11276. LIPO=$lt_LIPO
  11277. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  11278. OTOOL=$lt_OTOOL
  11279. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  11280. OTOOL64=$lt_OTOOL64
  11281. # Old archive suffix (normally "a").
  11282. libext=$libext
  11283. # Shared library suffix (normally ".so").
  11284. shrext_cmds=$lt_shrext_cmds
  11285. # The commands to extract the exported symbol list from a shared archive.
  11286. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  11287. # Variables whose values should be saved in libtool wrapper scripts and
  11288. # restored at link time.
  11289. variables_saved_for_relink=$lt_variables_saved_for_relink
  11290. # Do we need the "lib" prefix for modules?
  11291. need_lib_prefix=$need_lib_prefix
  11292. # Do we need a version for libraries?
  11293. need_version=$need_version
  11294. # Library versioning type.
  11295. version_type=$version_type
  11296. # Shared library runtime path variable.
  11297. runpath_var=$runpath_var
  11298. # Shared library path variable.
  11299. shlibpath_var=$shlibpath_var
  11300. # Is shlibpath searched before the hard-coded library search path?
  11301. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  11302. # Format of library name prefix.
  11303. libname_spec=$lt_libname_spec
  11304. # List of archive names. First name is the real one, the rest are links.
  11305. # The last name is the one that the linker finds with -lNAME
  11306. library_names_spec=$lt_library_names_spec
  11307. # The coded name of the library, if different from the real name.
  11308. soname_spec=$lt_soname_spec
  11309. # Permission mode override for installation of shared libraries.
  11310. install_override_mode=$lt_install_override_mode
  11311. # Command to use after installation of a shared archive.
  11312. postinstall_cmds=$lt_postinstall_cmds
  11313. # Command to use after uninstallation of a shared archive.
  11314. postuninstall_cmds=$lt_postuninstall_cmds
  11315. # Commands used to finish a libtool library installation in a directory.
  11316. finish_cmds=$lt_finish_cmds
  11317. # As "finish_cmds", except a single script fragment to be evaled but
  11318. # not shown.
  11319. finish_eval=$lt_finish_eval
  11320. # Whether we should hardcode library paths into libraries.
  11321. hardcode_into_libs=$hardcode_into_libs
  11322. # Compile-time system search path for libraries.
  11323. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  11324. # Run-time system search path for libraries.
  11325. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  11326. # Whether dlopen is supported.
  11327. dlopen_support=$enable_dlopen
  11328. # Whether dlopen of programs is supported.
  11329. dlopen_self=$enable_dlopen_self
  11330. # Whether dlopen of statically linked programs is supported.
  11331. dlopen_self_static=$enable_dlopen_self_static
  11332. # Commands to strip libraries.
  11333. old_striplib=$lt_old_striplib
  11334. striplib=$lt_striplib
  11335. # The linker used to build libraries.
  11336. LD=$lt_LD
  11337. # How to create reloadable object files.
  11338. reload_flag=$lt_reload_flag
  11339. reload_cmds=$lt_reload_cmds
  11340. # Commands used to build an old-style archive.
  11341. old_archive_cmds=$lt_old_archive_cmds
  11342. # A language specific compiler.
  11343. CC=$lt_compiler
  11344. # Is the compiler the GNU compiler?
  11345. with_gcc=$GCC
  11346. # Compiler flag to turn off builtin functions.
  11347. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  11348. # Additional compiler flags for building library objects.
  11349. pic_flag=$lt_lt_prog_compiler_pic
  11350. # How to pass a linker flag through the compiler.
  11351. wl=$lt_lt_prog_compiler_wl
  11352. # Compiler flag to prevent dynamic linking.
  11353. link_static_flag=$lt_lt_prog_compiler_static
  11354. # Does compiler simultaneously support -c and -o options?
  11355. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  11356. # Whether or not to add -lc for building shared libraries.
  11357. build_libtool_need_lc=$archive_cmds_need_lc
  11358. # Whether or not to disallow shared libs when runtime libs are static.
  11359. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  11360. # Compiler flag to allow reflexive dlopens.
  11361. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  11362. # Compiler flag to generate shared objects directly from archives.
  11363. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  11364. # Whether the compiler copes with passing no objects directly.
  11365. compiler_needs_object=$lt_compiler_needs_object
  11366. # Create an old-style archive from a shared archive.
  11367. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  11368. # Create a temporary old-style archive to link instead of a shared archive.
  11369. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  11370. # Commands used to build a shared archive.
  11371. archive_cmds=$lt_archive_cmds
  11372. archive_expsym_cmds=$lt_archive_expsym_cmds
  11373. # Commands used to build a loadable module if different from building
  11374. # a shared archive.
  11375. module_cmds=$lt_module_cmds
  11376. module_expsym_cmds=$lt_module_expsym_cmds
  11377. # Whether we are building with GNU ld or not.
  11378. with_gnu_ld=$lt_with_gnu_ld
  11379. # Flag that allows shared libraries with undefined symbols to be built.
  11380. allow_undefined_flag=$lt_allow_undefined_flag
  11381. # Flag that enforces no undefined symbols.
  11382. no_undefined_flag=$lt_no_undefined_flag
  11383. # Flag to hardcode \$libdir into a binary during linking.
  11384. # This must work even if \$libdir does not exist
  11385. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  11386. # Whether we need a single "-rpath" flag with a separated argument.
  11387. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  11388. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11389. # DIR into the resulting binary.
  11390. hardcode_direct=$hardcode_direct
  11391. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  11392. # DIR into the resulting binary and the resulting library dependency is
  11393. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  11394. # library is relocated.
  11395. hardcode_direct_absolute=$hardcode_direct_absolute
  11396. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  11397. # into the resulting binary.
  11398. hardcode_minus_L=$hardcode_minus_L
  11399. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  11400. # into the resulting binary.
  11401. hardcode_shlibpath_var=$hardcode_shlibpath_var
  11402. # Set to "yes" if building a shared library automatically hardcodes DIR
  11403. # into the library and all subsequent libraries and executables linked
  11404. # against it.
  11405. hardcode_automatic=$hardcode_automatic
  11406. # Set to yes if linker adds runtime paths of dependent libraries
  11407. # to runtime path list.
  11408. inherit_rpath=$inherit_rpath
  11409. # Whether libtool must link a program against all its dependency libraries.
  11410. link_all_deplibs=$link_all_deplibs
  11411. # Set to "yes" if exported symbols are required.
  11412. always_export_symbols=$always_export_symbols
  11413. # The commands to list exported symbols.
  11414. export_symbols_cmds=$lt_export_symbols_cmds
  11415. # Symbols that should not be listed in the preloaded symbols.
  11416. exclude_expsyms=$lt_exclude_expsyms
  11417. # Symbols that must always be exported.
  11418. include_expsyms=$lt_include_expsyms
  11419. # Commands necessary for linking programs (against libraries) with templates.
  11420. prelink_cmds=$lt_prelink_cmds
  11421. # Commands necessary for finishing linking programs.
  11422. postlink_cmds=$lt_postlink_cmds
  11423. # Specify filename containing input files.
  11424. file_list_spec=$lt_file_list_spec
  11425. # How to hardcode a shared library path into an executable.
  11426. hardcode_action=$hardcode_action
  11427. # ### END LIBTOOL CONFIG
  11428. _LT_EOF
  11429. case $host_os in
  11430. aix3*)
  11431. cat <<\_LT_EOF >> "$cfgfile"
  11432. # AIX sometimes has problems with the GCC collect2 program. For some
  11433. # reason, if we set the COLLECT_NAMES environment variable, the problems
  11434. # vanish in a puff of smoke.
  11435. if test "X${COLLECT_NAMES+set}" != Xset; then
  11436. COLLECT_NAMES=
  11437. export COLLECT_NAMES
  11438. fi
  11439. _LT_EOF
  11440. ;;
  11441. esac
  11442. ltmain="$ac_aux_dir/ltmain.sh"
  11443. # We use sed instead of cat because bash on DJGPP gets confused if
  11444. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  11445. # text mode, it properly converts lines to CR/LF. This bash problem
  11446. # is reportedly fixed, but why not run on old versions too?
  11447. sed '$q' "$ltmain" >> "$cfgfile" \
  11448. || (rm -f "$cfgfile"; exit 1)
  11449. if test x"$xsi_shell" = xyes; then
  11450. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  11451. func_dirname ()\
  11452. {\
  11453. \ case ${1} in\
  11454. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11455. \ * ) func_dirname_result="${3}" ;;\
  11456. \ esac\
  11457. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  11458. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11459. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11460. test 0 -eq $? || _lt_function_replace_fail=:
  11461. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  11462. func_basename ()\
  11463. {\
  11464. \ func_basename_result="${1##*/}"\
  11465. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11466. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11467. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11468. test 0 -eq $? || _lt_function_replace_fail=:
  11469. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  11470. func_dirname_and_basename ()\
  11471. {\
  11472. \ case ${1} in\
  11473. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  11474. \ * ) func_dirname_result="${3}" ;;\
  11475. \ esac\
  11476. \ func_basename_result="${1##*/}"\
  11477. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  11478. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11479. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11480. test 0 -eq $? || _lt_function_replace_fail=:
  11481. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  11482. func_stripname ()\
  11483. {\
  11484. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  11485. \ # positional parameters, so assign one to ordinary parameter first.\
  11486. \ func_stripname_result=${3}\
  11487. \ func_stripname_result=${func_stripname_result#"${1}"}\
  11488. \ func_stripname_result=${func_stripname_result%"${2}"}\
  11489. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  11490. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11491. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11492. test 0 -eq $? || _lt_function_replace_fail=:
  11493. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  11494. func_split_long_opt ()\
  11495. {\
  11496. \ func_split_long_opt_name=${1%%=*}\
  11497. \ func_split_long_opt_arg=${1#*=}\
  11498. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11499. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11500. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11501. test 0 -eq $? || _lt_function_replace_fail=:
  11502. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  11503. func_split_short_opt ()\
  11504. {\
  11505. \ func_split_short_opt_arg=${1#??}\
  11506. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  11507. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  11508. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11509. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11510. test 0 -eq $? || _lt_function_replace_fail=:
  11511. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  11512. func_lo2o ()\
  11513. {\
  11514. \ case ${1} in\
  11515. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  11516. \ *) func_lo2o_result=${1} ;;\
  11517. \ esac\
  11518. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  11519. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11520. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11521. test 0 -eq $? || _lt_function_replace_fail=:
  11522. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  11523. func_xform ()\
  11524. {\
  11525. func_xform_result=${1%.*}.lo\
  11526. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  11527. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11528. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11529. test 0 -eq $? || _lt_function_replace_fail=:
  11530. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  11531. func_arith ()\
  11532. {\
  11533. func_arith_result=$(( $* ))\
  11534. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  11535. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11536. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11537. test 0 -eq $? || _lt_function_replace_fail=:
  11538. sed -e '/^func_len ()$/,/^} # func_len /c\
  11539. func_len ()\
  11540. {\
  11541. func_len_result=${#1}\
  11542. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  11543. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11544. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11545. test 0 -eq $? || _lt_function_replace_fail=:
  11546. fi
  11547. if test x"$lt_shell_append" = xyes; then
  11548. sed -e '/^func_append ()$/,/^} # func_append /c\
  11549. func_append ()\
  11550. {\
  11551. eval "${1}+=\\${2}"\
  11552. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  11553. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11554. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11555. test 0 -eq $? || _lt_function_replace_fail=:
  11556. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  11557. func_append_quoted ()\
  11558. {\
  11559. \ func_quote_for_eval "${2}"\
  11560. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  11561. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  11562. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11563. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11564. test 0 -eq $? || _lt_function_replace_fail=:
  11565. # Save a `func_append' function call where possible by direct use of '+='
  11566. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  11567. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11568. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11569. test 0 -eq $? || _lt_function_replace_fail=:
  11570. else
  11571. # Save a `func_append' function call even when '+=' is not available
  11572. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  11573. && mv -f "$cfgfile.tmp" "$cfgfile" \
  11574. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  11575. test 0 -eq $? || _lt_function_replace_fail=:
  11576. fi
  11577. if test x"$_lt_function_replace_fail" = x":"; then
  11578. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  11579. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  11580. fi
  11581. mv -f "$cfgfile" "$ofile" ||
  11582. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  11583. chmod +x "$ofile"
  11584. ;;
  11585. esac
  11586. done # for ac_tag
  11587. as_fn_exit 0
  11588. _ACEOF
  11589. ac_clean_files=$ac_clean_files_save
  11590. test $ac_write_fail = 0 ||
  11591. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  11592. # configure is writing to config.log, and then calls config.status.
  11593. # config.status does its own redirection, appending to config.log.
  11594. # Unfortunately, on DOS this fails, as config.log is still kept open
  11595. # by configure, so config.status won't be able to write to it; its
  11596. # output is simply discarded. So we exec the FD to /dev/null,
  11597. # effectively closing config.log, so it can be properly (re)opened and
  11598. # appended to by config.status. When coming back to configure, we
  11599. # need to make the FD available again.
  11600. if test "$no_create" != yes; then
  11601. ac_cs_success=:
  11602. ac_config_status_args=
  11603. test "$silent" = yes &&
  11604. ac_config_status_args="$ac_config_status_args --quiet"
  11605. exec 5>/dev/null
  11606. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  11607. exec 5>>config.log
  11608. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  11609. # would make configure fail if this is the last instruction.
  11610. $ac_cs_success || as_fn_exit 1
  11611. fi
  11612. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  11613. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  11614. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  11615. fi