configure 427 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038303930403041304230433044304530463047304830493050305130523053305430553056305730583059306030613062306330643065306630673068306930703071307230733074307530763077307830793080308130823083308430853086308730883089309030913092309330943095309630973098309931003101310231033104310531063107310831093110311131123113311431153116311731183119312031213122312331243125312631273128312931303131313231333134313531363137313831393140314131423143314431453146314731483149315031513152315331543155315631573158315931603161316231633164316531663167316831693170317131723173317431753176317731783179318031813182318331843185318631873188318931903191319231933194319531963197319831993200320132023203320432053206320732083209321032113212321332143215321632173218321932203221322232233224322532263227322832293230323132323233323432353236323732383239324032413242324332443245324632473248324932503251325232533254325532563257325832593260326132623263326432653266326732683269327032713272327332743275327632773278327932803281328232833284328532863287328832893290329132923293329432953296329732983299330033013302330333043305330633073308330933103311331233133314331533163317331833193320332133223323332433253326332733283329333033313332333333343335333633373338333933403341334233433344334533463347334833493350335133523353335433553356335733583359336033613362336333643365336633673368336933703371337233733374337533763377337833793380338133823383338433853386338733883389339033913392339333943395339633973398339934003401340234033404340534063407340834093410341134123413341434153416341734183419342034213422342334243425342634273428342934303431343234333434343534363437343834393440344134423443344434453446344734483449345034513452345334543455345634573458345934603461346234633464346534663467346834693470347134723473347434753476347734783479348034813482348334843485348634873488348934903491349234933494349534963497349834993500350135023503350435053506350735083509351035113512351335143515351635173518351935203521352235233524352535263527352835293530353135323533353435353536353735383539354035413542354335443545354635473548354935503551355235533554355535563557355835593560356135623563356435653566356735683569357035713572357335743575357635773578357935803581358235833584358535863587358835893590359135923593359435953596359735983599360036013602360336043605360636073608360936103611361236133614361536163617361836193620362136223623362436253626362736283629363036313632363336343635363636373638363936403641364236433644364536463647364836493650365136523653365436553656365736583659366036613662366336643665366636673668366936703671367236733674367536763677367836793680368136823683368436853686368736883689369036913692369336943695369636973698369937003701370237033704370537063707370837093710371137123713371437153716371737183719372037213722372337243725372637273728372937303731373237333734373537363737373837393740374137423743374437453746374737483749375037513752375337543755375637573758375937603761376237633764376537663767376837693770377137723773377437753776377737783779378037813782378337843785378637873788378937903791379237933794379537963797379837993800380138023803380438053806380738083809381038113812381338143815381638173818381938203821382238233824382538263827382838293830383138323833383438353836383738383839384038413842384338443845384638473848384938503851385238533854385538563857385838593860386138623863386438653866386738683869387038713872387338743875387638773878387938803881388238833884388538863887388838893890389138923893389438953896389738983899390039013902390339043905390639073908390939103911391239133914391539163917391839193920392139223923392439253926392739283929393039313932393339343935393639373938393939403941394239433944394539463947394839493950395139523953395439553956395739583959396039613962396339643965396639673968396939703971397239733974397539763977397839793980398139823983398439853986398739883989399039913992399339943995399639973998399940004001400240034004400540064007400840094010401140124013401440154016401740184019402040214022402340244025402640274028402940304031403240334034403540364037403840394040404140424043404440454046404740484049405040514052405340544055405640574058405940604061406240634064406540664067406840694070407140724073407440754076407740784079408040814082408340844085408640874088408940904091409240934094409540964097409840994100410141024103410441054106410741084109411041114112411341144115411641174118411941204121412241234124412541264127412841294130413141324133413441354136413741384139414041414142414341444145414641474148414941504151415241534154415541564157415841594160416141624163416441654166416741684169417041714172417341744175417641774178417941804181418241834184418541864187418841894190419141924193419441954196419741984199420042014202420342044205420642074208420942104211421242134214421542164217421842194220422142224223422442254226422742284229423042314232423342344235423642374238423942404241424242434244424542464247424842494250425142524253425442554256425742584259426042614262426342644265426642674268426942704271427242734274427542764277427842794280428142824283428442854286428742884289429042914292429342944295429642974298429943004301430243034304430543064307430843094310431143124313431443154316431743184319432043214322432343244325432643274328432943304331433243334334433543364337433843394340434143424343434443454346434743484349435043514352435343544355435643574358435943604361436243634364436543664367436843694370437143724373437443754376437743784379438043814382438343844385438643874388438943904391439243934394439543964397439843994400440144024403440444054406440744084409441044114412441344144415441644174418441944204421442244234424442544264427442844294430443144324433443444354436443744384439444044414442444344444445444644474448444944504451445244534454445544564457445844594460446144624463446444654466446744684469447044714472447344744475447644774478447944804481448244834484448544864487448844894490449144924493449444954496449744984499450045014502450345044505450645074508450945104511451245134514451545164517451845194520452145224523452445254526452745284529453045314532453345344535453645374538453945404541454245434544454545464547454845494550455145524553455445554556455745584559456045614562456345644565456645674568456945704571457245734574457545764577457845794580458145824583458445854586458745884589459045914592459345944595459645974598459946004601460246034604460546064607460846094610461146124613461446154616461746184619462046214622462346244625462646274628462946304631463246334634463546364637463846394640464146424643464446454646464746484649465046514652465346544655465646574658465946604661466246634664466546664667466846694670467146724673467446754676467746784679468046814682468346844685468646874688468946904691469246934694469546964697469846994700470147024703470447054706470747084709471047114712471347144715471647174718471947204721472247234724472547264727472847294730473147324733473447354736473747384739474047414742474347444745474647474748474947504751475247534754475547564757475847594760476147624763476447654766476747684769477047714772477347744775477647774778477947804781478247834784478547864787478847894790479147924793479447954796479747984799480048014802480348044805480648074808480948104811481248134814481548164817481848194820482148224823482448254826482748284829483048314832483348344835483648374838483948404841484248434844484548464847484848494850485148524853485448554856485748584859486048614862486348644865486648674868486948704871487248734874487548764877487848794880488148824883488448854886488748884889489048914892489348944895489648974898489949004901490249034904490549064907490849094910491149124913491449154916491749184919492049214922492349244925492649274928492949304931493249334934493549364937493849394940494149424943494449454946494749484949495049514952495349544955495649574958495949604961496249634964496549664967496849694970497149724973497449754976497749784979498049814982498349844985498649874988498949904991499249934994499549964997499849995000500150025003500450055006500750085009501050115012501350145015501650175018501950205021502250235024502550265027502850295030503150325033503450355036503750385039504050415042504350445045504650475048504950505051505250535054505550565057505850595060506150625063506450655066506750685069507050715072507350745075507650775078507950805081508250835084508550865087508850895090509150925093509450955096509750985099510051015102510351045105510651075108510951105111511251135114511551165117511851195120512151225123512451255126512751285129513051315132513351345135513651375138513951405141514251435144514551465147514851495150515151525153515451555156515751585159516051615162516351645165516651675168516951705171517251735174517551765177517851795180518151825183518451855186518751885189519051915192519351945195519651975198519952005201520252035204520552065207520852095210521152125213521452155216521752185219522052215222522352245225522652275228522952305231523252335234523552365237523852395240524152425243524452455246524752485249525052515252525352545255525652575258525952605261526252635264526552665267526852695270527152725273527452755276527752785279528052815282528352845285528652875288528952905291529252935294529552965297529852995300530153025303530453055306530753085309531053115312531353145315531653175318531953205321532253235324532553265327532853295330533153325333533453355336533753385339534053415342534353445345534653475348534953505351535253535354535553565357535853595360536153625363536453655366536753685369537053715372537353745375537653775378537953805381538253835384538553865387538853895390539153925393539453955396539753985399540054015402540354045405540654075408540954105411541254135414541554165417541854195420542154225423542454255426542754285429543054315432543354345435543654375438543954405441544254435444544554465447544854495450545154525453545454555456545754585459546054615462546354645465546654675468546954705471547254735474547554765477547854795480548154825483548454855486548754885489549054915492549354945495549654975498549955005501550255035504550555065507550855095510551155125513551455155516551755185519552055215522552355245525552655275528552955305531553255335534553555365537553855395540554155425543554455455546554755485549555055515552555355545555555655575558555955605561556255635564556555665567556855695570557155725573557455755576557755785579558055815582558355845585558655875588558955905591559255935594559555965597559855995600560156025603560456055606560756085609561056115612561356145615561656175618561956205621562256235624562556265627562856295630563156325633563456355636563756385639564056415642564356445645564656475648564956505651565256535654565556565657565856595660566156625663566456655666566756685669567056715672567356745675567656775678567956805681568256835684568556865687568856895690569156925693569456955696569756985699570057015702570357045705570657075708570957105711571257135714571557165717571857195720572157225723572457255726572757285729573057315732573357345735573657375738573957405741574257435744574557465747574857495750575157525753575457555756575757585759576057615762576357645765576657675768576957705771577257735774577557765777577857795780578157825783578457855786578757885789579057915792579357945795579657975798579958005801580258035804580558065807580858095810581158125813581458155816581758185819582058215822582358245825582658275828582958305831583258335834583558365837583858395840584158425843584458455846584758485849585058515852585358545855585658575858585958605861586258635864586558665867586858695870587158725873587458755876587758785879588058815882588358845885588658875888588958905891589258935894589558965897589858995900590159025903590459055906590759085909591059115912591359145915591659175918591959205921592259235924592559265927592859295930593159325933593459355936593759385939594059415942594359445945594659475948594959505951595259535954595559565957595859595960596159625963596459655966596759685969597059715972597359745975597659775978597959805981598259835984598559865987598859895990599159925993599459955996599759985999600060016002600360046005600660076008600960106011601260136014601560166017601860196020602160226023602460256026602760286029603060316032603360346035603660376038603960406041604260436044604560466047604860496050605160526053605460556056605760586059606060616062606360646065606660676068606960706071607260736074607560766077607860796080608160826083608460856086608760886089609060916092609360946095609660976098609961006101610261036104610561066107610861096110611161126113611461156116611761186119612061216122612361246125612661276128612961306131613261336134613561366137613861396140614161426143614461456146614761486149615061516152615361546155615661576158615961606161616261636164616561666167616861696170617161726173617461756176617761786179618061816182618361846185618661876188618961906191619261936194619561966197619861996200620162026203620462056206620762086209621062116212621362146215621662176218621962206221622262236224622562266227622862296230623162326233623462356236623762386239624062416242624362446245624662476248624962506251625262536254625562566257625862596260626162626263626462656266626762686269627062716272627362746275627662776278627962806281628262836284628562866287628862896290629162926293629462956296629762986299630063016302630363046305630663076308630963106311631263136314631563166317631863196320632163226323632463256326632763286329633063316332633363346335633663376338633963406341634263436344634563466347634863496350635163526353635463556356635763586359636063616362636363646365636663676368636963706371637263736374637563766377637863796380638163826383638463856386638763886389639063916392639363946395639663976398639964006401640264036404640564066407640864096410641164126413641464156416641764186419642064216422642364246425642664276428642964306431643264336434643564366437643864396440644164426443644464456446644764486449645064516452645364546455645664576458645964606461646264636464646564666467646864696470647164726473647464756476647764786479648064816482648364846485648664876488648964906491649264936494649564966497649864996500650165026503650465056506650765086509651065116512651365146515651665176518651965206521652265236524652565266527652865296530653165326533653465356536653765386539654065416542654365446545654665476548654965506551655265536554655565566557655865596560656165626563656465656566656765686569657065716572657365746575657665776578657965806581658265836584658565866587658865896590659165926593659465956596659765986599660066016602660366046605660666076608660966106611661266136614661566166617661866196620662166226623662466256626662766286629663066316632663366346635663666376638663966406641664266436644664566466647664866496650665166526653665466556656665766586659666066616662666366646665666666676668666966706671667266736674667566766677667866796680668166826683668466856686668766886689669066916692669366946695669666976698669967006701670267036704670567066707670867096710671167126713671467156716671767186719672067216722672367246725672667276728672967306731673267336734673567366737673867396740674167426743674467456746674767486749675067516752675367546755675667576758675967606761676267636764676567666767676867696770677167726773677467756776677767786779678067816782678367846785678667876788678967906791679267936794679567966797679867996800680168026803680468056806680768086809681068116812681368146815681668176818681968206821682268236824682568266827682868296830683168326833683468356836683768386839684068416842684368446845684668476848684968506851685268536854685568566857685868596860686168626863686468656866686768686869687068716872687368746875687668776878687968806881688268836884688568866887688868896890689168926893689468956896689768986899690069016902690369046905690669076908690969106911691269136914691569166917691869196920692169226923692469256926692769286929693069316932693369346935693669376938693969406941694269436944694569466947694869496950695169526953695469556956695769586959696069616962696369646965696669676968696969706971697269736974697569766977697869796980698169826983698469856986698769886989699069916992699369946995699669976998699970007001700270037004700570067007700870097010701170127013701470157016701770187019702070217022702370247025702670277028702970307031703270337034703570367037703870397040704170427043704470457046704770487049705070517052705370547055705670577058705970607061706270637064706570667067706870697070707170727073707470757076707770787079708070817082708370847085708670877088708970907091709270937094709570967097709870997100710171027103710471057106710771087109711071117112711371147115711671177118711971207121712271237124712571267127712871297130713171327133713471357136713771387139714071417142714371447145714671477148714971507151715271537154715571567157715871597160716171627163716471657166716771687169717071717172717371747175717671777178717971807181718271837184718571867187718871897190719171927193719471957196719771987199720072017202720372047205720672077208720972107211721272137214721572167217721872197220722172227223722472257226722772287229723072317232723372347235723672377238723972407241724272437244724572467247724872497250725172527253725472557256725772587259726072617262726372647265726672677268726972707271727272737274727572767277727872797280728172827283728472857286728772887289729072917292729372947295729672977298729973007301730273037304730573067307730873097310731173127313731473157316731773187319732073217322732373247325732673277328732973307331733273337334733573367337733873397340734173427343734473457346734773487349735073517352735373547355735673577358735973607361736273637364736573667367736873697370737173727373737473757376737773787379738073817382738373847385738673877388738973907391739273937394739573967397739873997400740174027403740474057406740774087409741074117412741374147415741674177418741974207421742274237424742574267427742874297430743174327433743474357436743774387439744074417442744374447445744674477448744974507451745274537454745574567457745874597460746174627463746474657466746774687469747074717472747374747475747674777478747974807481748274837484748574867487748874897490749174927493749474957496749774987499750075017502750375047505750675077508750975107511751275137514751575167517751875197520752175227523752475257526752775287529753075317532753375347535753675377538753975407541754275437544754575467547754875497550755175527553755475557556755775587559756075617562756375647565756675677568756975707571757275737574757575767577757875797580758175827583758475857586758775887589759075917592759375947595759675977598759976007601760276037604760576067607760876097610761176127613761476157616761776187619762076217622762376247625762676277628762976307631763276337634763576367637763876397640764176427643764476457646764776487649765076517652765376547655765676577658765976607661766276637664766576667667766876697670767176727673767476757676767776787679768076817682768376847685768676877688768976907691769276937694769576967697769876997700770177027703770477057706770777087709771077117712771377147715771677177718771977207721772277237724772577267727772877297730773177327733773477357736773777387739774077417742774377447745774677477748774977507751775277537754775577567757775877597760776177627763776477657766776777687769777077717772777377747775777677777778777977807781778277837784778577867787778877897790779177927793779477957796779777987799780078017802780378047805780678077808780978107811781278137814781578167817781878197820782178227823782478257826782778287829783078317832783378347835783678377838783978407841784278437844784578467847784878497850785178527853785478557856785778587859786078617862786378647865786678677868786978707871787278737874787578767877787878797880788178827883788478857886788778887889789078917892789378947895789678977898789979007901790279037904790579067907790879097910791179127913791479157916791779187919792079217922792379247925792679277928792979307931793279337934793579367937793879397940794179427943794479457946794779487949795079517952795379547955795679577958795979607961796279637964796579667967796879697970797179727973797479757976797779787979798079817982798379847985798679877988798979907991799279937994799579967997799879998000800180028003800480058006800780088009801080118012801380148015801680178018801980208021802280238024802580268027802880298030803180328033803480358036803780388039804080418042804380448045804680478048804980508051805280538054805580568057805880598060806180628063806480658066806780688069807080718072807380748075807680778078807980808081808280838084808580868087808880898090809180928093809480958096809780988099810081018102810381048105810681078108810981108111811281138114811581168117811881198120812181228123812481258126812781288129813081318132813381348135813681378138813981408141814281438144814581468147814881498150815181528153815481558156815781588159816081618162816381648165816681678168816981708171817281738174817581768177817881798180818181828183818481858186818781888189819081918192819381948195819681978198819982008201820282038204820582068207820882098210821182128213821482158216821782188219822082218222822382248225822682278228822982308231823282338234823582368237823882398240824182428243824482458246824782488249825082518252825382548255825682578258825982608261826282638264826582668267826882698270827182728273827482758276827782788279828082818282828382848285828682878288828982908291829282938294829582968297829882998300830183028303830483058306830783088309831083118312831383148315831683178318831983208321832283238324832583268327832883298330833183328333833483358336833783388339834083418342834383448345834683478348834983508351835283538354835583568357835883598360836183628363836483658366836783688369837083718372837383748375837683778378837983808381838283838384838583868387838883898390839183928393839483958396839783988399840084018402840384048405840684078408840984108411841284138414841584168417841884198420842184228423842484258426842784288429843084318432843384348435843684378438843984408441844284438444844584468447844884498450845184528453845484558456845784588459846084618462846384648465846684678468846984708471847284738474847584768477847884798480848184828483848484858486848784888489849084918492849384948495849684978498849985008501850285038504850585068507850885098510851185128513851485158516851785188519852085218522852385248525852685278528852985308531853285338534853585368537853885398540854185428543854485458546854785488549855085518552855385548555855685578558855985608561856285638564856585668567856885698570857185728573857485758576857785788579858085818582858385848585858685878588858985908591859285938594859585968597859885998600860186028603860486058606860786088609861086118612861386148615861686178618861986208621862286238624862586268627862886298630863186328633863486358636863786388639864086418642864386448645864686478648864986508651865286538654865586568657865886598660866186628663866486658666866786688669867086718672867386748675867686778678867986808681868286838684868586868687868886898690869186928693869486958696869786988699870087018702870387048705870687078708870987108711871287138714871587168717871887198720872187228723872487258726872787288729873087318732873387348735873687378738873987408741874287438744874587468747874887498750875187528753875487558756875787588759876087618762876387648765876687678768876987708771877287738774877587768777877887798780878187828783878487858786878787888789879087918792879387948795879687978798879988008801880288038804880588068807880888098810881188128813881488158816881788188819882088218822882388248825882688278828882988308831883288338834883588368837883888398840884188428843884488458846884788488849885088518852885388548855885688578858885988608861886288638864886588668867886888698870887188728873887488758876887788788879888088818882888388848885888688878888888988908891889288938894889588968897889888998900890189028903890489058906890789088909891089118912891389148915891689178918891989208921892289238924892589268927892889298930893189328933893489358936893789388939894089418942894389448945894689478948894989508951895289538954895589568957895889598960896189628963896489658966896789688969897089718972897389748975897689778978897989808981898289838984898589868987898889898990899189928993899489958996899789988999900090019002900390049005900690079008900990109011901290139014901590169017901890199020902190229023902490259026902790289029903090319032903390349035903690379038903990409041904290439044904590469047904890499050905190529053905490559056905790589059906090619062906390649065906690679068906990709071907290739074907590769077907890799080908190829083908490859086908790889089909090919092909390949095909690979098909991009101910291039104910591069107910891099110911191129113911491159116911791189119912091219122912391249125912691279128912991309131913291339134913591369137913891399140914191429143914491459146914791489149915091519152915391549155915691579158915991609161916291639164916591669167916891699170917191729173917491759176917791789179918091819182918391849185918691879188918991909191919291939194919591969197919891999200920192029203920492059206920792089209921092119212921392149215921692179218921992209221922292239224922592269227922892299230923192329233923492359236923792389239924092419242924392449245924692479248924992509251925292539254925592569257925892599260926192629263926492659266926792689269927092719272927392749275927692779278927992809281928292839284928592869287928892899290929192929293929492959296929792989299930093019302930393049305930693079308930993109311931293139314931593169317931893199320932193229323932493259326932793289329933093319332933393349335933693379338933993409341934293439344934593469347934893499350935193529353935493559356935793589359936093619362936393649365936693679368936993709371937293739374937593769377937893799380938193829383938493859386938793889389939093919392939393949395939693979398939994009401940294039404940594069407940894099410941194129413941494159416941794189419942094219422942394249425942694279428942994309431943294339434943594369437943894399440944194429443944494459446944794489449945094519452945394549455945694579458945994609461946294639464946594669467946894699470947194729473947494759476947794789479948094819482948394849485948694879488948994909491949294939494949594969497949894999500950195029503950495059506950795089509951095119512951395149515951695179518951995209521952295239524952595269527952895299530953195329533953495359536953795389539954095419542954395449545954695479548954995509551955295539554955595569557955895599560956195629563956495659566956795689569957095719572957395749575957695779578957995809581958295839584958595869587958895899590959195929593959495959596959795989599960096019602960396049605960696079608960996109611961296139614961596169617961896199620962196229623962496259626962796289629963096319632963396349635963696379638963996409641964296439644964596469647964896499650965196529653965496559656965796589659966096619662966396649665966696679668966996709671967296739674967596769677967896799680968196829683968496859686968796889689969096919692969396949695969696979698969997009701970297039704970597069707970897099710971197129713971497159716971797189719972097219722972397249725972697279728972997309731973297339734973597369737973897399740974197429743974497459746974797489749975097519752975397549755975697579758975997609761976297639764976597669767976897699770977197729773977497759776977797789779978097819782978397849785978697879788978997909791979297939794979597969797979897999800980198029803980498059806980798089809981098119812981398149815981698179818981998209821982298239824982598269827982898299830983198329833983498359836983798389839984098419842984398449845984698479848984998509851985298539854985598569857985898599860986198629863986498659866986798689869987098719872987398749875987698779878987998809881988298839884988598869887988898899890989198929893989498959896989798989899990099019902990399049905990699079908990999109911991299139914991599169917991899199920992199229923992499259926992799289929993099319932993399349935993699379938993999409941994299439944994599469947994899499950995199529953995499559956995799589959996099619962996399649965996699679968996999709971997299739974997599769977997899799980998199829983998499859986998799889989999099919992999399949995999699979998999910000100011000210003100041000510006100071000810009100101001110012100131001410015100161001710018100191002010021100221002310024100251002610027100281002910030100311003210033100341003510036100371003810039100401004110042100431004410045100461004710048100491005010051100521005310054100551005610057100581005910060100611006210063100641006510066100671006810069100701007110072100731007410075100761007710078100791008010081100821008310084100851008610087100881008910090100911009210093100941009510096100971009810099101001010110102101031010410105101061010710108101091011010111101121011310114101151011610117101181011910120101211012210123101241012510126101271012810129101301013110132101331013410135101361013710138101391014010141101421014310144101451014610147101481014910150101511015210153101541015510156101571015810159101601016110162101631016410165101661016710168101691017010171101721017310174101751017610177101781017910180101811018210183101841018510186101871018810189101901019110192101931019410195101961019710198101991020010201102021020310204102051020610207102081020910210102111021210213102141021510216102171021810219102201022110222102231022410225102261022710228102291023010231102321023310234102351023610237102381023910240102411024210243102441024510246102471024810249102501025110252102531025410255102561025710258102591026010261102621026310264102651026610267102681026910270102711027210273102741027510276102771027810279102801028110282102831028410285102861028710288102891029010291102921029310294102951029610297102981029910300103011030210303103041030510306103071030810309103101031110312103131031410315103161031710318103191032010321103221032310324103251032610327103281032910330103311033210333103341033510336103371033810339103401034110342103431034410345103461034710348103491035010351103521035310354103551035610357103581035910360103611036210363103641036510366103671036810369103701037110372103731037410375103761037710378103791038010381103821038310384103851038610387103881038910390103911039210393103941039510396103971039810399104001040110402104031040410405104061040710408104091041010411104121041310414104151041610417104181041910420104211042210423104241042510426104271042810429104301043110432104331043410435104361043710438104391044010441104421044310444104451044610447104481044910450104511045210453104541045510456104571045810459104601046110462104631046410465104661046710468104691047010471104721047310474104751047610477104781047910480104811048210483104841048510486104871048810489104901049110492104931049410495104961049710498104991050010501105021050310504105051050610507105081050910510105111051210513105141051510516105171051810519105201052110522105231052410525105261052710528105291053010531105321053310534105351053610537105381053910540105411054210543105441054510546105471054810549105501055110552105531055410555105561055710558105591056010561105621056310564105651056610567105681056910570105711057210573105741057510576105771057810579105801058110582105831058410585105861058710588105891059010591105921059310594105951059610597105981059910600106011060210603106041060510606106071060810609106101061110612106131061410615106161061710618106191062010621106221062310624106251062610627106281062910630106311063210633106341063510636106371063810639106401064110642106431064410645106461064710648106491065010651106521065310654106551065610657106581065910660106611066210663106641066510666106671066810669106701067110672106731067410675106761067710678106791068010681106821068310684106851068610687106881068910690106911069210693106941069510696106971069810699107001070110702107031070410705107061070710708107091071010711107121071310714107151071610717107181071910720107211072210723107241072510726107271072810729107301073110732107331073410735107361073710738107391074010741107421074310744107451074610747107481074910750107511075210753107541075510756107571075810759107601076110762107631076410765107661076710768107691077010771107721077310774107751077610777107781077910780107811078210783107841078510786107871078810789107901079110792107931079410795107961079710798107991080010801108021080310804108051080610807108081080910810108111081210813108141081510816108171081810819108201082110822108231082410825108261082710828108291083010831108321083310834108351083610837108381083910840108411084210843108441084510846108471084810849108501085110852108531085410855108561085710858108591086010861108621086310864108651086610867108681086910870108711087210873108741087510876108771087810879108801088110882108831088410885108861088710888108891089010891108921089310894108951089610897108981089910900109011090210903109041090510906109071090810909109101091110912109131091410915109161091710918109191092010921109221092310924109251092610927109281092910930109311093210933109341093510936109371093810939109401094110942109431094410945109461094710948109491095010951109521095310954109551095610957109581095910960109611096210963109641096510966109671096810969109701097110972109731097410975109761097710978109791098010981109821098310984109851098610987109881098910990109911099210993109941099510996109971099810999110001100111002110031100411005110061100711008110091101011011110121101311014110151101611017110181101911020110211102211023110241102511026110271102811029110301103111032110331103411035110361103711038110391104011041110421104311044110451104611047110481104911050110511105211053110541105511056110571105811059110601106111062110631106411065110661106711068110691107011071110721107311074110751107611077110781107911080110811108211083110841108511086110871108811089110901109111092110931109411095110961109711098110991110011101111021110311104111051110611107111081110911110111111111211113111141111511116111171111811119111201112111122111231112411125111261112711128111291113011131111321113311134111351113611137111381113911140111411114211143111441114511146111471114811149111501115111152111531115411155111561115711158111591116011161111621116311164111651116611167111681116911170111711117211173111741117511176111771117811179111801118111182111831118411185111861118711188111891119011191111921119311194111951119611197111981119911200112011120211203112041120511206112071120811209112101121111212112131121411215112161121711218112191122011221112221122311224112251122611227112281122911230112311123211233112341123511236112371123811239112401124111242112431124411245112461124711248112491125011251112521125311254112551125611257112581125911260112611126211263112641126511266112671126811269112701127111272112731127411275112761127711278112791128011281112821128311284112851128611287112881128911290112911129211293112941129511296112971129811299113001130111302113031130411305113061130711308113091131011311113121131311314113151131611317113181131911320113211132211323113241132511326113271132811329113301133111332113331133411335113361133711338113391134011341113421134311344113451134611347113481134911350113511135211353113541135511356113571135811359113601136111362113631136411365113661136711368113691137011371113721137311374113751137611377113781137911380113811138211383113841138511386113871138811389113901139111392113931139411395113961139711398113991140011401114021140311404114051140611407114081140911410114111141211413114141141511416114171141811419114201142111422114231142411425114261142711428114291143011431114321143311434114351143611437114381143911440114411144211443114441144511446114471144811449114501145111452114531145411455114561145711458114591146011461114621146311464114651146611467114681146911470114711147211473114741147511476114771147811479114801148111482114831148411485114861148711488114891149011491114921149311494114951149611497114981149911500115011150211503115041150511506115071150811509115101151111512115131151411515115161151711518115191152011521115221152311524115251152611527115281152911530115311153211533115341153511536115371153811539115401154111542115431154411545115461154711548115491155011551115521155311554115551155611557115581155911560115611156211563115641156511566115671156811569115701157111572115731157411575115761157711578115791158011581115821158311584115851158611587115881158911590115911159211593115941159511596115971159811599116001160111602116031160411605116061160711608116091161011611116121161311614116151161611617116181161911620116211162211623116241162511626116271162811629116301163111632116331163411635116361163711638116391164011641116421164311644116451164611647116481164911650116511165211653116541165511656116571165811659116601166111662116631166411665116661166711668116691167011671116721167311674116751167611677116781167911680116811168211683116841168511686116871168811689116901169111692116931169411695116961169711698116991170011701117021170311704117051170611707117081170911710117111171211713117141171511716117171171811719117201172111722117231172411725117261172711728117291173011731117321173311734117351173611737117381173911740117411174211743117441174511746117471174811749117501175111752117531175411755117561175711758117591176011761117621176311764117651176611767117681176911770117711177211773117741177511776117771177811779117801178111782117831178411785117861178711788117891179011791117921179311794117951179611797117981179911800118011180211803118041180511806118071180811809118101181111812118131181411815118161181711818118191182011821118221182311824118251182611827118281182911830118311183211833118341183511836118371183811839118401184111842118431184411845118461184711848118491185011851118521185311854118551185611857118581185911860118611186211863118641186511866118671186811869118701187111872118731187411875118761187711878118791188011881118821188311884118851188611887118881188911890118911189211893118941189511896118971189811899119001190111902119031190411905119061190711908119091191011911119121191311914119151191611917119181191911920119211192211923119241192511926119271192811929119301193111932119331193411935119361193711938119391194011941119421194311944119451194611947119481194911950119511195211953119541195511956119571195811959119601196111962119631196411965119661196711968119691197011971119721197311974119751197611977119781197911980119811198211983119841198511986119871198811989119901199111992119931199411995119961199711998119991200012001120021200312004120051200612007120081200912010120111201212013120141201512016120171201812019120201202112022120231202412025120261202712028120291203012031120321203312034120351203612037120381203912040120411204212043120441204512046120471204812049120501205112052120531205412055120561205712058120591206012061120621206312064120651206612067120681206912070120711207212073120741207512076120771207812079120801208112082120831208412085120861208712088120891209012091120921209312094120951209612097120981209912100121011210212103121041210512106121071210812109121101211112112121131211412115121161211712118121191212012121121221212312124121251212612127121281212912130121311213212133121341213512136121371213812139121401214112142121431214412145121461214712148121491215012151121521215312154121551215612157121581215912160121611216212163121641216512166121671216812169121701217112172121731217412175121761217712178121791218012181121821218312184121851218612187121881218912190121911219212193121941219512196121971219812199122001220112202122031220412205122061220712208122091221012211122121221312214122151221612217122181221912220122211222212223122241222512226122271222812229122301223112232122331223412235122361223712238122391224012241122421224312244122451224612247122481224912250122511225212253122541225512256122571225812259122601226112262122631226412265122661226712268122691227012271122721227312274122751227612277122781227912280122811228212283122841228512286122871228812289122901229112292122931229412295122961229712298122991230012301123021230312304123051230612307123081230912310123111231212313123141231512316123171231812319123201232112322123231232412325123261232712328123291233012331123321233312334123351233612337123381233912340123411234212343123441234512346123471234812349123501235112352123531235412355123561235712358123591236012361123621236312364123651236612367123681236912370123711237212373123741237512376123771237812379123801238112382123831238412385123861238712388123891239012391123921239312394123951239612397123981239912400124011240212403124041240512406124071240812409124101241112412124131241412415124161241712418124191242012421124221242312424124251242612427124281242912430124311243212433124341243512436124371243812439124401244112442124431244412445124461244712448124491245012451124521245312454124551245612457124581245912460124611246212463124641246512466124671246812469124701247112472124731247412475124761247712478124791248012481124821248312484124851248612487124881248912490124911249212493124941249512496124971249812499125001250112502125031250412505125061250712508125091251012511125121251312514125151251612517125181251912520125211252212523125241252512526125271252812529125301253112532125331253412535125361253712538125391254012541125421254312544125451254612547125481254912550125511255212553125541255512556125571255812559125601256112562125631256412565125661256712568125691257012571125721257312574125751257612577125781257912580125811258212583125841258512586125871258812589125901259112592125931259412595125961259712598125991260012601126021260312604126051260612607126081260912610126111261212613126141261512616126171261812619126201262112622126231262412625126261262712628126291263012631126321263312634126351263612637126381263912640126411264212643126441264512646126471264812649126501265112652126531265412655126561265712658126591266012661126621266312664126651266612667126681266912670126711267212673126741267512676126771267812679126801268112682126831268412685126861268712688126891269012691126921269312694126951269612697126981269912700127011270212703127041270512706127071270812709127101271112712127131271412715127161271712718127191272012721127221272312724127251272612727127281272912730127311273212733127341273512736127371273812739127401274112742127431274412745127461274712748127491275012751127521275312754127551275612757127581275912760127611276212763127641276512766127671276812769127701277112772127731277412775127761277712778127791278012781127821278312784127851278612787127881278912790127911279212793127941279512796127971279812799128001280112802128031280412805128061280712808128091281012811128121281312814128151281612817128181281912820128211282212823128241282512826128271282812829128301283112832128331283412835128361283712838128391284012841128421284312844128451284612847128481284912850128511285212853128541285512856128571285812859128601286112862128631286412865128661286712868128691287012871128721287312874128751287612877128781287912880128811288212883128841288512886128871288812889128901289112892128931289412895128961289712898128991290012901129021290312904129051290612907129081290912910129111291212913129141291512916129171291812919129201292112922129231292412925129261292712928129291293012931129321293312934129351293612937129381293912940129411294212943129441294512946129471294812949129501295112952129531295412955129561295712958129591296012961129621296312964129651296612967129681296912970129711297212973129741297512976129771297812979129801298112982129831298412985129861298712988129891299012991129921299312994129951299612997129981299913000130011300213003130041300513006130071300813009130101301113012130131301413015130161301713018130191302013021130221302313024130251302613027130281302913030130311303213033130341303513036130371303813039130401304113042130431304413045130461304713048130491305013051130521305313054130551305613057130581305913060130611306213063130641306513066130671306813069130701307113072130731307413075130761307713078130791308013081130821308313084130851308613087130881308913090130911309213093130941309513096130971309813099131001310113102131031310413105131061310713108131091311013111131121311313114131151311613117131181311913120131211312213123131241312513126131271312813129131301313113132131331313413135131361313713138131391314013141131421314313144131451314613147131481314913150131511315213153131541315513156131571315813159131601316113162131631316413165131661316713168131691317013171131721317313174131751317613177131781317913180131811318213183131841318513186131871318813189131901319113192131931319413195131961319713198131991320013201132021320313204132051320613207132081320913210132111321213213132141321513216132171321813219132201322113222132231322413225132261322713228132291323013231132321323313234132351323613237132381323913240132411324213243132441324513246132471324813249132501325113252132531325413255132561325713258132591326013261132621326313264132651326613267132681326913270132711327213273132741327513276132771327813279132801328113282132831328413285132861328713288132891329013291132921329313294132951329613297132981329913300133011330213303133041330513306133071330813309133101331113312133131331413315133161331713318133191332013321133221332313324133251332613327133281332913330133311333213333133341333513336133371333813339133401334113342133431334413345133461334713348133491335013351133521335313354133551335613357133581335913360133611336213363133641336513366133671336813369133701337113372133731337413375133761337713378133791338013381133821338313384133851338613387133881338913390133911339213393133941339513396133971339813399134001340113402134031340413405134061340713408134091341013411134121341313414134151341613417134181341913420134211342213423134241342513426134271342813429134301343113432134331343413435134361343713438134391344013441134421344313444134451344613447134481344913450134511345213453134541345513456134571345813459134601346113462134631346413465134661346713468134691347013471134721347313474134751347613477134781347913480134811348213483134841348513486134871348813489134901349113492134931349413495134961349713498134991350013501135021350313504135051350613507135081350913510135111351213513135141351513516135171351813519135201352113522135231352413525135261352713528135291353013531135321353313534135351353613537135381353913540135411354213543135441354513546135471354813549135501355113552135531355413555135561355713558135591356013561135621356313564135651356613567135681356913570135711357213573135741357513576135771357813579135801358113582135831358413585135861358713588135891359013591135921359313594135951359613597135981359913600136011360213603136041360513606136071360813609136101361113612136131361413615136161361713618136191362013621136221362313624136251362613627136281362913630136311363213633136341363513636136371363813639136401364113642136431364413645136461364713648136491365013651136521365313654136551365613657136581365913660136611366213663136641366513666136671366813669136701367113672136731367413675136761367713678136791368013681136821368313684136851368613687136881368913690136911369213693136941369513696136971369813699137001370113702137031370413705137061370713708137091371013711137121371313714137151371613717137181371913720137211372213723137241372513726137271372813729137301373113732137331373413735137361373713738137391374013741137421374313744137451374613747137481374913750137511375213753137541375513756137571375813759137601376113762137631376413765137661376713768137691377013771137721377313774137751377613777137781377913780137811378213783137841378513786137871378813789137901379113792137931379413795137961379713798137991380013801138021380313804138051380613807138081380913810138111381213813138141381513816138171381813819138201382113822138231382413825138261382713828138291383013831138321383313834138351383613837138381383913840138411384213843138441384513846138471384813849138501385113852138531385413855138561385713858138591386013861138621386313864138651386613867138681386913870138711387213873138741387513876138771387813879138801388113882138831388413885138861388713888138891389013891138921389313894138951389613897138981389913900139011390213903139041390513906139071390813909139101391113912139131391413915139161391713918139191392013921139221392313924139251392613927139281392913930139311393213933139341393513936139371393813939139401394113942139431394413945139461394713948139491395013951139521395313954139551395613957139581395913960139611396213963139641396513966139671396813969139701397113972139731397413975139761397713978139791398013981139821398313984139851398613987139881398913990139911399213993139941399513996139971399813999140001400114002140031400414005140061400714008140091401014011140121401314014140151401614017140181401914020140211402214023140241402514026140271402814029140301403114032140331403414035140361403714038140391404014041140421404314044140451404614047140481404914050140511405214053140541405514056140571405814059140601406114062140631406414065140661406714068140691407014071140721407314074140751407614077140781407914080140811408214083140841408514086140871408814089140901409114092140931409414095140961409714098140991410014101141021410314104141051410614107141081410914110141111411214113141141411514116141171411814119141201412114122141231412414125141261412714128141291413014131141321413314134141351413614137141381413914140141411414214143141441414514146141471414814149141501415114152141531415414155141561415714158141591416014161141621416314164141651416614167141681416914170141711417214173141741417514176141771417814179141801418114182141831418414185141861418714188141891419014191141921419314194141951419614197141981419914200142011420214203142041420514206142071420814209142101421114212142131421414215142161421714218142191422014221142221422314224142251422614227142281422914230142311423214233142341423514236142371423814239142401424114242142431424414245142461424714248142491425014251142521425314254142551425614257142581425914260142611426214263142641426514266142671426814269142701427114272142731427414275142761427714278142791428014281142821428314284142851428614287142881428914290142911429214293142941429514296142971429814299143001430114302143031430414305143061430714308143091431014311143121431314314143151431614317143181431914320143211432214323143241432514326143271432814329143301433114332143331433414335143361433714338143391434014341143421434314344143451434614347143481434914350143511435214353143541435514356143571435814359143601436114362143631436414365143661436714368143691437014371143721437314374143751437614377143781437914380143811438214383143841438514386143871438814389143901439114392143931439414395143961439714398143991440014401144021440314404144051440614407144081440914410144111441214413144141441514416144171441814419144201442114422144231442414425144261442714428144291443014431144321443314434144351443614437144381443914440144411444214443144441444514446144471444814449144501445114452144531445414455144561445714458144591446014461144621446314464144651446614467144681446914470144711447214473144741447514476144771447814479144801448114482144831448414485144861448714488144891449014491144921449314494144951449614497144981449914500145011450214503145041450514506145071450814509145101451114512145131451414515145161451714518145191452014521145221452314524145251452614527145281452914530145311453214533145341453514536145371453814539145401454114542145431454414545145461454714548145491455014551145521455314554145551455614557145581455914560145611456214563145641456514566145671456814569145701457114572145731457414575145761457714578145791458014581145821458314584145851458614587145881458914590145911459214593145941459514596145971459814599146001460114602146031460414605146061460714608146091461014611146121461314614146151461614617146181461914620146211462214623146241462514626146271462814629146301463114632146331463414635146361463714638146391464014641146421464314644146451464614647146481464914650146511465214653146541465514656146571465814659146601466114662146631466414665146661466714668146691467014671146721467314674146751467614677146781467914680146811468214683146841468514686146871468814689146901469114692146931469414695146961469714698146991470014701147021470314704147051470614707147081470914710147111471214713147141471514716147171471814719147201472114722147231472414725147261472714728147291473014731147321473314734147351473614737147381473914740147411474214743147441474514746147471474814749147501475114752147531475414755147561475714758147591476014761147621476314764147651476614767147681476914770147711477214773147741477514776147771477814779147801478114782147831478414785147861478714788147891479014791147921479314794147951479614797147981479914800148011480214803148041480514806148071480814809148101481114812148131481414815148161481714818148191482014821148221482314824148251482614827148281482914830148311483214833148341483514836148371483814839148401484114842148431484414845148461484714848148491485014851148521485314854148551485614857148581485914860148611486214863148641486514866148671486814869148701487114872148731487414875148761487714878148791488014881148821488314884148851488614887148881488914890148911489214893
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for LTO plugin for ld 0.1.
  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 \$(( 1 + 1 )) = 2 || exit 1
  186. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  187. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  188. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  189. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  190. PATH=/empty FPATH=/empty; export PATH FPATH
  191. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  192. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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='LTO plugin for ld'
  539. PACKAGE_TARNAME='lto-plugin'
  540. PACKAGE_VERSION='0.1'
  541. PACKAGE_STRING='LTO plugin for ld 0.1'
  542. PACKAGE_BUGREPORT=''
  543. PACKAGE_URL=''
  544. # Factoring default headers for most tests.
  545. ac_includes_default="\
  546. #include <stdio.h>
  547. #ifdef HAVE_SYS_TYPES_H
  548. # include <sys/types.h>
  549. #endif
  550. #ifdef HAVE_SYS_STAT_H
  551. # include <sys/stat.h>
  552. #endif
  553. #ifdef STDC_HEADERS
  554. # include <stdlib.h>
  555. # include <stddef.h>
  556. #else
  557. # ifdef HAVE_STDLIB_H
  558. # include <stdlib.h>
  559. # endif
  560. #endif
  561. #ifdef HAVE_STRING_H
  562. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  563. # include <memory.h>
  564. # endif
  565. # include <string.h>
  566. #endif
  567. #ifdef HAVE_STRINGS_H
  568. # include <strings.h>
  569. #endif
  570. #ifdef HAVE_INTTYPES_H
  571. # include <inttypes.h>
  572. #endif
  573. #ifdef HAVE_STDINT_H
  574. # include <stdint.h>
  575. #endif
  576. #ifdef HAVE_UNISTD_H
  577. # include <unistd.h>
  578. #endif"
  579. ac_subst_vars='am__EXEEXT_FALSE
  580. am__EXEEXT_TRUE
  581. LTLIBOBJS
  582. LIBOBJS
  583. target_noncanonical
  584. lt_host_flags
  585. OTOOL64
  586. OTOOL
  587. LIPO
  588. NMEDIT
  589. DSYMUTIL
  590. RANLIB
  591. AR
  592. OBJDUMP
  593. LN_S
  594. NM
  595. ac_ct_DUMPBIN
  596. DUMPBIN
  597. LD
  598. FGREP
  599. SED
  600. LIBTOOL
  601. LTO_PLUGIN_USE_SYMVER_SUN_FALSE
  602. LTO_PLUGIN_USE_SYMVER_SUN_TRUE
  603. LTO_PLUGIN_USE_SYMVER_GNU_FALSE
  604. LTO_PLUGIN_USE_SYMVER_GNU_TRUE
  605. LTO_PLUGIN_USE_SYMVER_FALSE
  606. LTO_PLUGIN_USE_SYMVER_TRUE
  607. get_gcc_base_ver
  608. real_target_noncanonical
  609. accel_dir_suffix
  610. gcc_build_dir
  611. CET_HOST_FLAGS
  612. ac_lto_plugin_ldflags
  613. ac_lto_plugin_warn_cflags
  614. EGREP
  615. GREP
  616. CPP
  617. am__fastdepCC_FALSE
  618. am__fastdepCC_TRUE
  619. CCDEPMODE
  620. am__nodep
  621. AMDEPBACKSLASH
  622. AMDEP_FALSE
  623. AMDEP_TRUE
  624. am__quote
  625. am__include
  626. DEPDIR
  627. OBJEXT
  628. EXEEXT
  629. ac_ct_CC
  630. CPPFLAGS
  631. LDFLAGS
  632. CFLAGS
  633. CC
  634. with_libiberty
  635. MAINT
  636. MAINTAINER_MODE_FALSE
  637. MAINTAINER_MODE_TRUE
  638. AM_BACKSLASH
  639. AM_DEFAULT_VERBOSITY
  640. AM_DEFAULT_V
  641. AM_V
  642. am__untar
  643. am__tar
  644. AMTAR
  645. am__leading_dot
  646. SET_MAKE
  647. AWK
  648. mkdir_p
  649. MKDIR_P
  650. INSTALL_STRIP_PROGRAM
  651. STRIP
  652. install_sh
  653. MAKEINFO
  654. AUTOHEADER
  655. AUTOMAKE
  656. AUTOCONF
  657. ACLOCAL
  658. VERSION
  659. PACKAGE
  660. CYGPATH_W
  661. am__isrc
  662. INSTALL_DATA
  663. INSTALL_SCRIPT
  664. INSTALL_PROGRAM
  665. target_subdir
  666. host_subdir
  667. build_subdir
  668. build_libsubdir
  669. target_os
  670. target_vendor
  671. target_cpu
  672. target
  673. host_os
  674. host_vendor
  675. host_cpu
  676. host
  677. build_os
  678. build_vendor
  679. build_cpu
  680. build
  681. target_alias
  682. host_alias
  683. build_alias
  684. LIBS
  685. ECHO_T
  686. ECHO_N
  687. ECHO_C
  688. DEFS
  689. mandir
  690. localedir
  691. libdir
  692. psdir
  693. pdfdir
  694. dvidir
  695. htmldir
  696. infodir
  697. docdir
  698. oldincludedir
  699. includedir
  700. localstatedir
  701. sharedstatedir
  702. sysconfdir
  703. datadir
  704. datarootdir
  705. libexecdir
  706. sbindir
  707. bindir
  708. program_transform_name
  709. prefix
  710. exec_prefix
  711. PACKAGE_URL
  712. PACKAGE_BUGREPORT
  713. PACKAGE_STRING
  714. PACKAGE_VERSION
  715. PACKAGE_TARNAME
  716. PACKAGE_NAME
  717. PATH_SEPARATOR
  718. SHELL'
  719. ac_subst_files=''
  720. ac_user_opts='
  721. enable_option_checking
  722. with_build_libsubdir
  723. enable_silent_rules
  724. enable_maintainer_mode
  725. with_libiberty
  726. enable_dependency_tracking
  727. enable_largefile
  728. enable_cet
  729. with_gcc_major_version_only
  730. enable_shared
  731. enable_static
  732. with_pic
  733. enable_fast_install
  734. with_gnu_ld
  735. enable_libtool_lock
  736. '
  737. ac_precious_vars='build_alias
  738. host_alias
  739. target_alias
  740. CC
  741. CFLAGS
  742. LDFLAGS
  743. LIBS
  744. CPPFLAGS
  745. CPP'
  746. # Initialize some variables set by options.
  747. ac_init_help=
  748. ac_init_version=false
  749. ac_unrecognized_opts=
  750. ac_unrecognized_sep=
  751. # The variables have the same names as the options, with
  752. # dashes changed to underlines.
  753. cache_file=/dev/null
  754. exec_prefix=NONE
  755. no_create=
  756. no_recursion=
  757. prefix=NONE
  758. program_prefix=NONE
  759. program_suffix=NONE
  760. program_transform_name=s,x,x,
  761. silent=
  762. site=
  763. srcdir=
  764. verbose=
  765. x_includes=NONE
  766. x_libraries=NONE
  767. # Installation directory options.
  768. # These are left unexpanded so users can "make install exec_prefix=/foo"
  769. # and all the variables that are supposed to be based on exec_prefix
  770. # by default will actually change.
  771. # Use braces instead of parens because sh, perl, etc. also accept them.
  772. # (The list follows the same order as the GNU Coding Standards.)
  773. bindir='${exec_prefix}/bin'
  774. sbindir='${exec_prefix}/sbin'
  775. libexecdir='${exec_prefix}/libexec'
  776. datarootdir='${prefix}/share'
  777. datadir='${datarootdir}'
  778. sysconfdir='${prefix}/etc'
  779. sharedstatedir='${prefix}/com'
  780. localstatedir='${prefix}/var'
  781. includedir='${prefix}/include'
  782. oldincludedir='/usr/include'
  783. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  784. infodir='${datarootdir}/info'
  785. htmldir='${docdir}'
  786. dvidir='${docdir}'
  787. pdfdir='${docdir}'
  788. psdir='${docdir}'
  789. libdir='${exec_prefix}/lib'
  790. localedir='${datarootdir}/locale'
  791. mandir='${datarootdir}/man'
  792. ac_prev=
  793. ac_dashdash=
  794. for ac_option
  795. do
  796. # If the previous option needs an argument, assign it.
  797. if test -n "$ac_prev"; then
  798. eval $ac_prev=\$ac_option
  799. ac_prev=
  800. continue
  801. fi
  802. case $ac_option in
  803. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  804. *=) ac_optarg= ;;
  805. *) ac_optarg=yes ;;
  806. esac
  807. # Accept the important Cygnus configure options, so we can diagnose typos.
  808. case $ac_dashdash$ac_option in
  809. --)
  810. ac_dashdash=yes ;;
  811. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  812. ac_prev=bindir ;;
  813. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  814. bindir=$ac_optarg ;;
  815. -build | --build | --buil | --bui | --bu)
  816. ac_prev=build_alias ;;
  817. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  818. build_alias=$ac_optarg ;;
  819. -cache-file | --cache-file | --cache-fil | --cache-fi \
  820. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  821. ac_prev=cache_file ;;
  822. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  823. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  824. cache_file=$ac_optarg ;;
  825. --config-cache | -C)
  826. cache_file=config.cache ;;
  827. -datadir | --datadir | --datadi | --datad)
  828. ac_prev=datadir ;;
  829. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  830. datadir=$ac_optarg ;;
  831. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  832. | --dataroo | --dataro | --datar)
  833. ac_prev=datarootdir ;;
  834. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  835. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  836. datarootdir=$ac_optarg ;;
  837. -disable-* | --disable-*)
  838. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  839. # Reject names that are not valid shell variable names.
  840. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  841. as_fn_error $? "invalid feature name: $ac_useropt"
  842. ac_useropt_orig=$ac_useropt
  843. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  844. case $ac_user_opts in
  845. *"
  846. "enable_$ac_useropt"
  847. "*) ;;
  848. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  849. ac_unrecognized_sep=', ';;
  850. esac
  851. eval enable_$ac_useropt=no ;;
  852. -docdir | --docdir | --docdi | --doc | --do)
  853. ac_prev=docdir ;;
  854. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  855. docdir=$ac_optarg ;;
  856. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  857. ac_prev=dvidir ;;
  858. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  859. dvidir=$ac_optarg ;;
  860. -enable-* | --enable-*)
  861. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  862. # Reject names that are not valid shell variable names.
  863. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  864. as_fn_error $? "invalid feature name: $ac_useropt"
  865. ac_useropt_orig=$ac_useropt
  866. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  867. case $ac_user_opts in
  868. *"
  869. "enable_$ac_useropt"
  870. "*) ;;
  871. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  872. ac_unrecognized_sep=', ';;
  873. esac
  874. eval enable_$ac_useropt=\$ac_optarg ;;
  875. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  876. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  877. | --exec | --exe | --ex)
  878. ac_prev=exec_prefix ;;
  879. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  880. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  881. | --exec=* | --exe=* | --ex=*)
  882. exec_prefix=$ac_optarg ;;
  883. -gas | --gas | --ga | --g)
  884. # Obsolete; use --with-gas.
  885. with_gas=yes ;;
  886. -help | --help | --hel | --he | -h)
  887. ac_init_help=long ;;
  888. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  889. ac_init_help=recursive ;;
  890. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  891. ac_init_help=short ;;
  892. -host | --host | --hos | --ho)
  893. ac_prev=host_alias ;;
  894. -host=* | --host=* | --hos=* | --ho=*)
  895. host_alias=$ac_optarg ;;
  896. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  897. ac_prev=htmldir ;;
  898. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  899. | --ht=*)
  900. htmldir=$ac_optarg ;;
  901. -includedir | --includedir | --includedi | --included | --include \
  902. | --includ | --inclu | --incl | --inc)
  903. ac_prev=includedir ;;
  904. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  905. | --includ=* | --inclu=* | --incl=* | --inc=*)
  906. includedir=$ac_optarg ;;
  907. -infodir | --infodir | --infodi | --infod | --info | --inf)
  908. ac_prev=infodir ;;
  909. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  910. infodir=$ac_optarg ;;
  911. -libdir | --libdir | --libdi | --libd)
  912. ac_prev=libdir ;;
  913. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  914. libdir=$ac_optarg ;;
  915. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  916. | --libexe | --libex | --libe)
  917. ac_prev=libexecdir ;;
  918. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  919. | --libexe=* | --libex=* | --libe=*)
  920. libexecdir=$ac_optarg ;;
  921. -localedir | --localedir | --localedi | --localed | --locale)
  922. ac_prev=localedir ;;
  923. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  924. localedir=$ac_optarg ;;
  925. -localstatedir | --localstatedir | --localstatedi | --localstated \
  926. | --localstate | --localstat | --localsta | --localst | --locals)
  927. ac_prev=localstatedir ;;
  928. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  929. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  930. localstatedir=$ac_optarg ;;
  931. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  932. ac_prev=mandir ;;
  933. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  934. mandir=$ac_optarg ;;
  935. -nfp | --nfp | --nf)
  936. # Obsolete; use --without-fp.
  937. with_fp=no ;;
  938. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  939. | --no-cr | --no-c | -n)
  940. no_create=yes ;;
  941. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  942. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  943. no_recursion=yes ;;
  944. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  945. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  946. | --oldin | --oldi | --old | --ol | --o)
  947. ac_prev=oldincludedir ;;
  948. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  949. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  950. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  951. oldincludedir=$ac_optarg ;;
  952. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  953. ac_prev=prefix ;;
  954. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  955. prefix=$ac_optarg ;;
  956. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  957. | --program-pre | --program-pr | --program-p)
  958. ac_prev=program_prefix ;;
  959. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  960. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  961. program_prefix=$ac_optarg ;;
  962. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  963. | --program-suf | --program-su | --program-s)
  964. ac_prev=program_suffix ;;
  965. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  966. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  967. program_suffix=$ac_optarg ;;
  968. -program-transform-name | --program-transform-name \
  969. | --program-transform-nam | --program-transform-na \
  970. | --program-transform-n | --program-transform- \
  971. | --program-transform | --program-transfor \
  972. | --program-transfo | --program-transf \
  973. | --program-trans | --program-tran \
  974. | --progr-tra | --program-tr | --program-t)
  975. ac_prev=program_transform_name ;;
  976. -program-transform-name=* | --program-transform-name=* \
  977. | --program-transform-nam=* | --program-transform-na=* \
  978. | --program-transform-n=* | --program-transform-=* \
  979. | --program-transform=* | --program-transfor=* \
  980. | --program-transfo=* | --program-transf=* \
  981. | --program-trans=* | --program-tran=* \
  982. | --progr-tra=* | --program-tr=* | --program-t=*)
  983. program_transform_name=$ac_optarg ;;
  984. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  985. ac_prev=pdfdir ;;
  986. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  987. pdfdir=$ac_optarg ;;
  988. -psdir | --psdir | --psdi | --psd | --ps)
  989. ac_prev=psdir ;;
  990. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  991. psdir=$ac_optarg ;;
  992. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  993. | -silent | --silent | --silen | --sile | --sil)
  994. silent=yes ;;
  995. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  996. ac_prev=sbindir ;;
  997. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  998. | --sbi=* | --sb=*)
  999. sbindir=$ac_optarg ;;
  1000. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  1001. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  1002. | --sharedst | --shareds | --shared | --share | --shar \
  1003. | --sha | --sh)
  1004. ac_prev=sharedstatedir ;;
  1005. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  1006. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  1007. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1008. | --sha=* | --sh=*)
  1009. sharedstatedir=$ac_optarg ;;
  1010. -site | --site | --sit)
  1011. ac_prev=site ;;
  1012. -site=* | --site=* | --sit=*)
  1013. site=$ac_optarg ;;
  1014. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1015. ac_prev=srcdir ;;
  1016. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1017. srcdir=$ac_optarg ;;
  1018. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1019. | --syscon | --sysco | --sysc | --sys | --sy)
  1020. ac_prev=sysconfdir ;;
  1021. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1022. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1023. sysconfdir=$ac_optarg ;;
  1024. -target | --target | --targe | --targ | --tar | --ta | --t)
  1025. ac_prev=target_alias ;;
  1026. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1027. target_alias=$ac_optarg ;;
  1028. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1029. verbose=yes ;;
  1030. -version | --version | --versio | --versi | --vers | -V)
  1031. ac_init_version=: ;;
  1032. -with-* | --with-*)
  1033. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1034. # Reject names that are not valid shell variable names.
  1035. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1036. as_fn_error $? "invalid package name: $ac_useropt"
  1037. ac_useropt_orig=$ac_useropt
  1038. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1039. case $ac_user_opts in
  1040. *"
  1041. "with_$ac_useropt"
  1042. "*) ;;
  1043. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1044. ac_unrecognized_sep=', ';;
  1045. esac
  1046. eval with_$ac_useropt=\$ac_optarg ;;
  1047. -without-* | --without-*)
  1048. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1049. # Reject names that are not valid shell variable names.
  1050. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1051. as_fn_error $? "invalid package name: $ac_useropt"
  1052. ac_useropt_orig=$ac_useropt
  1053. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1054. case $ac_user_opts in
  1055. *"
  1056. "with_$ac_useropt"
  1057. "*) ;;
  1058. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1059. ac_unrecognized_sep=', ';;
  1060. esac
  1061. eval with_$ac_useropt=no ;;
  1062. --x)
  1063. # Obsolete; use --with-x.
  1064. with_x=yes ;;
  1065. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1066. | --x-incl | --x-inc | --x-in | --x-i)
  1067. ac_prev=x_includes ;;
  1068. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1069. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1070. x_includes=$ac_optarg ;;
  1071. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1072. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1073. ac_prev=x_libraries ;;
  1074. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1075. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1076. x_libraries=$ac_optarg ;;
  1077. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1078. Try \`$0 --help' for more information"
  1079. ;;
  1080. *=*)
  1081. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1082. # Reject names that are not valid shell variable names.
  1083. case $ac_envvar in #(
  1084. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1085. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1086. esac
  1087. eval $ac_envvar=\$ac_optarg
  1088. export $ac_envvar ;;
  1089. *)
  1090. # FIXME: should be removed in autoconf 3.0.
  1091. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1092. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1093. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1094. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1095. ;;
  1096. esac
  1097. done
  1098. if test -n "$ac_prev"; then
  1099. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1100. as_fn_error $? "missing argument to $ac_option"
  1101. fi
  1102. if test -n "$ac_unrecognized_opts"; then
  1103. case $enable_option_checking in
  1104. no) ;;
  1105. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1106. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1107. esac
  1108. fi
  1109. # Check all directory arguments for consistency.
  1110. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1111. datadir sysconfdir sharedstatedir localstatedir includedir \
  1112. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1113. libdir localedir mandir
  1114. do
  1115. eval ac_val=\$$ac_var
  1116. # Remove trailing slashes.
  1117. case $ac_val in
  1118. */ )
  1119. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1120. eval $ac_var=\$ac_val;;
  1121. esac
  1122. # Be sure to have absolute directory names.
  1123. case $ac_val in
  1124. [\\/$]* | ?:[\\/]* ) continue;;
  1125. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1126. esac
  1127. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1128. done
  1129. # There might be people who depend on the old broken behavior: `$host'
  1130. # used to hold the argument of --host etc.
  1131. # FIXME: To remove some day.
  1132. build=$build_alias
  1133. host=$host_alias
  1134. target=$target_alias
  1135. # FIXME: To remove some day.
  1136. if test "x$host_alias" != x; then
  1137. if test "x$build_alias" = x; then
  1138. cross_compiling=maybe
  1139. elif test "x$build_alias" != "x$host_alias"; then
  1140. cross_compiling=yes
  1141. fi
  1142. fi
  1143. ac_tool_prefix=
  1144. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1145. test "$silent" = yes && exec 6>/dev/null
  1146. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1147. ac_ls_di=`ls -di .` &&
  1148. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1149. as_fn_error $? "working directory cannot be determined"
  1150. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1151. as_fn_error $? "pwd does not report name of working directory"
  1152. # Find the source files, if location was not specified.
  1153. if test -z "$srcdir"; then
  1154. ac_srcdir_defaulted=yes
  1155. # Try the directory containing this script, then the parent directory.
  1156. ac_confdir=`$as_dirname -- "$as_myself" ||
  1157. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1158. X"$as_myself" : 'X\(//\)[^/]' \| \
  1159. X"$as_myself" : 'X\(//\)$' \| \
  1160. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1161. $as_echo X"$as_myself" |
  1162. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1163. s//\1/
  1164. q
  1165. }
  1166. /^X\(\/\/\)[^/].*/{
  1167. s//\1/
  1168. q
  1169. }
  1170. /^X\(\/\/\)$/{
  1171. s//\1/
  1172. q
  1173. }
  1174. /^X\(\/\).*/{
  1175. s//\1/
  1176. q
  1177. }
  1178. s/.*/./; q'`
  1179. srcdir=$ac_confdir
  1180. if test ! -r "$srcdir/$ac_unique_file"; then
  1181. srcdir=..
  1182. fi
  1183. else
  1184. ac_srcdir_defaulted=no
  1185. fi
  1186. if test ! -r "$srcdir/$ac_unique_file"; then
  1187. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1188. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1189. fi
  1190. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1191. ac_abs_confdir=`(
  1192. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1193. pwd)`
  1194. # When building in place, set srcdir=.
  1195. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1196. srcdir=.
  1197. fi
  1198. # Remove unnecessary trailing slashes from srcdir.
  1199. # Double slashes in file names in object file debugging info
  1200. # mess up M-x gdb in Emacs.
  1201. case $srcdir in
  1202. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1203. esac
  1204. for ac_var in $ac_precious_vars; do
  1205. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1206. eval ac_env_${ac_var}_value=\$${ac_var}
  1207. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1208. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1209. done
  1210. #
  1211. # Report the --help message.
  1212. #
  1213. if test "$ac_init_help" = "long"; then
  1214. # Omit some internal or obsolete options to make the list less imposing.
  1215. # This message is too long to be a string in the A/UX 3.1 sh.
  1216. cat <<_ACEOF
  1217. \`configure' configures LTO plugin for ld 0.1 to adapt to many kinds of systems.
  1218. Usage: $0 [OPTION]... [VAR=VALUE]...
  1219. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1220. VAR=VALUE. See below for descriptions of some of the useful variables.
  1221. Defaults for the options are specified in brackets.
  1222. Configuration:
  1223. -h, --help display this help and exit
  1224. --help=short display options specific to this package
  1225. --help=recursive display the short help of all the included packages
  1226. -V, --version display version information and exit
  1227. -q, --quiet, --silent do not print \`checking ...' messages
  1228. --cache-file=FILE cache test results in FILE [disabled]
  1229. -C, --config-cache alias for \`--cache-file=config.cache'
  1230. -n, --no-create do not create output files
  1231. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1232. Installation directories:
  1233. --prefix=PREFIX install architecture-independent files in PREFIX
  1234. [$ac_default_prefix]
  1235. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1236. [PREFIX]
  1237. By default, \`make install' will install all the files in
  1238. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1239. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1240. for instance \`--prefix=\$HOME'.
  1241. For better control, use the options below.
  1242. Fine tuning of the installation directories:
  1243. --bindir=DIR user executables [EPREFIX/bin]
  1244. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1245. --libexecdir=DIR program executables [EPREFIX/libexec]
  1246. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1247. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1248. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1249. --libdir=DIR object code libraries [EPREFIX/lib]
  1250. --includedir=DIR C header files [PREFIX/include]
  1251. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1252. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1253. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1254. --infodir=DIR info documentation [DATAROOTDIR/info]
  1255. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1256. --mandir=DIR man documentation [DATAROOTDIR/man]
  1257. --docdir=DIR documentation root [DATAROOTDIR/doc/lto-plugin]
  1258. --htmldir=DIR html documentation [DOCDIR]
  1259. --dvidir=DIR dvi documentation [DOCDIR]
  1260. --pdfdir=DIR pdf documentation [DOCDIR]
  1261. --psdir=DIR ps documentation [DOCDIR]
  1262. _ACEOF
  1263. cat <<\_ACEOF
  1264. Program names:
  1265. --program-prefix=PREFIX prepend PREFIX to installed program names
  1266. --program-suffix=SUFFIX append SUFFIX to installed program names
  1267. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1268. System types:
  1269. --build=BUILD configure for building on BUILD [guessed]
  1270. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1271. --target=TARGET configure for building compilers for TARGET [HOST]
  1272. _ACEOF
  1273. fi
  1274. if test -n "$ac_init_help"; then
  1275. case $ac_init_help in
  1276. short | recursive ) echo "Configuration of LTO plugin for ld 0.1:";;
  1277. esac
  1278. cat <<\_ACEOF
  1279. Optional Features:
  1280. --disable-option-checking ignore unrecognized --enable/--with options
  1281. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1282. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1283. --enable-silent-rules less verbose build output (undo: "make V=1")
  1284. --disable-silent-rules verbose build output (undo: "make V=0")
  1285. --enable-maintainer-mode
  1286. enable make rules and dependencies not useful (and
  1287. sometimes confusing) to the casual installer
  1288. --enable-dependency-tracking
  1289. do not reject slow dependency extractors
  1290. --disable-dependency-tracking
  1291. speeds up one-time build
  1292. --disable-largefile omit support for large files
  1293. --enable-cet enable Intel CET in host libraries [default=auto]
  1294. --enable-shared[=PKGS] build shared libraries [default=yes]
  1295. --enable-static[=PKGS] build static libraries [default=yes]
  1296. --enable-fast-install[=PKGS]
  1297. optimize for fast installation [default=yes]
  1298. --disable-libtool-lock avoid locking (might break parallel builds)
  1299. Optional Packages:
  1300. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1301. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1302. --with-build-libsubdir=DIR Directory where to find libraries for build system
  1303. --with-libiberty=PATH specify the directory where to find libiberty
  1304. [../libiberty]
  1305. --with-gcc-major-version-only
  1306. use only GCC major number in filesystem paths
  1307. --with-pic try to use only PIC/non-PIC objects [default=use
  1308. both]
  1309. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1310. Some influential environment variables:
  1311. CC C compiler command
  1312. CFLAGS C compiler flags
  1313. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1314. nonstandard directory <lib dir>
  1315. LIBS libraries to pass to the linker, e.g. -l<library>
  1316. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1317. you have headers in a nonstandard directory <include dir>
  1318. CPP C preprocessor
  1319. Use these variables to override the choices made by `configure' or to help
  1320. it to find libraries and programs with nonstandard names/locations.
  1321. Report bugs to the package provider.
  1322. _ACEOF
  1323. ac_status=$?
  1324. fi
  1325. if test "$ac_init_help" = "recursive"; then
  1326. # If there are subdirs, report their specific --help.
  1327. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1328. test -d "$ac_dir" ||
  1329. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1330. continue
  1331. ac_builddir=.
  1332. case "$ac_dir" in
  1333. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1334. *)
  1335. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1336. # A ".." for each directory in $ac_dir_suffix.
  1337. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1338. case $ac_top_builddir_sub in
  1339. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1340. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1341. esac ;;
  1342. esac
  1343. ac_abs_top_builddir=$ac_pwd
  1344. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1345. # for backward compatibility:
  1346. ac_top_builddir=$ac_top_build_prefix
  1347. case $srcdir in
  1348. .) # We are building in place.
  1349. ac_srcdir=.
  1350. ac_top_srcdir=$ac_top_builddir_sub
  1351. ac_abs_top_srcdir=$ac_pwd ;;
  1352. [\\/]* | ?:[\\/]* ) # Absolute name.
  1353. ac_srcdir=$srcdir$ac_dir_suffix;
  1354. ac_top_srcdir=$srcdir
  1355. ac_abs_top_srcdir=$srcdir ;;
  1356. *) # Relative name.
  1357. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1358. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1359. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1360. esac
  1361. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1362. cd "$ac_dir" || { ac_status=$?; continue; }
  1363. # Check for guested configure.
  1364. if test -f "$ac_srcdir/configure.gnu"; then
  1365. echo &&
  1366. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1367. elif test -f "$ac_srcdir/configure"; then
  1368. echo &&
  1369. $SHELL "$ac_srcdir/configure" --help=recursive
  1370. else
  1371. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1372. fi || ac_status=$?
  1373. cd "$ac_pwd" || { ac_status=$?; break; }
  1374. done
  1375. fi
  1376. test -n "$ac_init_help" && exit $ac_status
  1377. if $ac_init_version; then
  1378. cat <<\_ACEOF
  1379. LTO plugin for ld configure 0.1
  1380. generated by GNU Autoconf 2.69
  1381. Copyright (C) 2012 Free Software Foundation, Inc.
  1382. This configure script is free software; the Free Software Foundation
  1383. gives unlimited permission to copy, distribute and modify it.
  1384. _ACEOF
  1385. exit
  1386. fi
  1387. ## ------------------------ ##
  1388. ## Autoconf initialization. ##
  1389. ## ------------------------ ##
  1390. # ac_fn_c_try_compile LINENO
  1391. # --------------------------
  1392. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1393. ac_fn_c_try_compile ()
  1394. {
  1395. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1396. rm -f conftest.$ac_objext
  1397. if { { ac_try="$ac_compile"
  1398. case "(($ac_try" in
  1399. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1400. *) ac_try_echo=$ac_try;;
  1401. esac
  1402. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1403. $as_echo "$ac_try_echo"; } >&5
  1404. (eval "$ac_compile") 2>conftest.err
  1405. ac_status=$?
  1406. if test -s conftest.err; then
  1407. grep -v '^ *+' conftest.err >conftest.er1
  1408. cat conftest.er1 >&5
  1409. mv -f conftest.er1 conftest.err
  1410. fi
  1411. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1412. test $ac_status = 0; } && {
  1413. test -z "$ac_c_werror_flag" ||
  1414. test ! -s conftest.err
  1415. } && test -s conftest.$ac_objext; then :
  1416. ac_retval=0
  1417. else
  1418. $as_echo "$as_me: failed program was:" >&5
  1419. sed 's/^/| /' conftest.$ac_ext >&5
  1420. ac_retval=1
  1421. fi
  1422. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1423. as_fn_set_status $ac_retval
  1424. } # ac_fn_c_try_compile
  1425. # ac_fn_c_try_cpp LINENO
  1426. # ----------------------
  1427. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1428. ac_fn_c_try_cpp ()
  1429. {
  1430. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1431. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1432. case "(($ac_try" in
  1433. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1434. *) ac_try_echo=$ac_try;;
  1435. esac
  1436. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1437. $as_echo "$ac_try_echo"; } >&5
  1438. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1439. ac_status=$?
  1440. if test -s conftest.err; then
  1441. grep -v '^ *+' conftest.err >conftest.er1
  1442. cat conftest.er1 >&5
  1443. mv -f conftest.er1 conftest.err
  1444. fi
  1445. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1446. test $ac_status = 0; } > conftest.i && {
  1447. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1448. test ! -s conftest.err
  1449. }; then :
  1450. ac_retval=0
  1451. else
  1452. $as_echo "$as_me: failed program was:" >&5
  1453. sed 's/^/| /' conftest.$ac_ext >&5
  1454. ac_retval=1
  1455. fi
  1456. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1457. as_fn_set_status $ac_retval
  1458. } # ac_fn_c_try_cpp
  1459. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1460. # -------------------------------------------------------
  1461. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1462. # the include files in INCLUDES and setting the cache variable VAR
  1463. # accordingly.
  1464. ac_fn_c_check_header_mongrel ()
  1465. {
  1466. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1467. if eval \${$3+:} false; then :
  1468. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1469. $as_echo_n "checking for $2... " >&6; }
  1470. if eval \${$3+:} false; then :
  1471. $as_echo_n "(cached) " >&6
  1472. fi
  1473. eval ac_res=\$$3
  1474. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1475. $as_echo "$ac_res" >&6; }
  1476. else
  1477. # Is the header compilable?
  1478. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1479. $as_echo_n "checking $2 usability... " >&6; }
  1480. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1481. /* end confdefs.h. */
  1482. $4
  1483. #include <$2>
  1484. _ACEOF
  1485. if ac_fn_c_try_compile "$LINENO"; then :
  1486. ac_header_compiler=yes
  1487. else
  1488. ac_header_compiler=no
  1489. fi
  1490. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1492. $as_echo "$ac_header_compiler" >&6; }
  1493. # Is the header present?
  1494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1495. $as_echo_n "checking $2 presence... " >&6; }
  1496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1497. /* end confdefs.h. */
  1498. #include <$2>
  1499. _ACEOF
  1500. if ac_fn_c_try_cpp "$LINENO"; then :
  1501. ac_header_preproc=yes
  1502. else
  1503. ac_header_preproc=no
  1504. fi
  1505. rm -f conftest.err conftest.i conftest.$ac_ext
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1507. $as_echo "$ac_header_preproc" >&6; }
  1508. # So? What about this header?
  1509. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1510. yes:no: )
  1511. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1512. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1513. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1514. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1515. ;;
  1516. no:yes:* )
  1517. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1518. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1519. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1520. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1521. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1522. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1523. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1524. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1525. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1526. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1527. ;;
  1528. esac
  1529. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1530. $as_echo_n "checking for $2... " >&6; }
  1531. if eval \${$3+:} false; then :
  1532. $as_echo_n "(cached) " >&6
  1533. else
  1534. eval "$3=\$ac_header_compiler"
  1535. fi
  1536. eval ac_res=\$$3
  1537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1538. $as_echo "$ac_res" >&6; }
  1539. fi
  1540. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1541. } # ac_fn_c_check_header_mongrel
  1542. # ac_fn_c_try_run LINENO
  1543. # ----------------------
  1544. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1545. # that executables *can* be run.
  1546. ac_fn_c_try_run ()
  1547. {
  1548. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1549. if { { ac_try="$ac_link"
  1550. case "(($ac_try" in
  1551. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1552. *) ac_try_echo=$ac_try;;
  1553. esac
  1554. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1555. $as_echo "$ac_try_echo"; } >&5
  1556. (eval "$ac_link") 2>&5
  1557. ac_status=$?
  1558. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1559. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1560. { { case "(($ac_try" in
  1561. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1562. *) ac_try_echo=$ac_try;;
  1563. esac
  1564. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1565. $as_echo "$ac_try_echo"; } >&5
  1566. (eval "$ac_try") 2>&5
  1567. ac_status=$?
  1568. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1569. test $ac_status = 0; }; }; then :
  1570. ac_retval=0
  1571. else
  1572. $as_echo "$as_me: program exited with status $ac_status" >&5
  1573. $as_echo "$as_me: failed program was:" >&5
  1574. sed 's/^/| /' conftest.$ac_ext >&5
  1575. ac_retval=$ac_status
  1576. fi
  1577. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1578. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1579. as_fn_set_status $ac_retval
  1580. } # ac_fn_c_try_run
  1581. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1582. # -------------------------------------------------------
  1583. # Tests whether HEADER exists and can be compiled using the include files in
  1584. # INCLUDES, setting the cache variable VAR accordingly.
  1585. ac_fn_c_check_header_compile ()
  1586. {
  1587. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1588. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1589. $as_echo_n "checking for $2... " >&6; }
  1590. if eval \${$3+:} false; then :
  1591. $as_echo_n "(cached) " >&6
  1592. else
  1593. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1594. /* end confdefs.h. */
  1595. $4
  1596. #include <$2>
  1597. _ACEOF
  1598. if ac_fn_c_try_compile "$LINENO"; then :
  1599. eval "$3=yes"
  1600. else
  1601. eval "$3=no"
  1602. fi
  1603. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1604. fi
  1605. eval ac_res=\$$3
  1606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1607. $as_echo "$ac_res" >&6; }
  1608. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1609. } # ac_fn_c_check_header_compile
  1610. # ac_fn_c_try_link LINENO
  1611. # -----------------------
  1612. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1613. ac_fn_c_try_link ()
  1614. {
  1615. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1616. rm -f conftest.$ac_objext conftest$ac_exeext
  1617. if { { ac_try="$ac_link"
  1618. case "(($ac_try" in
  1619. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1620. *) ac_try_echo=$ac_try;;
  1621. esac
  1622. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1623. $as_echo "$ac_try_echo"; } >&5
  1624. (eval "$ac_link") 2>conftest.err
  1625. ac_status=$?
  1626. if test -s conftest.err; then
  1627. grep -v '^ *+' conftest.err >conftest.er1
  1628. cat conftest.er1 >&5
  1629. mv -f conftest.er1 conftest.err
  1630. fi
  1631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1632. test $ac_status = 0; } && {
  1633. test -z "$ac_c_werror_flag" ||
  1634. test ! -s conftest.err
  1635. } && test -s conftest$ac_exeext && {
  1636. test "$cross_compiling" = yes ||
  1637. test -x conftest$ac_exeext
  1638. }; then :
  1639. ac_retval=0
  1640. else
  1641. $as_echo "$as_me: failed program was:" >&5
  1642. sed 's/^/| /' conftest.$ac_ext >&5
  1643. ac_retval=1
  1644. fi
  1645. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1646. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1647. # interfere with the next link command; also delete a directory that is
  1648. # left behind by Apple's compiler. We do this before executing the actions.
  1649. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1650. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1651. as_fn_set_status $ac_retval
  1652. } # ac_fn_c_try_link
  1653. # ac_fn_c_check_func LINENO FUNC VAR
  1654. # ----------------------------------
  1655. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1656. ac_fn_c_check_func ()
  1657. {
  1658. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1659. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1660. $as_echo_n "checking for $2... " >&6; }
  1661. if eval \${$3+:} false; then :
  1662. $as_echo_n "(cached) " >&6
  1663. else
  1664. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1665. /* end confdefs.h. */
  1666. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1667. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1668. #define $2 innocuous_$2
  1669. /* System header to define __stub macros and hopefully few prototypes,
  1670. which can conflict with char $2 (); below.
  1671. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1672. <limits.h> exists even on freestanding compilers. */
  1673. #ifdef __STDC__
  1674. # include <limits.h>
  1675. #else
  1676. # include <assert.h>
  1677. #endif
  1678. #undef $2
  1679. /* Override any GCC internal prototype to avoid an error.
  1680. Use char because int might match the return type of a GCC
  1681. builtin and then its argument prototype would still apply. */
  1682. #ifdef __cplusplus
  1683. extern "C"
  1684. #endif
  1685. char $2 ();
  1686. /* The GNU C library defines this for functions which it implements
  1687. to always fail with ENOSYS. Some functions are actually named
  1688. something starting with __ and the normal name is an alias. */
  1689. #if defined __stub_$2 || defined __stub___$2
  1690. choke me
  1691. #endif
  1692. int
  1693. main ()
  1694. {
  1695. return $2 ();
  1696. ;
  1697. return 0;
  1698. }
  1699. _ACEOF
  1700. if ac_fn_c_try_link "$LINENO"; then :
  1701. eval "$3=yes"
  1702. else
  1703. eval "$3=no"
  1704. fi
  1705. rm -f core conftest.err conftest.$ac_objext \
  1706. conftest$ac_exeext conftest.$ac_ext
  1707. fi
  1708. eval ac_res=\$$3
  1709. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1710. $as_echo "$ac_res" >&6; }
  1711. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1712. } # ac_fn_c_check_func
  1713. # ac_fn_c_find_intX_t LINENO BITS VAR
  1714. # -----------------------------------
  1715. # Finds a signed integer type with width BITS, setting cache variable VAR
  1716. # accordingly.
  1717. ac_fn_c_find_intX_t ()
  1718. {
  1719. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for int$2_t" >&5
  1721. $as_echo_n "checking for int$2_t... " >&6; }
  1722. if eval \${$3+:} false; then :
  1723. $as_echo_n "(cached) " >&6
  1724. else
  1725. eval "$3=no"
  1726. # Order is important - never check a type that is potentially smaller
  1727. # than half of the expected target width.
  1728. for ac_type in int$2_t 'int' 'long int' \
  1729. 'long long int' 'short int' 'signed char'; do
  1730. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1731. /* end confdefs.h. */
  1732. $ac_includes_default
  1733. enum { N = $2 / 2 - 1 };
  1734. int
  1735. main ()
  1736. {
  1737. static int test_array [1 - 2 * !(0 < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1))];
  1738. test_array [0] = 0;
  1739. return test_array [0];
  1740. ;
  1741. return 0;
  1742. }
  1743. _ACEOF
  1744. if ac_fn_c_try_compile "$LINENO"; then :
  1745. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1746. /* end confdefs.h. */
  1747. $ac_includes_default
  1748. enum { N = $2 / 2 - 1 };
  1749. int
  1750. main ()
  1751. {
  1752. static int test_array [1 - 2 * !(($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 1)
  1753. < ($ac_type) ((((($ac_type) 1 << N) << N) - 1) * 2 + 2))];
  1754. test_array [0] = 0;
  1755. return test_array [0];
  1756. ;
  1757. return 0;
  1758. }
  1759. _ACEOF
  1760. if ac_fn_c_try_compile "$LINENO"; then :
  1761. else
  1762. case $ac_type in #(
  1763. int$2_t) :
  1764. eval "$3=yes" ;; #(
  1765. *) :
  1766. eval "$3=\$ac_type" ;;
  1767. esac
  1768. fi
  1769. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1770. fi
  1771. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1772. if eval test \"x\$"$3"\" = x"no"; then :
  1773. else
  1774. break
  1775. fi
  1776. done
  1777. fi
  1778. eval ac_res=\$$3
  1779. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1780. $as_echo "$ac_res" >&6; }
  1781. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1782. } # ac_fn_c_find_intX_t
  1783. # ac_fn_c_find_uintX_t LINENO BITS VAR
  1784. # ------------------------------------
  1785. # Finds an unsigned integer type with width BITS, setting cache variable VAR
  1786. # accordingly.
  1787. ac_fn_c_find_uintX_t ()
  1788. {
  1789. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
  1791. $as_echo_n "checking for uint$2_t... " >&6; }
  1792. if eval \${$3+:} false; then :
  1793. $as_echo_n "(cached) " >&6
  1794. else
  1795. eval "$3=no"
  1796. # Order is important - never check a type that is potentially smaller
  1797. # than half of the expected target width.
  1798. for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
  1799. 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
  1800. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1801. /* end confdefs.h. */
  1802. $ac_includes_default
  1803. int
  1804. main ()
  1805. {
  1806. static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
  1807. test_array [0] = 0;
  1808. return test_array [0];
  1809. ;
  1810. return 0;
  1811. }
  1812. _ACEOF
  1813. if ac_fn_c_try_compile "$LINENO"; then :
  1814. case $ac_type in #(
  1815. uint$2_t) :
  1816. eval "$3=yes" ;; #(
  1817. *) :
  1818. eval "$3=\$ac_type" ;;
  1819. esac
  1820. fi
  1821. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1822. if eval test \"x\$"$3"\" = x"no"; then :
  1823. else
  1824. break
  1825. fi
  1826. done
  1827. fi
  1828. eval ac_res=\$$3
  1829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1830. $as_echo "$ac_res" >&6; }
  1831. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1832. } # ac_fn_c_find_uintX_t
  1833. cat >config.log <<_ACEOF
  1834. This file contains any messages produced by compilers while
  1835. running configure, to aid debugging if configure makes a mistake.
  1836. It was created by LTO plugin for ld $as_me 0.1, which was
  1837. generated by GNU Autoconf 2.69. Invocation command line was
  1838. $ $0 $@
  1839. _ACEOF
  1840. exec 5>>config.log
  1841. {
  1842. cat <<_ASUNAME
  1843. ## --------- ##
  1844. ## Platform. ##
  1845. ## --------- ##
  1846. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  1847. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  1848. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  1849. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  1850. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  1851. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  1852. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  1853. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  1854. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  1855. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  1856. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  1857. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  1858. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  1859. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  1860. _ASUNAME
  1861. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  1862. for as_dir in $PATH
  1863. do
  1864. IFS=$as_save_IFS
  1865. test -z "$as_dir" && as_dir=.
  1866. $as_echo "PATH: $as_dir"
  1867. done
  1868. IFS=$as_save_IFS
  1869. } >&5
  1870. cat >&5 <<_ACEOF
  1871. ## ----------- ##
  1872. ## Core tests. ##
  1873. ## ----------- ##
  1874. _ACEOF
  1875. # Keep a trace of the command line.
  1876. # Strip out --no-create and --no-recursion so they do not pile up.
  1877. # Strip out --silent because we don't want to record it for future runs.
  1878. # Also quote any args containing shell meta-characters.
  1879. # Make two passes to allow for proper duplicate-argument suppression.
  1880. ac_configure_args=
  1881. ac_configure_args0=
  1882. ac_configure_args1=
  1883. ac_must_keep_next=false
  1884. for ac_pass in 1 2
  1885. do
  1886. for ac_arg
  1887. do
  1888. case $ac_arg in
  1889. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  1890. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  1891. | -silent | --silent | --silen | --sile | --sil)
  1892. continue ;;
  1893. *\'*)
  1894. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  1895. esac
  1896. case $ac_pass in
  1897. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  1898. 2)
  1899. as_fn_append ac_configure_args1 " '$ac_arg'"
  1900. if test $ac_must_keep_next = true; then
  1901. ac_must_keep_next=false # Got value, back to normal.
  1902. else
  1903. case $ac_arg in
  1904. *=* | --config-cache | -C | -disable-* | --disable-* \
  1905. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  1906. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  1907. | -with-* | --with-* | -without-* | --without-* | --x)
  1908. case "$ac_configure_args0 " in
  1909. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  1910. esac
  1911. ;;
  1912. -* ) ac_must_keep_next=true ;;
  1913. esac
  1914. fi
  1915. as_fn_append ac_configure_args " '$ac_arg'"
  1916. ;;
  1917. esac
  1918. done
  1919. done
  1920. { ac_configure_args0=; unset ac_configure_args0;}
  1921. { ac_configure_args1=; unset ac_configure_args1;}
  1922. # When interrupted or exit'd, cleanup temporary files, and complete
  1923. # config.log. We remove comments because anyway the quotes in there
  1924. # would cause problems or look ugly.
  1925. # WARNING: Use '\'' to represent an apostrophe within the trap.
  1926. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  1927. trap 'exit_status=$?
  1928. # Save into config.log some information that might help in debugging.
  1929. {
  1930. echo
  1931. $as_echo "## ---------------- ##
  1932. ## Cache variables. ##
  1933. ## ---------------- ##"
  1934. echo
  1935. # The following way of writing the cache mishandles newlines in values,
  1936. (
  1937. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  1938. eval ac_val=\$$ac_var
  1939. case $ac_val in #(
  1940. *${as_nl}*)
  1941. case $ac_var in #(
  1942. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  1943. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  1944. esac
  1945. case $ac_var in #(
  1946. _ | IFS | as_nl) ;; #(
  1947. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  1948. *) { eval $ac_var=; unset $ac_var;} ;;
  1949. esac ;;
  1950. esac
  1951. done
  1952. (set) 2>&1 |
  1953. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  1954. *${as_nl}ac_space=\ *)
  1955. sed -n \
  1956. "s/'\''/'\''\\\\'\'''\''/g;
  1957. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  1958. ;; #(
  1959. *)
  1960. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  1961. ;;
  1962. esac |
  1963. sort
  1964. )
  1965. echo
  1966. $as_echo "## ----------------- ##
  1967. ## Output variables. ##
  1968. ## ----------------- ##"
  1969. echo
  1970. for ac_var in $ac_subst_vars
  1971. do
  1972. eval ac_val=\$$ac_var
  1973. case $ac_val in
  1974. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1975. esac
  1976. $as_echo "$ac_var='\''$ac_val'\''"
  1977. done | sort
  1978. echo
  1979. if test -n "$ac_subst_files"; then
  1980. $as_echo "## ------------------- ##
  1981. ## File substitutions. ##
  1982. ## ------------------- ##"
  1983. echo
  1984. for ac_var in $ac_subst_files
  1985. do
  1986. eval ac_val=\$$ac_var
  1987. case $ac_val in
  1988. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  1989. esac
  1990. $as_echo "$ac_var='\''$ac_val'\''"
  1991. done | sort
  1992. echo
  1993. fi
  1994. if test -s confdefs.h; then
  1995. $as_echo "## ----------- ##
  1996. ## confdefs.h. ##
  1997. ## ----------- ##"
  1998. echo
  1999. cat confdefs.h
  2000. echo
  2001. fi
  2002. test "$ac_signal" != 0 &&
  2003. $as_echo "$as_me: caught signal $ac_signal"
  2004. $as_echo "$as_me: exit $exit_status"
  2005. } >&5
  2006. rm -f core *.core core.conftest.* &&
  2007. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2008. exit $exit_status
  2009. ' 0
  2010. for ac_signal in 1 2 13 15; do
  2011. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2012. done
  2013. ac_signal=0
  2014. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2015. rm -f -r conftest* confdefs.h
  2016. $as_echo "/* confdefs.h */" > confdefs.h
  2017. # Predefined preprocessor variables.
  2018. cat >>confdefs.h <<_ACEOF
  2019. #define PACKAGE_NAME "$PACKAGE_NAME"
  2020. _ACEOF
  2021. cat >>confdefs.h <<_ACEOF
  2022. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2023. _ACEOF
  2024. cat >>confdefs.h <<_ACEOF
  2025. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2026. _ACEOF
  2027. cat >>confdefs.h <<_ACEOF
  2028. #define PACKAGE_STRING "$PACKAGE_STRING"
  2029. _ACEOF
  2030. cat >>confdefs.h <<_ACEOF
  2031. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2032. _ACEOF
  2033. cat >>confdefs.h <<_ACEOF
  2034. #define PACKAGE_URL "$PACKAGE_URL"
  2035. _ACEOF
  2036. # Let the site file select an alternate cache file if it wants to.
  2037. # Prefer an explicitly selected file to automatically selected ones.
  2038. ac_site_file1=NONE
  2039. ac_site_file2=NONE
  2040. if test -n "$CONFIG_SITE"; then
  2041. # We do not want a PATH search for config.site.
  2042. case $CONFIG_SITE in #((
  2043. -*) ac_site_file1=./$CONFIG_SITE;;
  2044. */*) ac_site_file1=$CONFIG_SITE;;
  2045. *) ac_site_file1=./$CONFIG_SITE;;
  2046. esac
  2047. elif test "x$prefix" != xNONE; then
  2048. ac_site_file1=$prefix/share/config.site
  2049. ac_site_file2=$prefix/etc/config.site
  2050. else
  2051. ac_site_file1=$ac_default_prefix/share/config.site
  2052. ac_site_file2=$ac_default_prefix/etc/config.site
  2053. fi
  2054. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2055. do
  2056. test "x$ac_site_file" = xNONE && continue
  2057. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2058. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2059. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2060. sed 's/^/| /' "$ac_site_file" >&5
  2061. . "$ac_site_file" \
  2062. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2063. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2064. as_fn_error $? "failed to load site script $ac_site_file
  2065. See \`config.log' for more details" "$LINENO" 5; }
  2066. fi
  2067. done
  2068. if test -r "$cache_file"; then
  2069. # Some versions of bash will fail to source /dev/null (special files
  2070. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2071. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2072. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2073. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2074. case $cache_file in
  2075. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2076. *) . "./$cache_file";;
  2077. esac
  2078. fi
  2079. else
  2080. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2081. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2082. >$cache_file
  2083. fi
  2084. # Check that the precious variables saved in the cache have kept the same
  2085. # value.
  2086. ac_cache_corrupted=false
  2087. for ac_var in $ac_precious_vars; do
  2088. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2089. eval ac_new_set=\$ac_env_${ac_var}_set
  2090. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2091. eval ac_new_val=\$ac_env_${ac_var}_value
  2092. case $ac_old_set,$ac_new_set in
  2093. set,)
  2094. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2095. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2096. ac_cache_corrupted=: ;;
  2097. ,set)
  2098. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2099. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2100. ac_cache_corrupted=: ;;
  2101. ,);;
  2102. *)
  2103. if test "x$ac_old_val" != "x$ac_new_val"; then
  2104. # differences in whitespace do not lead to failure.
  2105. ac_old_val_w=`echo x $ac_old_val`
  2106. ac_new_val_w=`echo x $ac_new_val`
  2107. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2108. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2109. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2110. ac_cache_corrupted=:
  2111. else
  2112. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2113. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2114. eval $ac_var=\$ac_old_val
  2115. fi
  2116. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2117. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2118. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2119. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2120. fi;;
  2121. esac
  2122. # Pass precious variables to config.status.
  2123. if test "$ac_new_set" = set; then
  2124. case $ac_new_val in
  2125. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2126. *) ac_arg=$ac_var=$ac_new_val ;;
  2127. esac
  2128. case " $ac_configure_args " in
  2129. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2130. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2131. esac
  2132. fi
  2133. done
  2134. if $ac_cache_corrupted; then
  2135. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2136. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2137. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2138. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2139. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2140. fi
  2141. ## -------------------- ##
  2142. ## Main body of script. ##
  2143. ## -------------------- ##
  2144. ac_ext=c
  2145. ac_cpp='$CPP $CPPFLAGS'
  2146. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2147. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2148. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2149. ac_aux_dir=
  2150. for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
  2151. if test -f "$ac_dir/install-sh"; then
  2152. ac_aux_dir=$ac_dir
  2153. ac_install_sh="$ac_aux_dir/install-sh -c"
  2154. break
  2155. elif test -f "$ac_dir/install.sh"; then
  2156. ac_aux_dir=$ac_dir
  2157. ac_install_sh="$ac_aux_dir/install.sh -c"
  2158. break
  2159. elif test -f "$ac_dir/shtool"; then
  2160. ac_aux_dir=$ac_dir
  2161. ac_install_sh="$ac_aux_dir/shtool install -c"
  2162. break
  2163. fi
  2164. done
  2165. if test -z "$ac_aux_dir"; then
  2166. as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
  2167. fi
  2168. # These three variables are undocumented and unsupported,
  2169. # and are intended to be withdrawn in a future Autoconf release.
  2170. # They can cause serious problems if a builder's source tree is in a directory
  2171. # whose full name contains unusual characters.
  2172. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2173. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2174. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2175. # Make sure we can run config.sub.
  2176. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  2177. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  2178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  2179. $as_echo_n "checking build system type... " >&6; }
  2180. if ${ac_cv_build+:} false; then :
  2181. $as_echo_n "(cached) " >&6
  2182. else
  2183. ac_build_alias=$build_alias
  2184. test "x$ac_build_alias" = x &&
  2185. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  2186. test "x$ac_build_alias" = x &&
  2187. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  2188. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  2189. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  2190. fi
  2191. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  2192. $as_echo "$ac_cv_build" >&6; }
  2193. case $ac_cv_build in
  2194. *-*-*) ;;
  2195. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  2196. esac
  2197. build=$ac_cv_build
  2198. ac_save_IFS=$IFS; IFS='-'
  2199. set x $ac_cv_build
  2200. shift
  2201. build_cpu=$1
  2202. build_vendor=$2
  2203. shift; shift
  2204. # Remember, the first character of IFS is used to create $*,
  2205. # except with old shells:
  2206. build_os=$*
  2207. IFS=$ac_save_IFS
  2208. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  2209. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  2210. $as_echo_n "checking host system type... " >&6; }
  2211. if ${ac_cv_host+:} false; then :
  2212. $as_echo_n "(cached) " >&6
  2213. else
  2214. if test "x$host_alias" = x; then
  2215. ac_cv_host=$ac_cv_build
  2216. else
  2217. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  2218. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  2219. fi
  2220. fi
  2221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  2222. $as_echo "$ac_cv_host" >&6; }
  2223. case $ac_cv_host in
  2224. *-*-*) ;;
  2225. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  2226. esac
  2227. host=$ac_cv_host
  2228. ac_save_IFS=$IFS; IFS='-'
  2229. set x $ac_cv_host
  2230. shift
  2231. host_cpu=$1
  2232. host_vendor=$2
  2233. shift; shift
  2234. # Remember, the first character of IFS is used to create $*,
  2235. # except with old shells:
  2236. host_os=$*
  2237. IFS=$ac_save_IFS
  2238. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  2239. { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
  2240. $as_echo_n "checking target system type... " >&6; }
  2241. if ${ac_cv_target+:} false; then :
  2242. $as_echo_n "(cached) " >&6
  2243. else
  2244. if test "x$target_alias" = x; then
  2245. ac_cv_target=$ac_cv_host
  2246. else
  2247. ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
  2248. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
  2249. fi
  2250. fi
  2251. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
  2252. $as_echo "$ac_cv_target" >&6; }
  2253. case $ac_cv_target in
  2254. *-*-*) ;;
  2255. *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
  2256. esac
  2257. target=$ac_cv_target
  2258. ac_save_IFS=$IFS; IFS='-'
  2259. set x $ac_cv_target
  2260. shift
  2261. target_cpu=$1
  2262. target_vendor=$2
  2263. shift; shift
  2264. # Remember, the first character of IFS is used to create $*,
  2265. # except with old shells:
  2266. target_os=$*
  2267. IFS=$ac_save_IFS
  2268. case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
  2269. # The aliases save the names the user supplied, while $host etc.
  2270. # will get canonicalized.
  2271. test -n "$target_alias" &&
  2272. test "$program_prefix$program_suffix$program_transform_name" = \
  2273. NONENONEs,x,x, &&
  2274. program_prefix=${target_alias}-
  2275. case ${build_alias} in
  2276. "") build_noncanonical=${build} ;;
  2277. *) build_noncanonical=${build_alias} ;;
  2278. esac
  2279. case ${host_alias} in
  2280. "") host_noncanonical=${build_noncanonical} ;;
  2281. *) host_noncanonical=${host_alias} ;;
  2282. esac
  2283. case ${target_alias} in
  2284. "") target_noncanonical=${host_noncanonical} ;;
  2285. *) target_noncanonical=${target_alias} ;;
  2286. esac
  2287. # post-stage1 host modules use a different CC_FOR_BUILD so, in order to
  2288. # have matching libraries, they should use host libraries: Makefile.tpl
  2289. # arranges to pass --with-build-libsubdir=$(HOST_SUBDIR).
  2290. # However, they still use the build modules, because the corresponding
  2291. # host modules (e.g. bison) are only built for the host when bootstrap
  2292. # finishes. So:
  2293. # - build_subdir is where we find build modules, and never changes.
  2294. # - build_libsubdir is where we find build libraries, and can be overridden.
  2295. # Prefix 'build-' so this never conflicts with target_subdir.
  2296. build_subdir="build-${build_noncanonical}"
  2297. # Check whether --with-build-libsubdir was given.
  2298. if test "${with_build_libsubdir+set}" = set; then :
  2299. withval=$with_build_libsubdir; build_libsubdir="$withval"
  2300. else
  2301. build_libsubdir="$build_subdir"
  2302. fi
  2303. # --srcdir=. covers the toplevel, while "test -d" covers the subdirectories
  2304. if ( test $srcdir = . && test -d gcc ) \
  2305. || test -d $srcdir/../host-${host_noncanonical}; then
  2306. host_subdir="host-${host_noncanonical}"
  2307. else
  2308. host_subdir=.
  2309. fi
  2310. # No prefix.
  2311. target_subdir=${target_noncanonical}
  2312. am__api_version='1.15'
  2313. # Find a good install program. We prefer a C program (faster),
  2314. # so one script is as good as another. But avoid the broken or
  2315. # incompatible versions:
  2316. # SysV /etc/install, /usr/sbin/install
  2317. # SunOS /usr/etc/install
  2318. # IRIX /sbin/install
  2319. # AIX /bin/install
  2320. # AmigaOS /C/install, which installs bootblocks on floppy discs
  2321. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  2322. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  2323. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  2324. # OS/2's system install, which has a completely different semantic
  2325. # ./install, which can be erroneously created by make from ./install.sh.
  2326. # Reject install programs that cannot install multiple files.
  2327. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  2328. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  2329. if test -z "$INSTALL"; then
  2330. if ${ac_cv_path_install+:} false; then :
  2331. $as_echo_n "(cached) " >&6
  2332. else
  2333. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2334. for as_dir in $PATH
  2335. do
  2336. IFS=$as_save_IFS
  2337. test -z "$as_dir" && as_dir=.
  2338. # Account for people who put trailing slashes in PATH elements.
  2339. case $as_dir/ in #((
  2340. ./ | .// | /[cC]/* | \
  2341. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  2342. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  2343. /usr/ucb/* ) ;;
  2344. *)
  2345. # OSF1 and SCO ODT 3.0 have their own names for install.
  2346. # Don't use installbsd from OSF since it installs stuff as root
  2347. # by default.
  2348. for ac_prog in ginstall scoinst install; do
  2349. for ac_exec_ext in '' $ac_executable_extensions; do
  2350. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  2351. if test $ac_prog = install &&
  2352. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2353. # AIX install. It has an incompatible calling convention.
  2354. :
  2355. elif test $ac_prog = install &&
  2356. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  2357. # program-specific install script used by HP pwplus--don't use.
  2358. :
  2359. else
  2360. rm -rf conftest.one conftest.two conftest.dir
  2361. echo one > conftest.one
  2362. echo two > conftest.two
  2363. mkdir conftest.dir
  2364. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  2365. test -s conftest.one && test -s conftest.two &&
  2366. test -s conftest.dir/conftest.one &&
  2367. test -s conftest.dir/conftest.two
  2368. then
  2369. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  2370. break 3
  2371. fi
  2372. fi
  2373. fi
  2374. done
  2375. done
  2376. ;;
  2377. esac
  2378. done
  2379. IFS=$as_save_IFS
  2380. rm -rf conftest.one conftest.two conftest.dir
  2381. fi
  2382. if test "${ac_cv_path_install+set}" = set; then
  2383. INSTALL=$ac_cv_path_install
  2384. else
  2385. # As a last resort, use the slow shell script. Don't cache a
  2386. # value for INSTALL within a source directory, because that will
  2387. # break other packages using the cache if that directory is
  2388. # removed, or if the value is a relative name.
  2389. INSTALL=$ac_install_sh
  2390. fi
  2391. fi
  2392. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  2393. $as_echo "$INSTALL" >&6; }
  2394. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  2395. # It thinks the first close brace ends the variable substitution.
  2396. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  2397. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  2398. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  2399. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  2400. $as_echo_n "checking whether build environment is sane... " >&6; }
  2401. # Reject unsafe characters in $srcdir or the absolute working directory
  2402. # name. Accept space and tab only in the latter.
  2403. am_lf='
  2404. '
  2405. case `pwd` in
  2406. *[\\\"\#\$\&\'\`$am_lf]*)
  2407. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  2408. esac
  2409. case $srcdir in
  2410. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  2411. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  2412. esac
  2413. # Do 'set' in a subshell so we don't clobber the current shell's
  2414. # arguments. Must try -L first in case configure is actually a
  2415. # symlink; some systems play weird games with the mod time of symlinks
  2416. # (eg FreeBSD returns the mod time of the symlink's containing
  2417. # directory).
  2418. if (
  2419. am_has_slept=no
  2420. for am_try in 1 2; do
  2421. echo "timestamp, slept: $am_has_slept" > conftest.file
  2422. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  2423. if test "$*" = "X"; then
  2424. # -L didn't work.
  2425. set X `ls -t "$srcdir/configure" conftest.file`
  2426. fi
  2427. if test "$*" != "X $srcdir/configure conftest.file" \
  2428. && test "$*" != "X conftest.file $srcdir/configure"; then
  2429. # If neither matched, then we have a broken ls. This can happen
  2430. # if, for instance, CONFIG_SHELL is bash and it inherits a
  2431. # broken ls alias from the environment. This has actually
  2432. # happened. Such a system could not be considered "sane".
  2433. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  2434. alias in your environment" "$LINENO" 5
  2435. fi
  2436. if test "$2" = conftest.file || test $am_try -eq 2; then
  2437. break
  2438. fi
  2439. # Just in case.
  2440. sleep 1
  2441. am_has_slept=yes
  2442. done
  2443. test "$2" = conftest.file
  2444. )
  2445. then
  2446. # Ok.
  2447. :
  2448. else
  2449. as_fn_error $? "newly created file is older than distributed files!
  2450. Check your system clock" "$LINENO" 5
  2451. fi
  2452. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2453. $as_echo "yes" >&6; }
  2454. # If we didn't sleep, we still need to ensure time stamps of config.status and
  2455. # generated files are strictly newer.
  2456. am_sleep_pid=
  2457. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  2458. ( sleep 1 ) &
  2459. am_sleep_pid=$!
  2460. fi
  2461. rm -f conftest.file
  2462. test "$program_prefix" != NONE &&
  2463. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  2464. # Use a double $ so make ignores it.
  2465. test "$program_suffix" != NONE &&
  2466. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  2467. # Double any \ or $.
  2468. # By default was `s,x,x', remove it if useless.
  2469. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  2470. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  2471. # Expand $ac_aux_dir to an absolute path.
  2472. am_aux_dir=`cd "$ac_aux_dir" && pwd`
  2473. if test x"${MISSING+set}" != xset; then
  2474. case $am_aux_dir in
  2475. *\ * | *\ *)
  2476. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  2477. *)
  2478. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  2479. esac
  2480. fi
  2481. # Use eval to expand $SHELL
  2482. if eval "$MISSING --is-lightweight"; then
  2483. am_missing_run="$MISSING "
  2484. else
  2485. am_missing_run=
  2486. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  2487. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  2488. fi
  2489. if test x"${install_sh+set}" != xset; then
  2490. case $am_aux_dir in
  2491. *\ * | *\ *)
  2492. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  2493. *)
  2494. install_sh="\${SHELL} $am_aux_dir/install-sh"
  2495. esac
  2496. fi
  2497. # Installed binaries are usually stripped using 'strip' when the user
  2498. # run "make install-strip". However 'strip' might not be the right
  2499. # tool to use in cross-compilation environments, therefore Automake
  2500. # will honor the 'STRIP' environment variable to overrule this program.
  2501. if test "$cross_compiling" != no; then
  2502. if test -n "$ac_tool_prefix"; then
  2503. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  2504. set dummy ${ac_tool_prefix}strip; ac_word=$2
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2506. $as_echo_n "checking for $ac_word... " >&6; }
  2507. if ${ac_cv_prog_STRIP+:} false; then :
  2508. $as_echo_n "(cached) " >&6
  2509. else
  2510. if test -n "$STRIP"; then
  2511. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  2512. else
  2513. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2514. for as_dir in $PATH
  2515. do
  2516. IFS=$as_save_IFS
  2517. test -z "$as_dir" && as_dir=.
  2518. for ac_exec_ext in '' $ac_executable_extensions; do
  2519. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2520. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  2521. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2522. break 2
  2523. fi
  2524. done
  2525. done
  2526. IFS=$as_save_IFS
  2527. fi
  2528. fi
  2529. STRIP=$ac_cv_prog_STRIP
  2530. if test -n "$STRIP"; then
  2531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  2532. $as_echo "$STRIP" >&6; }
  2533. else
  2534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2535. $as_echo "no" >&6; }
  2536. fi
  2537. fi
  2538. if test -z "$ac_cv_prog_STRIP"; then
  2539. ac_ct_STRIP=$STRIP
  2540. # Extract the first word of "strip", so it can be a program name with args.
  2541. set dummy strip; ac_word=$2
  2542. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2543. $as_echo_n "checking for $ac_word... " >&6; }
  2544. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  2545. $as_echo_n "(cached) " >&6
  2546. else
  2547. if test -n "$ac_ct_STRIP"; then
  2548. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  2549. else
  2550. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2551. for as_dir in $PATH
  2552. do
  2553. IFS=$as_save_IFS
  2554. test -z "$as_dir" && as_dir=.
  2555. for ac_exec_ext in '' $ac_executable_extensions; do
  2556. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2557. ac_cv_prog_ac_ct_STRIP="strip"
  2558. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2559. break 2
  2560. fi
  2561. done
  2562. done
  2563. IFS=$as_save_IFS
  2564. fi
  2565. fi
  2566. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  2567. if test -n "$ac_ct_STRIP"; then
  2568. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  2569. $as_echo "$ac_ct_STRIP" >&6; }
  2570. else
  2571. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2572. $as_echo "no" >&6; }
  2573. fi
  2574. if test "x$ac_ct_STRIP" = x; then
  2575. STRIP=":"
  2576. else
  2577. case $cross_compiling:$ac_tool_warned in
  2578. yes:)
  2579. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2580. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2581. ac_tool_warned=yes ;;
  2582. esac
  2583. STRIP=$ac_ct_STRIP
  2584. fi
  2585. else
  2586. STRIP="$ac_cv_prog_STRIP"
  2587. fi
  2588. fi
  2589. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  2590. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  2591. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  2592. if test -z "$MKDIR_P"; then
  2593. if ${ac_cv_path_mkdir+:} false; then :
  2594. $as_echo_n "(cached) " >&6
  2595. else
  2596. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2597. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  2598. do
  2599. IFS=$as_save_IFS
  2600. test -z "$as_dir" && as_dir=.
  2601. for ac_prog in mkdir gmkdir; do
  2602. for ac_exec_ext in '' $ac_executable_extensions; do
  2603. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  2604. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  2605. 'mkdir (GNU coreutils) '* | \
  2606. 'mkdir (coreutils) '* | \
  2607. 'mkdir (fileutils) '4.1*)
  2608. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  2609. break 3;;
  2610. esac
  2611. done
  2612. done
  2613. done
  2614. IFS=$as_save_IFS
  2615. fi
  2616. test -d ./--version && rmdir ./--version
  2617. if test "${ac_cv_path_mkdir+set}" = set; then
  2618. MKDIR_P="$ac_cv_path_mkdir -p"
  2619. else
  2620. # As a last resort, use the slow shell script. Don't cache a
  2621. # value for MKDIR_P within a source directory, because that will
  2622. # break other packages using the cache if that directory is
  2623. # removed, or if the value is a relative name.
  2624. MKDIR_P="$ac_install_sh -d"
  2625. fi
  2626. fi
  2627. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  2628. $as_echo "$MKDIR_P" >&6; }
  2629. for ac_prog in gawk mawk nawk awk
  2630. do
  2631. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2632. set dummy $ac_prog; ac_word=$2
  2633. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2634. $as_echo_n "checking for $ac_word... " >&6; }
  2635. if ${ac_cv_prog_AWK+:} false; then :
  2636. $as_echo_n "(cached) " >&6
  2637. else
  2638. if test -n "$AWK"; then
  2639. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  2640. else
  2641. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2642. for as_dir in $PATH
  2643. do
  2644. IFS=$as_save_IFS
  2645. test -z "$as_dir" && as_dir=.
  2646. for ac_exec_ext in '' $ac_executable_extensions; do
  2647. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2648. ac_cv_prog_AWK="$ac_prog"
  2649. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2650. break 2
  2651. fi
  2652. done
  2653. done
  2654. IFS=$as_save_IFS
  2655. fi
  2656. fi
  2657. AWK=$ac_cv_prog_AWK
  2658. if test -n "$AWK"; then
  2659. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  2660. $as_echo "$AWK" >&6; }
  2661. else
  2662. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2663. $as_echo "no" >&6; }
  2664. fi
  2665. test -n "$AWK" && break
  2666. done
  2667. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  2668. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  2669. set x ${MAKE-make}
  2670. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  2671. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  2672. $as_echo_n "(cached) " >&6
  2673. else
  2674. cat >conftest.make <<\_ACEOF
  2675. SHELL = /bin/sh
  2676. all:
  2677. @echo '@@@%%%=$(MAKE)=@@@%%%'
  2678. _ACEOF
  2679. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  2680. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  2681. *@@@%%%=?*=@@@%%%*)
  2682. eval ac_cv_prog_make_${ac_make}_set=yes;;
  2683. *)
  2684. eval ac_cv_prog_make_${ac_make}_set=no;;
  2685. esac
  2686. rm -f conftest.make
  2687. fi
  2688. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  2689. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2690. $as_echo "yes" >&6; }
  2691. SET_MAKE=
  2692. else
  2693. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2694. $as_echo "no" >&6; }
  2695. SET_MAKE="MAKE=${MAKE-make}"
  2696. fi
  2697. rm -rf .tst 2>/dev/null
  2698. mkdir .tst 2>/dev/null
  2699. if test -d .tst; then
  2700. am__leading_dot=.
  2701. else
  2702. am__leading_dot=_
  2703. fi
  2704. rmdir .tst 2>/dev/null
  2705. # Check whether --enable-silent-rules was given.
  2706. if test "${enable_silent_rules+set}" = set; then :
  2707. enableval=$enable_silent_rules;
  2708. fi
  2709. case $enable_silent_rules in # (((
  2710. yes) AM_DEFAULT_VERBOSITY=0;;
  2711. no) AM_DEFAULT_VERBOSITY=1;;
  2712. *) AM_DEFAULT_VERBOSITY=1;;
  2713. esac
  2714. am_make=${MAKE-make}
  2715. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
  2716. $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
  2717. if ${am_cv_make_support_nested_variables+:} false; then :
  2718. $as_echo_n "(cached) " >&6
  2719. else
  2720. if $as_echo 'TRUE=$(BAR$(V))
  2721. BAR0=false
  2722. BAR1=true
  2723. V=1
  2724. am__doit:
  2725. @$(TRUE)
  2726. .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
  2727. am_cv_make_support_nested_variables=yes
  2728. else
  2729. am_cv_make_support_nested_variables=no
  2730. fi
  2731. fi
  2732. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
  2733. $as_echo "$am_cv_make_support_nested_variables" >&6; }
  2734. if test $am_cv_make_support_nested_variables = yes; then
  2735. AM_V='$(V)'
  2736. AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
  2737. else
  2738. AM_V=$AM_DEFAULT_VERBOSITY
  2739. AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
  2740. fi
  2741. AM_BACKSLASH='\'
  2742. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  2743. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  2744. # is not polluted with repeated "-I."
  2745. am__isrc=' -I$(srcdir)'
  2746. # test to see if srcdir already configured
  2747. if test -f $srcdir/config.status; then
  2748. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  2749. fi
  2750. fi
  2751. # test whether we have cygpath
  2752. if test -z "$CYGPATH_W"; then
  2753. if (cygpath --version) >/dev/null 2>/dev/null; then
  2754. CYGPATH_W='cygpath -w'
  2755. else
  2756. CYGPATH_W=echo
  2757. fi
  2758. fi
  2759. # Define the identity of the package.
  2760. PACKAGE='lto-plugin'
  2761. VERSION='0.1'
  2762. cat >>confdefs.h <<_ACEOF
  2763. #define PACKAGE "$PACKAGE"
  2764. _ACEOF
  2765. cat >>confdefs.h <<_ACEOF
  2766. #define VERSION "$VERSION"
  2767. _ACEOF
  2768. # Some tools Automake needs.
  2769. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  2770. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  2771. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  2772. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  2773. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  2774. # For better backward compatibility. To be removed once Automake 1.9.x
  2775. # dies out for good. For more background, see:
  2776. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  2777. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  2778. mkdir_p='$(MKDIR_P)'
  2779. # We need awk for the "check" target (and possibly the TAP driver). The
  2780. # system "awk" is bad on some platforms.
  2781. # Always define AMTAR for backward compatibility. Yes, it's still used
  2782. # in the wild :-( We should find a proper way to deprecate it ...
  2783. AMTAR='$${TAR-tar}'
  2784. # We'll loop over all known methods to create a tar archive until one works.
  2785. _am_tools='gnutar pax cpio none'
  2786. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  2787. # POSIX will say in a future version that running "rm -f" with no argument
  2788. # is OK; and we want to be able to make that assumption in our Makefile
  2789. # recipes. So use an aggressive probe to check that the usage we want is
  2790. # actually supported "in the wild" to an acceptable degree.
  2791. # See automake bug#10828.
  2792. # To make any issue more visible, cause the running configure to be aborted
  2793. # by default if the 'rm' program in use doesn't match our expectations; the
  2794. # user can still override this though.
  2795. if rm -f && rm -fr && rm -rf; then : OK; else
  2796. cat >&2 <<'END'
  2797. Oops!
  2798. Your 'rm' program seems unable to run without file operands specified
  2799. on the command line, even when the '-f' option is present. This is contrary
  2800. to the behaviour of most rm programs out there, and not conforming with
  2801. the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
  2802. Please tell bug-automake@gnu.org about your system, including the value
  2803. of your $PATH and any error possibly output before this message. This
  2804. can help us improve future automake versions.
  2805. END
  2806. if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
  2807. echo 'Configuration will proceed anyway, since you have set the' >&2
  2808. echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
  2809. echo >&2
  2810. else
  2811. cat >&2 <<'END'
  2812. Aborting the configuration process, to ensure you take notice of the issue.
  2813. You can download and install GNU coreutils to get an 'rm' implementation
  2814. that behaves properly: <http://www.gnu.org/software/coreutils/>.
  2815. If you want to complete the configuration process using your problematic
  2816. 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
  2817. to "yes", and re-run configure.
  2818. END
  2819. as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
  2820. fi
  2821. fi
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
  2823. $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
  2824. # Check whether --enable-maintainer-mode was given.
  2825. if test "${enable_maintainer_mode+set}" = set; then :
  2826. enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
  2827. else
  2828. USE_MAINTAINER_MODE=no
  2829. fi
  2830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
  2831. $as_echo "$USE_MAINTAINER_MODE" >&6; }
  2832. if test $USE_MAINTAINER_MODE = yes; then
  2833. MAINTAINER_MODE_TRUE=
  2834. MAINTAINER_MODE_FALSE='#'
  2835. else
  2836. MAINTAINER_MODE_TRUE='#'
  2837. MAINTAINER_MODE_FALSE=
  2838. fi
  2839. MAINT=$MAINTAINER_MODE_TRUE
  2840. # Check whether --with-libiberty was given.
  2841. if test "${with_libiberty+set}" = set; then :
  2842. withval=$with_libiberty;
  2843. else
  2844. with_libiberty=../libiberty
  2845. fi
  2846. DEPDIR="${am__leading_dot}deps"
  2847. ac_config_commands="$ac_config_commands depfiles"
  2848. am_make=${MAKE-make}
  2849. cat > confinc << 'END'
  2850. am__doit:
  2851. @echo this is the am__doit target
  2852. .PHONY: am__doit
  2853. END
  2854. # If we don't find an include directive, just comment out the code.
  2855. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  2856. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  2857. am__include="#"
  2858. am__quote=
  2859. _am_result=none
  2860. # First try GNU make style include.
  2861. echo "include confinc" > confmf
  2862. # Ignore all kinds of additional output from 'make'.
  2863. case `$am_make -s -f confmf 2> /dev/null` in #(
  2864. *the\ am__doit\ target*)
  2865. am__include=include
  2866. am__quote=
  2867. _am_result=GNU
  2868. ;;
  2869. esac
  2870. # Now try BSD make style include.
  2871. if test "$am__include" = "#"; then
  2872. echo '.include "confinc"' > confmf
  2873. case `$am_make -s -f confmf 2> /dev/null` in #(
  2874. *the\ am__doit\ target*)
  2875. am__include=.include
  2876. am__quote="\""
  2877. _am_result=BSD
  2878. ;;
  2879. esac
  2880. fi
  2881. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  2882. $as_echo "$_am_result" >&6; }
  2883. rm -f confinc confmf
  2884. # Check whether --enable-dependency-tracking was given.
  2885. if test "${enable_dependency_tracking+set}" = set; then :
  2886. enableval=$enable_dependency_tracking;
  2887. fi
  2888. if test "x$enable_dependency_tracking" != xno; then
  2889. am_depcomp="$ac_aux_dir/depcomp"
  2890. AMDEPBACKSLASH='\'
  2891. am__nodep='_no'
  2892. fi
  2893. if test "x$enable_dependency_tracking" != xno; then
  2894. AMDEP_TRUE=
  2895. AMDEP_FALSE='#'
  2896. else
  2897. AMDEP_TRUE='#'
  2898. AMDEP_FALSE=
  2899. fi
  2900. ac_ext=c
  2901. ac_cpp='$CPP $CPPFLAGS'
  2902. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2903. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2904. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2905. if test -n "$ac_tool_prefix"; then
  2906. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2907. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2908. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2909. $as_echo_n "checking for $ac_word... " >&6; }
  2910. if ${ac_cv_prog_CC+:} false; then :
  2911. $as_echo_n "(cached) " >&6
  2912. else
  2913. if test -n "$CC"; then
  2914. ac_cv_prog_CC="$CC" # Let the user override the test.
  2915. else
  2916. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2917. for as_dir in $PATH
  2918. do
  2919. IFS=$as_save_IFS
  2920. test -z "$as_dir" && as_dir=.
  2921. for ac_exec_ext in '' $ac_executable_extensions; do
  2922. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2923. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2924. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2925. break 2
  2926. fi
  2927. done
  2928. done
  2929. IFS=$as_save_IFS
  2930. fi
  2931. fi
  2932. CC=$ac_cv_prog_CC
  2933. if test -n "$CC"; then
  2934. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2935. $as_echo "$CC" >&6; }
  2936. else
  2937. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2938. $as_echo "no" >&6; }
  2939. fi
  2940. fi
  2941. if test -z "$ac_cv_prog_CC"; then
  2942. ac_ct_CC=$CC
  2943. # Extract the first word of "gcc", so it can be a program name with args.
  2944. set dummy gcc; ac_word=$2
  2945. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2946. $as_echo_n "checking for $ac_word... " >&6; }
  2947. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2948. $as_echo_n "(cached) " >&6
  2949. else
  2950. if test -n "$ac_ct_CC"; then
  2951. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2952. else
  2953. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2954. for as_dir in $PATH
  2955. do
  2956. IFS=$as_save_IFS
  2957. test -z "$as_dir" && as_dir=.
  2958. for ac_exec_ext in '' $ac_executable_extensions; do
  2959. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2960. ac_cv_prog_ac_ct_CC="gcc"
  2961. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2962. break 2
  2963. fi
  2964. done
  2965. done
  2966. IFS=$as_save_IFS
  2967. fi
  2968. fi
  2969. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2970. if test -n "$ac_ct_CC"; then
  2971. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2972. $as_echo "$ac_ct_CC" >&6; }
  2973. else
  2974. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2975. $as_echo "no" >&6; }
  2976. fi
  2977. if test "x$ac_ct_CC" = x; then
  2978. CC=""
  2979. else
  2980. case $cross_compiling:$ac_tool_warned in
  2981. yes:)
  2982. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2983. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2984. ac_tool_warned=yes ;;
  2985. esac
  2986. CC=$ac_ct_CC
  2987. fi
  2988. else
  2989. CC="$ac_cv_prog_CC"
  2990. fi
  2991. if test -z "$CC"; then
  2992. if test -n "$ac_tool_prefix"; then
  2993. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2994. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2995. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2996. $as_echo_n "checking for $ac_word... " >&6; }
  2997. if ${ac_cv_prog_CC+:} false; then :
  2998. $as_echo_n "(cached) " >&6
  2999. else
  3000. if test -n "$CC"; then
  3001. ac_cv_prog_CC="$CC" # Let the user override the test.
  3002. else
  3003. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3004. for as_dir in $PATH
  3005. do
  3006. IFS=$as_save_IFS
  3007. test -z "$as_dir" && as_dir=.
  3008. for ac_exec_ext in '' $ac_executable_extensions; do
  3009. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3010. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3011. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3012. break 2
  3013. fi
  3014. done
  3015. done
  3016. IFS=$as_save_IFS
  3017. fi
  3018. fi
  3019. CC=$ac_cv_prog_CC
  3020. if test -n "$CC"; then
  3021. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3022. $as_echo "$CC" >&6; }
  3023. else
  3024. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3025. $as_echo "no" >&6; }
  3026. fi
  3027. fi
  3028. fi
  3029. if test -z "$CC"; then
  3030. # Extract the first word of "cc", so it can be a program name with args.
  3031. set dummy cc; ac_word=$2
  3032. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3033. $as_echo_n "checking for $ac_word... " >&6; }
  3034. if ${ac_cv_prog_CC+:} false; then :
  3035. $as_echo_n "(cached) " >&6
  3036. else
  3037. if test -n "$CC"; then
  3038. ac_cv_prog_CC="$CC" # Let the user override the test.
  3039. else
  3040. ac_prog_rejected=no
  3041. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3042. for as_dir in $PATH
  3043. do
  3044. IFS=$as_save_IFS
  3045. test -z "$as_dir" && as_dir=.
  3046. for ac_exec_ext in '' $ac_executable_extensions; do
  3047. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3048. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3049. ac_prog_rejected=yes
  3050. continue
  3051. fi
  3052. ac_cv_prog_CC="cc"
  3053. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3054. break 2
  3055. fi
  3056. done
  3057. done
  3058. IFS=$as_save_IFS
  3059. if test $ac_prog_rejected = yes; then
  3060. # We found a bogon in the path, so make sure we never use it.
  3061. set dummy $ac_cv_prog_CC
  3062. shift
  3063. if test $# != 0; then
  3064. # We chose a different compiler from the bogus one.
  3065. # However, it has the same basename, so the bogon will be chosen
  3066. # first if we set CC to just the basename; use the full file name.
  3067. shift
  3068. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3069. fi
  3070. fi
  3071. fi
  3072. fi
  3073. CC=$ac_cv_prog_CC
  3074. if test -n "$CC"; then
  3075. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3076. $as_echo "$CC" >&6; }
  3077. else
  3078. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3079. $as_echo "no" >&6; }
  3080. fi
  3081. fi
  3082. if test -z "$CC"; then
  3083. if test -n "$ac_tool_prefix"; then
  3084. for ac_prog in cl.exe
  3085. do
  3086. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3087. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3089. $as_echo_n "checking for $ac_word... " >&6; }
  3090. if ${ac_cv_prog_CC+:} false; then :
  3091. $as_echo_n "(cached) " >&6
  3092. else
  3093. if test -n "$CC"; then
  3094. ac_cv_prog_CC="$CC" # Let the user override the test.
  3095. else
  3096. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3097. for as_dir in $PATH
  3098. do
  3099. IFS=$as_save_IFS
  3100. test -z "$as_dir" && as_dir=.
  3101. for ac_exec_ext in '' $ac_executable_extensions; do
  3102. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3103. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3104. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3105. break 2
  3106. fi
  3107. done
  3108. done
  3109. IFS=$as_save_IFS
  3110. fi
  3111. fi
  3112. CC=$ac_cv_prog_CC
  3113. if test -n "$CC"; then
  3114. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3115. $as_echo "$CC" >&6; }
  3116. else
  3117. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3118. $as_echo "no" >&6; }
  3119. fi
  3120. test -n "$CC" && break
  3121. done
  3122. fi
  3123. if test -z "$CC"; then
  3124. ac_ct_CC=$CC
  3125. for ac_prog in cl.exe
  3126. do
  3127. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3128. set dummy $ac_prog; ac_word=$2
  3129. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3130. $as_echo_n "checking for $ac_word... " >&6; }
  3131. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3132. $as_echo_n "(cached) " >&6
  3133. else
  3134. if test -n "$ac_ct_CC"; then
  3135. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3136. else
  3137. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3138. for as_dir in $PATH
  3139. do
  3140. IFS=$as_save_IFS
  3141. test -z "$as_dir" && as_dir=.
  3142. for ac_exec_ext in '' $ac_executable_extensions; do
  3143. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3144. ac_cv_prog_ac_ct_CC="$ac_prog"
  3145. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3146. break 2
  3147. fi
  3148. done
  3149. done
  3150. IFS=$as_save_IFS
  3151. fi
  3152. fi
  3153. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3154. if test -n "$ac_ct_CC"; then
  3155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3156. $as_echo "$ac_ct_CC" >&6; }
  3157. else
  3158. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3159. $as_echo "no" >&6; }
  3160. fi
  3161. test -n "$ac_ct_CC" && break
  3162. done
  3163. if test "x$ac_ct_CC" = x; then
  3164. CC=""
  3165. else
  3166. case $cross_compiling:$ac_tool_warned in
  3167. yes:)
  3168. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3169. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3170. ac_tool_warned=yes ;;
  3171. esac
  3172. CC=$ac_ct_CC
  3173. fi
  3174. fi
  3175. fi
  3176. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3177. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3178. as_fn_error $? "no acceptable C compiler found in \$PATH
  3179. See \`config.log' for more details" "$LINENO" 5; }
  3180. # Provide some information about the compiler.
  3181. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3182. set X $ac_compile
  3183. ac_compiler=$2
  3184. for ac_option in --version -v -V -qversion; do
  3185. { { ac_try="$ac_compiler $ac_option >&5"
  3186. case "(($ac_try" in
  3187. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3188. *) ac_try_echo=$ac_try;;
  3189. esac
  3190. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3191. $as_echo "$ac_try_echo"; } >&5
  3192. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3193. ac_status=$?
  3194. if test -s conftest.err; then
  3195. sed '10a\
  3196. ... rest of stderr output deleted ...
  3197. 10q' conftest.err >conftest.er1
  3198. cat conftest.er1 >&5
  3199. fi
  3200. rm -f conftest.er1 conftest.err
  3201. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3202. test $ac_status = 0; }
  3203. done
  3204. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3205. /* end confdefs.h. */
  3206. int
  3207. main ()
  3208. {
  3209. ;
  3210. return 0;
  3211. }
  3212. _ACEOF
  3213. ac_clean_files_save=$ac_clean_files
  3214. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  3215. # Try to create an executable without -o first, disregard a.out.
  3216. # It will help us diagnose broken compilers, and finding out an intuition
  3217. # of exeext.
  3218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  3219. $as_echo_n "checking whether the C compiler works... " >&6; }
  3220. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  3221. # The possible output files:
  3222. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  3223. ac_rmfiles=
  3224. for ac_file in $ac_files
  3225. do
  3226. case $ac_file in
  3227. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3228. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  3229. esac
  3230. done
  3231. rm -f $ac_rmfiles
  3232. if { { ac_try="$ac_link_default"
  3233. case "(($ac_try" in
  3234. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3235. *) ac_try_echo=$ac_try;;
  3236. esac
  3237. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3238. $as_echo "$ac_try_echo"; } >&5
  3239. (eval "$ac_link_default") 2>&5
  3240. ac_status=$?
  3241. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3242. test $ac_status = 0; }; then :
  3243. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  3244. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  3245. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  3246. # so that the user can short-circuit this test for compilers unknown to
  3247. # Autoconf.
  3248. for ac_file in $ac_files ''
  3249. do
  3250. test -f "$ac_file" || continue
  3251. case $ac_file in
  3252. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  3253. ;;
  3254. [ab].out )
  3255. # We found the default executable, but exeext='' is most
  3256. # certainly right.
  3257. break;;
  3258. *.* )
  3259. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  3260. then :; else
  3261. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3262. fi
  3263. # We set ac_cv_exeext here because the later test for it is not
  3264. # safe: cross compilers may not add the suffix if given an `-o'
  3265. # argument, so we may need to know it at that point already.
  3266. # Even if this section looks crufty: it has the advantage of
  3267. # actually working.
  3268. break;;
  3269. * )
  3270. break;;
  3271. esac
  3272. done
  3273. test "$ac_cv_exeext" = no && ac_cv_exeext=
  3274. else
  3275. ac_file=''
  3276. fi
  3277. if test -z "$ac_file"; then :
  3278. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3279. $as_echo "no" >&6; }
  3280. $as_echo "$as_me: failed program was:" >&5
  3281. sed 's/^/| /' conftest.$ac_ext >&5
  3282. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3283. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3284. as_fn_error 77 "C compiler cannot create executables
  3285. See \`config.log' for more details" "$LINENO" 5; }
  3286. else
  3287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  3288. $as_echo "yes" >&6; }
  3289. fi
  3290. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  3291. $as_echo_n "checking for C compiler default output file name... " >&6; }
  3292. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  3293. $as_echo "$ac_file" >&6; }
  3294. ac_exeext=$ac_cv_exeext
  3295. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  3296. ac_clean_files=$ac_clean_files_save
  3297. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  3298. $as_echo_n "checking for suffix of executables... " >&6; }
  3299. if { { ac_try="$ac_link"
  3300. case "(($ac_try" in
  3301. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3302. *) ac_try_echo=$ac_try;;
  3303. esac
  3304. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3305. $as_echo "$ac_try_echo"; } >&5
  3306. (eval "$ac_link") 2>&5
  3307. ac_status=$?
  3308. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3309. test $ac_status = 0; }; then :
  3310. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  3311. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  3312. # work properly (i.e., refer to `conftest.exe'), while it won't with
  3313. # `rm'.
  3314. for ac_file in conftest.exe conftest conftest.*; do
  3315. test -f "$ac_file" || continue
  3316. case $ac_file in
  3317. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  3318. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  3319. break;;
  3320. * ) break;;
  3321. esac
  3322. done
  3323. else
  3324. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3325. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3326. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  3327. See \`config.log' for more details" "$LINENO" 5; }
  3328. fi
  3329. rm -f conftest conftest$ac_cv_exeext
  3330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  3331. $as_echo "$ac_cv_exeext" >&6; }
  3332. rm -f conftest.$ac_ext
  3333. EXEEXT=$ac_cv_exeext
  3334. ac_exeext=$EXEEXT
  3335. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3336. /* end confdefs.h. */
  3337. #include <stdio.h>
  3338. int
  3339. main ()
  3340. {
  3341. FILE *f = fopen ("conftest.out", "w");
  3342. return ferror (f) || fclose (f) != 0;
  3343. ;
  3344. return 0;
  3345. }
  3346. _ACEOF
  3347. ac_clean_files="$ac_clean_files conftest.out"
  3348. # Check that the compiler produces executables we can run. If not, either
  3349. # the compiler is broken, or we cross compile.
  3350. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  3351. $as_echo_n "checking whether we are cross compiling... " >&6; }
  3352. if test "$cross_compiling" != yes; then
  3353. { { ac_try="$ac_link"
  3354. case "(($ac_try" in
  3355. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3356. *) ac_try_echo=$ac_try;;
  3357. esac
  3358. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3359. $as_echo "$ac_try_echo"; } >&5
  3360. (eval "$ac_link") 2>&5
  3361. ac_status=$?
  3362. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3363. test $ac_status = 0; }
  3364. if { ac_try='./conftest$ac_cv_exeext'
  3365. { { case "(($ac_try" in
  3366. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3367. *) ac_try_echo=$ac_try;;
  3368. esac
  3369. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3370. $as_echo "$ac_try_echo"; } >&5
  3371. (eval "$ac_try") 2>&5
  3372. ac_status=$?
  3373. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3374. test $ac_status = 0; }; }; then
  3375. cross_compiling=no
  3376. else
  3377. if test "$cross_compiling" = maybe; then
  3378. cross_compiling=yes
  3379. else
  3380. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3381. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3382. as_fn_error $? "cannot run C compiled programs.
  3383. If you meant to cross compile, use \`--host'.
  3384. See \`config.log' for more details" "$LINENO" 5; }
  3385. fi
  3386. fi
  3387. fi
  3388. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  3389. $as_echo "$cross_compiling" >&6; }
  3390. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  3391. ac_clean_files=$ac_clean_files_save
  3392. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  3393. $as_echo_n "checking for suffix of object files... " >&6; }
  3394. if ${ac_cv_objext+:} false; then :
  3395. $as_echo_n "(cached) " >&6
  3396. else
  3397. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3398. /* end confdefs.h. */
  3399. int
  3400. main ()
  3401. {
  3402. ;
  3403. return 0;
  3404. }
  3405. _ACEOF
  3406. rm -f conftest.o conftest.obj
  3407. if { { ac_try="$ac_compile"
  3408. case "(($ac_try" in
  3409. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3410. *) ac_try_echo=$ac_try;;
  3411. esac
  3412. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3413. $as_echo "$ac_try_echo"; } >&5
  3414. (eval "$ac_compile") 2>&5
  3415. ac_status=$?
  3416. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3417. test $ac_status = 0; }; then :
  3418. for ac_file in conftest.o conftest.obj conftest.*; do
  3419. test -f "$ac_file" || continue;
  3420. case $ac_file in
  3421. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  3422. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  3423. break;;
  3424. esac
  3425. done
  3426. else
  3427. $as_echo "$as_me: failed program was:" >&5
  3428. sed 's/^/| /' conftest.$ac_ext >&5
  3429. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3430. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3431. as_fn_error $? "cannot compute suffix of object files: cannot compile
  3432. See \`config.log' for more details" "$LINENO" 5; }
  3433. fi
  3434. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  3435. fi
  3436. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  3437. $as_echo "$ac_cv_objext" >&6; }
  3438. OBJEXT=$ac_cv_objext
  3439. ac_objext=$OBJEXT
  3440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3441. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3442. if ${ac_cv_c_compiler_gnu+:} false; then :
  3443. $as_echo_n "(cached) " >&6
  3444. else
  3445. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3446. /* end confdefs.h. */
  3447. int
  3448. main ()
  3449. {
  3450. #ifndef __GNUC__
  3451. choke me
  3452. #endif
  3453. ;
  3454. return 0;
  3455. }
  3456. _ACEOF
  3457. if ac_fn_c_try_compile "$LINENO"; then :
  3458. ac_compiler_gnu=yes
  3459. else
  3460. ac_compiler_gnu=no
  3461. fi
  3462. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3463. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3464. fi
  3465. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3466. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3467. if test $ac_compiler_gnu = yes; then
  3468. GCC=yes
  3469. else
  3470. GCC=
  3471. fi
  3472. ac_test_CFLAGS=${CFLAGS+set}
  3473. ac_save_CFLAGS=$CFLAGS
  3474. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3475. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3476. if ${ac_cv_prog_cc_g+:} false; then :
  3477. $as_echo_n "(cached) " >&6
  3478. else
  3479. ac_save_c_werror_flag=$ac_c_werror_flag
  3480. ac_c_werror_flag=yes
  3481. ac_cv_prog_cc_g=no
  3482. CFLAGS="-g"
  3483. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3484. /* end confdefs.h. */
  3485. int
  3486. main ()
  3487. {
  3488. ;
  3489. return 0;
  3490. }
  3491. _ACEOF
  3492. if ac_fn_c_try_compile "$LINENO"; then :
  3493. ac_cv_prog_cc_g=yes
  3494. else
  3495. CFLAGS=""
  3496. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3497. /* end confdefs.h. */
  3498. int
  3499. main ()
  3500. {
  3501. ;
  3502. return 0;
  3503. }
  3504. _ACEOF
  3505. if ac_fn_c_try_compile "$LINENO"; then :
  3506. else
  3507. ac_c_werror_flag=$ac_save_c_werror_flag
  3508. CFLAGS="-g"
  3509. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3510. /* end confdefs.h. */
  3511. int
  3512. main ()
  3513. {
  3514. ;
  3515. return 0;
  3516. }
  3517. _ACEOF
  3518. if ac_fn_c_try_compile "$LINENO"; then :
  3519. ac_cv_prog_cc_g=yes
  3520. fi
  3521. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3522. fi
  3523. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3524. fi
  3525. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3526. ac_c_werror_flag=$ac_save_c_werror_flag
  3527. fi
  3528. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3529. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3530. if test "$ac_test_CFLAGS" = set; then
  3531. CFLAGS=$ac_save_CFLAGS
  3532. elif test $ac_cv_prog_cc_g = yes; then
  3533. if test "$GCC" = yes; then
  3534. CFLAGS="-g -O2"
  3535. else
  3536. CFLAGS="-g"
  3537. fi
  3538. else
  3539. if test "$GCC" = yes; then
  3540. CFLAGS="-O2"
  3541. else
  3542. CFLAGS=
  3543. fi
  3544. fi
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3546. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3547. if ${ac_cv_prog_cc_c89+:} false; then :
  3548. $as_echo_n "(cached) " >&6
  3549. else
  3550. ac_cv_prog_cc_c89=no
  3551. ac_save_CC=$CC
  3552. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3553. /* end confdefs.h. */
  3554. #include <stdarg.h>
  3555. #include <stdio.h>
  3556. struct stat;
  3557. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3558. struct buf { int x; };
  3559. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3560. static char *e (p, i)
  3561. char **p;
  3562. int i;
  3563. {
  3564. return p[i];
  3565. }
  3566. static char *f (char * (*g) (char **, int), char **p, ...)
  3567. {
  3568. char *s;
  3569. va_list v;
  3570. va_start (v,p);
  3571. s = g (p, va_arg (v,int));
  3572. va_end (v);
  3573. return s;
  3574. }
  3575. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3576. function prototypes and stuff, but not '\xHH' hex character constants.
  3577. These don't provoke an error unfortunately, instead are silently treated
  3578. as 'x'. The following induces an error, until -std is added to get
  3579. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3580. array size at least. It's necessary to write '\x00'==0 to get something
  3581. that's true only with -std. */
  3582. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3583. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3584. inside strings and character constants. */
  3585. #define FOO(x) 'x'
  3586. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3587. int test (int i, double x);
  3588. struct s1 {int (*f) (int a);};
  3589. struct s2 {int (*f) (double a);};
  3590. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3591. int argc;
  3592. char **argv;
  3593. int
  3594. main ()
  3595. {
  3596. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3597. ;
  3598. return 0;
  3599. }
  3600. _ACEOF
  3601. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3602. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3603. do
  3604. CC="$ac_save_CC $ac_arg"
  3605. if ac_fn_c_try_compile "$LINENO"; then :
  3606. ac_cv_prog_cc_c89=$ac_arg
  3607. fi
  3608. rm -f core conftest.err conftest.$ac_objext
  3609. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3610. done
  3611. rm -f conftest.$ac_ext
  3612. CC=$ac_save_CC
  3613. fi
  3614. # AC_CACHE_VAL
  3615. case "x$ac_cv_prog_cc_c89" in
  3616. x)
  3617. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3618. $as_echo "none needed" >&6; } ;;
  3619. xno)
  3620. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3621. $as_echo "unsupported" >&6; } ;;
  3622. *)
  3623. CC="$CC $ac_cv_prog_cc_c89"
  3624. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3625. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3626. esac
  3627. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3628. fi
  3629. ac_ext=c
  3630. ac_cpp='$CPP $CPPFLAGS'
  3631. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3632. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3633. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3634. ac_ext=c
  3635. ac_cpp='$CPP $CPPFLAGS'
  3636. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3637. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3638. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  3640. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  3641. if ${am_cv_prog_cc_c_o+:} false; then :
  3642. $as_echo_n "(cached) " >&6
  3643. else
  3644. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3645. /* end confdefs.h. */
  3646. int
  3647. main ()
  3648. {
  3649. ;
  3650. return 0;
  3651. }
  3652. _ACEOF
  3653. # Make sure it works both with $CC and with simple cc.
  3654. # Following AC_PROG_CC_C_O, we do the test twice because some
  3655. # compilers refuse to overwrite an existing .o file with -o,
  3656. # though they will create one.
  3657. am_cv_prog_cc_c_o=yes
  3658. for am_i in 1 2; do
  3659. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  3660. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  3661. ac_status=$?
  3662. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  3663. (exit $ac_status); } \
  3664. && test -f conftest2.$ac_objext; then
  3665. : OK
  3666. else
  3667. am_cv_prog_cc_c_o=no
  3668. break
  3669. fi
  3670. done
  3671. rm -f core conftest*
  3672. unset am_i
  3673. fi
  3674. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  3675. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  3676. if test "$am_cv_prog_cc_c_o" != yes; then
  3677. # Losing compiler, so override with the script.
  3678. # FIXME: It is wrong to rewrite CC.
  3679. # But if we don't then we get into trouble of one sort or another.
  3680. # A longer-term fix would be to have automake use am__CC in this case,
  3681. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  3682. CC="$am_aux_dir/compile $CC"
  3683. fi
  3684. ac_ext=c
  3685. ac_cpp='$CPP $CPPFLAGS'
  3686. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3687. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3688. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3689. depcc="$CC" am_compiler_list=
  3690. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  3691. $as_echo_n "checking dependency style of $depcc... " >&6; }
  3692. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  3693. $as_echo_n "(cached) " >&6
  3694. else
  3695. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  3696. # We make a subdir and do the tests there. Otherwise we can end up
  3697. # making bogus files that we don't know about and never remove. For
  3698. # instance it was reported that on HP-UX the gcc test will end up
  3699. # making a dummy file named 'D' -- because '-MD' means "put the output
  3700. # in D".
  3701. rm -rf conftest.dir
  3702. mkdir conftest.dir
  3703. # Copy depcomp to subdir because otherwise we won't find it if we're
  3704. # using a relative directory.
  3705. cp "$am_depcomp" conftest.dir
  3706. cd conftest.dir
  3707. # We will build objects and dependencies in a subdirectory because
  3708. # it helps to detect inapplicable dependency modes. For instance
  3709. # both Tru64's cc and ICC support -MD to output dependencies as a
  3710. # side effect of compilation, but ICC will put the dependencies in
  3711. # the current directory while Tru64 will put them in the object
  3712. # directory.
  3713. mkdir sub
  3714. am_cv_CC_dependencies_compiler_type=none
  3715. if test "$am_compiler_list" = ""; then
  3716. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  3717. fi
  3718. am__universal=false
  3719. case " $depcc " in #(
  3720. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  3721. esac
  3722. for depmode in $am_compiler_list; do
  3723. # Setup a source with many dependencies, because some compilers
  3724. # like to wrap large dependency lists on column 80 (with \), and
  3725. # we should not choose a depcomp mode which is confused by this.
  3726. #
  3727. # We need to recreate these files for each test, as the compiler may
  3728. # overwrite some of them when testing with obscure command lines.
  3729. # This happens at least with the AIX C compiler.
  3730. : > sub/conftest.c
  3731. for i in 1 2 3 4 5 6; do
  3732. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  3733. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  3734. # Solaris 10 /bin/sh.
  3735. echo '/* dummy */' > sub/conftst$i.h
  3736. done
  3737. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  3738. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  3739. # mode. It turns out that the SunPro C++ compiler does not properly
  3740. # handle '-M -o', and we need to detect this. Also, some Intel
  3741. # versions had trouble with output in subdirs.
  3742. am__obj=sub/conftest.${OBJEXT-o}
  3743. am__minus_obj="-o $am__obj"
  3744. case $depmode in
  3745. gcc)
  3746. # This depmode causes a compiler race in universal mode.
  3747. test "$am__universal" = false || continue
  3748. ;;
  3749. nosideeffect)
  3750. # After this tag, mechanisms are not by side-effect, so they'll
  3751. # only be used when explicitly requested.
  3752. if test "x$enable_dependency_tracking" = xyes; then
  3753. continue
  3754. else
  3755. break
  3756. fi
  3757. ;;
  3758. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  3759. # This compiler won't grok '-c -o', but also, the minuso test has
  3760. # not run yet. These depmodes are late enough in the game, and
  3761. # so weak that their functioning should not be impacted.
  3762. am__obj=conftest.${OBJEXT-o}
  3763. am__minus_obj=
  3764. ;;
  3765. none) break ;;
  3766. esac
  3767. if depmode=$depmode \
  3768. source=sub/conftest.c object=$am__obj \
  3769. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  3770. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  3771. >/dev/null 2>conftest.err &&
  3772. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  3773. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  3774. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  3775. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  3776. # icc doesn't choke on unknown options, it will just issue warnings
  3777. # or remarks (even with -Werror). So we grep stderr for any message
  3778. # that says an option was ignored or not supported.
  3779. # When given -MP, icc 7.0 and 7.1 complain thusly:
  3780. # icc: Command line warning: ignoring option '-M'; no argument required
  3781. # The diagnosis changed in icc 8.0:
  3782. # icc: Command line remark: option '-MP' not supported
  3783. if (grep 'ignoring option' conftest.err ||
  3784. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  3785. am_cv_CC_dependencies_compiler_type=$depmode
  3786. break
  3787. fi
  3788. fi
  3789. done
  3790. cd ..
  3791. rm -rf conftest.dir
  3792. else
  3793. am_cv_CC_dependencies_compiler_type=none
  3794. fi
  3795. fi
  3796. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  3797. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  3798. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  3799. if
  3800. test "x$enable_dependency_tracking" != xno \
  3801. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  3802. am__fastdepCC_TRUE=
  3803. am__fastdepCC_FALSE='#'
  3804. else
  3805. am__fastdepCC_TRUE='#'
  3806. am__fastdepCC_FALSE=
  3807. fi
  3808. ac_ext=c
  3809. ac_cpp='$CPP $CPPFLAGS'
  3810. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3811. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3812. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3813. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3814. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3815. # On Suns, sometimes $CPP names a directory.
  3816. if test -n "$CPP" && test -d "$CPP"; then
  3817. CPP=
  3818. fi
  3819. if test -z "$CPP"; then
  3820. if ${ac_cv_prog_CPP+:} false; then :
  3821. $as_echo_n "(cached) " >&6
  3822. else
  3823. # Double quotes because CPP needs to be expanded
  3824. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3825. do
  3826. ac_preproc_ok=false
  3827. for ac_c_preproc_warn_flag in '' yes
  3828. do
  3829. # Use a header file that comes with gcc, so configuring glibc
  3830. # with a fresh cross-compiler works.
  3831. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3832. # <limits.h> exists even on freestanding compilers.
  3833. # On the NeXT, cc -E runs the code through the compiler's parser,
  3834. # not just through cpp. "Syntax error" is here to catch this case.
  3835. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3836. /* end confdefs.h. */
  3837. #ifdef __STDC__
  3838. # include <limits.h>
  3839. #else
  3840. # include <assert.h>
  3841. #endif
  3842. Syntax error
  3843. _ACEOF
  3844. if ac_fn_c_try_cpp "$LINENO"; then :
  3845. else
  3846. # Broken: fails on valid input.
  3847. continue
  3848. fi
  3849. rm -f conftest.err conftest.i conftest.$ac_ext
  3850. # OK, works on sane cases. Now check whether nonexistent headers
  3851. # can be detected and how.
  3852. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3853. /* end confdefs.h. */
  3854. #include <ac_nonexistent.h>
  3855. _ACEOF
  3856. if ac_fn_c_try_cpp "$LINENO"; then :
  3857. # Broken: success on invalid input.
  3858. continue
  3859. else
  3860. # Passes both tests.
  3861. ac_preproc_ok=:
  3862. break
  3863. fi
  3864. rm -f conftest.err conftest.i conftest.$ac_ext
  3865. done
  3866. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3867. rm -f conftest.i conftest.err conftest.$ac_ext
  3868. if $ac_preproc_ok; then :
  3869. break
  3870. fi
  3871. done
  3872. ac_cv_prog_CPP=$CPP
  3873. fi
  3874. CPP=$ac_cv_prog_CPP
  3875. else
  3876. ac_cv_prog_CPP=$CPP
  3877. fi
  3878. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3879. $as_echo "$CPP" >&6; }
  3880. ac_preproc_ok=false
  3881. for ac_c_preproc_warn_flag in '' yes
  3882. do
  3883. # Use a header file that comes with gcc, so configuring glibc
  3884. # with a fresh cross-compiler works.
  3885. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3886. # <limits.h> exists even on freestanding compilers.
  3887. # On the NeXT, cc -E runs the code through the compiler's parser,
  3888. # not just through cpp. "Syntax error" is here to catch this case.
  3889. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3890. /* end confdefs.h. */
  3891. #ifdef __STDC__
  3892. # include <limits.h>
  3893. #else
  3894. # include <assert.h>
  3895. #endif
  3896. Syntax error
  3897. _ACEOF
  3898. if ac_fn_c_try_cpp "$LINENO"; then :
  3899. else
  3900. # Broken: fails on valid input.
  3901. continue
  3902. fi
  3903. rm -f conftest.err conftest.i conftest.$ac_ext
  3904. # OK, works on sane cases. Now check whether nonexistent headers
  3905. # can be detected and how.
  3906. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3907. /* end confdefs.h. */
  3908. #include <ac_nonexistent.h>
  3909. _ACEOF
  3910. if ac_fn_c_try_cpp "$LINENO"; then :
  3911. # Broken: success on invalid input.
  3912. continue
  3913. else
  3914. # Passes both tests.
  3915. ac_preproc_ok=:
  3916. break
  3917. fi
  3918. rm -f conftest.err conftest.i conftest.$ac_ext
  3919. done
  3920. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3921. rm -f conftest.i conftest.err conftest.$ac_ext
  3922. if $ac_preproc_ok; then :
  3923. else
  3924. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3925. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3926. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3927. See \`config.log' for more details" "$LINENO" 5; }
  3928. fi
  3929. ac_ext=c
  3930. ac_cpp='$CPP $CPPFLAGS'
  3931. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3932. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3933. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3934. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3935. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3936. if ${ac_cv_path_GREP+:} false; then :
  3937. $as_echo_n "(cached) " >&6
  3938. else
  3939. if test -z "$GREP"; then
  3940. ac_path_GREP_found=false
  3941. # Loop through the user's path and test for each of PROGNAME-LIST
  3942. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3943. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3944. do
  3945. IFS=$as_save_IFS
  3946. test -z "$as_dir" && as_dir=.
  3947. for ac_prog in grep ggrep; do
  3948. for ac_exec_ext in '' $ac_executable_extensions; do
  3949. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3950. as_fn_executable_p "$ac_path_GREP" || continue
  3951. # Check for GNU ac_path_GREP and select it if it is found.
  3952. # Check for GNU $ac_path_GREP
  3953. case `"$ac_path_GREP" --version 2>&1` in
  3954. *GNU*)
  3955. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3956. *)
  3957. ac_count=0
  3958. $as_echo_n 0123456789 >"conftest.in"
  3959. while :
  3960. do
  3961. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3962. mv "conftest.tmp" "conftest.in"
  3963. cp "conftest.in" "conftest.nl"
  3964. $as_echo 'GREP' >> "conftest.nl"
  3965. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3966. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3967. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3968. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3969. # Best one so far, save it but keep looking for a better one
  3970. ac_cv_path_GREP="$ac_path_GREP"
  3971. ac_path_GREP_max=$ac_count
  3972. fi
  3973. # 10*(2^10) chars as input seems more than enough
  3974. test $ac_count -gt 10 && break
  3975. done
  3976. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3977. esac
  3978. $ac_path_GREP_found && break 3
  3979. done
  3980. done
  3981. done
  3982. IFS=$as_save_IFS
  3983. if test -z "$ac_cv_path_GREP"; then
  3984. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3985. fi
  3986. else
  3987. ac_cv_path_GREP=$GREP
  3988. fi
  3989. fi
  3990. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3991. $as_echo "$ac_cv_path_GREP" >&6; }
  3992. GREP="$ac_cv_path_GREP"
  3993. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3994. $as_echo_n "checking for egrep... " >&6; }
  3995. if ${ac_cv_path_EGREP+:} false; then :
  3996. $as_echo_n "(cached) " >&6
  3997. else
  3998. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3999. then ac_cv_path_EGREP="$GREP -E"
  4000. else
  4001. if test -z "$EGREP"; then
  4002. ac_path_EGREP_found=false
  4003. # Loop through the user's path and test for each of PROGNAME-LIST
  4004. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4005. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4006. do
  4007. IFS=$as_save_IFS
  4008. test -z "$as_dir" && as_dir=.
  4009. for ac_prog in egrep; do
  4010. for ac_exec_ext in '' $ac_executable_extensions; do
  4011. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  4012. as_fn_executable_p "$ac_path_EGREP" || continue
  4013. # Check for GNU ac_path_EGREP and select it if it is found.
  4014. # Check for GNU $ac_path_EGREP
  4015. case `"$ac_path_EGREP" --version 2>&1` in
  4016. *GNU*)
  4017. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  4018. *)
  4019. ac_count=0
  4020. $as_echo_n 0123456789 >"conftest.in"
  4021. while :
  4022. do
  4023. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4024. mv "conftest.tmp" "conftest.in"
  4025. cp "conftest.in" "conftest.nl"
  4026. $as_echo 'EGREP' >> "conftest.nl"
  4027. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4028. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4029. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4030. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  4031. # Best one so far, save it but keep looking for a better one
  4032. ac_cv_path_EGREP="$ac_path_EGREP"
  4033. ac_path_EGREP_max=$ac_count
  4034. fi
  4035. # 10*(2^10) chars as input seems more than enough
  4036. test $ac_count -gt 10 && break
  4037. done
  4038. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4039. esac
  4040. $ac_path_EGREP_found && break 3
  4041. done
  4042. done
  4043. done
  4044. IFS=$as_save_IFS
  4045. if test -z "$ac_cv_path_EGREP"; then
  4046. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4047. fi
  4048. else
  4049. ac_cv_path_EGREP=$EGREP
  4050. fi
  4051. fi
  4052. fi
  4053. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  4054. $as_echo "$ac_cv_path_EGREP" >&6; }
  4055. EGREP="$ac_cv_path_EGREP"
  4056. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  4057. $as_echo_n "checking for ANSI C header files... " >&6; }
  4058. if ${ac_cv_header_stdc+:} false; then :
  4059. $as_echo_n "(cached) " >&6
  4060. else
  4061. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4062. /* end confdefs.h. */
  4063. #include <stdlib.h>
  4064. #include <stdarg.h>
  4065. #include <string.h>
  4066. #include <float.h>
  4067. int
  4068. main ()
  4069. {
  4070. ;
  4071. return 0;
  4072. }
  4073. _ACEOF
  4074. if ac_fn_c_try_compile "$LINENO"; then :
  4075. ac_cv_header_stdc=yes
  4076. else
  4077. ac_cv_header_stdc=no
  4078. fi
  4079. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4080. if test $ac_cv_header_stdc = yes; then
  4081. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  4082. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4083. /* end confdefs.h. */
  4084. #include <string.h>
  4085. _ACEOF
  4086. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4087. $EGREP "memchr" >/dev/null 2>&1; then :
  4088. else
  4089. ac_cv_header_stdc=no
  4090. fi
  4091. rm -f conftest*
  4092. fi
  4093. if test $ac_cv_header_stdc = yes; then
  4094. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  4095. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4096. /* end confdefs.h. */
  4097. #include <stdlib.h>
  4098. _ACEOF
  4099. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  4100. $EGREP "free" >/dev/null 2>&1; then :
  4101. else
  4102. ac_cv_header_stdc=no
  4103. fi
  4104. rm -f conftest*
  4105. fi
  4106. if test $ac_cv_header_stdc = yes; then
  4107. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  4108. if test "$cross_compiling" = yes; then :
  4109. :
  4110. else
  4111. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4112. /* end confdefs.h. */
  4113. #include <ctype.h>
  4114. #include <stdlib.h>
  4115. #if ((' ' & 0x0FF) == 0x020)
  4116. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  4117. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  4118. #else
  4119. # define ISLOWER(c) \
  4120. (('a' <= (c) && (c) <= 'i') \
  4121. || ('j' <= (c) && (c) <= 'r') \
  4122. || ('s' <= (c) && (c) <= 'z'))
  4123. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  4124. #endif
  4125. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  4126. int
  4127. main ()
  4128. {
  4129. int i;
  4130. for (i = 0; i < 256; i++)
  4131. if (XOR (islower (i), ISLOWER (i))
  4132. || toupper (i) != TOUPPER (i))
  4133. return 2;
  4134. return 0;
  4135. }
  4136. _ACEOF
  4137. if ac_fn_c_try_run "$LINENO"; then :
  4138. else
  4139. ac_cv_header_stdc=no
  4140. fi
  4141. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  4142. conftest.$ac_objext conftest.beam conftest.$ac_ext
  4143. fi
  4144. fi
  4145. fi
  4146. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  4147. $as_echo "$ac_cv_header_stdc" >&6; }
  4148. if test $ac_cv_header_stdc = yes; then
  4149. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  4150. fi
  4151. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  4152. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  4153. inttypes.h stdint.h unistd.h
  4154. do :
  4155. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  4156. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  4157. "
  4158. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  4159. cat >>confdefs.h <<_ACEOF
  4160. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  4161. _ACEOF
  4162. fi
  4163. done
  4164. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  4165. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  4166. MINIX=yes
  4167. else
  4168. MINIX=
  4169. fi
  4170. if test "$MINIX" = yes; then
  4171. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  4172. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  4173. $as_echo "#define _MINIX 1" >>confdefs.h
  4174. fi
  4175. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  4176. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  4177. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  4178. $as_echo_n "(cached) " >&6
  4179. else
  4180. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4181. /* end confdefs.h. */
  4182. # define __EXTENSIONS__ 1
  4183. $ac_includes_default
  4184. int
  4185. main ()
  4186. {
  4187. ;
  4188. return 0;
  4189. }
  4190. _ACEOF
  4191. if ac_fn_c_try_compile "$LINENO"; then :
  4192. ac_cv_safe_to_define___extensions__=yes
  4193. else
  4194. ac_cv_safe_to_define___extensions__=no
  4195. fi
  4196. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4197. fi
  4198. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  4199. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  4200. test $ac_cv_safe_to_define___extensions__ = yes &&
  4201. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  4202. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  4203. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  4204. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  4205. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  4206. ac_ext=c
  4207. ac_cpp='$CPP $CPPFLAGS'
  4208. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4209. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4210. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4211. if test -n "$ac_tool_prefix"; then
  4212. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  4213. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4215. $as_echo_n "checking for $ac_word... " >&6; }
  4216. if ${ac_cv_prog_CC+:} false; then :
  4217. $as_echo_n "(cached) " >&6
  4218. else
  4219. if test -n "$CC"; then
  4220. ac_cv_prog_CC="$CC" # Let the user override the test.
  4221. else
  4222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4223. for as_dir in $PATH
  4224. do
  4225. IFS=$as_save_IFS
  4226. test -z "$as_dir" && as_dir=.
  4227. for ac_exec_ext in '' $ac_executable_extensions; do
  4228. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4229. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  4230. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4231. break 2
  4232. fi
  4233. done
  4234. done
  4235. IFS=$as_save_IFS
  4236. fi
  4237. fi
  4238. CC=$ac_cv_prog_CC
  4239. if test -n "$CC"; then
  4240. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4241. $as_echo "$CC" >&6; }
  4242. else
  4243. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4244. $as_echo "no" >&6; }
  4245. fi
  4246. fi
  4247. if test -z "$ac_cv_prog_CC"; then
  4248. ac_ct_CC=$CC
  4249. # Extract the first word of "gcc", so it can be a program name with args.
  4250. set dummy gcc; ac_word=$2
  4251. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4252. $as_echo_n "checking for $ac_word... " >&6; }
  4253. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4254. $as_echo_n "(cached) " >&6
  4255. else
  4256. if test -n "$ac_ct_CC"; then
  4257. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4258. else
  4259. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4260. for as_dir in $PATH
  4261. do
  4262. IFS=$as_save_IFS
  4263. test -z "$as_dir" && as_dir=.
  4264. for ac_exec_ext in '' $ac_executable_extensions; do
  4265. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4266. ac_cv_prog_ac_ct_CC="gcc"
  4267. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4268. break 2
  4269. fi
  4270. done
  4271. done
  4272. IFS=$as_save_IFS
  4273. fi
  4274. fi
  4275. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4276. if test -n "$ac_ct_CC"; then
  4277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4278. $as_echo "$ac_ct_CC" >&6; }
  4279. else
  4280. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4281. $as_echo "no" >&6; }
  4282. fi
  4283. if test "x$ac_ct_CC" = x; then
  4284. CC=""
  4285. else
  4286. case $cross_compiling:$ac_tool_warned in
  4287. yes:)
  4288. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4289. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4290. ac_tool_warned=yes ;;
  4291. esac
  4292. CC=$ac_ct_CC
  4293. fi
  4294. else
  4295. CC="$ac_cv_prog_CC"
  4296. fi
  4297. if test -z "$CC"; then
  4298. if test -n "$ac_tool_prefix"; then
  4299. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  4300. set dummy ${ac_tool_prefix}cc; ac_word=$2
  4301. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4302. $as_echo_n "checking for $ac_word... " >&6; }
  4303. if ${ac_cv_prog_CC+:} false; then :
  4304. $as_echo_n "(cached) " >&6
  4305. else
  4306. if test -n "$CC"; then
  4307. ac_cv_prog_CC="$CC" # Let the user override the test.
  4308. else
  4309. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4310. for as_dir in $PATH
  4311. do
  4312. IFS=$as_save_IFS
  4313. test -z "$as_dir" && as_dir=.
  4314. for ac_exec_ext in '' $ac_executable_extensions; do
  4315. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4316. ac_cv_prog_CC="${ac_tool_prefix}cc"
  4317. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4318. break 2
  4319. fi
  4320. done
  4321. done
  4322. IFS=$as_save_IFS
  4323. fi
  4324. fi
  4325. CC=$ac_cv_prog_CC
  4326. if test -n "$CC"; then
  4327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4328. $as_echo "$CC" >&6; }
  4329. else
  4330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4331. $as_echo "no" >&6; }
  4332. fi
  4333. fi
  4334. fi
  4335. if test -z "$CC"; then
  4336. # Extract the first word of "cc", so it can be a program name with args.
  4337. set dummy cc; ac_word=$2
  4338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4339. $as_echo_n "checking for $ac_word... " >&6; }
  4340. if ${ac_cv_prog_CC+:} false; then :
  4341. $as_echo_n "(cached) " >&6
  4342. else
  4343. if test -n "$CC"; then
  4344. ac_cv_prog_CC="$CC" # Let the user override the test.
  4345. else
  4346. ac_prog_rejected=no
  4347. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4348. for as_dir in $PATH
  4349. do
  4350. IFS=$as_save_IFS
  4351. test -z "$as_dir" && as_dir=.
  4352. for ac_exec_ext in '' $ac_executable_extensions; do
  4353. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4354. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  4355. ac_prog_rejected=yes
  4356. continue
  4357. fi
  4358. ac_cv_prog_CC="cc"
  4359. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4360. break 2
  4361. fi
  4362. done
  4363. done
  4364. IFS=$as_save_IFS
  4365. if test $ac_prog_rejected = yes; then
  4366. # We found a bogon in the path, so make sure we never use it.
  4367. set dummy $ac_cv_prog_CC
  4368. shift
  4369. if test $# != 0; then
  4370. # We chose a different compiler from the bogus one.
  4371. # However, it has the same basename, so the bogon will be chosen
  4372. # first if we set CC to just the basename; use the full file name.
  4373. shift
  4374. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  4375. fi
  4376. fi
  4377. fi
  4378. fi
  4379. CC=$ac_cv_prog_CC
  4380. if test -n "$CC"; then
  4381. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4382. $as_echo "$CC" >&6; }
  4383. else
  4384. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4385. $as_echo "no" >&6; }
  4386. fi
  4387. fi
  4388. if test -z "$CC"; then
  4389. if test -n "$ac_tool_prefix"; then
  4390. for ac_prog in cl.exe
  4391. do
  4392. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4393. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4395. $as_echo_n "checking for $ac_word... " >&6; }
  4396. if ${ac_cv_prog_CC+:} false; then :
  4397. $as_echo_n "(cached) " >&6
  4398. else
  4399. if test -n "$CC"; then
  4400. ac_cv_prog_CC="$CC" # Let the user override the test.
  4401. else
  4402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4403. for as_dir in $PATH
  4404. do
  4405. IFS=$as_save_IFS
  4406. test -z "$as_dir" && as_dir=.
  4407. for ac_exec_ext in '' $ac_executable_extensions; do
  4408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4409. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  4410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4411. break 2
  4412. fi
  4413. done
  4414. done
  4415. IFS=$as_save_IFS
  4416. fi
  4417. fi
  4418. CC=$ac_cv_prog_CC
  4419. if test -n "$CC"; then
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  4421. $as_echo "$CC" >&6; }
  4422. else
  4423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4424. $as_echo "no" >&6; }
  4425. fi
  4426. test -n "$CC" && break
  4427. done
  4428. fi
  4429. if test -z "$CC"; then
  4430. ac_ct_CC=$CC
  4431. for ac_prog in cl.exe
  4432. do
  4433. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4434. set dummy $ac_prog; ac_word=$2
  4435. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4436. $as_echo_n "checking for $ac_word... " >&6; }
  4437. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  4438. $as_echo_n "(cached) " >&6
  4439. else
  4440. if test -n "$ac_ct_CC"; then
  4441. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  4442. else
  4443. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4444. for as_dir in $PATH
  4445. do
  4446. IFS=$as_save_IFS
  4447. test -z "$as_dir" && as_dir=.
  4448. for ac_exec_ext in '' $ac_executable_extensions; do
  4449. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4450. ac_cv_prog_ac_ct_CC="$ac_prog"
  4451. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4452. break 2
  4453. fi
  4454. done
  4455. done
  4456. IFS=$as_save_IFS
  4457. fi
  4458. fi
  4459. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  4460. if test -n "$ac_ct_CC"; then
  4461. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  4462. $as_echo "$ac_ct_CC" >&6; }
  4463. else
  4464. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4465. $as_echo "no" >&6; }
  4466. fi
  4467. test -n "$ac_ct_CC" && break
  4468. done
  4469. if test "x$ac_ct_CC" = x; then
  4470. CC=""
  4471. else
  4472. case $cross_compiling:$ac_tool_warned in
  4473. yes:)
  4474. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4475. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4476. ac_tool_warned=yes ;;
  4477. esac
  4478. CC=$ac_ct_CC
  4479. fi
  4480. fi
  4481. fi
  4482. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  4483. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  4484. as_fn_error $? "no acceptable C compiler found in \$PATH
  4485. See \`config.log' for more details" "$LINENO" 5; }
  4486. # Provide some information about the compiler.
  4487. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  4488. set X $ac_compile
  4489. ac_compiler=$2
  4490. for ac_option in --version -v -V -qversion; do
  4491. { { ac_try="$ac_compiler $ac_option >&5"
  4492. case "(($ac_try" in
  4493. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4494. *) ac_try_echo=$ac_try;;
  4495. esac
  4496. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4497. $as_echo "$ac_try_echo"; } >&5
  4498. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4499. ac_status=$?
  4500. if test -s conftest.err; then
  4501. sed '10a\
  4502. ... rest of stderr output deleted ...
  4503. 10q' conftest.err >conftest.er1
  4504. cat conftest.er1 >&5
  4505. fi
  4506. rm -f conftest.er1 conftest.err
  4507. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4508. test $ac_status = 0; }
  4509. done
  4510. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  4511. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  4512. if ${ac_cv_c_compiler_gnu+:} false; then :
  4513. $as_echo_n "(cached) " >&6
  4514. else
  4515. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4516. /* end confdefs.h. */
  4517. int
  4518. main ()
  4519. {
  4520. #ifndef __GNUC__
  4521. choke me
  4522. #endif
  4523. ;
  4524. return 0;
  4525. }
  4526. _ACEOF
  4527. if ac_fn_c_try_compile "$LINENO"; then :
  4528. ac_compiler_gnu=yes
  4529. else
  4530. ac_compiler_gnu=no
  4531. fi
  4532. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4533. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  4534. fi
  4535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  4536. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  4537. if test $ac_compiler_gnu = yes; then
  4538. GCC=yes
  4539. else
  4540. GCC=
  4541. fi
  4542. ac_test_CFLAGS=${CFLAGS+set}
  4543. ac_save_CFLAGS=$CFLAGS
  4544. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  4545. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  4546. if ${ac_cv_prog_cc_g+:} false; then :
  4547. $as_echo_n "(cached) " >&6
  4548. else
  4549. ac_save_c_werror_flag=$ac_c_werror_flag
  4550. ac_c_werror_flag=yes
  4551. ac_cv_prog_cc_g=no
  4552. CFLAGS="-g"
  4553. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4554. /* end confdefs.h. */
  4555. int
  4556. main ()
  4557. {
  4558. ;
  4559. return 0;
  4560. }
  4561. _ACEOF
  4562. if ac_fn_c_try_compile "$LINENO"; then :
  4563. ac_cv_prog_cc_g=yes
  4564. else
  4565. CFLAGS=""
  4566. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4567. /* end confdefs.h. */
  4568. int
  4569. main ()
  4570. {
  4571. ;
  4572. return 0;
  4573. }
  4574. _ACEOF
  4575. if ac_fn_c_try_compile "$LINENO"; then :
  4576. else
  4577. ac_c_werror_flag=$ac_save_c_werror_flag
  4578. CFLAGS="-g"
  4579. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4580. /* end confdefs.h. */
  4581. int
  4582. main ()
  4583. {
  4584. ;
  4585. return 0;
  4586. }
  4587. _ACEOF
  4588. if ac_fn_c_try_compile "$LINENO"; then :
  4589. ac_cv_prog_cc_g=yes
  4590. fi
  4591. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4592. fi
  4593. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4594. fi
  4595. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4596. ac_c_werror_flag=$ac_save_c_werror_flag
  4597. fi
  4598. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  4599. $as_echo "$ac_cv_prog_cc_g" >&6; }
  4600. if test "$ac_test_CFLAGS" = set; then
  4601. CFLAGS=$ac_save_CFLAGS
  4602. elif test $ac_cv_prog_cc_g = yes; then
  4603. if test "$GCC" = yes; then
  4604. CFLAGS="-g -O2"
  4605. else
  4606. CFLAGS="-g"
  4607. fi
  4608. else
  4609. if test "$GCC" = yes; then
  4610. CFLAGS="-O2"
  4611. else
  4612. CFLAGS=
  4613. fi
  4614. fi
  4615. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  4616. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  4617. if ${ac_cv_prog_cc_c89+:} false; then :
  4618. $as_echo_n "(cached) " >&6
  4619. else
  4620. ac_cv_prog_cc_c89=no
  4621. ac_save_CC=$CC
  4622. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4623. /* end confdefs.h. */
  4624. #include <stdarg.h>
  4625. #include <stdio.h>
  4626. struct stat;
  4627. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  4628. struct buf { int x; };
  4629. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  4630. static char *e (p, i)
  4631. char **p;
  4632. int i;
  4633. {
  4634. return p[i];
  4635. }
  4636. static char *f (char * (*g) (char **, int), char **p, ...)
  4637. {
  4638. char *s;
  4639. va_list v;
  4640. va_start (v,p);
  4641. s = g (p, va_arg (v,int));
  4642. va_end (v);
  4643. return s;
  4644. }
  4645. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  4646. function prototypes and stuff, but not '\xHH' hex character constants.
  4647. These don't provoke an error unfortunately, instead are silently treated
  4648. as 'x'. The following induces an error, until -std is added to get
  4649. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  4650. array size at least. It's necessary to write '\x00'==0 to get something
  4651. that's true only with -std. */
  4652. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  4653. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  4654. inside strings and character constants. */
  4655. #define FOO(x) 'x'
  4656. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  4657. int test (int i, double x);
  4658. struct s1 {int (*f) (int a);};
  4659. struct s2 {int (*f) (double a);};
  4660. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  4661. int argc;
  4662. char **argv;
  4663. int
  4664. main ()
  4665. {
  4666. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  4667. ;
  4668. return 0;
  4669. }
  4670. _ACEOF
  4671. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  4672. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  4673. do
  4674. CC="$ac_save_CC $ac_arg"
  4675. if ac_fn_c_try_compile "$LINENO"; then :
  4676. ac_cv_prog_cc_c89=$ac_arg
  4677. fi
  4678. rm -f core conftest.err conftest.$ac_objext
  4679. test "x$ac_cv_prog_cc_c89" != "xno" && break
  4680. done
  4681. rm -f conftest.$ac_ext
  4682. CC=$ac_save_CC
  4683. fi
  4684. # AC_CACHE_VAL
  4685. case "x$ac_cv_prog_cc_c89" in
  4686. x)
  4687. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  4688. $as_echo "none needed" >&6; } ;;
  4689. xno)
  4690. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  4691. $as_echo "unsupported" >&6; } ;;
  4692. *)
  4693. CC="$CC $ac_cv_prog_cc_c89"
  4694. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  4695. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  4696. esac
  4697. if test "x$ac_cv_prog_cc_c89" != xno; then :
  4698. fi
  4699. ac_ext=c
  4700. ac_cpp='$CPP $CPPFLAGS'
  4701. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4702. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4703. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4704. ac_ext=c
  4705. ac_cpp='$CPP $CPPFLAGS'
  4706. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4707. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4708. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
  4710. $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
  4711. if ${am_cv_prog_cc_c_o+:} false; then :
  4712. $as_echo_n "(cached) " >&6
  4713. else
  4714. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4715. /* end confdefs.h. */
  4716. int
  4717. main ()
  4718. {
  4719. ;
  4720. return 0;
  4721. }
  4722. _ACEOF
  4723. # Make sure it works both with $CC and with simple cc.
  4724. # Following AC_PROG_CC_C_O, we do the test twice because some
  4725. # compilers refuse to overwrite an existing .o file with -o,
  4726. # though they will create one.
  4727. am_cv_prog_cc_c_o=yes
  4728. for am_i in 1 2; do
  4729. if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
  4730. ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
  4731. ac_status=$?
  4732. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  4733. (exit $ac_status); } \
  4734. && test -f conftest2.$ac_objext; then
  4735. : OK
  4736. else
  4737. am_cv_prog_cc_c_o=no
  4738. break
  4739. fi
  4740. done
  4741. rm -f core conftest*
  4742. unset am_i
  4743. fi
  4744. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
  4745. $as_echo "$am_cv_prog_cc_c_o" >&6; }
  4746. if test "$am_cv_prog_cc_c_o" != yes; then
  4747. # Losing compiler, so override with the script.
  4748. # FIXME: It is wrong to rewrite CC.
  4749. # But if we don't then we get into trouble of one sort or another.
  4750. # A longer-term fix would be to have automake use am__CC in this case,
  4751. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  4752. CC="$am_aux_dir/compile $CC"
  4753. fi
  4754. ac_ext=c
  4755. ac_cpp='$CPP $CPPFLAGS'
  4756. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4757. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4758. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4759. depcc="$CC" am_compiler_list=
  4760. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  4761. $as_echo_n "checking dependency style of $depcc... " >&6; }
  4762. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  4763. $as_echo_n "(cached) " >&6
  4764. else
  4765. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  4766. # We make a subdir and do the tests there. Otherwise we can end up
  4767. # making bogus files that we don't know about and never remove. For
  4768. # instance it was reported that on HP-UX the gcc test will end up
  4769. # making a dummy file named 'D' -- because '-MD' means "put the output
  4770. # in D".
  4771. rm -rf conftest.dir
  4772. mkdir conftest.dir
  4773. # Copy depcomp to subdir because otherwise we won't find it if we're
  4774. # using a relative directory.
  4775. cp "$am_depcomp" conftest.dir
  4776. cd conftest.dir
  4777. # We will build objects and dependencies in a subdirectory because
  4778. # it helps to detect inapplicable dependency modes. For instance
  4779. # both Tru64's cc and ICC support -MD to output dependencies as a
  4780. # side effect of compilation, but ICC will put the dependencies in
  4781. # the current directory while Tru64 will put them in the object
  4782. # directory.
  4783. mkdir sub
  4784. am_cv_CC_dependencies_compiler_type=none
  4785. if test "$am_compiler_list" = ""; then
  4786. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  4787. fi
  4788. am__universal=false
  4789. case " $depcc " in #(
  4790. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  4791. esac
  4792. for depmode in $am_compiler_list; do
  4793. # Setup a source with many dependencies, because some compilers
  4794. # like to wrap large dependency lists on column 80 (with \), and
  4795. # we should not choose a depcomp mode which is confused by this.
  4796. #
  4797. # We need to recreate these files for each test, as the compiler may
  4798. # overwrite some of them when testing with obscure command lines.
  4799. # This happens at least with the AIX C compiler.
  4800. : > sub/conftest.c
  4801. for i in 1 2 3 4 5 6; do
  4802. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  4803. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  4804. # Solaris 10 /bin/sh.
  4805. echo '/* dummy */' > sub/conftst$i.h
  4806. done
  4807. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  4808. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  4809. # mode. It turns out that the SunPro C++ compiler does not properly
  4810. # handle '-M -o', and we need to detect this. Also, some Intel
  4811. # versions had trouble with output in subdirs.
  4812. am__obj=sub/conftest.${OBJEXT-o}
  4813. am__minus_obj="-o $am__obj"
  4814. case $depmode in
  4815. gcc)
  4816. # This depmode causes a compiler race in universal mode.
  4817. test "$am__universal" = false || continue
  4818. ;;
  4819. nosideeffect)
  4820. # After this tag, mechanisms are not by side-effect, so they'll
  4821. # only be used when explicitly requested.
  4822. if test "x$enable_dependency_tracking" = xyes; then
  4823. continue
  4824. else
  4825. break
  4826. fi
  4827. ;;
  4828. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  4829. # This compiler won't grok '-c -o', but also, the minuso test has
  4830. # not run yet. These depmodes are late enough in the game, and
  4831. # so weak that their functioning should not be impacted.
  4832. am__obj=conftest.${OBJEXT-o}
  4833. am__minus_obj=
  4834. ;;
  4835. none) break ;;
  4836. esac
  4837. if depmode=$depmode \
  4838. source=sub/conftest.c object=$am__obj \
  4839. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  4840. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  4841. >/dev/null 2>conftest.err &&
  4842. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  4843. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  4844. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  4845. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  4846. # icc doesn't choke on unknown options, it will just issue warnings
  4847. # or remarks (even with -Werror). So we grep stderr for any message
  4848. # that says an option was ignored or not supported.
  4849. # When given -MP, icc 7.0 and 7.1 complain thusly:
  4850. # icc: Command line warning: ignoring option '-M'; no argument required
  4851. # The diagnosis changed in icc 8.0:
  4852. # icc: Command line remark: option '-MP' not supported
  4853. if (grep 'ignoring option' conftest.err ||
  4854. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  4855. am_cv_CC_dependencies_compiler_type=$depmode
  4856. break
  4857. fi
  4858. fi
  4859. done
  4860. cd ..
  4861. rm -rf conftest.dir
  4862. else
  4863. am_cv_CC_dependencies_compiler_type=none
  4864. fi
  4865. fi
  4866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  4867. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  4868. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  4869. if
  4870. test "x$enable_dependency_tracking" != xno \
  4871. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  4872. am__fastdepCC_TRUE=
  4873. am__fastdepCC_FALSE='#'
  4874. else
  4875. am__fastdepCC_TRUE='#'
  4876. am__fastdepCC_FALSE=
  4877. fi
  4878. # Check whether --enable-largefile was given.
  4879. if test "${enable_largefile+set}" = set; then :
  4880. enableval=$enable_largefile;
  4881. fi
  4882. if test "$enable_largefile" != no; then
  4883. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
  4884. $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
  4885. if ${ac_cv_sys_largefile_CC+:} false; then :
  4886. $as_echo_n "(cached) " >&6
  4887. else
  4888. ac_cv_sys_largefile_CC=no
  4889. if test "$GCC" != yes; then
  4890. ac_save_CC=$CC
  4891. while :; do
  4892. # IRIX 6.2 and later do not support large files by default,
  4893. # so use the C compiler's -n32 option if that helps.
  4894. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4895. /* end confdefs.h. */
  4896. #include <sys/types.h>
  4897. /* Check that off_t can represent 2**63 - 1 correctly.
  4898. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4899. since some C++ compilers masquerading as C compilers
  4900. incorrectly reject 9223372036854775807. */
  4901. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4902. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4903. && LARGE_OFF_T % 2147483647 == 1)
  4904. ? 1 : -1];
  4905. int
  4906. main ()
  4907. {
  4908. ;
  4909. return 0;
  4910. }
  4911. _ACEOF
  4912. if ac_fn_c_try_compile "$LINENO"; then :
  4913. break
  4914. fi
  4915. rm -f core conftest.err conftest.$ac_objext
  4916. CC="$CC -n32"
  4917. if ac_fn_c_try_compile "$LINENO"; then :
  4918. ac_cv_sys_largefile_CC=' -n32'; break
  4919. fi
  4920. rm -f core conftest.err conftest.$ac_objext
  4921. break
  4922. done
  4923. CC=$ac_save_CC
  4924. rm -f conftest.$ac_ext
  4925. fi
  4926. fi
  4927. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
  4928. $as_echo "$ac_cv_sys_largefile_CC" >&6; }
  4929. if test "$ac_cv_sys_largefile_CC" != no; then
  4930. CC=$CC$ac_cv_sys_largefile_CC
  4931. fi
  4932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
  4933. $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
  4934. if ${ac_cv_sys_file_offset_bits+:} false; then :
  4935. $as_echo_n "(cached) " >&6
  4936. else
  4937. while :; do
  4938. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4939. /* end confdefs.h. */
  4940. #include <sys/types.h>
  4941. /* Check that off_t can represent 2**63 - 1 correctly.
  4942. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4943. since some C++ compilers masquerading as C compilers
  4944. incorrectly reject 9223372036854775807. */
  4945. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4946. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4947. && LARGE_OFF_T % 2147483647 == 1)
  4948. ? 1 : -1];
  4949. int
  4950. main ()
  4951. {
  4952. ;
  4953. return 0;
  4954. }
  4955. _ACEOF
  4956. if ac_fn_c_try_compile "$LINENO"; then :
  4957. ac_cv_sys_file_offset_bits=no; break
  4958. fi
  4959. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4960. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4961. /* end confdefs.h. */
  4962. #define _FILE_OFFSET_BITS 64
  4963. #include <sys/types.h>
  4964. /* Check that off_t can represent 2**63 - 1 correctly.
  4965. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  4966. since some C++ compilers masquerading as C compilers
  4967. incorrectly reject 9223372036854775807. */
  4968. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  4969. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  4970. && LARGE_OFF_T % 2147483647 == 1)
  4971. ? 1 : -1];
  4972. int
  4973. main ()
  4974. {
  4975. ;
  4976. return 0;
  4977. }
  4978. _ACEOF
  4979. if ac_fn_c_try_compile "$LINENO"; then :
  4980. ac_cv_sys_file_offset_bits=64; break
  4981. fi
  4982. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4983. ac_cv_sys_file_offset_bits=unknown
  4984. break
  4985. done
  4986. fi
  4987. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
  4988. $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
  4989. case $ac_cv_sys_file_offset_bits in #(
  4990. no | unknown) ;;
  4991. *)
  4992. cat >>confdefs.h <<_ACEOF
  4993. #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
  4994. _ACEOF
  4995. ;;
  4996. esac
  4997. rm -rf conftest*
  4998. if test $ac_cv_sys_file_offset_bits = unknown; then
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
  5000. $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
  5001. if ${ac_cv_sys_large_files+:} false; then :
  5002. $as_echo_n "(cached) " >&6
  5003. else
  5004. while :; do
  5005. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5006. /* end confdefs.h. */
  5007. #include <sys/types.h>
  5008. /* Check that off_t can represent 2**63 - 1 correctly.
  5009. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5010. since some C++ compilers masquerading as C compilers
  5011. incorrectly reject 9223372036854775807. */
  5012. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5013. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5014. && LARGE_OFF_T % 2147483647 == 1)
  5015. ? 1 : -1];
  5016. int
  5017. main ()
  5018. {
  5019. ;
  5020. return 0;
  5021. }
  5022. _ACEOF
  5023. if ac_fn_c_try_compile "$LINENO"; then :
  5024. ac_cv_sys_large_files=no; break
  5025. fi
  5026. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5027. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5028. /* end confdefs.h. */
  5029. #define _LARGE_FILES 1
  5030. #include <sys/types.h>
  5031. /* Check that off_t can represent 2**63 - 1 correctly.
  5032. We can't simply define LARGE_OFF_T to be 9223372036854775807,
  5033. since some C++ compilers masquerading as C compilers
  5034. incorrectly reject 9223372036854775807. */
  5035. #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
  5036. int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
  5037. && LARGE_OFF_T % 2147483647 == 1)
  5038. ? 1 : -1];
  5039. int
  5040. main ()
  5041. {
  5042. ;
  5043. return 0;
  5044. }
  5045. _ACEOF
  5046. if ac_fn_c_try_compile "$LINENO"; then :
  5047. ac_cv_sys_large_files=1; break
  5048. fi
  5049. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5050. ac_cv_sys_large_files=unknown
  5051. break
  5052. done
  5053. fi
  5054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
  5055. $as_echo "$ac_cv_sys_large_files" >&6; }
  5056. case $ac_cv_sys_large_files in #(
  5057. no | unknown) ;;
  5058. *)
  5059. cat >>confdefs.h <<_ACEOF
  5060. #define _LARGE_FILES $ac_cv_sys_large_files
  5061. _ACEOF
  5062. ;;
  5063. esac
  5064. rm -rf conftest*
  5065. fi
  5066. fi
  5067. ac_ext=c
  5068. ac_cpp='$CPP $CPPFLAGS'
  5069. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5070. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5071. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5072. ac_lto_plugin_warn_cflags=
  5073. save_CFLAGS="$CFLAGS"
  5074. for real_option in -Wall; do
  5075. # Do the check with the no- prefix removed since gcc silently
  5076. # accepts any -Wno-* option on purpose
  5077. case $real_option in
  5078. -Wno-*) option=-W`expr x$real_option : 'x-Wno-\(.*\)'` ;;
  5079. *) option=$real_option ;;
  5080. esac
  5081. as_acx_Woption=`$as_echo "acx_cv_prog_cc_warning_$option" | $as_tr_sh`
  5082. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC supports $option" >&5
  5083. $as_echo_n "checking whether $CC supports $option... " >&6; }
  5084. if eval \${$as_acx_Woption+:} false; then :
  5085. $as_echo_n "(cached) " >&6
  5086. else
  5087. CFLAGS="$option"
  5088. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5089. /* end confdefs.h. */
  5090. int
  5091. main ()
  5092. {
  5093. ;
  5094. return 0;
  5095. }
  5096. _ACEOF
  5097. if ac_fn_c_try_compile "$LINENO"; then :
  5098. eval "$as_acx_Woption=yes"
  5099. else
  5100. eval "$as_acx_Woption=no"
  5101. fi
  5102. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5103. fi
  5104. eval ac_res=\$$as_acx_Woption
  5105. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  5106. $as_echo "$ac_res" >&6; }
  5107. if test `eval 'as_val=${'$as_acx_Woption'};$as_echo "$as_val"'` = yes; then :
  5108. ac_lto_plugin_warn_cflags="$ac_lto_plugin_warn_cflags${ac_lto_plugin_warn_cflags:+ }$real_option"
  5109. fi
  5110. done
  5111. CFLAGS="$save_CFLAGS"
  5112. ac_ext=c
  5113. ac_cpp='$CPP $CPPFLAGS'
  5114. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  5115. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  5116. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  5117. # Check whether -static-libgcc is supported.
  5118. saved_LDFLAGS="$LDFLAGS"
  5119. LDFLAGS="$LDFLAGS -static-libgcc"
  5120. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -static-libgcc" >&5
  5121. $as_echo_n "checking for -static-libgcc... " >&6; }
  5122. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5123. /* end confdefs.h. */
  5124. int main() {}
  5125. _ACEOF
  5126. if ac_fn_c_try_link "$LINENO"; then :
  5127. have_static_libgcc=yes
  5128. else
  5129. have_static_libgcc=no
  5130. fi
  5131. rm -f core conftest.err conftest.$ac_objext \
  5132. conftest$ac_exeext conftest.$ac_ext
  5133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_static_libgcc" >&5
  5134. $as_echo "$have_static_libgcc" >&6; };
  5135. LDFLAGS="$saved_LDFLAGS"
  5136. # Need -Wc to get it through libtool.
  5137. if test "x$have_static_libgcc" = xyes; then
  5138. ac_lto_plugin_ldflags="-Wc,-static-libgcc"
  5139. fi
  5140. # Check whether --enable-cet was given.
  5141. if test "${enable_cet+set}" = set; then :
  5142. enableval=$enable_cet;
  5143. case "$enableval" in
  5144. yes|no|auto) ;;
  5145. *) as_fn_error $? "Unknown argument to enable/disable cet" "$LINENO" 5 ;;
  5146. esac
  5147. else
  5148. enable_cet=auto
  5149. fi
  5150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CET support" >&5
  5151. $as_echo_n "checking for CET support... " >&6; }
  5152. case "$host" in
  5153. i[34567]86-*-linux* | x86_64-*-linux*)
  5154. may_have_cet=yes
  5155. cet_save_CFLAGS="$CFLAGS"
  5156. CFLAGS="$CFLAGS -fcf-protection"
  5157. case "$enable_cet" in
  5158. auto)
  5159. # Check if target supports multi-byte NOPs
  5160. # and if compiler and assembler support CET.
  5161. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5162. /* end confdefs.h. */
  5163. int
  5164. main ()
  5165. {
  5166. #if !defined(__SSE2__)
  5167. #error target does not support multi-byte NOPs
  5168. #else
  5169. asm ("setssbsy");
  5170. #endif
  5171. ;
  5172. return 0;
  5173. }
  5174. _ACEOF
  5175. if ac_fn_c_try_compile "$LINENO"; then :
  5176. enable_cet=yes
  5177. else
  5178. enable_cet=no
  5179. fi
  5180. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5181. ;;
  5182. yes)
  5183. # Check if compiler and assembler support CET.
  5184. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5185. /* end confdefs.h. */
  5186. int
  5187. main ()
  5188. {
  5189. asm ("setssbsy");
  5190. ;
  5191. return 0;
  5192. }
  5193. _ACEOF
  5194. if ac_fn_c_try_compile "$LINENO"; then :
  5195. support_cet=yes
  5196. else
  5197. support_cet=no
  5198. fi
  5199. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5200. if test $support_cet = "no"; then
  5201. if test x$enable_bootstrap != xno \
  5202. && test -z "${with_build_subdir}" \
  5203. && (test ! -f ../stage_current \
  5204. || test `cat ../stage_current` != "stage1"); then
  5205. # Require CET support only for the final GCC build.
  5206. as_fn_error $? "compiler and assembler with CET support are required for --enable-cet" "$LINENO" 5
  5207. else
  5208. # Don't enable CET without CET support for non-bootstrap
  5209. # build, in stage1 nor for build support.
  5210. enable_cet=no
  5211. fi
  5212. fi
  5213. ;;
  5214. esac
  5215. CFLAGS="$cet_save_CFLAGS"
  5216. ;;
  5217. *)
  5218. may_have_cet=no
  5219. enable_cet=no
  5220. ;;
  5221. esac
  5222. cet_save_CFLAGS="$CFLAGS"
  5223. CFLAGS="$CFLAGS -fcf-protection=none"
  5224. cet_save_LDFLAGS="$LDFLAGS"
  5225. LDFLAGS="$LDFLAGS -Wl,-z,ibt,-z,shstk"
  5226. if test x$may_have_cet = xyes; then
  5227. # Check whether -fcf-protection=none -Wl,-z,ibt,-z,shstk work.
  5228. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5229. /* end confdefs.h. */
  5230. int
  5231. main ()
  5232. {
  5233. return 0;
  5234. ;
  5235. return 0;
  5236. }
  5237. _ACEOF
  5238. if ac_fn_c_try_link "$LINENO"; then :
  5239. may_have_cet=yes
  5240. else
  5241. may_have_cet=no
  5242. fi
  5243. rm -f core conftest.err conftest.$ac_objext \
  5244. conftest$ac_exeext conftest.$ac_ext
  5245. fi
  5246. if test x$may_have_cet = xyes; then
  5247. if test x$cross_compiling = xno; then
  5248. if test "$cross_compiling" = yes; then :
  5249. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5250. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5251. as_fn_error $? "cannot run test program while cross compiling
  5252. See \`config.log' for more details" "$LINENO" 5; }
  5253. else
  5254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5255. /* end confdefs.h. */
  5256. int
  5257. main ()
  5258. {
  5259. asm ("endbr32");
  5260. return 0;
  5261. }
  5262. _ACEOF
  5263. if ac_fn_c_try_run "$LINENO"; then :
  5264. have_multi_byte_nop=yes
  5265. else
  5266. have_multi_byte_nop=no
  5267. fi
  5268. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5269. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5270. fi
  5271. have_cet=no
  5272. if test x$have_multi_byte_nop = xyes; then
  5273. if test "$cross_compiling" = yes; then :
  5274. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  5275. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  5276. as_fn_error $? "cannot run test program while cross compiling
  5277. See \`config.log' for more details" "$LINENO" 5; }
  5278. else
  5279. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5280. /* end confdefs.h. */
  5281. static void
  5282. foo (void)
  5283. {
  5284. }
  5285. static void
  5286. __attribute__ ((noinline, noclone))
  5287. xxx (void (*f) (void))
  5288. {
  5289. f ();
  5290. }
  5291. static void
  5292. __attribute__ ((noinline, noclone))
  5293. bar (void)
  5294. {
  5295. xxx (foo);
  5296. }
  5297. int
  5298. main ()
  5299. {
  5300. bar ();
  5301. return 0;
  5302. }
  5303. _ACEOF
  5304. if ac_fn_c_try_run "$LINENO"; then :
  5305. have_cet=no
  5306. else
  5307. have_cet=yes
  5308. fi
  5309. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  5310. conftest.$ac_objext conftest.beam conftest.$ac_ext
  5311. fi
  5312. fi
  5313. if test x$enable_cet = xno -a x$have_cet = xyes; then
  5314. as_fn_error $? "Intel CET must be enabled on Intel CET enabled host" "$LINENO" 5
  5315. fi
  5316. fi
  5317. else
  5318. # Enable CET in cross compiler if possible so that it will run on both
  5319. # CET and non-CET hosts.
  5320. have_cet=yes
  5321. fi
  5322. if test x$enable_cet = xyes; then
  5323. CET_HOST_FLAGS="-fcf-protection"
  5324. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5325. $as_echo "yes" >&6; }
  5326. else
  5327. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5328. $as_echo "no" >&6; }
  5329. fi
  5330. CFLAGS="$cet_save_CFLAGS"
  5331. LDFLAGS="$cet_save_LDFLAGS"
  5332. if test x"$host_subdir" = x.; then
  5333. gcc_build_dir=../gcc
  5334. else
  5335. gcc_build_dir=../../$host_subdir/gcc
  5336. fi
  5337. # Used for constructing correct paths for offload compilers.
  5338. accel_dir_suffix=
  5339. real_target_noncanonical=${target_noncanonical}
  5340. if test x"$enable_as_accelerator_for" != x; then
  5341. accel_dir_suffix=/accel/${target_noncanonical}
  5342. real_target_noncanonical=${enable_as_accelerator_for}
  5343. fi
  5344. # Determine what GCC version number to use in filesystem paths.
  5345. get_gcc_base_ver="cat"
  5346. # Check whether --with-gcc-major-version-only was given.
  5347. if test "${with_gcc_major_version_only+set}" = set; then :
  5348. withval=$with_gcc_major_version_only; if test x$with_gcc_major_version_only = xyes ; then
  5349. get_gcc_base_ver="sed -e 's/^\([0-9]*\).*/\1/'"
  5350. fi
  5351. fi
  5352. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether symbol versioning is supported" >&5
  5353. $as_echo_n "checking whether symbol versioning is supported... " >&6; }
  5354. lto_plugin_use_symver=no
  5355. if test x$gcc_no_link = xyes; then
  5356. # If we cannot link, we cannot build shared libraries, so do not use
  5357. # symbol versioning.
  5358. lto_plugin_use_symver=no
  5359. else
  5360. save_LDFLAGS="$LDFLAGS"
  5361. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
  5362. cat > conftest.map <<EOF
  5363. {
  5364. global: *foo*; bar; local: *;
  5365. };
  5366. EOF
  5367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5368. /* end confdefs.h. */
  5369. int foo;
  5370. int
  5371. main ()
  5372. {
  5373. ;
  5374. return 0;
  5375. }
  5376. _ACEOF
  5377. if ac_fn_c_try_link "$LINENO"; then :
  5378. lto_plugin_use_symver=gnu
  5379. else
  5380. lto_plugin_use_symver=no
  5381. fi
  5382. rm -f core conftest.err conftest.$ac_objext \
  5383. conftest$ac_exeext conftest.$ac_ext
  5384. if test x$lto_plugin_use_symver = xno; then
  5385. case "$target_os" in
  5386. solaris2*)
  5387. LDFLAGS="$save_LDFLAGS"
  5388. LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
  5389. # Sun ld cannot handle wildcards and treats all entries as undefined.
  5390. cat > conftest.map <<EOF
  5391. {
  5392. global: foo; local: *;
  5393. };
  5394. EOF
  5395. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5396. /* end confdefs.h. */
  5397. int foo;
  5398. int
  5399. main ()
  5400. {
  5401. ;
  5402. return 0;
  5403. }
  5404. _ACEOF
  5405. if ac_fn_c_try_link "$LINENO"; then :
  5406. lto_plugin_use_symver=sun
  5407. else
  5408. lto_plugin_use_symver=no
  5409. fi
  5410. rm -f core conftest.err conftest.$ac_objext \
  5411. conftest$ac_exeext conftest.$ac_ext
  5412. ;;
  5413. esac
  5414. fi
  5415. LDFLAGS="$save_LDFLAGS"
  5416. fi
  5417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lto_plugin_use_symver" >&5
  5418. $as_echo "$lto_plugin_use_symver" >&6; }
  5419. if test "x$lto_plugin_use_symver" != xno; then
  5420. LTO_PLUGIN_USE_SYMVER_TRUE=
  5421. LTO_PLUGIN_USE_SYMVER_FALSE='#'
  5422. else
  5423. LTO_PLUGIN_USE_SYMVER_TRUE='#'
  5424. LTO_PLUGIN_USE_SYMVER_FALSE=
  5425. fi
  5426. if test "x$lto_plugin_use_symver" = xgnu; then
  5427. LTO_PLUGIN_USE_SYMVER_GNU_TRUE=
  5428. LTO_PLUGIN_USE_SYMVER_GNU_FALSE='#'
  5429. else
  5430. LTO_PLUGIN_USE_SYMVER_GNU_TRUE='#'
  5431. LTO_PLUGIN_USE_SYMVER_GNU_FALSE=
  5432. fi
  5433. if test "x$lto_plugin_use_symver" = xsun; then
  5434. LTO_PLUGIN_USE_SYMVER_SUN_TRUE=
  5435. LTO_PLUGIN_USE_SYMVER_SUN_FALSE='#'
  5436. else
  5437. LTO_PLUGIN_USE_SYMVER_SUN_TRUE='#'
  5438. LTO_PLUGIN_USE_SYMVER_SUN_FALSE=
  5439. fi
  5440. case `pwd` in
  5441. *\ * | *\ *)
  5442. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  5443. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  5444. esac
  5445. macro_version='2.2.7a'
  5446. macro_revision='1.3134'
  5447. ltmain="$ac_aux_dir/ltmain.sh"
  5448. # Backslashify metacharacters that are still active within
  5449. # double-quoted strings.
  5450. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  5451. # Same as above, but do not quote variable references.
  5452. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  5453. # Sed substitution to delay expansion of an escaped shell variable in a
  5454. # double_quote_subst'ed string.
  5455. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  5456. # Sed substitution to delay expansion of an escaped single quote.
  5457. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  5458. # Sed substitution to avoid accidental globbing in evaled expressions
  5459. no_glob_subst='s/\*/\\\*/g'
  5460. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  5461. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  5462. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  5463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  5464. $as_echo_n "checking how to print strings... " >&6; }
  5465. # Test print first, because it will be a builtin if present.
  5466. if test "X`print -r -- -n 2>/dev/null`" = X-n && \
  5467. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  5468. ECHO='print -r --'
  5469. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  5470. ECHO='printf %s\n'
  5471. else
  5472. # Use this function as a fallback that always works.
  5473. func_fallback_echo ()
  5474. {
  5475. eval 'cat <<_LTECHO_EOF
  5476. $1
  5477. _LTECHO_EOF'
  5478. }
  5479. ECHO='func_fallback_echo'
  5480. fi
  5481. # func_echo_all arg...
  5482. # Invoke $ECHO with all args, space-separated.
  5483. func_echo_all ()
  5484. {
  5485. $ECHO ""
  5486. }
  5487. case "$ECHO" in
  5488. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  5489. $as_echo "printf" >&6; } ;;
  5490. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  5491. $as_echo "print -r" >&6; } ;;
  5492. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  5493. $as_echo "cat" >&6; } ;;
  5494. esac
  5495. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  5496. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  5497. if ${ac_cv_path_SED+:} false; then :
  5498. $as_echo_n "(cached) " >&6
  5499. else
  5500. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  5501. for ac_i in 1 2 3 4 5 6 7; do
  5502. ac_script="$ac_script$as_nl$ac_script"
  5503. done
  5504. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  5505. { ac_script=; unset ac_script;}
  5506. if test -z "$SED"; then
  5507. ac_path_SED_found=false
  5508. # Loop through the user's path and test for each of PROGNAME-LIST
  5509. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5510. for as_dir in $PATH
  5511. do
  5512. IFS=$as_save_IFS
  5513. test -z "$as_dir" && as_dir=.
  5514. for ac_prog in sed gsed; do
  5515. for ac_exec_ext in '' $ac_executable_extensions; do
  5516. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  5517. as_fn_executable_p "$ac_path_SED" || continue
  5518. # Check for GNU ac_path_SED and select it if it is found.
  5519. # Check for GNU $ac_path_SED
  5520. case `"$ac_path_SED" --version 2>&1` in
  5521. *GNU*)
  5522. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  5523. *)
  5524. ac_count=0
  5525. $as_echo_n 0123456789 >"conftest.in"
  5526. while :
  5527. do
  5528. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5529. mv "conftest.tmp" "conftest.in"
  5530. cp "conftest.in" "conftest.nl"
  5531. $as_echo '' >> "conftest.nl"
  5532. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5533. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5534. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5535. if test $ac_count -gt ${ac_path_SED_max-0}; then
  5536. # Best one so far, save it but keep looking for a better one
  5537. ac_cv_path_SED="$ac_path_SED"
  5538. ac_path_SED_max=$ac_count
  5539. fi
  5540. # 10*(2^10) chars as input seems more than enough
  5541. test $ac_count -gt 10 && break
  5542. done
  5543. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5544. esac
  5545. $ac_path_SED_found && break 3
  5546. done
  5547. done
  5548. done
  5549. IFS=$as_save_IFS
  5550. if test -z "$ac_cv_path_SED"; then
  5551. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  5552. fi
  5553. else
  5554. ac_cv_path_SED=$SED
  5555. fi
  5556. fi
  5557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  5558. $as_echo "$ac_cv_path_SED" >&6; }
  5559. SED="$ac_cv_path_SED"
  5560. rm -f conftest.sed
  5561. test -z "$SED" && SED=sed
  5562. Xsed="$SED -e 1s/^X//"
  5563. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  5564. $as_echo_n "checking for fgrep... " >&6; }
  5565. if ${ac_cv_path_FGREP+:} false; then :
  5566. $as_echo_n "(cached) " >&6
  5567. else
  5568. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  5569. then ac_cv_path_FGREP="$GREP -F"
  5570. else
  5571. if test -z "$FGREP"; then
  5572. ac_path_FGREP_found=false
  5573. # Loop through the user's path and test for each of PROGNAME-LIST
  5574. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5575. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  5576. do
  5577. IFS=$as_save_IFS
  5578. test -z "$as_dir" && as_dir=.
  5579. for ac_prog in fgrep; do
  5580. for ac_exec_ext in '' $ac_executable_extensions; do
  5581. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  5582. as_fn_executable_p "$ac_path_FGREP" || continue
  5583. # Check for GNU ac_path_FGREP and select it if it is found.
  5584. # Check for GNU $ac_path_FGREP
  5585. case `"$ac_path_FGREP" --version 2>&1` in
  5586. *GNU*)
  5587. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  5588. *)
  5589. ac_count=0
  5590. $as_echo_n 0123456789 >"conftest.in"
  5591. while :
  5592. do
  5593. cat "conftest.in" "conftest.in" >"conftest.tmp"
  5594. mv "conftest.tmp" "conftest.in"
  5595. cp "conftest.in" "conftest.nl"
  5596. $as_echo 'FGREP' >> "conftest.nl"
  5597. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  5598. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  5599. as_fn_arith $ac_count + 1 && ac_count=$as_val
  5600. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  5601. # Best one so far, save it but keep looking for a better one
  5602. ac_cv_path_FGREP="$ac_path_FGREP"
  5603. ac_path_FGREP_max=$ac_count
  5604. fi
  5605. # 10*(2^10) chars as input seems more than enough
  5606. test $ac_count -gt 10 && break
  5607. done
  5608. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  5609. esac
  5610. $ac_path_FGREP_found && break 3
  5611. done
  5612. done
  5613. done
  5614. IFS=$as_save_IFS
  5615. if test -z "$ac_cv_path_FGREP"; then
  5616. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  5617. fi
  5618. else
  5619. ac_cv_path_FGREP=$FGREP
  5620. fi
  5621. fi
  5622. fi
  5623. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  5624. $as_echo "$ac_cv_path_FGREP" >&6; }
  5625. FGREP="$ac_cv_path_FGREP"
  5626. test -z "$GREP" && GREP=grep
  5627. # Check whether --with-gnu-ld was given.
  5628. if test "${with_gnu_ld+set}" = set; then :
  5629. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  5630. else
  5631. with_gnu_ld=no
  5632. fi
  5633. ac_prog=ld
  5634. if test "$GCC" = yes; then
  5635. # Check if gcc -print-prog-name=ld gives a path.
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  5637. $as_echo_n "checking for ld used by $CC... " >&6; }
  5638. case $host in
  5639. *-*-mingw*)
  5640. # gcc leaves a trailing carriage return which upsets mingw
  5641. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  5642. *)
  5643. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  5644. esac
  5645. case $ac_prog in
  5646. # Accept absolute paths.
  5647. [\\/]* | ?:[\\/]*)
  5648. re_direlt='/[^/][^/]*/\.\./'
  5649. # Canonicalize the pathname of ld
  5650. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  5651. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  5652. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  5653. done
  5654. test -z "$LD" && LD="$ac_prog"
  5655. ;;
  5656. "")
  5657. # If it fails, then pretend we aren't using GCC.
  5658. ac_prog=ld
  5659. ;;
  5660. *)
  5661. # If it is relative, then search for the first ld in PATH.
  5662. with_gnu_ld=unknown
  5663. ;;
  5664. esac
  5665. elif test "$with_gnu_ld" = yes; then
  5666. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  5667. $as_echo_n "checking for GNU ld... " >&6; }
  5668. else
  5669. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  5670. $as_echo_n "checking for non-GNU ld... " >&6; }
  5671. fi
  5672. if ${lt_cv_path_LD+:} false; then :
  5673. $as_echo_n "(cached) " >&6
  5674. else
  5675. if test -z "$LD"; then
  5676. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5677. for ac_dir in $PATH; do
  5678. IFS="$lt_save_ifs"
  5679. test -z "$ac_dir" && ac_dir=.
  5680. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  5681. lt_cv_path_LD="$ac_dir/$ac_prog"
  5682. # Check to see if the program is GNU ld. I'd rather use --version,
  5683. # but apparently some variants of GNU ld only accept -v.
  5684. # Break only if it was the GNU/non-GNU ld that we prefer.
  5685. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  5686. *GNU* | *'with BFD'*)
  5687. test "$with_gnu_ld" != no && break
  5688. ;;
  5689. *)
  5690. test "$with_gnu_ld" != yes && break
  5691. ;;
  5692. esac
  5693. fi
  5694. done
  5695. IFS="$lt_save_ifs"
  5696. else
  5697. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  5698. fi
  5699. fi
  5700. LD="$lt_cv_path_LD"
  5701. if test -n "$LD"; then
  5702. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  5703. $as_echo "$LD" >&6; }
  5704. else
  5705. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5706. $as_echo "no" >&6; }
  5707. fi
  5708. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  5709. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  5710. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  5711. if ${lt_cv_prog_gnu_ld+:} false; then :
  5712. $as_echo_n "(cached) " >&6
  5713. else
  5714. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  5715. case `$LD -v 2>&1 </dev/null` in
  5716. *GNU* | *'with BFD'*)
  5717. lt_cv_prog_gnu_ld=yes
  5718. ;;
  5719. *)
  5720. lt_cv_prog_gnu_ld=no
  5721. ;;
  5722. esac
  5723. fi
  5724. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  5725. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  5726. with_gnu_ld=$lt_cv_prog_gnu_ld
  5727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  5728. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  5729. if ${lt_cv_path_NM+:} false; then :
  5730. $as_echo_n "(cached) " >&6
  5731. else
  5732. if test -n "$NM"; then
  5733. # Let the user override the test.
  5734. lt_cv_path_NM="$NM"
  5735. else
  5736. lt_nm_to_check="${ac_tool_prefix}nm"
  5737. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  5738. lt_nm_to_check="$lt_nm_to_check nm"
  5739. fi
  5740. for lt_tmp_nm in $lt_nm_to_check; do
  5741. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  5742. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  5743. IFS="$lt_save_ifs"
  5744. test -z "$ac_dir" && ac_dir=.
  5745. tmp_nm="$ac_dir/$lt_tmp_nm"
  5746. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  5747. # Check to see if the nm accepts a BSD-compat flag.
  5748. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  5749. # nm: unknown option "B" ignored
  5750. # Tru64's nm complains that /dev/null is an invalid object file
  5751. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  5752. */dev/null* | *'Invalid file or object type'*)
  5753. lt_cv_path_NM="$tmp_nm -B"
  5754. break
  5755. ;;
  5756. *)
  5757. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  5758. */dev/null*)
  5759. lt_cv_path_NM="$tmp_nm -p"
  5760. break
  5761. ;;
  5762. *)
  5763. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  5764. continue # so that we can try to find one that supports BSD flags
  5765. ;;
  5766. esac
  5767. ;;
  5768. esac
  5769. fi
  5770. done
  5771. IFS="$lt_save_ifs"
  5772. done
  5773. : ${lt_cv_path_NM=no}
  5774. fi
  5775. fi
  5776. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  5777. $as_echo "$lt_cv_path_NM" >&6; }
  5778. if test "$lt_cv_path_NM" != "no"; then
  5779. NM="$lt_cv_path_NM"
  5780. else
  5781. # Didn't find any BSD compatible name lister, look for dumpbin.
  5782. if test -n "$DUMPBIN"; then :
  5783. # Let the user override the test.
  5784. else
  5785. if test -n "$ac_tool_prefix"; then
  5786. for ac_prog in dumpbin "link -dump"
  5787. do
  5788. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5789. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5790. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5791. $as_echo_n "checking for $ac_word... " >&6; }
  5792. if ${ac_cv_prog_DUMPBIN+:} false; then :
  5793. $as_echo_n "(cached) " >&6
  5794. else
  5795. if test -n "$DUMPBIN"; then
  5796. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  5797. else
  5798. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5799. for as_dir in $PATH
  5800. do
  5801. IFS=$as_save_IFS
  5802. test -z "$as_dir" && as_dir=.
  5803. for ac_exec_ext in '' $ac_executable_extensions; do
  5804. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5805. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  5806. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5807. break 2
  5808. fi
  5809. done
  5810. done
  5811. IFS=$as_save_IFS
  5812. fi
  5813. fi
  5814. DUMPBIN=$ac_cv_prog_DUMPBIN
  5815. if test -n "$DUMPBIN"; then
  5816. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  5817. $as_echo "$DUMPBIN" >&6; }
  5818. else
  5819. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5820. $as_echo "no" >&6; }
  5821. fi
  5822. test -n "$DUMPBIN" && break
  5823. done
  5824. fi
  5825. if test -z "$DUMPBIN"; then
  5826. ac_ct_DUMPBIN=$DUMPBIN
  5827. for ac_prog in dumpbin "link -dump"
  5828. do
  5829. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5830. set dummy $ac_prog; ac_word=$2
  5831. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5832. $as_echo_n "checking for $ac_word... " >&6; }
  5833. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  5834. $as_echo_n "(cached) " >&6
  5835. else
  5836. if test -n "$ac_ct_DUMPBIN"; then
  5837. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  5838. else
  5839. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5840. for as_dir in $PATH
  5841. do
  5842. IFS=$as_save_IFS
  5843. test -z "$as_dir" && as_dir=.
  5844. for ac_exec_ext in '' $ac_executable_extensions; do
  5845. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5846. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  5847. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5848. break 2
  5849. fi
  5850. done
  5851. done
  5852. IFS=$as_save_IFS
  5853. fi
  5854. fi
  5855. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  5856. if test -n "$ac_ct_DUMPBIN"; then
  5857. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  5858. $as_echo "$ac_ct_DUMPBIN" >&6; }
  5859. else
  5860. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5861. $as_echo "no" >&6; }
  5862. fi
  5863. test -n "$ac_ct_DUMPBIN" && break
  5864. done
  5865. if test "x$ac_ct_DUMPBIN" = x; then
  5866. DUMPBIN=":"
  5867. else
  5868. case $cross_compiling:$ac_tool_warned in
  5869. yes:)
  5870. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5871. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5872. ac_tool_warned=yes ;;
  5873. esac
  5874. DUMPBIN=$ac_ct_DUMPBIN
  5875. fi
  5876. fi
  5877. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  5878. *COFF*)
  5879. DUMPBIN="$DUMPBIN -symbols"
  5880. ;;
  5881. *)
  5882. DUMPBIN=:
  5883. ;;
  5884. esac
  5885. fi
  5886. if test "$DUMPBIN" != ":"; then
  5887. NM="$DUMPBIN"
  5888. fi
  5889. fi
  5890. test -z "$NM" && NM=nm
  5891. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  5892. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  5893. if ${lt_cv_nm_interface+:} false; then :
  5894. $as_echo_n "(cached) " >&6
  5895. else
  5896. lt_cv_nm_interface="BSD nm"
  5897. echo "int some_variable = 0;" > conftest.$ac_ext
  5898. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  5899. (eval "$ac_compile" 2>conftest.err)
  5900. cat conftest.err >&5
  5901. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  5902. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  5903. cat conftest.err >&5
  5904. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  5905. cat conftest.out >&5
  5906. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  5907. lt_cv_nm_interface="MS dumpbin"
  5908. fi
  5909. rm -f conftest*
  5910. fi
  5911. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5912. $as_echo "$lt_cv_nm_interface" >&6; }
  5913. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5914. $as_echo_n "checking whether ln -s works... " >&6; }
  5915. LN_S=$as_ln_s
  5916. if test "$LN_S" = "ln -s"; then
  5917. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5918. $as_echo "yes" >&6; }
  5919. else
  5920. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5921. $as_echo "no, using $LN_S" >&6; }
  5922. fi
  5923. # find the maximum length of command line arguments
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5925. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5926. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5927. $as_echo_n "(cached) " >&6
  5928. else
  5929. i=0
  5930. teststring="ABCD"
  5931. case $build_os in
  5932. msdosdjgpp*)
  5933. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5934. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5935. # during glob expansion). Even if it were fixed, the result of this
  5936. # check would be larger than it should be.
  5937. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5938. ;;
  5939. gnu*)
  5940. # Under GNU Hurd, this test is not required because there is
  5941. # no limit to the length of command line arguments.
  5942. # Libtool will interpret -1 as no limit whatsoever
  5943. lt_cv_sys_max_cmd_len=-1;
  5944. ;;
  5945. cygwin* | mingw* | cegcc*)
  5946. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5947. # about 5 minutes as the teststring grows exponentially.
  5948. # Worse, since 9x/ME are not pre-emptively multitasking,
  5949. # you end up with a "frozen" computer, even though with patience
  5950. # the test eventually succeeds (with a max line length of 256k).
  5951. # Instead, let's just punt: use the minimum linelength reported by
  5952. # all of the supported platforms: 8192 (on NT/2K/XP).
  5953. lt_cv_sys_max_cmd_len=8192;
  5954. ;;
  5955. mint*)
  5956. # On MiNT this can take a long time and run out of memory.
  5957. lt_cv_sys_max_cmd_len=8192;
  5958. ;;
  5959. amigaos*)
  5960. # On AmigaOS with pdksh, this test takes hours, literally.
  5961. # So we just punt and use a minimum line length of 8192.
  5962. lt_cv_sys_max_cmd_len=8192;
  5963. ;;
  5964. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5965. # This has been around since 386BSD, at least. Likely further.
  5966. if test -x /sbin/sysctl; then
  5967. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5968. elif test -x /usr/sbin/sysctl; then
  5969. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5970. else
  5971. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5972. fi
  5973. # And add a safety zone
  5974. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5975. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5976. ;;
  5977. interix*)
  5978. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5979. lt_cv_sys_max_cmd_len=196608
  5980. ;;
  5981. osf*)
  5982. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5983. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5984. # nice to cause kernel panics so lets avoid the loop below.
  5985. # First set a reasonable default.
  5986. lt_cv_sys_max_cmd_len=16384
  5987. #
  5988. if test -x /sbin/sysconfig; then
  5989. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5990. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5991. esac
  5992. fi
  5993. ;;
  5994. sco3.2v5*)
  5995. lt_cv_sys_max_cmd_len=102400
  5996. ;;
  5997. sysv5* | sco5v6* | sysv4.2uw2*)
  5998. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5999. if test -n "$kargmax"; then
  6000. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  6001. else
  6002. lt_cv_sys_max_cmd_len=32768
  6003. fi
  6004. ;;
  6005. *)
  6006. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  6007. if test -n "$lt_cv_sys_max_cmd_len"; then
  6008. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  6009. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  6010. else
  6011. # Make teststring a little bigger before we do anything with it.
  6012. # a 1K string should be a reasonable start.
  6013. for i in 1 2 3 4 5 6 7 8 ; do
  6014. teststring=$teststring$teststring
  6015. done
  6016. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  6017. # If test is not a shell built-in, we'll probably end up computing a
  6018. # maximum length that is only half of the actual maximum length, but
  6019. # we can't tell.
  6020. while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \
  6021. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  6022. test $i != 17 # 1/2 MB should be enough
  6023. do
  6024. i=`expr $i + 1`
  6025. teststring=$teststring$teststring
  6026. done
  6027. # Only check the string length outside the loop.
  6028. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  6029. teststring=
  6030. # Add a significant safety factor because C++ compilers can tack on
  6031. # massive amounts of additional arguments before passing them to the
  6032. # linker. It appears as though 1/2 is a usable value.
  6033. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  6034. fi
  6035. ;;
  6036. esac
  6037. fi
  6038. if test -n $lt_cv_sys_max_cmd_len ; then
  6039. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  6040. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  6041. else
  6042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  6043. $as_echo "none" >&6; }
  6044. fi
  6045. max_cmd_len=$lt_cv_sys_max_cmd_len
  6046. : ${CP="cp -f"}
  6047. : ${MV="mv -f"}
  6048. : ${RM="rm -f"}
  6049. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  6050. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  6051. # Try some XSI features
  6052. xsi_shell=no
  6053. ( _lt_dummy="a/b/c"
  6054. test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \
  6055. = c,a/b,, \
  6056. && eval 'test $(( 1 + 1 )) -eq 2 \
  6057. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  6058. && xsi_shell=yes
  6059. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  6060. $as_echo "$xsi_shell" >&6; }
  6061. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  6062. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  6063. lt_shell_append=no
  6064. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  6065. >/dev/null 2>&1 \
  6066. && lt_shell_append=yes
  6067. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  6068. $as_echo "$lt_shell_append" >&6; }
  6069. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  6070. lt_unset=unset
  6071. else
  6072. lt_unset=false
  6073. fi
  6074. # test EBCDIC or ASCII
  6075. case `echo X|tr X '\101'` in
  6076. A) # ASCII based system
  6077. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  6078. lt_SP2NL='tr \040 \012'
  6079. lt_NL2SP='tr \015\012 \040\040'
  6080. ;;
  6081. *) # EBCDIC based system
  6082. lt_SP2NL='tr \100 \n'
  6083. lt_NL2SP='tr \r\n \100\100'
  6084. ;;
  6085. esac
  6086. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  6087. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  6088. if ${lt_cv_ld_reload_flag+:} false; then :
  6089. $as_echo_n "(cached) " >&6
  6090. else
  6091. lt_cv_ld_reload_flag='-r'
  6092. fi
  6093. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  6094. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  6095. reload_flag=$lt_cv_ld_reload_flag
  6096. case $reload_flag in
  6097. "" | " "*) ;;
  6098. *) reload_flag=" $reload_flag" ;;
  6099. esac
  6100. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6101. case $host_os in
  6102. darwin*)
  6103. if test "$GCC" = yes; then
  6104. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  6105. else
  6106. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  6107. fi
  6108. ;;
  6109. esac
  6110. if test -n "$ac_tool_prefix"; then
  6111. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  6112. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  6113. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6114. $as_echo_n "checking for $ac_word... " >&6; }
  6115. if ${ac_cv_prog_OBJDUMP+:} false; then :
  6116. $as_echo_n "(cached) " >&6
  6117. else
  6118. if test -n "$OBJDUMP"; then
  6119. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  6120. else
  6121. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6122. for as_dir in $PATH
  6123. do
  6124. IFS=$as_save_IFS
  6125. test -z "$as_dir" && as_dir=.
  6126. for ac_exec_ext in '' $ac_executable_extensions; do
  6127. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6128. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  6129. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6130. break 2
  6131. fi
  6132. done
  6133. done
  6134. IFS=$as_save_IFS
  6135. fi
  6136. fi
  6137. OBJDUMP=$ac_cv_prog_OBJDUMP
  6138. if test -n "$OBJDUMP"; then
  6139. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  6140. $as_echo "$OBJDUMP" >&6; }
  6141. else
  6142. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6143. $as_echo "no" >&6; }
  6144. fi
  6145. fi
  6146. if test -z "$ac_cv_prog_OBJDUMP"; then
  6147. ac_ct_OBJDUMP=$OBJDUMP
  6148. # Extract the first word of "objdump", so it can be a program name with args.
  6149. set dummy objdump; ac_word=$2
  6150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6151. $as_echo_n "checking for $ac_word... " >&6; }
  6152. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  6153. $as_echo_n "(cached) " >&6
  6154. else
  6155. if test -n "$ac_ct_OBJDUMP"; then
  6156. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  6157. else
  6158. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6159. for as_dir in $PATH
  6160. do
  6161. IFS=$as_save_IFS
  6162. test -z "$as_dir" && as_dir=.
  6163. for ac_exec_ext in '' $ac_executable_extensions; do
  6164. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6165. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  6166. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6167. break 2
  6168. fi
  6169. done
  6170. done
  6171. IFS=$as_save_IFS
  6172. fi
  6173. fi
  6174. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  6175. if test -n "$ac_ct_OBJDUMP"; then
  6176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  6177. $as_echo "$ac_ct_OBJDUMP" >&6; }
  6178. else
  6179. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6180. $as_echo "no" >&6; }
  6181. fi
  6182. if test "x$ac_ct_OBJDUMP" = x; then
  6183. OBJDUMP="false"
  6184. else
  6185. case $cross_compiling:$ac_tool_warned in
  6186. yes:)
  6187. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6188. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6189. ac_tool_warned=yes ;;
  6190. esac
  6191. OBJDUMP=$ac_ct_OBJDUMP
  6192. fi
  6193. else
  6194. OBJDUMP="$ac_cv_prog_OBJDUMP"
  6195. fi
  6196. test -z "$OBJDUMP" && OBJDUMP=objdump
  6197. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  6198. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  6199. if ${lt_cv_deplibs_check_method+:} false; then :
  6200. $as_echo_n "(cached) " >&6
  6201. else
  6202. lt_cv_file_magic_cmd='$MAGIC_CMD'
  6203. lt_cv_file_magic_test_file=
  6204. lt_cv_deplibs_check_method='unknown'
  6205. # Need to set the preceding variable on all platforms that support
  6206. # interlibrary dependencies.
  6207. # 'none' -- dependencies not supported.
  6208. # `unknown' -- same as none, but documents that we really don't know.
  6209. # 'pass_all' -- all dependencies passed with no checks.
  6210. # 'test_compile' -- check by making test program.
  6211. # 'file_magic [[regex]]' -- check by looking for files in library path
  6212. # which responds to the $file_magic_cmd with a given extended regex.
  6213. # If you have `file' or equivalent on your system and you're not sure
  6214. # whether `pass_all' will *always* work, you probably want this one.
  6215. case $host_os in
  6216. aix[4-9]*)
  6217. lt_cv_deplibs_check_method=pass_all
  6218. ;;
  6219. beos*)
  6220. lt_cv_deplibs_check_method=pass_all
  6221. ;;
  6222. bsdi[45]*)
  6223. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  6224. lt_cv_file_magic_cmd='/usr/bin/file -L'
  6225. lt_cv_file_magic_test_file=/shlib/libc.so
  6226. ;;
  6227. cygwin*)
  6228. # func_win32_libid is a shell function defined in ltmain.sh
  6229. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6230. lt_cv_file_magic_cmd='func_win32_libid'
  6231. ;;
  6232. mingw* | pw32*)
  6233. # Base MSYS/MinGW do not provide the 'file' command needed by
  6234. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  6235. # unless we find 'file', for example because we are cross-compiling.
  6236. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  6237. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  6238. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  6239. lt_cv_file_magic_cmd='func_win32_libid'
  6240. else
  6241. lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?'
  6242. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6243. fi
  6244. ;;
  6245. cegcc*)
  6246. # use the weaker test based on 'objdump'. See mingw*.
  6247. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  6248. lt_cv_file_magic_cmd='$OBJDUMP -f'
  6249. ;;
  6250. darwin* | rhapsody*)
  6251. lt_cv_deplibs_check_method=pass_all
  6252. ;;
  6253. freebsd* | dragonfly*)
  6254. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6255. case $host_cpu in
  6256. i*86 )
  6257. # Not sure whether the presence of OpenBSD here was a mistake.
  6258. # Let's accept both of them until this is cleared up.
  6259. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  6260. lt_cv_file_magic_cmd=/usr/bin/file
  6261. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  6262. ;;
  6263. esac
  6264. else
  6265. lt_cv_deplibs_check_method=pass_all
  6266. fi
  6267. ;;
  6268. gnu*)
  6269. lt_cv_deplibs_check_method=pass_all
  6270. ;;
  6271. haiku*)
  6272. lt_cv_deplibs_check_method=pass_all
  6273. ;;
  6274. hpux10.20* | hpux11*)
  6275. lt_cv_file_magic_cmd=/usr/bin/file
  6276. case $host_cpu in
  6277. ia64*)
  6278. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  6279. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  6280. ;;
  6281. hppa*64*)
  6282. 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]'
  6283. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  6284. ;;
  6285. *)
  6286. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  6287. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  6288. ;;
  6289. esac
  6290. ;;
  6291. interix[3-9]*)
  6292. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  6293. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  6294. ;;
  6295. irix5* | irix6* | nonstopux*)
  6296. case $LD in
  6297. *-32|*"-32 ") libmagic=32-bit;;
  6298. *-n32|*"-n32 ") libmagic=N32;;
  6299. *-64|*"-64 ") libmagic=64-bit;;
  6300. *) libmagic=never-match;;
  6301. esac
  6302. lt_cv_deplibs_check_method=pass_all
  6303. ;;
  6304. # This must be Linux ELF.
  6305. linux* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  6306. lt_cv_deplibs_check_method=pass_all
  6307. ;;
  6308. netbsd*)
  6309. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  6310. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6311. else
  6312. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  6313. fi
  6314. ;;
  6315. newos6*)
  6316. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  6317. lt_cv_file_magic_cmd=/usr/bin/file
  6318. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  6319. ;;
  6320. *nto* | *qnx*)
  6321. lt_cv_deplibs_check_method=pass_all
  6322. ;;
  6323. openbsd*)
  6324. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  6325. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  6326. else
  6327. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  6328. fi
  6329. ;;
  6330. osf3* | osf4* | osf5*)
  6331. lt_cv_deplibs_check_method=pass_all
  6332. ;;
  6333. rdos*)
  6334. lt_cv_deplibs_check_method=pass_all
  6335. ;;
  6336. solaris*)
  6337. lt_cv_deplibs_check_method=pass_all
  6338. ;;
  6339. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  6340. lt_cv_deplibs_check_method=pass_all
  6341. ;;
  6342. sysv4 | sysv4.3*)
  6343. case $host_vendor in
  6344. motorola)
  6345. 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]'
  6346. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  6347. ;;
  6348. ncr)
  6349. lt_cv_deplibs_check_method=pass_all
  6350. ;;
  6351. sequent)
  6352. lt_cv_file_magic_cmd='/bin/file'
  6353. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  6354. ;;
  6355. sni)
  6356. lt_cv_file_magic_cmd='/bin/file'
  6357. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  6358. lt_cv_file_magic_test_file=/lib/libc.so
  6359. ;;
  6360. siemens)
  6361. lt_cv_deplibs_check_method=pass_all
  6362. ;;
  6363. pc)
  6364. lt_cv_deplibs_check_method=pass_all
  6365. ;;
  6366. esac
  6367. ;;
  6368. tpf*)
  6369. lt_cv_deplibs_check_method=pass_all
  6370. ;;
  6371. esac
  6372. fi
  6373. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  6374. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  6375. file_magic_cmd=$lt_cv_file_magic_cmd
  6376. deplibs_check_method=$lt_cv_deplibs_check_method
  6377. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  6378. if test -n "$ac_tool_prefix"; then
  6379. # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args.
  6380. set dummy ${ac_tool_prefix}ar; ac_word=$2
  6381. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6382. $as_echo_n "checking for $ac_word... " >&6; }
  6383. if ${ac_cv_prog_AR+:} false; then :
  6384. $as_echo_n "(cached) " >&6
  6385. else
  6386. if test -n "$AR"; then
  6387. ac_cv_prog_AR="$AR" # Let the user override the test.
  6388. else
  6389. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6390. for as_dir in $PATH
  6391. do
  6392. IFS=$as_save_IFS
  6393. test -z "$as_dir" && as_dir=.
  6394. for ac_exec_ext in '' $ac_executable_extensions; do
  6395. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6396. ac_cv_prog_AR="${ac_tool_prefix}ar"
  6397. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6398. break 2
  6399. fi
  6400. done
  6401. done
  6402. IFS=$as_save_IFS
  6403. fi
  6404. fi
  6405. AR=$ac_cv_prog_AR
  6406. if test -n "$AR"; then
  6407. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  6408. $as_echo "$AR" >&6; }
  6409. else
  6410. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6411. $as_echo "no" >&6; }
  6412. fi
  6413. fi
  6414. if test -z "$ac_cv_prog_AR"; then
  6415. ac_ct_AR=$AR
  6416. # Extract the first word of "ar", so it can be a program name with args.
  6417. set dummy ar; ac_word=$2
  6418. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6419. $as_echo_n "checking for $ac_word... " >&6; }
  6420. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  6421. $as_echo_n "(cached) " >&6
  6422. else
  6423. if test -n "$ac_ct_AR"; then
  6424. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  6425. else
  6426. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6427. for as_dir in $PATH
  6428. do
  6429. IFS=$as_save_IFS
  6430. test -z "$as_dir" && as_dir=.
  6431. for ac_exec_ext in '' $ac_executable_extensions; do
  6432. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6433. ac_cv_prog_ac_ct_AR="ar"
  6434. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6435. break 2
  6436. fi
  6437. done
  6438. done
  6439. IFS=$as_save_IFS
  6440. fi
  6441. fi
  6442. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  6443. if test -n "$ac_ct_AR"; then
  6444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  6445. $as_echo "$ac_ct_AR" >&6; }
  6446. else
  6447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6448. $as_echo "no" >&6; }
  6449. fi
  6450. if test "x$ac_ct_AR" = x; then
  6451. AR="false"
  6452. else
  6453. case $cross_compiling:$ac_tool_warned in
  6454. yes:)
  6455. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6456. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6457. ac_tool_warned=yes ;;
  6458. esac
  6459. AR=$ac_ct_AR
  6460. fi
  6461. else
  6462. AR="$ac_cv_prog_AR"
  6463. fi
  6464. test -z "$AR" && AR=ar
  6465. test -z "$AR_FLAGS" && AR_FLAGS=cru
  6466. if test -n "$ac_tool_prefix"; then
  6467. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  6468. set dummy ${ac_tool_prefix}strip; ac_word=$2
  6469. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6470. $as_echo_n "checking for $ac_word... " >&6; }
  6471. if ${ac_cv_prog_STRIP+:} false; then :
  6472. $as_echo_n "(cached) " >&6
  6473. else
  6474. if test -n "$STRIP"; then
  6475. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  6476. else
  6477. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6478. for as_dir in $PATH
  6479. do
  6480. IFS=$as_save_IFS
  6481. test -z "$as_dir" && as_dir=.
  6482. for ac_exec_ext in '' $ac_executable_extensions; do
  6483. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6484. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  6485. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6486. break 2
  6487. fi
  6488. done
  6489. done
  6490. IFS=$as_save_IFS
  6491. fi
  6492. fi
  6493. STRIP=$ac_cv_prog_STRIP
  6494. if test -n "$STRIP"; then
  6495. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  6496. $as_echo "$STRIP" >&6; }
  6497. else
  6498. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6499. $as_echo "no" >&6; }
  6500. fi
  6501. fi
  6502. if test -z "$ac_cv_prog_STRIP"; then
  6503. ac_ct_STRIP=$STRIP
  6504. # Extract the first word of "strip", so it can be a program name with args.
  6505. set dummy strip; ac_word=$2
  6506. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6507. $as_echo_n "checking for $ac_word... " >&6; }
  6508. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  6509. $as_echo_n "(cached) " >&6
  6510. else
  6511. if test -n "$ac_ct_STRIP"; then
  6512. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  6513. else
  6514. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6515. for as_dir in $PATH
  6516. do
  6517. IFS=$as_save_IFS
  6518. test -z "$as_dir" && as_dir=.
  6519. for ac_exec_ext in '' $ac_executable_extensions; do
  6520. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6521. ac_cv_prog_ac_ct_STRIP="strip"
  6522. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6523. break 2
  6524. fi
  6525. done
  6526. done
  6527. IFS=$as_save_IFS
  6528. fi
  6529. fi
  6530. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  6531. if test -n "$ac_ct_STRIP"; then
  6532. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  6533. $as_echo "$ac_ct_STRIP" >&6; }
  6534. else
  6535. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6536. $as_echo "no" >&6; }
  6537. fi
  6538. if test "x$ac_ct_STRIP" = x; then
  6539. STRIP=":"
  6540. else
  6541. case $cross_compiling:$ac_tool_warned in
  6542. yes:)
  6543. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6544. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6545. ac_tool_warned=yes ;;
  6546. esac
  6547. STRIP=$ac_ct_STRIP
  6548. fi
  6549. else
  6550. STRIP="$ac_cv_prog_STRIP"
  6551. fi
  6552. test -z "$STRIP" && STRIP=:
  6553. if test -n "$ac_tool_prefix"; then
  6554. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  6555. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  6556. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6557. $as_echo_n "checking for $ac_word... " >&6; }
  6558. if ${ac_cv_prog_RANLIB+:} false; then :
  6559. $as_echo_n "(cached) " >&6
  6560. else
  6561. if test -n "$RANLIB"; then
  6562. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  6563. else
  6564. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6565. for as_dir in $PATH
  6566. do
  6567. IFS=$as_save_IFS
  6568. test -z "$as_dir" && as_dir=.
  6569. for ac_exec_ext in '' $ac_executable_extensions; do
  6570. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6571. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  6572. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6573. break 2
  6574. fi
  6575. done
  6576. done
  6577. IFS=$as_save_IFS
  6578. fi
  6579. fi
  6580. RANLIB=$ac_cv_prog_RANLIB
  6581. if test -n "$RANLIB"; then
  6582. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  6583. $as_echo "$RANLIB" >&6; }
  6584. else
  6585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6586. $as_echo "no" >&6; }
  6587. fi
  6588. fi
  6589. if test -z "$ac_cv_prog_RANLIB"; then
  6590. ac_ct_RANLIB=$RANLIB
  6591. # Extract the first word of "ranlib", so it can be a program name with args.
  6592. set dummy ranlib; ac_word=$2
  6593. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6594. $as_echo_n "checking for $ac_word... " >&6; }
  6595. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  6596. $as_echo_n "(cached) " >&6
  6597. else
  6598. if test -n "$ac_ct_RANLIB"; then
  6599. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  6600. else
  6601. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6602. for as_dir in $PATH
  6603. do
  6604. IFS=$as_save_IFS
  6605. test -z "$as_dir" && as_dir=.
  6606. for ac_exec_ext in '' $ac_executable_extensions; do
  6607. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6608. ac_cv_prog_ac_ct_RANLIB="ranlib"
  6609. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6610. break 2
  6611. fi
  6612. done
  6613. done
  6614. IFS=$as_save_IFS
  6615. fi
  6616. fi
  6617. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  6618. if test -n "$ac_ct_RANLIB"; then
  6619. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  6620. $as_echo "$ac_ct_RANLIB" >&6; }
  6621. else
  6622. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6623. $as_echo "no" >&6; }
  6624. fi
  6625. if test "x$ac_ct_RANLIB" = x; then
  6626. RANLIB=":"
  6627. else
  6628. case $cross_compiling:$ac_tool_warned in
  6629. yes:)
  6630. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6631. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6632. ac_tool_warned=yes ;;
  6633. esac
  6634. RANLIB=$ac_ct_RANLIB
  6635. fi
  6636. else
  6637. RANLIB="$ac_cv_prog_RANLIB"
  6638. fi
  6639. test -z "$RANLIB" && RANLIB=:
  6640. # Determine commands to create old-style static archives.
  6641. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  6642. old_postinstall_cmds='chmod 644 $oldlib'
  6643. old_postuninstall_cmds=
  6644. if test -n "$RANLIB"; then
  6645. case $host_os in
  6646. openbsd*)
  6647. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib"
  6648. ;;
  6649. *)
  6650. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib"
  6651. ;;
  6652. esac
  6653. old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib"
  6654. fi
  6655. case $host_os in
  6656. darwin*)
  6657. lock_old_archive_extraction=yes ;;
  6658. *)
  6659. lock_old_archive_extraction=no ;;
  6660. esac
  6661. # If no C compiler was specified, use CC.
  6662. LTCC=${LTCC-"$CC"}
  6663. # If no C compiler flags were specified, use CFLAGS.
  6664. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6665. # Allow CC to be a program name with arguments.
  6666. compiler=$CC
  6667. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6669. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6670. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6671. $as_echo_n "(cached) " >&6
  6672. else
  6673. # These are sane defaults that work on at least a few old systems.
  6674. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6675. # Character class describing NM global symbol codes.
  6676. symcode='[BCDEGRST]'
  6677. # Regexp to match symbols that can be accessed directly from C.
  6678. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6679. # Define system-specific variables.
  6680. case $host_os in
  6681. aix*)
  6682. symcode='[BCDT]'
  6683. ;;
  6684. cygwin* | mingw* | pw32* | cegcc*)
  6685. symcode='[ABCDGISTW]'
  6686. ;;
  6687. hpux*)
  6688. if test "$host_cpu" = ia64; then
  6689. symcode='[ABCDEGRST]'
  6690. fi
  6691. ;;
  6692. irix* | nonstopux*)
  6693. symcode='[BCDEGRST]'
  6694. ;;
  6695. osf*)
  6696. symcode='[BCDEGQRST]'
  6697. ;;
  6698. solaris*)
  6699. symcode='[BDRT]'
  6700. ;;
  6701. sco3.2v5*)
  6702. symcode='[DT]'
  6703. ;;
  6704. sysv4.2uw2*)
  6705. symcode='[DT]'
  6706. ;;
  6707. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6708. symcode='[ABDT]'
  6709. ;;
  6710. sysv4)
  6711. symcode='[DFNSTU]'
  6712. ;;
  6713. esac
  6714. # If we're using GNU nm, then use its standard symbol codes.
  6715. case `$NM -V 2>&1` in
  6716. *GNU* | *'with BFD'*)
  6717. symcode='[ABCDGIRSTW]' ;;
  6718. esac
  6719. # Transform an extracted symbol line into a proper C declaration.
  6720. # Some systems (esp. on ia64) link data and code symbols differently,
  6721. # so use this general approach.
  6722. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6723. # Transform an extracted symbol line into symbol name and symbol address
  6724. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6725. 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'"
  6726. # Handle CRLF in mingw tool chain
  6727. opt_cr=
  6728. case $build_os in
  6729. mingw*)
  6730. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6731. ;;
  6732. esac
  6733. # Try without a prefix underscore, then with it.
  6734. for ac_symprfx in "" "_"; do
  6735. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6736. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6737. # Write the raw and C identifiers.
  6738. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6739. # Fake it for dumpbin and say T for any non-static function
  6740. # and D for any global variable.
  6741. # Also find C++ and __fastcall symbols from MSVC++,
  6742. # which start with @ or ?.
  6743. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6744. " {last_section=section; section=\$ 3};"\
  6745. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6746. " \$ 0!~/External *\|/{next};"\
  6747. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6748. " {if(hide[section]) next};"\
  6749. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6750. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6751. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6752. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6753. " ' prfx=^$ac_symprfx"
  6754. else
  6755. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6756. fi
  6757. # Check to see that the pipe works correctly.
  6758. pipe_works=no
  6759. rm -f conftest*
  6760. cat > conftest.$ac_ext <<_LT_EOF
  6761. #ifdef __cplusplus
  6762. extern "C" {
  6763. #endif
  6764. char nm_test_var;
  6765. void nm_test_func(void);
  6766. void nm_test_func(void){}
  6767. #ifdef __cplusplus
  6768. }
  6769. #endif
  6770. int main(){nm_test_var='a';nm_test_func();return(0);}
  6771. _LT_EOF
  6772. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6773. (eval $ac_compile) 2>&5
  6774. ac_status=$?
  6775. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6776. test $ac_status = 0; }; then
  6777. # Now try to grab the symbols.
  6778. nlist=conftest.nm
  6779. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6780. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6781. ac_status=$?
  6782. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6783. test $ac_status = 0; } && test -s "$nlist"; then
  6784. # Try sorting and uniquifying the output.
  6785. if sort "$nlist" | uniq > "$nlist"T; then
  6786. mv -f "$nlist"T "$nlist"
  6787. else
  6788. rm -f "$nlist"T
  6789. fi
  6790. # Make sure that we snagged all the symbols we need.
  6791. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6792. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6793. cat <<_LT_EOF > conftest.$ac_ext
  6794. #ifdef __cplusplus
  6795. extern "C" {
  6796. #endif
  6797. _LT_EOF
  6798. # Now generate the symbol file.
  6799. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6800. cat <<_LT_EOF >> conftest.$ac_ext
  6801. /* The mapping between symbol names and symbols. */
  6802. const struct {
  6803. const char *name;
  6804. void *address;
  6805. }
  6806. lt__PROGRAM__LTX_preloaded_symbols[] =
  6807. {
  6808. { "@PROGRAM@", (void *) 0 },
  6809. _LT_EOF
  6810. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6811. cat <<\_LT_EOF >> conftest.$ac_ext
  6812. {0, (void *) 0}
  6813. };
  6814. /* This works around a problem in FreeBSD linker */
  6815. #ifdef FREEBSD_WORKAROUND
  6816. static const void *lt_preloaded_setup() {
  6817. return lt__PROGRAM__LTX_preloaded_symbols;
  6818. }
  6819. #endif
  6820. #ifdef __cplusplus
  6821. }
  6822. #endif
  6823. _LT_EOF
  6824. # Now try linking the two files.
  6825. mv conftest.$ac_objext conftstm.$ac_objext
  6826. lt_save_LIBS="$LIBS"
  6827. lt_save_CFLAGS="$CFLAGS"
  6828. LIBS="conftstm.$ac_objext"
  6829. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6830. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6831. (eval $ac_link) 2>&5
  6832. ac_status=$?
  6833. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6834. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6835. pipe_works=yes
  6836. fi
  6837. LIBS="$lt_save_LIBS"
  6838. CFLAGS="$lt_save_CFLAGS"
  6839. else
  6840. echo "cannot find nm_test_func in $nlist" >&5
  6841. fi
  6842. else
  6843. echo "cannot find nm_test_var in $nlist" >&5
  6844. fi
  6845. else
  6846. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6847. fi
  6848. else
  6849. echo "$progname: failed program was:" >&5
  6850. cat conftest.$ac_ext >&5
  6851. fi
  6852. rm -rf conftest* conftst*
  6853. # Do not use the global_symbol_pipe unless it works.
  6854. if test "$pipe_works" = yes; then
  6855. break
  6856. else
  6857. lt_cv_sys_global_symbol_pipe=
  6858. fi
  6859. done
  6860. fi
  6861. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6862. lt_cv_sys_global_symbol_to_cdecl=
  6863. fi
  6864. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6865. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6866. $as_echo "failed" >&6; }
  6867. else
  6868. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6869. $as_echo "ok" >&6; }
  6870. fi
  6871. # Check whether --enable-libtool-lock was given.
  6872. if test "${enable_libtool_lock+set}" = set; then :
  6873. enableval=$enable_libtool_lock;
  6874. fi
  6875. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6876. # Some flags need to be propagated to the compiler or linker for good
  6877. # libtool support.
  6878. case $host in
  6879. ia64-*-hpux*)
  6880. # Find out which ABI we are using.
  6881. echo 'int i;' > conftest.$ac_ext
  6882. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6883. (eval $ac_compile) 2>&5
  6884. ac_status=$?
  6885. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6886. test $ac_status = 0; }; then
  6887. case `/usr/bin/file conftest.$ac_objext` in
  6888. *ELF-32*)
  6889. HPUX_IA64_MODE="32"
  6890. ;;
  6891. *ELF-64*)
  6892. HPUX_IA64_MODE="64"
  6893. ;;
  6894. esac
  6895. fi
  6896. rm -rf conftest*
  6897. ;;
  6898. *-*-irix6*)
  6899. # Find out which ABI we are using.
  6900. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6901. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6902. (eval $ac_compile) 2>&5
  6903. ac_status=$?
  6904. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6905. test $ac_status = 0; }; then
  6906. if test "$lt_cv_prog_gnu_ld" = yes; then
  6907. case `/usr/bin/file conftest.$ac_objext` in
  6908. *32-bit*)
  6909. LD="${LD-ld} -melf32bsmip"
  6910. ;;
  6911. *N32*)
  6912. LD="${LD-ld} -melf32bmipn32"
  6913. ;;
  6914. *64-bit*)
  6915. LD="${LD-ld} -melf64bmip"
  6916. ;;
  6917. esac
  6918. else
  6919. case `/usr/bin/file conftest.$ac_objext` in
  6920. *32-bit*)
  6921. LD="${LD-ld} -32"
  6922. ;;
  6923. *N32*)
  6924. LD="${LD-ld} -n32"
  6925. ;;
  6926. *64-bit*)
  6927. LD="${LD-ld} -64"
  6928. ;;
  6929. esac
  6930. fi
  6931. fi
  6932. rm -rf conftest*
  6933. ;;
  6934. x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
  6935. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6936. # Find out which ABI we are using.
  6937. echo 'int i;' > conftest.$ac_ext
  6938. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6939. (eval $ac_compile) 2>&5
  6940. ac_status=$?
  6941. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6942. test $ac_status = 0; }; then
  6943. case `/usr/bin/file conftest.o` in
  6944. *32-bit*)
  6945. case $host in
  6946. x86_64-*kfreebsd*-gnu)
  6947. LD="${LD-ld} -m elf_i386_fbsd"
  6948. ;;
  6949. x86_64-*linux*)
  6950. case `/usr/bin/file conftest.o` in
  6951. *x86-64*)
  6952. LD="${LD-ld} -m elf32_x86_64"
  6953. ;;
  6954. *)
  6955. LD="${LD-ld} -m elf_i386"
  6956. ;;
  6957. esac
  6958. ;;
  6959. powerpc64le-*linux*)
  6960. LD="${LD-ld} -m elf32lppclinux"
  6961. ;;
  6962. powerpc64-*linux*)
  6963. LD="${LD-ld} -m elf32ppclinux"
  6964. ;;
  6965. s390x-*linux*)
  6966. LD="${LD-ld} -m elf_s390"
  6967. ;;
  6968. sparc64-*linux*)
  6969. LD="${LD-ld} -m elf32_sparc"
  6970. ;;
  6971. esac
  6972. ;;
  6973. *64-bit*)
  6974. case $host in
  6975. x86_64-*kfreebsd*-gnu)
  6976. LD="${LD-ld} -m elf_x86_64_fbsd"
  6977. ;;
  6978. x86_64-*linux*)
  6979. LD="${LD-ld} -m elf_x86_64"
  6980. ;;
  6981. powerpcle-*linux*)
  6982. LD="${LD-ld} -m elf64lppc"
  6983. ;;
  6984. powerpc-*linux*)
  6985. LD="${LD-ld} -m elf64ppc"
  6986. ;;
  6987. s390*-*linux*|s390*-*tpf*)
  6988. LD="${LD-ld} -m elf64_s390"
  6989. ;;
  6990. sparc*-*linux*)
  6991. LD="${LD-ld} -m elf64_sparc"
  6992. ;;
  6993. esac
  6994. ;;
  6995. esac
  6996. fi
  6997. rm -rf conftest*
  6998. ;;
  6999. *-*-sco3.2v5*)
  7000. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  7001. SAVE_CFLAGS="$CFLAGS"
  7002. CFLAGS="$CFLAGS -belf"
  7003. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  7004. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  7005. if ${lt_cv_cc_needs_belf+:} false; then :
  7006. $as_echo_n "(cached) " >&6
  7007. else
  7008. ac_ext=c
  7009. ac_cpp='$CPP $CPPFLAGS'
  7010. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7011. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7012. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7013. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7014. /* end confdefs.h. */
  7015. int
  7016. main ()
  7017. {
  7018. ;
  7019. return 0;
  7020. }
  7021. _ACEOF
  7022. if ac_fn_c_try_link "$LINENO"; then :
  7023. lt_cv_cc_needs_belf=yes
  7024. else
  7025. lt_cv_cc_needs_belf=no
  7026. fi
  7027. rm -f core conftest.err conftest.$ac_objext \
  7028. conftest$ac_exeext conftest.$ac_ext
  7029. ac_ext=c
  7030. ac_cpp='$CPP $CPPFLAGS'
  7031. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7032. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7033. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7034. fi
  7035. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  7036. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  7037. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  7038. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  7039. CFLAGS="$SAVE_CFLAGS"
  7040. fi
  7041. ;;
  7042. sparc*-*solaris*)
  7043. # Find out which ABI we are using.
  7044. echo 'int i;' > conftest.$ac_ext
  7045. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  7046. (eval $ac_compile) 2>&5
  7047. ac_status=$?
  7048. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  7049. test $ac_status = 0; }; then
  7050. case `/usr/bin/file conftest.o` in
  7051. *64-bit*)
  7052. case $lt_cv_prog_gnu_ld in
  7053. yes*) LD="${LD-ld} -m elf64_sparc" ;;
  7054. *)
  7055. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  7056. LD="${LD-ld} -64"
  7057. fi
  7058. ;;
  7059. esac
  7060. ;;
  7061. esac
  7062. fi
  7063. rm -rf conftest*
  7064. ;;
  7065. esac
  7066. need_locks="$enable_libtool_lock"
  7067. case $host_os in
  7068. rhapsody* | darwin*)
  7069. if test -n "$ac_tool_prefix"; then
  7070. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  7071. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  7072. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7073. $as_echo_n "checking for $ac_word... " >&6; }
  7074. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  7075. $as_echo_n "(cached) " >&6
  7076. else
  7077. if test -n "$DSYMUTIL"; then
  7078. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  7079. else
  7080. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7081. for as_dir in $PATH
  7082. do
  7083. IFS=$as_save_IFS
  7084. test -z "$as_dir" && as_dir=.
  7085. for ac_exec_ext in '' $ac_executable_extensions; do
  7086. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7087. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  7088. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7089. break 2
  7090. fi
  7091. done
  7092. done
  7093. IFS=$as_save_IFS
  7094. fi
  7095. fi
  7096. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  7097. if test -n "$DSYMUTIL"; then
  7098. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  7099. $as_echo "$DSYMUTIL" >&6; }
  7100. else
  7101. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7102. $as_echo "no" >&6; }
  7103. fi
  7104. fi
  7105. if test -z "$ac_cv_prog_DSYMUTIL"; then
  7106. ac_ct_DSYMUTIL=$DSYMUTIL
  7107. # Extract the first word of "dsymutil", so it can be a program name with args.
  7108. set dummy dsymutil; ac_word=$2
  7109. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7110. $as_echo_n "checking for $ac_word... " >&6; }
  7111. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  7112. $as_echo_n "(cached) " >&6
  7113. else
  7114. if test -n "$ac_ct_DSYMUTIL"; then
  7115. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  7116. else
  7117. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7118. for as_dir in $PATH
  7119. do
  7120. IFS=$as_save_IFS
  7121. test -z "$as_dir" && as_dir=.
  7122. for ac_exec_ext in '' $ac_executable_extensions; do
  7123. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7124. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  7125. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7126. break 2
  7127. fi
  7128. done
  7129. done
  7130. IFS=$as_save_IFS
  7131. fi
  7132. fi
  7133. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  7134. if test -n "$ac_ct_DSYMUTIL"; then
  7135. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  7136. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  7137. else
  7138. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7139. $as_echo "no" >&6; }
  7140. fi
  7141. if test "x$ac_ct_DSYMUTIL" = x; then
  7142. DSYMUTIL=":"
  7143. else
  7144. case $cross_compiling:$ac_tool_warned in
  7145. yes:)
  7146. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7147. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7148. ac_tool_warned=yes ;;
  7149. esac
  7150. DSYMUTIL=$ac_ct_DSYMUTIL
  7151. fi
  7152. else
  7153. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  7154. fi
  7155. if test -n "$ac_tool_prefix"; then
  7156. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  7157. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  7158. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7159. $as_echo_n "checking for $ac_word... " >&6; }
  7160. if ${ac_cv_prog_NMEDIT+:} false; then :
  7161. $as_echo_n "(cached) " >&6
  7162. else
  7163. if test -n "$NMEDIT"; then
  7164. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  7165. else
  7166. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7167. for as_dir in $PATH
  7168. do
  7169. IFS=$as_save_IFS
  7170. test -z "$as_dir" && as_dir=.
  7171. for ac_exec_ext in '' $ac_executable_extensions; do
  7172. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7173. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  7174. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7175. break 2
  7176. fi
  7177. done
  7178. done
  7179. IFS=$as_save_IFS
  7180. fi
  7181. fi
  7182. NMEDIT=$ac_cv_prog_NMEDIT
  7183. if test -n "$NMEDIT"; then
  7184. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  7185. $as_echo "$NMEDIT" >&6; }
  7186. else
  7187. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7188. $as_echo "no" >&6; }
  7189. fi
  7190. fi
  7191. if test -z "$ac_cv_prog_NMEDIT"; then
  7192. ac_ct_NMEDIT=$NMEDIT
  7193. # Extract the first word of "nmedit", so it can be a program name with args.
  7194. set dummy nmedit; ac_word=$2
  7195. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7196. $as_echo_n "checking for $ac_word... " >&6; }
  7197. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  7198. $as_echo_n "(cached) " >&6
  7199. else
  7200. if test -n "$ac_ct_NMEDIT"; then
  7201. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  7202. else
  7203. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7204. for as_dir in $PATH
  7205. do
  7206. IFS=$as_save_IFS
  7207. test -z "$as_dir" && as_dir=.
  7208. for ac_exec_ext in '' $ac_executable_extensions; do
  7209. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7210. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  7211. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7212. break 2
  7213. fi
  7214. done
  7215. done
  7216. IFS=$as_save_IFS
  7217. fi
  7218. fi
  7219. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  7220. if test -n "$ac_ct_NMEDIT"; then
  7221. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  7222. $as_echo "$ac_ct_NMEDIT" >&6; }
  7223. else
  7224. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7225. $as_echo "no" >&6; }
  7226. fi
  7227. if test "x$ac_ct_NMEDIT" = x; then
  7228. NMEDIT=":"
  7229. else
  7230. case $cross_compiling:$ac_tool_warned in
  7231. yes:)
  7232. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7233. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7234. ac_tool_warned=yes ;;
  7235. esac
  7236. NMEDIT=$ac_ct_NMEDIT
  7237. fi
  7238. else
  7239. NMEDIT="$ac_cv_prog_NMEDIT"
  7240. fi
  7241. if test -n "$ac_tool_prefix"; then
  7242. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  7243. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  7244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7245. $as_echo_n "checking for $ac_word... " >&6; }
  7246. if ${ac_cv_prog_LIPO+:} false; then :
  7247. $as_echo_n "(cached) " >&6
  7248. else
  7249. if test -n "$LIPO"; then
  7250. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  7251. else
  7252. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7253. for as_dir in $PATH
  7254. do
  7255. IFS=$as_save_IFS
  7256. test -z "$as_dir" && as_dir=.
  7257. for ac_exec_ext in '' $ac_executable_extensions; do
  7258. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7259. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  7260. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7261. break 2
  7262. fi
  7263. done
  7264. done
  7265. IFS=$as_save_IFS
  7266. fi
  7267. fi
  7268. LIPO=$ac_cv_prog_LIPO
  7269. if test -n "$LIPO"; then
  7270. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  7271. $as_echo "$LIPO" >&6; }
  7272. else
  7273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7274. $as_echo "no" >&6; }
  7275. fi
  7276. fi
  7277. if test -z "$ac_cv_prog_LIPO"; then
  7278. ac_ct_LIPO=$LIPO
  7279. # Extract the first word of "lipo", so it can be a program name with args.
  7280. set dummy lipo; ac_word=$2
  7281. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7282. $as_echo_n "checking for $ac_word... " >&6; }
  7283. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  7284. $as_echo_n "(cached) " >&6
  7285. else
  7286. if test -n "$ac_ct_LIPO"; then
  7287. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  7288. else
  7289. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7290. for as_dir in $PATH
  7291. do
  7292. IFS=$as_save_IFS
  7293. test -z "$as_dir" && as_dir=.
  7294. for ac_exec_ext in '' $ac_executable_extensions; do
  7295. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7296. ac_cv_prog_ac_ct_LIPO="lipo"
  7297. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7298. break 2
  7299. fi
  7300. done
  7301. done
  7302. IFS=$as_save_IFS
  7303. fi
  7304. fi
  7305. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  7306. if test -n "$ac_ct_LIPO"; then
  7307. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  7308. $as_echo "$ac_ct_LIPO" >&6; }
  7309. else
  7310. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7311. $as_echo "no" >&6; }
  7312. fi
  7313. if test "x$ac_ct_LIPO" = x; then
  7314. LIPO=":"
  7315. else
  7316. case $cross_compiling:$ac_tool_warned in
  7317. yes:)
  7318. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7319. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7320. ac_tool_warned=yes ;;
  7321. esac
  7322. LIPO=$ac_ct_LIPO
  7323. fi
  7324. else
  7325. LIPO="$ac_cv_prog_LIPO"
  7326. fi
  7327. if test -n "$ac_tool_prefix"; then
  7328. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  7329. set dummy ${ac_tool_prefix}otool; ac_word=$2
  7330. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7331. $as_echo_n "checking for $ac_word... " >&6; }
  7332. if ${ac_cv_prog_OTOOL+:} false; then :
  7333. $as_echo_n "(cached) " >&6
  7334. else
  7335. if test -n "$OTOOL"; then
  7336. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  7337. else
  7338. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7339. for as_dir in $PATH
  7340. do
  7341. IFS=$as_save_IFS
  7342. test -z "$as_dir" && as_dir=.
  7343. for ac_exec_ext in '' $ac_executable_extensions; do
  7344. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7345. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  7346. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7347. break 2
  7348. fi
  7349. done
  7350. done
  7351. IFS=$as_save_IFS
  7352. fi
  7353. fi
  7354. OTOOL=$ac_cv_prog_OTOOL
  7355. if test -n "$OTOOL"; then
  7356. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  7357. $as_echo "$OTOOL" >&6; }
  7358. else
  7359. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7360. $as_echo "no" >&6; }
  7361. fi
  7362. fi
  7363. if test -z "$ac_cv_prog_OTOOL"; then
  7364. ac_ct_OTOOL=$OTOOL
  7365. # Extract the first word of "otool", so it can be a program name with args.
  7366. set dummy otool; ac_word=$2
  7367. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7368. $as_echo_n "checking for $ac_word... " >&6; }
  7369. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  7370. $as_echo_n "(cached) " >&6
  7371. else
  7372. if test -n "$ac_ct_OTOOL"; then
  7373. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  7374. else
  7375. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7376. for as_dir in $PATH
  7377. do
  7378. IFS=$as_save_IFS
  7379. test -z "$as_dir" && as_dir=.
  7380. for ac_exec_ext in '' $ac_executable_extensions; do
  7381. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7382. ac_cv_prog_ac_ct_OTOOL="otool"
  7383. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7384. break 2
  7385. fi
  7386. done
  7387. done
  7388. IFS=$as_save_IFS
  7389. fi
  7390. fi
  7391. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  7392. if test -n "$ac_ct_OTOOL"; then
  7393. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  7394. $as_echo "$ac_ct_OTOOL" >&6; }
  7395. else
  7396. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7397. $as_echo "no" >&6; }
  7398. fi
  7399. if test "x$ac_ct_OTOOL" = x; then
  7400. OTOOL=":"
  7401. else
  7402. case $cross_compiling:$ac_tool_warned in
  7403. yes:)
  7404. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7405. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7406. ac_tool_warned=yes ;;
  7407. esac
  7408. OTOOL=$ac_ct_OTOOL
  7409. fi
  7410. else
  7411. OTOOL="$ac_cv_prog_OTOOL"
  7412. fi
  7413. if test -n "$ac_tool_prefix"; then
  7414. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  7415. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  7416. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7417. $as_echo_n "checking for $ac_word... " >&6; }
  7418. if ${ac_cv_prog_OTOOL64+:} false; then :
  7419. $as_echo_n "(cached) " >&6
  7420. else
  7421. if test -n "$OTOOL64"; then
  7422. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  7423. else
  7424. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7425. for as_dir in $PATH
  7426. do
  7427. IFS=$as_save_IFS
  7428. test -z "$as_dir" && as_dir=.
  7429. for ac_exec_ext in '' $ac_executable_extensions; do
  7430. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7431. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  7432. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7433. break 2
  7434. fi
  7435. done
  7436. done
  7437. IFS=$as_save_IFS
  7438. fi
  7439. fi
  7440. OTOOL64=$ac_cv_prog_OTOOL64
  7441. if test -n "$OTOOL64"; then
  7442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  7443. $as_echo "$OTOOL64" >&6; }
  7444. else
  7445. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7446. $as_echo "no" >&6; }
  7447. fi
  7448. fi
  7449. if test -z "$ac_cv_prog_OTOOL64"; then
  7450. ac_ct_OTOOL64=$OTOOL64
  7451. # Extract the first word of "otool64", so it can be a program name with args.
  7452. set dummy otool64; ac_word=$2
  7453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  7454. $as_echo_n "checking for $ac_word... " >&6; }
  7455. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  7456. $as_echo_n "(cached) " >&6
  7457. else
  7458. if test -n "$ac_ct_OTOOL64"; then
  7459. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  7460. else
  7461. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  7462. for as_dir in $PATH
  7463. do
  7464. IFS=$as_save_IFS
  7465. test -z "$as_dir" && as_dir=.
  7466. for ac_exec_ext in '' $ac_executable_extensions; do
  7467. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  7468. ac_cv_prog_ac_ct_OTOOL64="otool64"
  7469. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7470. break 2
  7471. fi
  7472. done
  7473. done
  7474. IFS=$as_save_IFS
  7475. fi
  7476. fi
  7477. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7478. if test -n "$ac_ct_OTOOL64"; then
  7479. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7480. $as_echo "$ac_ct_OTOOL64" >&6; }
  7481. else
  7482. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7483. $as_echo "no" >&6; }
  7484. fi
  7485. if test "x$ac_ct_OTOOL64" = x; then
  7486. OTOOL64=":"
  7487. else
  7488. case $cross_compiling:$ac_tool_warned in
  7489. yes:)
  7490. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7491. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7492. ac_tool_warned=yes ;;
  7493. esac
  7494. OTOOL64=$ac_ct_OTOOL64
  7495. fi
  7496. else
  7497. OTOOL64="$ac_cv_prog_OTOOL64"
  7498. fi
  7499. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7500. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7501. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7502. $as_echo_n "(cached) " >&6
  7503. else
  7504. lt_cv_apple_cc_single_mod=no
  7505. if test -z "${LT_MULTI_MODULE}"; then
  7506. # By default we will add the -single_module flag. You can override
  7507. # by either setting the environment variable LT_MULTI_MODULE
  7508. # non-empty at configure time, or by adding -multi_module to the
  7509. # link flags.
  7510. rm -rf libconftest.dylib*
  7511. echo "int foo(void){return 1;}" > conftest.c
  7512. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7513. -dynamiclib -Wl,-single_module conftest.c" >&5
  7514. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7515. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7516. _lt_result=$?
  7517. if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then
  7518. lt_cv_apple_cc_single_mod=yes
  7519. else
  7520. cat conftest.err >&5
  7521. fi
  7522. rm -rf libconftest.dylib*
  7523. rm -f conftest.*
  7524. fi
  7525. fi
  7526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7527. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7528. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7529. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7530. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7531. $as_echo_n "(cached) " >&6
  7532. else
  7533. lt_cv_ld_exported_symbols_list=no
  7534. save_LDFLAGS=$LDFLAGS
  7535. echo "_main" > conftest.sym
  7536. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7537. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7538. /* end confdefs.h. */
  7539. int
  7540. main ()
  7541. {
  7542. ;
  7543. return 0;
  7544. }
  7545. _ACEOF
  7546. if ac_fn_c_try_link "$LINENO"; then :
  7547. lt_cv_ld_exported_symbols_list=yes
  7548. else
  7549. lt_cv_ld_exported_symbols_list=no
  7550. fi
  7551. rm -f core conftest.err conftest.$ac_objext \
  7552. conftest$ac_exeext conftest.$ac_ext
  7553. LDFLAGS="$save_LDFLAGS"
  7554. fi
  7555. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7556. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7557. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7558. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7559. if ${lt_cv_ld_force_load+:} false; then :
  7560. $as_echo_n "(cached) " >&6
  7561. else
  7562. lt_cv_ld_force_load=no
  7563. cat > conftest.c << _LT_EOF
  7564. int forced_loaded() { return 2;}
  7565. _LT_EOF
  7566. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7567. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7568. echo "$AR cru libconftest.a conftest.o" >&5
  7569. $AR cru libconftest.a conftest.o 2>&5
  7570. cat > conftest.c << _LT_EOF
  7571. int main() { return 0;}
  7572. _LT_EOF
  7573. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7574. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7575. _lt_result=$?
  7576. if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then
  7577. lt_cv_ld_force_load=yes
  7578. else
  7579. cat conftest.err >&5
  7580. fi
  7581. rm -f conftest.err libconftest.a conftest conftest.c
  7582. rm -rf conftest.dSYM
  7583. fi
  7584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7585. $as_echo "$lt_cv_ld_force_load" >&6; }
  7586. # Allow for Darwin 4-7 (macOS 10.0-10.3) although these are not expect to
  7587. # build without first building modern cctools / linker.
  7588. case $host_cpu-$host_os in
  7589. *-rhapsody* | *-darwin1.[012])
  7590. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7591. *-darwin1.*)
  7592. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7593. *-darwin*)
  7594. # darwin 5.x (macOS 10.1) onwards we only need to adjust when the
  7595. # deployment target is forced to an earlier version.
  7596. case ${MACOSX_DEPLOYMENT_TARGET-UNSET},$host in
  7597. UNSET,*-darwin[89]*|UNSET,*-darwin[12][0123456789]*)
  7598. ;;
  7599. 10.[012][,.]*)
  7600. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress'
  7601. ;;
  7602. *)
  7603. ;;
  7604. esac
  7605. ;;
  7606. esac
  7607. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7608. _lt_dar_single_mod='$single_module'
  7609. fi
  7610. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7611. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7612. else
  7613. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7614. fi
  7615. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7616. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7617. else
  7618. _lt_dsymutil=
  7619. fi
  7620. ;;
  7621. esac
  7622. for ac_header in dlfcn.h
  7623. do :
  7624. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7625. "
  7626. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7627. cat >>confdefs.h <<_ACEOF
  7628. #define HAVE_DLFCN_H 1
  7629. _ACEOF
  7630. fi
  7631. done
  7632. # Set options
  7633. enable_dlopen=no
  7634. enable_win32_dll=no
  7635. # Check whether --enable-shared was given.
  7636. if test "${enable_shared+set}" = set; then :
  7637. enableval=$enable_shared; p=${PACKAGE-default}
  7638. case $enableval in
  7639. yes) enable_shared=yes ;;
  7640. no) enable_shared=no ;;
  7641. *)
  7642. enable_shared=no
  7643. # Look at the argument we got. We use all the common list separators.
  7644. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7645. for pkg in $enableval; do
  7646. IFS="$lt_save_ifs"
  7647. if test "X$pkg" = "X$p"; then
  7648. enable_shared=yes
  7649. fi
  7650. done
  7651. IFS="$lt_save_ifs"
  7652. ;;
  7653. esac
  7654. else
  7655. enable_shared=yes
  7656. fi
  7657. # Check whether --enable-static was given.
  7658. if test "${enable_static+set}" = set; then :
  7659. enableval=$enable_static; p=${PACKAGE-default}
  7660. case $enableval in
  7661. yes) enable_static=yes ;;
  7662. no) enable_static=no ;;
  7663. *)
  7664. enable_static=no
  7665. # Look at the argument we got. We use all the common list separators.
  7666. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7667. for pkg in $enableval; do
  7668. IFS="$lt_save_ifs"
  7669. if test "X$pkg" = "X$p"; then
  7670. enable_static=yes
  7671. fi
  7672. done
  7673. IFS="$lt_save_ifs"
  7674. ;;
  7675. esac
  7676. else
  7677. enable_static=yes
  7678. fi
  7679. # Check whether --with-pic was given.
  7680. if test "${with_pic+set}" = set; then :
  7681. withval=$with_pic; pic_mode="$withval"
  7682. else
  7683. pic_mode=default
  7684. fi
  7685. test -z "$pic_mode" && pic_mode=default
  7686. # Check whether --enable-fast-install was given.
  7687. if test "${enable_fast_install+set}" = set; then :
  7688. enableval=$enable_fast_install; p=${PACKAGE-default}
  7689. case $enableval in
  7690. yes) enable_fast_install=yes ;;
  7691. no) enable_fast_install=no ;;
  7692. *)
  7693. enable_fast_install=no
  7694. # Look at the argument we got. We use all the common list separators.
  7695. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7696. for pkg in $enableval; do
  7697. IFS="$lt_save_ifs"
  7698. if test "X$pkg" = "X$p"; then
  7699. enable_fast_install=yes
  7700. fi
  7701. done
  7702. IFS="$lt_save_ifs"
  7703. ;;
  7704. esac
  7705. else
  7706. enable_fast_install=yes
  7707. fi
  7708. # This can be used to rebuild libtool when needed
  7709. LIBTOOL_DEPS="$ltmain"
  7710. # Always use our own libtool.
  7711. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7712. test -z "$LN_S" && LN_S="ln -s"
  7713. if test -n "${ZSH_VERSION+set}" ; then
  7714. setopt NO_GLOB_SUBST
  7715. fi
  7716. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7717. $as_echo_n "checking for objdir... " >&6; }
  7718. if ${lt_cv_objdir+:} false; then :
  7719. $as_echo_n "(cached) " >&6
  7720. else
  7721. rm -f .libs 2>/dev/null
  7722. mkdir .libs 2>/dev/null
  7723. if test -d .libs; then
  7724. lt_cv_objdir=.libs
  7725. else
  7726. # MS-DOS does not allow filenames that begin with a dot.
  7727. lt_cv_objdir=_libs
  7728. fi
  7729. rmdir .libs 2>/dev/null
  7730. fi
  7731. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7732. $as_echo "$lt_cv_objdir" >&6; }
  7733. objdir=$lt_cv_objdir
  7734. cat >>confdefs.h <<_ACEOF
  7735. #define LT_OBJDIR "$lt_cv_objdir/"
  7736. _ACEOF
  7737. case $host_os in
  7738. aix3*)
  7739. # AIX sometimes has problems with the GCC collect2 program. For some
  7740. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7741. # vanish in a puff of smoke.
  7742. if test "X${COLLECT_NAMES+set}" != Xset; then
  7743. COLLECT_NAMES=
  7744. export COLLECT_NAMES
  7745. fi
  7746. ;;
  7747. esac
  7748. # Global variables:
  7749. ofile=libtool
  7750. can_build_shared=yes
  7751. # All known linkers require a `.a' archive for static linking (except MSVC,
  7752. # which needs '.lib').
  7753. libext=a
  7754. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7755. old_CC="$CC"
  7756. old_CFLAGS="$CFLAGS"
  7757. # Set sane defaults for various variables
  7758. test -z "$CC" && CC=cc
  7759. test -z "$LTCC" && LTCC=$CC
  7760. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7761. test -z "$LD" && LD=ld
  7762. test -z "$ac_objext" && ac_objext=o
  7763. for cc_temp in $compiler""; do
  7764. case $cc_temp in
  7765. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7766. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7767. \-*) ;;
  7768. *) break;;
  7769. esac
  7770. done
  7771. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7772. # Only perform the check for file, if the check method requires it
  7773. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7774. case $deplibs_check_method in
  7775. file_magic*)
  7776. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7777. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7778. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7779. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7780. $as_echo_n "(cached) " >&6
  7781. else
  7782. case $MAGIC_CMD in
  7783. [\\/*] | ?:[\\/]*)
  7784. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7785. ;;
  7786. *)
  7787. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7788. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7789. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7790. for ac_dir in $ac_dummy; do
  7791. IFS="$lt_save_ifs"
  7792. test -z "$ac_dir" && ac_dir=.
  7793. if test -f $ac_dir/${ac_tool_prefix}file; then
  7794. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7795. if test -n "$file_magic_test_file"; then
  7796. case $deplibs_check_method in
  7797. "file_magic "*)
  7798. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7799. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7800. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7801. $EGREP "$file_magic_regex" > /dev/null; then
  7802. :
  7803. else
  7804. cat <<_LT_EOF 1>&2
  7805. *** Warning: the command libtool uses to detect shared libraries,
  7806. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7807. *** The result is that libtool may fail to recognize shared libraries
  7808. *** as such. This will affect the creation of libtool libraries that
  7809. *** depend on shared libraries, but programs linked with such libtool
  7810. *** libraries will work regardless of this problem. Nevertheless, you
  7811. *** may want to report the problem to your system manager and/or to
  7812. *** bug-libtool@gnu.org
  7813. _LT_EOF
  7814. fi ;;
  7815. esac
  7816. fi
  7817. break
  7818. fi
  7819. done
  7820. IFS="$lt_save_ifs"
  7821. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7822. ;;
  7823. esac
  7824. fi
  7825. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7826. if test -n "$MAGIC_CMD"; then
  7827. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7828. $as_echo "$MAGIC_CMD" >&6; }
  7829. else
  7830. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7831. $as_echo "no" >&6; }
  7832. fi
  7833. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7834. if test -n "$ac_tool_prefix"; then
  7835. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7836. $as_echo_n "checking for file... " >&6; }
  7837. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7838. $as_echo_n "(cached) " >&6
  7839. else
  7840. case $MAGIC_CMD in
  7841. [\\/*] | ?:[\\/]*)
  7842. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7843. ;;
  7844. *)
  7845. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7846. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7847. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7848. for ac_dir in $ac_dummy; do
  7849. IFS="$lt_save_ifs"
  7850. test -z "$ac_dir" && ac_dir=.
  7851. if test -f $ac_dir/file; then
  7852. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7853. if test -n "$file_magic_test_file"; then
  7854. case $deplibs_check_method in
  7855. "file_magic "*)
  7856. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7857. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7858. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7859. $EGREP "$file_magic_regex" > /dev/null; then
  7860. :
  7861. else
  7862. cat <<_LT_EOF 1>&2
  7863. *** Warning: the command libtool uses to detect shared libraries,
  7864. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7865. *** The result is that libtool may fail to recognize shared libraries
  7866. *** as such. This will affect the creation of libtool libraries that
  7867. *** depend on shared libraries, but programs linked with such libtool
  7868. *** libraries will work regardless of this problem. Nevertheless, you
  7869. *** may want to report the problem to your system manager and/or to
  7870. *** bug-libtool@gnu.org
  7871. _LT_EOF
  7872. fi ;;
  7873. esac
  7874. fi
  7875. break
  7876. fi
  7877. done
  7878. IFS="$lt_save_ifs"
  7879. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7880. ;;
  7881. esac
  7882. fi
  7883. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7884. if test -n "$MAGIC_CMD"; then
  7885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7886. $as_echo "$MAGIC_CMD" >&6; }
  7887. else
  7888. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7889. $as_echo "no" >&6; }
  7890. fi
  7891. else
  7892. MAGIC_CMD=:
  7893. fi
  7894. fi
  7895. fi
  7896. ;;
  7897. esac
  7898. # Use C for the default configuration in the libtool script
  7899. lt_save_CC="$CC"
  7900. ac_ext=c
  7901. ac_cpp='$CPP $CPPFLAGS'
  7902. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7903. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7904. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7905. # Source file extension for C test sources.
  7906. ac_ext=c
  7907. # Object file extension for compiled C test sources.
  7908. objext=o
  7909. objext=$objext
  7910. # Code to be used in simple compile tests
  7911. lt_simple_compile_test_code="int some_variable = 0;"
  7912. # Code to be used in simple link tests
  7913. lt_simple_link_test_code='int main(){return(0);}'
  7914. # If no C compiler was specified, use CC.
  7915. LTCC=${LTCC-"$CC"}
  7916. # If no C compiler flags were specified, use CFLAGS.
  7917. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7918. # Allow CC to be a program name with arguments.
  7919. compiler=$CC
  7920. # Save the default compiler, since it gets overwritten when the other
  7921. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7922. compiler_DEFAULT=$CC
  7923. # save warnings/boilerplate of simple test code
  7924. ac_outfile=conftest.$ac_objext
  7925. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7926. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7927. _lt_compiler_boilerplate=`cat conftest.err`
  7928. $RM conftest*
  7929. ac_outfile=conftest.$ac_objext
  7930. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7931. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7932. _lt_linker_boilerplate=`cat conftest.err`
  7933. $RM -r conftest*
  7934. ## CAVEAT EMPTOR:
  7935. ## There is no encapsulation within the following macros, do not change
  7936. ## the running order or otherwise move them around unless you know exactly
  7937. ## what you are doing...
  7938. if test -n "$compiler"; then
  7939. lt_prog_compiler_no_builtin_flag=
  7940. if test "$GCC" = yes; then
  7941. case $cc_basename in
  7942. nvcc*)
  7943. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7944. *)
  7945. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7946. esac
  7947. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7948. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7949. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7950. $as_echo_n "(cached) " >&6
  7951. else
  7952. lt_cv_prog_compiler_rtti_exceptions=no
  7953. ac_outfile=conftest.$ac_objext
  7954. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7955. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7956. # Insert the option either (1) after the last *FLAGS variable, or
  7957. # (2) before a word containing "conftest.", or (3) at the end.
  7958. # Note that $ac_compile itself does not contain backslashes and begins
  7959. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7960. # The option is referenced via a variable to avoid confusing sed.
  7961. lt_compile=`echo "$ac_compile" | $SED \
  7962. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7963. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7964. -e 's:$: $lt_compiler_flag:'`
  7965. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7966. (eval "$lt_compile" 2>conftest.err)
  7967. ac_status=$?
  7968. cat conftest.err >&5
  7969. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7970. if (exit $ac_status) && test -s "$ac_outfile"; then
  7971. # The compiler can only warn and ignore the option if not recognized
  7972. # So say no if there are warnings other than the usual output.
  7973. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7974. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7975. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7976. lt_cv_prog_compiler_rtti_exceptions=yes
  7977. fi
  7978. fi
  7979. $RM conftest*
  7980. fi
  7981. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7982. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7983. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7984. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7985. else
  7986. :
  7987. fi
  7988. fi
  7989. lt_prog_compiler_wl=
  7990. lt_prog_compiler_pic=
  7991. lt_prog_compiler_static=
  7992. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7993. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7994. if test "$GCC" = yes; then
  7995. lt_prog_compiler_wl='-Wl,'
  7996. lt_prog_compiler_static='-static'
  7997. case $host_os in
  7998. aix*)
  7999. # All AIX code is PIC.
  8000. if test "$host_cpu" = ia64; then
  8001. # AIX 5 now supports IA64 processor
  8002. lt_prog_compiler_static='-Bstatic'
  8003. fi
  8004. lt_prog_compiler_pic='-fPIC'
  8005. ;;
  8006. amigaos*)
  8007. case $host_cpu in
  8008. powerpc)
  8009. # see comment about AmigaOS4 .so support
  8010. lt_prog_compiler_pic='-fPIC'
  8011. ;;
  8012. m68k)
  8013. # FIXME: we need at least 68020 code to build shared libraries, but
  8014. # adding the `-m68020' flag to GCC prevents building anything better,
  8015. # like `-m68040'.
  8016. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  8017. ;;
  8018. esac
  8019. ;;
  8020. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  8021. # PIC is the default for these OSes.
  8022. ;;
  8023. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8024. # This hack is so that the source file can tell whether it is being
  8025. # built for inclusion in a dll (and should export symbols for example).
  8026. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  8027. # (--disable-auto-import) libraries
  8028. lt_prog_compiler_pic='-DDLL_EXPORT'
  8029. ;;
  8030. darwin* | rhapsody*)
  8031. # PIC is the default on this platform
  8032. # Common symbols not allowed in MH_DYLIB files
  8033. lt_prog_compiler_pic='-fno-common'
  8034. ;;
  8035. haiku*)
  8036. # PIC is the default for Haiku.
  8037. # The "-static" flag exists, but is broken.
  8038. lt_prog_compiler_static=
  8039. ;;
  8040. hpux*)
  8041. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  8042. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  8043. # sets the default TLS model and affects inlining.
  8044. case $host_cpu in
  8045. hppa*64*)
  8046. # +Z the default
  8047. ;;
  8048. *)
  8049. lt_prog_compiler_pic='-fPIC'
  8050. ;;
  8051. esac
  8052. ;;
  8053. interix[3-9]*)
  8054. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  8055. # Instead, we relocate shared libraries at runtime.
  8056. ;;
  8057. msdosdjgpp*)
  8058. # Just because we use GCC doesn't mean we suddenly get shared libraries
  8059. # on systems that don't support them.
  8060. lt_prog_compiler_can_build_shared=no
  8061. enable_shared=no
  8062. ;;
  8063. *nto* | *qnx*)
  8064. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8065. # it will coredump.
  8066. lt_prog_compiler_pic='-fPIC -shared'
  8067. ;;
  8068. sysv4*MP*)
  8069. if test -d /usr/nec; then
  8070. lt_prog_compiler_pic=-Kconform_pic
  8071. fi
  8072. ;;
  8073. *)
  8074. lt_prog_compiler_pic='-fPIC'
  8075. ;;
  8076. esac
  8077. case $cc_basename in
  8078. nvcc*) # Cuda Compiler Driver 2.2
  8079. lt_prog_compiler_wl='-Xlinker '
  8080. lt_prog_compiler_pic='-Xcompiler -fPIC'
  8081. ;;
  8082. esac
  8083. else
  8084. # PORTME Check for flag to pass linker flags through the system compiler.
  8085. case $host_os in
  8086. aix*)
  8087. lt_prog_compiler_wl='-Wl,'
  8088. if test "$host_cpu" = ia64; then
  8089. # AIX 5 now supports IA64 processor
  8090. lt_prog_compiler_static='-Bstatic'
  8091. else
  8092. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  8093. fi
  8094. ;;
  8095. mingw* | cygwin* | pw32* | os2* | cegcc*)
  8096. # This hack is so that the source file can tell whether it is being
  8097. # built for inclusion in a dll (and should export symbols for example).
  8098. lt_prog_compiler_pic='-DDLL_EXPORT'
  8099. ;;
  8100. hpux9* | hpux10* | hpux11*)
  8101. lt_prog_compiler_wl='-Wl,'
  8102. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  8103. # not for PA HP-UX.
  8104. case $host_cpu in
  8105. hppa*64*|ia64*)
  8106. # +Z the default
  8107. ;;
  8108. *)
  8109. lt_prog_compiler_pic='+Z'
  8110. ;;
  8111. esac
  8112. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  8113. lt_prog_compiler_static='${wl}-a ${wl}archive'
  8114. ;;
  8115. irix5* | irix6* | nonstopux*)
  8116. lt_prog_compiler_wl='-Wl,'
  8117. # PIC (with -KPIC) is the default.
  8118. lt_prog_compiler_static='-non_shared'
  8119. ;;
  8120. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  8121. case $cc_basename in
  8122. # old Intel for x86_64 which still supported -KPIC.
  8123. ecc*)
  8124. lt_prog_compiler_wl='-Wl,'
  8125. lt_prog_compiler_pic='-KPIC'
  8126. lt_prog_compiler_static='-static'
  8127. ;;
  8128. # icc used to be incompatible with GCC.
  8129. # ICC 10 doesn't accept -KPIC any more.
  8130. icc* | ifort*)
  8131. lt_prog_compiler_wl='-Wl,'
  8132. lt_prog_compiler_pic='-fPIC'
  8133. lt_prog_compiler_static='-static'
  8134. ;;
  8135. # Lahey Fortran 8.1.
  8136. lf95*)
  8137. lt_prog_compiler_wl='-Wl,'
  8138. lt_prog_compiler_pic='--shared'
  8139. lt_prog_compiler_static='--static'
  8140. ;;
  8141. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  8142. # Portland Group compilers (*not* the Pentium gcc compiler,
  8143. # which looks to be a dead project)
  8144. lt_prog_compiler_wl='-Wl,'
  8145. lt_prog_compiler_pic='-fpic'
  8146. lt_prog_compiler_static='-Bstatic'
  8147. ;;
  8148. ccc*)
  8149. lt_prog_compiler_wl='-Wl,'
  8150. # All Alpha code is PIC.
  8151. lt_prog_compiler_static='-non_shared'
  8152. ;;
  8153. xl* | bgxl* | bgf* | mpixl*)
  8154. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  8155. lt_prog_compiler_wl='-Wl,'
  8156. lt_prog_compiler_pic='-qpic'
  8157. lt_prog_compiler_static='-qstaticlink'
  8158. ;;
  8159. *)
  8160. case `$CC -V 2>&1 | sed 5q` in
  8161. *Sun\ F* | *Sun*Fortran*)
  8162. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  8163. lt_prog_compiler_pic='-KPIC'
  8164. lt_prog_compiler_static='-Bstatic'
  8165. lt_prog_compiler_wl=''
  8166. ;;
  8167. *Sun\ C*)
  8168. # Sun C 5.9
  8169. lt_prog_compiler_pic='-KPIC'
  8170. lt_prog_compiler_static='-Bstatic'
  8171. lt_prog_compiler_wl='-Wl,'
  8172. ;;
  8173. esac
  8174. ;;
  8175. esac
  8176. ;;
  8177. newsos6)
  8178. lt_prog_compiler_pic='-KPIC'
  8179. lt_prog_compiler_static='-Bstatic'
  8180. ;;
  8181. *nto* | *qnx*)
  8182. # QNX uses GNU C++, but need to define -shared option too, otherwise
  8183. # it will coredump.
  8184. lt_prog_compiler_pic='-fPIC -shared'
  8185. ;;
  8186. osf3* | osf4* | osf5*)
  8187. lt_prog_compiler_wl='-Wl,'
  8188. # All OSF/1 code is PIC.
  8189. lt_prog_compiler_static='-non_shared'
  8190. ;;
  8191. rdos*)
  8192. lt_prog_compiler_static='-non_shared'
  8193. ;;
  8194. solaris*)
  8195. lt_prog_compiler_pic='-KPIC'
  8196. lt_prog_compiler_static='-Bstatic'
  8197. case $cc_basename in
  8198. f77* | f90* | f95*)
  8199. lt_prog_compiler_wl='-Qoption ld ';;
  8200. *)
  8201. lt_prog_compiler_wl='-Wl,';;
  8202. esac
  8203. ;;
  8204. sunos4*)
  8205. lt_prog_compiler_wl='-Qoption ld '
  8206. lt_prog_compiler_pic='-PIC'
  8207. lt_prog_compiler_static='-Bstatic'
  8208. ;;
  8209. sysv4 | sysv4.2uw2* | sysv4.3*)
  8210. lt_prog_compiler_wl='-Wl,'
  8211. lt_prog_compiler_pic='-KPIC'
  8212. lt_prog_compiler_static='-Bstatic'
  8213. ;;
  8214. sysv4*MP*)
  8215. if test -d /usr/nec ;then
  8216. lt_prog_compiler_pic='-Kconform_pic'
  8217. lt_prog_compiler_static='-Bstatic'
  8218. fi
  8219. ;;
  8220. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  8221. lt_prog_compiler_wl='-Wl,'
  8222. lt_prog_compiler_pic='-KPIC'
  8223. lt_prog_compiler_static='-Bstatic'
  8224. ;;
  8225. unicos*)
  8226. lt_prog_compiler_wl='-Wl,'
  8227. lt_prog_compiler_can_build_shared=no
  8228. ;;
  8229. uts4*)
  8230. lt_prog_compiler_pic='-pic'
  8231. lt_prog_compiler_static='-Bstatic'
  8232. ;;
  8233. *)
  8234. lt_prog_compiler_can_build_shared=no
  8235. ;;
  8236. esac
  8237. fi
  8238. case $host_os in
  8239. # For platforms which do not support PIC, -DPIC is meaningless:
  8240. *djgpp*)
  8241. lt_prog_compiler_pic=
  8242. ;;
  8243. *)
  8244. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  8245. ;;
  8246. esac
  8247. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5
  8248. $as_echo "$lt_prog_compiler_pic" >&6; }
  8249. #
  8250. # Check to make sure the PIC flag actually works.
  8251. #
  8252. if test -n "$lt_prog_compiler_pic"; then
  8253. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  8254. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  8255. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  8256. $as_echo_n "(cached) " >&6
  8257. else
  8258. lt_cv_prog_compiler_pic_works=no
  8259. ac_outfile=conftest.$ac_objext
  8260. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8261. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  8262. # Insert the option either (1) after the last *FLAGS variable, or
  8263. # (2) before a word containing "conftest.", or (3) at the end.
  8264. # Note that $ac_compile itself does not contain backslashes and begins
  8265. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8266. # The option is referenced via a variable to avoid confusing sed.
  8267. lt_compile=`echo "$ac_compile" | $SED \
  8268. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8269. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8270. -e 's:$: $lt_compiler_flag:'`
  8271. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8272. (eval "$lt_compile" 2>conftest.err)
  8273. ac_status=$?
  8274. cat conftest.err >&5
  8275. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8276. if (exit $ac_status) && test -s "$ac_outfile"; then
  8277. # The compiler can only warn and ignore the option if not recognized
  8278. # So say no if there are warnings other than the usual output.
  8279. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  8280. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8281. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  8282. lt_cv_prog_compiler_pic_works=yes
  8283. fi
  8284. fi
  8285. $RM conftest*
  8286. fi
  8287. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  8288. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  8289. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  8290. case $lt_prog_compiler_pic in
  8291. "" | " "*) ;;
  8292. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  8293. esac
  8294. else
  8295. lt_prog_compiler_pic=
  8296. lt_prog_compiler_can_build_shared=no
  8297. fi
  8298. fi
  8299. #
  8300. # Check to make sure the static flag actually works.
  8301. #
  8302. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  8303. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  8304. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  8305. if ${lt_cv_prog_compiler_static_works+:} false; then :
  8306. $as_echo_n "(cached) " >&6
  8307. else
  8308. lt_cv_prog_compiler_static_works=no
  8309. save_LDFLAGS="$LDFLAGS"
  8310. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  8311. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8312. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8313. # The linker can only warn and ignore the option if not recognized
  8314. # So say no if there are warnings
  8315. if test -s conftest.err; then
  8316. # Append any errors to the config.log.
  8317. cat conftest.err 1>&5
  8318. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8319. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8320. if diff conftest.exp conftest.er2 >/dev/null; then
  8321. lt_cv_prog_compiler_static_works=yes
  8322. fi
  8323. else
  8324. lt_cv_prog_compiler_static_works=yes
  8325. fi
  8326. fi
  8327. $RM -r conftest*
  8328. LDFLAGS="$save_LDFLAGS"
  8329. fi
  8330. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  8331. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  8332. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  8333. :
  8334. else
  8335. lt_prog_compiler_static=
  8336. fi
  8337. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8338. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8339. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8340. $as_echo_n "(cached) " >&6
  8341. else
  8342. lt_cv_prog_compiler_c_o=no
  8343. $RM -r conftest 2>/dev/null
  8344. mkdir conftest
  8345. cd conftest
  8346. mkdir out
  8347. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8348. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8349. # Insert the option either (1) after the last *FLAGS variable, or
  8350. # (2) before a word containing "conftest.", or (3) at the end.
  8351. # Note that $ac_compile itself does not contain backslashes and begins
  8352. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8353. lt_compile=`echo "$ac_compile" | $SED \
  8354. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8355. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8356. -e 's:$: $lt_compiler_flag:'`
  8357. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8358. (eval "$lt_compile" 2>out/conftest.err)
  8359. ac_status=$?
  8360. cat out/conftest.err >&5
  8361. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8362. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8363. then
  8364. # The compiler can only warn and ignore the option if not recognized
  8365. # So say no if there are warnings
  8366. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8367. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8368. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8369. lt_cv_prog_compiler_c_o=yes
  8370. fi
  8371. fi
  8372. chmod u+w . 2>&5
  8373. $RM conftest*
  8374. # SGI C++ compiler will create directory out/ii_files/ for
  8375. # template instantiation
  8376. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8377. $RM out/* && rmdir out
  8378. cd ..
  8379. $RM -r conftest
  8380. $RM conftest*
  8381. fi
  8382. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8383. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8384. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  8385. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  8386. if ${lt_cv_prog_compiler_c_o+:} false; then :
  8387. $as_echo_n "(cached) " >&6
  8388. else
  8389. lt_cv_prog_compiler_c_o=no
  8390. $RM -r conftest 2>/dev/null
  8391. mkdir conftest
  8392. cd conftest
  8393. mkdir out
  8394. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  8395. lt_compiler_flag="-o out/conftest2.$ac_objext"
  8396. # Insert the option either (1) after the last *FLAGS variable, or
  8397. # (2) before a word containing "conftest.", or (3) at the end.
  8398. # Note that $ac_compile itself does not contain backslashes and begins
  8399. # with a dollar sign (not a hyphen), so the echo should work correctly.
  8400. lt_compile=`echo "$ac_compile" | $SED \
  8401. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  8402. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  8403. -e 's:$: $lt_compiler_flag:'`
  8404. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  8405. (eval "$lt_compile" 2>out/conftest.err)
  8406. ac_status=$?
  8407. cat out/conftest.err >&5
  8408. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  8409. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  8410. then
  8411. # The compiler can only warn and ignore the option if not recognized
  8412. # So say no if there are warnings
  8413. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  8414. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  8415. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  8416. lt_cv_prog_compiler_c_o=yes
  8417. fi
  8418. fi
  8419. chmod u+w . 2>&5
  8420. $RM conftest*
  8421. # SGI C++ compiler will create directory out/ii_files/ for
  8422. # template instantiation
  8423. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8424. $RM out/* && rmdir out
  8425. cd ..
  8426. $RM -r conftest
  8427. $RM conftest*
  8428. fi
  8429. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8430. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8431. hard_links="nottested"
  8432. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8433. # do not overwrite the value of need_locks provided by the user
  8434. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8435. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8436. hard_links=yes
  8437. $RM conftest*
  8438. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8439. touch conftest.a
  8440. ln conftest.a conftest.b 2>&5 || hard_links=no
  8441. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8442. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8443. $as_echo "$hard_links" >&6; }
  8444. if test "$hard_links" = no; then
  8445. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8446. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8447. need_locks=warn
  8448. fi
  8449. else
  8450. need_locks=no
  8451. fi
  8452. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8453. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8454. runpath_var=
  8455. allow_undefined_flag=
  8456. always_export_symbols=no
  8457. archive_cmds=
  8458. archive_expsym_cmds=
  8459. compiler_needs_object=no
  8460. enable_shared_with_static_runtimes=no
  8461. export_dynamic_flag_spec=
  8462. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8463. hardcode_automatic=no
  8464. hardcode_direct=no
  8465. hardcode_direct_absolute=no
  8466. hardcode_libdir_flag_spec=
  8467. hardcode_libdir_flag_spec_ld=
  8468. hardcode_libdir_separator=
  8469. hardcode_minus_L=no
  8470. hardcode_shlibpath_var=unsupported
  8471. inherit_rpath=no
  8472. link_all_deplibs=unknown
  8473. module_cmds=
  8474. module_expsym_cmds=
  8475. old_archive_from_new_cmds=
  8476. old_archive_from_expsyms_cmds=
  8477. thread_safe_flag_spec=
  8478. whole_archive_flag_spec=
  8479. # include_expsyms should be a list of space-separated symbols to be *always*
  8480. # included in the symbol list
  8481. include_expsyms=
  8482. # exclude_expsyms can be an extended regexp of symbols to exclude
  8483. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8484. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8485. # as well as any symbol that contains `d'.
  8486. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8487. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8488. # platforms (ab)use it in PIC code, but their linkers get confused if
  8489. # the symbol is explicitly referenced. Since portable code cannot
  8490. # rely on this symbol name, it's probably fine to never include it in
  8491. # preloaded symbol tables.
  8492. # Exclude shared library initialization/finalization symbols.
  8493. extract_expsyms_cmds=
  8494. case $host_os in
  8495. cygwin* | mingw* | pw32* | cegcc*)
  8496. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8497. # When not using gcc, we currently assume that we are using
  8498. # Microsoft Visual C++.
  8499. if test "$GCC" != yes; then
  8500. with_gnu_ld=no
  8501. fi
  8502. ;;
  8503. interix*)
  8504. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8505. with_gnu_ld=yes
  8506. ;;
  8507. openbsd*)
  8508. with_gnu_ld=no
  8509. ;;
  8510. esac
  8511. ld_shlibs=yes
  8512. # On some targets, GNU ld is compatible enough with the native linker
  8513. # that we're better off using the native interface for both.
  8514. lt_use_gnu_ld_interface=no
  8515. if test "$with_gnu_ld" = yes; then
  8516. case $host_os in
  8517. aix*)
  8518. # The AIX port of GNU ld has always aspired to compatibility
  8519. # with the native linker. However, as the warning in the GNU ld
  8520. # block says, versions before 2.19.5* couldn't really create working
  8521. # shared libraries, regardless of the interface used.
  8522. case `$LD -v 2>&1` in
  8523. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8524. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8525. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8526. *)
  8527. lt_use_gnu_ld_interface=yes
  8528. ;;
  8529. esac
  8530. ;;
  8531. *)
  8532. lt_use_gnu_ld_interface=yes
  8533. ;;
  8534. esac
  8535. fi
  8536. if test "$lt_use_gnu_ld_interface" = yes; then
  8537. # If archive_cmds runs LD, not CC, wlarc should be empty
  8538. wlarc='${wl}'
  8539. # Set some defaults for GNU ld with shared library support. These
  8540. # are reset later if shared libraries are not supported. Putting them
  8541. # here allows them to be overridden if necessary.
  8542. runpath_var=LD_RUN_PATH
  8543. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8544. export_dynamic_flag_spec='${wl}--export-dynamic'
  8545. # ancient GNU ld didn't support --whole-archive et. al.
  8546. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8547. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8548. else
  8549. whole_archive_flag_spec=
  8550. fi
  8551. supports_anon_versioning=no
  8552. case `$LD -v 2>&1` in
  8553. *GNU\ gold*) supports_anon_versioning=yes ;;
  8554. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8555. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8556. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8557. *\ 2.11.*) ;; # other 2.11 versions
  8558. *) supports_anon_versioning=yes ;;
  8559. esac
  8560. # See if GNU ld supports shared libraries.
  8561. case $host_os in
  8562. aix[3-9]*)
  8563. # On AIX/PPC, the GNU linker is very broken
  8564. if test "$host_cpu" != ia64; then
  8565. ld_shlibs=no
  8566. cat <<_LT_EOF 1>&2
  8567. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8568. *** to be unable to reliably create shared libraries on AIX.
  8569. *** Therefore, libtool is disabling shared libraries support. If you
  8570. *** really care for shared libraries, you may want to install binutils
  8571. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8572. *** You will then need to restart the configuration process.
  8573. _LT_EOF
  8574. fi
  8575. ;;
  8576. amigaos*)
  8577. case $host_cpu in
  8578. powerpc)
  8579. # see comment about AmigaOS4 .so support
  8580. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8581. archive_expsym_cmds=''
  8582. ;;
  8583. m68k)
  8584. 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)'
  8585. hardcode_libdir_flag_spec='-L$libdir'
  8586. hardcode_minus_L=yes
  8587. ;;
  8588. esac
  8589. ;;
  8590. beos*)
  8591. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8592. allow_undefined_flag=unsupported
  8593. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8594. # support --undefined. This deserves some investigation. FIXME
  8595. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8596. else
  8597. ld_shlibs=no
  8598. fi
  8599. ;;
  8600. cygwin* | mingw* | pw32* | cegcc*)
  8601. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8602. # as there is no search path for DLLs.
  8603. hardcode_libdir_flag_spec='-L$libdir'
  8604. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8605. allow_undefined_flag=unsupported
  8606. always_export_symbols=no
  8607. enable_shared_with_static_runtimes=yes
  8608. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8609. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8610. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8611. # If the export-symbols file already is a .def file (1st line
  8612. # is EXPORTS), use it as is; otherwise, prepend...
  8613. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8614. cp $export_symbols $output_objdir/$soname.def;
  8615. else
  8616. echo EXPORTS > $output_objdir/$soname.def;
  8617. cat $export_symbols >> $output_objdir/$soname.def;
  8618. fi~
  8619. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8620. else
  8621. ld_shlibs=no
  8622. fi
  8623. ;;
  8624. haiku*)
  8625. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8626. link_all_deplibs=yes
  8627. ;;
  8628. interix[3-9]*)
  8629. hardcode_direct=no
  8630. hardcode_shlibpath_var=no
  8631. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8632. export_dynamic_flag_spec='${wl}-E'
  8633. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8634. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8635. # default) and relocated if they conflict, which is a slow very memory
  8636. # consuming and fragmenting process. To avoid this, we pick a random,
  8637. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8638. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8639. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8640. 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'
  8641. ;;
  8642. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu | uclinuxfdpiceabi)
  8643. tmp_diet=no
  8644. if test "$host_os" = linux-dietlibc; then
  8645. case $cc_basename in
  8646. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8647. esac
  8648. fi
  8649. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8650. && test "$tmp_diet" = no
  8651. then
  8652. tmp_addflag=' $pic_flag'
  8653. tmp_sharedflag='-shared'
  8654. case $cc_basename,$host_cpu in
  8655. pgcc*) # Portland Group C compiler
  8656. 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'
  8657. tmp_addflag=' $pic_flag'
  8658. ;;
  8659. pgf77* | pgf90* | pgf95* | pgfortran*)
  8660. # Portland Group f77 and f90 compilers
  8661. 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'
  8662. tmp_addflag=' $pic_flag -Mnomain' ;;
  8663. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8664. tmp_addflag=' -i_dynamic' ;;
  8665. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8666. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8667. ifc* | ifort*) # Intel Fortran compiler
  8668. tmp_addflag=' -nofor_main' ;;
  8669. lf95*) # Lahey Fortran 8.1
  8670. whole_archive_flag_spec=
  8671. tmp_sharedflag='--shared' ;;
  8672. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8673. tmp_sharedflag='-qmkshrobj'
  8674. tmp_addflag= ;;
  8675. nvcc*) # Cuda Compiler Driver 2.2
  8676. 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'
  8677. compiler_needs_object=yes
  8678. ;;
  8679. esac
  8680. case `$CC -V 2>&1 | sed 5q` in
  8681. *Sun\ C*) # Sun C 5.9
  8682. 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'
  8683. compiler_needs_object=yes
  8684. tmp_sharedflag='-G' ;;
  8685. *Sun\ F*) # Sun Fortran 8.3
  8686. tmp_sharedflag='-G' ;;
  8687. esac
  8688. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8689. if test "x$supports_anon_versioning" = xyes; then
  8690. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8691. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8692. echo "local: *; };" >> $output_objdir/$libname.ver~
  8693. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8694. fi
  8695. case $cc_basename in
  8696. xlf* | bgf* | bgxlf* | mpixlf*)
  8697. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8698. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8699. hardcode_libdir_flag_spec=
  8700. hardcode_libdir_flag_spec_ld='-rpath $libdir'
  8701. archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib'
  8702. if test "x$supports_anon_versioning" = xyes; then
  8703. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8704. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8705. echo "local: *; };" >> $output_objdir/$libname.ver~
  8706. $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8707. fi
  8708. ;;
  8709. esac
  8710. else
  8711. ld_shlibs=no
  8712. fi
  8713. ;;
  8714. netbsd*)
  8715. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8716. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8717. wlarc=
  8718. else
  8719. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8720. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8721. fi
  8722. ;;
  8723. solaris*)
  8724. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8725. ld_shlibs=no
  8726. cat <<_LT_EOF 1>&2
  8727. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8728. *** create shared libraries on Solaris systems. Therefore, libtool
  8729. *** is disabling shared libraries support. We urge you to upgrade GNU
  8730. *** binutils to release 2.9.1 or newer. Another option is to modify
  8731. *** your PATH or compiler configuration so that the native linker is
  8732. *** used, and then restart.
  8733. _LT_EOF
  8734. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8735. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8736. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8737. else
  8738. ld_shlibs=no
  8739. fi
  8740. ;;
  8741. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8742. case `$LD -v 2>&1` in
  8743. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8744. ld_shlibs=no
  8745. cat <<_LT_EOF 1>&2
  8746. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8747. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8748. *** is disabling shared libraries support. We urge you to upgrade GNU
  8749. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8750. *** your PATH or compiler configuration so that the native linker is
  8751. *** used, and then restart.
  8752. _LT_EOF
  8753. ;;
  8754. *)
  8755. # For security reasons, it is highly recommended that you always
  8756. # use absolute paths for naming shared libraries, and exclude the
  8757. # DT_RUNPATH tag from executables and libraries. But doing so
  8758. # requires that you compile everything twice, which is a pain.
  8759. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8760. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8761. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8762. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8763. else
  8764. ld_shlibs=no
  8765. fi
  8766. ;;
  8767. esac
  8768. ;;
  8769. sunos4*)
  8770. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8771. wlarc=
  8772. hardcode_direct=yes
  8773. hardcode_shlibpath_var=no
  8774. ;;
  8775. *)
  8776. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8777. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8778. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8779. else
  8780. ld_shlibs=no
  8781. fi
  8782. ;;
  8783. esac
  8784. if test "$ld_shlibs" = no; then
  8785. runpath_var=
  8786. hardcode_libdir_flag_spec=
  8787. export_dynamic_flag_spec=
  8788. whole_archive_flag_spec=
  8789. fi
  8790. else
  8791. # PORTME fill in a description of your system's linker (not GNU ld)
  8792. case $host_os in
  8793. aix3*)
  8794. allow_undefined_flag=unsupported
  8795. always_export_symbols=yes
  8796. 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'
  8797. # Note: this linker hardcodes the directories in LIBPATH if there
  8798. # are no directories specified by -L.
  8799. hardcode_minus_L=yes
  8800. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8801. # Neither direct hardcoding nor static linking is supported with a
  8802. # broken collect2.
  8803. hardcode_direct=unsupported
  8804. fi
  8805. ;;
  8806. aix[4-9]*)
  8807. if test "$host_cpu" = ia64; then
  8808. # On IA64, the linker does run time linking by default, so we don't
  8809. # have to do anything special.
  8810. aix_use_runtimelinking=no
  8811. exp_sym_flag='-Bexport'
  8812. no_entry_flag=""
  8813. else
  8814. # If we're using GNU nm, then we don't want the "-C" option.
  8815. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8816. # Also, AIX nm treats weak defined symbols like other global
  8817. # defined symbols, whereas GNU nm marks them as "W".
  8818. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8819. 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'
  8820. else
  8821. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "L")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8822. fi
  8823. aix_use_runtimelinking=no
  8824. # Test if we are trying to use run time linking or normal
  8825. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8826. # need to do runtime linking.
  8827. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8828. for ld_flag in $LDFLAGS; do
  8829. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8830. aix_use_runtimelinking=yes
  8831. break
  8832. fi
  8833. done
  8834. ;;
  8835. esac
  8836. exp_sym_flag='-bexport'
  8837. no_entry_flag='-bnoentry'
  8838. fi
  8839. # When large executables or shared objects are built, AIX ld can
  8840. # have problems creating the table of contents. If linking a library
  8841. # or program results in "error TOC overflow" add -mminimal-toc to
  8842. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8843. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8844. archive_cmds=''
  8845. hardcode_direct=yes
  8846. hardcode_direct_absolute=yes
  8847. hardcode_libdir_separator=':'
  8848. link_all_deplibs=yes
  8849. file_list_spec='${wl}-f,'
  8850. if test "$GCC" = yes; then
  8851. case $host_os in aix4.[012]|aix4.[012].*)
  8852. # We only want to do this on AIX 4.2 and lower, the check
  8853. # below for broken collect2 doesn't work under 4.3+
  8854. collect2name=`${CC} -print-prog-name=collect2`
  8855. if test -f "$collect2name" &&
  8856. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8857. then
  8858. # We have reworked collect2
  8859. :
  8860. else
  8861. # We have old collect2
  8862. hardcode_direct=unsupported
  8863. # It fails to find uninstalled libraries when the uninstalled
  8864. # path is not listed in the libpath. Setting hardcode_minus_L
  8865. # to unsupported forces relinking
  8866. hardcode_minus_L=yes
  8867. hardcode_libdir_flag_spec='-L$libdir'
  8868. hardcode_libdir_separator=
  8869. fi
  8870. ;;
  8871. esac
  8872. shared_flag='-shared'
  8873. if test "$aix_use_runtimelinking" = yes; then
  8874. shared_flag="$shared_flag "'${wl}-G'
  8875. fi
  8876. else
  8877. # not using gcc
  8878. if test "$host_cpu" = ia64; then
  8879. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8880. # chokes on -Wl,-G. The following line is correct:
  8881. shared_flag='-G'
  8882. else
  8883. if test "$aix_use_runtimelinking" = yes; then
  8884. shared_flag='${wl}-G'
  8885. else
  8886. shared_flag='${wl}-bM:SRE'
  8887. fi
  8888. fi
  8889. fi
  8890. export_dynamic_flag_spec='${wl}-bexpall'
  8891. # It seems that -bexpall does not export symbols beginning with
  8892. # underscore (_), so it is better to generate a list of symbols to export.
  8893. always_export_symbols=yes
  8894. if test "$aix_use_runtimelinking" = yes; then
  8895. # Warning - without using the other runtime loading flags (-brtl),
  8896. # -berok will link without error, but may produce a broken library.
  8897. allow_undefined_flag='-berok'
  8898. # Determine the default libpath from the value encoded in an
  8899. # empty executable.
  8900. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8901. /* end confdefs.h. */
  8902. int
  8903. main ()
  8904. {
  8905. ;
  8906. return 0;
  8907. }
  8908. _ACEOF
  8909. if ac_fn_c_try_link "$LINENO"; then :
  8910. lt_aix_libpath_sed='
  8911. /Import File Strings/,/^$/ {
  8912. /^0/ {
  8913. s/^0 *\(.*\)$/\1/
  8914. p
  8915. }
  8916. }'
  8917. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8918. # Check for a 64-bit object if we didn't find anything.
  8919. if test -z "$aix_libpath"; then
  8920. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8921. fi
  8922. fi
  8923. rm -f core conftest.err conftest.$ac_objext \
  8924. conftest$ac_exeext conftest.$ac_ext
  8925. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8926. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8927. 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"
  8928. else
  8929. if test "$host_cpu" = ia64; then
  8930. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8931. allow_undefined_flag="-z nodefs"
  8932. 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"
  8933. else
  8934. # Determine the default libpath from the value encoded in an
  8935. # empty executable.
  8936. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8937. /* end confdefs.h. */
  8938. int
  8939. main ()
  8940. {
  8941. ;
  8942. return 0;
  8943. }
  8944. _ACEOF
  8945. if ac_fn_c_try_link "$LINENO"; then :
  8946. lt_aix_libpath_sed='
  8947. /Import File Strings/,/^$/ {
  8948. /^0/ {
  8949. s/^0 *\(.*\)$/\1/
  8950. p
  8951. }
  8952. }'
  8953. aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8954. # Check for a 64-bit object if we didn't find anything.
  8955. if test -z "$aix_libpath"; then
  8956. aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8957. fi
  8958. fi
  8959. rm -f core conftest.err conftest.$ac_objext \
  8960. conftest$ac_exeext conftest.$ac_ext
  8961. if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi
  8962. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8963. # Warning - without using the other run time loading flags,
  8964. # -berok will link without error, but may produce a broken library.
  8965. no_undefined_flag=' ${wl}-bernotok'
  8966. allow_undefined_flag=' ${wl}-berok'
  8967. if test "$with_gnu_ld" = yes; then
  8968. # We only use this code for GNU lds that support --whole-archive.
  8969. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8970. else
  8971. # Exported symbols can be pulled into shared objects from archives
  8972. whole_archive_flag_spec='$convenience'
  8973. fi
  8974. archive_cmds_need_lc=yes
  8975. # This is similar to how AIX traditionally builds its shared libraries.
  8976. 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'
  8977. fi
  8978. fi
  8979. ;;
  8980. amigaos*)
  8981. case $host_cpu in
  8982. powerpc)
  8983. # see comment about AmigaOS4 .so support
  8984. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8985. archive_expsym_cmds=''
  8986. ;;
  8987. m68k)
  8988. 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)'
  8989. hardcode_libdir_flag_spec='-L$libdir'
  8990. hardcode_minus_L=yes
  8991. ;;
  8992. esac
  8993. ;;
  8994. bsdi[45]*)
  8995. export_dynamic_flag_spec=-rdynamic
  8996. ;;
  8997. cygwin* | mingw* | pw32* | cegcc*)
  8998. # When not using gcc, we currently assume that we are using
  8999. # Microsoft Visual C++.
  9000. # hardcode_libdir_flag_spec is actually meaningless, as there is
  9001. # no search path for DLLs.
  9002. hardcode_libdir_flag_spec=' '
  9003. allow_undefined_flag=unsupported
  9004. # Tell ltmain to make .lib files, not .a files.
  9005. libext=lib
  9006. # Tell ltmain to make .dll files, not .so files.
  9007. shrext_cmds=".dll"
  9008. # FIXME: Setting linknames here is a bad hack.
  9009. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  9010. # The linker will automatically build a .lib file if we build a DLL.
  9011. old_archive_from_new_cmds='true'
  9012. # FIXME: Should let the user specify the lib program.
  9013. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  9014. fix_srcfile_path='`cygpath -w "$srcfile"`'
  9015. enable_shared_with_static_runtimes=yes
  9016. ;;
  9017. darwin* | rhapsody*)
  9018. archive_cmds_need_lc=no
  9019. hardcode_direct=no
  9020. hardcode_automatic=yes
  9021. hardcode_shlibpath_var=unsupported
  9022. if test "$lt_cv_ld_force_load" = "yes"; then
  9023. 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\"`'
  9024. else
  9025. whole_archive_flag_spec=''
  9026. fi
  9027. link_all_deplibs=yes
  9028. allow_undefined_flag="$_lt_dar_allow_undefined"
  9029. case $cc_basename in
  9030. ifort*) _lt_dar_can_shared=yes ;;
  9031. *) _lt_dar_can_shared=$GCC ;;
  9032. esac
  9033. if test "$_lt_dar_can_shared" = "yes"; then
  9034. output_verbose_link_cmd=func_echo_all
  9035. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  9036. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  9037. 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}"
  9038. 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}"
  9039. else
  9040. ld_shlibs=no
  9041. fi
  9042. ;;
  9043. dgux*)
  9044. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9045. hardcode_libdir_flag_spec='-L$libdir'
  9046. hardcode_shlibpath_var=no
  9047. ;;
  9048. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  9049. # support. Future versions do this automatically, but an explicit c++rt0.o
  9050. # does not break anything, and helps significantly (at the cost of a little
  9051. # extra space).
  9052. freebsd2.2*)
  9053. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  9054. hardcode_libdir_flag_spec='-R$libdir'
  9055. hardcode_direct=yes
  9056. hardcode_shlibpath_var=no
  9057. ;;
  9058. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  9059. freebsd2.*)
  9060. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9061. hardcode_direct=yes
  9062. hardcode_minus_L=yes
  9063. hardcode_shlibpath_var=no
  9064. ;;
  9065. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  9066. freebsd* | dragonfly*)
  9067. archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags'
  9068. hardcode_libdir_flag_spec='-R$libdir'
  9069. hardcode_direct=yes
  9070. hardcode_shlibpath_var=no
  9071. ;;
  9072. hpux9*)
  9073. if test "$GCC" = yes; then
  9074. archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  9075. else
  9076. 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'
  9077. fi
  9078. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9079. hardcode_libdir_separator=:
  9080. hardcode_direct=yes
  9081. # hardcode_minus_L: Not really in the search PATH,
  9082. # but as the default location of the library.
  9083. hardcode_minus_L=yes
  9084. export_dynamic_flag_spec='${wl}-E'
  9085. ;;
  9086. hpux10*)
  9087. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9088. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9089. else
  9090. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9091. fi
  9092. if test "$with_gnu_ld" = no; then
  9093. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9094. hardcode_libdir_flag_spec_ld='+b $libdir'
  9095. hardcode_libdir_separator=:
  9096. hardcode_direct=yes
  9097. hardcode_direct_absolute=yes
  9098. export_dynamic_flag_spec='${wl}-E'
  9099. # hardcode_minus_L: Not really in the search PATH,
  9100. # but as the default location of the library.
  9101. hardcode_minus_L=yes
  9102. fi
  9103. ;;
  9104. hpux11*)
  9105. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  9106. case $host_cpu in
  9107. hppa*64*)
  9108. archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9109. ;;
  9110. ia64*)
  9111. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9112. ;;
  9113. *)
  9114. archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9115. ;;
  9116. esac
  9117. else
  9118. case $host_cpu in
  9119. hppa*64*)
  9120. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9121. ;;
  9122. ia64*)
  9123. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  9124. ;;
  9125. *)
  9126. # Older versions of the 11.00 compiler do not understand -b yet
  9127. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  9128. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  9129. $as_echo_n "checking if $CC understands -b... " >&6; }
  9130. if ${lt_cv_prog_compiler__b+:} false; then :
  9131. $as_echo_n "(cached) " >&6
  9132. else
  9133. lt_cv_prog_compiler__b=no
  9134. save_LDFLAGS="$LDFLAGS"
  9135. LDFLAGS="$LDFLAGS -b"
  9136. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  9137. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  9138. # The linker can only warn and ignore the option if not recognized
  9139. # So say no if there are warnings
  9140. if test -s conftest.err; then
  9141. # Append any errors to the config.log.
  9142. cat conftest.err 1>&5
  9143. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  9144. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  9145. if diff conftest.exp conftest.er2 >/dev/null; then
  9146. lt_cv_prog_compiler__b=yes
  9147. fi
  9148. else
  9149. lt_cv_prog_compiler__b=yes
  9150. fi
  9151. fi
  9152. $RM -r conftest*
  9153. LDFLAGS="$save_LDFLAGS"
  9154. fi
  9155. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  9156. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  9157. if test x"$lt_cv_prog_compiler__b" = xyes; then
  9158. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  9159. else
  9160. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  9161. fi
  9162. ;;
  9163. esac
  9164. fi
  9165. if test "$with_gnu_ld" = no; then
  9166. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  9167. hardcode_libdir_separator=:
  9168. case $host_cpu in
  9169. hppa*64*|ia64*)
  9170. hardcode_direct=no
  9171. hardcode_shlibpath_var=no
  9172. ;;
  9173. *)
  9174. hardcode_direct=yes
  9175. hardcode_direct_absolute=yes
  9176. export_dynamic_flag_spec='${wl}-E'
  9177. # hardcode_minus_L: Not really in the search PATH,
  9178. # but as the default location of the library.
  9179. hardcode_minus_L=yes
  9180. ;;
  9181. esac
  9182. fi
  9183. ;;
  9184. irix5* | irix6* | nonstopux*)
  9185. if test "$GCC" = yes; then
  9186. archive_cmds='$CC -shared $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'
  9187. # Try to use the -exported_symbol ld option, if it does not
  9188. # work, assume that -exports_file does not work either and
  9189. # implicitly export all symbols.
  9190. save_LDFLAGS="$LDFLAGS"
  9191. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  9192. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9193. /* end confdefs.h. */
  9194. int foo(void) {}
  9195. _ACEOF
  9196. if ac_fn_c_try_link "$LINENO"; then :
  9197. archive_expsym_cmds='$CC -shared $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'
  9198. fi
  9199. rm -f core conftest.err conftest.$ac_objext \
  9200. conftest$ac_exeext conftest.$ac_ext
  9201. LDFLAGS="$save_LDFLAGS"
  9202. else
  9203. 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'
  9204. 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'
  9205. fi
  9206. archive_cmds_need_lc='no'
  9207. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9208. hardcode_libdir_separator=:
  9209. inherit_rpath=yes
  9210. link_all_deplibs=yes
  9211. ;;
  9212. netbsd*)
  9213. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9214. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  9215. else
  9216. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  9217. fi
  9218. hardcode_libdir_flag_spec='-R$libdir'
  9219. hardcode_direct=yes
  9220. hardcode_shlibpath_var=no
  9221. ;;
  9222. newsos6)
  9223. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9224. hardcode_direct=yes
  9225. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9226. hardcode_libdir_separator=:
  9227. hardcode_shlibpath_var=no
  9228. ;;
  9229. *nto* | *qnx*)
  9230. ;;
  9231. openbsd*)
  9232. if test -f /usr/libexec/ld.so; then
  9233. hardcode_direct=yes
  9234. hardcode_shlibpath_var=no
  9235. hardcode_direct_absolute=yes
  9236. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9237. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9238. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  9239. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9240. export_dynamic_flag_spec='${wl}-E'
  9241. else
  9242. case $host_os in
  9243. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  9244. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  9245. hardcode_libdir_flag_spec='-R$libdir'
  9246. ;;
  9247. *)
  9248. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  9249. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  9250. ;;
  9251. esac
  9252. fi
  9253. else
  9254. ld_shlibs=no
  9255. fi
  9256. ;;
  9257. os2*)
  9258. hardcode_libdir_flag_spec='-L$libdir'
  9259. hardcode_minus_L=yes
  9260. allow_undefined_flag=unsupported
  9261. 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'
  9262. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  9263. ;;
  9264. osf3*)
  9265. if test "$GCC" = yes; then
  9266. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9267. 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'
  9268. else
  9269. allow_undefined_flag=' -expect_unresolved \*'
  9270. 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'
  9271. fi
  9272. archive_cmds_need_lc='no'
  9273. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9274. hardcode_libdir_separator=:
  9275. ;;
  9276. osf4* | osf5*) # as osf3* with the addition of -msym flag
  9277. if test "$GCC" = yes; then
  9278. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  9279. archive_cmds='$CC -shared${allow_undefined_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'
  9280. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  9281. else
  9282. allow_undefined_flag=' -expect_unresolved \*'
  9283. 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'
  9284. 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~
  9285. $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'
  9286. # Both c and cxx compiler support -rpath directly
  9287. hardcode_libdir_flag_spec='-rpath $libdir'
  9288. fi
  9289. archive_cmds_need_lc='no'
  9290. hardcode_libdir_separator=:
  9291. ;;
  9292. solaris*)
  9293. no_undefined_flag=' -z defs'
  9294. if test "$GCC" = yes; then
  9295. wlarc='${wl}'
  9296. archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  9297. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9298. $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9299. else
  9300. case `$CC -V 2>&1` in
  9301. *"Compilers 5.0"*)
  9302. wlarc=''
  9303. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9304. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9305. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  9306. ;;
  9307. *)
  9308. wlarc='${wl}'
  9309. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9310. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  9311. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  9312. ;;
  9313. esac
  9314. fi
  9315. hardcode_libdir_flag_spec='-R$libdir'
  9316. hardcode_shlibpath_var=no
  9317. case $host_os in
  9318. solaris2.[0-5] | solaris2.[0-5].*) ;;
  9319. *)
  9320. # The compiler driver will combine and reorder linker options,
  9321. # but understands `-z linker_flag'. GCC discards it without `$wl',
  9322. # but is careful enough not to reorder.
  9323. # Supported since Solaris 2.6 (maybe 2.5.1?)
  9324. if test "$GCC" = yes; then
  9325. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  9326. else
  9327. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  9328. fi
  9329. ;;
  9330. esac
  9331. link_all_deplibs=yes
  9332. ;;
  9333. sunos4*)
  9334. if test "x$host_vendor" = xsequent; then
  9335. # Use $CC to link under sequent, because it throws in some extra .o
  9336. # files that make .init and .fini sections work.
  9337. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  9338. else
  9339. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9340. fi
  9341. hardcode_libdir_flag_spec='-L$libdir'
  9342. hardcode_direct=yes
  9343. hardcode_minus_L=yes
  9344. hardcode_shlibpath_var=no
  9345. ;;
  9346. sysv4)
  9347. case $host_vendor in
  9348. sni)
  9349. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9350. hardcode_direct=yes # is this really true???
  9351. ;;
  9352. siemens)
  9353. ## LD is ld it makes a PLAMLIB
  9354. ## CC just makes a GrossModule.
  9355. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9356. reload_cmds='$CC -r -o $output$reload_objs'
  9357. hardcode_direct=no
  9358. ;;
  9359. motorola)
  9360. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9361. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9362. ;;
  9363. esac
  9364. runpath_var='LD_RUN_PATH'
  9365. hardcode_shlibpath_var=no
  9366. ;;
  9367. sysv4.3*)
  9368. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9369. hardcode_shlibpath_var=no
  9370. export_dynamic_flag_spec='-Bexport'
  9371. ;;
  9372. sysv4*MP*)
  9373. if test -d /usr/nec; then
  9374. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9375. hardcode_shlibpath_var=no
  9376. runpath_var=LD_RUN_PATH
  9377. hardcode_runpath_var=yes
  9378. ld_shlibs=yes
  9379. fi
  9380. ;;
  9381. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9382. no_undefined_flag='${wl}-z,text'
  9383. archive_cmds_need_lc=no
  9384. hardcode_shlibpath_var=no
  9385. runpath_var='LD_RUN_PATH'
  9386. if test "$GCC" = yes; then
  9387. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9388. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9389. else
  9390. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9391. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9392. fi
  9393. ;;
  9394. sysv5* | sco3.2v5* | sco5v6*)
  9395. # Note: We can NOT use -z defs as we might desire, because we do not
  9396. # link with -lc, and that would cause any symbols used from libc to
  9397. # always be unresolved, which means just about no library would
  9398. # ever link correctly. If we're not using GNU ld we use -z text
  9399. # though, which does catch some bad symbols but isn't as heavy-handed
  9400. # as -z defs.
  9401. no_undefined_flag='${wl}-z,text'
  9402. allow_undefined_flag='${wl}-z,nodefs'
  9403. archive_cmds_need_lc=no
  9404. hardcode_shlibpath_var=no
  9405. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9406. hardcode_libdir_separator=':'
  9407. link_all_deplibs=yes
  9408. export_dynamic_flag_spec='${wl}-Bexport'
  9409. runpath_var='LD_RUN_PATH'
  9410. if test "$GCC" = yes; then
  9411. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9412. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9413. else
  9414. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9415. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9416. fi
  9417. ;;
  9418. uts4*)
  9419. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9420. hardcode_libdir_flag_spec='-L$libdir'
  9421. hardcode_shlibpath_var=no
  9422. ;;
  9423. *)
  9424. ld_shlibs=no
  9425. ;;
  9426. esac
  9427. if test x$host_vendor = xsni; then
  9428. case $host in
  9429. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9430. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9431. ;;
  9432. esac
  9433. fi
  9434. fi
  9435. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9436. $as_echo "$ld_shlibs" >&6; }
  9437. test "$ld_shlibs" = no && can_build_shared=no
  9438. with_gnu_ld=$with_gnu_ld
  9439. #
  9440. # Do we need to explicitly link libc?
  9441. #
  9442. case "x$archive_cmds_need_lc" in
  9443. x|xyes)
  9444. # Assume -lc should be added
  9445. archive_cmds_need_lc=yes
  9446. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9447. case $archive_cmds in
  9448. *'~'*)
  9449. # FIXME: we may have to deal with multi-command sequences.
  9450. ;;
  9451. '$CC '*)
  9452. # Test whether the compiler implicitly links with -lc since on some
  9453. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9454. # to ld, don't add -lc before -lgcc.
  9455. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9456. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9457. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9458. $as_echo_n "(cached) " >&6
  9459. else
  9460. $RM conftest*
  9461. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9462. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9463. (eval $ac_compile) 2>&5
  9464. ac_status=$?
  9465. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9466. test $ac_status = 0; } 2>conftest.err; then
  9467. soname=conftest
  9468. lib=conftest
  9469. libobjs=conftest.$ac_objext
  9470. deplibs=
  9471. wl=$lt_prog_compiler_wl
  9472. pic_flag=$lt_prog_compiler_pic
  9473. compiler_flags=-v
  9474. linker_flags=-v
  9475. verstring=
  9476. output_objdir=.
  9477. libname=conftest
  9478. lt_save_allow_undefined_flag=$allow_undefined_flag
  9479. allow_undefined_flag=
  9480. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9481. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9482. ac_status=$?
  9483. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9484. test $ac_status = 0; }
  9485. then
  9486. lt_cv_archive_cmds_need_lc=no
  9487. else
  9488. lt_cv_archive_cmds_need_lc=yes
  9489. fi
  9490. allow_undefined_flag=$lt_save_allow_undefined_flag
  9491. else
  9492. cat conftest.err 1>&5
  9493. fi
  9494. $RM conftest*
  9495. fi
  9496. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9497. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9498. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9499. ;;
  9500. esac
  9501. fi
  9502. ;;
  9503. esac
  9504. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9505. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9506. if test "$GCC" = yes; then
  9507. case $host_os in
  9508. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9509. *) lt_awk_arg="/^libraries:/" ;;
  9510. esac
  9511. case $host_os in
  9512. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9513. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9514. esac
  9515. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9516. case $lt_search_path_spec in
  9517. *\;*)
  9518. # if the path contains ";" then we assume it to be the separator
  9519. # otherwise default to the standard path separator (i.e. ":") - it is
  9520. # assumed that no part of a normal pathname contains ";" but that should
  9521. # okay in the real world where ";" in dirpaths is itself problematic.
  9522. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9523. ;;
  9524. *)
  9525. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9526. ;;
  9527. esac
  9528. # Ok, now we have the path, separated by spaces, we can step through it
  9529. # and add multilib dir if necessary.
  9530. lt_tmp_lt_search_path_spec=
  9531. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9532. for lt_sys_path in $lt_search_path_spec; do
  9533. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9534. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9535. else
  9536. test -d "$lt_sys_path" && \
  9537. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9538. fi
  9539. done
  9540. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9541. BEGIN {RS=" "; FS="/|\n";} {
  9542. lt_foo="";
  9543. lt_count=0;
  9544. for (lt_i = NF; lt_i > 0; lt_i--) {
  9545. if ($lt_i != "" && $lt_i != ".") {
  9546. if ($lt_i == "..") {
  9547. lt_count++;
  9548. } else {
  9549. if (lt_count == 0) {
  9550. lt_foo="/" $lt_i lt_foo;
  9551. } else {
  9552. lt_count--;
  9553. }
  9554. }
  9555. }
  9556. }
  9557. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9558. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9559. }'`
  9560. # AWK program above erroneously prepends '/' to C:/dos/paths
  9561. # for these hosts.
  9562. case $host_os in
  9563. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9564. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9565. esac
  9566. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9567. else
  9568. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9569. fi
  9570. library_names_spec=
  9571. libname_spec='lib$name'
  9572. soname_spec=
  9573. shrext_cmds=".so"
  9574. postinstall_cmds=
  9575. postuninstall_cmds=
  9576. finish_cmds=
  9577. finish_eval=
  9578. shlibpath_var=
  9579. shlibpath_overrides_runpath=unknown
  9580. version_type=none
  9581. dynamic_linker="$host_os ld.so"
  9582. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9583. need_lib_prefix=unknown
  9584. hardcode_into_libs=no
  9585. # when you set need_version to no, make sure it does not cause -set_version
  9586. # flags to be left without arguments
  9587. need_version=unknown
  9588. case $host_os in
  9589. aix3*)
  9590. version_type=linux
  9591. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9592. shlibpath_var=LIBPATH
  9593. # AIX 3 has no versioning support, so we append a major version to the name.
  9594. soname_spec='${libname}${release}${shared_ext}$major'
  9595. ;;
  9596. aix[4-9]*)
  9597. version_type=linux
  9598. need_lib_prefix=no
  9599. need_version=no
  9600. hardcode_into_libs=yes
  9601. if test "$host_cpu" = ia64; then
  9602. # AIX 5 supports IA64
  9603. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9604. shlibpath_var=LD_LIBRARY_PATH
  9605. else
  9606. # With GCC up to 2.95.x, collect2 would create an import file
  9607. # for dependence libraries. The import file would start with
  9608. # the line `#! .'. This would cause the generated library to
  9609. # depend on `.', always an invalid library. This was fixed in
  9610. # development snapshots of GCC prior to 3.0.
  9611. case $host_os in
  9612. aix4 | aix4.[01] | aix4.[01].*)
  9613. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9614. echo ' yes '
  9615. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9616. :
  9617. else
  9618. can_build_shared=no
  9619. fi
  9620. ;;
  9621. esac
  9622. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9623. # soname into executable. Probably we can add versioning support to
  9624. # collect2, so additional links can be useful in future.
  9625. if test "$aix_use_runtimelinking" = yes; then
  9626. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9627. # instead of lib<name>.a to let people know that these are not
  9628. # typical AIX shared libraries.
  9629. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9630. else
  9631. # We preserve .a as extension for shared libraries through AIX4.2
  9632. # and later when we are not doing run time linking.
  9633. library_names_spec='${libname}${release}.a $libname.a'
  9634. soname_spec='${libname}${release}${shared_ext}$major'
  9635. fi
  9636. shlibpath_var=LIBPATH
  9637. fi
  9638. ;;
  9639. amigaos*)
  9640. case $host_cpu in
  9641. powerpc)
  9642. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9643. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9644. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9645. ;;
  9646. m68k)
  9647. library_names_spec='$libname.ixlibrary $libname.a'
  9648. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9649. 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'
  9650. ;;
  9651. esac
  9652. ;;
  9653. beos*)
  9654. library_names_spec='${libname}${shared_ext}'
  9655. dynamic_linker="$host_os ld.so"
  9656. shlibpath_var=LIBRARY_PATH
  9657. ;;
  9658. bsdi[45]*)
  9659. version_type=linux
  9660. need_version=no
  9661. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9662. soname_spec='${libname}${release}${shared_ext}$major'
  9663. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9664. shlibpath_var=LD_LIBRARY_PATH
  9665. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9666. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9667. # the default ld.so.conf also contains /usr/contrib/lib and
  9668. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9669. # libtool to hard-code these into programs
  9670. ;;
  9671. cygwin* | mingw* | pw32* | cegcc*)
  9672. version_type=windows
  9673. shrext_cmds=".dll"
  9674. need_version=no
  9675. need_lib_prefix=no
  9676. case $GCC,$host_os in
  9677. yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*)
  9678. library_names_spec='$libname.dll.a'
  9679. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9680. postinstall_cmds='base_file=`basename \${file}`~
  9681. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9682. dldir=$destdir/`dirname \$dlpath`~
  9683. test -d \$dldir || mkdir -p \$dldir~
  9684. $install_prog $dir/$dlname \$dldir/$dlname~
  9685. chmod a+x \$dldir/$dlname~
  9686. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9687. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9688. fi'
  9689. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9690. dlpath=$dir/\$dldll~
  9691. $RM \$dlpath'
  9692. shlibpath_overrides_runpath=yes
  9693. case $host_os in
  9694. cygwin*)
  9695. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9696. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9697. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9698. ;;
  9699. mingw* | cegcc*)
  9700. # MinGW DLLs use traditional 'lib' prefix
  9701. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9702. ;;
  9703. pw32*)
  9704. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9705. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9706. ;;
  9707. esac
  9708. ;;
  9709. *)
  9710. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9711. ;;
  9712. esac
  9713. dynamic_linker='Win32 ld.exe'
  9714. # FIXME: first we should search . and the directory the executable is in
  9715. shlibpath_var=PATH
  9716. ;;
  9717. darwin* | rhapsody*)
  9718. dynamic_linker="$host_os dyld"
  9719. version_type=darwin
  9720. need_lib_prefix=no
  9721. need_version=no
  9722. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9723. soname_spec='${libname}${release}${major}$shared_ext'
  9724. shlibpath_overrides_runpath=yes
  9725. shlibpath_var=DYLD_LIBRARY_PATH
  9726. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9727. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9728. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9729. ;;
  9730. dgux*)
  9731. version_type=linux
  9732. need_lib_prefix=no
  9733. need_version=no
  9734. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9735. soname_spec='${libname}${release}${shared_ext}$major'
  9736. shlibpath_var=LD_LIBRARY_PATH
  9737. ;;
  9738. freebsd* | dragonfly*)
  9739. # DragonFly does not have aout. When/if they implement a new
  9740. # versioning mechanism, adjust this.
  9741. if test -x /usr/bin/objformat; then
  9742. objformat=`/usr/bin/objformat`
  9743. else
  9744. case $host_os in
  9745. freebsd[23].*) objformat=aout ;;
  9746. *) objformat=elf ;;
  9747. esac
  9748. fi
  9749. version_type=freebsd-$objformat
  9750. case $version_type in
  9751. freebsd-elf*)
  9752. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9753. need_version=no
  9754. need_lib_prefix=no
  9755. ;;
  9756. freebsd-*)
  9757. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9758. need_version=yes
  9759. ;;
  9760. esac
  9761. shlibpath_var=LD_LIBRARY_PATH
  9762. case $host_os in
  9763. freebsd2.*)
  9764. shlibpath_overrides_runpath=yes
  9765. ;;
  9766. freebsd3.[01]* | freebsdelf3.[01]*)
  9767. shlibpath_overrides_runpath=yes
  9768. hardcode_into_libs=yes
  9769. ;;
  9770. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9771. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9772. shlibpath_overrides_runpath=no
  9773. hardcode_into_libs=yes
  9774. ;;
  9775. *) # from 4.6 on, and DragonFly
  9776. shlibpath_overrides_runpath=yes
  9777. hardcode_into_libs=yes
  9778. ;;
  9779. esac
  9780. ;;
  9781. haiku*)
  9782. version_type=linux
  9783. need_lib_prefix=no
  9784. need_version=no
  9785. dynamic_linker="$host_os runtime_loader"
  9786. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9787. soname_spec='${libname}${release}${shared_ext}$major'
  9788. shlibpath_var=LIBRARY_PATH
  9789. shlibpath_overrides_runpath=yes
  9790. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib'
  9791. hardcode_into_libs=yes
  9792. ;;
  9793. hpux9* | hpux10* | hpux11*)
  9794. # Give a soname corresponding to the major version so that dld.sl refuses to
  9795. # link against other versions.
  9796. version_type=sunos
  9797. need_lib_prefix=no
  9798. need_version=no
  9799. case $host_cpu in
  9800. ia64*)
  9801. shrext_cmds='.so'
  9802. hardcode_into_libs=yes
  9803. dynamic_linker="$host_os dld.so"
  9804. shlibpath_var=LD_LIBRARY_PATH
  9805. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9806. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9807. soname_spec='${libname}${release}${shared_ext}$major'
  9808. if test "X$HPUX_IA64_MODE" = X32; then
  9809. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9810. else
  9811. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9812. fi
  9813. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9814. ;;
  9815. hppa*64*)
  9816. shrext_cmds='.sl'
  9817. hardcode_into_libs=yes
  9818. dynamic_linker="$host_os dld.sl"
  9819. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9820. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9821. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9822. soname_spec='${libname}${release}${shared_ext}$major'
  9823. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9824. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9825. ;;
  9826. *)
  9827. shrext_cmds='.sl'
  9828. dynamic_linker="$host_os dld.sl"
  9829. shlibpath_var=SHLIB_PATH
  9830. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9831. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9832. soname_spec='${libname}${release}${shared_ext}$major'
  9833. ;;
  9834. esac
  9835. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9836. postinstall_cmds='chmod 555 $lib'
  9837. # or fails outright, so override atomically:
  9838. install_override_mode=555
  9839. ;;
  9840. interix[3-9]*)
  9841. version_type=linux
  9842. need_lib_prefix=no
  9843. need_version=no
  9844. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9845. soname_spec='${libname}${release}${shared_ext}$major'
  9846. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9847. shlibpath_var=LD_LIBRARY_PATH
  9848. shlibpath_overrides_runpath=no
  9849. hardcode_into_libs=yes
  9850. ;;
  9851. irix5* | irix6* | nonstopux*)
  9852. case $host_os in
  9853. nonstopux*) version_type=nonstopux ;;
  9854. *)
  9855. if test "$lt_cv_prog_gnu_ld" = yes; then
  9856. version_type=linux
  9857. else
  9858. version_type=irix
  9859. fi ;;
  9860. esac
  9861. need_lib_prefix=no
  9862. need_version=no
  9863. soname_spec='${libname}${release}${shared_ext}$major'
  9864. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9865. case $host_os in
  9866. irix5* | nonstopux*)
  9867. libsuff= shlibsuff=
  9868. ;;
  9869. *)
  9870. case $LD in # libtool.m4 will add one of these switches to LD
  9871. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9872. libsuff= shlibsuff= libmagic=32-bit;;
  9873. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9874. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9875. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9876. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9877. *) libsuff= shlibsuff= libmagic=never-match;;
  9878. esac
  9879. ;;
  9880. esac
  9881. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9882. shlibpath_overrides_runpath=no
  9883. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9884. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9885. hardcode_into_libs=yes
  9886. ;;
  9887. # No shared lib support for Linux oldld, aout, or coff.
  9888. linux*oldld* | linux*aout* | linux*coff*)
  9889. dynamic_linker=no
  9890. ;;
  9891. # This must be Linux ELF.
  9892. # uclinux* changes (here and below) have been submitted to the libtool
  9893. # project, but have not yet been accepted: they are GCC-local changes
  9894. # for the time being. (See
  9895. # https://lists.gnu.org/archive/html/libtool-patches/2018-05/msg00000.html)
  9896. linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu* | uclinuxfdpiceabi)
  9897. version_type=linux
  9898. need_lib_prefix=no
  9899. need_version=no
  9900. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9901. soname_spec='${libname}${release}${shared_ext}$major'
  9902. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9903. shlibpath_var=LD_LIBRARY_PATH
  9904. shlibpath_overrides_runpath=no
  9905. # Some binutils ld are patched to set DT_RUNPATH
  9906. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9907. $as_echo_n "(cached) " >&6
  9908. else
  9909. lt_cv_shlibpath_overrides_runpath=no
  9910. save_LDFLAGS=$LDFLAGS
  9911. save_libdir=$libdir
  9912. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9913. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9914. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9915. /* end confdefs.h. */
  9916. int
  9917. main ()
  9918. {
  9919. ;
  9920. return 0;
  9921. }
  9922. _ACEOF
  9923. if ac_fn_c_try_link "$LINENO"; then :
  9924. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9925. lt_cv_shlibpath_overrides_runpath=yes
  9926. fi
  9927. fi
  9928. rm -f core conftest.err conftest.$ac_objext \
  9929. conftest$ac_exeext conftest.$ac_ext
  9930. LDFLAGS=$save_LDFLAGS
  9931. libdir=$save_libdir
  9932. fi
  9933. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9934. # This implies no fast_install, which is unacceptable.
  9935. # Some rework will be needed to allow for fast_install
  9936. # before this can be enabled.
  9937. hardcode_into_libs=yes
  9938. # Append ld.so.conf contents to the search path
  9939. if test -f /etc/ld.so.conf; then
  9940. 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' ' '`
  9941. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9942. fi
  9943. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9944. # powerpc, because MkLinux only supported shared libraries with the
  9945. # GNU dynamic linker. Since this was broken with cross compilers,
  9946. # most powerpc-linux boxes support dynamic linking these days and
  9947. # people can always --disable-shared, the test was removed, and we
  9948. # assume the GNU/Linux dynamic linker is in use.
  9949. dynamic_linker='GNU/Linux ld.so'
  9950. ;;
  9951. netbsd*)
  9952. version_type=sunos
  9953. need_lib_prefix=no
  9954. need_version=no
  9955. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9956. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9957. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9958. dynamic_linker='NetBSD (a.out) ld.so'
  9959. else
  9960. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9961. soname_spec='${libname}${release}${shared_ext}$major'
  9962. dynamic_linker='NetBSD ld.elf_so'
  9963. fi
  9964. shlibpath_var=LD_LIBRARY_PATH
  9965. shlibpath_overrides_runpath=yes
  9966. hardcode_into_libs=yes
  9967. ;;
  9968. newsos6)
  9969. version_type=linux
  9970. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9971. shlibpath_var=LD_LIBRARY_PATH
  9972. shlibpath_overrides_runpath=yes
  9973. ;;
  9974. *nto* | *qnx*)
  9975. version_type=qnx
  9976. need_lib_prefix=no
  9977. need_version=no
  9978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9979. soname_spec='${libname}${release}${shared_ext}$major'
  9980. shlibpath_var=LD_LIBRARY_PATH
  9981. shlibpath_overrides_runpath=no
  9982. hardcode_into_libs=yes
  9983. dynamic_linker='ldqnx.so'
  9984. ;;
  9985. openbsd*)
  9986. version_type=sunos
  9987. sys_lib_dlsearch_path_spec="/usr/lib"
  9988. need_lib_prefix=no
  9989. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9990. case $host_os in
  9991. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9992. *) need_version=no ;;
  9993. esac
  9994. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9995. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9996. shlibpath_var=LD_LIBRARY_PATH
  9997. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9998. case $host_os in
  9999. openbsd2.[89] | openbsd2.[89].*)
  10000. shlibpath_overrides_runpath=no
  10001. ;;
  10002. *)
  10003. shlibpath_overrides_runpath=yes
  10004. ;;
  10005. esac
  10006. else
  10007. shlibpath_overrides_runpath=yes
  10008. fi
  10009. ;;
  10010. os2*)
  10011. libname_spec='$name'
  10012. shrext_cmds=".dll"
  10013. need_lib_prefix=no
  10014. library_names_spec='$libname${shared_ext} $libname.a'
  10015. dynamic_linker='OS/2 ld.exe'
  10016. shlibpath_var=LIBPATH
  10017. ;;
  10018. osf3* | osf4* | osf5*)
  10019. version_type=osf
  10020. need_lib_prefix=no
  10021. need_version=no
  10022. soname_spec='${libname}${release}${shared_ext}$major'
  10023. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10024. shlibpath_var=LD_LIBRARY_PATH
  10025. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  10026. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  10027. ;;
  10028. rdos*)
  10029. dynamic_linker=no
  10030. ;;
  10031. solaris*)
  10032. version_type=linux
  10033. need_lib_prefix=no
  10034. need_version=no
  10035. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10036. soname_spec='${libname}${release}${shared_ext}$major'
  10037. shlibpath_var=LD_LIBRARY_PATH
  10038. shlibpath_overrides_runpath=yes
  10039. hardcode_into_libs=yes
  10040. # ldd complains unless libraries are executable
  10041. postinstall_cmds='chmod +x $lib'
  10042. ;;
  10043. sunos4*)
  10044. version_type=sunos
  10045. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  10046. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  10047. shlibpath_var=LD_LIBRARY_PATH
  10048. shlibpath_overrides_runpath=yes
  10049. if test "$with_gnu_ld" = yes; then
  10050. need_lib_prefix=no
  10051. fi
  10052. need_version=yes
  10053. ;;
  10054. sysv4 | sysv4.3*)
  10055. version_type=linux
  10056. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10057. soname_spec='${libname}${release}${shared_ext}$major'
  10058. shlibpath_var=LD_LIBRARY_PATH
  10059. case $host_vendor in
  10060. sni)
  10061. shlibpath_overrides_runpath=no
  10062. need_lib_prefix=no
  10063. runpath_var=LD_RUN_PATH
  10064. ;;
  10065. siemens)
  10066. need_lib_prefix=no
  10067. ;;
  10068. motorola)
  10069. need_lib_prefix=no
  10070. need_version=no
  10071. shlibpath_overrides_runpath=no
  10072. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  10073. ;;
  10074. esac
  10075. ;;
  10076. sysv4*MP*)
  10077. if test -d /usr/nec ;then
  10078. version_type=linux
  10079. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  10080. soname_spec='$libname${shared_ext}.$major'
  10081. shlibpath_var=LD_LIBRARY_PATH
  10082. fi
  10083. ;;
  10084. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  10085. version_type=freebsd-elf
  10086. need_lib_prefix=no
  10087. need_version=no
  10088. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  10089. soname_spec='${libname}${release}${shared_ext}$major'
  10090. shlibpath_var=LD_LIBRARY_PATH
  10091. shlibpath_overrides_runpath=yes
  10092. hardcode_into_libs=yes
  10093. if test "$with_gnu_ld" = yes; then
  10094. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  10095. else
  10096. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  10097. case $host_os in
  10098. sco3.2v5*)
  10099. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  10100. ;;
  10101. esac
  10102. fi
  10103. sys_lib_dlsearch_path_spec='/usr/lib'
  10104. ;;
  10105. tpf*)
  10106. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  10107. version_type=linux
  10108. need_lib_prefix=no
  10109. need_version=no
  10110. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10111. shlibpath_var=LD_LIBRARY_PATH
  10112. shlibpath_overrides_runpath=no
  10113. hardcode_into_libs=yes
  10114. ;;
  10115. uts4*)
  10116. version_type=linux
  10117. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  10118. soname_spec='${libname}${release}${shared_ext}$major'
  10119. shlibpath_var=LD_LIBRARY_PATH
  10120. ;;
  10121. *)
  10122. dynamic_linker=no
  10123. ;;
  10124. esac
  10125. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  10126. $as_echo "$dynamic_linker" >&6; }
  10127. test "$dynamic_linker" = no && can_build_shared=no
  10128. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  10129. if test "$GCC" = yes; then
  10130. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  10131. fi
  10132. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  10133. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  10134. fi
  10135. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  10136. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  10137. fi
  10138. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  10139. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  10140. hardcode_action=
  10141. if test -n "$hardcode_libdir_flag_spec" ||
  10142. test -n "$runpath_var" ||
  10143. test "X$hardcode_automatic" = "Xyes" ; then
  10144. # We can hardcode non-existent directories.
  10145. if test "$hardcode_direct" != no &&
  10146. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  10147. # have to relink, otherwise we might link with an installed library
  10148. # when we should be linking with a yet-to-be-installed one
  10149. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  10150. test "$hardcode_minus_L" != no; then
  10151. # Linking always hardcodes the temporary library directory.
  10152. hardcode_action=relink
  10153. else
  10154. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  10155. hardcode_action=immediate
  10156. fi
  10157. else
  10158. # We cannot hardcode anything, or else we can only hardcode existing
  10159. # directories.
  10160. hardcode_action=unsupported
  10161. fi
  10162. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  10163. $as_echo "$hardcode_action" >&6; }
  10164. if test "$hardcode_action" = relink ||
  10165. test "$inherit_rpath" = yes; then
  10166. # Fast installation is not supported
  10167. enable_fast_install=no
  10168. elif test "$shlibpath_overrides_runpath" = yes ||
  10169. test "$enable_shared" = no; then
  10170. # Fast installation is not necessary
  10171. enable_fast_install=needless
  10172. fi
  10173. if test "x$enable_dlopen" != xyes; then
  10174. enable_dlopen=unknown
  10175. enable_dlopen_self=unknown
  10176. enable_dlopen_self_static=unknown
  10177. else
  10178. lt_cv_dlopen=no
  10179. lt_cv_dlopen_libs=
  10180. case $host_os in
  10181. beos*)
  10182. lt_cv_dlopen="load_add_on"
  10183. lt_cv_dlopen_libs=
  10184. lt_cv_dlopen_self=yes
  10185. ;;
  10186. mingw* | pw32* | cegcc*)
  10187. lt_cv_dlopen="LoadLibrary"
  10188. lt_cv_dlopen_libs=
  10189. ;;
  10190. cygwin*)
  10191. lt_cv_dlopen="dlopen"
  10192. lt_cv_dlopen_libs=
  10193. ;;
  10194. darwin*)
  10195. # if libdl is installed we need to link against it
  10196. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10197. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10198. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10199. $as_echo_n "(cached) " >&6
  10200. else
  10201. ac_check_lib_save_LIBS=$LIBS
  10202. LIBS="-ldl $LIBS"
  10203. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10204. /* end confdefs.h. */
  10205. /* Override any GCC internal prototype to avoid an error.
  10206. Use char because int might match the return type of a GCC
  10207. builtin and then its argument prototype would still apply. */
  10208. #ifdef __cplusplus
  10209. extern "C"
  10210. #endif
  10211. char dlopen ();
  10212. int
  10213. main ()
  10214. {
  10215. return dlopen ();
  10216. ;
  10217. return 0;
  10218. }
  10219. _ACEOF
  10220. if ac_fn_c_try_link "$LINENO"; then :
  10221. ac_cv_lib_dl_dlopen=yes
  10222. else
  10223. ac_cv_lib_dl_dlopen=no
  10224. fi
  10225. rm -f core conftest.err conftest.$ac_objext \
  10226. conftest$ac_exeext conftest.$ac_ext
  10227. LIBS=$ac_check_lib_save_LIBS
  10228. fi
  10229. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10230. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10231. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10232. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10233. else
  10234. lt_cv_dlopen="dyld"
  10235. lt_cv_dlopen_libs=
  10236. lt_cv_dlopen_self=yes
  10237. fi
  10238. ;;
  10239. *)
  10240. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  10241. if test "x$ac_cv_func_shl_load" = xyes; then :
  10242. lt_cv_dlopen="shl_load"
  10243. else
  10244. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  10245. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  10246. if ${ac_cv_lib_dld_shl_load+:} false; then :
  10247. $as_echo_n "(cached) " >&6
  10248. else
  10249. ac_check_lib_save_LIBS=$LIBS
  10250. LIBS="-ldld $LIBS"
  10251. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10252. /* end confdefs.h. */
  10253. /* Override any GCC internal prototype to avoid an error.
  10254. Use char because int might match the return type of a GCC
  10255. builtin and then its argument prototype would still apply. */
  10256. #ifdef __cplusplus
  10257. extern "C"
  10258. #endif
  10259. char shl_load ();
  10260. int
  10261. main ()
  10262. {
  10263. return shl_load ();
  10264. ;
  10265. return 0;
  10266. }
  10267. _ACEOF
  10268. if ac_fn_c_try_link "$LINENO"; then :
  10269. ac_cv_lib_dld_shl_load=yes
  10270. else
  10271. ac_cv_lib_dld_shl_load=no
  10272. fi
  10273. rm -f core conftest.err conftest.$ac_objext \
  10274. conftest$ac_exeext conftest.$ac_ext
  10275. LIBS=$ac_check_lib_save_LIBS
  10276. fi
  10277. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10278. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10279. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10280. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10281. else
  10282. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10283. if test "x$ac_cv_func_dlopen" = xyes; then :
  10284. lt_cv_dlopen="dlopen"
  10285. else
  10286. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10287. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10288. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10289. $as_echo_n "(cached) " >&6
  10290. else
  10291. ac_check_lib_save_LIBS=$LIBS
  10292. LIBS="-ldl $LIBS"
  10293. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10294. /* end confdefs.h. */
  10295. /* Override any GCC internal prototype to avoid an error.
  10296. Use char because int might match the return type of a GCC
  10297. builtin and then its argument prototype would still apply. */
  10298. #ifdef __cplusplus
  10299. extern "C"
  10300. #endif
  10301. char dlopen ();
  10302. int
  10303. main ()
  10304. {
  10305. return dlopen ();
  10306. ;
  10307. return 0;
  10308. }
  10309. _ACEOF
  10310. if ac_fn_c_try_link "$LINENO"; then :
  10311. ac_cv_lib_dl_dlopen=yes
  10312. else
  10313. ac_cv_lib_dl_dlopen=no
  10314. fi
  10315. rm -f core conftest.err conftest.$ac_objext \
  10316. conftest$ac_exeext conftest.$ac_ext
  10317. LIBS=$ac_check_lib_save_LIBS
  10318. fi
  10319. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10320. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10321. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10322. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10323. else
  10324. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10325. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10326. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10327. $as_echo_n "(cached) " >&6
  10328. else
  10329. ac_check_lib_save_LIBS=$LIBS
  10330. LIBS="-lsvld $LIBS"
  10331. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10332. /* end confdefs.h. */
  10333. /* Override any GCC internal prototype to avoid an error.
  10334. Use char because int might match the return type of a GCC
  10335. builtin and then its argument prototype would still apply. */
  10336. #ifdef __cplusplus
  10337. extern "C"
  10338. #endif
  10339. char dlopen ();
  10340. int
  10341. main ()
  10342. {
  10343. return dlopen ();
  10344. ;
  10345. return 0;
  10346. }
  10347. _ACEOF
  10348. if ac_fn_c_try_link "$LINENO"; then :
  10349. ac_cv_lib_svld_dlopen=yes
  10350. else
  10351. ac_cv_lib_svld_dlopen=no
  10352. fi
  10353. rm -f core conftest.err conftest.$ac_objext \
  10354. conftest$ac_exeext conftest.$ac_ext
  10355. LIBS=$ac_check_lib_save_LIBS
  10356. fi
  10357. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10358. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10359. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10360. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10361. else
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10363. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10364. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10365. $as_echo_n "(cached) " >&6
  10366. else
  10367. ac_check_lib_save_LIBS=$LIBS
  10368. LIBS="-ldld $LIBS"
  10369. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10370. /* end confdefs.h. */
  10371. /* Override any GCC internal prototype to avoid an error.
  10372. Use char because int might match the return type of a GCC
  10373. builtin and then its argument prototype would still apply. */
  10374. #ifdef __cplusplus
  10375. extern "C"
  10376. #endif
  10377. char dld_link ();
  10378. int
  10379. main ()
  10380. {
  10381. return dld_link ();
  10382. ;
  10383. return 0;
  10384. }
  10385. _ACEOF
  10386. if ac_fn_c_try_link "$LINENO"; then :
  10387. ac_cv_lib_dld_dld_link=yes
  10388. else
  10389. ac_cv_lib_dld_dld_link=no
  10390. fi
  10391. rm -f core conftest.err conftest.$ac_objext \
  10392. conftest$ac_exeext conftest.$ac_ext
  10393. LIBS=$ac_check_lib_save_LIBS
  10394. fi
  10395. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10396. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10397. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10398. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10399. fi
  10400. fi
  10401. fi
  10402. fi
  10403. fi
  10404. fi
  10405. ;;
  10406. esac
  10407. if test "x$lt_cv_dlopen" != xno; then
  10408. enable_dlopen=yes
  10409. else
  10410. enable_dlopen=no
  10411. fi
  10412. case $lt_cv_dlopen in
  10413. dlopen)
  10414. save_CPPFLAGS="$CPPFLAGS"
  10415. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10416. save_LDFLAGS="$LDFLAGS"
  10417. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10418. save_LIBS="$LIBS"
  10419. LIBS="$lt_cv_dlopen_libs $LIBS"
  10420. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10421. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10422. if ${lt_cv_dlopen_self+:} false; then :
  10423. $as_echo_n "(cached) " >&6
  10424. else
  10425. if test "$cross_compiling" = yes; then :
  10426. lt_cv_dlopen_self=cross
  10427. else
  10428. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10429. lt_status=$lt_dlunknown
  10430. cat > conftest.$ac_ext <<_LT_EOF
  10431. #line 12084 "configure"
  10432. #include "confdefs.h"
  10433. #if HAVE_DLFCN_H
  10434. #include <dlfcn.h>
  10435. #endif
  10436. #include <stdio.h>
  10437. #ifdef RTLD_GLOBAL
  10438. # define LT_DLGLOBAL RTLD_GLOBAL
  10439. #else
  10440. # ifdef DL_GLOBAL
  10441. # define LT_DLGLOBAL DL_GLOBAL
  10442. # else
  10443. # define LT_DLGLOBAL 0
  10444. # endif
  10445. #endif
  10446. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10447. find out it does not work in some platform. */
  10448. #ifndef LT_DLLAZY_OR_NOW
  10449. # ifdef RTLD_LAZY
  10450. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10451. # else
  10452. # ifdef DL_LAZY
  10453. # define LT_DLLAZY_OR_NOW DL_LAZY
  10454. # else
  10455. # ifdef RTLD_NOW
  10456. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10457. # else
  10458. # ifdef DL_NOW
  10459. # define LT_DLLAZY_OR_NOW DL_NOW
  10460. # else
  10461. # define LT_DLLAZY_OR_NOW 0
  10462. # endif
  10463. # endif
  10464. # endif
  10465. # endif
  10466. #endif
  10467. /* When -fvisbility=hidden is used, assume the code has been annotated
  10468. correspondingly for the symbols needed. */
  10469. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10470. void fnord () __attribute__((visibility("default")));
  10471. #endif
  10472. void fnord () { int i=42; }
  10473. int main ()
  10474. {
  10475. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10476. int status = $lt_dlunknown;
  10477. if (self)
  10478. {
  10479. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10480. else
  10481. {
  10482. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10483. else puts (dlerror ());
  10484. }
  10485. /* dlclose (self); */
  10486. }
  10487. else
  10488. puts (dlerror ());
  10489. return status;
  10490. }
  10491. _LT_EOF
  10492. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10493. (eval $ac_link) 2>&5
  10494. ac_status=$?
  10495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10496. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10497. (./conftest; exit; ) >&5 2>/dev/null
  10498. lt_status=$?
  10499. case x$lt_status in
  10500. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10501. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10502. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10503. esac
  10504. else :
  10505. # compilation failed
  10506. lt_cv_dlopen_self=no
  10507. fi
  10508. fi
  10509. rm -fr conftest*
  10510. fi
  10511. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10512. $as_echo "$lt_cv_dlopen_self" >&6; }
  10513. if test "x$lt_cv_dlopen_self" = xyes; then
  10514. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10515. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10516. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10517. if ${lt_cv_dlopen_self_static+:} false; then :
  10518. $as_echo_n "(cached) " >&6
  10519. else
  10520. if test "$cross_compiling" = yes; then :
  10521. lt_cv_dlopen_self_static=cross
  10522. else
  10523. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10524. lt_status=$lt_dlunknown
  10525. cat > conftest.$ac_ext <<_LT_EOF
  10526. #line 12190 "configure"
  10527. #include "confdefs.h"
  10528. #if HAVE_DLFCN_H
  10529. #include <dlfcn.h>
  10530. #endif
  10531. #include <stdio.h>
  10532. #ifdef RTLD_GLOBAL
  10533. # define LT_DLGLOBAL RTLD_GLOBAL
  10534. #else
  10535. # ifdef DL_GLOBAL
  10536. # define LT_DLGLOBAL DL_GLOBAL
  10537. # else
  10538. # define LT_DLGLOBAL 0
  10539. # endif
  10540. #endif
  10541. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10542. find out it does not work in some platform. */
  10543. #ifndef LT_DLLAZY_OR_NOW
  10544. # ifdef RTLD_LAZY
  10545. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10546. # else
  10547. # ifdef DL_LAZY
  10548. # define LT_DLLAZY_OR_NOW DL_LAZY
  10549. # else
  10550. # ifdef RTLD_NOW
  10551. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10552. # else
  10553. # ifdef DL_NOW
  10554. # define LT_DLLAZY_OR_NOW DL_NOW
  10555. # else
  10556. # define LT_DLLAZY_OR_NOW 0
  10557. # endif
  10558. # endif
  10559. # endif
  10560. # endif
  10561. #endif
  10562. /* When -fvisbility=hidden is used, assume the code has been annotated
  10563. correspondingly for the symbols needed. */
  10564. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10565. void fnord () __attribute__((visibility("default")));
  10566. #endif
  10567. void fnord () { int i=42; }
  10568. int main ()
  10569. {
  10570. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10571. int status = $lt_dlunknown;
  10572. if (self)
  10573. {
  10574. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10575. else
  10576. {
  10577. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10578. else puts (dlerror ());
  10579. }
  10580. /* dlclose (self); */
  10581. }
  10582. else
  10583. puts (dlerror ());
  10584. return status;
  10585. }
  10586. _LT_EOF
  10587. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10588. (eval $ac_link) 2>&5
  10589. ac_status=$?
  10590. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10591. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10592. (./conftest; exit; ) >&5 2>/dev/null
  10593. lt_status=$?
  10594. case x$lt_status in
  10595. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10596. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10597. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10598. esac
  10599. else :
  10600. # compilation failed
  10601. lt_cv_dlopen_self_static=no
  10602. fi
  10603. fi
  10604. rm -fr conftest*
  10605. fi
  10606. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10607. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10608. fi
  10609. CPPFLAGS="$save_CPPFLAGS"
  10610. LDFLAGS="$save_LDFLAGS"
  10611. LIBS="$save_LIBS"
  10612. ;;
  10613. esac
  10614. case $lt_cv_dlopen_self in
  10615. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10616. *) enable_dlopen_self=unknown ;;
  10617. esac
  10618. case $lt_cv_dlopen_self_static in
  10619. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10620. *) enable_dlopen_self_static=unknown ;;
  10621. esac
  10622. fi
  10623. striplib=
  10624. old_striplib=
  10625. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10626. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10627. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10628. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10629. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10630. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10631. $as_echo "yes" >&6; }
  10632. else
  10633. # FIXME - insert some real tests, host_os isn't really good enough
  10634. case $host_os in
  10635. darwin*)
  10636. if test -n "$STRIP" ; then
  10637. striplib="$STRIP -x"
  10638. old_striplib="$STRIP -S"
  10639. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10640. $as_echo "yes" >&6; }
  10641. else
  10642. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10643. $as_echo "no" >&6; }
  10644. fi
  10645. ;;
  10646. *)
  10647. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10648. $as_echo "no" >&6; }
  10649. ;;
  10650. esac
  10651. fi
  10652. # Report which library types will actually be built
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10654. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10655. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10656. $as_echo "$can_build_shared" >&6; }
  10657. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10658. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10659. test "$can_build_shared" = "no" && enable_shared=no
  10660. # On AIX, shared libraries and static libraries use the same namespace, and
  10661. # are all built from PIC.
  10662. case $host_os in
  10663. aix3*)
  10664. test "$enable_shared" = yes && enable_static=no
  10665. if test -n "$RANLIB"; then
  10666. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10667. postinstall_cmds='$RANLIB $lib'
  10668. fi
  10669. ;;
  10670. aix[4-9]*)
  10671. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10672. test "$enable_shared" = yes && enable_static=no
  10673. fi
  10674. ;;
  10675. esac
  10676. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10677. $as_echo "$enable_shared" >&6; }
  10678. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10679. $as_echo_n "checking whether to build static libraries... " >&6; }
  10680. # Make sure either enable_shared or enable_static is yes.
  10681. test "$enable_shared" = yes || enable_static=yes
  10682. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10683. $as_echo "$enable_static" >&6; }
  10684. fi
  10685. ac_ext=c
  10686. ac_cpp='$CPP $CPPFLAGS'
  10687. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10688. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10689. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10690. CC="$lt_save_CC"
  10691. ac_config_commands="$ac_config_commands libtool"
  10692. # Only expand once:
  10693. case $host in
  10694. *-cygwin* | *-mingw*)
  10695. # 'host' will be top-level target in the case of a target lib,
  10696. # we must compare to with_cross_host to decide if this is a native
  10697. # or cross-compiler and select where to install dlls appropriately.
  10698. if test -n "$with_cross_host" &&
  10699. test x"$with_cross_host" != x"no"; then
  10700. lt_host_flags='-no-undefined -bindir "$(toolexeclibdir)"';
  10701. else
  10702. lt_host_flags='-no-undefined -bindir "$(bindir)"';
  10703. fi
  10704. ;;
  10705. *)
  10706. lt_host_flags=
  10707. ;;
  10708. esac
  10709. ac_fn_c_find_intX_t "$LINENO" "64" "ac_cv_c_int64_t"
  10710. case $ac_cv_c_int64_t in #(
  10711. no|yes) ;; #(
  10712. *)
  10713. cat >>confdefs.h <<_ACEOF
  10714. #define int64_t $ac_cv_c_int64_t
  10715. _ACEOF
  10716. ;;
  10717. esac
  10718. ac_fn_c_find_uintX_t "$LINENO" "64" "ac_cv_c_uint64_t"
  10719. case $ac_cv_c_uint64_t in #(
  10720. no|yes) ;; #(
  10721. *)
  10722. $as_echo "#define _UINT64_T 1" >>confdefs.h
  10723. cat >>confdefs.h <<_ACEOF
  10724. #define uint64_t $ac_cv_c_uint64_t
  10725. _ACEOF
  10726. ;;
  10727. esac
  10728. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
  10729. $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
  10730. if ${ac_cv_header_sys_wait_h+:} false; then :
  10731. $as_echo_n "(cached) " >&6
  10732. else
  10733. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10734. /* end confdefs.h. */
  10735. #include <sys/types.h>
  10736. #include <sys/wait.h>
  10737. #ifndef WEXITSTATUS
  10738. # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
  10739. #endif
  10740. #ifndef WIFEXITED
  10741. # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
  10742. #endif
  10743. int
  10744. main ()
  10745. {
  10746. int s;
  10747. wait (&s);
  10748. s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
  10749. ;
  10750. return 0;
  10751. }
  10752. _ACEOF
  10753. if ac_fn_c_try_compile "$LINENO"; then :
  10754. ac_cv_header_sys_wait_h=yes
  10755. else
  10756. ac_cv_header_sys_wait_h=no
  10757. fi
  10758. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  10759. fi
  10760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
  10761. $as_echo "$ac_cv_header_sys_wait_h" >&6; }
  10762. if test $ac_cv_header_sys_wait_h = yes; then
  10763. $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
  10764. fi
  10765. ac_config_files="$ac_config_files Makefile"
  10766. ac_config_headers="$ac_config_headers config.h"
  10767. cat >confcache <<\_ACEOF
  10768. # This file is a shell script that caches the results of configure
  10769. # tests run on this system so they can be shared between configure
  10770. # scripts and configure runs, see configure's option --config-cache.
  10771. # It is not useful on other systems. If it contains results you don't
  10772. # want to keep, you may remove or edit it.
  10773. #
  10774. # config.status only pays attention to the cache file if you give it
  10775. # the --recheck option to rerun configure.
  10776. #
  10777. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  10778. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  10779. # following values.
  10780. _ACEOF
  10781. # The following way of writing the cache mishandles newlines in values,
  10782. # but we know of no workaround that is simple, portable, and efficient.
  10783. # So, we kill variables containing newlines.
  10784. # Ultrix sh set writes to stderr and can't be redirected directly,
  10785. # and sets the high bit in the cache file unless we assign to the vars.
  10786. (
  10787. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  10788. eval ac_val=\$$ac_var
  10789. case $ac_val in #(
  10790. *${as_nl}*)
  10791. case $ac_var in #(
  10792. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  10793. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  10794. esac
  10795. case $ac_var in #(
  10796. _ | IFS | as_nl) ;; #(
  10797. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  10798. *) { eval $ac_var=; unset $ac_var;} ;;
  10799. esac ;;
  10800. esac
  10801. done
  10802. (set) 2>&1 |
  10803. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  10804. *${as_nl}ac_space=\ *)
  10805. # `set' does not quote correctly, so add quotes: double-quote
  10806. # substitution turns \\\\ into \\, and sed turns \\ into \.
  10807. sed -n \
  10808. "s/'/'\\\\''/g;
  10809. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  10810. ;; #(
  10811. *)
  10812. # `set' quotes correctly as required by POSIX, so do not add quotes.
  10813. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  10814. ;;
  10815. esac |
  10816. sort
  10817. ) |
  10818. sed '
  10819. /^ac_cv_env_/b end
  10820. t clear
  10821. :clear
  10822. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  10823. t end
  10824. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  10825. :end' >>confcache
  10826. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  10827. if test -w "$cache_file"; then
  10828. if test "x$cache_file" != "x/dev/null"; then
  10829. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  10830. $as_echo "$as_me: updating cache $cache_file" >&6;}
  10831. if test ! -f "$cache_file" || test -h "$cache_file"; then
  10832. cat confcache >"$cache_file"
  10833. else
  10834. case $cache_file in #(
  10835. */* | ?:*)
  10836. mv -f confcache "$cache_file"$$ &&
  10837. mv -f "$cache_file"$$ "$cache_file" ;; #(
  10838. *)
  10839. mv -f confcache "$cache_file" ;;
  10840. esac
  10841. fi
  10842. fi
  10843. else
  10844. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  10845. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  10846. fi
  10847. fi
  10848. rm -f confcache
  10849. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  10850. # Let make expand exec_prefix.
  10851. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  10852. DEFS=-DHAVE_CONFIG_H
  10853. ac_libobjs=
  10854. ac_ltlibobjs=
  10855. U=
  10856. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  10857. # 1. Remove the extension, and $U if already installed.
  10858. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  10859. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  10860. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  10861. # will be set to the directory where LIBOBJS objects are built.
  10862. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  10863. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  10864. done
  10865. LIBOBJS=$ac_libobjs
  10866. LTLIBOBJS=$ac_ltlibobjs
  10867. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  10868. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  10869. if test -n "$am_sleep_pid"; then
  10870. # Hide warnings about reused PIDs.
  10871. wait $am_sleep_pid 2>/dev/null
  10872. fi
  10873. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  10874. $as_echo "done" >&6; }
  10875. if test -n "$EXEEXT"; then
  10876. am__EXEEXT_TRUE=
  10877. am__EXEEXT_FALSE='#'
  10878. else
  10879. am__EXEEXT_TRUE='#'
  10880. am__EXEEXT_FALSE=
  10881. fi
  10882. if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
  10883. as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
  10884. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10885. fi
  10886. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  10887. as_fn_error $? "conditional \"AMDEP\" was never defined.
  10888. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10889. fi
  10890. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10891. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10892. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10893. fi
  10894. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  10895. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  10896. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10897. fi
  10898. if test -z "${LTO_PLUGIN_USE_SYMVER_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_FALSE}"; then
  10899. as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER\" was never defined.
  10900. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10901. fi
  10902. if test -z "${LTO_PLUGIN_USE_SYMVER_GNU_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_GNU_FALSE}"; then
  10903. as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_GNU\" was never defined.
  10904. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10905. fi
  10906. if test -z "${LTO_PLUGIN_USE_SYMVER_SUN_TRUE}" && test -z "${LTO_PLUGIN_USE_SYMVER_SUN_FALSE}"; then
  10907. as_fn_error $? "conditional \"LTO_PLUGIN_USE_SYMVER_SUN\" was never defined.
  10908. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  10909. fi
  10910. : "${CONFIG_STATUS=./config.status}"
  10911. ac_write_fail=0
  10912. ac_clean_files_save=$ac_clean_files
  10913. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  10914. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  10915. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  10916. as_write_fail=0
  10917. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  10918. #! $SHELL
  10919. # Generated by $as_me.
  10920. # Run this file to recreate the current configuration.
  10921. # Compiler output produced by configure, useful for debugging
  10922. # configure, is in config.log if it exists.
  10923. debug=false
  10924. ac_cs_recheck=false
  10925. ac_cs_silent=false
  10926. SHELL=\${CONFIG_SHELL-$SHELL}
  10927. export SHELL
  10928. _ASEOF
  10929. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  10930. ## -------------------- ##
  10931. ## M4sh Initialization. ##
  10932. ## -------------------- ##
  10933. # Be more Bourne compatible
  10934. DUALCASE=1; export DUALCASE # for MKS sh
  10935. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  10936. emulate sh
  10937. NULLCMD=:
  10938. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  10939. # is contrary to our usage. Disable this feature.
  10940. alias -g '${1+"$@"}'='"$@"'
  10941. setopt NO_GLOB_SUBST
  10942. else
  10943. case `(set -o) 2>/dev/null` in #(
  10944. *posix*) :
  10945. set -o posix ;; #(
  10946. *) :
  10947. ;;
  10948. esac
  10949. fi
  10950. as_nl='
  10951. '
  10952. export as_nl
  10953. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  10954. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  10955. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  10956. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  10957. # Prefer a ksh shell builtin over an external printf program on Solaris,
  10958. # but without wasting forks for bash or zsh.
  10959. if test -z "$BASH_VERSION$ZSH_VERSION" \
  10960. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  10961. as_echo='print -r --'
  10962. as_echo_n='print -rn --'
  10963. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  10964. as_echo='printf %s\n'
  10965. as_echo_n='printf %s'
  10966. else
  10967. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  10968. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  10969. as_echo_n='/usr/ucb/echo -n'
  10970. else
  10971. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  10972. as_echo_n_body='eval
  10973. arg=$1;
  10974. case $arg in #(
  10975. *"$as_nl"*)
  10976. expr "X$arg" : "X\\(.*\\)$as_nl";
  10977. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  10978. esac;
  10979. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  10980. '
  10981. export as_echo_n_body
  10982. as_echo_n='sh -c $as_echo_n_body as_echo'
  10983. fi
  10984. export as_echo_body
  10985. as_echo='sh -c $as_echo_body as_echo'
  10986. fi
  10987. # The user is always right.
  10988. if test "${PATH_SEPARATOR+set}" != set; then
  10989. PATH_SEPARATOR=:
  10990. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  10991. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  10992. PATH_SEPARATOR=';'
  10993. }
  10994. fi
  10995. # IFS
  10996. # We need space, tab and new line, in precisely that order. Quoting is
  10997. # there to prevent editors from complaining about space-tab.
  10998. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  10999. # splitting by setting IFS to empty value.)
  11000. IFS=" "" $as_nl"
  11001. # Find who we are. Look in the path if we contain no directory separator.
  11002. as_myself=
  11003. case $0 in #((
  11004. *[\\/]* ) as_myself=$0 ;;
  11005. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  11006. for as_dir in $PATH
  11007. do
  11008. IFS=$as_save_IFS
  11009. test -z "$as_dir" && as_dir=.
  11010. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  11011. done
  11012. IFS=$as_save_IFS
  11013. ;;
  11014. esac
  11015. # We did not find ourselves, most probably we were run as `sh COMMAND'
  11016. # in which case we are not to be found in the path.
  11017. if test "x$as_myself" = x; then
  11018. as_myself=$0
  11019. fi
  11020. if test ! -f "$as_myself"; then
  11021. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  11022. exit 1
  11023. fi
  11024. # Unset variables that we do not need and which cause bugs (e.g. in
  11025. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  11026. # suppresses any "Segmentation fault" message there. '((' could
  11027. # trigger a bug in pdksh 5.2.14.
  11028. for as_var in BASH_ENV ENV MAIL MAILPATH
  11029. do eval test x\${$as_var+set} = xset \
  11030. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  11031. done
  11032. PS1='$ '
  11033. PS2='> '
  11034. PS4='+ '
  11035. # NLS nuisances.
  11036. LC_ALL=C
  11037. export LC_ALL
  11038. LANGUAGE=C
  11039. export LANGUAGE
  11040. # CDPATH.
  11041. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11042. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  11043. # ----------------------------------------
  11044. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  11045. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  11046. # script with STATUS, using 1 if that was 0.
  11047. as_fn_error ()
  11048. {
  11049. as_status=$1; test $as_status -eq 0 && as_status=1
  11050. if test "$4"; then
  11051. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  11052. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  11053. fi
  11054. $as_echo "$as_me: error: $2" >&2
  11055. as_fn_exit $as_status
  11056. } # as_fn_error
  11057. # as_fn_set_status STATUS
  11058. # -----------------------
  11059. # Set $? to STATUS, without forking.
  11060. as_fn_set_status ()
  11061. {
  11062. return $1
  11063. } # as_fn_set_status
  11064. # as_fn_exit STATUS
  11065. # -----------------
  11066. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  11067. as_fn_exit ()
  11068. {
  11069. set +e
  11070. as_fn_set_status $1
  11071. exit $1
  11072. } # as_fn_exit
  11073. # as_fn_unset VAR
  11074. # ---------------
  11075. # Portably unset VAR.
  11076. as_fn_unset ()
  11077. {
  11078. { eval $1=; unset $1;}
  11079. }
  11080. as_unset=as_fn_unset
  11081. # as_fn_append VAR VALUE
  11082. # ----------------------
  11083. # Append the text in VALUE to the end of the definition contained in VAR. Take
  11084. # advantage of any shell optimizations that allow amortized linear growth over
  11085. # repeated appends, instead of the typical quadratic growth present in naive
  11086. # implementations.
  11087. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  11088. eval 'as_fn_append ()
  11089. {
  11090. eval $1+=\$2
  11091. }'
  11092. else
  11093. as_fn_append ()
  11094. {
  11095. eval $1=\$$1\$2
  11096. }
  11097. fi # as_fn_append
  11098. # as_fn_arith ARG...
  11099. # ------------------
  11100. # Perform arithmetic evaluation on the ARGs, and store the result in the
  11101. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  11102. # must be portable across $(()) and expr.
  11103. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  11104. eval 'as_fn_arith ()
  11105. {
  11106. as_val=$(( $* ))
  11107. }'
  11108. else
  11109. as_fn_arith ()
  11110. {
  11111. as_val=`expr "$@" || test $? -eq 1`
  11112. }
  11113. fi # as_fn_arith
  11114. if expr a : '\(a\)' >/dev/null 2>&1 &&
  11115. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  11116. as_expr=expr
  11117. else
  11118. as_expr=false
  11119. fi
  11120. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  11121. as_basename=basename
  11122. else
  11123. as_basename=false
  11124. fi
  11125. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  11126. as_dirname=dirname
  11127. else
  11128. as_dirname=false
  11129. fi
  11130. as_me=`$as_basename -- "$0" ||
  11131. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  11132. X"$0" : 'X\(//\)$' \| \
  11133. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  11134. $as_echo X/"$0" |
  11135. sed '/^.*\/\([^/][^/]*\)\/*$/{
  11136. s//\1/
  11137. q
  11138. }
  11139. /^X\/\(\/\/\)$/{
  11140. s//\1/
  11141. q
  11142. }
  11143. /^X\/\(\/\).*/{
  11144. s//\1/
  11145. q
  11146. }
  11147. s/.*/./; q'`
  11148. # Avoid depending upon Character Ranges.
  11149. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  11150. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  11151. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  11152. as_cr_digits='0123456789'
  11153. as_cr_alnum=$as_cr_Letters$as_cr_digits
  11154. ECHO_C= ECHO_N= ECHO_T=
  11155. case `echo -n x` in #(((((
  11156. -n*)
  11157. case `echo 'xy\c'` in
  11158. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  11159. xy) ECHO_C='\c';;
  11160. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  11161. ECHO_T=' ';;
  11162. esac;;
  11163. *)
  11164. ECHO_N='-n';;
  11165. esac
  11166. rm -f conf$$ conf$$.exe conf$$.file
  11167. if test -d conf$$.dir; then
  11168. rm -f conf$$.dir/conf$$.file
  11169. else
  11170. rm -f conf$$.dir
  11171. mkdir conf$$.dir 2>/dev/null
  11172. fi
  11173. if (echo >conf$$.file) 2>/dev/null; then
  11174. if ln -s conf$$.file conf$$ 2>/dev/null; then
  11175. as_ln_s='ln -s'
  11176. # ... but there are two gotchas:
  11177. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  11178. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  11179. # In both cases, we have to default to `cp -pR'.
  11180. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  11181. as_ln_s='cp -pR'
  11182. elif ln conf$$.file conf$$ 2>/dev/null; then
  11183. as_ln_s=ln
  11184. else
  11185. as_ln_s='cp -pR'
  11186. fi
  11187. else
  11188. as_ln_s='cp -pR'
  11189. fi
  11190. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  11191. rmdir conf$$.dir 2>/dev/null
  11192. # as_fn_mkdir_p
  11193. # -------------
  11194. # Create "$as_dir" as a directory, including parents if necessary.
  11195. as_fn_mkdir_p ()
  11196. {
  11197. case $as_dir in #(
  11198. -*) as_dir=./$as_dir;;
  11199. esac
  11200. test -d "$as_dir" || eval $as_mkdir_p || {
  11201. as_dirs=
  11202. while :; do
  11203. case $as_dir in #(
  11204. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  11205. *) as_qdir=$as_dir;;
  11206. esac
  11207. as_dirs="'$as_qdir' $as_dirs"
  11208. as_dir=`$as_dirname -- "$as_dir" ||
  11209. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  11210. X"$as_dir" : 'X\(//\)[^/]' \| \
  11211. X"$as_dir" : 'X\(//\)$' \| \
  11212. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  11213. $as_echo X"$as_dir" |
  11214. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  11215. s//\1/
  11216. q
  11217. }
  11218. /^X\(\/\/\)[^/].*/{
  11219. s//\1/
  11220. q
  11221. }
  11222. /^X\(\/\/\)$/{
  11223. s//\1/
  11224. q
  11225. }
  11226. /^X\(\/\).*/{
  11227. s//\1/
  11228. q
  11229. }
  11230. s/.*/./; q'`
  11231. test -d "$as_dir" && break
  11232. done
  11233. test -z "$as_dirs" || eval "mkdir $as_dirs"
  11234. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  11235. } # as_fn_mkdir_p
  11236. if mkdir -p . 2>/dev/null; then
  11237. as_mkdir_p='mkdir -p "$as_dir"'
  11238. else
  11239. test -d ./-p && rmdir ./-p
  11240. as_mkdir_p=false
  11241. fi
  11242. # as_fn_executable_p FILE
  11243. # -----------------------
  11244. # Test if FILE is an executable regular file.
  11245. as_fn_executable_p ()
  11246. {
  11247. test -f "$1" && test -x "$1"
  11248. } # as_fn_executable_p
  11249. as_test_x='test -x'
  11250. as_executable_p=as_fn_executable_p
  11251. # Sed expression to map a string onto a valid CPP name.
  11252. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  11253. # Sed expression to map a string onto a valid variable name.
  11254. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  11255. exec 6>&1
  11256. ## ----------------------------------- ##
  11257. ## Main body of $CONFIG_STATUS script. ##
  11258. ## ----------------------------------- ##
  11259. _ASEOF
  11260. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  11261. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11262. # Save the log message, to keep $0 and so on meaningful, and to
  11263. # report actual input values of CONFIG_FILES etc. instead of their
  11264. # values after options handling.
  11265. ac_log="
  11266. This file was extended by LTO plugin for ld $as_me 0.1, which was
  11267. generated by GNU Autoconf 2.69. Invocation command line was
  11268. CONFIG_FILES = $CONFIG_FILES
  11269. CONFIG_HEADERS = $CONFIG_HEADERS
  11270. CONFIG_LINKS = $CONFIG_LINKS
  11271. CONFIG_COMMANDS = $CONFIG_COMMANDS
  11272. $ $0 $@
  11273. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  11274. "
  11275. _ACEOF
  11276. case $ac_config_files in *"
  11277. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  11278. esac
  11279. case $ac_config_headers in *"
  11280. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  11281. esac
  11282. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11283. # Files that config.status was made for.
  11284. config_files="$ac_config_files"
  11285. config_headers="$ac_config_headers"
  11286. config_commands="$ac_config_commands"
  11287. _ACEOF
  11288. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11289. ac_cs_usage="\
  11290. \`$as_me' instantiates files and other configuration actions
  11291. from templates according to the current configuration. Unless the files
  11292. and actions are specified as TAGs, all are instantiated by default.
  11293. Usage: $0 [OPTION]... [TAG]...
  11294. -h, --help print this help, then exit
  11295. -V, --version print version number and configuration settings, then exit
  11296. --config print configuration, then exit
  11297. -q, --quiet, --silent
  11298. do not print progress messages
  11299. -d, --debug don't remove temporary files
  11300. --recheck update $as_me by reconfiguring in the same conditions
  11301. --file=FILE[:TEMPLATE]
  11302. instantiate the configuration file FILE
  11303. --header=FILE[:TEMPLATE]
  11304. instantiate the configuration header FILE
  11305. Configuration files:
  11306. $config_files
  11307. Configuration headers:
  11308. $config_headers
  11309. Configuration commands:
  11310. $config_commands
  11311. Report bugs to the package provider."
  11312. _ACEOF
  11313. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11314. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  11315. ac_cs_version="\\
  11316. LTO plugin for ld config.status 0.1
  11317. configured by $0, generated by GNU Autoconf 2.69,
  11318. with options \\"\$ac_cs_config\\"
  11319. Copyright (C) 2012 Free Software Foundation, Inc.
  11320. This config.status script is free software; the Free Software Foundation
  11321. gives unlimited permission to copy, distribute and modify it."
  11322. ac_pwd='$ac_pwd'
  11323. srcdir='$srcdir'
  11324. INSTALL='$INSTALL'
  11325. MKDIR_P='$MKDIR_P'
  11326. AWK='$AWK'
  11327. test -n "\$AWK" || AWK=awk
  11328. _ACEOF
  11329. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11330. # The default lists apply if the user does not specify any file.
  11331. ac_need_defaults=:
  11332. while test $# != 0
  11333. do
  11334. case $1 in
  11335. --*=?*)
  11336. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11337. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  11338. ac_shift=:
  11339. ;;
  11340. --*=)
  11341. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  11342. ac_optarg=
  11343. ac_shift=:
  11344. ;;
  11345. *)
  11346. ac_option=$1
  11347. ac_optarg=$2
  11348. ac_shift=shift
  11349. ;;
  11350. esac
  11351. case $ac_option in
  11352. # Handling of the options.
  11353. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  11354. ac_cs_recheck=: ;;
  11355. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  11356. $as_echo "$ac_cs_version"; exit ;;
  11357. --config | --confi | --conf | --con | --co | --c )
  11358. $as_echo "$ac_cs_config"; exit ;;
  11359. --debug | --debu | --deb | --de | --d | -d )
  11360. debug=: ;;
  11361. --file | --fil | --fi | --f )
  11362. $ac_shift
  11363. case $ac_optarg in
  11364. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11365. '') as_fn_error $? "missing file argument" ;;
  11366. esac
  11367. as_fn_append CONFIG_FILES " '$ac_optarg'"
  11368. ac_need_defaults=false;;
  11369. --header | --heade | --head | --hea )
  11370. $ac_shift
  11371. case $ac_optarg in
  11372. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  11373. esac
  11374. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  11375. ac_need_defaults=false;;
  11376. --he | --h)
  11377. # Conflict between --help and --header
  11378. as_fn_error $? "ambiguous option: \`$1'
  11379. Try \`$0 --help' for more information.";;
  11380. --help | --hel | -h )
  11381. $as_echo "$ac_cs_usage"; exit ;;
  11382. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  11383. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  11384. ac_cs_silent=: ;;
  11385. # This is an error.
  11386. -*) as_fn_error $? "unrecognized option: \`$1'
  11387. Try \`$0 --help' for more information." ;;
  11388. *) as_fn_append ac_config_targets " $1"
  11389. ac_need_defaults=false ;;
  11390. esac
  11391. shift
  11392. done
  11393. ac_configure_extra_args=
  11394. if $ac_cs_silent; then
  11395. exec 6>/dev/null
  11396. ac_configure_extra_args="$ac_configure_extra_args --silent"
  11397. fi
  11398. _ACEOF
  11399. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11400. if \$ac_cs_recheck; then
  11401. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  11402. shift
  11403. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  11404. CONFIG_SHELL='$SHELL'
  11405. export CONFIG_SHELL
  11406. exec "\$@"
  11407. fi
  11408. _ACEOF
  11409. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11410. exec 5>>config.log
  11411. {
  11412. echo
  11413. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  11414. ## Running $as_me. ##
  11415. _ASBOX
  11416. $as_echo "$ac_log"
  11417. } >&5
  11418. _ACEOF
  11419. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11420. #
  11421. # INIT-COMMANDS
  11422. #
  11423. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  11424. # The HP-UX ksh and POSIX shell print the target directory to stdout
  11425. # if CDPATH is set.
  11426. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  11427. sed_quote_subst='$sed_quote_subst'
  11428. double_quote_subst='$double_quote_subst'
  11429. delay_variable_subst='$delay_variable_subst'
  11430. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  11431. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  11432. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  11433. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  11434. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  11435. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  11436. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  11437. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  11438. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  11439. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  11440. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  11441. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  11442. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  11443. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  11444. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  11445. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  11446. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  11447. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  11448. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  11449. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  11450. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  11451. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  11452. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  11453. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  11454. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  11455. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  11456. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  11457. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  11458. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  11459. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  11460. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  11461. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  11462. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  11463. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  11464. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  11465. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  11466. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  11467. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11468. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11469. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  11470. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  11471. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  11472. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  11473. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  11474. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  11475. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  11476. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  11477. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  11478. 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"`'
  11479. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  11480. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  11481. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  11482. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  11483. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  11484. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  11485. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  11486. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  11487. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  11488. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  11489. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  11490. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  11491. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  11492. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  11493. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  11494. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11495. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  11496. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  11497. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  11498. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  11499. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  11500. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  11501. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  11502. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  11503. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11504. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  11505. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  11506. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  11507. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11508. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  11509. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  11510. hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`'
  11511. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  11512. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  11513. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  11514. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  11515. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11516. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  11517. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  11518. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  11519. fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`'
  11520. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  11521. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  11522. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  11523. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  11524. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  11525. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  11526. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  11527. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  11528. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  11529. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  11530. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  11531. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  11532. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  11533. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  11534. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  11535. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  11536. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  11537. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  11538. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  11539. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  11540. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  11541. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  11542. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  11543. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  11544. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  11545. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  11546. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  11547. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  11548. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  11549. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  11550. LTCC='$LTCC'
  11551. LTCFLAGS='$LTCFLAGS'
  11552. compiler='$compiler_DEFAULT'
  11553. # A function that is used when there is no print builtin or printf.
  11554. func_fallback_echo ()
  11555. {
  11556. eval 'cat <<_LTECHO_EOF
  11557. \$1
  11558. _LTECHO_EOF'
  11559. }
  11560. # Quote evaled strings.
  11561. for var in SHELL \
  11562. ECHO \
  11563. SED \
  11564. GREP \
  11565. EGREP \
  11566. FGREP \
  11567. LD \
  11568. NM \
  11569. LN_S \
  11570. lt_SP2NL \
  11571. lt_NL2SP \
  11572. reload_flag \
  11573. OBJDUMP \
  11574. deplibs_check_method \
  11575. file_magic_cmd \
  11576. AR \
  11577. AR_FLAGS \
  11578. STRIP \
  11579. RANLIB \
  11580. CC \
  11581. CFLAGS \
  11582. compiler \
  11583. lt_cv_sys_global_symbol_pipe \
  11584. lt_cv_sys_global_symbol_to_cdecl \
  11585. lt_cv_sys_global_symbol_to_c_name_address \
  11586. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  11587. lt_prog_compiler_no_builtin_flag \
  11588. lt_prog_compiler_wl \
  11589. lt_prog_compiler_pic \
  11590. lt_prog_compiler_static \
  11591. lt_cv_prog_compiler_c_o \
  11592. need_locks \
  11593. DSYMUTIL \
  11594. NMEDIT \
  11595. LIPO \
  11596. OTOOL \
  11597. OTOOL64 \
  11598. shrext_cmds \
  11599. export_dynamic_flag_spec \
  11600. whole_archive_flag_spec \
  11601. compiler_needs_object \
  11602. with_gnu_ld \
  11603. allow_undefined_flag \
  11604. no_undefined_flag \
  11605. hardcode_libdir_flag_spec \
  11606. hardcode_libdir_flag_spec_ld \
  11607. hardcode_libdir_separator \
  11608. fix_srcfile_path \
  11609. exclude_expsyms \
  11610. include_expsyms \
  11611. file_list_spec \
  11612. variables_saved_for_relink \
  11613. libname_spec \
  11614. library_names_spec \
  11615. soname_spec \
  11616. install_override_mode \
  11617. finish_eval \
  11618. old_striplib \
  11619. striplib; do
  11620. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11621. *[\\\\\\\`\\"\\\$]*)
  11622. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  11623. ;;
  11624. *)
  11625. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11626. ;;
  11627. esac
  11628. done
  11629. # Double-quote double-evaled strings.
  11630. for var in reload_cmds \
  11631. old_postinstall_cmds \
  11632. old_postuninstall_cmds \
  11633. old_archive_cmds \
  11634. extract_expsyms_cmds \
  11635. old_archive_from_new_cmds \
  11636. old_archive_from_expsyms_cmds \
  11637. archive_cmds \
  11638. archive_expsym_cmds \
  11639. module_cmds \
  11640. module_expsym_cmds \
  11641. export_symbols_cmds \
  11642. prelink_cmds \
  11643. postinstall_cmds \
  11644. postuninstall_cmds \
  11645. finish_cmds \
  11646. sys_lib_search_path_spec \
  11647. sys_lib_dlsearch_path_spec; do
  11648. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  11649. *[\\\\\\\`\\"\\\$]*)
  11650. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  11651. ;;
  11652. *)
  11653. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  11654. ;;
  11655. esac
  11656. done
  11657. ac_aux_dir='$ac_aux_dir'
  11658. xsi_shell='$xsi_shell'
  11659. lt_shell_append='$lt_shell_append'
  11660. # See if we are running on zsh, and set the options which allow our
  11661. # commands through without removal of \ escapes INIT.
  11662. if test -n "\${ZSH_VERSION+set}" ; then
  11663. setopt NO_GLOB_SUBST
  11664. fi
  11665. PACKAGE='$PACKAGE'
  11666. VERSION='$VERSION'
  11667. TIMESTAMP='$TIMESTAMP'
  11668. RM='$RM'
  11669. ofile='$ofile'
  11670. _ACEOF
  11671. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11672. # Handling of arguments.
  11673. for ac_config_target in $ac_config_targets
  11674. do
  11675. case $ac_config_target in
  11676. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  11677. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  11678. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  11679. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  11680. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  11681. esac
  11682. done
  11683. # If the user did not use the arguments to specify the items to instantiate,
  11684. # then the envvar interface is used. Set only those that are not.
  11685. # We use the long form for the default assignment because of an extremely
  11686. # bizarre bug on SunOS 4.1.3.
  11687. if $ac_need_defaults; then
  11688. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  11689. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  11690. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  11691. fi
  11692. # Have a temporary directory for convenience. Make it in the build tree
  11693. # simply because there is no reason against having it here, and in addition,
  11694. # creating and moving files from /tmp can sometimes cause problems.
  11695. # Hook for its removal unless debugging.
  11696. # Note that there is a small window in which the directory will not be cleaned:
  11697. # after its creation but before its name has been assigned to `$tmp'.
  11698. $debug ||
  11699. {
  11700. tmp= ac_tmp=
  11701. trap 'exit_status=$?
  11702. : "${ac_tmp:=$tmp}"
  11703. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  11704. ' 0
  11705. trap 'as_fn_exit 1' 1 2 13 15
  11706. }
  11707. # Create a (secure) tmp directory for tmp files.
  11708. {
  11709. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  11710. test -d "$tmp"
  11711. } ||
  11712. {
  11713. tmp=./conf$$-$RANDOM
  11714. (umask 077 && mkdir "$tmp")
  11715. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  11716. ac_tmp=$tmp
  11717. # Set up the scripts for CONFIG_FILES section.
  11718. # No need to generate them if there are no CONFIG_FILES.
  11719. # This happens for instance with `./config.status config.h'.
  11720. if test -n "$CONFIG_FILES"; then
  11721. ac_cr=`echo X | tr X '\015'`
  11722. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  11723. # But we know of no other shell where ac_cr would be empty at this
  11724. # point, so we can use a bashism as a fallback.
  11725. if test "x$ac_cr" = x; then
  11726. eval ac_cr=\$\'\\r\'
  11727. fi
  11728. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  11729. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  11730. ac_cs_awk_cr='\\r'
  11731. else
  11732. ac_cs_awk_cr=$ac_cr
  11733. fi
  11734. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  11735. _ACEOF
  11736. {
  11737. echo "cat >conf$$subs.awk <<_ACEOF" &&
  11738. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  11739. echo "_ACEOF"
  11740. } >conf$$subs.sh ||
  11741. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11742. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  11743. ac_delim='%!_!# '
  11744. for ac_last_try in false false false false false :; do
  11745. . ./conf$$subs.sh ||
  11746. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11747. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  11748. if test $ac_delim_n = $ac_delim_num; then
  11749. break
  11750. elif $ac_last_try; then
  11751. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  11752. else
  11753. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11754. fi
  11755. done
  11756. rm -f conf$$subs.sh
  11757. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11758. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  11759. _ACEOF
  11760. sed -n '
  11761. h
  11762. s/^/S["/; s/!.*/"]=/
  11763. p
  11764. g
  11765. s/^[^!]*!//
  11766. :repl
  11767. t repl
  11768. s/'"$ac_delim"'$//
  11769. t delim
  11770. :nl
  11771. h
  11772. s/\(.\{148\}\)..*/\1/
  11773. t more1
  11774. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  11775. p
  11776. n
  11777. b repl
  11778. :more1
  11779. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11780. p
  11781. g
  11782. s/.\{148\}//
  11783. t nl
  11784. :delim
  11785. h
  11786. s/\(.\{148\}\)..*/\1/
  11787. t more2
  11788. s/["\\]/\\&/g; s/^/"/; s/$/"/
  11789. p
  11790. b
  11791. :more2
  11792. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  11793. p
  11794. g
  11795. s/.\{148\}//
  11796. t delim
  11797. ' <conf$$subs.awk | sed '
  11798. /^[^""]/{
  11799. N
  11800. s/\n//
  11801. }
  11802. ' >>$CONFIG_STATUS || ac_write_fail=1
  11803. rm -f conf$$subs.awk
  11804. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11805. _ACAWK
  11806. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  11807. for (key in S) S_is_set[key] = 1
  11808. FS = ""
  11809. }
  11810. {
  11811. line = $ 0
  11812. nfields = split(line, field, "@")
  11813. substed = 0
  11814. len = length(field[1])
  11815. for (i = 2; i < nfields; i++) {
  11816. key = field[i]
  11817. keylen = length(key)
  11818. if (S_is_set[key]) {
  11819. value = S[key]
  11820. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  11821. len += length(value) + length(field[++i])
  11822. substed = 1
  11823. } else
  11824. len += 1 + keylen
  11825. }
  11826. print line
  11827. }
  11828. _ACAWK
  11829. _ACEOF
  11830. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11831. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  11832. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  11833. else
  11834. cat
  11835. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  11836. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  11837. _ACEOF
  11838. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  11839. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  11840. # trailing colons and then remove the whole line if VPATH becomes empty
  11841. # (actually we leave an empty line to preserve line numbers).
  11842. if test "x$srcdir" = x.; then
  11843. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  11844. h
  11845. s///
  11846. s/^/:/
  11847. s/[ ]*$/:/
  11848. s/:\$(srcdir):/:/g
  11849. s/:\${srcdir}:/:/g
  11850. s/:@srcdir@:/:/g
  11851. s/^:*//
  11852. s/:*$//
  11853. x
  11854. s/\(=[ ]*\).*/\1/
  11855. G
  11856. s/\n//
  11857. s/^[^=]*=[ ]*$//
  11858. }'
  11859. fi
  11860. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11861. fi # test -n "$CONFIG_FILES"
  11862. # Set up the scripts for CONFIG_HEADERS section.
  11863. # No need to generate them if there are no CONFIG_HEADERS.
  11864. # This happens for instance with `./config.status Makefile'.
  11865. if test -n "$CONFIG_HEADERS"; then
  11866. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  11867. BEGIN {
  11868. _ACEOF
  11869. # Transform confdefs.h into an awk script `defines.awk', embedded as
  11870. # here-document in config.status, that substitutes the proper values into
  11871. # config.h.in to produce config.h.
  11872. # Create a delimiter string that does not exist in confdefs.h, to ease
  11873. # handling of long lines.
  11874. ac_delim='%!_!# '
  11875. for ac_last_try in false false :; do
  11876. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  11877. if test -z "$ac_tt"; then
  11878. break
  11879. elif $ac_last_try; then
  11880. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  11881. else
  11882. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  11883. fi
  11884. done
  11885. # For the awk script, D is an array of macro values keyed by name,
  11886. # likewise P contains macro parameters if any. Preserve backslash
  11887. # newline sequences.
  11888. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  11889. sed -n '
  11890. s/.\{148\}/&'"$ac_delim"'/g
  11891. t rset
  11892. :rset
  11893. s/^[ ]*#[ ]*define[ ][ ]*/ /
  11894. t def
  11895. d
  11896. :def
  11897. s/\\$//
  11898. t bsnl
  11899. s/["\\]/\\&/g
  11900. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11901. D["\1"]=" \3"/p
  11902. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  11903. d
  11904. :bsnl
  11905. s/["\\]/\\&/g
  11906. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  11907. D["\1"]=" \3\\\\\\n"\\/p
  11908. t cont
  11909. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  11910. t cont
  11911. d
  11912. :cont
  11913. n
  11914. s/.\{148\}/&'"$ac_delim"'/g
  11915. t clear
  11916. :clear
  11917. s/\\$//
  11918. t bsnlc
  11919. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  11920. d
  11921. :bsnlc
  11922. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  11923. b cont
  11924. ' <confdefs.h | sed '
  11925. s/'"$ac_delim"'/"\\\
  11926. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  11927. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  11928. for (key in D) D_is_set[key] = 1
  11929. FS = ""
  11930. }
  11931. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  11932. line = \$ 0
  11933. split(line, arg, " ")
  11934. if (arg[1] == "#") {
  11935. defundef = arg[2]
  11936. mac1 = arg[3]
  11937. } else {
  11938. defundef = substr(arg[1], 2)
  11939. mac1 = arg[2]
  11940. }
  11941. split(mac1, mac2, "(") #)
  11942. macro = mac2[1]
  11943. prefix = substr(line, 1, index(line, defundef) - 1)
  11944. if (D_is_set[macro]) {
  11945. # Preserve the white space surrounding the "#".
  11946. print prefix "define", macro P[macro] D[macro]
  11947. next
  11948. } else {
  11949. # Replace #undef with comments. This is necessary, for example,
  11950. # in the case of _POSIX_SOURCE, which is predefined and required
  11951. # on some systems where configure will not decide to define it.
  11952. if (defundef == "undef") {
  11953. print "/*", prefix defundef, macro, "*/"
  11954. next
  11955. }
  11956. }
  11957. }
  11958. { print }
  11959. _ACAWK
  11960. _ACEOF
  11961. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  11962. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  11963. fi # test -n "$CONFIG_HEADERS"
  11964. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  11965. shift
  11966. for ac_tag
  11967. do
  11968. case $ac_tag in
  11969. :[FHLC]) ac_mode=$ac_tag; continue;;
  11970. esac
  11971. case $ac_mode$ac_tag in
  11972. :[FHL]*:*);;
  11973. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  11974. :[FH]-) ac_tag=-:-;;
  11975. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  11976. esac
  11977. ac_save_IFS=$IFS
  11978. IFS=:
  11979. set x $ac_tag
  11980. IFS=$ac_save_IFS
  11981. shift
  11982. ac_file=$1
  11983. shift
  11984. case $ac_mode in
  11985. :L) ac_source=$1;;
  11986. :[FH])
  11987. ac_file_inputs=
  11988. for ac_f
  11989. do
  11990. case $ac_f in
  11991. -) ac_f="$ac_tmp/stdin";;
  11992. *) # Look for the file first in the build tree, then in the source tree
  11993. # (if the path is not absolute). The absolute path cannot be DOS-style,
  11994. # because $ac_f cannot contain `:'.
  11995. test -f "$ac_f" ||
  11996. case $ac_f in
  11997. [\\/$]*) false;;
  11998. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  11999. esac ||
  12000. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  12001. esac
  12002. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  12003. as_fn_append ac_file_inputs " '$ac_f'"
  12004. done
  12005. # Let's still pretend it is `configure' which instantiates (i.e., don't
  12006. # use $as_me), people would be surprised to read:
  12007. # /* config.h. Generated by config.status. */
  12008. configure_input='Generated from '`
  12009. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  12010. `' by configure.'
  12011. if test x"$ac_file" != x-; then
  12012. configure_input="$ac_file. $configure_input"
  12013. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  12014. $as_echo "$as_me: creating $ac_file" >&6;}
  12015. fi
  12016. # Neutralize special characters interpreted by sed in replacement strings.
  12017. case $configure_input in #(
  12018. *\&* | *\|* | *\\* )
  12019. ac_sed_conf_input=`$as_echo "$configure_input" |
  12020. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  12021. *) ac_sed_conf_input=$configure_input;;
  12022. esac
  12023. case $ac_tag in
  12024. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  12025. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  12026. esac
  12027. ;;
  12028. esac
  12029. ac_dir=`$as_dirname -- "$ac_file" ||
  12030. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12031. X"$ac_file" : 'X\(//\)[^/]' \| \
  12032. X"$ac_file" : 'X\(//\)$' \| \
  12033. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  12034. $as_echo X"$ac_file" |
  12035. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12036. s//\1/
  12037. q
  12038. }
  12039. /^X\(\/\/\)[^/].*/{
  12040. s//\1/
  12041. q
  12042. }
  12043. /^X\(\/\/\)$/{
  12044. s//\1/
  12045. q
  12046. }
  12047. /^X\(\/\).*/{
  12048. s//\1/
  12049. q
  12050. }
  12051. s/.*/./; q'`
  12052. as_dir="$ac_dir"; as_fn_mkdir_p
  12053. ac_builddir=.
  12054. case "$ac_dir" in
  12055. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12056. *)
  12057. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  12058. # A ".." for each directory in $ac_dir_suffix.
  12059. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  12060. case $ac_top_builddir_sub in
  12061. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  12062. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  12063. esac ;;
  12064. esac
  12065. ac_abs_top_builddir=$ac_pwd
  12066. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  12067. # for backward compatibility:
  12068. ac_top_builddir=$ac_top_build_prefix
  12069. case $srcdir in
  12070. .) # We are building in place.
  12071. ac_srcdir=.
  12072. ac_top_srcdir=$ac_top_builddir_sub
  12073. ac_abs_top_srcdir=$ac_pwd ;;
  12074. [\\/]* | ?:[\\/]* ) # Absolute name.
  12075. ac_srcdir=$srcdir$ac_dir_suffix;
  12076. ac_top_srcdir=$srcdir
  12077. ac_abs_top_srcdir=$srcdir ;;
  12078. *) # Relative name.
  12079. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  12080. ac_top_srcdir=$ac_top_build_prefix$srcdir
  12081. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  12082. esac
  12083. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  12084. case $ac_mode in
  12085. :F)
  12086. #
  12087. # CONFIG_FILE
  12088. #
  12089. case $INSTALL in
  12090. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  12091. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  12092. esac
  12093. ac_MKDIR_P=$MKDIR_P
  12094. case $MKDIR_P in
  12095. [\\/$]* | ?:[\\/]* ) ;;
  12096. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  12097. esac
  12098. _ACEOF
  12099. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12100. # If the template does not know about datarootdir, expand it.
  12101. # FIXME: This hack should be removed a few years after 2.60.
  12102. ac_datarootdir_hack=; ac_datarootdir_seen=
  12103. ac_sed_dataroot='
  12104. /datarootdir/ {
  12105. p
  12106. q
  12107. }
  12108. /@datadir@/p
  12109. /@docdir@/p
  12110. /@infodir@/p
  12111. /@localedir@/p
  12112. /@mandir@/p'
  12113. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  12114. *datarootdir*) ac_datarootdir_seen=yes;;
  12115. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  12116. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  12117. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  12118. _ACEOF
  12119. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12120. ac_datarootdir_hack='
  12121. s&@datadir@&$datadir&g
  12122. s&@docdir@&$docdir&g
  12123. s&@infodir@&$infodir&g
  12124. s&@localedir@&$localedir&g
  12125. s&@mandir@&$mandir&g
  12126. s&\\\${datarootdir}&$datarootdir&g' ;;
  12127. esac
  12128. _ACEOF
  12129. # Neutralize VPATH when `$srcdir' = `.'.
  12130. # Shell code in configure.ac might set extrasub.
  12131. # FIXME: do we really want to maintain this feature?
  12132. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  12133. ac_sed_extra="$ac_vpsub
  12134. $extrasub
  12135. _ACEOF
  12136. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  12137. :t
  12138. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  12139. s|@configure_input@|$ac_sed_conf_input|;t t
  12140. s&@top_builddir@&$ac_top_builddir_sub&;t t
  12141. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  12142. s&@srcdir@&$ac_srcdir&;t t
  12143. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  12144. s&@top_srcdir@&$ac_top_srcdir&;t t
  12145. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  12146. s&@builddir@&$ac_builddir&;t t
  12147. s&@abs_builddir@&$ac_abs_builddir&;t t
  12148. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  12149. s&@INSTALL@&$ac_INSTALL&;t t
  12150. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  12151. $ac_datarootdir_hack
  12152. "
  12153. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  12154. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12155. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  12156. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  12157. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  12158. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  12159. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12160. which seems to be undefined. Please make sure it is defined" >&5
  12161. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  12162. which seems to be undefined. Please make sure it is defined" >&2;}
  12163. rm -f "$ac_tmp/stdin"
  12164. case $ac_file in
  12165. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  12166. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  12167. esac \
  12168. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12169. ;;
  12170. :H)
  12171. #
  12172. # CONFIG_HEADER
  12173. #
  12174. if test x"$ac_file" != x-; then
  12175. {
  12176. $as_echo "/* $configure_input */" \
  12177. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  12178. } >"$ac_tmp/config.h" \
  12179. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12180. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  12181. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  12182. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  12183. else
  12184. rm -f "$ac_file"
  12185. mv "$ac_tmp/config.h" "$ac_file" \
  12186. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  12187. fi
  12188. else
  12189. $as_echo "/* $configure_input */" \
  12190. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  12191. || as_fn_error $? "could not create -" "$LINENO" 5
  12192. fi
  12193. # Compute "$ac_file"'s index in $config_headers.
  12194. _am_arg="$ac_file"
  12195. _am_stamp_count=1
  12196. for _am_header in $config_headers :; do
  12197. case $_am_header in
  12198. $_am_arg | $_am_arg:* )
  12199. break ;;
  12200. * )
  12201. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  12202. esac
  12203. done
  12204. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  12205. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12206. X"$_am_arg" : 'X\(//\)[^/]' \| \
  12207. X"$_am_arg" : 'X\(//\)$' \| \
  12208. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  12209. $as_echo X"$_am_arg" |
  12210. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12211. s//\1/
  12212. q
  12213. }
  12214. /^X\(\/\/\)[^/].*/{
  12215. s//\1/
  12216. q
  12217. }
  12218. /^X\(\/\/\)$/{
  12219. s//\1/
  12220. q
  12221. }
  12222. /^X\(\/\).*/{
  12223. s//\1/
  12224. q
  12225. }
  12226. s/.*/./; q'`/stamp-h$_am_stamp_count
  12227. ;;
  12228. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  12229. $as_echo "$as_me: executing $ac_file commands" >&6;}
  12230. ;;
  12231. esac
  12232. case $ac_file$ac_mode in
  12233. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  12234. # Older Autoconf quotes --file arguments for eval, but not when files
  12235. # are listed without --file. Let's play safe and only enable the eval
  12236. # if we detect the quoting.
  12237. case $CONFIG_FILES in
  12238. *\'*) eval set x "$CONFIG_FILES" ;;
  12239. *) set x $CONFIG_FILES ;;
  12240. esac
  12241. shift
  12242. for mf
  12243. do
  12244. # Strip MF so we end up with the name of the file.
  12245. mf=`echo "$mf" | sed -e 's/:.*$//'`
  12246. # Check whether this is an Automake generated Makefile or not.
  12247. # We used to match only the files named 'Makefile.in', but
  12248. # some people rename them; so instead we look at the file content.
  12249. # Grep'ing the first line is not enough: some people post-process
  12250. # each Makefile.in and add a new line on top of each file to say so.
  12251. # Grep'ing the whole file is not good either: AIX grep has a line
  12252. # limit of 2048, but all sed's we know have understand at least 4000.
  12253. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  12254. dirpart=`$as_dirname -- "$mf" ||
  12255. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12256. X"$mf" : 'X\(//\)[^/]' \| \
  12257. X"$mf" : 'X\(//\)$' \| \
  12258. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  12259. $as_echo X"$mf" |
  12260. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12261. s//\1/
  12262. q
  12263. }
  12264. /^X\(\/\/\)[^/].*/{
  12265. s//\1/
  12266. q
  12267. }
  12268. /^X\(\/\/\)$/{
  12269. s//\1/
  12270. q
  12271. }
  12272. /^X\(\/\).*/{
  12273. s//\1/
  12274. q
  12275. }
  12276. s/.*/./; q'`
  12277. else
  12278. continue
  12279. fi
  12280. # Extract the definition of DEPDIR, am__include, and am__quote
  12281. # from the Makefile without running 'make'.
  12282. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  12283. test -z "$DEPDIR" && continue
  12284. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  12285. test -z "$am__include" && continue
  12286. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  12287. # Find all dependency output files, they are included files with
  12288. # $(DEPDIR) in their names. We invoke sed twice because it is the
  12289. # simplest approach to changing $(DEPDIR) to its actual value in the
  12290. # expansion.
  12291. for file in `sed -n "
  12292. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  12293. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  12294. # Make sure the directory exists.
  12295. test -f "$dirpart/$file" && continue
  12296. fdir=`$as_dirname -- "$file" ||
  12297. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  12298. X"$file" : 'X\(//\)[^/]' \| \
  12299. X"$file" : 'X\(//\)$' \| \
  12300. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  12301. $as_echo X"$file" |
  12302. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  12303. s//\1/
  12304. q
  12305. }
  12306. /^X\(\/\/\)[^/].*/{
  12307. s//\1/
  12308. q
  12309. }
  12310. /^X\(\/\/\)$/{
  12311. s//\1/
  12312. q
  12313. }
  12314. /^X\(\/\).*/{
  12315. s//\1/
  12316. q
  12317. }
  12318. s/.*/./; q'`
  12319. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  12320. # echo "creating $dirpart/$file"
  12321. echo '# dummy' > "$dirpart/$file"
  12322. done
  12323. done
  12324. }
  12325. ;;
  12326. "libtool":C)
  12327. # See if we are running on zsh, and set the options which allow our
  12328. # commands through without removal of \ escapes.
  12329. if test -n "${ZSH_VERSION+set}" ; then
  12330. setopt NO_GLOB_SUBST
  12331. fi
  12332. cfgfile="${ofile}T"
  12333. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  12334. $RM "$cfgfile"
  12335. cat <<_LT_EOF >> "$cfgfile"
  12336. #! $SHELL
  12337. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  12338. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  12339. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  12340. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  12341. #
  12342. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  12343. # 2006, 2007, 2008, 2009 Free Software Foundation, Inc.
  12344. # Written by Gordon Matzigkeit, 1996
  12345. #
  12346. # This file is part of GNU Libtool.
  12347. #
  12348. # GNU Libtool is free software; you can redistribute it and/or
  12349. # modify it under the terms of the GNU General Public License as
  12350. # published by the Free Software Foundation; either version 2 of
  12351. # the License, or (at your option) any later version.
  12352. #
  12353. # As a special exception to the GNU General Public License,
  12354. # if you distribute this file as part of a program or library that
  12355. # is built using GNU Libtool, you may include this file under the
  12356. # same distribution terms that you use for the rest of that program.
  12357. #
  12358. # GNU Libtool is distributed in the hope that it will be useful,
  12359. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  12360. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12361. # GNU General Public License for more details.
  12362. #
  12363. # You should have received a copy of the GNU General Public License
  12364. # along with GNU Libtool; see the file COPYING. If not, a copy
  12365. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  12366. # obtained by writing to the Free Software Foundation, Inc.,
  12367. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  12368. # The names of the tagged configurations supported by this script.
  12369. available_tags=""
  12370. # ### BEGIN LIBTOOL CONFIG
  12371. # Which release of libtool.m4 was used?
  12372. macro_version=$macro_version
  12373. macro_revision=$macro_revision
  12374. # Whether or not to build shared libraries.
  12375. build_libtool_libs=$enable_shared
  12376. # Whether or not to build static libraries.
  12377. build_old_libs=$enable_static
  12378. # What type of objects to build.
  12379. pic_mode=$pic_mode
  12380. # Whether or not to optimize for fast installation.
  12381. fast_install=$enable_fast_install
  12382. # Shell to use when invoking shell scripts.
  12383. SHELL=$lt_SHELL
  12384. # An echo program that protects backslashes.
  12385. ECHO=$lt_ECHO
  12386. # The host system.
  12387. host_alias=$host_alias
  12388. host=$host
  12389. host_os=$host_os
  12390. # The build system.
  12391. build_alias=$build_alias
  12392. build=$build
  12393. build_os=$build_os
  12394. # A sed program that does not truncate output.
  12395. SED=$lt_SED
  12396. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  12397. Xsed="\$SED -e 1s/^X//"
  12398. # A grep program that handles long lines.
  12399. GREP=$lt_GREP
  12400. # An ERE matcher.
  12401. EGREP=$lt_EGREP
  12402. # A literal string matcher.
  12403. FGREP=$lt_FGREP
  12404. # A BSD- or MS-compatible name lister.
  12405. NM=$lt_NM
  12406. # Whether we need soft or hard links.
  12407. LN_S=$lt_LN_S
  12408. # What is the maximum length of a command?
  12409. max_cmd_len=$max_cmd_len
  12410. # Object file suffix (normally "o").
  12411. objext=$ac_objext
  12412. # Executable file suffix (normally "").
  12413. exeext=$exeext
  12414. # whether the shell understands "unset".
  12415. lt_unset=$lt_unset
  12416. # turn spaces into newlines.
  12417. SP2NL=$lt_lt_SP2NL
  12418. # turn newlines into spaces.
  12419. NL2SP=$lt_lt_NL2SP
  12420. # An object symbol dumper.
  12421. OBJDUMP=$lt_OBJDUMP
  12422. # Method to check whether dependent libraries are shared objects.
  12423. deplibs_check_method=$lt_deplibs_check_method
  12424. # Command to use when deplibs_check_method == "file_magic".
  12425. file_magic_cmd=$lt_file_magic_cmd
  12426. # The archiver.
  12427. AR=$lt_AR
  12428. AR_FLAGS=$lt_AR_FLAGS
  12429. # A symbol stripping program.
  12430. STRIP=$lt_STRIP
  12431. # Commands used to install an old-style archive.
  12432. RANLIB=$lt_RANLIB
  12433. old_postinstall_cmds=$lt_old_postinstall_cmds
  12434. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  12435. # Whether to use a lock for old archive extraction.
  12436. lock_old_archive_extraction=$lock_old_archive_extraction
  12437. # A C compiler.
  12438. LTCC=$lt_CC
  12439. # LTCC compiler flags.
  12440. LTCFLAGS=$lt_CFLAGS
  12441. # Take the output of nm and produce a listing of raw symbols and C names.
  12442. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  12443. # Transform the output of nm in a proper C declaration.
  12444. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  12445. # Transform the output of nm in a C name address pair.
  12446. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  12447. # Transform the output of nm in a C name address pair when lib prefix is needed.
  12448. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  12449. # The name of the directory that contains temporary libtool files.
  12450. objdir=$objdir
  12451. # Used to examine libraries when file_magic_cmd begins with "file".
  12452. MAGIC_CMD=$MAGIC_CMD
  12453. # Must we lock files when doing compilation?
  12454. need_locks=$lt_need_locks
  12455. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  12456. DSYMUTIL=$lt_DSYMUTIL
  12457. # Tool to change global to local symbols on Mac OS X.
  12458. NMEDIT=$lt_NMEDIT
  12459. # Tool to manipulate fat objects and archives on Mac OS X.
  12460. LIPO=$lt_LIPO
  12461. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  12462. OTOOL=$lt_OTOOL
  12463. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  12464. OTOOL64=$lt_OTOOL64
  12465. # Old archive suffix (normally "a").
  12466. libext=$libext
  12467. # Shared library suffix (normally ".so").
  12468. shrext_cmds=$lt_shrext_cmds
  12469. # The commands to extract the exported symbol list from a shared archive.
  12470. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  12471. # Variables whose values should be saved in libtool wrapper scripts and
  12472. # restored at link time.
  12473. variables_saved_for_relink=$lt_variables_saved_for_relink
  12474. # Do we need the "lib" prefix for modules?
  12475. need_lib_prefix=$need_lib_prefix
  12476. # Do we need a version for libraries?
  12477. need_version=$need_version
  12478. # Library versioning type.
  12479. version_type=$version_type
  12480. # Shared library runtime path variable.
  12481. runpath_var=$runpath_var
  12482. # Shared library path variable.
  12483. shlibpath_var=$shlibpath_var
  12484. # Is shlibpath searched before the hard-coded library search path?
  12485. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  12486. # Format of library name prefix.
  12487. libname_spec=$lt_libname_spec
  12488. # List of archive names. First name is the real one, the rest are links.
  12489. # The last name is the one that the linker finds with -lNAME
  12490. library_names_spec=$lt_library_names_spec
  12491. # The coded name of the library, if different from the real name.
  12492. soname_spec=$lt_soname_spec
  12493. # Permission mode override for installation of shared libraries.
  12494. install_override_mode=$lt_install_override_mode
  12495. # Command to use after installation of a shared archive.
  12496. postinstall_cmds=$lt_postinstall_cmds
  12497. # Command to use after uninstallation of a shared archive.
  12498. postuninstall_cmds=$lt_postuninstall_cmds
  12499. # Commands used to finish a libtool library installation in a directory.
  12500. finish_cmds=$lt_finish_cmds
  12501. # As "finish_cmds", except a single script fragment to be evaled but
  12502. # not shown.
  12503. finish_eval=$lt_finish_eval
  12504. # Whether we should hardcode library paths into libraries.
  12505. hardcode_into_libs=$hardcode_into_libs
  12506. # Compile-time system search path for libraries.
  12507. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  12508. # Run-time system search path for libraries.
  12509. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  12510. # Whether dlopen is supported.
  12511. dlopen_support=$enable_dlopen
  12512. # Whether dlopen of programs is supported.
  12513. dlopen_self=$enable_dlopen_self
  12514. # Whether dlopen of statically linked programs is supported.
  12515. dlopen_self_static=$enable_dlopen_self_static
  12516. # Commands to strip libraries.
  12517. old_striplib=$lt_old_striplib
  12518. striplib=$lt_striplib
  12519. # The linker used to build libraries.
  12520. LD=$lt_LD
  12521. # How to create reloadable object files.
  12522. reload_flag=$lt_reload_flag
  12523. reload_cmds=$lt_reload_cmds
  12524. # Commands used to build an old-style archive.
  12525. old_archive_cmds=$lt_old_archive_cmds
  12526. # A language specific compiler.
  12527. CC=$lt_compiler
  12528. # Is the compiler the GNU compiler?
  12529. with_gcc=$GCC
  12530. # Compiler flag to turn off builtin functions.
  12531. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  12532. # How to pass a linker flag through the compiler.
  12533. wl=$lt_lt_prog_compiler_wl
  12534. # Additional compiler flags for building library objects.
  12535. pic_flag=$lt_lt_prog_compiler_pic
  12536. # Compiler flag to prevent dynamic linking.
  12537. link_static_flag=$lt_lt_prog_compiler_static
  12538. # Does compiler simultaneously support -c and -o options?
  12539. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  12540. # Whether or not to add -lc for building shared libraries.
  12541. build_libtool_need_lc=$archive_cmds_need_lc
  12542. # Whether or not to disallow shared libs when runtime libs are static.
  12543. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  12544. # Compiler flag to allow reflexive dlopens.
  12545. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  12546. # Compiler flag to generate shared objects directly from archives.
  12547. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  12548. # Whether the compiler copes with passing no objects directly.
  12549. compiler_needs_object=$lt_compiler_needs_object
  12550. # Create an old-style archive from a shared archive.
  12551. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  12552. # Create a temporary old-style archive to link instead of a shared archive.
  12553. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  12554. # Commands used to build a shared archive.
  12555. archive_cmds=$lt_archive_cmds
  12556. archive_expsym_cmds=$lt_archive_expsym_cmds
  12557. # Commands used to build a loadable module if different from building
  12558. # a shared archive.
  12559. module_cmds=$lt_module_cmds
  12560. module_expsym_cmds=$lt_module_expsym_cmds
  12561. # Whether we are building with GNU ld or not.
  12562. with_gnu_ld=$lt_with_gnu_ld
  12563. # Flag that allows shared libraries with undefined symbols to be built.
  12564. allow_undefined_flag=$lt_allow_undefined_flag
  12565. # Flag that enforces no undefined symbols.
  12566. no_undefined_flag=$lt_no_undefined_flag
  12567. # Flag to hardcode \$libdir into a binary during linking.
  12568. # This must work even if \$libdir does not exist
  12569. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  12570. # If ld is used when linking, flag to hardcode \$libdir into a binary
  12571. # during linking. This must work even if \$libdir does not exist.
  12572. hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld
  12573. # Whether we need a single "-rpath" flag with a separated argument.
  12574. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  12575. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12576. # DIR into the resulting binary.
  12577. hardcode_direct=$hardcode_direct
  12578. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  12579. # DIR into the resulting binary and the resulting library dependency is
  12580. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  12581. # library is relocated.
  12582. hardcode_direct_absolute=$hardcode_direct_absolute
  12583. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  12584. # into the resulting binary.
  12585. hardcode_minus_L=$hardcode_minus_L
  12586. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  12587. # into the resulting binary.
  12588. hardcode_shlibpath_var=$hardcode_shlibpath_var
  12589. # Set to "yes" if building a shared library automatically hardcodes DIR
  12590. # into the library and all subsequent libraries and executables linked
  12591. # against it.
  12592. hardcode_automatic=$hardcode_automatic
  12593. # Set to yes if linker adds runtime paths of dependent libraries
  12594. # to runtime path list.
  12595. inherit_rpath=$inherit_rpath
  12596. # Whether libtool must link a program against all its dependency libraries.
  12597. link_all_deplibs=$link_all_deplibs
  12598. # Fix the shell variable \$srcfile for the compiler.
  12599. fix_srcfile_path=$lt_fix_srcfile_path
  12600. # Set to "yes" if exported symbols are required.
  12601. always_export_symbols=$always_export_symbols
  12602. # The commands to list exported symbols.
  12603. export_symbols_cmds=$lt_export_symbols_cmds
  12604. # Symbols that should not be listed in the preloaded symbols.
  12605. exclude_expsyms=$lt_exclude_expsyms
  12606. # Symbols that must always be exported.
  12607. include_expsyms=$lt_include_expsyms
  12608. # Commands necessary for linking programs (against libraries) with templates.
  12609. prelink_cmds=$lt_prelink_cmds
  12610. # Specify filename containing input files.
  12611. file_list_spec=$lt_file_list_spec
  12612. # How to hardcode a shared library path into an executable.
  12613. hardcode_action=$hardcode_action
  12614. # ### END LIBTOOL CONFIG
  12615. _LT_EOF
  12616. case $host_os in
  12617. aix3*)
  12618. cat <<\_LT_EOF >> "$cfgfile"
  12619. # AIX sometimes has problems with the GCC collect2 program. For some
  12620. # reason, if we set the COLLECT_NAMES environment variable, the problems
  12621. # vanish in a puff of smoke.
  12622. if test "X${COLLECT_NAMES+set}" != Xset; then
  12623. COLLECT_NAMES=
  12624. export COLLECT_NAMES
  12625. fi
  12626. _LT_EOF
  12627. ;;
  12628. esac
  12629. ltmain="$ac_aux_dir/ltmain.sh"
  12630. # We use sed instead of cat because bash on DJGPP gets confused if
  12631. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  12632. # text mode, it properly converts lines to CR/LF. This bash problem
  12633. # is reportedly fixed, but why not run on old versions too?
  12634. sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \
  12635. || (rm -f "$cfgfile"; exit 1)
  12636. case $xsi_shell in
  12637. yes)
  12638. cat << \_LT_EOF >> "$cfgfile"
  12639. # func_dirname file append nondir_replacement
  12640. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12641. # otherwise set result to NONDIR_REPLACEMENT.
  12642. func_dirname ()
  12643. {
  12644. case ${1} in
  12645. */*) func_dirname_result="${1%/*}${2}" ;;
  12646. * ) func_dirname_result="${3}" ;;
  12647. esac
  12648. }
  12649. # func_basename file
  12650. func_basename ()
  12651. {
  12652. func_basename_result="${1##*/}"
  12653. }
  12654. # func_dirname_and_basename file append nondir_replacement
  12655. # perform func_basename and func_dirname in a single function
  12656. # call:
  12657. # dirname: Compute the dirname of FILE. If nonempty,
  12658. # add APPEND to the result, otherwise set result
  12659. # to NONDIR_REPLACEMENT.
  12660. # value returned in "$func_dirname_result"
  12661. # basename: Compute filename of FILE.
  12662. # value retuned in "$func_basename_result"
  12663. # Implementation must be kept synchronized with func_dirname
  12664. # and func_basename. For efficiency, we do not delegate to
  12665. # those functions but instead duplicate the functionality here.
  12666. func_dirname_and_basename ()
  12667. {
  12668. case ${1} in
  12669. */*) func_dirname_result="${1%/*}${2}" ;;
  12670. * ) func_dirname_result="${3}" ;;
  12671. esac
  12672. func_basename_result="${1##*/}"
  12673. }
  12674. # func_stripname prefix suffix name
  12675. # strip PREFIX and SUFFIX off of NAME.
  12676. # PREFIX and SUFFIX must not contain globbing or regex special
  12677. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12678. # dot (in which case that matches only a dot).
  12679. func_stripname ()
  12680. {
  12681. # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are
  12682. # positional parameters, so assign one to ordinary parameter first.
  12683. func_stripname_result=${3}
  12684. func_stripname_result=${func_stripname_result#"${1}"}
  12685. func_stripname_result=${func_stripname_result%"${2}"}
  12686. }
  12687. # func_opt_split
  12688. func_opt_split ()
  12689. {
  12690. func_opt_split_opt=${1%%=*}
  12691. func_opt_split_arg=${1#*=}
  12692. }
  12693. # func_lo2o object
  12694. func_lo2o ()
  12695. {
  12696. case ${1} in
  12697. *.lo) func_lo2o_result=${1%.lo}.${objext} ;;
  12698. *) func_lo2o_result=${1} ;;
  12699. esac
  12700. }
  12701. # func_xform libobj-or-source
  12702. func_xform ()
  12703. {
  12704. func_xform_result=${1%.*}.lo
  12705. }
  12706. # func_arith arithmetic-term...
  12707. func_arith ()
  12708. {
  12709. func_arith_result=$(( $* ))
  12710. }
  12711. # func_len string
  12712. # STRING may not start with a hyphen.
  12713. func_len ()
  12714. {
  12715. func_len_result=${#1}
  12716. }
  12717. _LT_EOF
  12718. ;;
  12719. *) # Bourne compatible functions.
  12720. cat << \_LT_EOF >> "$cfgfile"
  12721. # func_dirname file append nondir_replacement
  12722. # Compute the dirname of FILE. If nonempty, add APPEND to the result,
  12723. # otherwise set result to NONDIR_REPLACEMENT.
  12724. func_dirname ()
  12725. {
  12726. # Extract subdirectory from the argument.
  12727. func_dirname_result=`$ECHO "${1}" | $SED "$dirname"`
  12728. if test "X$func_dirname_result" = "X${1}"; then
  12729. func_dirname_result="${3}"
  12730. else
  12731. func_dirname_result="$func_dirname_result${2}"
  12732. fi
  12733. }
  12734. # func_basename file
  12735. func_basename ()
  12736. {
  12737. func_basename_result=`$ECHO "${1}" | $SED "$basename"`
  12738. }
  12739. # func_stripname prefix suffix name
  12740. # strip PREFIX and SUFFIX off of NAME.
  12741. # PREFIX and SUFFIX must not contain globbing or regex special
  12742. # characters, hashes, percent signs, but SUFFIX may contain a leading
  12743. # dot (in which case that matches only a dot).
  12744. # func_strip_suffix prefix name
  12745. func_stripname ()
  12746. {
  12747. case ${2} in
  12748. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  12749. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  12750. esac
  12751. }
  12752. # sed scripts:
  12753. my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q'
  12754. my_sed_long_arg='1s/^-[^=]*=//'
  12755. # func_opt_split
  12756. func_opt_split ()
  12757. {
  12758. func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"`
  12759. func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"`
  12760. }
  12761. # func_lo2o object
  12762. func_lo2o ()
  12763. {
  12764. func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"`
  12765. }
  12766. # func_xform libobj-or-source
  12767. func_xform ()
  12768. {
  12769. func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'`
  12770. }
  12771. # func_arith arithmetic-term...
  12772. func_arith ()
  12773. {
  12774. func_arith_result=`expr "$@"`
  12775. }
  12776. # func_len string
  12777. # STRING may not start with a hyphen.
  12778. func_len ()
  12779. {
  12780. func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len`
  12781. }
  12782. _LT_EOF
  12783. esac
  12784. case $lt_shell_append in
  12785. yes)
  12786. cat << \_LT_EOF >> "$cfgfile"
  12787. # func_append var value
  12788. # Append VALUE to the end of shell variable VAR.
  12789. func_append ()
  12790. {
  12791. eval "$1+=\$2"
  12792. }
  12793. _LT_EOF
  12794. ;;
  12795. *)
  12796. cat << \_LT_EOF >> "$cfgfile"
  12797. # func_append var value
  12798. # Append VALUE to the end of shell variable VAR.
  12799. func_append ()
  12800. {
  12801. eval "$1=\$$1\$2"
  12802. }
  12803. _LT_EOF
  12804. ;;
  12805. esac
  12806. sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \
  12807. || (rm -f "$cfgfile"; exit 1)
  12808. mv -f "$cfgfile" "$ofile" ||
  12809. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  12810. chmod +x "$ofile"
  12811. ;;
  12812. esac
  12813. done # for ac_tag
  12814. as_fn_exit 0
  12815. _ACEOF
  12816. ac_clean_files=$ac_clean_files_save
  12817. test $ac_write_fail = 0 ||
  12818. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  12819. # configure is writing to config.log, and then calls config.status.
  12820. # config.status does its own redirection, appending to config.log.
  12821. # Unfortunately, on DOS this fails, as config.log is still kept open
  12822. # by configure, so config.status won't be able to write to it; its
  12823. # output is simply discarded. So we exec the FD to /dev/null,
  12824. # effectively closing config.log, so it can be properly (re)opened and
  12825. # appended to by config.status. When coming back to configure, we
  12826. # need to make the FD available again.
  12827. if test "$no_create" != yes; then
  12828. ac_cs_success=:
  12829. ac_config_status_args=
  12830. test "$silent" = yes &&
  12831. ac_config_status_args="$ac_config_status_args --quiet"
  12832. exec 5>/dev/null
  12833. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  12834. exec 5>>config.log
  12835. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  12836. # would make configure fail if this is the last instruction.
  12837. $ac_cs_success || as_fn_exit 1
  12838. fi
  12839. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  12840. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  12841. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  12842. fi