1
0

configure 574 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020202120222023202420252026202720282029203020312032203320342035203620372038203920402041204220432044204520462047204820492050205120522053205420552056205720582059206020612062206320642065206620672068206920702071207220732074207520762077207820792080208120822083208420852086208720882089209020912092209320942095209620972098209921002101210221032104210521062107210821092110211121122113211421152116211721182119212021212122212321242125212621272128212921302131213221332134213521362137213821392140214121422143214421452146214721482149215021512152215321542155215621572158215921602161216221632164216521662167216821692170217121722173217421752176217721782179218021812182218321842185218621872188218921902191219221932194219521962197219821992200220122022203220422052206220722082209221022112212221322142215221622172218221922202221222222232224222522262227222822292230223122322233223422352236223722382239224022412242224322442245224622472248224922502251225222532254225522562257225822592260226122622263226422652266226722682269227022712272227322742275227622772278227922802281228222832284228522862287228822892290229122922293229422952296229722982299230023012302230323042305230623072308230923102311231223132314231523162317231823192320232123222323232423252326232723282329233023312332233323342335233623372338233923402341234223432344234523462347234823492350235123522353235423552356235723582359236023612362236323642365236623672368236923702371237223732374237523762377237823792380238123822383238423852386238723882389239023912392239323942395239623972398239924002401240224032404240524062407240824092410241124122413241424152416241724182419242024212422242324242425242624272428242924302431243224332434243524362437243824392440244124422443244424452446244724482449245024512452245324542455245624572458245924602461246224632464246524662467246824692470247124722473247424752476247724782479248024812482248324842485248624872488248924902491249224932494249524962497249824992500250125022503250425052506250725082509251025112512251325142515251625172518251925202521252225232524252525262527252825292530253125322533253425352536253725382539254025412542254325442545254625472548254925502551255225532554255525562557255825592560256125622563256425652566256725682569257025712572257325742575257625772578257925802581258225832584258525862587258825892590259125922593259425952596259725982599260026012602260326042605260626072608260926102611261226132614261526162617261826192620262126222623262426252626262726282629263026312632263326342635263626372638263926402641264226432644264526462647264826492650265126522653265426552656265726582659266026612662266326642665266626672668266926702671267226732674267526762677267826792680268126822683268426852686268726882689269026912692269326942695269626972698269927002701270227032704270527062707270827092710271127122713271427152716271727182719272027212722272327242725272627272728272927302731273227332734273527362737273827392740274127422743274427452746274727482749275027512752275327542755275627572758275927602761276227632764276527662767276827692770277127722773277427752776277727782779278027812782278327842785278627872788278927902791279227932794279527962797279827992800280128022803280428052806280728082809281028112812281328142815281628172818281928202821282228232824282528262827282828292830283128322833283428352836283728382839284028412842284328442845284628472848284928502851285228532854285528562857285828592860286128622863286428652866286728682869287028712872287328742875287628772878287928802881288228832884288528862887288828892890289128922893289428952896289728982899290029012902290329042905290629072908290929102911291229132914291529162917291829192920292129222923292429252926292729282929293029312932293329342935293629372938293929402941294229432944294529462947294829492950295129522953295429552956295729582959296029612962296329642965296629672968296929702971297229732974297529762977297829792980298129822983298429852986298729882989299029912992299329942995299629972998299930003001300230033004300530063007300830093010301130123013301430153016301730183019302030213022302330243025302630273028302930303031303230333034303530363037303830393040304130423043304430453046304730483049305030513052305330543055305630573058305930603061306230633064306530663067306830693070307130723073307430753076307730783079308030813082308330843085308630873088308930903091309230933094309530963097309830993100310131023103310431053106310731083109311031113112311331143115311631173118311931203121312231233124312531263127312831293130313131323133313431353136313731383139314031413142314331443145314631473148314931503151315231533154315531563157315831593160316131623163316431653166316731683169317031713172317331743175317631773178317931803181318231833184318531863187318831893190319131923193319431953196319731983199320032013202320332043205320632073208320932103211321232133214321532163217321832193220322132223223322432253226322732283229323032313232323332343235323632373238323932403241324232433244324532463247324832493250325132523253325432553256325732583259326032613262326332643265326632673268326932703271327232733274327532763277327832793280328132823283328432853286328732883289329032913292329332943295329632973298329933003301330233033304330533063307330833093310331133123313331433153316331733183319332033213322332333243325332633273328332933303331333233333334333533363337333833393340334133423343334433453346334733483349335033513352335333543355335633573358335933603361336233633364336533663367336833693370337133723373337433753376337733783379338033813382338333843385338633873388338933903391339233933394339533963397339833993400340134023403340434053406340734083409341034113412341334143415341634173418341934203421342234233424342534263427342834293430343134323433343434353436343734383439344034413442344334443445344634473448344934503451345234533454345534563457345834593460346134623463346434653466346734683469347034713472347334743475347634773478347934803481348234833484348534863487348834893490349134923493349434953496349734983499350035013502350335043505350635073508350935103511351235133514351535163517351835193520352135223523352435253526352735283529353035313532353335343535353635373538353935403541354235433544354535463547354835493550355135523553355435553556355735583559356035613562356335643565356635673568356935703571357235733574357535763577357835793580358135823583358435853586358735883589359035913592359335943595359635973598359936003601360236033604360536063607360836093610361136123613361436153616361736183619362036213622362336243625362636273628362936303631363236333634363536363637363836393640364136423643364436453646364736483649365036513652365336543655365636573658365936603661366236633664366536663667366836693670367136723673367436753676367736783679368036813682368336843685368636873688368936903691369236933694369536963697369836993700370137023703370437053706370737083709371037113712371337143715371637173718371937203721372237233724372537263727372837293730373137323733373437353736373737383739374037413742374337443745374637473748374937503751375237533754375537563757375837593760376137623763376437653766376737683769377037713772377337743775377637773778377937803781378237833784378537863787378837893790379137923793379437953796379737983799380038013802380338043805380638073808380938103811381238133814381538163817381838193820382138223823382438253826382738283829383038313832383338343835383638373838383938403841384238433844384538463847384838493850385138523853385438553856385738583859386038613862386338643865386638673868386938703871387238733874387538763877387838793880388138823883388438853886388738883889389038913892389338943895389638973898389939003901390239033904390539063907390839093910391139123913391439153916391739183919392039213922392339243925392639273928392939303931393239333934393539363937393839393940394139423943394439453946394739483949395039513952395339543955395639573958395939603961396239633964396539663967396839693970397139723973397439753976397739783979398039813982398339843985398639873988398939903991399239933994399539963997399839994000400140024003400440054006400740084009401040114012401340144015401640174018401940204021402240234024402540264027402840294030403140324033403440354036403740384039404040414042404340444045404640474048404940504051405240534054405540564057405840594060406140624063406440654066406740684069407040714072407340744075407640774078407940804081408240834084408540864087408840894090409140924093409440954096409740984099410041014102410341044105410641074108410941104111411241134114411541164117411841194120412141224123412441254126412741284129413041314132413341344135413641374138413941404141414241434144414541464147414841494150415141524153415441554156415741584159416041614162416341644165416641674168416941704171417241734174417541764177417841794180418141824183418441854186418741884189419041914192419341944195419641974198419942004201420242034204420542064207420842094210421142124213421442154216421742184219422042214222422342244225422642274228422942304231423242334234423542364237423842394240424142424243424442454246424742484249425042514252425342544255425642574258425942604261426242634264426542664267426842694270427142724273427442754276427742784279428042814282428342844285428642874288428942904291429242934294429542964297429842994300430143024303430443054306430743084309431043114312431343144315431643174318431943204321432243234324432543264327432843294330433143324333433443354336433743384339434043414342434343444345434643474348434943504351435243534354435543564357435843594360436143624363436443654366436743684369437043714372437343744375437643774378437943804381438243834384438543864387438843894390439143924393439443954396439743984399440044014402440344044405440644074408440944104411441244134414441544164417441844194420442144224423442444254426442744284429443044314432443344344435443644374438443944404441444244434444444544464447444844494450445144524453445444554456445744584459446044614462446344644465446644674468446944704471447244734474447544764477447844794480448144824483448444854486448744884489449044914492449344944495449644974498449945004501450245034504450545064507450845094510451145124513451445154516451745184519452045214522452345244525452645274528452945304531453245334534453545364537453845394540454145424543454445454546454745484549455045514552455345544555455645574558455945604561456245634564456545664567456845694570457145724573457445754576457745784579458045814582458345844585458645874588458945904591459245934594459545964597459845994600460146024603460446054606460746084609461046114612461346144615461646174618461946204621462246234624462546264627462846294630463146324633463446354636463746384639464046414642464346444645464646474648464946504651465246534654465546564657465846594660466146624663466446654666466746684669467046714672467346744675467646774678467946804681468246834684468546864687468846894690469146924693469446954696469746984699470047014702470347044705470647074708470947104711471247134714471547164717471847194720472147224723472447254726472747284729473047314732473347344735473647374738473947404741474247434744474547464747474847494750475147524753475447554756475747584759476047614762476347644765476647674768476947704771477247734774477547764777477847794780478147824783478447854786478747884789479047914792479347944795479647974798479948004801480248034804480548064807480848094810481148124813481448154816481748184819482048214822482348244825482648274828482948304831483248334834483548364837483848394840484148424843484448454846484748484849485048514852485348544855485648574858485948604861486248634864486548664867486848694870487148724873487448754876487748784879488048814882488348844885488648874888488948904891489248934894489548964897489848994900490149024903490449054906490749084909491049114912491349144915491649174918491949204921492249234924492549264927492849294930493149324933493449354936493749384939494049414942494349444945494649474948494949504951495249534954495549564957495849594960496149624963496449654966496749684969497049714972497349744975497649774978497949804981498249834984498549864987498849894990499149924993499449954996499749984999500050015002500350045005500650075008500950105011501250135014501550165017501850195020502150225023502450255026502750285029503050315032503350345035503650375038503950405041504250435044504550465047504850495050505150525053505450555056505750585059506050615062506350645065506650675068506950705071507250735074507550765077507850795080508150825083508450855086508750885089509050915092509350945095509650975098509951005101510251035104510551065107510851095110511151125113511451155116511751185119512051215122512351245125512651275128512951305131513251335134513551365137513851395140514151425143514451455146514751485149515051515152515351545155515651575158515951605161516251635164516551665167516851695170517151725173517451755176517751785179518051815182518351845185518651875188518951905191519251935194519551965197519851995200520152025203520452055206520752085209521052115212521352145215521652175218521952205221522252235224522552265227522852295230523152325233523452355236523752385239524052415242524352445245524652475248524952505251525252535254525552565257525852595260526152625263526452655266526752685269527052715272527352745275527652775278527952805281528252835284528552865287528852895290529152925293529452955296529752985299530053015302530353045305530653075308530953105311531253135314531553165317531853195320532153225323532453255326532753285329533053315332533353345335533653375338533953405341534253435344534553465347534853495350535153525353535453555356535753585359536053615362536353645365536653675368536953705371537253735374537553765377537853795380538153825383538453855386538753885389539053915392539353945395539653975398539954005401540254035404540554065407540854095410541154125413541454155416541754185419542054215422542354245425542654275428542954305431543254335434543554365437543854395440544154425443544454455446544754485449545054515452545354545455545654575458545954605461546254635464546554665467546854695470547154725473547454755476547754785479548054815482548354845485548654875488548954905491549254935494549554965497549854995500550155025503550455055506550755085509551055115512551355145515551655175518551955205521552255235524552555265527552855295530553155325533553455355536553755385539554055415542554355445545554655475548554955505551555255535554555555565557555855595560556155625563556455655566556755685569557055715572557355745575557655775578557955805581558255835584558555865587558855895590559155925593559455955596559755985599560056015602560356045605560656075608560956105611561256135614561556165617561856195620562156225623562456255626562756285629563056315632563356345635563656375638563956405641564256435644564556465647564856495650565156525653565456555656565756585659566056615662566356645665566656675668566956705671567256735674567556765677567856795680568156825683568456855686568756885689569056915692569356945695569656975698569957005701570257035704570557065707570857095710571157125713571457155716571757185719572057215722572357245725572657275728572957305731573257335734573557365737573857395740574157425743574457455746574757485749575057515752575357545755575657575758575957605761576257635764576557665767576857695770577157725773577457755776577757785779578057815782578357845785578657875788578957905791579257935794579557965797579857995800580158025803580458055806580758085809581058115812581358145815581658175818581958205821582258235824582558265827582858295830583158325833583458355836583758385839584058415842584358445845584658475848584958505851585258535854585558565857585858595860586158625863586458655866586758685869587058715872587358745875587658775878587958805881588258835884588558865887588858895890589158925893589458955896589758985899590059015902590359045905590659075908590959105911591259135914591559165917591859195920592159225923592459255926592759285929593059315932593359345935593659375938593959405941594259435944594559465947594859495950595159525953595459555956595759585959596059615962596359645965596659675968596959705971597259735974597559765977597859795980598159825983598459855986598759885989599059915992599359945995599659975998599960006001600260036004600560066007600860096010601160126013601460156016601760186019602060216022602360246025602660276028602960306031603260336034603560366037603860396040604160426043604460456046604760486049605060516052605360546055605660576058605960606061606260636064606560666067606860696070607160726073607460756076607760786079608060816082608360846085608660876088608960906091609260936094609560966097609860996100610161026103610461056106610761086109611061116112611361146115611661176118611961206121612261236124612561266127612861296130613161326133613461356136613761386139614061416142614361446145614661476148614961506151615261536154615561566157615861596160616161626163616461656166616761686169617061716172617361746175617661776178617961806181618261836184618561866187618861896190619161926193619461956196619761986199620062016202620362046205620662076208620962106211621262136214621562166217621862196220622162226223622462256226622762286229623062316232623362346235623662376238623962406241624262436244624562466247624862496250625162526253625462556256625762586259626062616262626362646265626662676268626962706271627262736274627562766277627862796280628162826283628462856286628762886289629062916292629362946295629662976298629963006301630263036304630563066307630863096310631163126313631463156316631763186319632063216322632363246325632663276328632963306331633263336334633563366337633863396340634163426343634463456346634763486349635063516352635363546355635663576358635963606361636263636364636563666367636863696370637163726373637463756376637763786379638063816382638363846385638663876388638963906391639263936394639563966397639863996400640164026403640464056406640764086409641064116412641364146415641664176418641964206421642264236424642564266427642864296430643164326433643464356436643764386439644064416442644364446445644664476448644964506451645264536454645564566457645864596460646164626463646464656466646764686469647064716472647364746475647664776478647964806481648264836484648564866487648864896490649164926493649464956496649764986499650065016502650365046505650665076508650965106511651265136514651565166517651865196520652165226523652465256526652765286529653065316532653365346535653665376538653965406541654265436544654565466547654865496550655165526553655465556556655765586559656065616562656365646565656665676568656965706571657265736574657565766577657865796580658165826583658465856586658765886589659065916592659365946595659665976598659966006601660266036604660566066607660866096610661166126613661466156616661766186619662066216622662366246625662666276628662966306631663266336634663566366637663866396640664166426643664466456646664766486649665066516652665366546655665666576658665966606661666266636664666566666667666866696670667166726673667466756676667766786679668066816682668366846685668666876688668966906691669266936694669566966697669866996700670167026703670467056706670767086709671067116712671367146715671667176718671967206721672267236724672567266727672867296730673167326733673467356736673767386739674067416742674367446745674667476748674967506751675267536754675567566757675867596760676167626763676467656766676767686769677067716772677367746775677667776778677967806781678267836784678567866787678867896790679167926793679467956796679767986799680068016802680368046805680668076808680968106811681268136814681568166817681868196820682168226823682468256826682768286829683068316832683368346835683668376838683968406841684268436844684568466847684868496850685168526853685468556856685768586859686068616862686368646865686668676868686968706871687268736874687568766877687868796880688168826883688468856886688768886889689068916892689368946895689668976898689969006901690269036904690569066907690869096910691169126913691469156916691769186919692069216922692369246925692669276928692969306931693269336934693569366937693869396940694169426943694469456946694769486949695069516952695369546955695669576958695969606961696269636964696569666967696869696970697169726973697469756976697769786979698069816982698369846985698669876988698969906991699269936994699569966997699869997000700170027003700470057006700770087009701070117012701370147015701670177018701970207021702270237024702570267027702870297030703170327033703470357036703770387039704070417042704370447045704670477048704970507051705270537054705570567057705870597060706170627063706470657066706770687069707070717072707370747075707670777078707970807081708270837084708570867087708870897090709170927093709470957096709770987099710071017102710371047105710671077108710971107111711271137114711571167117711871197120712171227123712471257126712771287129713071317132713371347135713671377138713971407141714271437144714571467147714871497150715171527153715471557156715771587159716071617162716371647165716671677168716971707171717271737174717571767177717871797180718171827183718471857186718771887189719071917192719371947195719671977198719972007201720272037204720572067207720872097210721172127213721472157216721772187219722072217222722372247225722672277228722972307231723272337234723572367237723872397240724172427243724472457246724772487249725072517252725372547255725672577258725972607261726272637264726572667267726872697270727172727273727472757276727772787279728072817282728372847285728672877288728972907291729272937294729572967297729872997300730173027303730473057306730773087309731073117312731373147315731673177318731973207321732273237324732573267327732873297330733173327333733473357336733773387339734073417342734373447345734673477348734973507351735273537354735573567357735873597360736173627363736473657366736773687369737073717372737373747375737673777378737973807381738273837384738573867387738873897390739173927393739473957396739773987399740074017402740374047405740674077408740974107411741274137414741574167417741874197420742174227423742474257426742774287429743074317432743374347435743674377438743974407441744274437444744574467447744874497450745174527453745474557456745774587459746074617462746374647465746674677468746974707471747274737474747574767477747874797480748174827483748474857486748774887489749074917492749374947495749674977498749975007501750275037504750575067507750875097510751175127513751475157516751775187519752075217522752375247525752675277528752975307531753275337534753575367537753875397540754175427543754475457546754775487549755075517552755375547555755675577558755975607561756275637564756575667567756875697570757175727573757475757576757775787579758075817582758375847585758675877588758975907591759275937594759575967597759875997600760176027603760476057606760776087609761076117612761376147615761676177618761976207621762276237624762576267627762876297630763176327633763476357636763776387639764076417642764376447645764676477648764976507651765276537654765576567657765876597660766176627663766476657666766776687669767076717672767376747675767676777678767976807681768276837684768576867687768876897690769176927693769476957696769776987699770077017702770377047705770677077708770977107711771277137714771577167717771877197720772177227723772477257726772777287729773077317732773377347735773677377738773977407741774277437744774577467747774877497750775177527753775477557756775777587759776077617762776377647765776677677768776977707771777277737774777577767777777877797780778177827783778477857786778777887789779077917792779377947795779677977798779978007801780278037804780578067807780878097810781178127813781478157816781778187819782078217822782378247825782678277828782978307831783278337834783578367837783878397840784178427843784478457846784778487849785078517852785378547855785678577858785978607861786278637864786578667867786878697870787178727873787478757876787778787879788078817882788378847885788678877888788978907891789278937894789578967897789878997900790179027903790479057906790779087909791079117912791379147915791679177918791979207921792279237924792579267927792879297930793179327933793479357936793779387939794079417942794379447945794679477948794979507951795279537954795579567957795879597960796179627963796479657966796779687969797079717972797379747975797679777978797979807981798279837984798579867987798879897990799179927993799479957996799779987999800080018002800380048005800680078008800980108011801280138014801580168017801880198020802180228023802480258026802780288029803080318032803380348035803680378038803980408041804280438044804580468047804880498050805180528053805480558056805780588059806080618062806380648065806680678068806980708071807280738074807580768077807880798080808180828083808480858086808780888089809080918092809380948095809680978098809981008101810281038104810581068107810881098110811181128113811481158116811781188119812081218122812381248125812681278128812981308131813281338134813581368137813881398140814181428143814481458146814781488149815081518152815381548155815681578158815981608161816281638164816581668167816881698170817181728173817481758176817781788179818081818182818381848185818681878188818981908191819281938194819581968197819881998200820182028203820482058206820782088209821082118212821382148215821682178218821982208221822282238224822582268227822882298230823182328233823482358236823782388239824082418242824382448245824682478248824982508251825282538254825582568257825882598260826182628263826482658266826782688269827082718272827382748275827682778278827982808281828282838284828582868287828882898290829182928293829482958296829782988299830083018302830383048305830683078308830983108311831283138314831583168317831883198320832183228323832483258326832783288329833083318332833383348335833683378338833983408341834283438344834583468347834883498350835183528353835483558356835783588359836083618362836383648365836683678368836983708371837283738374837583768377837883798380838183828383838483858386838783888389839083918392839383948395839683978398839984008401840284038404840584068407840884098410841184128413841484158416841784188419842084218422842384248425842684278428842984308431843284338434843584368437843884398440844184428443844484458446844784488449845084518452845384548455845684578458845984608461846284638464846584668467846884698470847184728473847484758476847784788479848084818482848384848485848684878488848984908491849284938494849584968497849884998500850185028503850485058506850785088509851085118512851385148515851685178518851985208521852285238524852585268527852885298530853185328533853485358536853785388539854085418542854385448545854685478548854985508551855285538554855585568557855885598560856185628563856485658566856785688569857085718572857385748575857685778578857985808581858285838584858585868587858885898590859185928593859485958596859785988599860086018602860386048605860686078608860986108611861286138614861586168617861886198620862186228623862486258626862786288629863086318632863386348635863686378638863986408641864286438644864586468647864886498650865186528653865486558656865786588659866086618662866386648665866686678668866986708671867286738674867586768677867886798680868186828683868486858686868786888689869086918692869386948695869686978698869987008701870287038704870587068707870887098710871187128713871487158716871787188719872087218722872387248725872687278728872987308731873287338734873587368737873887398740874187428743874487458746874787488749875087518752875387548755875687578758875987608761876287638764876587668767876887698770877187728773877487758776877787788779878087818782878387848785878687878788878987908791879287938794879587968797879887998800880188028803880488058806880788088809881088118812881388148815881688178818881988208821882288238824882588268827882888298830883188328833883488358836883788388839884088418842884388448845884688478848884988508851885288538854885588568857885888598860886188628863886488658866886788688869887088718872887388748875887688778878887988808881888288838884888588868887888888898890889188928893889488958896889788988899890089018902890389048905890689078908890989108911891289138914891589168917891889198920892189228923892489258926892789288929893089318932893389348935893689378938893989408941894289438944894589468947894889498950895189528953895489558956895789588959896089618962896389648965896689678968896989708971897289738974897589768977897889798980898189828983898489858986898789888989899089918992899389948995899689978998899990009001900290039004900590069007900890099010901190129013901490159016901790189019902090219022902390249025902690279028902990309031903290339034903590369037903890399040904190429043904490459046904790489049905090519052905390549055905690579058905990609061906290639064906590669067906890699070907190729073907490759076907790789079908090819082908390849085908690879088908990909091909290939094909590969097909890999100910191029103910491059106910791089109911091119112911391149115911691179118911991209121912291239124912591269127912891299130913191329133913491359136913791389139914091419142914391449145914691479148914991509151915291539154915591569157915891599160916191629163916491659166916791689169917091719172917391749175917691779178917991809181918291839184918591869187918891899190919191929193919491959196919791989199920092019202920392049205920692079208920992109211921292139214921592169217921892199220922192229223922492259226922792289229923092319232923392349235923692379238923992409241924292439244924592469247924892499250925192529253925492559256925792589259926092619262926392649265926692679268926992709271927292739274927592769277927892799280928192829283928492859286928792889289929092919292929392949295929692979298929993009301930293039304930593069307930893099310931193129313931493159316931793189319932093219322932393249325932693279328932993309331933293339334933593369337933893399340934193429343934493459346934793489349935093519352935393549355935693579358935993609361936293639364936593669367936893699370937193729373937493759376937793789379938093819382938393849385938693879388938993909391939293939394939593969397939893999400940194029403940494059406940794089409941094119412941394149415941694179418941994209421942294239424942594269427942894299430943194329433943494359436943794389439944094419442944394449445944694479448944994509451945294539454945594569457945894599460946194629463946494659466946794689469947094719472947394749475947694779478947994809481948294839484948594869487948894899490949194929493949494959496949794989499950095019502950395049505950695079508950995109511951295139514951595169517951895199520952195229523952495259526952795289529953095319532953395349535953695379538953995409541954295439544954595469547954895499550955195529553955495559556955795589559956095619562956395649565956695679568956995709571957295739574957595769577957895799580958195829583958495859586958795889589959095919592959395949595959695979598959996009601960296039604960596069607960896099610961196129613961496159616961796189619962096219622962396249625962696279628962996309631963296339634963596369637963896399640964196429643964496459646964796489649965096519652965396549655965696579658965996609661966296639664966596669667966896699670967196729673967496759676967796789679968096819682968396849685968696879688968996909691969296939694969596969697969896999700970197029703970497059706970797089709971097119712971397149715971697179718971997209721972297239724972597269727972897299730973197329733973497359736973797389739974097419742974397449745974697479748974997509751975297539754975597569757975897599760976197629763976497659766976797689769977097719772977397749775977697779778977997809781978297839784978597869787978897899790979197929793979497959796979797989799980098019802980398049805980698079808980998109811981298139814981598169817981898199820982198229823982498259826982798289829983098319832983398349835983698379838983998409841984298439844984598469847984898499850985198529853985498559856985798589859986098619862986398649865986698679868986998709871987298739874987598769877987898799880988198829883988498859886988798889889989098919892989398949895989698979898989999009901990299039904990599069907990899099910991199129913991499159916991799189919992099219922992399249925992699279928992999309931993299339934993599369937993899399940994199429943994499459946994799489949995099519952995399549955995699579958995999609961996299639964996599669967996899699970997199729973997499759976997799789979998099819982998399849985998699879988998999909991999299939994999599969997999899991000010001100021000310004100051000610007100081000910010100111001210013100141001510016100171001810019100201002110022100231002410025100261002710028100291003010031100321003310034100351003610037100381003910040100411004210043100441004510046100471004810049100501005110052100531005410055100561005710058100591006010061100621006310064100651006610067100681006910070100711007210073100741007510076100771007810079100801008110082100831008410085100861008710088100891009010091100921009310094100951009610097100981009910100101011010210103101041010510106101071010810109101101011110112101131011410115101161011710118101191012010121101221012310124101251012610127101281012910130101311013210133101341013510136101371013810139101401014110142101431014410145101461014710148101491015010151101521015310154101551015610157101581015910160101611016210163101641016510166101671016810169101701017110172101731017410175101761017710178101791018010181101821018310184101851018610187101881018910190101911019210193101941019510196101971019810199102001020110202102031020410205102061020710208102091021010211102121021310214102151021610217102181021910220102211022210223102241022510226102271022810229102301023110232102331023410235102361023710238102391024010241102421024310244102451024610247102481024910250102511025210253102541025510256102571025810259102601026110262102631026410265102661026710268102691027010271102721027310274102751027610277102781027910280102811028210283102841028510286102871028810289102901029110292102931029410295102961029710298102991030010301103021030310304103051030610307103081030910310103111031210313103141031510316103171031810319103201032110322103231032410325103261032710328103291033010331103321033310334103351033610337103381033910340103411034210343103441034510346103471034810349103501035110352103531035410355103561035710358103591036010361103621036310364103651036610367103681036910370103711037210373103741037510376103771037810379103801038110382103831038410385103861038710388103891039010391103921039310394103951039610397103981039910400104011040210403104041040510406104071040810409104101041110412104131041410415104161041710418104191042010421104221042310424104251042610427104281042910430104311043210433104341043510436104371043810439104401044110442104431044410445104461044710448104491045010451104521045310454104551045610457104581045910460104611046210463104641046510466104671046810469104701047110472104731047410475104761047710478104791048010481104821048310484104851048610487104881048910490104911049210493104941049510496104971049810499105001050110502105031050410505105061050710508105091051010511105121051310514105151051610517105181051910520105211052210523105241052510526105271052810529105301053110532105331053410535105361053710538105391054010541105421054310544105451054610547105481054910550105511055210553105541055510556105571055810559105601056110562105631056410565105661056710568105691057010571105721057310574105751057610577105781057910580105811058210583105841058510586105871058810589105901059110592105931059410595105961059710598105991060010601106021060310604106051060610607106081060910610106111061210613106141061510616106171061810619106201062110622106231062410625106261062710628106291063010631106321063310634106351063610637106381063910640106411064210643106441064510646106471064810649106501065110652106531065410655106561065710658106591066010661106621066310664106651066610667106681066910670106711067210673106741067510676106771067810679106801068110682106831068410685106861068710688106891069010691106921069310694106951069610697106981069910700107011070210703107041070510706107071070810709107101071110712107131071410715107161071710718107191072010721107221072310724107251072610727107281072910730107311073210733107341073510736107371073810739107401074110742107431074410745107461074710748107491075010751107521075310754107551075610757107581075910760107611076210763107641076510766107671076810769107701077110772107731077410775107761077710778107791078010781107821078310784107851078610787107881078910790107911079210793107941079510796107971079810799108001080110802108031080410805108061080710808108091081010811108121081310814108151081610817108181081910820108211082210823108241082510826108271082810829108301083110832108331083410835108361083710838108391084010841108421084310844108451084610847108481084910850108511085210853108541085510856108571085810859108601086110862108631086410865108661086710868108691087010871108721087310874108751087610877108781087910880108811088210883108841088510886108871088810889108901089110892108931089410895108961089710898108991090010901109021090310904109051090610907109081090910910109111091210913109141091510916109171091810919109201092110922109231092410925109261092710928109291093010931109321093310934109351093610937109381093910940109411094210943109441094510946109471094810949109501095110952109531095410955109561095710958109591096010961109621096310964109651096610967109681096910970109711097210973109741097510976109771097810979109801098110982109831098410985109861098710988109891099010991109921099310994109951099610997109981099911000110011100211003110041100511006110071100811009110101101111012110131101411015110161101711018110191102011021110221102311024110251102611027110281102911030110311103211033110341103511036110371103811039110401104111042110431104411045110461104711048110491105011051110521105311054110551105611057110581105911060110611106211063110641106511066110671106811069110701107111072110731107411075110761107711078110791108011081110821108311084110851108611087110881108911090110911109211093110941109511096110971109811099111001110111102111031110411105111061110711108111091111011111111121111311114111151111611117111181111911120111211112211123111241112511126111271112811129111301113111132111331113411135111361113711138111391114011141111421114311144111451114611147111481114911150111511115211153111541115511156111571115811159111601116111162111631116411165111661116711168111691117011171111721117311174111751117611177111781117911180111811118211183111841118511186111871118811189111901119111192111931119411195111961119711198111991120011201112021120311204112051120611207112081120911210112111121211213112141121511216112171121811219112201122111222112231122411225112261122711228112291123011231112321123311234112351123611237112381123911240112411124211243112441124511246112471124811249112501125111252112531125411255112561125711258112591126011261112621126311264112651126611267112681126911270112711127211273112741127511276112771127811279112801128111282112831128411285112861128711288112891129011291112921129311294112951129611297112981129911300113011130211303113041130511306113071130811309113101131111312113131131411315113161131711318113191132011321113221132311324113251132611327113281132911330113311133211333113341133511336113371133811339113401134111342113431134411345113461134711348113491135011351113521135311354113551135611357113581135911360113611136211363113641136511366113671136811369113701137111372113731137411375113761137711378113791138011381113821138311384113851138611387113881138911390113911139211393113941139511396113971139811399114001140111402114031140411405114061140711408114091141011411114121141311414114151141611417114181141911420114211142211423114241142511426114271142811429114301143111432114331143411435114361143711438114391144011441114421144311444114451144611447114481144911450114511145211453114541145511456114571145811459114601146111462114631146411465114661146711468114691147011471114721147311474114751147611477114781147911480114811148211483114841148511486114871148811489114901149111492114931149411495114961149711498114991150011501115021150311504115051150611507115081150911510115111151211513115141151511516115171151811519115201152111522115231152411525115261152711528115291153011531115321153311534115351153611537115381153911540115411154211543115441154511546115471154811549115501155111552115531155411555115561155711558115591156011561115621156311564115651156611567115681156911570115711157211573115741157511576115771157811579115801158111582115831158411585115861158711588115891159011591115921159311594115951159611597115981159911600116011160211603116041160511606116071160811609116101161111612116131161411615116161161711618116191162011621116221162311624116251162611627116281162911630116311163211633116341163511636116371163811639116401164111642116431164411645116461164711648116491165011651116521165311654116551165611657116581165911660116611166211663116641166511666116671166811669116701167111672116731167411675116761167711678116791168011681116821168311684116851168611687116881168911690116911169211693116941169511696116971169811699117001170111702117031170411705117061170711708117091171011711117121171311714117151171611717117181171911720117211172211723117241172511726117271172811729117301173111732117331173411735117361173711738117391174011741117421174311744117451174611747117481174911750117511175211753117541175511756117571175811759117601176111762117631176411765117661176711768117691177011771117721177311774117751177611777117781177911780117811178211783117841178511786117871178811789117901179111792117931179411795117961179711798117991180011801118021180311804118051180611807118081180911810118111181211813118141181511816118171181811819118201182111822118231182411825118261182711828118291183011831118321183311834118351183611837118381183911840118411184211843118441184511846118471184811849118501185111852118531185411855118561185711858118591186011861118621186311864118651186611867118681186911870118711187211873118741187511876118771187811879118801188111882118831188411885118861188711888118891189011891118921189311894118951189611897118981189911900119011190211903119041190511906119071190811909119101191111912119131191411915119161191711918119191192011921119221192311924119251192611927119281192911930119311193211933119341193511936119371193811939119401194111942119431194411945119461194711948119491195011951119521195311954119551195611957119581195911960119611196211963119641196511966119671196811969119701197111972119731197411975119761197711978119791198011981119821198311984119851198611987119881198911990119911199211993119941199511996119971199811999120001200112002120031200412005120061200712008120091201012011120121201312014120151201612017120181201912020120211202212023120241202512026120271202812029120301203112032120331203412035120361203712038120391204012041120421204312044120451204612047120481204912050120511205212053120541205512056120571205812059120601206112062120631206412065120661206712068120691207012071120721207312074120751207612077120781207912080120811208212083120841208512086120871208812089120901209112092120931209412095120961209712098120991210012101121021210312104121051210612107121081210912110121111211212113121141211512116121171211812119121201212112122121231212412125121261212712128121291213012131121321213312134121351213612137121381213912140121411214212143121441214512146121471214812149121501215112152121531215412155121561215712158121591216012161121621216312164121651216612167121681216912170121711217212173121741217512176121771217812179121801218112182121831218412185121861218712188121891219012191121921219312194121951219612197121981219912200122011220212203122041220512206122071220812209122101221112212122131221412215122161221712218122191222012221122221222312224122251222612227122281222912230122311223212233122341223512236122371223812239122401224112242122431224412245122461224712248122491225012251122521225312254122551225612257122581225912260122611226212263122641226512266122671226812269122701227112272122731227412275122761227712278122791228012281122821228312284122851228612287122881228912290122911229212293122941229512296122971229812299123001230112302123031230412305123061230712308123091231012311123121231312314123151231612317123181231912320123211232212323123241232512326123271232812329123301233112332123331233412335123361233712338123391234012341123421234312344123451234612347123481234912350123511235212353123541235512356123571235812359123601236112362123631236412365123661236712368123691237012371123721237312374123751237612377123781237912380123811238212383123841238512386123871238812389123901239112392123931239412395123961239712398123991240012401124021240312404124051240612407124081240912410124111241212413124141241512416124171241812419124201242112422124231242412425124261242712428124291243012431124321243312434124351243612437124381243912440124411244212443124441244512446124471244812449124501245112452124531245412455124561245712458124591246012461124621246312464124651246612467124681246912470124711247212473124741247512476124771247812479124801248112482124831248412485124861248712488124891249012491124921249312494124951249612497124981249912500125011250212503125041250512506125071250812509125101251112512125131251412515125161251712518125191252012521125221252312524125251252612527125281252912530125311253212533125341253512536125371253812539125401254112542125431254412545125461254712548125491255012551125521255312554125551255612557125581255912560125611256212563125641256512566125671256812569125701257112572125731257412575125761257712578125791258012581125821258312584125851258612587125881258912590125911259212593125941259512596125971259812599126001260112602126031260412605126061260712608126091261012611126121261312614126151261612617126181261912620126211262212623126241262512626126271262812629126301263112632126331263412635126361263712638126391264012641126421264312644126451264612647126481264912650126511265212653126541265512656126571265812659126601266112662126631266412665126661266712668126691267012671126721267312674126751267612677126781267912680126811268212683126841268512686126871268812689126901269112692126931269412695126961269712698126991270012701127021270312704127051270612707127081270912710127111271212713127141271512716127171271812719127201272112722127231272412725127261272712728127291273012731127321273312734127351273612737127381273912740127411274212743127441274512746127471274812749127501275112752127531275412755127561275712758127591276012761127621276312764127651276612767127681276912770127711277212773127741277512776127771277812779127801278112782127831278412785127861278712788127891279012791127921279312794127951279612797127981279912800128011280212803128041280512806128071280812809128101281112812128131281412815128161281712818128191282012821128221282312824128251282612827128281282912830128311283212833128341283512836128371283812839128401284112842128431284412845128461284712848128491285012851128521285312854128551285612857128581285912860128611286212863128641286512866128671286812869128701287112872128731287412875128761287712878128791288012881128821288312884128851288612887128881288912890128911289212893128941289512896128971289812899129001290112902129031290412905129061290712908129091291012911129121291312914129151291612917129181291912920129211292212923129241292512926129271292812929129301293112932129331293412935129361293712938129391294012941129421294312944129451294612947129481294912950129511295212953129541295512956129571295812959129601296112962129631296412965129661296712968129691297012971129721297312974129751297612977129781297912980129811298212983129841298512986129871298812989129901299112992129931299412995129961299712998129991300013001130021300313004130051300613007130081300913010130111301213013130141301513016130171301813019130201302113022130231302413025130261302713028130291303013031130321303313034130351303613037130381303913040130411304213043130441304513046130471304813049130501305113052130531305413055130561305713058130591306013061130621306313064130651306613067130681306913070130711307213073130741307513076130771307813079130801308113082130831308413085130861308713088130891309013091130921309313094130951309613097130981309913100131011310213103131041310513106131071310813109131101311113112131131311413115131161311713118131191312013121131221312313124131251312613127131281312913130131311313213133131341313513136131371313813139131401314113142131431314413145131461314713148131491315013151131521315313154131551315613157131581315913160131611316213163131641316513166131671316813169131701317113172131731317413175131761317713178131791318013181131821318313184131851318613187131881318913190131911319213193131941319513196131971319813199132001320113202132031320413205132061320713208132091321013211132121321313214132151321613217132181321913220132211322213223132241322513226132271322813229132301323113232132331323413235132361323713238132391324013241132421324313244132451324613247132481324913250132511325213253132541325513256132571325813259132601326113262132631326413265132661326713268132691327013271132721327313274132751327613277132781327913280132811328213283132841328513286132871328813289132901329113292132931329413295132961329713298132991330013301133021330313304133051330613307133081330913310133111331213313133141331513316133171331813319133201332113322133231332413325133261332713328133291333013331133321333313334133351333613337133381333913340133411334213343133441334513346133471334813349133501335113352133531335413355133561335713358133591336013361133621336313364133651336613367133681336913370133711337213373133741337513376133771337813379133801338113382133831338413385133861338713388133891339013391133921339313394133951339613397133981339913400134011340213403134041340513406134071340813409134101341113412134131341413415134161341713418134191342013421134221342313424134251342613427134281342913430134311343213433134341343513436134371343813439134401344113442134431344413445134461344713448134491345013451134521345313454134551345613457134581345913460134611346213463134641346513466134671346813469134701347113472134731347413475134761347713478134791348013481134821348313484134851348613487134881348913490134911349213493134941349513496134971349813499135001350113502135031350413505135061350713508135091351013511135121351313514135151351613517135181351913520135211352213523135241352513526135271352813529135301353113532135331353413535135361353713538135391354013541135421354313544135451354613547135481354913550135511355213553135541355513556135571355813559135601356113562135631356413565135661356713568135691357013571135721357313574135751357613577135781357913580135811358213583135841358513586135871358813589135901359113592135931359413595135961359713598135991360013601136021360313604136051360613607136081360913610136111361213613136141361513616136171361813619136201362113622136231362413625136261362713628136291363013631136321363313634136351363613637136381363913640136411364213643136441364513646136471364813649136501365113652136531365413655136561365713658136591366013661136621366313664136651366613667136681366913670136711367213673136741367513676136771367813679136801368113682136831368413685136861368713688136891369013691136921369313694136951369613697136981369913700137011370213703137041370513706137071370813709137101371113712137131371413715137161371713718137191372013721137221372313724137251372613727137281372913730137311373213733137341373513736137371373813739137401374113742137431374413745137461374713748137491375013751137521375313754137551375613757137581375913760137611376213763137641376513766137671376813769137701377113772137731377413775137761377713778137791378013781137821378313784137851378613787137881378913790137911379213793137941379513796137971379813799138001380113802138031380413805138061380713808138091381013811138121381313814138151381613817138181381913820138211382213823138241382513826138271382813829138301383113832138331383413835138361383713838138391384013841138421384313844138451384613847138481384913850138511385213853138541385513856138571385813859138601386113862138631386413865138661386713868138691387013871138721387313874138751387613877138781387913880138811388213883138841388513886138871388813889138901389113892138931389413895138961389713898138991390013901139021390313904139051390613907139081390913910139111391213913139141391513916139171391813919139201392113922139231392413925139261392713928139291393013931139321393313934139351393613937139381393913940139411394213943139441394513946139471394813949139501395113952139531395413955139561395713958139591396013961139621396313964139651396613967139681396913970139711397213973139741397513976139771397813979139801398113982139831398413985139861398713988139891399013991139921399313994139951399613997139981399914000140011400214003140041400514006140071400814009140101401114012140131401414015140161401714018140191402014021140221402314024140251402614027140281402914030140311403214033140341403514036140371403814039140401404114042140431404414045140461404714048140491405014051140521405314054140551405614057140581405914060140611406214063140641406514066140671406814069140701407114072140731407414075140761407714078140791408014081140821408314084140851408614087140881408914090140911409214093140941409514096140971409814099141001410114102141031410414105141061410714108141091411014111141121411314114141151411614117141181411914120141211412214123141241412514126141271412814129141301413114132141331413414135141361413714138141391414014141141421414314144141451414614147141481414914150141511415214153141541415514156141571415814159141601416114162141631416414165141661416714168141691417014171141721417314174141751417614177141781417914180141811418214183141841418514186141871418814189141901419114192141931419414195141961419714198141991420014201142021420314204142051420614207142081420914210142111421214213142141421514216142171421814219142201422114222142231422414225142261422714228142291423014231142321423314234142351423614237142381423914240142411424214243142441424514246142471424814249142501425114252142531425414255142561425714258142591426014261142621426314264142651426614267142681426914270142711427214273142741427514276142771427814279142801428114282142831428414285142861428714288142891429014291142921429314294142951429614297142981429914300143011430214303143041430514306143071430814309143101431114312143131431414315143161431714318143191432014321143221432314324143251432614327143281432914330143311433214333143341433514336143371433814339143401434114342143431434414345143461434714348143491435014351143521435314354143551435614357143581435914360143611436214363143641436514366143671436814369143701437114372143731437414375143761437714378143791438014381143821438314384143851438614387143881438914390143911439214393143941439514396143971439814399144001440114402144031440414405144061440714408144091441014411144121441314414144151441614417144181441914420144211442214423144241442514426144271442814429144301443114432144331443414435144361443714438144391444014441144421444314444144451444614447144481444914450144511445214453144541445514456144571445814459144601446114462144631446414465144661446714468144691447014471144721447314474144751447614477144781447914480144811448214483144841448514486144871448814489144901449114492144931449414495144961449714498144991450014501145021450314504145051450614507145081450914510145111451214513145141451514516145171451814519145201452114522145231452414525145261452714528145291453014531145321453314534145351453614537145381453914540145411454214543145441454514546145471454814549145501455114552145531455414555145561455714558145591456014561145621456314564145651456614567145681456914570145711457214573145741457514576145771457814579145801458114582145831458414585145861458714588145891459014591145921459314594145951459614597145981459914600146011460214603146041460514606146071460814609146101461114612146131461414615146161461714618146191462014621146221462314624146251462614627146281462914630146311463214633146341463514636146371463814639146401464114642146431464414645146461464714648146491465014651146521465314654146551465614657146581465914660146611466214663146641466514666146671466814669146701467114672146731467414675146761467714678146791468014681146821468314684146851468614687146881468914690146911469214693146941469514696146971469814699147001470114702147031470414705147061470714708147091471014711147121471314714147151471614717147181471914720147211472214723147241472514726147271472814729147301473114732147331473414735147361473714738147391474014741147421474314744147451474614747147481474914750147511475214753147541475514756147571475814759147601476114762147631476414765147661476714768147691477014771147721477314774147751477614777147781477914780147811478214783147841478514786147871478814789147901479114792147931479414795147961479714798147991480014801148021480314804148051480614807148081480914810148111481214813148141481514816148171481814819148201482114822148231482414825148261482714828148291483014831148321483314834148351483614837148381483914840148411484214843148441484514846148471484814849148501485114852148531485414855148561485714858148591486014861148621486314864148651486614867148681486914870148711487214873148741487514876148771487814879148801488114882148831488414885148861488714888148891489014891148921489314894148951489614897148981489914900149011490214903149041490514906149071490814909149101491114912149131491414915149161491714918149191492014921149221492314924149251492614927149281492914930149311493214933149341493514936149371493814939149401494114942149431494414945149461494714948149491495014951149521495314954149551495614957149581495914960149611496214963149641496514966149671496814969149701497114972149731497414975149761497714978149791498014981149821498314984149851498614987149881498914990149911499214993149941499514996149971499814999150001500115002150031500415005150061500715008150091501015011150121501315014150151501615017150181501915020150211502215023150241502515026150271502815029150301503115032150331503415035150361503715038150391504015041150421504315044150451504615047150481504915050150511505215053150541505515056150571505815059150601506115062150631506415065150661506715068150691507015071150721507315074150751507615077150781507915080150811508215083150841508515086150871508815089150901509115092150931509415095150961509715098150991510015101151021510315104151051510615107151081510915110151111511215113151141511515116151171511815119151201512115122151231512415125151261512715128151291513015131151321513315134151351513615137151381513915140151411514215143151441514515146151471514815149151501515115152151531515415155151561515715158151591516015161151621516315164151651516615167151681516915170151711517215173151741517515176151771517815179151801518115182151831518415185151861518715188151891519015191151921519315194151951519615197151981519915200152011520215203152041520515206152071520815209152101521115212152131521415215152161521715218152191522015221152221522315224152251522615227152281522915230152311523215233152341523515236152371523815239152401524115242152431524415245152461524715248152491525015251152521525315254152551525615257152581525915260152611526215263152641526515266152671526815269152701527115272152731527415275152761527715278152791528015281152821528315284152851528615287152881528915290152911529215293152941529515296152971529815299153001530115302153031530415305153061530715308153091531015311153121531315314153151531615317153181531915320153211532215323153241532515326153271532815329153301533115332153331533415335153361533715338153391534015341153421534315344153451534615347153481534915350153511535215353153541535515356153571535815359153601536115362153631536415365153661536715368153691537015371153721537315374153751537615377153781537915380153811538215383153841538515386153871538815389153901539115392153931539415395153961539715398153991540015401154021540315404154051540615407154081540915410154111541215413154141541515416154171541815419154201542115422154231542415425154261542715428154291543015431154321543315434154351543615437154381543915440154411544215443154441544515446154471544815449154501545115452154531545415455154561545715458154591546015461154621546315464154651546615467154681546915470154711547215473154741547515476154771547815479154801548115482154831548415485154861548715488154891549015491154921549315494154951549615497154981549915500155011550215503155041550515506155071550815509155101551115512155131551415515155161551715518155191552015521155221552315524155251552615527155281552915530155311553215533155341553515536155371553815539155401554115542155431554415545155461554715548155491555015551155521555315554155551555615557155581555915560155611556215563155641556515566155671556815569155701557115572155731557415575155761557715578155791558015581155821558315584155851558615587155881558915590155911559215593155941559515596155971559815599156001560115602156031560415605156061560715608156091561015611156121561315614156151561615617156181561915620156211562215623156241562515626156271562815629156301563115632156331563415635156361563715638156391564015641156421564315644156451564615647156481564915650156511565215653156541565515656156571565815659156601566115662156631566415665156661566715668156691567015671156721567315674156751567615677156781567915680156811568215683156841568515686156871568815689156901569115692156931569415695156961569715698156991570015701157021570315704157051570615707157081570915710157111571215713157141571515716157171571815719157201572115722157231572415725157261572715728157291573015731157321573315734157351573615737157381573915740157411574215743157441574515746157471574815749157501575115752157531575415755157561575715758157591576015761157621576315764157651576615767157681576915770157711577215773157741577515776157771577815779157801578115782157831578415785157861578715788157891579015791157921579315794157951579615797157981579915800158011580215803158041580515806158071580815809158101581115812158131581415815158161581715818158191582015821158221582315824158251582615827158281582915830158311583215833158341583515836158371583815839158401584115842158431584415845158461584715848158491585015851158521585315854158551585615857158581585915860158611586215863158641586515866158671586815869158701587115872158731587415875158761587715878158791588015881158821588315884158851588615887158881588915890158911589215893158941589515896158971589815899159001590115902159031590415905159061590715908159091591015911159121591315914159151591615917159181591915920159211592215923159241592515926159271592815929159301593115932159331593415935159361593715938159391594015941159421594315944159451594615947159481594915950159511595215953159541595515956159571595815959159601596115962159631596415965159661596715968159691597015971159721597315974159751597615977159781597915980159811598215983159841598515986159871598815989159901599115992159931599415995159961599715998159991600016001160021600316004160051600616007160081600916010160111601216013160141601516016160171601816019160201602116022160231602416025160261602716028160291603016031160321603316034160351603616037160381603916040160411604216043160441604516046160471604816049160501605116052160531605416055160561605716058160591606016061160621606316064160651606616067160681606916070160711607216073160741607516076160771607816079160801608116082160831608416085160861608716088160891609016091160921609316094160951609616097160981609916100161011610216103161041610516106161071610816109161101611116112161131611416115161161611716118161191612016121161221612316124161251612616127161281612916130161311613216133161341613516136161371613816139161401614116142161431614416145161461614716148161491615016151161521615316154161551615616157161581615916160161611616216163161641616516166161671616816169161701617116172161731617416175161761617716178161791618016181161821618316184161851618616187161881618916190161911619216193161941619516196161971619816199162001620116202162031620416205162061620716208162091621016211162121621316214162151621616217162181621916220162211622216223162241622516226162271622816229162301623116232162331623416235162361623716238162391624016241162421624316244162451624616247162481624916250162511625216253162541625516256162571625816259162601626116262162631626416265162661626716268162691627016271162721627316274162751627616277162781627916280162811628216283162841628516286162871628816289162901629116292162931629416295162961629716298162991630016301163021630316304163051630616307163081630916310163111631216313163141631516316163171631816319163201632116322163231632416325163261632716328163291633016331163321633316334163351633616337163381633916340163411634216343163441634516346163471634816349163501635116352163531635416355163561635716358163591636016361163621636316364163651636616367163681636916370163711637216373163741637516376163771637816379163801638116382163831638416385163861638716388163891639016391163921639316394163951639616397163981639916400164011640216403164041640516406164071640816409164101641116412164131641416415164161641716418164191642016421164221642316424164251642616427164281642916430164311643216433164341643516436164371643816439164401644116442164431644416445164461644716448164491645016451164521645316454164551645616457164581645916460164611646216463164641646516466164671646816469164701647116472164731647416475164761647716478164791648016481164821648316484164851648616487164881648916490164911649216493164941649516496164971649816499165001650116502165031650416505165061650716508165091651016511165121651316514165151651616517165181651916520165211652216523165241652516526165271652816529165301653116532165331653416535165361653716538165391654016541165421654316544165451654616547165481654916550165511655216553165541655516556165571655816559165601656116562165631656416565165661656716568165691657016571165721657316574165751657616577165781657916580165811658216583165841658516586165871658816589165901659116592165931659416595165961659716598165991660016601166021660316604166051660616607166081660916610166111661216613166141661516616166171661816619166201662116622166231662416625166261662716628166291663016631166321663316634166351663616637166381663916640166411664216643166441664516646166471664816649166501665116652166531665416655166561665716658166591666016661166621666316664166651666616667166681666916670166711667216673166741667516676166771667816679166801668116682166831668416685166861668716688166891669016691166921669316694166951669616697166981669916700167011670216703167041670516706167071670816709167101671116712167131671416715167161671716718167191672016721167221672316724167251672616727167281672916730167311673216733167341673516736167371673816739167401674116742167431674416745167461674716748167491675016751167521675316754167551675616757167581675916760167611676216763167641676516766167671676816769167701677116772167731677416775167761677716778167791678016781167821678316784167851678616787167881678916790167911679216793167941679516796167971679816799168001680116802168031680416805168061680716808168091681016811168121681316814168151681616817168181681916820168211682216823168241682516826168271682816829168301683116832168331683416835168361683716838168391684016841168421684316844168451684616847168481684916850168511685216853168541685516856168571685816859168601686116862168631686416865168661686716868168691687016871168721687316874168751687616877168781687916880168811688216883168841688516886168871688816889168901689116892168931689416895168961689716898168991690016901169021690316904169051690616907169081690916910169111691216913169141691516916169171691816919169201692116922169231692416925169261692716928169291693016931169321693316934169351693616937169381693916940169411694216943169441694516946169471694816949169501695116952169531695416955169561695716958169591696016961169621696316964169651696616967169681696916970169711697216973169741697516976169771697816979169801698116982169831698416985169861698716988169891699016991169921699316994169951699616997169981699917000170011700217003170041700517006170071700817009170101701117012170131701417015170161701717018170191702017021170221702317024170251702617027170281702917030170311703217033170341703517036170371703817039170401704117042170431704417045170461704717048170491705017051170521705317054170551705617057170581705917060170611706217063170641706517066170671706817069170701707117072170731707417075170761707717078170791708017081170821708317084170851708617087170881708917090170911709217093170941709517096170971709817099171001710117102171031710417105171061710717108171091711017111171121711317114171151711617117171181711917120171211712217123171241712517126171271712817129171301713117132171331713417135171361713717138171391714017141171421714317144171451714617147171481714917150171511715217153171541715517156171571715817159171601716117162171631716417165171661716717168171691717017171171721717317174171751717617177171781717917180171811718217183171841718517186171871718817189171901719117192171931719417195171961719717198171991720017201172021720317204172051720617207172081720917210172111721217213172141721517216172171721817219172201722117222172231722417225172261722717228172291723017231172321723317234172351723617237172381723917240172411724217243172441724517246172471724817249172501725117252172531725417255172561725717258172591726017261172621726317264172651726617267172681726917270172711727217273172741727517276172771727817279172801728117282172831728417285172861728717288172891729017291172921729317294172951729617297172981729917300173011730217303173041730517306173071730817309173101731117312173131731417315173161731717318173191732017321173221732317324173251732617327173281732917330173311733217333173341733517336173371733817339173401734117342173431734417345173461734717348173491735017351173521735317354173551735617357173581735917360173611736217363173641736517366173671736817369173701737117372173731737417375173761737717378173791738017381173821738317384173851738617387173881738917390173911739217393173941739517396173971739817399174001740117402174031740417405174061740717408174091741017411174121741317414174151741617417174181741917420174211742217423174241742517426174271742817429174301743117432174331743417435174361743717438174391744017441174421744317444174451744617447174481744917450174511745217453174541745517456174571745817459174601746117462174631746417465174661746717468174691747017471174721747317474174751747617477174781747917480174811748217483174841748517486174871748817489174901749117492174931749417495174961749717498174991750017501175021750317504175051750617507175081750917510175111751217513175141751517516175171751817519175201752117522175231752417525175261752717528175291753017531175321753317534175351753617537175381753917540175411754217543175441754517546175471754817549175501755117552175531755417555175561755717558175591756017561175621756317564175651756617567175681756917570175711757217573175741757517576175771757817579175801758117582175831758417585175861758717588175891759017591175921759317594175951759617597175981759917600176011760217603176041760517606176071760817609176101761117612176131761417615176161761717618176191762017621176221762317624176251762617627176281762917630176311763217633176341763517636176371763817639176401764117642176431764417645176461764717648176491765017651176521765317654176551765617657176581765917660176611766217663176641766517666176671766817669176701767117672176731767417675176761767717678176791768017681176821768317684176851768617687176881768917690176911769217693176941769517696176971769817699177001770117702177031770417705177061770717708177091771017711177121771317714177151771617717177181771917720177211772217723177241772517726177271772817729177301773117732177331773417735177361773717738177391774017741177421774317744177451774617747177481774917750177511775217753177541775517756177571775817759177601776117762177631776417765177661776717768177691777017771177721777317774177751777617777177781777917780177811778217783177841778517786177871778817789177901779117792177931779417795177961779717798177991780017801178021780317804178051780617807178081780917810178111781217813178141781517816178171781817819178201782117822178231782417825178261782717828178291783017831178321783317834178351783617837178381783917840178411784217843178441784517846178471784817849178501785117852178531785417855178561785717858178591786017861178621786317864178651786617867178681786917870178711787217873178741787517876178771787817879178801788117882178831788417885178861788717888178891789017891178921789317894178951789617897178981789917900179011790217903179041790517906179071790817909179101791117912179131791417915179161791717918179191792017921179221792317924179251792617927179281792917930179311793217933179341793517936179371793817939179401794117942179431794417945179461794717948179491795017951179521795317954179551795617957179581795917960179611796217963179641796517966179671796817969179701797117972179731797417975179761797717978179791798017981179821798317984179851798617987179881798917990179911799217993179941799517996179971799817999180001800118002180031800418005180061800718008180091801018011180121801318014180151801618017180181801918020180211802218023180241802518026180271802818029180301803118032180331803418035180361803718038180391804018041180421804318044180451804618047180481804918050180511805218053180541805518056180571805818059180601806118062180631806418065180661806718068180691807018071180721807318074180751807618077180781807918080180811808218083180841808518086180871808818089180901809118092180931809418095180961809718098180991810018101181021810318104181051810618107181081810918110181111811218113181141811518116181171811818119181201812118122181231812418125181261812718128181291813018131181321813318134181351813618137181381813918140181411814218143181441814518146181471814818149181501815118152181531815418155181561815718158181591816018161181621816318164181651816618167181681816918170181711817218173181741817518176181771817818179181801818118182181831818418185181861818718188181891819018191181921819318194181951819618197181981819918200182011820218203182041820518206182071820818209182101821118212182131821418215182161821718218182191822018221182221822318224182251822618227182281822918230182311823218233182341823518236182371823818239182401824118242182431824418245182461824718248182491825018251182521825318254182551825618257182581825918260182611826218263182641826518266182671826818269182701827118272182731827418275182761827718278182791828018281182821828318284182851828618287182881828918290182911829218293182941829518296182971829818299183001830118302183031830418305183061830718308183091831018311183121831318314183151831618317183181831918320183211832218323183241832518326183271832818329183301833118332183331833418335183361833718338183391834018341183421834318344183451834618347183481834918350183511835218353183541835518356183571835818359183601836118362183631836418365183661836718368183691837018371183721837318374183751837618377183781837918380183811838218383183841838518386183871838818389183901839118392183931839418395183961839718398183991840018401184021840318404184051840618407184081840918410184111841218413184141841518416184171841818419184201842118422184231842418425184261842718428184291843018431184321843318434184351843618437184381843918440184411844218443184441844518446184471844818449184501845118452184531845418455184561845718458184591846018461184621846318464184651846618467184681846918470184711847218473184741847518476184771847818479184801848118482184831848418485184861848718488184891849018491184921849318494184951849618497184981849918500185011850218503185041850518506185071850818509185101851118512185131851418515185161851718518185191852018521185221852318524185251852618527185281852918530185311853218533185341853518536185371853818539185401854118542185431854418545185461854718548185491855018551185521855318554185551855618557185581855918560185611856218563185641856518566185671856818569185701857118572185731857418575185761857718578185791858018581185821858318584185851858618587185881858918590185911859218593185941859518596185971859818599186001860118602186031860418605186061860718608186091861018611186121861318614186151861618617186181861918620186211862218623186241862518626186271862818629186301863118632186331863418635186361863718638186391864018641186421864318644186451864618647186481864918650186511865218653186541865518656186571865818659186601866118662186631866418665186661866718668186691867018671186721867318674186751867618677186781867918680186811868218683186841868518686186871868818689186901869118692186931869418695186961869718698186991870018701187021870318704187051870618707187081870918710187111871218713187141871518716187171871818719187201872118722187231872418725187261872718728187291873018731187321873318734187351873618737187381873918740187411874218743187441874518746187471874818749187501875118752187531875418755187561875718758187591876018761187621876318764187651876618767187681876918770187711877218773187741877518776187771877818779187801878118782187831878418785187861878718788187891879018791187921879318794187951879618797187981879918800188011880218803188041880518806188071880818809188101881118812188131881418815188161881718818188191882018821188221882318824188251882618827188281882918830188311883218833188341883518836188371883818839188401884118842188431884418845188461884718848188491885018851188521885318854188551885618857188581885918860188611886218863188641886518866188671886818869188701887118872188731887418875188761887718878188791888018881188821888318884188851888618887188881888918890188911889218893188941889518896188971889818899189001890118902189031890418905189061890718908189091891018911189121891318914189151891618917189181891918920189211892218923189241892518926189271892818929189301893118932189331893418935189361893718938189391894018941189421894318944189451894618947189481894918950189511895218953189541895518956189571895818959189601896118962189631896418965189661896718968189691897018971189721897318974189751897618977189781897918980189811898218983189841898518986189871898818989189901899118992189931899418995189961899718998189991900019001190021900319004190051900619007190081900919010190111901219013190141901519016190171901819019190201902119022190231902419025190261902719028190291903019031190321903319034190351903619037190381903919040190411904219043190441904519046190471904819049190501905119052190531905419055190561905719058190591906019061190621906319064190651906619067190681906919070190711907219073190741907519076190771907819079190801908119082190831908419085190861908719088190891909019091190921909319094190951909619097190981909919100191011910219103191041910519106191071910819109191101911119112191131911419115191161911719118191191912019121191221912319124191251912619127191281912919130191311913219133191341913519136191371913819139191401914119142191431914419145191461914719148191491915019151191521915319154191551915619157191581915919160191611916219163191641916519166191671916819169191701917119172191731917419175191761917719178191791918019181191821918319184191851918619187191881918919190191911919219193191941919519196191971919819199192001920119202192031920419205192061920719208192091921019211192121921319214192151921619217192181921919220192211922219223192241922519226192271922819229192301923119232192331923419235192361923719238192391924019241192421924319244192451924619247192481924919250
  1. #! /bin/sh
  2. # Guess values for system-dependent variables and create Makefiles.
  3. # Generated by GNU Autoconf 2.69 for klish 1.5.6.
  4. #
  5. # Report bugs to <serj.kalichev at gmail dot com>.
  6. #
  7. #
  8. # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
  9. #
  10. #
  11. # This configure script is free software; the Free Software Foundation
  12. # gives unlimited permission to copy, distribute and modify it.
  13. ## -------------------- ##
  14. ## M4sh Initialization. ##
  15. ## -------------------- ##
  16. # Be more Bourne compatible
  17. DUALCASE=1; export DUALCASE # for MKS sh
  18. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  19. emulate sh
  20. NULLCMD=:
  21. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  22. # is contrary to our usage. Disable this feature.
  23. alias -g '${1+"$@"}'='"$@"'
  24. setopt NO_GLOB_SUBST
  25. else
  26. case `(set -o) 2>/dev/null` in #(
  27. *posix*) :
  28. set -o posix ;; #(
  29. *) :
  30. ;;
  31. esac
  32. fi
  33. as_nl='
  34. '
  35. export as_nl
  36. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  37. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  38. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  39. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  40. # Prefer a ksh shell builtin over an external printf program on Solaris,
  41. # but without wasting forks for bash or zsh.
  42. if test -z "$BASH_VERSION$ZSH_VERSION" \
  43. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  44. as_echo='print -r --'
  45. as_echo_n='print -rn --'
  46. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  47. as_echo='printf %s\n'
  48. as_echo_n='printf %s'
  49. else
  50. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  51. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  52. as_echo_n='/usr/ucb/echo -n'
  53. else
  54. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  55. as_echo_n_body='eval
  56. arg=$1;
  57. case $arg in #(
  58. *"$as_nl"*)
  59. expr "X$arg" : "X\\(.*\\)$as_nl";
  60. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  61. esac;
  62. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  63. '
  64. export as_echo_n_body
  65. as_echo_n='sh -c $as_echo_n_body as_echo'
  66. fi
  67. export as_echo_body
  68. as_echo='sh -c $as_echo_body as_echo'
  69. fi
  70. # The user is always right.
  71. if test "${PATH_SEPARATOR+set}" != set; then
  72. PATH_SEPARATOR=:
  73. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  74. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  75. PATH_SEPARATOR=';'
  76. }
  77. fi
  78. # IFS
  79. # We need space, tab and new line, in precisely that order. Quoting is
  80. # there to prevent editors from complaining about space-tab.
  81. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  82. # splitting by setting IFS to empty value.)
  83. IFS=" "" $as_nl"
  84. # Find who we are. Look in the path if we contain no directory separator.
  85. as_myself=
  86. case $0 in #((
  87. *[\\/]* ) as_myself=$0 ;;
  88. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  89. for as_dir in $PATH
  90. do
  91. IFS=$as_save_IFS
  92. test -z "$as_dir" && as_dir=.
  93. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  94. done
  95. IFS=$as_save_IFS
  96. ;;
  97. esac
  98. # We did not find ourselves, most probably we were run as `sh COMMAND'
  99. # in which case we are not to be found in the path.
  100. if test "x$as_myself" = x; then
  101. as_myself=$0
  102. fi
  103. if test ! -f "$as_myself"; then
  104. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  105. exit 1
  106. fi
  107. # Unset variables that we do not need and which cause bugs (e.g. in
  108. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  109. # suppresses any "Segmentation fault" message there. '((' could
  110. # trigger a bug in pdksh 5.2.14.
  111. for as_var in BASH_ENV ENV MAIL MAILPATH
  112. do eval test x\${$as_var+set} = xset \
  113. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  114. done
  115. PS1='$ '
  116. PS2='> '
  117. PS4='+ '
  118. # NLS nuisances.
  119. LC_ALL=C
  120. export LC_ALL
  121. LANGUAGE=C
  122. export LANGUAGE
  123. # CDPATH.
  124. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  125. # Use a proper internal environment variable to ensure we don't fall
  126. # into an infinite loop, continuously re-executing ourselves.
  127. if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
  128. _as_can_reexec=no; export _as_can_reexec;
  129. # We cannot yet assume a decent shell, so we have to provide a
  130. # neutralization value for shells without unset; and this also
  131. # works around shells that cannot unset nonexistent variables.
  132. # Preserve -v and -x to the replacement shell.
  133. BASH_ENV=/dev/null
  134. ENV=/dev/null
  135. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  136. case $- in # ((((
  137. *v*x* | *x*v* ) as_opts=-vx ;;
  138. *v* ) as_opts=-v ;;
  139. *x* ) as_opts=-x ;;
  140. * ) as_opts= ;;
  141. esac
  142. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  143. # Admittedly, this is quite paranoid, since all the known shells bail
  144. # out after a failed `exec'.
  145. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  146. as_fn_exit 255
  147. fi
  148. # We don't want this to propagate to other subprocesses.
  149. { _as_can_reexec=; unset _as_can_reexec;}
  150. if test "x$CONFIG_SHELL" = x; then
  151. as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
  152. emulate sh
  153. NULLCMD=:
  154. # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
  155. # is contrary to our usage. Disable this feature.
  156. alias -g '\${1+\"\$@\"}'='\"\$@\"'
  157. setopt NO_GLOB_SUBST
  158. else
  159. case \`(set -o) 2>/dev/null\` in #(
  160. *posix*) :
  161. set -o posix ;; #(
  162. *) :
  163. ;;
  164. esac
  165. fi
  166. "
  167. as_required="as_fn_return () { (exit \$1); }
  168. as_fn_success () { as_fn_return 0; }
  169. as_fn_failure () { as_fn_return 1; }
  170. as_fn_ret_success () { return 0; }
  171. as_fn_ret_failure () { return 1; }
  172. exitcode=0
  173. as_fn_success || { exitcode=1; echo as_fn_success failed.; }
  174. as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
  175. as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
  176. as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
  177. if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
  178. else
  179. exitcode=1; echo positional parameters were not saved.
  180. fi
  181. test x\$exitcode = x0 || exit 1
  182. test -x / || exit 1"
  183. as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
  184. as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
  185. eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
  186. test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
  187. test \$(( 1 + 1 )) = 2 || exit 1
  188. test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
  189. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  190. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  191. ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
  192. PATH=/empty FPATH=/empty; export PATH FPATH
  193. test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
  194. || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1"
  195. if (eval "$as_required") 2>/dev/null; then :
  196. as_have_required=yes
  197. else
  198. as_have_required=no
  199. fi
  200. if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
  201. else
  202. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  203. as_found=false
  204. for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
  205. do
  206. IFS=$as_save_IFS
  207. test -z "$as_dir" && as_dir=.
  208. as_found=:
  209. case $as_dir in #(
  210. /*)
  211. for as_base in sh bash ksh sh5; do
  212. # Try only shells that exist, to save several forks.
  213. as_shell=$as_dir/$as_base
  214. if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
  215. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
  216. CONFIG_SHELL=$as_shell as_have_required=yes
  217. if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
  218. break 2
  219. fi
  220. fi
  221. done;;
  222. esac
  223. as_found=false
  224. done
  225. $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
  226. { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
  227. CONFIG_SHELL=$SHELL as_have_required=yes
  228. fi; }
  229. IFS=$as_save_IFS
  230. if test "x$CONFIG_SHELL" != x; then :
  231. export CONFIG_SHELL
  232. # We cannot yet assume a decent shell, so we have to provide a
  233. # neutralization value for shells without unset; and this also
  234. # works around shells that cannot unset nonexistent variables.
  235. # Preserve -v and -x to the replacement shell.
  236. BASH_ENV=/dev/null
  237. ENV=/dev/null
  238. (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
  239. case $- in # ((((
  240. *v*x* | *x*v* ) as_opts=-vx ;;
  241. *v* ) as_opts=-v ;;
  242. *x* ) as_opts=-x ;;
  243. * ) as_opts= ;;
  244. esac
  245. exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
  246. # Admittedly, this is quite paranoid, since all the known shells bail
  247. # out after a failed `exec'.
  248. $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
  249. exit 255
  250. fi
  251. if test x$as_have_required = xno; then :
  252. $as_echo "$0: This script requires a shell more modern than all"
  253. $as_echo "$0: the shells that I found on your system."
  254. if test x${ZSH_VERSION+set} = xset ; then
  255. $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
  256. $as_echo "$0: be upgraded to zsh 4.3.4 or later."
  257. else
  258. $as_echo "$0: Please tell bug-autoconf@gnu.org and serj.kalichev at
  259. $0: gmail dot com about your system, including any error
  260. $0: possibly output before this message. Then install a
  261. $0: modern shell, or manually run the script under such a
  262. $0: shell if you do have one."
  263. fi
  264. exit 1
  265. fi
  266. fi
  267. fi
  268. SHELL=${CONFIG_SHELL-/bin/sh}
  269. export SHELL
  270. # Unset more variables known to interfere with behavior of common tools.
  271. CLICOLOR_FORCE= GREP_OPTIONS=
  272. unset CLICOLOR_FORCE GREP_OPTIONS
  273. ## --------------------- ##
  274. ## M4sh Shell Functions. ##
  275. ## --------------------- ##
  276. # as_fn_unset VAR
  277. # ---------------
  278. # Portably unset VAR.
  279. as_fn_unset ()
  280. {
  281. { eval $1=; unset $1;}
  282. }
  283. as_unset=as_fn_unset
  284. # as_fn_set_status STATUS
  285. # -----------------------
  286. # Set $? to STATUS, without forking.
  287. as_fn_set_status ()
  288. {
  289. return $1
  290. } # as_fn_set_status
  291. # as_fn_exit STATUS
  292. # -----------------
  293. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  294. as_fn_exit ()
  295. {
  296. set +e
  297. as_fn_set_status $1
  298. exit $1
  299. } # as_fn_exit
  300. # as_fn_mkdir_p
  301. # -------------
  302. # Create "$as_dir" as a directory, including parents if necessary.
  303. as_fn_mkdir_p ()
  304. {
  305. case $as_dir in #(
  306. -*) as_dir=./$as_dir;;
  307. esac
  308. test -d "$as_dir" || eval $as_mkdir_p || {
  309. as_dirs=
  310. while :; do
  311. case $as_dir in #(
  312. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  313. *) as_qdir=$as_dir;;
  314. esac
  315. as_dirs="'$as_qdir' $as_dirs"
  316. as_dir=`$as_dirname -- "$as_dir" ||
  317. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  318. X"$as_dir" : 'X\(//\)[^/]' \| \
  319. X"$as_dir" : 'X\(//\)$' \| \
  320. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  321. $as_echo X"$as_dir" |
  322. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  323. s//\1/
  324. q
  325. }
  326. /^X\(\/\/\)[^/].*/{
  327. s//\1/
  328. q
  329. }
  330. /^X\(\/\/\)$/{
  331. s//\1/
  332. q
  333. }
  334. /^X\(\/\).*/{
  335. s//\1/
  336. q
  337. }
  338. s/.*/./; q'`
  339. test -d "$as_dir" && break
  340. done
  341. test -z "$as_dirs" || eval "mkdir $as_dirs"
  342. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  343. } # as_fn_mkdir_p
  344. # as_fn_executable_p FILE
  345. # -----------------------
  346. # Test if FILE is an executable regular file.
  347. as_fn_executable_p ()
  348. {
  349. test -f "$1" && test -x "$1"
  350. } # as_fn_executable_p
  351. # as_fn_append VAR VALUE
  352. # ----------------------
  353. # Append the text in VALUE to the end of the definition contained in VAR. Take
  354. # advantage of any shell optimizations that allow amortized linear growth over
  355. # repeated appends, instead of the typical quadratic growth present in naive
  356. # implementations.
  357. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  358. eval 'as_fn_append ()
  359. {
  360. eval $1+=\$2
  361. }'
  362. else
  363. as_fn_append ()
  364. {
  365. eval $1=\$$1\$2
  366. }
  367. fi # as_fn_append
  368. # as_fn_arith ARG...
  369. # ------------------
  370. # Perform arithmetic evaluation on the ARGs, and store the result in the
  371. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  372. # must be portable across $(()) and expr.
  373. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  374. eval 'as_fn_arith ()
  375. {
  376. as_val=$(( $* ))
  377. }'
  378. else
  379. as_fn_arith ()
  380. {
  381. as_val=`expr "$@" || test $? -eq 1`
  382. }
  383. fi # as_fn_arith
  384. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  385. # ----------------------------------------
  386. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  387. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  388. # script with STATUS, using 1 if that was 0.
  389. as_fn_error ()
  390. {
  391. as_status=$1; test $as_status -eq 0 && as_status=1
  392. if test "$4"; then
  393. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  394. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  395. fi
  396. $as_echo "$as_me: error: $2" >&2
  397. as_fn_exit $as_status
  398. } # as_fn_error
  399. if expr a : '\(a\)' >/dev/null 2>&1 &&
  400. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  401. as_expr=expr
  402. else
  403. as_expr=false
  404. fi
  405. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  406. as_basename=basename
  407. else
  408. as_basename=false
  409. fi
  410. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  411. as_dirname=dirname
  412. else
  413. as_dirname=false
  414. fi
  415. as_me=`$as_basename -- "$0" ||
  416. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  417. X"$0" : 'X\(//\)$' \| \
  418. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  419. $as_echo X/"$0" |
  420. sed '/^.*\/\([^/][^/]*\)\/*$/{
  421. s//\1/
  422. q
  423. }
  424. /^X\/\(\/\/\)$/{
  425. s//\1/
  426. q
  427. }
  428. /^X\/\(\/\).*/{
  429. s//\1/
  430. q
  431. }
  432. s/.*/./; q'`
  433. # Avoid depending upon Character Ranges.
  434. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  435. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  436. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  437. as_cr_digits='0123456789'
  438. as_cr_alnum=$as_cr_Letters$as_cr_digits
  439. as_lineno_1=$LINENO as_lineno_1a=$LINENO
  440. as_lineno_2=$LINENO as_lineno_2a=$LINENO
  441. eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
  442. test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
  443. # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
  444. sed -n '
  445. p
  446. /[$]LINENO/=
  447. ' <$as_myself |
  448. sed '
  449. s/[$]LINENO.*/&-/
  450. t lineno
  451. b
  452. :lineno
  453. N
  454. :loop
  455. s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
  456. t loop
  457. s/-\n.*//
  458. ' >$as_me.lineno &&
  459. chmod +x "$as_me.lineno" ||
  460. { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
  461. # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
  462. # already done that, so ensure we don't try to do so again and fall
  463. # in an infinite loop. This has already happened in practice.
  464. _as_can_reexec=no; export _as_can_reexec
  465. # Don't try to exec as it changes $[0], causing all sort of problems
  466. # (the dirname of $[0] is not the place where we might find the
  467. # original and so on. Autoconf is especially sensitive to this).
  468. . "./$as_me.lineno"
  469. # Exit status is that of the last command.
  470. exit
  471. }
  472. ECHO_C= ECHO_N= ECHO_T=
  473. case `echo -n x` in #(((((
  474. -n*)
  475. case `echo 'xy\c'` in
  476. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  477. xy) ECHO_C='\c';;
  478. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  479. ECHO_T=' ';;
  480. esac;;
  481. *)
  482. ECHO_N='-n';;
  483. esac
  484. rm -f conf$$ conf$$.exe conf$$.file
  485. if test -d conf$$.dir; then
  486. rm -f conf$$.dir/conf$$.file
  487. else
  488. rm -f conf$$.dir
  489. mkdir conf$$.dir 2>/dev/null
  490. fi
  491. if (echo >conf$$.file) 2>/dev/null; then
  492. if ln -s conf$$.file conf$$ 2>/dev/null; then
  493. as_ln_s='ln -s'
  494. # ... but there are two gotchas:
  495. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  496. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  497. # In both cases, we have to default to `cp -pR'.
  498. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  499. as_ln_s='cp -pR'
  500. elif ln conf$$.file conf$$ 2>/dev/null; then
  501. as_ln_s=ln
  502. else
  503. as_ln_s='cp -pR'
  504. fi
  505. else
  506. as_ln_s='cp -pR'
  507. fi
  508. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  509. rmdir conf$$.dir 2>/dev/null
  510. if mkdir -p . 2>/dev/null; then
  511. as_mkdir_p='mkdir -p "$as_dir"'
  512. else
  513. test -d ./-p && rmdir ./-p
  514. as_mkdir_p=false
  515. fi
  516. as_test_x='test -x'
  517. as_executable_p=as_fn_executable_p
  518. # Sed expression to map a string onto a valid CPP name.
  519. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  520. # Sed expression to map a string onto a valid variable name.
  521. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  522. SHELL=${CONFIG_SHELL-/bin/sh}
  523. test -n "$DJDIR" || exec 7<&0 </dev/null
  524. exec 6>&1
  525. # Name of the host.
  526. # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
  527. # so uname gets run too.
  528. ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
  529. #
  530. # Initializations.
  531. #
  532. ac_default_prefix=/usr/local
  533. ac_clean_files=
  534. ac_config_libobj_dir=.
  535. LIBOBJS=
  536. cross_compiling=no
  537. subdirs=
  538. MFLAGS=
  539. MAKEFLAGS=
  540. # Identity of this package.
  541. PACKAGE_NAME='klish'
  542. PACKAGE_TARNAME='klish'
  543. PACKAGE_VERSION='1.5.6'
  544. PACKAGE_STRING='klish 1.5.6'
  545. PACKAGE_BUGREPORT='serj.kalichev at gmail dot com'
  546. PACKAGE_URL=''
  547. # Factoring default headers for most tests.
  548. ac_includes_default="\
  549. #include <stdio.h>
  550. #ifdef HAVE_SYS_TYPES_H
  551. # include <sys/types.h>
  552. #endif
  553. #ifdef HAVE_SYS_STAT_H
  554. # include <sys/stat.h>
  555. #endif
  556. #ifdef STDC_HEADERS
  557. # include <stdlib.h>
  558. # include <stddef.h>
  559. #else
  560. # ifdef HAVE_STDLIB_H
  561. # include <stdlib.h>
  562. # endif
  563. #endif
  564. #ifdef HAVE_STRING_H
  565. # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
  566. # include <memory.h>
  567. # endif
  568. # include <string.h>
  569. #endif
  570. #ifdef HAVE_STRINGS_H
  571. # include <strings.h>
  572. #endif
  573. #ifdef HAVE_INTTYPES_H
  574. # include <inttypes.h>
  575. #endif
  576. #ifdef HAVE_STDINT_H
  577. # include <stdint.h>
  578. #endif
  579. #ifdef HAVE_UNISTD_H
  580. # include <unistd.h>
  581. #endif"
  582. ac_subst_vars='am__EXEEXT_FALSE
  583. am__EXEEXT_TRUE
  584. LTLIBOBJS
  585. LIBOBJS
  586. TINYXML_CXXFLAGS
  587. TINYXML_LIBS
  588. TINYRL_CFLAGS
  589. TINYRL_LIBS
  590. KONF_CFLAGS
  591. KONF_LIBS
  592. LUB_CFLAGS
  593. LUB_LIBS
  594. DEBUG_FALSE
  595. DEBUG_TRUE
  596. am__fastdepCXX_FALSE
  597. am__fastdepCXX_TRUE
  598. CXXDEPMODE
  599. am__fastdepCC_FALSE
  600. am__fastdepCC_TRUE
  601. CCDEPMODE
  602. am__nodep
  603. AMDEPBACKSLASH
  604. AMDEP_FALSE
  605. AMDEP_TRUE
  606. am__quote
  607. am__include
  608. DEPDIR
  609. am__untar
  610. am__tar
  611. AMTAR
  612. am__leading_dot
  613. SET_MAKE
  614. mkdir_p
  615. MKDIR_P
  616. INSTALL_STRIP_PROGRAM
  617. install_sh
  618. MAKEINFO
  619. AUTOHEADER
  620. AUTOMAKE
  621. AUTOCONF
  622. ACLOCAL
  623. VERSION
  624. PACKAGE
  625. CYGPATH_W
  626. am__isrc
  627. INSTALL_DATA
  628. INSTALL_SCRIPT
  629. INSTALL_PROGRAM
  630. CXXCPP
  631. OTOOL64
  632. OTOOL
  633. LIPO
  634. NMEDIT
  635. DSYMUTIL
  636. MANIFEST_TOOL
  637. AWK
  638. RANLIB
  639. STRIP
  640. ac_ct_AR
  641. AR
  642. LN_S
  643. NM
  644. ac_ct_DUMPBIN
  645. DUMPBIN
  646. LD
  647. FGREP
  648. SED
  649. LIBTOOL
  650. OBJDUMP
  651. DLLTOOL
  652. AS
  653. host_os
  654. host_vendor
  655. host_cpu
  656. host
  657. build_os
  658. build_vendor
  659. build_cpu
  660. build
  661. ac_ct_CXX
  662. CXXFLAGS
  663. CXX
  664. EGREP
  665. GREP
  666. CPP
  667. OBJEXT
  668. EXEEXT
  669. ac_ct_CC
  670. CPPFLAGS
  671. LDFLAGS
  672. CFLAGS
  673. CC
  674. target_alias
  675. host_alias
  676. build_alias
  677. LIBS
  678. ECHO_T
  679. ECHO_N
  680. ECHO_C
  681. DEFS
  682. mandir
  683. localedir
  684. libdir
  685. psdir
  686. pdfdir
  687. dvidir
  688. htmldir
  689. infodir
  690. docdir
  691. oldincludedir
  692. includedir
  693. localstatedir
  694. sharedstatedir
  695. sysconfdir
  696. datadir
  697. datarootdir
  698. libexecdir
  699. sbindir
  700. bindir
  701. program_transform_name
  702. prefix
  703. exec_prefix
  704. PACKAGE_URL
  705. PACKAGE_BUGREPORT
  706. PACKAGE_STRING
  707. PACKAGE_VERSION
  708. PACKAGE_TARNAME
  709. PACKAGE_NAME
  710. PATH_SEPARATOR
  711. SHELL'
  712. ac_subst_files=''
  713. ac_user_opts='
  714. enable_option_checking
  715. enable_shared
  716. enable_static
  717. with_pic
  718. enable_fast_install
  719. with_gnu_ld
  720. with_sysroot
  721. enable_libtool_lock
  722. enable_dependency_tracking
  723. enable_debug
  724. '
  725. ac_precious_vars='build_alias
  726. host_alias
  727. target_alias
  728. CC
  729. CFLAGS
  730. LDFLAGS
  731. LIBS
  732. CPPFLAGS
  733. CPP
  734. CXX
  735. CXXFLAGS
  736. CCC
  737. CXXCPP'
  738. # Initialize some variables set by options.
  739. ac_init_help=
  740. ac_init_version=false
  741. ac_unrecognized_opts=
  742. ac_unrecognized_sep=
  743. # The variables have the same names as the options, with
  744. # dashes changed to underlines.
  745. cache_file=/dev/null
  746. exec_prefix=NONE
  747. no_create=
  748. no_recursion=
  749. prefix=NONE
  750. program_prefix=NONE
  751. program_suffix=NONE
  752. program_transform_name=s,x,x,
  753. silent=
  754. site=
  755. srcdir=
  756. verbose=
  757. x_includes=NONE
  758. x_libraries=NONE
  759. # Installation directory options.
  760. # These are left unexpanded so users can "make install exec_prefix=/foo"
  761. # and all the variables that are supposed to be based on exec_prefix
  762. # by default will actually change.
  763. # Use braces instead of parens because sh, perl, etc. also accept them.
  764. # (The list follows the same order as the GNU Coding Standards.)
  765. bindir='${exec_prefix}/bin'
  766. sbindir='${exec_prefix}/sbin'
  767. libexecdir='${exec_prefix}/libexec'
  768. datarootdir='${prefix}/share'
  769. datadir='${datarootdir}'
  770. sysconfdir='${prefix}/etc'
  771. sharedstatedir='${prefix}/com'
  772. localstatedir='${prefix}/var'
  773. includedir='${prefix}/include'
  774. oldincludedir='/usr/include'
  775. docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
  776. infodir='${datarootdir}/info'
  777. htmldir='${docdir}'
  778. dvidir='${docdir}'
  779. pdfdir='${docdir}'
  780. psdir='${docdir}'
  781. libdir='${exec_prefix}/lib'
  782. localedir='${datarootdir}/locale'
  783. mandir='${datarootdir}/man'
  784. ac_prev=
  785. ac_dashdash=
  786. for ac_option
  787. do
  788. # If the previous option needs an argument, assign it.
  789. if test -n "$ac_prev"; then
  790. eval $ac_prev=\$ac_option
  791. ac_prev=
  792. continue
  793. fi
  794. case $ac_option in
  795. *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
  796. *=) ac_optarg= ;;
  797. *) ac_optarg=yes ;;
  798. esac
  799. # Accept the important Cygnus configure options, so we can diagnose typos.
  800. case $ac_dashdash$ac_option in
  801. --)
  802. ac_dashdash=yes ;;
  803. -bindir | --bindir | --bindi | --bind | --bin | --bi)
  804. ac_prev=bindir ;;
  805. -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
  806. bindir=$ac_optarg ;;
  807. -build | --build | --buil | --bui | --bu)
  808. ac_prev=build_alias ;;
  809. -build=* | --build=* | --buil=* | --bui=* | --bu=*)
  810. build_alias=$ac_optarg ;;
  811. -cache-file | --cache-file | --cache-fil | --cache-fi \
  812. | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
  813. ac_prev=cache_file ;;
  814. -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
  815. | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
  816. cache_file=$ac_optarg ;;
  817. --config-cache | -C)
  818. cache_file=config.cache ;;
  819. -datadir | --datadir | --datadi | --datad)
  820. ac_prev=datadir ;;
  821. -datadir=* | --datadir=* | --datadi=* | --datad=*)
  822. datadir=$ac_optarg ;;
  823. -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
  824. | --dataroo | --dataro | --datar)
  825. ac_prev=datarootdir ;;
  826. -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
  827. | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
  828. datarootdir=$ac_optarg ;;
  829. -disable-* | --disable-*)
  830. ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
  831. # Reject names that are not valid shell variable names.
  832. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  833. as_fn_error $? "invalid feature name: $ac_useropt"
  834. ac_useropt_orig=$ac_useropt
  835. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  836. case $ac_user_opts in
  837. *"
  838. "enable_$ac_useropt"
  839. "*) ;;
  840. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
  841. ac_unrecognized_sep=', ';;
  842. esac
  843. eval enable_$ac_useropt=no ;;
  844. -docdir | --docdir | --docdi | --doc | --do)
  845. ac_prev=docdir ;;
  846. -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
  847. docdir=$ac_optarg ;;
  848. -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
  849. ac_prev=dvidir ;;
  850. -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
  851. dvidir=$ac_optarg ;;
  852. -enable-* | --enable-*)
  853. ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
  854. # Reject names that are not valid shell variable names.
  855. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  856. as_fn_error $? "invalid feature name: $ac_useropt"
  857. ac_useropt_orig=$ac_useropt
  858. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  859. case $ac_user_opts in
  860. *"
  861. "enable_$ac_useropt"
  862. "*) ;;
  863. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
  864. ac_unrecognized_sep=', ';;
  865. esac
  866. eval enable_$ac_useropt=\$ac_optarg ;;
  867. -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
  868. | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
  869. | --exec | --exe | --ex)
  870. ac_prev=exec_prefix ;;
  871. -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
  872. | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
  873. | --exec=* | --exe=* | --ex=*)
  874. exec_prefix=$ac_optarg ;;
  875. -gas | --gas | --ga | --g)
  876. # Obsolete; use --with-gas.
  877. with_gas=yes ;;
  878. -help | --help | --hel | --he | -h)
  879. ac_init_help=long ;;
  880. -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
  881. ac_init_help=recursive ;;
  882. -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
  883. ac_init_help=short ;;
  884. -host | --host | --hos | --ho)
  885. ac_prev=host_alias ;;
  886. -host=* | --host=* | --hos=* | --ho=*)
  887. host_alias=$ac_optarg ;;
  888. -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
  889. ac_prev=htmldir ;;
  890. -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
  891. | --ht=*)
  892. htmldir=$ac_optarg ;;
  893. -includedir | --includedir | --includedi | --included | --include \
  894. | --includ | --inclu | --incl | --inc)
  895. ac_prev=includedir ;;
  896. -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
  897. | --includ=* | --inclu=* | --incl=* | --inc=*)
  898. includedir=$ac_optarg ;;
  899. -infodir | --infodir | --infodi | --infod | --info | --inf)
  900. ac_prev=infodir ;;
  901. -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
  902. infodir=$ac_optarg ;;
  903. -libdir | --libdir | --libdi | --libd)
  904. ac_prev=libdir ;;
  905. -libdir=* | --libdir=* | --libdi=* | --libd=*)
  906. libdir=$ac_optarg ;;
  907. -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
  908. | --libexe | --libex | --libe)
  909. ac_prev=libexecdir ;;
  910. -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
  911. | --libexe=* | --libex=* | --libe=*)
  912. libexecdir=$ac_optarg ;;
  913. -localedir | --localedir | --localedi | --localed | --locale)
  914. ac_prev=localedir ;;
  915. -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
  916. localedir=$ac_optarg ;;
  917. -localstatedir | --localstatedir | --localstatedi | --localstated \
  918. | --localstate | --localstat | --localsta | --localst | --locals)
  919. ac_prev=localstatedir ;;
  920. -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
  921. | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
  922. localstatedir=$ac_optarg ;;
  923. -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
  924. ac_prev=mandir ;;
  925. -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
  926. mandir=$ac_optarg ;;
  927. -nfp | --nfp | --nf)
  928. # Obsolete; use --without-fp.
  929. with_fp=no ;;
  930. -no-create | --no-create | --no-creat | --no-crea | --no-cre \
  931. | --no-cr | --no-c | -n)
  932. no_create=yes ;;
  933. -no-recursion | --no-recursion | --no-recursio | --no-recursi \
  934. | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
  935. no_recursion=yes ;;
  936. -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
  937. | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
  938. | --oldin | --oldi | --old | --ol | --o)
  939. ac_prev=oldincludedir ;;
  940. -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
  941. | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
  942. | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
  943. oldincludedir=$ac_optarg ;;
  944. -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
  945. ac_prev=prefix ;;
  946. -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
  947. prefix=$ac_optarg ;;
  948. -program-prefix | --program-prefix | --program-prefi | --program-pref \
  949. | --program-pre | --program-pr | --program-p)
  950. ac_prev=program_prefix ;;
  951. -program-prefix=* | --program-prefix=* | --program-prefi=* \
  952. | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
  953. program_prefix=$ac_optarg ;;
  954. -program-suffix | --program-suffix | --program-suffi | --program-suff \
  955. | --program-suf | --program-su | --program-s)
  956. ac_prev=program_suffix ;;
  957. -program-suffix=* | --program-suffix=* | --program-suffi=* \
  958. | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
  959. program_suffix=$ac_optarg ;;
  960. -program-transform-name | --program-transform-name \
  961. | --program-transform-nam | --program-transform-na \
  962. | --program-transform-n | --program-transform- \
  963. | --program-transform | --program-transfor \
  964. | --program-transfo | --program-transf \
  965. | --program-trans | --program-tran \
  966. | --progr-tra | --program-tr | --program-t)
  967. ac_prev=program_transform_name ;;
  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. program_transform_name=$ac_optarg ;;
  976. -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
  977. ac_prev=pdfdir ;;
  978. -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
  979. pdfdir=$ac_optarg ;;
  980. -psdir | --psdir | --psdi | --psd | --ps)
  981. ac_prev=psdir ;;
  982. -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
  983. psdir=$ac_optarg ;;
  984. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  985. | -silent | --silent | --silen | --sile | --sil)
  986. silent=yes ;;
  987. -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
  988. ac_prev=sbindir ;;
  989. -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
  990. | --sbi=* | --sb=*)
  991. sbindir=$ac_optarg ;;
  992. -sharedstatedir | --sharedstatedir | --sharedstatedi \
  993. | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
  994. | --sharedst | --shareds | --shared | --share | --shar \
  995. | --sha | --sh)
  996. ac_prev=sharedstatedir ;;
  997. -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
  998. | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
  999. | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
  1000. | --sha=* | --sh=*)
  1001. sharedstatedir=$ac_optarg ;;
  1002. -site | --site | --sit)
  1003. ac_prev=site ;;
  1004. -site=* | --site=* | --sit=*)
  1005. site=$ac_optarg ;;
  1006. -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
  1007. ac_prev=srcdir ;;
  1008. -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
  1009. srcdir=$ac_optarg ;;
  1010. -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
  1011. | --syscon | --sysco | --sysc | --sys | --sy)
  1012. ac_prev=sysconfdir ;;
  1013. -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
  1014. | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
  1015. sysconfdir=$ac_optarg ;;
  1016. -target | --target | --targe | --targ | --tar | --ta | --t)
  1017. ac_prev=target_alias ;;
  1018. -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
  1019. target_alias=$ac_optarg ;;
  1020. -v | -verbose | --verbose | --verbos | --verbo | --verb)
  1021. verbose=yes ;;
  1022. -version | --version | --versio | --versi | --vers | -V)
  1023. ac_init_version=: ;;
  1024. -with-* | --with-*)
  1025. ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
  1026. # Reject names that are not valid shell variable names.
  1027. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1028. as_fn_error $? "invalid package name: $ac_useropt"
  1029. ac_useropt_orig=$ac_useropt
  1030. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1031. case $ac_user_opts in
  1032. *"
  1033. "with_$ac_useropt"
  1034. "*) ;;
  1035. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
  1036. ac_unrecognized_sep=', ';;
  1037. esac
  1038. eval with_$ac_useropt=\$ac_optarg ;;
  1039. -without-* | --without-*)
  1040. ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
  1041. # Reject names that are not valid shell variable names.
  1042. expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
  1043. as_fn_error $? "invalid package name: $ac_useropt"
  1044. ac_useropt_orig=$ac_useropt
  1045. ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
  1046. case $ac_user_opts in
  1047. *"
  1048. "with_$ac_useropt"
  1049. "*) ;;
  1050. *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
  1051. ac_unrecognized_sep=', ';;
  1052. esac
  1053. eval with_$ac_useropt=no ;;
  1054. --x)
  1055. # Obsolete; use --with-x.
  1056. with_x=yes ;;
  1057. -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
  1058. | --x-incl | --x-inc | --x-in | --x-i)
  1059. ac_prev=x_includes ;;
  1060. -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
  1061. | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
  1062. x_includes=$ac_optarg ;;
  1063. -x-libraries | --x-libraries | --x-librarie | --x-librari \
  1064. | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
  1065. ac_prev=x_libraries ;;
  1066. -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
  1067. | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
  1068. x_libraries=$ac_optarg ;;
  1069. -*) as_fn_error $? "unrecognized option: \`$ac_option'
  1070. Try \`$0 --help' for more information"
  1071. ;;
  1072. *=*)
  1073. ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
  1074. # Reject names that are not valid shell variable names.
  1075. case $ac_envvar in #(
  1076. '' | [0-9]* | *[!_$as_cr_alnum]* )
  1077. as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
  1078. esac
  1079. eval $ac_envvar=\$ac_optarg
  1080. export $ac_envvar ;;
  1081. *)
  1082. # FIXME: should be removed in autoconf 3.0.
  1083. $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
  1084. expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
  1085. $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
  1086. : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
  1087. ;;
  1088. esac
  1089. done
  1090. if test -n "$ac_prev"; then
  1091. ac_option=--`echo $ac_prev | sed 's/_/-/g'`
  1092. as_fn_error $? "missing argument to $ac_option"
  1093. fi
  1094. if test -n "$ac_unrecognized_opts"; then
  1095. case $enable_option_checking in
  1096. no) ;;
  1097. fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
  1098. *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
  1099. esac
  1100. fi
  1101. # Check all directory arguments for consistency.
  1102. for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
  1103. datadir sysconfdir sharedstatedir localstatedir includedir \
  1104. oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
  1105. libdir localedir mandir
  1106. do
  1107. eval ac_val=\$$ac_var
  1108. # Remove trailing slashes.
  1109. case $ac_val in
  1110. */ )
  1111. ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
  1112. eval $ac_var=\$ac_val;;
  1113. esac
  1114. # Be sure to have absolute directory names.
  1115. case $ac_val in
  1116. [\\/$]* | ?:[\\/]* ) continue;;
  1117. NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
  1118. esac
  1119. as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
  1120. done
  1121. # There might be people who depend on the old broken behavior: `$host'
  1122. # used to hold the argument of --host etc.
  1123. # FIXME: To remove some day.
  1124. build=$build_alias
  1125. host=$host_alias
  1126. target=$target_alias
  1127. # FIXME: To remove some day.
  1128. if test "x$host_alias" != x; then
  1129. if test "x$build_alias" = x; then
  1130. cross_compiling=maybe
  1131. elif test "x$build_alias" != "x$host_alias"; then
  1132. cross_compiling=yes
  1133. fi
  1134. fi
  1135. ac_tool_prefix=
  1136. test -n "$host_alias" && ac_tool_prefix=$host_alias-
  1137. test "$silent" = yes && exec 6>/dev/null
  1138. ac_pwd=`pwd` && test -n "$ac_pwd" &&
  1139. ac_ls_di=`ls -di .` &&
  1140. ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
  1141. as_fn_error $? "working directory cannot be determined"
  1142. test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
  1143. as_fn_error $? "pwd does not report name of working directory"
  1144. # Find the source files, if location was not specified.
  1145. if test -z "$srcdir"; then
  1146. ac_srcdir_defaulted=yes
  1147. # Try the directory containing this script, then the parent directory.
  1148. ac_confdir=`$as_dirname -- "$as_myself" ||
  1149. $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  1150. X"$as_myself" : 'X\(//\)[^/]' \| \
  1151. X"$as_myself" : 'X\(//\)$' \| \
  1152. X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
  1153. $as_echo X"$as_myself" |
  1154. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  1155. s//\1/
  1156. q
  1157. }
  1158. /^X\(\/\/\)[^/].*/{
  1159. s//\1/
  1160. q
  1161. }
  1162. /^X\(\/\/\)$/{
  1163. s//\1/
  1164. q
  1165. }
  1166. /^X\(\/\).*/{
  1167. s//\1/
  1168. q
  1169. }
  1170. s/.*/./; q'`
  1171. srcdir=$ac_confdir
  1172. if test ! -r "$srcdir/$ac_unique_file"; then
  1173. srcdir=..
  1174. fi
  1175. else
  1176. ac_srcdir_defaulted=no
  1177. fi
  1178. if test ! -r "$srcdir/$ac_unique_file"; then
  1179. test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
  1180. as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
  1181. fi
  1182. ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
  1183. ac_abs_confdir=`(
  1184. cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
  1185. pwd)`
  1186. # When building in place, set srcdir=.
  1187. if test "$ac_abs_confdir" = "$ac_pwd"; then
  1188. srcdir=.
  1189. fi
  1190. # Remove unnecessary trailing slashes from srcdir.
  1191. # Double slashes in file names in object file debugging info
  1192. # mess up M-x gdb in Emacs.
  1193. case $srcdir in
  1194. */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
  1195. esac
  1196. for ac_var in $ac_precious_vars; do
  1197. eval ac_env_${ac_var}_set=\${${ac_var}+set}
  1198. eval ac_env_${ac_var}_value=\$${ac_var}
  1199. eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
  1200. eval ac_cv_env_${ac_var}_value=\$${ac_var}
  1201. done
  1202. #
  1203. # Report the --help message.
  1204. #
  1205. if test "$ac_init_help" = "long"; then
  1206. # Omit some internal or obsolete options to make the list less imposing.
  1207. # This message is too long to be a string in the A/UX 3.1 sh.
  1208. cat <<_ACEOF
  1209. \`configure' configures klish 1.5.6 to adapt to many kinds of systems.
  1210. Usage: $0 [OPTION]... [VAR=VALUE]...
  1211. To assign environment variables (e.g., CC, CFLAGS...), specify them as
  1212. VAR=VALUE. See below for descriptions of some of the useful variables.
  1213. Defaults for the options are specified in brackets.
  1214. Configuration:
  1215. -h, --help display this help and exit
  1216. --help=short display options specific to this package
  1217. --help=recursive display the short help of all the included packages
  1218. -V, --version display version information and exit
  1219. -q, --quiet, --silent do not print \`checking ...' messages
  1220. --cache-file=FILE cache test results in FILE [disabled]
  1221. -C, --config-cache alias for \`--cache-file=config.cache'
  1222. -n, --no-create do not create output files
  1223. --srcdir=DIR find the sources in DIR [configure dir or \`..']
  1224. Installation directories:
  1225. --prefix=PREFIX install architecture-independent files in PREFIX
  1226. [$ac_default_prefix]
  1227. --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
  1228. [PREFIX]
  1229. By default, \`make install' will install all the files in
  1230. \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
  1231. an installation prefix other than \`$ac_default_prefix' using \`--prefix',
  1232. for instance \`--prefix=\$HOME'.
  1233. For better control, use the options below.
  1234. Fine tuning of the installation directories:
  1235. --bindir=DIR user executables [EPREFIX/bin]
  1236. --sbindir=DIR system admin executables [EPREFIX/sbin]
  1237. --libexecdir=DIR program executables [EPREFIX/libexec]
  1238. --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
  1239. --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
  1240. --localstatedir=DIR modifiable single-machine data [PREFIX/var]
  1241. --libdir=DIR object code libraries [EPREFIX/lib]
  1242. --includedir=DIR C header files [PREFIX/include]
  1243. --oldincludedir=DIR C header files for non-gcc [/usr/include]
  1244. --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
  1245. --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
  1246. --infodir=DIR info documentation [DATAROOTDIR/info]
  1247. --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
  1248. --mandir=DIR man documentation [DATAROOTDIR/man]
  1249. --docdir=DIR documentation root [DATAROOTDIR/doc/klish]
  1250. --htmldir=DIR html documentation [DOCDIR]
  1251. --dvidir=DIR dvi documentation [DOCDIR]
  1252. --pdfdir=DIR pdf documentation [DOCDIR]
  1253. --psdir=DIR ps documentation [DOCDIR]
  1254. _ACEOF
  1255. cat <<\_ACEOF
  1256. Program names:
  1257. --program-prefix=PREFIX prepend PREFIX to installed program names
  1258. --program-suffix=SUFFIX append SUFFIX to installed program names
  1259. --program-transform-name=PROGRAM run sed PROGRAM on installed program names
  1260. System types:
  1261. --build=BUILD configure for building on BUILD [guessed]
  1262. --host=HOST cross-compile to build programs to run on HOST [BUILD]
  1263. _ACEOF
  1264. fi
  1265. if test -n "$ac_init_help"; then
  1266. case $ac_init_help in
  1267. short | recursive ) echo "Configuration of klish 1.5.6:";;
  1268. esac
  1269. cat <<\_ACEOF
  1270. Optional Features:
  1271. --disable-option-checking ignore unrecognized --enable/--with options
  1272. --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
  1273. --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
  1274. --enable-shared[=PKGS] build shared libraries [default=yes]
  1275. --enable-static[=PKGS] build static libraries [default=yes]
  1276. --enable-fast-install[=PKGS]
  1277. optimize for fast installation [default=yes]
  1278. --disable-libtool-lock avoid locking (might break parallel builds)
  1279. --enable-dependency-tracking
  1280. do not reject slow dependency extractors
  1281. --disable-dependency-tracking
  1282. speeds up one-time build
  1283. --enable-debug Turn on debugging including asserts [default=no]
  1284. Optional Packages:
  1285. --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
  1286. --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
  1287. --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
  1288. both]
  1289. --with-gnu-ld assume the C compiler uses GNU ld [default=no]
  1290. --with-sysroot=DIR Search for dependent libraries within DIR
  1291. (or the compiler's sysroot if not specified).
  1292. Some influential environment variables:
  1293. CC C compiler command
  1294. CFLAGS C compiler flags
  1295. LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
  1296. nonstandard directory <lib dir>
  1297. LIBS libraries to pass to the linker, e.g. -l<library>
  1298. CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
  1299. you have headers in a nonstandard directory <include dir>
  1300. CPP C preprocessor
  1301. CXX C++ compiler command
  1302. CXXFLAGS C++ compiler flags
  1303. CXXCPP C++ preprocessor
  1304. Use these variables to override the choices made by `configure' or to help
  1305. it to find libraries and programs with nonstandard names/locations.
  1306. Report bugs to <serj.kalichev at gmail dot com>.
  1307. _ACEOF
  1308. ac_status=$?
  1309. fi
  1310. if test "$ac_init_help" = "recursive"; then
  1311. # If there are subdirs, report their specific --help.
  1312. for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
  1313. test -d "$ac_dir" ||
  1314. { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
  1315. continue
  1316. ac_builddir=.
  1317. case "$ac_dir" in
  1318. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1319. *)
  1320. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  1321. # A ".." for each directory in $ac_dir_suffix.
  1322. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  1323. case $ac_top_builddir_sub in
  1324. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  1325. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  1326. esac ;;
  1327. esac
  1328. ac_abs_top_builddir=$ac_pwd
  1329. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  1330. # for backward compatibility:
  1331. ac_top_builddir=$ac_top_build_prefix
  1332. case $srcdir in
  1333. .) # We are building in place.
  1334. ac_srcdir=.
  1335. ac_top_srcdir=$ac_top_builddir_sub
  1336. ac_abs_top_srcdir=$ac_pwd ;;
  1337. [\\/]* | ?:[\\/]* ) # Absolute name.
  1338. ac_srcdir=$srcdir$ac_dir_suffix;
  1339. ac_top_srcdir=$srcdir
  1340. ac_abs_top_srcdir=$srcdir ;;
  1341. *) # Relative name.
  1342. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  1343. ac_top_srcdir=$ac_top_build_prefix$srcdir
  1344. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  1345. esac
  1346. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  1347. cd "$ac_dir" || { ac_status=$?; continue; }
  1348. # Check for guested configure.
  1349. if test -f "$ac_srcdir/configure.gnu"; then
  1350. echo &&
  1351. $SHELL "$ac_srcdir/configure.gnu" --help=recursive
  1352. elif test -f "$ac_srcdir/configure"; then
  1353. echo &&
  1354. $SHELL "$ac_srcdir/configure" --help=recursive
  1355. else
  1356. $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
  1357. fi || ac_status=$?
  1358. cd "$ac_pwd" || { ac_status=$?; break; }
  1359. done
  1360. fi
  1361. test -n "$ac_init_help" && exit $ac_status
  1362. if $ac_init_version; then
  1363. cat <<\_ACEOF
  1364. klish configure 1.5.6
  1365. generated by GNU Autoconf 2.69
  1366. Copyright (C) 2012 Free Software Foundation, Inc.
  1367. This configure script is free software; the Free Software Foundation
  1368. gives unlimited permission to copy, distribute and modify it.
  1369. _ACEOF
  1370. exit
  1371. fi
  1372. ## ------------------------ ##
  1373. ## Autoconf initialization. ##
  1374. ## ------------------------ ##
  1375. # ac_fn_c_try_compile LINENO
  1376. # --------------------------
  1377. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1378. ac_fn_c_try_compile ()
  1379. {
  1380. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1381. rm -f conftest.$ac_objext
  1382. if { { ac_try="$ac_compile"
  1383. case "(($ac_try" in
  1384. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1385. *) ac_try_echo=$ac_try;;
  1386. esac
  1387. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1388. $as_echo "$ac_try_echo"; } >&5
  1389. (eval "$ac_compile") 2>conftest.err
  1390. ac_status=$?
  1391. if test -s conftest.err; then
  1392. grep -v '^ *+' conftest.err >conftest.er1
  1393. cat conftest.er1 >&5
  1394. mv -f conftest.er1 conftest.err
  1395. fi
  1396. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1397. test $ac_status = 0; } && {
  1398. test -z "$ac_c_werror_flag" ||
  1399. test ! -s conftest.err
  1400. } && test -s conftest.$ac_objext; then :
  1401. ac_retval=0
  1402. else
  1403. $as_echo "$as_me: failed program was:" >&5
  1404. sed 's/^/| /' conftest.$ac_ext >&5
  1405. ac_retval=1
  1406. fi
  1407. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1408. as_fn_set_status $ac_retval
  1409. } # ac_fn_c_try_compile
  1410. # ac_fn_c_try_cpp LINENO
  1411. # ----------------------
  1412. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1413. ac_fn_c_try_cpp ()
  1414. {
  1415. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1416. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1417. case "(($ac_try" in
  1418. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1419. *) ac_try_echo=$ac_try;;
  1420. esac
  1421. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1422. $as_echo "$ac_try_echo"; } >&5
  1423. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1424. ac_status=$?
  1425. if test -s conftest.err; then
  1426. grep -v '^ *+' conftest.err >conftest.er1
  1427. cat conftest.er1 >&5
  1428. mv -f conftest.er1 conftest.err
  1429. fi
  1430. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1431. test $ac_status = 0; } > conftest.i && {
  1432. test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
  1433. test ! -s conftest.err
  1434. }; then :
  1435. ac_retval=0
  1436. else
  1437. $as_echo "$as_me: failed program was:" >&5
  1438. sed 's/^/| /' conftest.$ac_ext >&5
  1439. ac_retval=1
  1440. fi
  1441. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1442. as_fn_set_status $ac_retval
  1443. } # ac_fn_c_try_cpp
  1444. # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
  1445. # -------------------------------------------------------
  1446. # Tests whether HEADER exists, giving a warning if it cannot be compiled using
  1447. # the include files in INCLUDES and setting the cache variable VAR
  1448. # accordingly.
  1449. ac_fn_c_check_header_mongrel ()
  1450. {
  1451. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1452. if eval \${$3+:} false; then :
  1453. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1454. $as_echo_n "checking for $2... " >&6; }
  1455. if eval \${$3+:} false; then :
  1456. $as_echo_n "(cached) " >&6
  1457. fi
  1458. eval ac_res=\$$3
  1459. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1460. $as_echo "$ac_res" >&6; }
  1461. else
  1462. # Is the header compilable?
  1463. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
  1464. $as_echo_n "checking $2 usability... " >&6; }
  1465. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1466. /* end confdefs.h. */
  1467. $4
  1468. #include <$2>
  1469. _ACEOF
  1470. if ac_fn_c_try_compile "$LINENO"; then :
  1471. ac_header_compiler=yes
  1472. else
  1473. ac_header_compiler=no
  1474. fi
  1475. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1476. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
  1477. $as_echo "$ac_header_compiler" >&6; }
  1478. # Is the header present?
  1479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
  1480. $as_echo_n "checking $2 presence... " >&6; }
  1481. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1482. /* end confdefs.h. */
  1483. #include <$2>
  1484. _ACEOF
  1485. if ac_fn_c_try_cpp "$LINENO"; then :
  1486. ac_header_preproc=yes
  1487. else
  1488. ac_header_preproc=no
  1489. fi
  1490. rm -f conftest.err conftest.i conftest.$ac_ext
  1491. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
  1492. $as_echo "$ac_header_preproc" >&6; }
  1493. # So? What about this header?
  1494. case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
  1495. yes:no: )
  1496. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
  1497. $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
  1498. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1499. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1500. ;;
  1501. no:yes:* )
  1502. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
  1503. $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
  1504. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
  1505. $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
  1506. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
  1507. $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
  1508. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
  1509. $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
  1510. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
  1511. $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
  1512. ( $as_echo "## --------------------------------------------- ##
  1513. ## Report this to serj.kalichev at gmail dot com ##
  1514. ## --------------------------------------------- ##"
  1515. ) | sed "s/^/$as_me: WARNING: /" >&2
  1516. ;;
  1517. esac
  1518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1519. $as_echo_n "checking for $2... " >&6; }
  1520. if eval \${$3+:} false; then :
  1521. $as_echo_n "(cached) " >&6
  1522. else
  1523. eval "$3=\$ac_header_compiler"
  1524. fi
  1525. eval ac_res=\$$3
  1526. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1527. $as_echo "$ac_res" >&6; }
  1528. fi
  1529. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1530. } # ac_fn_c_check_header_mongrel
  1531. # ac_fn_c_try_run LINENO
  1532. # ----------------------
  1533. # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
  1534. # that executables *can* be run.
  1535. ac_fn_c_try_run ()
  1536. {
  1537. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1538. if { { ac_try="$ac_link"
  1539. case "(($ac_try" in
  1540. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1541. *) ac_try_echo=$ac_try;;
  1542. esac
  1543. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1544. $as_echo "$ac_try_echo"; } >&5
  1545. (eval "$ac_link") 2>&5
  1546. ac_status=$?
  1547. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1548. test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
  1549. { { case "(($ac_try" in
  1550. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1551. *) ac_try_echo=$ac_try;;
  1552. esac
  1553. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1554. $as_echo "$ac_try_echo"; } >&5
  1555. (eval "$ac_try") 2>&5
  1556. ac_status=$?
  1557. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1558. test $ac_status = 0; }; }; then :
  1559. ac_retval=0
  1560. else
  1561. $as_echo "$as_me: program exited with status $ac_status" >&5
  1562. $as_echo "$as_me: failed program was:" >&5
  1563. sed 's/^/| /' conftest.$ac_ext >&5
  1564. ac_retval=$ac_status
  1565. fi
  1566. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1567. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1568. as_fn_set_status $ac_retval
  1569. } # ac_fn_c_try_run
  1570. # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
  1571. # -------------------------------------------------------
  1572. # Tests whether HEADER exists and can be compiled using the include files in
  1573. # INCLUDES, setting the cache variable VAR accordingly.
  1574. ac_fn_c_check_header_compile ()
  1575. {
  1576. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1577. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1578. $as_echo_n "checking for $2... " >&6; }
  1579. if eval \${$3+:} false; then :
  1580. $as_echo_n "(cached) " >&6
  1581. else
  1582. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1583. /* end confdefs.h. */
  1584. $4
  1585. #include <$2>
  1586. _ACEOF
  1587. if ac_fn_c_try_compile "$LINENO"; then :
  1588. eval "$3=yes"
  1589. else
  1590. eval "$3=no"
  1591. fi
  1592. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1593. fi
  1594. eval ac_res=\$$3
  1595. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1596. $as_echo "$ac_res" >&6; }
  1597. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1598. } # ac_fn_c_check_header_compile
  1599. # ac_fn_cxx_try_compile LINENO
  1600. # ----------------------------
  1601. # Try to compile conftest.$ac_ext, and return whether this succeeded.
  1602. ac_fn_cxx_try_compile ()
  1603. {
  1604. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1605. rm -f conftest.$ac_objext
  1606. if { { ac_try="$ac_compile"
  1607. case "(($ac_try" in
  1608. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1609. *) ac_try_echo=$ac_try;;
  1610. esac
  1611. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1612. $as_echo "$ac_try_echo"; } >&5
  1613. (eval "$ac_compile") 2>conftest.err
  1614. ac_status=$?
  1615. if test -s conftest.err; then
  1616. grep -v '^ *+' conftest.err >conftest.er1
  1617. cat conftest.er1 >&5
  1618. mv -f conftest.er1 conftest.err
  1619. fi
  1620. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1621. test $ac_status = 0; } && {
  1622. test -z "$ac_cxx_werror_flag" ||
  1623. test ! -s conftest.err
  1624. } && test -s conftest.$ac_objext; then :
  1625. ac_retval=0
  1626. else
  1627. $as_echo "$as_me: failed program was:" >&5
  1628. sed 's/^/| /' conftest.$ac_ext >&5
  1629. ac_retval=1
  1630. fi
  1631. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1632. as_fn_set_status $ac_retval
  1633. } # ac_fn_cxx_try_compile
  1634. # ac_fn_c_try_link LINENO
  1635. # -----------------------
  1636. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1637. ac_fn_c_try_link ()
  1638. {
  1639. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1640. rm -f conftest.$ac_objext conftest$ac_exeext
  1641. if { { ac_try="$ac_link"
  1642. case "(($ac_try" in
  1643. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1644. *) ac_try_echo=$ac_try;;
  1645. esac
  1646. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1647. $as_echo "$ac_try_echo"; } >&5
  1648. (eval "$ac_link") 2>conftest.err
  1649. ac_status=$?
  1650. if test -s conftest.err; then
  1651. grep -v '^ *+' conftest.err >conftest.er1
  1652. cat conftest.er1 >&5
  1653. mv -f conftest.er1 conftest.err
  1654. fi
  1655. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1656. test $ac_status = 0; } && {
  1657. test -z "$ac_c_werror_flag" ||
  1658. test ! -s conftest.err
  1659. } && test -s conftest$ac_exeext && {
  1660. test "$cross_compiling" = yes ||
  1661. test -x conftest$ac_exeext
  1662. }; then :
  1663. ac_retval=0
  1664. else
  1665. $as_echo "$as_me: failed program was:" >&5
  1666. sed 's/^/| /' conftest.$ac_ext >&5
  1667. ac_retval=1
  1668. fi
  1669. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1670. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1671. # interfere with the next link command; also delete a directory that is
  1672. # left behind by Apple's compiler. We do this before executing the actions.
  1673. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1674. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1675. as_fn_set_status $ac_retval
  1676. } # ac_fn_c_try_link
  1677. # ac_fn_c_check_func LINENO FUNC VAR
  1678. # ----------------------------------
  1679. # Tests whether FUNC exists, setting the cache variable VAR accordingly
  1680. ac_fn_c_check_func ()
  1681. {
  1682. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
  1684. $as_echo_n "checking for $2... " >&6; }
  1685. if eval \${$3+:} false; then :
  1686. $as_echo_n "(cached) " >&6
  1687. else
  1688. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1689. /* end confdefs.h. */
  1690. /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
  1691. For example, HP-UX 11i <limits.h> declares gettimeofday. */
  1692. #define $2 innocuous_$2
  1693. /* System header to define __stub macros and hopefully few prototypes,
  1694. which can conflict with char $2 (); below.
  1695. Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  1696. <limits.h> exists even on freestanding compilers. */
  1697. #ifdef __STDC__
  1698. # include <limits.h>
  1699. #else
  1700. # include <assert.h>
  1701. #endif
  1702. #undef $2
  1703. /* Override any GCC internal prototype to avoid an error.
  1704. Use char because int might match the return type of a GCC
  1705. builtin and then its argument prototype would still apply. */
  1706. #ifdef __cplusplus
  1707. extern "C"
  1708. #endif
  1709. char $2 ();
  1710. /* The GNU C library defines this for functions which it implements
  1711. to always fail with ENOSYS. Some functions are actually named
  1712. something starting with __ and the normal name is an alias. */
  1713. #if defined __stub_$2 || defined __stub___$2
  1714. choke me
  1715. #endif
  1716. int
  1717. main ()
  1718. {
  1719. return $2 ();
  1720. ;
  1721. return 0;
  1722. }
  1723. _ACEOF
  1724. if ac_fn_c_try_link "$LINENO"; then :
  1725. eval "$3=yes"
  1726. else
  1727. eval "$3=no"
  1728. fi
  1729. rm -f core conftest.err conftest.$ac_objext \
  1730. conftest$ac_exeext conftest.$ac_ext
  1731. fi
  1732. eval ac_res=\$$3
  1733. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
  1734. $as_echo "$ac_res" >&6; }
  1735. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1736. } # ac_fn_c_check_func
  1737. # ac_fn_cxx_try_cpp LINENO
  1738. # ------------------------
  1739. # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
  1740. ac_fn_cxx_try_cpp ()
  1741. {
  1742. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1743. if { { ac_try="$ac_cpp conftest.$ac_ext"
  1744. case "(($ac_try" in
  1745. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1746. *) ac_try_echo=$ac_try;;
  1747. esac
  1748. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1749. $as_echo "$ac_try_echo"; } >&5
  1750. (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
  1751. ac_status=$?
  1752. if test -s conftest.err; then
  1753. grep -v '^ *+' conftest.err >conftest.er1
  1754. cat conftest.er1 >&5
  1755. mv -f conftest.er1 conftest.err
  1756. fi
  1757. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1758. test $ac_status = 0; } > conftest.i && {
  1759. test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
  1760. test ! -s conftest.err
  1761. }; then :
  1762. ac_retval=0
  1763. else
  1764. $as_echo "$as_me: failed program was:" >&5
  1765. sed 's/^/| /' conftest.$ac_ext >&5
  1766. ac_retval=1
  1767. fi
  1768. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1769. as_fn_set_status $ac_retval
  1770. } # ac_fn_cxx_try_cpp
  1771. # ac_fn_cxx_try_link LINENO
  1772. # -------------------------
  1773. # Try to link conftest.$ac_ext, and return whether this succeeded.
  1774. ac_fn_cxx_try_link ()
  1775. {
  1776. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1777. rm -f conftest.$ac_objext conftest$ac_exeext
  1778. if { { ac_try="$ac_link"
  1779. case "(($ac_try" in
  1780. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  1781. *) ac_try_echo=$ac_try;;
  1782. esac
  1783. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  1784. $as_echo "$ac_try_echo"; } >&5
  1785. (eval "$ac_link") 2>conftest.err
  1786. ac_status=$?
  1787. if test -s conftest.err; then
  1788. grep -v '^ *+' conftest.err >conftest.er1
  1789. cat conftest.er1 >&5
  1790. mv -f conftest.er1 conftest.err
  1791. fi
  1792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  1793. test $ac_status = 0; } && {
  1794. test -z "$ac_cxx_werror_flag" ||
  1795. test ! -s conftest.err
  1796. } && test -s conftest$ac_exeext && {
  1797. test "$cross_compiling" = yes ||
  1798. test -x conftest$ac_exeext
  1799. }; then :
  1800. ac_retval=0
  1801. else
  1802. $as_echo "$as_me: failed program was:" >&5
  1803. sed 's/^/| /' conftest.$ac_ext >&5
  1804. ac_retval=1
  1805. fi
  1806. # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
  1807. # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
  1808. # interfere with the next link command; also delete a directory that is
  1809. # left behind by Apple's compiler. We do this before executing the actions.
  1810. rm -rf conftest.dSYM conftest_ipa8_conftest.oo
  1811. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1812. as_fn_set_status $ac_retval
  1813. } # ac_fn_cxx_try_link
  1814. # ac_fn_c_compute_int LINENO EXPR VAR INCLUDES
  1815. # --------------------------------------------
  1816. # Tries to find the compile-time value of EXPR in a program that includes
  1817. # INCLUDES, setting VAR accordingly. Returns whether the value could be
  1818. # computed
  1819. ac_fn_c_compute_int ()
  1820. {
  1821. as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  1822. if test "$cross_compiling" = yes; then
  1823. # Depending upon the size, compute the lo and hi bounds.
  1824. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1825. /* end confdefs.h. */
  1826. $4
  1827. int
  1828. main ()
  1829. {
  1830. static int test_array [1 - 2 * !(($2) >= 0)];
  1831. test_array [0] = 0;
  1832. return test_array [0];
  1833. ;
  1834. return 0;
  1835. }
  1836. _ACEOF
  1837. if ac_fn_c_try_compile "$LINENO"; then :
  1838. ac_lo=0 ac_mid=0
  1839. while :; do
  1840. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1841. /* end confdefs.h. */
  1842. $4
  1843. int
  1844. main ()
  1845. {
  1846. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1847. test_array [0] = 0;
  1848. return test_array [0];
  1849. ;
  1850. return 0;
  1851. }
  1852. _ACEOF
  1853. if ac_fn_c_try_compile "$LINENO"; then :
  1854. ac_hi=$ac_mid; break
  1855. else
  1856. as_fn_arith $ac_mid + 1 && ac_lo=$as_val
  1857. if test $ac_lo -le $ac_mid; then
  1858. ac_lo= ac_hi=
  1859. break
  1860. fi
  1861. as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val
  1862. fi
  1863. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1864. done
  1865. else
  1866. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1867. /* end confdefs.h. */
  1868. $4
  1869. int
  1870. main ()
  1871. {
  1872. static int test_array [1 - 2 * !(($2) < 0)];
  1873. test_array [0] = 0;
  1874. return test_array [0];
  1875. ;
  1876. return 0;
  1877. }
  1878. _ACEOF
  1879. if ac_fn_c_try_compile "$LINENO"; then :
  1880. ac_hi=-1 ac_mid=-1
  1881. while :; do
  1882. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1883. /* end confdefs.h. */
  1884. $4
  1885. int
  1886. main ()
  1887. {
  1888. static int test_array [1 - 2 * !(($2) >= $ac_mid)];
  1889. test_array [0] = 0;
  1890. return test_array [0];
  1891. ;
  1892. return 0;
  1893. }
  1894. _ACEOF
  1895. if ac_fn_c_try_compile "$LINENO"; then :
  1896. ac_lo=$ac_mid; break
  1897. else
  1898. as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val
  1899. if test $ac_mid -le $ac_hi; then
  1900. ac_lo= ac_hi=
  1901. break
  1902. fi
  1903. as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val
  1904. fi
  1905. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1906. done
  1907. else
  1908. ac_lo= ac_hi=
  1909. fi
  1910. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1911. fi
  1912. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1913. # Binary search between lo and hi bounds.
  1914. while test "x$ac_lo" != "x$ac_hi"; do
  1915. as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val
  1916. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1917. /* end confdefs.h. */
  1918. $4
  1919. int
  1920. main ()
  1921. {
  1922. static int test_array [1 - 2 * !(($2) <= $ac_mid)];
  1923. test_array [0] = 0;
  1924. return test_array [0];
  1925. ;
  1926. return 0;
  1927. }
  1928. _ACEOF
  1929. if ac_fn_c_try_compile "$LINENO"; then :
  1930. ac_hi=$ac_mid
  1931. else
  1932. as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val
  1933. fi
  1934. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  1935. done
  1936. case $ac_lo in #((
  1937. ?*) eval "$3=\$ac_lo"; ac_retval=0 ;;
  1938. '') ac_retval=1 ;;
  1939. esac
  1940. else
  1941. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  1942. /* end confdefs.h. */
  1943. $4
  1944. static long int longval () { return $2; }
  1945. static unsigned long int ulongval () { return $2; }
  1946. #include <stdio.h>
  1947. #include <stdlib.h>
  1948. int
  1949. main ()
  1950. {
  1951. FILE *f = fopen ("conftest.val", "w");
  1952. if (! f)
  1953. return 1;
  1954. if (($2) < 0)
  1955. {
  1956. long int i = longval ();
  1957. if (i != ($2))
  1958. return 1;
  1959. fprintf (f, "%ld", i);
  1960. }
  1961. else
  1962. {
  1963. unsigned long int i = ulongval ();
  1964. if (i != ($2))
  1965. return 1;
  1966. fprintf (f, "%lu", i);
  1967. }
  1968. /* Do not output a trailing newline, as this causes \r\n confusion
  1969. on some platforms. */
  1970. return ferror (f) || fclose (f) != 0;
  1971. ;
  1972. return 0;
  1973. }
  1974. _ACEOF
  1975. if ac_fn_c_try_run "$LINENO"; then :
  1976. echo >>conftest.val; read $3 <conftest.val; ac_retval=0
  1977. else
  1978. ac_retval=1
  1979. fi
  1980. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  1981. conftest.$ac_objext conftest.beam conftest.$ac_ext
  1982. rm -f conftest.val
  1983. fi
  1984. eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
  1985. as_fn_set_status $ac_retval
  1986. } # ac_fn_c_compute_int
  1987. cat >config.log <<_ACEOF
  1988. This file contains any messages produced by compilers while
  1989. running configure, to aid debugging if configure makes a mistake.
  1990. It was created by klish $as_me 1.5.6, which was
  1991. generated by GNU Autoconf 2.69. Invocation command line was
  1992. $ $0 $@
  1993. _ACEOF
  1994. exec 5>>config.log
  1995. {
  1996. cat <<_ASUNAME
  1997. ## --------- ##
  1998. ## Platform. ##
  1999. ## --------- ##
  2000. hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
  2001. uname -m = `(uname -m) 2>/dev/null || echo unknown`
  2002. uname -r = `(uname -r) 2>/dev/null || echo unknown`
  2003. uname -s = `(uname -s) 2>/dev/null || echo unknown`
  2004. uname -v = `(uname -v) 2>/dev/null || echo unknown`
  2005. /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
  2006. /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
  2007. /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
  2008. /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
  2009. /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
  2010. /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
  2011. /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
  2012. /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
  2013. /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
  2014. _ASUNAME
  2015. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2016. for as_dir in $PATH
  2017. do
  2018. IFS=$as_save_IFS
  2019. test -z "$as_dir" && as_dir=.
  2020. $as_echo "PATH: $as_dir"
  2021. done
  2022. IFS=$as_save_IFS
  2023. } >&5
  2024. cat >&5 <<_ACEOF
  2025. ## ----------- ##
  2026. ## Core tests. ##
  2027. ## ----------- ##
  2028. _ACEOF
  2029. # Keep a trace of the command line.
  2030. # Strip out --no-create and --no-recursion so they do not pile up.
  2031. # Strip out --silent because we don't want to record it for future runs.
  2032. # Also quote any args containing shell meta-characters.
  2033. # Make two passes to allow for proper duplicate-argument suppression.
  2034. ac_configure_args=
  2035. ac_configure_args0=
  2036. ac_configure_args1=
  2037. ac_must_keep_next=false
  2038. for ac_pass in 1 2
  2039. do
  2040. for ac_arg
  2041. do
  2042. case $ac_arg in
  2043. -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
  2044. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  2045. | -silent | --silent | --silen | --sile | --sil)
  2046. continue ;;
  2047. *\'*)
  2048. ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
  2049. esac
  2050. case $ac_pass in
  2051. 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
  2052. 2)
  2053. as_fn_append ac_configure_args1 " '$ac_arg'"
  2054. if test $ac_must_keep_next = true; then
  2055. ac_must_keep_next=false # Got value, back to normal.
  2056. else
  2057. case $ac_arg in
  2058. *=* | --config-cache | -C | -disable-* | --disable-* \
  2059. | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
  2060. | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
  2061. | -with-* | --with-* | -without-* | --without-* | --x)
  2062. case "$ac_configure_args0 " in
  2063. "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
  2064. esac
  2065. ;;
  2066. -* ) ac_must_keep_next=true ;;
  2067. esac
  2068. fi
  2069. as_fn_append ac_configure_args " '$ac_arg'"
  2070. ;;
  2071. esac
  2072. done
  2073. done
  2074. { ac_configure_args0=; unset ac_configure_args0;}
  2075. { ac_configure_args1=; unset ac_configure_args1;}
  2076. # When interrupted or exit'd, cleanup temporary files, and complete
  2077. # config.log. We remove comments because anyway the quotes in there
  2078. # would cause problems or look ugly.
  2079. # WARNING: Use '\'' to represent an apostrophe within the trap.
  2080. # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
  2081. trap 'exit_status=$?
  2082. # Save into config.log some information that might help in debugging.
  2083. {
  2084. echo
  2085. $as_echo "## ---------------- ##
  2086. ## Cache variables. ##
  2087. ## ---------------- ##"
  2088. echo
  2089. # The following way of writing the cache mishandles newlines in values,
  2090. (
  2091. for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
  2092. eval ac_val=\$$ac_var
  2093. case $ac_val in #(
  2094. *${as_nl}*)
  2095. case $ac_var in #(
  2096. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  2097. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  2098. esac
  2099. case $ac_var in #(
  2100. _ | IFS | as_nl) ;; #(
  2101. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  2102. *) { eval $ac_var=; unset $ac_var;} ;;
  2103. esac ;;
  2104. esac
  2105. done
  2106. (set) 2>&1 |
  2107. case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
  2108. *${as_nl}ac_space=\ *)
  2109. sed -n \
  2110. "s/'\''/'\''\\\\'\'''\''/g;
  2111. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
  2112. ;; #(
  2113. *)
  2114. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  2115. ;;
  2116. esac |
  2117. sort
  2118. )
  2119. echo
  2120. $as_echo "## ----------------- ##
  2121. ## Output variables. ##
  2122. ## ----------------- ##"
  2123. echo
  2124. for ac_var in $ac_subst_vars
  2125. do
  2126. eval ac_val=\$$ac_var
  2127. case $ac_val in
  2128. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2129. esac
  2130. $as_echo "$ac_var='\''$ac_val'\''"
  2131. done | sort
  2132. echo
  2133. if test -n "$ac_subst_files"; then
  2134. $as_echo "## ------------------- ##
  2135. ## File substitutions. ##
  2136. ## ------------------- ##"
  2137. echo
  2138. for ac_var in $ac_subst_files
  2139. do
  2140. eval ac_val=\$$ac_var
  2141. case $ac_val in
  2142. *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
  2143. esac
  2144. $as_echo "$ac_var='\''$ac_val'\''"
  2145. done | sort
  2146. echo
  2147. fi
  2148. if test -s confdefs.h; then
  2149. $as_echo "## ----------- ##
  2150. ## confdefs.h. ##
  2151. ## ----------- ##"
  2152. echo
  2153. cat confdefs.h
  2154. echo
  2155. fi
  2156. test "$ac_signal" != 0 &&
  2157. $as_echo "$as_me: caught signal $ac_signal"
  2158. $as_echo "$as_me: exit $exit_status"
  2159. } >&5
  2160. rm -f core *.core core.conftest.* &&
  2161. rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
  2162. exit $exit_status
  2163. ' 0
  2164. for ac_signal in 1 2 13 15; do
  2165. trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
  2166. done
  2167. ac_signal=0
  2168. # confdefs.h avoids OS command line length limits that DEFS can exceed.
  2169. rm -f -r conftest* confdefs.h
  2170. $as_echo "/* confdefs.h */" > confdefs.h
  2171. # Predefined preprocessor variables.
  2172. cat >>confdefs.h <<_ACEOF
  2173. #define PACKAGE_NAME "$PACKAGE_NAME"
  2174. _ACEOF
  2175. cat >>confdefs.h <<_ACEOF
  2176. #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
  2177. _ACEOF
  2178. cat >>confdefs.h <<_ACEOF
  2179. #define PACKAGE_VERSION "$PACKAGE_VERSION"
  2180. _ACEOF
  2181. cat >>confdefs.h <<_ACEOF
  2182. #define PACKAGE_STRING "$PACKAGE_STRING"
  2183. _ACEOF
  2184. cat >>confdefs.h <<_ACEOF
  2185. #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
  2186. _ACEOF
  2187. cat >>confdefs.h <<_ACEOF
  2188. #define PACKAGE_URL "$PACKAGE_URL"
  2189. _ACEOF
  2190. # Let the site file select an alternate cache file if it wants to.
  2191. # Prefer an explicitly selected file to automatically selected ones.
  2192. ac_site_file1=NONE
  2193. ac_site_file2=NONE
  2194. if test -n "$CONFIG_SITE"; then
  2195. # We do not want a PATH search for config.site.
  2196. case $CONFIG_SITE in #((
  2197. -*) ac_site_file1=./$CONFIG_SITE;;
  2198. */*) ac_site_file1=$CONFIG_SITE;;
  2199. *) ac_site_file1=./$CONFIG_SITE;;
  2200. esac
  2201. elif test "x$prefix" != xNONE; then
  2202. ac_site_file1=$prefix/share/config.site
  2203. ac_site_file2=$prefix/etc/config.site
  2204. else
  2205. ac_site_file1=$ac_default_prefix/share/config.site
  2206. ac_site_file2=$ac_default_prefix/etc/config.site
  2207. fi
  2208. for ac_site_file in "$ac_site_file1" "$ac_site_file2"
  2209. do
  2210. test "x$ac_site_file" = xNONE && continue
  2211. if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
  2212. { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
  2213. $as_echo "$as_me: loading site script $ac_site_file" >&6;}
  2214. sed 's/^/| /' "$ac_site_file" >&5
  2215. . "$ac_site_file" \
  2216. || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2217. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2218. as_fn_error $? "failed to load site script $ac_site_file
  2219. See \`config.log' for more details" "$LINENO" 5; }
  2220. fi
  2221. done
  2222. if test -r "$cache_file"; then
  2223. # Some versions of bash will fail to source /dev/null (special files
  2224. # actually), so we avoid doing that. DJGPP emulates it as a regular file.
  2225. if test /dev/null != "$cache_file" && test -f "$cache_file"; then
  2226. { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
  2227. $as_echo "$as_me: loading cache $cache_file" >&6;}
  2228. case $cache_file in
  2229. [\\/]* | ?:[\\/]* ) . "$cache_file";;
  2230. *) . "./$cache_file";;
  2231. esac
  2232. fi
  2233. else
  2234. { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
  2235. $as_echo "$as_me: creating cache $cache_file" >&6;}
  2236. >$cache_file
  2237. fi
  2238. # Check that the precious variables saved in the cache have kept the same
  2239. # value.
  2240. ac_cache_corrupted=false
  2241. for ac_var in $ac_precious_vars; do
  2242. eval ac_old_set=\$ac_cv_env_${ac_var}_set
  2243. eval ac_new_set=\$ac_env_${ac_var}_set
  2244. eval ac_old_val=\$ac_cv_env_${ac_var}_value
  2245. eval ac_new_val=\$ac_env_${ac_var}_value
  2246. case $ac_old_set,$ac_new_set in
  2247. set,)
  2248. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
  2249. $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
  2250. ac_cache_corrupted=: ;;
  2251. ,set)
  2252. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
  2253. $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
  2254. ac_cache_corrupted=: ;;
  2255. ,);;
  2256. *)
  2257. if test "x$ac_old_val" != "x$ac_new_val"; then
  2258. # differences in whitespace do not lead to failure.
  2259. ac_old_val_w=`echo x $ac_old_val`
  2260. ac_new_val_w=`echo x $ac_new_val`
  2261. if test "$ac_old_val_w" != "$ac_new_val_w"; then
  2262. { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
  2263. $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
  2264. ac_cache_corrupted=:
  2265. else
  2266. { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
  2267. $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
  2268. eval $ac_var=\$ac_old_val
  2269. fi
  2270. { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
  2271. $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
  2272. { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
  2273. $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
  2274. fi;;
  2275. esac
  2276. # Pass precious variables to config.status.
  2277. if test "$ac_new_set" = set; then
  2278. case $ac_new_val in
  2279. *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
  2280. *) ac_arg=$ac_var=$ac_new_val ;;
  2281. esac
  2282. case " $ac_configure_args " in
  2283. *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
  2284. *) as_fn_append ac_configure_args " '$ac_arg'" ;;
  2285. esac
  2286. fi
  2287. done
  2288. if $ac_cache_corrupted; then
  2289. { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2290. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2291. { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
  2292. $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
  2293. as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
  2294. fi
  2295. ## -------------------- ##
  2296. ## Main body of script. ##
  2297. ## -------------------- ##
  2298. ac_ext=c
  2299. ac_cpp='$CPP $CPPFLAGS'
  2300. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2301. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2302. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2303. ac_aux_dir=
  2304. for ac_dir in aux_scripts "$srcdir"/aux_scripts; do
  2305. if test -f "$ac_dir/install-sh"; then
  2306. ac_aux_dir=$ac_dir
  2307. ac_install_sh="$ac_aux_dir/install-sh -c"
  2308. break
  2309. elif test -f "$ac_dir/install.sh"; then
  2310. ac_aux_dir=$ac_dir
  2311. ac_install_sh="$ac_aux_dir/install.sh -c"
  2312. break
  2313. elif test -f "$ac_dir/shtool"; then
  2314. ac_aux_dir=$ac_dir
  2315. ac_install_sh="$ac_aux_dir/shtool install -c"
  2316. break
  2317. fi
  2318. done
  2319. if test -z "$ac_aux_dir"; then
  2320. as_fn_error $? "cannot find install-sh, install.sh, or shtool in aux_scripts \"$srcdir\"/aux_scripts" "$LINENO" 5
  2321. fi
  2322. # These three variables are undocumented and unsupported,
  2323. # and are intended to be withdrawn in a future Autoconf release.
  2324. # They can cause serious problems if a builder's source tree is in a directory
  2325. # whose full name contains unusual characters.
  2326. ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
  2327. ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
  2328. ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
  2329. # Check for system extensions (_POSIX_THREAD_SEMANTICS for Solaris)
  2330. ac_ext=c
  2331. ac_cpp='$CPP $CPPFLAGS'
  2332. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  2333. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  2334. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  2335. if test -n "$ac_tool_prefix"; then
  2336. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  2337. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  2338. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2339. $as_echo_n "checking for $ac_word... " >&6; }
  2340. if ${ac_cv_prog_CC+:} false; then :
  2341. $as_echo_n "(cached) " >&6
  2342. else
  2343. if test -n "$CC"; then
  2344. ac_cv_prog_CC="$CC" # Let the user override the test.
  2345. else
  2346. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2347. for as_dir in $PATH
  2348. do
  2349. IFS=$as_save_IFS
  2350. test -z "$as_dir" && as_dir=.
  2351. for ac_exec_ext in '' $ac_executable_extensions; do
  2352. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2353. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  2354. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2355. break 2
  2356. fi
  2357. done
  2358. done
  2359. IFS=$as_save_IFS
  2360. fi
  2361. fi
  2362. CC=$ac_cv_prog_CC
  2363. if test -n "$CC"; then
  2364. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2365. $as_echo "$CC" >&6; }
  2366. else
  2367. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2368. $as_echo "no" >&6; }
  2369. fi
  2370. fi
  2371. if test -z "$ac_cv_prog_CC"; then
  2372. ac_ct_CC=$CC
  2373. # Extract the first word of "gcc", so it can be a program name with args.
  2374. set dummy gcc; ac_word=$2
  2375. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2376. $as_echo_n "checking for $ac_word... " >&6; }
  2377. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2378. $as_echo_n "(cached) " >&6
  2379. else
  2380. if test -n "$ac_ct_CC"; then
  2381. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2382. else
  2383. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2384. for as_dir in $PATH
  2385. do
  2386. IFS=$as_save_IFS
  2387. test -z "$as_dir" && as_dir=.
  2388. for ac_exec_ext in '' $ac_executable_extensions; do
  2389. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2390. ac_cv_prog_ac_ct_CC="gcc"
  2391. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2392. break 2
  2393. fi
  2394. done
  2395. done
  2396. IFS=$as_save_IFS
  2397. fi
  2398. fi
  2399. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2400. if test -n "$ac_ct_CC"; then
  2401. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2402. $as_echo "$ac_ct_CC" >&6; }
  2403. else
  2404. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2405. $as_echo "no" >&6; }
  2406. fi
  2407. if test "x$ac_ct_CC" = x; then
  2408. CC=""
  2409. else
  2410. case $cross_compiling:$ac_tool_warned in
  2411. yes:)
  2412. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2413. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2414. ac_tool_warned=yes ;;
  2415. esac
  2416. CC=$ac_ct_CC
  2417. fi
  2418. else
  2419. CC="$ac_cv_prog_CC"
  2420. fi
  2421. if test -z "$CC"; then
  2422. if test -n "$ac_tool_prefix"; then
  2423. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  2424. set dummy ${ac_tool_prefix}cc; ac_word=$2
  2425. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2426. $as_echo_n "checking for $ac_word... " >&6; }
  2427. if ${ac_cv_prog_CC+:} false; then :
  2428. $as_echo_n "(cached) " >&6
  2429. else
  2430. if test -n "$CC"; then
  2431. ac_cv_prog_CC="$CC" # Let the user override the test.
  2432. else
  2433. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2434. for as_dir in $PATH
  2435. do
  2436. IFS=$as_save_IFS
  2437. test -z "$as_dir" && as_dir=.
  2438. for ac_exec_ext in '' $ac_executable_extensions; do
  2439. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2440. ac_cv_prog_CC="${ac_tool_prefix}cc"
  2441. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2442. break 2
  2443. fi
  2444. done
  2445. done
  2446. IFS=$as_save_IFS
  2447. fi
  2448. fi
  2449. CC=$ac_cv_prog_CC
  2450. if test -n "$CC"; then
  2451. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2452. $as_echo "$CC" >&6; }
  2453. else
  2454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2455. $as_echo "no" >&6; }
  2456. fi
  2457. fi
  2458. fi
  2459. if test -z "$CC"; then
  2460. # Extract the first word of "cc", so it can be a program name with args.
  2461. set dummy cc; ac_word=$2
  2462. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2463. $as_echo_n "checking for $ac_word... " >&6; }
  2464. if ${ac_cv_prog_CC+:} false; then :
  2465. $as_echo_n "(cached) " >&6
  2466. else
  2467. if test -n "$CC"; then
  2468. ac_cv_prog_CC="$CC" # Let the user override the test.
  2469. else
  2470. ac_prog_rejected=no
  2471. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2472. for as_dir in $PATH
  2473. do
  2474. IFS=$as_save_IFS
  2475. test -z "$as_dir" && as_dir=.
  2476. for ac_exec_ext in '' $ac_executable_extensions; do
  2477. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2478. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  2479. ac_prog_rejected=yes
  2480. continue
  2481. fi
  2482. ac_cv_prog_CC="cc"
  2483. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2484. break 2
  2485. fi
  2486. done
  2487. done
  2488. IFS=$as_save_IFS
  2489. if test $ac_prog_rejected = yes; then
  2490. # We found a bogon in the path, so make sure we never use it.
  2491. set dummy $ac_cv_prog_CC
  2492. shift
  2493. if test $# != 0; then
  2494. # We chose a different compiler from the bogus one.
  2495. # However, it has the same basename, so the bogon will be chosen
  2496. # first if we set CC to just the basename; use the full file name.
  2497. shift
  2498. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  2499. fi
  2500. fi
  2501. fi
  2502. fi
  2503. CC=$ac_cv_prog_CC
  2504. if test -n "$CC"; then
  2505. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2506. $as_echo "$CC" >&6; }
  2507. else
  2508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2509. $as_echo "no" >&6; }
  2510. fi
  2511. fi
  2512. if test -z "$CC"; then
  2513. if test -n "$ac_tool_prefix"; then
  2514. for ac_prog in cl.exe
  2515. do
  2516. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  2517. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  2518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2519. $as_echo_n "checking for $ac_word... " >&6; }
  2520. if ${ac_cv_prog_CC+:} false; then :
  2521. $as_echo_n "(cached) " >&6
  2522. else
  2523. if test -n "$CC"; then
  2524. ac_cv_prog_CC="$CC" # Let the user override the test.
  2525. else
  2526. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2527. for as_dir in $PATH
  2528. do
  2529. IFS=$as_save_IFS
  2530. test -z "$as_dir" && as_dir=.
  2531. for ac_exec_ext in '' $ac_executable_extensions; do
  2532. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2533. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  2534. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2535. break 2
  2536. fi
  2537. done
  2538. done
  2539. IFS=$as_save_IFS
  2540. fi
  2541. fi
  2542. CC=$ac_cv_prog_CC
  2543. if test -n "$CC"; then
  2544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  2545. $as_echo "$CC" >&6; }
  2546. else
  2547. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2548. $as_echo "no" >&6; }
  2549. fi
  2550. test -n "$CC" && break
  2551. done
  2552. fi
  2553. if test -z "$CC"; then
  2554. ac_ct_CC=$CC
  2555. for ac_prog in cl.exe
  2556. do
  2557. # Extract the first word of "$ac_prog", so it can be a program name with args.
  2558. set dummy $ac_prog; ac_word=$2
  2559. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  2560. $as_echo_n "checking for $ac_word... " >&6; }
  2561. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  2562. $as_echo_n "(cached) " >&6
  2563. else
  2564. if test -n "$ac_ct_CC"; then
  2565. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  2566. else
  2567. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  2568. for as_dir in $PATH
  2569. do
  2570. IFS=$as_save_IFS
  2571. test -z "$as_dir" && as_dir=.
  2572. for ac_exec_ext in '' $ac_executable_extensions; do
  2573. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  2574. ac_cv_prog_ac_ct_CC="$ac_prog"
  2575. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  2576. break 2
  2577. fi
  2578. done
  2579. done
  2580. IFS=$as_save_IFS
  2581. fi
  2582. fi
  2583. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  2584. if test -n "$ac_ct_CC"; then
  2585. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  2586. $as_echo "$ac_ct_CC" >&6; }
  2587. else
  2588. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2589. $as_echo "no" >&6; }
  2590. fi
  2591. test -n "$ac_ct_CC" && break
  2592. done
  2593. if test "x$ac_ct_CC" = x; then
  2594. CC=""
  2595. else
  2596. case $cross_compiling:$ac_tool_warned in
  2597. yes:)
  2598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  2599. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  2600. ac_tool_warned=yes ;;
  2601. esac
  2602. CC=$ac_ct_CC
  2603. fi
  2604. fi
  2605. fi
  2606. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2607. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2608. as_fn_error $? "no acceptable C compiler found in \$PATH
  2609. See \`config.log' for more details" "$LINENO" 5; }
  2610. # Provide some information about the compiler.
  2611. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  2612. set X $ac_compile
  2613. ac_compiler=$2
  2614. for ac_option in --version -v -V -qversion; do
  2615. { { ac_try="$ac_compiler $ac_option >&5"
  2616. case "(($ac_try" in
  2617. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2618. *) ac_try_echo=$ac_try;;
  2619. esac
  2620. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2621. $as_echo "$ac_try_echo"; } >&5
  2622. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  2623. ac_status=$?
  2624. if test -s conftest.err; then
  2625. sed '10a\
  2626. ... rest of stderr output deleted ...
  2627. 10q' conftest.err >conftest.er1
  2628. cat conftest.er1 >&5
  2629. fi
  2630. rm -f conftest.er1 conftest.err
  2631. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2632. test $ac_status = 0; }
  2633. done
  2634. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2635. /* end confdefs.h. */
  2636. int
  2637. main ()
  2638. {
  2639. ;
  2640. return 0;
  2641. }
  2642. _ACEOF
  2643. ac_clean_files_save=$ac_clean_files
  2644. ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
  2645. # Try to create an executable without -o first, disregard a.out.
  2646. # It will help us diagnose broken compilers, and finding out an intuition
  2647. # of exeext.
  2648. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
  2649. $as_echo_n "checking whether the C compiler works... " >&6; }
  2650. ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
  2651. # The possible output files:
  2652. ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
  2653. ac_rmfiles=
  2654. for ac_file in $ac_files
  2655. do
  2656. case $ac_file in
  2657. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2658. * ) ac_rmfiles="$ac_rmfiles $ac_file";;
  2659. esac
  2660. done
  2661. rm -f $ac_rmfiles
  2662. if { { ac_try="$ac_link_default"
  2663. case "(($ac_try" in
  2664. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2665. *) ac_try_echo=$ac_try;;
  2666. esac
  2667. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2668. $as_echo "$ac_try_echo"; } >&5
  2669. (eval "$ac_link_default") 2>&5
  2670. ac_status=$?
  2671. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2672. test $ac_status = 0; }; then :
  2673. # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
  2674. # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
  2675. # in a Makefile. We should not override ac_cv_exeext if it was cached,
  2676. # so that the user can short-circuit this test for compilers unknown to
  2677. # Autoconf.
  2678. for ac_file in $ac_files ''
  2679. do
  2680. test -f "$ac_file" || continue
  2681. case $ac_file in
  2682. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
  2683. ;;
  2684. [ab].out )
  2685. # We found the default executable, but exeext='' is most
  2686. # certainly right.
  2687. break;;
  2688. *.* )
  2689. if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
  2690. then :; else
  2691. ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2692. fi
  2693. # We set ac_cv_exeext here because the later test for it is not
  2694. # safe: cross compilers may not add the suffix if given an `-o'
  2695. # argument, so we may need to know it at that point already.
  2696. # Even if this section looks crufty: it has the advantage of
  2697. # actually working.
  2698. break;;
  2699. * )
  2700. break;;
  2701. esac
  2702. done
  2703. test "$ac_cv_exeext" = no && ac_cv_exeext=
  2704. else
  2705. ac_file=''
  2706. fi
  2707. if test -z "$ac_file"; then :
  2708. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  2709. $as_echo "no" >&6; }
  2710. $as_echo "$as_me: failed program was:" >&5
  2711. sed 's/^/| /' conftest.$ac_ext >&5
  2712. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2713. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2714. as_fn_error 77 "C compiler cannot create executables
  2715. See \`config.log' for more details" "$LINENO" 5; }
  2716. else
  2717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  2718. $as_echo "yes" >&6; }
  2719. fi
  2720. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
  2721. $as_echo_n "checking for C compiler default output file name... " >&6; }
  2722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
  2723. $as_echo "$ac_file" >&6; }
  2724. ac_exeext=$ac_cv_exeext
  2725. rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
  2726. ac_clean_files=$ac_clean_files_save
  2727. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
  2728. $as_echo_n "checking for suffix of executables... " >&6; }
  2729. if { { ac_try="$ac_link"
  2730. case "(($ac_try" in
  2731. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2732. *) ac_try_echo=$ac_try;;
  2733. esac
  2734. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2735. $as_echo "$ac_try_echo"; } >&5
  2736. (eval "$ac_link") 2>&5
  2737. ac_status=$?
  2738. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2739. test $ac_status = 0; }; then :
  2740. # If both `conftest.exe' and `conftest' are `present' (well, observable)
  2741. # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
  2742. # work properly (i.e., refer to `conftest.exe'), while it won't with
  2743. # `rm'.
  2744. for ac_file in conftest.exe conftest conftest.*; do
  2745. test -f "$ac_file" || continue
  2746. case $ac_file in
  2747. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
  2748. *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
  2749. break;;
  2750. * ) break;;
  2751. esac
  2752. done
  2753. else
  2754. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2755. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2756. as_fn_error $? "cannot compute suffix of executables: cannot compile and link
  2757. See \`config.log' for more details" "$LINENO" 5; }
  2758. fi
  2759. rm -f conftest conftest$ac_cv_exeext
  2760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
  2761. $as_echo "$ac_cv_exeext" >&6; }
  2762. rm -f conftest.$ac_ext
  2763. EXEEXT=$ac_cv_exeext
  2764. ac_exeext=$EXEEXT
  2765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2766. /* end confdefs.h. */
  2767. #include <stdio.h>
  2768. int
  2769. main ()
  2770. {
  2771. FILE *f = fopen ("conftest.out", "w");
  2772. return ferror (f) || fclose (f) != 0;
  2773. ;
  2774. return 0;
  2775. }
  2776. _ACEOF
  2777. ac_clean_files="$ac_clean_files conftest.out"
  2778. # Check that the compiler produces executables we can run. If not, either
  2779. # the compiler is broken, or we cross compile.
  2780. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
  2781. $as_echo_n "checking whether we are cross compiling... " >&6; }
  2782. if test "$cross_compiling" != yes; then
  2783. { { ac_try="$ac_link"
  2784. case "(($ac_try" in
  2785. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2786. *) ac_try_echo=$ac_try;;
  2787. esac
  2788. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2789. $as_echo "$ac_try_echo"; } >&5
  2790. (eval "$ac_link") 2>&5
  2791. ac_status=$?
  2792. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2793. test $ac_status = 0; }
  2794. if { ac_try='./conftest$ac_cv_exeext'
  2795. { { case "(($ac_try" in
  2796. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2797. *) ac_try_echo=$ac_try;;
  2798. esac
  2799. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2800. $as_echo "$ac_try_echo"; } >&5
  2801. (eval "$ac_try") 2>&5
  2802. ac_status=$?
  2803. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2804. test $ac_status = 0; }; }; then
  2805. cross_compiling=no
  2806. else
  2807. if test "$cross_compiling" = maybe; then
  2808. cross_compiling=yes
  2809. else
  2810. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2811. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2812. as_fn_error $? "cannot run C compiled programs.
  2813. If you meant to cross compile, use \`--host'.
  2814. See \`config.log' for more details" "$LINENO" 5; }
  2815. fi
  2816. fi
  2817. fi
  2818. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
  2819. $as_echo "$cross_compiling" >&6; }
  2820. rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
  2821. ac_clean_files=$ac_clean_files_save
  2822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
  2823. $as_echo_n "checking for suffix of object files... " >&6; }
  2824. if ${ac_cv_objext+:} false; then :
  2825. $as_echo_n "(cached) " >&6
  2826. else
  2827. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2828. /* end confdefs.h. */
  2829. int
  2830. main ()
  2831. {
  2832. ;
  2833. return 0;
  2834. }
  2835. _ACEOF
  2836. rm -f conftest.o conftest.obj
  2837. if { { ac_try="$ac_compile"
  2838. case "(($ac_try" in
  2839. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  2840. *) ac_try_echo=$ac_try;;
  2841. esac
  2842. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  2843. $as_echo "$ac_try_echo"; } >&5
  2844. (eval "$ac_compile") 2>&5
  2845. ac_status=$?
  2846. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  2847. test $ac_status = 0; }; then :
  2848. for ac_file in conftest.o conftest.obj conftest.*; do
  2849. test -f "$ac_file" || continue;
  2850. case $ac_file in
  2851. *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
  2852. *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
  2853. break;;
  2854. esac
  2855. done
  2856. else
  2857. $as_echo "$as_me: failed program was:" >&5
  2858. sed 's/^/| /' conftest.$ac_ext >&5
  2859. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  2860. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  2861. as_fn_error $? "cannot compute suffix of object files: cannot compile
  2862. See \`config.log' for more details" "$LINENO" 5; }
  2863. fi
  2864. rm -f conftest.$ac_cv_objext conftest.$ac_ext
  2865. fi
  2866. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
  2867. $as_echo "$ac_cv_objext" >&6; }
  2868. OBJEXT=$ac_cv_objext
  2869. ac_objext=$OBJEXT
  2870. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  2871. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  2872. if ${ac_cv_c_compiler_gnu+:} false; then :
  2873. $as_echo_n "(cached) " >&6
  2874. else
  2875. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2876. /* end confdefs.h. */
  2877. int
  2878. main ()
  2879. {
  2880. #ifndef __GNUC__
  2881. choke me
  2882. #endif
  2883. ;
  2884. return 0;
  2885. }
  2886. _ACEOF
  2887. if ac_fn_c_try_compile "$LINENO"; then :
  2888. ac_compiler_gnu=yes
  2889. else
  2890. ac_compiler_gnu=no
  2891. fi
  2892. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2893. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  2894. fi
  2895. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  2896. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  2897. if test $ac_compiler_gnu = yes; then
  2898. GCC=yes
  2899. else
  2900. GCC=
  2901. fi
  2902. ac_test_CFLAGS=${CFLAGS+set}
  2903. ac_save_CFLAGS=$CFLAGS
  2904. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  2905. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  2906. if ${ac_cv_prog_cc_g+:} false; then :
  2907. $as_echo_n "(cached) " >&6
  2908. else
  2909. ac_save_c_werror_flag=$ac_c_werror_flag
  2910. ac_c_werror_flag=yes
  2911. ac_cv_prog_cc_g=no
  2912. CFLAGS="-g"
  2913. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2914. /* end confdefs.h. */
  2915. int
  2916. main ()
  2917. {
  2918. ;
  2919. return 0;
  2920. }
  2921. _ACEOF
  2922. if ac_fn_c_try_compile "$LINENO"; then :
  2923. ac_cv_prog_cc_g=yes
  2924. else
  2925. CFLAGS=""
  2926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2927. /* end confdefs.h. */
  2928. int
  2929. main ()
  2930. {
  2931. ;
  2932. return 0;
  2933. }
  2934. _ACEOF
  2935. if ac_fn_c_try_compile "$LINENO"; then :
  2936. else
  2937. ac_c_werror_flag=$ac_save_c_werror_flag
  2938. CFLAGS="-g"
  2939. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2940. /* end confdefs.h. */
  2941. int
  2942. main ()
  2943. {
  2944. ;
  2945. return 0;
  2946. }
  2947. _ACEOF
  2948. if ac_fn_c_try_compile "$LINENO"; then :
  2949. ac_cv_prog_cc_g=yes
  2950. fi
  2951. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2952. fi
  2953. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2954. fi
  2955. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  2956. ac_c_werror_flag=$ac_save_c_werror_flag
  2957. fi
  2958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  2959. $as_echo "$ac_cv_prog_cc_g" >&6; }
  2960. if test "$ac_test_CFLAGS" = set; then
  2961. CFLAGS=$ac_save_CFLAGS
  2962. elif test $ac_cv_prog_cc_g = yes; then
  2963. if test "$GCC" = yes; then
  2964. CFLAGS="-g -O2"
  2965. else
  2966. CFLAGS="-g"
  2967. fi
  2968. else
  2969. if test "$GCC" = yes; then
  2970. CFLAGS="-O2"
  2971. else
  2972. CFLAGS=
  2973. fi
  2974. fi
  2975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  2976. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  2977. if ${ac_cv_prog_cc_c89+:} false; then :
  2978. $as_echo_n "(cached) " >&6
  2979. else
  2980. ac_cv_prog_cc_c89=no
  2981. ac_save_CC=$CC
  2982. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  2983. /* end confdefs.h. */
  2984. #include <stdarg.h>
  2985. #include <stdio.h>
  2986. struct stat;
  2987. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  2988. struct buf { int x; };
  2989. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  2990. static char *e (p, i)
  2991. char **p;
  2992. int i;
  2993. {
  2994. return p[i];
  2995. }
  2996. static char *f (char * (*g) (char **, int), char **p, ...)
  2997. {
  2998. char *s;
  2999. va_list v;
  3000. va_start (v,p);
  3001. s = g (p, va_arg (v,int));
  3002. va_end (v);
  3003. return s;
  3004. }
  3005. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3006. function prototypes and stuff, but not '\xHH' hex character constants.
  3007. These don't provoke an error unfortunately, instead are silently treated
  3008. as 'x'. The following induces an error, until -std is added to get
  3009. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3010. array size at least. It's necessary to write '\x00'==0 to get something
  3011. that's true only with -std. */
  3012. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3013. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3014. inside strings and character constants. */
  3015. #define FOO(x) 'x'
  3016. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3017. int test (int i, double x);
  3018. struct s1 {int (*f) (int a);};
  3019. struct s2 {int (*f) (double a);};
  3020. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3021. int argc;
  3022. char **argv;
  3023. int
  3024. main ()
  3025. {
  3026. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3027. ;
  3028. return 0;
  3029. }
  3030. _ACEOF
  3031. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3032. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3033. do
  3034. CC="$ac_save_CC $ac_arg"
  3035. if ac_fn_c_try_compile "$LINENO"; then :
  3036. ac_cv_prog_cc_c89=$ac_arg
  3037. fi
  3038. rm -f core conftest.err conftest.$ac_objext
  3039. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3040. done
  3041. rm -f conftest.$ac_ext
  3042. CC=$ac_save_CC
  3043. fi
  3044. # AC_CACHE_VAL
  3045. case "x$ac_cv_prog_cc_c89" in
  3046. x)
  3047. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3048. $as_echo "none needed" >&6; } ;;
  3049. xno)
  3050. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3051. $as_echo "unsupported" >&6; } ;;
  3052. *)
  3053. CC="$CC $ac_cv_prog_cc_c89"
  3054. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3055. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3056. esac
  3057. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3058. fi
  3059. ac_ext=c
  3060. ac_cpp='$CPP $CPPFLAGS'
  3061. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3062. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3063. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3064. ac_ext=c
  3065. ac_cpp='$CPP $CPPFLAGS'
  3066. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3067. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3068. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3069. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
  3070. $as_echo_n "checking how to run the C preprocessor... " >&6; }
  3071. # On Suns, sometimes $CPP names a directory.
  3072. if test -n "$CPP" && test -d "$CPP"; then
  3073. CPP=
  3074. fi
  3075. if test -z "$CPP"; then
  3076. if ${ac_cv_prog_CPP+:} false; then :
  3077. $as_echo_n "(cached) " >&6
  3078. else
  3079. # Double quotes because CPP needs to be expanded
  3080. for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
  3081. do
  3082. ac_preproc_ok=false
  3083. for ac_c_preproc_warn_flag in '' yes
  3084. do
  3085. # Use a header file that comes with gcc, so configuring glibc
  3086. # with a fresh cross-compiler works.
  3087. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3088. # <limits.h> exists even on freestanding compilers.
  3089. # On the NeXT, cc -E runs the code through the compiler's parser,
  3090. # not just through cpp. "Syntax error" is here to catch this case.
  3091. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3092. /* end confdefs.h. */
  3093. #ifdef __STDC__
  3094. # include <limits.h>
  3095. #else
  3096. # include <assert.h>
  3097. #endif
  3098. Syntax error
  3099. _ACEOF
  3100. if ac_fn_c_try_cpp "$LINENO"; then :
  3101. else
  3102. # Broken: fails on valid input.
  3103. continue
  3104. fi
  3105. rm -f conftest.err conftest.i conftest.$ac_ext
  3106. # OK, works on sane cases. Now check whether nonexistent headers
  3107. # can be detected and how.
  3108. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3109. /* end confdefs.h. */
  3110. #include <ac_nonexistent.h>
  3111. _ACEOF
  3112. if ac_fn_c_try_cpp "$LINENO"; then :
  3113. # Broken: success on invalid input.
  3114. continue
  3115. else
  3116. # Passes both tests.
  3117. ac_preproc_ok=:
  3118. break
  3119. fi
  3120. rm -f conftest.err conftest.i conftest.$ac_ext
  3121. done
  3122. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3123. rm -f conftest.i conftest.err conftest.$ac_ext
  3124. if $ac_preproc_ok; then :
  3125. break
  3126. fi
  3127. done
  3128. ac_cv_prog_CPP=$CPP
  3129. fi
  3130. CPP=$ac_cv_prog_CPP
  3131. else
  3132. ac_cv_prog_CPP=$CPP
  3133. fi
  3134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
  3135. $as_echo "$CPP" >&6; }
  3136. ac_preproc_ok=false
  3137. for ac_c_preproc_warn_flag in '' yes
  3138. do
  3139. # Use a header file that comes with gcc, so configuring glibc
  3140. # with a fresh cross-compiler works.
  3141. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  3142. # <limits.h> exists even on freestanding compilers.
  3143. # On the NeXT, cc -E runs the code through the compiler's parser,
  3144. # not just through cpp. "Syntax error" is here to catch this case.
  3145. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3146. /* end confdefs.h. */
  3147. #ifdef __STDC__
  3148. # include <limits.h>
  3149. #else
  3150. # include <assert.h>
  3151. #endif
  3152. Syntax error
  3153. _ACEOF
  3154. if ac_fn_c_try_cpp "$LINENO"; then :
  3155. else
  3156. # Broken: fails on valid input.
  3157. continue
  3158. fi
  3159. rm -f conftest.err conftest.i conftest.$ac_ext
  3160. # OK, works on sane cases. Now check whether nonexistent headers
  3161. # can be detected and how.
  3162. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3163. /* end confdefs.h. */
  3164. #include <ac_nonexistent.h>
  3165. _ACEOF
  3166. if ac_fn_c_try_cpp "$LINENO"; then :
  3167. # Broken: success on invalid input.
  3168. continue
  3169. else
  3170. # Passes both tests.
  3171. ac_preproc_ok=:
  3172. break
  3173. fi
  3174. rm -f conftest.err conftest.i conftest.$ac_ext
  3175. done
  3176. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  3177. rm -f conftest.i conftest.err conftest.$ac_ext
  3178. if $ac_preproc_ok; then :
  3179. else
  3180. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3181. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3182. as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
  3183. See \`config.log' for more details" "$LINENO" 5; }
  3184. fi
  3185. ac_ext=c
  3186. ac_cpp='$CPP $CPPFLAGS'
  3187. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3188. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3189. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3190. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
  3191. $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
  3192. if ${ac_cv_path_GREP+:} false; then :
  3193. $as_echo_n "(cached) " >&6
  3194. else
  3195. if test -z "$GREP"; then
  3196. ac_path_GREP_found=false
  3197. # Loop through the user's path and test for each of PROGNAME-LIST
  3198. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3199. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3200. do
  3201. IFS=$as_save_IFS
  3202. test -z "$as_dir" && as_dir=.
  3203. for ac_prog in grep ggrep; do
  3204. for ac_exec_ext in '' $ac_executable_extensions; do
  3205. ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
  3206. as_fn_executable_p "$ac_path_GREP" || continue
  3207. # Check for GNU ac_path_GREP and select it if it is found.
  3208. # Check for GNU $ac_path_GREP
  3209. case `"$ac_path_GREP" --version 2>&1` in
  3210. *GNU*)
  3211. ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
  3212. *)
  3213. ac_count=0
  3214. $as_echo_n 0123456789 >"conftest.in"
  3215. while :
  3216. do
  3217. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3218. mv "conftest.tmp" "conftest.in"
  3219. cp "conftest.in" "conftest.nl"
  3220. $as_echo 'GREP' >> "conftest.nl"
  3221. "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3222. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3223. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3224. if test $ac_count -gt ${ac_path_GREP_max-0}; then
  3225. # Best one so far, save it but keep looking for a better one
  3226. ac_cv_path_GREP="$ac_path_GREP"
  3227. ac_path_GREP_max=$ac_count
  3228. fi
  3229. # 10*(2^10) chars as input seems more than enough
  3230. test $ac_count -gt 10 && break
  3231. done
  3232. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3233. esac
  3234. $ac_path_GREP_found && break 3
  3235. done
  3236. done
  3237. done
  3238. IFS=$as_save_IFS
  3239. if test -z "$ac_cv_path_GREP"; then
  3240. as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3241. fi
  3242. else
  3243. ac_cv_path_GREP=$GREP
  3244. fi
  3245. fi
  3246. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
  3247. $as_echo "$ac_cv_path_GREP" >&6; }
  3248. GREP="$ac_cv_path_GREP"
  3249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
  3250. $as_echo_n "checking for egrep... " >&6; }
  3251. if ${ac_cv_path_EGREP+:} false; then :
  3252. $as_echo_n "(cached) " >&6
  3253. else
  3254. if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
  3255. then ac_cv_path_EGREP="$GREP -E"
  3256. else
  3257. if test -z "$EGREP"; then
  3258. ac_path_EGREP_found=false
  3259. # Loop through the user's path and test for each of PROGNAME-LIST
  3260. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3261. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  3262. do
  3263. IFS=$as_save_IFS
  3264. test -z "$as_dir" && as_dir=.
  3265. for ac_prog in egrep; do
  3266. for ac_exec_ext in '' $ac_executable_extensions; do
  3267. ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
  3268. as_fn_executable_p "$ac_path_EGREP" || continue
  3269. # Check for GNU ac_path_EGREP and select it if it is found.
  3270. # Check for GNU $ac_path_EGREP
  3271. case `"$ac_path_EGREP" --version 2>&1` in
  3272. *GNU*)
  3273. ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
  3274. *)
  3275. ac_count=0
  3276. $as_echo_n 0123456789 >"conftest.in"
  3277. while :
  3278. do
  3279. cat "conftest.in" "conftest.in" >"conftest.tmp"
  3280. mv "conftest.tmp" "conftest.in"
  3281. cp "conftest.in" "conftest.nl"
  3282. $as_echo 'EGREP' >> "conftest.nl"
  3283. "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
  3284. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  3285. as_fn_arith $ac_count + 1 && ac_count=$as_val
  3286. if test $ac_count -gt ${ac_path_EGREP_max-0}; then
  3287. # Best one so far, save it but keep looking for a better one
  3288. ac_cv_path_EGREP="$ac_path_EGREP"
  3289. ac_path_EGREP_max=$ac_count
  3290. fi
  3291. # 10*(2^10) chars as input seems more than enough
  3292. test $ac_count -gt 10 && break
  3293. done
  3294. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  3295. esac
  3296. $ac_path_EGREP_found && break 3
  3297. done
  3298. done
  3299. done
  3300. IFS=$as_save_IFS
  3301. if test -z "$ac_cv_path_EGREP"; then
  3302. as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  3303. fi
  3304. else
  3305. ac_cv_path_EGREP=$EGREP
  3306. fi
  3307. fi
  3308. fi
  3309. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
  3310. $as_echo "$ac_cv_path_EGREP" >&6; }
  3311. EGREP="$ac_cv_path_EGREP"
  3312. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
  3313. $as_echo_n "checking for ANSI C header files... " >&6; }
  3314. if ${ac_cv_header_stdc+:} false; then :
  3315. $as_echo_n "(cached) " >&6
  3316. else
  3317. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3318. /* end confdefs.h. */
  3319. #include <stdlib.h>
  3320. #include <stdarg.h>
  3321. #include <string.h>
  3322. #include <float.h>
  3323. int
  3324. main ()
  3325. {
  3326. ;
  3327. return 0;
  3328. }
  3329. _ACEOF
  3330. if ac_fn_c_try_compile "$LINENO"; then :
  3331. ac_cv_header_stdc=yes
  3332. else
  3333. ac_cv_header_stdc=no
  3334. fi
  3335. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3336. if test $ac_cv_header_stdc = yes; then
  3337. # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
  3338. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3339. /* end confdefs.h. */
  3340. #include <string.h>
  3341. _ACEOF
  3342. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3343. $EGREP "memchr" >/dev/null 2>&1; then :
  3344. else
  3345. ac_cv_header_stdc=no
  3346. fi
  3347. rm -f conftest*
  3348. fi
  3349. if test $ac_cv_header_stdc = yes; then
  3350. # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
  3351. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3352. /* end confdefs.h. */
  3353. #include <stdlib.h>
  3354. _ACEOF
  3355. if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
  3356. $EGREP "free" >/dev/null 2>&1; then :
  3357. else
  3358. ac_cv_header_stdc=no
  3359. fi
  3360. rm -f conftest*
  3361. fi
  3362. if test $ac_cv_header_stdc = yes; then
  3363. # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
  3364. if test "$cross_compiling" = yes; then :
  3365. :
  3366. else
  3367. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3368. /* end confdefs.h. */
  3369. #include <ctype.h>
  3370. #include <stdlib.h>
  3371. #if ((' ' & 0x0FF) == 0x020)
  3372. # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
  3373. # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
  3374. #else
  3375. # define ISLOWER(c) \
  3376. (('a' <= (c) && (c) <= 'i') \
  3377. || ('j' <= (c) && (c) <= 'r') \
  3378. || ('s' <= (c) && (c) <= 'z'))
  3379. # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
  3380. #endif
  3381. #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
  3382. int
  3383. main ()
  3384. {
  3385. int i;
  3386. for (i = 0; i < 256; i++)
  3387. if (XOR (islower (i), ISLOWER (i))
  3388. || toupper (i) != TOUPPER (i))
  3389. return 2;
  3390. return 0;
  3391. }
  3392. _ACEOF
  3393. if ac_fn_c_try_run "$LINENO"; then :
  3394. else
  3395. ac_cv_header_stdc=no
  3396. fi
  3397. rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
  3398. conftest.$ac_objext conftest.beam conftest.$ac_ext
  3399. fi
  3400. fi
  3401. fi
  3402. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
  3403. $as_echo "$ac_cv_header_stdc" >&6; }
  3404. if test $ac_cv_header_stdc = yes; then
  3405. $as_echo "#define STDC_HEADERS 1" >>confdefs.h
  3406. fi
  3407. # On IRIX 5.3, sys/types and inttypes.h are conflicting.
  3408. for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
  3409. inttypes.h stdint.h unistd.h
  3410. do :
  3411. as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
  3412. ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
  3413. "
  3414. if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
  3415. cat >>confdefs.h <<_ACEOF
  3416. #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
  3417. _ACEOF
  3418. fi
  3419. done
  3420. ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
  3421. if test "x$ac_cv_header_minix_config_h" = xyes; then :
  3422. MINIX=yes
  3423. else
  3424. MINIX=
  3425. fi
  3426. if test "$MINIX" = yes; then
  3427. $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
  3428. $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
  3429. $as_echo "#define _MINIX 1" >>confdefs.h
  3430. fi
  3431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
  3432. $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
  3433. if ${ac_cv_safe_to_define___extensions__+:} false; then :
  3434. $as_echo_n "(cached) " >&6
  3435. else
  3436. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3437. /* end confdefs.h. */
  3438. # define __EXTENSIONS__ 1
  3439. $ac_includes_default
  3440. int
  3441. main ()
  3442. {
  3443. ;
  3444. return 0;
  3445. }
  3446. _ACEOF
  3447. if ac_fn_c_try_compile "$LINENO"; then :
  3448. ac_cv_safe_to_define___extensions__=yes
  3449. else
  3450. ac_cv_safe_to_define___extensions__=no
  3451. fi
  3452. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3453. fi
  3454. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
  3455. $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
  3456. test $ac_cv_safe_to_define___extensions__ = yes &&
  3457. $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
  3458. $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
  3459. $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
  3460. $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
  3461. $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
  3462. # Checks for programs.
  3463. ac_ext=c
  3464. ac_cpp='$CPP $CPPFLAGS'
  3465. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3466. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3467. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3468. if test -n "$ac_tool_prefix"; then
  3469. # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
  3470. set dummy ${ac_tool_prefix}gcc; ac_word=$2
  3471. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3472. $as_echo_n "checking for $ac_word... " >&6; }
  3473. if ${ac_cv_prog_CC+:} false; then :
  3474. $as_echo_n "(cached) " >&6
  3475. else
  3476. if test -n "$CC"; then
  3477. ac_cv_prog_CC="$CC" # Let the user override the test.
  3478. else
  3479. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3480. for as_dir in $PATH
  3481. do
  3482. IFS=$as_save_IFS
  3483. test -z "$as_dir" && as_dir=.
  3484. for ac_exec_ext in '' $ac_executable_extensions; do
  3485. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3486. ac_cv_prog_CC="${ac_tool_prefix}gcc"
  3487. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3488. break 2
  3489. fi
  3490. done
  3491. done
  3492. IFS=$as_save_IFS
  3493. fi
  3494. fi
  3495. CC=$ac_cv_prog_CC
  3496. if test -n "$CC"; then
  3497. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3498. $as_echo "$CC" >&6; }
  3499. else
  3500. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3501. $as_echo "no" >&6; }
  3502. fi
  3503. fi
  3504. if test -z "$ac_cv_prog_CC"; then
  3505. ac_ct_CC=$CC
  3506. # Extract the first word of "gcc", so it can be a program name with args.
  3507. set dummy gcc; ac_word=$2
  3508. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3509. $as_echo_n "checking for $ac_word... " >&6; }
  3510. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3511. $as_echo_n "(cached) " >&6
  3512. else
  3513. if test -n "$ac_ct_CC"; then
  3514. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3515. else
  3516. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3517. for as_dir in $PATH
  3518. do
  3519. IFS=$as_save_IFS
  3520. test -z "$as_dir" && as_dir=.
  3521. for ac_exec_ext in '' $ac_executable_extensions; do
  3522. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3523. ac_cv_prog_ac_ct_CC="gcc"
  3524. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3525. break 2
  3526. fi
  3527. done
  3528. done
  3529. IFS=$as_save_IFS
  3530. fi
  3531. fi
  3532. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3533. if test -n "$ac_ct_CC"; then
  3534. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3535. $as_echo "$ac_ct_CC" >&6; }
  3536. else
  3537. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3538. $as_echo "no" >&6; }
  3539. fi
  3540. if test "x$ac_ct_CC" = x; then
  3541. CC=""
  3542. else
  3543. case $cross_compiling:$ac_tool_warned in
  3544. yes:)
  3545. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3546. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3547. ac_tool_warned=yes ;;
  3548. esac
  3549. CC=$ac_ct_CC
  3550. fi
  3551. else
  3552. CC="$ac_cv_prog_CC"
  3553. fi
  3554. if test -z "$CC"; then
  3555. if test -n "$ac_tool_prefix"; then
  3556. # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
  3557. set dummy ${ac_tool_prefix}cc; ac_word=$2
  3558. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3559. $as_echo_n "checking for $ac_word... " >&6; }
  3560. if ${ac_cv_prog_CC+:} false; then :
  3561. $as_echo_n "(cached) " >&6
  3562. else
  3563. if test -n "$CC"; then
  3564. ac_cv_prog_CC="$CC" # Let the user override the test.
  3565. else
  3566. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3567. for as_dir in $PATH
  3568. do
  3569. IFS=$as_save_IFS
  3570. test -z "$as_dir" && as_dir=.
  3571. for ac_exec_ext in '' $ac_executable_extensions; do
  3572. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3573. ac_cv_prog_CC="${ac_tool_prefix}cc"
  3574. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3575. break 2
  3576. fi
  3577. done
  3578. done
  3579. IFS=$as_save_IFS
  3580. fi
  3581. fi
  3582. CC=$ac_cv_prog_CC
  3583. if test -n "$CC"; then
  3584. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3585. $as_echo "$CC" >&6; }
  3586. else
  3587. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3588. $as_echo "no" >&6; }
  3589. fi
  3590. fi
  3591. fi
  3592. if test -z "$CC"; then
  3593. # Extract the first word of "cc", so it can be a program name with args.
  3594. set dummy cc; ac_word=$2
  3595. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3596. $as_echo_n "checking for $ac_word... " >&6; }
  3597. if ${ac_cv_prog_CC+:} false; then :
  3598. $as_echo_n "(cached) " >&6
  3599. else
  3600. if test -n "$CC"; then
  3601. ac_cv_prog_CC="$CC" # Let the user override the test.
  3602. else
  3603. ac_prog_rejected=no
  3604. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3605. for as_dir in $PATH
  3606. do
  3607. IFS=$as_save_IFS
  3608. test -z "$as_dir" && as_dir=.
  3609. for ac_exec_ext in '' $ac_executable_extensions; do
  3610. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3611. if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
  3612. ac_prog_rejected=yes
  3613. continue
  3614. fi
  3615. ac_cv_prog_CC="cc"
  3616. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3617. break 2
  3618. fi
  3619. done
  3620. done
  3621. IFS=$as_save_IFS
  3622. if test $ac_prog_rejected = yes; then
  3623. # We found a bogon in the path, so make sure we never use it.
  3624. set dummy $ac_cv_prog_CC
  3625. shift
  3626. if test $# != 0; then
  3627. # We chose a different compiler from the bogus one.
  3628. # However, it has the same basename, so the bogon will be chosen
  3629. # first if we set CC to just the basename; use the full file name.
  3630. shift
  3631. ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
  3632. fi
  3633. fi
  3634. fi
  3635. fi
  3636. CC=$ac_cv_prog_CC
  3637. if test -n "$CC"; then
  3638. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3639. $as_echo "$CC" >&6; }
  3640. else
  3641. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3642. $as_echo "no" >&6; }
  3643. fi
  3644. fi
  3645. if test -z "$CC"; then
  3646. if test -n "$ac_tool_prefix"; then
  3647. for ac_prog in cl.exe
  3648. do
  3649. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3650. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3652. $as_echo_n "checking for $ac_word... " >&6; }
  3653. if ${ac_cv_prog_CC+:} false; then :
  3654. $as_echo_n "(cached) " >&6
  3655. else
  3656. if test -n "$CC"; then
  3657. ac_cv_prog_CC="$CC" # Let the user override the test.
  3658. else
  3659. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3660. for as_dir in $PATH
  3661. do
  3662. IFS=$as_save_IFS
  3663. test -z "$as_dir" && as_dir=.
  3664. for ac_exec_ext in '' $ac_executable_extensions; do
  3665. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3666. ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
  3667. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3668. break 2
  3669. fi
  3670. done
  3671. done
  3672. IFS=$as_save_IFS
  3673. fi
  3674. fi
  3675. CC=$ac_cv_prog_CC
  3676. if test -n "$CC"; then
  3677. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
  3678. $as_echo "$CC" >&6; }
  3679. else
  3680. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3681. $as_echo "no" >&6; }
  3682. fi
  3683. test -n "$CC" && break
  3684. done
  3685. fi
  3686. if test -z "$CC"; then
  3687. ac_ct_CC=$CC
  3688. for ac_prog in cl.exe
  3689. do
  3690. # Extract the first word of "$ac_prog", so it can be a program name with args.
  3691. set dummy $ac_prog; ac_word=$2
  3692. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3693. $as_echo_n "checking for $ac_word... " >&6; }
  3694. if ${ac_cv_prog_ac_ct_CC+:} false; then :
  3695. $as_echo_n "(cached) " >&6
  3696. else
  3697. if test -n "$ac_ct_CC"; then
  3698. ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
  3699. else
  3700. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3701. for as_dir in $PATH
  3702. do
  3703. IFS=$as_save_IFS
  3704. test -z "$as_dir" && as_dir=.
  3705. for ac_exec_ext in '' $ac_executable_extensions; do
  3706. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3707. ac_cv_prog_ac_ct_CC="$ac_prog"
  3708. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3709. break 2
  3710. fi
  3711. done
  3712. done
  3713. IFS=$as_save_IFS
  3714. fi
  3715. fi
  3716. ac_ct_CC=$ac_cv_prog_ac_ct_CC
  3717. if test -n "$ac_ct_CC"; then
  3718. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
  3719. $as_echo "$ac_ct_CC" >&6; }
  3720. else
  3721. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  3722. $as_echo "no" >&6; }
  3723. fi
  3724. test -n "$ac_ct_CC" && break
  3725. done
  3726. if test "x$ac_ct_CC" = x; then
  3727. CC=""
  3728. else
  3729. case $cross_compiling:$ac_tool_warned in
  3730. yes:)
  3731. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  3732. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  3733. ac_tool_warned=yes ;;
  3734. esac
  3735. CC=$ac_ct_CC
  3736. fi
  3737. fi
  3738. fi
  3739. test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  3740. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  3741. as_fn_error $? "no acceptable C compiler found in \$PATH
  3742. See \`config.log' for more details" "$LINENO" 5; }
  3743. # Provide some information about the compiler.
  3744. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
  3745. set X $ac_compile
  3746. ac_compiler=$2
  3747. for ac_option in --version -v -V -qversion; do
  3748. { { ac_try="$ac_compiler $ac_option >&5"
  3749. case "(($ac_try" in
  3750. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  3751. *) ac_try_echo=$ac_try;;
  3752. esac
  3753. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  3754. $as_echo "$ac_try_echo"; } >&5
  3755. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  3756. ac_status=$?
  3757. if test -s conftest.err; then
  3758. sed '10a\
  3759. ... rest of stderr output deleted ...
  3760. 10q' conftest.err >conftest.er1
  3761. cat conftest.er1 >&5
  3762. fi
  3763. rm -f conftest.er1 conftest.err
  3764. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  3765. test $ac_status = 0; }
  3766. done
  3767. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
  3768. $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
  3769. if ${ac_cv_c_compiler_gnu+:} false; then :
  3770. $as_echo_n "(cached) " >&6
  3771. else
  3772. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3773. /* end confdefs.h. */
  3774. int
  3775. main ()
  3776. {
  3777. #ifndef __GNUC__
  3778. choke me
  3779. #endif
  3780. ;
  3781. return 0;
  3782. }
  3783. _ACEOF
  3784. if ac_fn_c_try_compile "$LINENO"; then :
  3785. ac_compiler_gnu=yes
  3786. else
  3787. ac_compiler_gnu=no
  3788. fi
  3789. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3790. ac_cv_c_compiler_gnu=$ac_compiler_gnu
  3791. fi
  3792. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
  3793. $as_echo "$ac_cv_c_compiler_gnu" >&6; }
  3794. if test $ac_compiler_gnu = yes; then
  3795. GCC=yes
  3796. else
  3797. GCC=
  3798. fi
  3799. ac_test_CFLAGS=${CFLAGS+set}
  3800. ac_save_CFLAGS=$CFLAGS
  3801. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
  3802. $as_echo_n "checking whether $CC accepts -g... " >&6; }
  3803. if ${ac_cv_prog_cc_g+:} false; then :
  3804. $as_echo_n "(cached) " >&6
  3805. else
  3806. ac_save_c_werror_flag=$ac_c_werror_flag
  3807. ac_c_werror_flag=yes
  3808. ac_cv_prog_cc_g=no
  3809. CFLAGS="-g"
  3810. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3811. /* end confdefs.h. */
  3812. int
  3813. main ()
  3814. {
  3815. ;
  3816. return 0;
  3817. }
  3818. _ACEOF
  3819. if ac_fn_c_try_compile "$LINENO"; then :
  3820. ac_cv_prog_cc_g=yes
  3821. else
  3822. CFLAGS=""
  3823. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3824. /* end confdefs.h. */
  3825. int
  3826. main ()
  3827. {
  3828. ;
  3829. return 0;
  3830. }
  3831. _ACEOF
  3832. if ac_fn_c_try_compile "$LINENO"; then :
  3833. else
  3834. ac_c_werror_flag=$ac_save_c_werror_flag
  3835. CFLAGS="-g"
  3836. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3837. /* end confdefs.h. */
  3838. int
  3839. main ()
  3840. {
  3841. ;
  3842. return 0;
  3843. }
  3844. _ACEOF
  3845. if ac_fn_c_try_compile "$LINENO"; then :
  3846. ac_cv_prog_cc_g=yes
  3847. fi
  3848. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3849. fi
  3850. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3851. fi
  3852. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  3853. ac_c_werror_flag=$ac_save_c_werror_flag
  3854. fi
  3855. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
  3856. $as_echo "$ac_cv_prog_cc_g" >&6; }
  3857. if test "$ac_test_CFLAGS" = set; then
  3858. CFLAGS=$ac_save_CFLAGS
  3859. elif test $ac_cv_prog_cc_g = yes; then
  3860. if test "$GCC" = yes; then
  3861. CFLAGS="-g -O2"
  3862. else
  3863. CFLAGS="-g"
  3864. fi
  3865. else
  3866. if test "$GCC" = yes; then
  3867. CFLAGS="-O2"
  3868. else
  3869. CFLAGS=
  3870. fi
  3871. fi
  3872. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
  3873. $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
  3874. if ${ac_cv_prog_cc_c89+:} false; then :
  3875. $as_echo_n "(cached) " >&6
  3876. else
  3877. ac_cv_prog_cc_c89=no
  3878. ac_save_CC=$CC
  3879. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  3880. /* end confdefs.h. */
  3881. #include <stdarg.h>
  3882. #include <stdio.h>
  3883. struct stat;
  3884. /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
  3885. struct buf { int x; };
  3886. FILE * (*rcsopen) (struct buf *, struct stat *, int);
  3887. static char *e (p, i)
  3888. char **p;
  3889. int i;
  3890. {
  3891. return p[i];
  3892. }
  3893. static char *f (char * (*g) (char **, int), char **p, ...)
  3894. {
  3895. char *s;
  3896. va_list v;
  3897. va_start (v,p);
  3898. s = g (p, va_arg (v,int));
  3899. va_end (v);
  3900. return s;
  3901. }
  3902. /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
  3903. function prototypes and stuff, but not '\xHH' hex character constants.
  3904. These don't provoke an error unfortunately, instead are silently treated
  3905. as 'x'. The following induces an error, until -std is added to get
  3906. proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
  3907. array size at least. It's necessary to write '\x00'==0 to get something
  3908. that's true only with -std. */
  3909. int osf4_cc_array ['\x00' == 0 ? 1 : -1];
  3910. /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
  3911. inside strings and character constants. */
  3912. #define FOO(x) 'x'
  3913. int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
  3914. int test (int i, double x);
  3915. struct s1 {int (*f) (int a);};
  3916. struct s2 {int (*f) (double a);};
  3917. int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
  3918. int argc;
  3919. char **argv;
  3920. int
  3921. main ()
  3922. {
  3923. return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
  3924. ;
  3925. return 0;
  3926. }
  3927. _ACEOF
  3928. for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
  3929. -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
  3930. do
  3931. CC="$ac_save_CC $ac_arg"
  3932. if ac_fn_c_try_compile "$LINENO"; then :
  3933. ac_cv_prog_cc_c89=$ac_arg
  3934. fi
  3935. rm -f core conftest.err conftest.$ac_objext
  3936. test "x$ac_cv_prog_cc_c89" != "xno" && break
  3937. done
  3938. rm -f conftest.$ac_ext
  3939. CC=$ac_save_CC
  3940. fi
  3941. # AC_CACHE_VAL
  3942. case "x$ac_cv_prog_cc_c89" in
  3943. x)
  3944. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
  3945. $as_echo "none needed" >&6; } ;;
  3946. xno)
  3947. { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
  3948. $as_echo "unsupported" >&6; } ;;
  3949. *)
  3950. CC="$CC $ac_cv_prog_cc_c89"
  3951. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
  3952. $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
  3953. esac
  3954. if test "x$ac_cv_prog_cc_c89" != xno; then :
  3955. fi
  3956. ac_ext=c
  3957. ac_cpp='$CPP $CPPFLAGS'
  3958. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3959. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3960. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  3961. ac_ext=cpp
  3962. ac_cpp='$CXXCPP $CPPFLAGS'
  3963. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  3964. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  3965. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  3966. if test -z "$CXX"; then
  3967. if test -n "$CCC"; then
  3968. CXX=$CCC
  3969. else
  3970. if test -n "$ac_tool_prefix"; then
  3971. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  3972. do
  3973. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  3974. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  3975. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  3976. $as_echo_n "checking for $ac_word... " >&6; }
  3977. if ${ac_cv_prog_CXX+:} false; then :
  3978. $as_echo_n "(cached) " >&6
  3979. else
  3980. if test -n "$CXX"; then
  3981. ac_cv_prog_CXX="$CXX" # Let the user override the test.
  3982. else
  3983. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  3984. for as_dir in $PATH
  3985. do
  3986. IFS=$as_save_IFS
  3987. test -z "$as_dir" && as_dir=.
  3988. for ac_exec_ext in '' $ac_executable_extensions; do
  3989. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  3990. ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
  3991. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  3992. break 2
  3993. fi
  3994. done
  3995. done
  3996. IFS=$as_save_IFS
  3997. fi
  3998. fi
  3999. CXX=$ac_cv_prog_CXX
  4000. if test -n "$CXX"; then
  4001. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
  4002. $as_echo "$CXX" >&6; }
  4003. else
  4004. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4005. $as_echo "no" >&6; }
  4006. fi
  4007. test -n "$CXX" && break
  4008. done
  4009. fi
  4010. if test -z "$CXX"; then
  4011. ac_ct_CXX=$CXX
  4012. for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
  4013. do
  4014. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4015. set dummy $ac_prog; ac_word=$2
  4016. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4017. $as_echo_n "checking for $ac_word... " >&6; }
  4018. if ${ac_cv_prog_ac_ct_CXX+:} false; then :
  4019. $as_echo_n "(cached) " >&6
  4020. else
  4021. if test -n "$ac_ct_CXX"; then
  4022. ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
  4023. else
  4024. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4025. for as_dir in $PATH
  4026. do
  4027. IFS=$as_save_IFS
  4028. test -z "$as_dir" && as_dir=.
  4029. for ac_exec_ext in '' $ac_executable_extensions; do
  4030. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4031. ac_cv_prog_ac_ct_CXX="$ac_prog"
  4032. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4033. break 2
  4034. fi
  4035. done
  4036. done
  4037. IFS=$as_save_IFS
  4038. fi
  4039. fi
  4040. ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
  4041. if test -n "$ac_ct_CXX"; then
  4042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
  4043. $as_echo "$ac_ct_CXX" >&6; }
  4044. else
  4045. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4046. $as_echo "no" >&6; }
  4047. fi
  4048. test -n "$ac_ct_CXX" && break
  4049. done
  4050. if test "x$ac_ct_CXX" = x; then
  4051. CXX="g++"
  4052. else
  4053. case $cross_compiling:$ac_tool_warned in
  4054. yes:)
  4055. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4056. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4057. ac_tool_warned=yes ;;
  4058. esac
  4059. CXX=$ac_ct_CXX
  4060. fi
  4061. fi
  4062. fi
  4063. fi
  4064. # Provide some information about the compiler.
  4065. $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
  4066. set X $ac_compile
  4067. ac_compiler=$2
  4068. for ac_option in --version -v -V -qversion; do
  4069. { { ac_try="$ac_compiler $ac_option >&5"
  4070. case "(($ac_try" in
  4071. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  4072. *) ac_try_echo=$ac_try;;
  4073. esac
  4074. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  4075. $as_echo "$ac_try_echo"; } >&5
  4076. (eval "$ac_compiler $ac_option >&5") 2>conftest.err
  4077. ac_status=$?
  4078. if test -s conftest.err; then
  4079. sed '10a\
  4080. ... rest of stderr output deleted ...
  4081. 10q' conftest.err >conftest.er1
  4082. cat conftest.er1 >&5
  4083. fi
  4084. rm -f conftest.er1 conftest.err
  4085. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  4086. test $ac_status = 0; }
  4087. done
  4088. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
  4089. $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
  4090. if ${ac_cv_cxx_compiler_gnu+:} false; then :
  4091. $as_echo_n "(cached) " >&6
  4092. else
  4093. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4094. /* end confdefs.h. */
  4095. int
  4096. main ()
  4097. {
  4098. #ifndef __GNUC__
  4099. choke me
  4100. #endif
  4101. ;
  4102. return 0;
  4103. }
  4104. _ACEOF
  4105. if ac_fn_cxx_try_compile "$LINENO"; then :
  4106. ac_compiler_gnu=yes
  4107. else
  4108. ac_compiler_gnu=no
  4109. fi
  4110. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4111. ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
  4112. fi
  4113. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
  4114. $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
  4115. if test $ac_compiler_gnu = yes; then
  4116. GXX=yes
  4117. else
  4118. GXX=
  4119. fi
  4120. ac_test_CXXFLAGS=${CXXFLAGS+set}
  4121. ac_save_CXXFLAGS=$CXXFLAGS
  4122. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
  4123. $as_echo_n "checking whether $CXX accepts -g... " >&6; }
  4124. if ${ac_cv_prog_cxx_g+:} false; then :
  4125. $as_echo_n "(cached) " >&6
  4126. else
  4127. ac_save_cxx_werror_flag=$ac_cxx_werror_flag
  4128. ac_cxx_werror_flag=yes
  4129. ac_cv_prog_cxx_g=no
  4130. CXXFLAGS="-g"
  4131. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4132. /* end confdefs.h. */
  4133. int
  4134. main ()
  4135. {
  4136. ;
  4137. return 0;
  4138. }
  4139. _ACEOF
  4140. if ac_fn_cxx_try_compile "$LINENO"; then :
  4141. ac_cv_prog_cxx_g=yes
  4142. else
  4143. CXXFLAGS=""
  4144. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4145. /* end confdefs.h. */
  4146. int
  4147. main ()
  4148. {
  4149. ;
  4150. return 0;
  4151. }
  4152. _ACEOF
  4153. if ac_fn_cxx_try_compile "$LINENO"; then :
  4154. else
  4155. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4156. CXXFLAGS="-g"
  4157. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  4158. /* end confdefs.h. */
  4159. int
  4160. main ()
  4161. {
  4162. ;
  4163. return 0;
  4164. }
  4165. _ACEOF
  4166. if ac_fn_cxx_try_compile "$LINENO"; then :
  4167. ac_cv_prog_cxx_g=yes
  4168. fi
  4169. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4170. fi
  4171. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4172. fi
  4173. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  4174. ac_cxx_werror_flag=$ac_save_cxx_werror_flag
  4175. fi
  4176. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
  4177. $as_echo "$ac_cv_prog_cxx_g" >&6; }
  4178. if test "$ac_test_CXXFLAGS" = set; then
  4179. CXXFLAGS=$ac_save_CXXFLAGS
  4180. elif test $ac_cv_prog_cxx_g = yes; then
  4181. if test "$GXX" = yes; then
  4182. CXXFLAGS="-g -O2"
  4183. else
  4184. CXXFLAGS="-g"
  4185. fi
  4186. else
  4187. if test "$GXX" = yes; then
  4188. CXXFLAGS="-O2"
  4189. else
  4190. CXXFLAGS=
  4191. fi
  4192. fi
  4193. ac_ext=c
  4194. ac_cpp='$CPP $CPPFLAGS'
  4195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  4196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  4197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  4198. # Make sure we can run config.sub.
  4199. $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
  4200. as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
  4201. { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
  4202. $as_echo_n "checking build system type... " >&6; }
  4203. if ${ac_cv_build+:} false; then :
  4204. $as_echo_n "(cached) " >&6
  4205. else
  4206. ac_build_alias=$build_alias
  4207. test "x$ac_build_alias" = x &&
  4208. ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
  4209. test "x$ac_build_alias" = x &&
  4210. as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
  4211. ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
  4212. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
  4213. fi
  4214. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
  4215. $as_echo "$ac_cv_build" >&6; }
  4216. case $ac_cv_build in
  4217. *-*-*) ;;
  4218. *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
  4219. esac
  4220. build=$ac_cv_build
  4221. ac_save_IFS=$IFS; IFS='-'
  4222. set x $ac_cv_build
  4223. shift
  4224. build_cpu=$1
  4225. build_vendor=$2
  4226. shift; shift
  4227. # Remember, the first character of IFS is used to create $*,
  4228. # except with old shells:
  4229. build_os=$*
  4230. IFS=$ac_save_IFS
  4231. case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
  4232. { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
  4233. $as_echo_n "checking host system type... " >&6; }
  4234. if ${ac_cv_host+:} false; then :
  4235. $as_echo_n "(cached) " >&6
  4236. else
  4237. if test "x$host_alias" = x; then
  4238. ac_cv_host=$ac_cv_build
  4239. else
  4240. ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
  4241. as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
  4242. fi
  4243. fi
  4244. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
  4245. $as_echo "$ac_cv_host" >&6; }
  4246. case $ac_cv_host in
  4247. *-*-*) ;;
  4248. *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
  4249. esac
  4250. host=$ac_cv_host
  4251. ac_save_IFS=$IFS; IFS='-'
  4252. set x $ac_cv_host
  4253. shift
  4254. host_cpu=$1
  4255. host_vendor=$2
  4256. shift; shift
  4257. # Remember, the first character of IFS is used to create $*,
  4258. # except with old shells:
  4259. host_os=$*
  4260. IFS=$ac_save_IFS
  4261. case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
  4262. enable_win32_dll=yes
  4263. case $host in
  4264. *-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*)
  4265. if test -n "$ac_tool_prefix"; then
  4266. # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args.
  4267. set dummy ${ac_tool_prefix}as; ac_word=$2
  4268. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4269. $as_echo_n "checking for $ac_word... " >&6; }
  4270. if ${ac_cv_prog_AS+:} false; then :
  4271. $as_echo_n "(cached) " >&6
  4272. else
  4273. if test -n "$AS"; then
  4274. ac_cv_prog_AS="$AS" # Let the user override the test.
  4275. else
  4276. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4277. for as_dir in $PATH
  4278. do
  4279. IFS=$as_save_IFS
  4280. test -z "$as_dir" && as_dir=.
  4281. for ac_exec_ext in '' $ac_executable_extensions; do
  4282. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4283. ac_cv_prog_AS="${ac_tool_prefix}as"
  4284. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4285. break 2
  4286. fi
  4287. done
  4288. done
  4289. IFS=$as_save_IFS
  4290. fi
  4291. fi
  4292. AS=$ac_cv_prog_AS
  4293. if test -n "$AS"; then
  4294. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5
  4295. $as_echo "$AS" >&6; }
  4296. else
  4297. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4298. $as_echo "no" >&6; }
  4299. fi
  4300. fi
  4301. if test -z "$ac_cv_prog_AS"; then
  4302. ac_ct_AS=$AS
  4303. # Extract the first word of "as", so it can be a program name with args.
  4304. set dummy as; ac_word=$2
  4305. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4306. $as_echo_n "checking for $ac_word... " >&6; }
  4307. if ${ac_cv_prog_ac_ct_AS+:} false; then :
  4308. $as_echo_n "(cached) " >&6
  4309. else
  4310. if test -n "$ac_ct_AS"; then
  4311. ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test.
  4312. else
  4313. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4314. for as_dir in $PATH
  4315. do
  4316. IFS=$as_save_IFS
  4317. test -z "$as_dir" && as_dir=.
  4318. for ac_exec_ext in '' $ac_executable_extensions; do
  4319. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4320. ac_cv_prog_ac_ct_AS="as"
  4321. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4322. break 2
  4323. fi
  4324. done
  4325. done
  4326. IFS=$as_save_IFS
  4327. fi
  4328. fi
  4329. ac_ct_AS=$ac_cv_prog_ac_ct_AS
  4330. if test -n "$ac_ct_AS"; then
  4331. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5
  4332. $as_echo "$ac_ct_AS" >&6; }
  4333. else
  4334. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4335. $as_echo "no" >&6; }
  4336. fi
  4337. if test "x$ac_ct_AS" = x; then
  4338. AS="false"
  4339. else
  4340. case $cross_compiling:$ac_tool_warned in
  4341. yes:)
  4342. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4343. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4344. ac_tool_warned=yes ;;
  4345. esac
  4346. AS=$ac_ct_AS
  4347. fi
  4348. else
  4349. AS="$ac_cv_prog_AS"
  4350. fi
  4351. if test -n "$ac_tool_prefix"; then
  4352. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  4353. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  4354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4355. $as_echo_n "checking for $ac_word... " >&6; }
  4356. if ${ac_cv_prog_DLLTOOL+:} false; then :
  4357. $as_echo_n "(cached) " >&6
  4358. else
  4359. if test -n "$DLLTOOL"; then
  4360. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  4361. else
  4362. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4363. for as_dir in $PATH
  4364. do
  4365. IFS=$as_save_IFS
  4366. test -z "$as_dir" && as_dir=.
  4367. for ac_exec_ext in '' $ac_executable_extensions; do
  4368. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4369. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  4370. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4371. break 2
  4372. fi
  4373. done
  4374. done
  4375. IFS=$as_save_IFS
  4376. fi
  4377. fi
  4378. DLLTOOL=$ac_cv_prog_DLLTOOL
  4379. if test -n "$DLLTOOL"; then
  4380. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  4381. $as_echo "$DLLTOOL" >&6; }
  4382. else
  4383. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4384. $as_echo "no" >&6; }
  4385. fi
  4386. fi
  4387. if test -z "$ac_cv_prog_DLLTOOL"; then
  4388. ac_ct_DLLTOOL=$DLLTOOL
  4389. # Extract the first word of "dlltool", so it can be a program name with args.
  4390. set dummy dlltool; ac_word=$2
  4391. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4392. $as_echo_n "checking for $ac_word... " >&6; }
  4393. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  4394. $as_echo_n "(cached) " >&6
  4395. else
  4396. if test -n "$ac_ct_DLLTOOL"; then
  4397. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  4398. else
  4399. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4400. for as_dir in $PATH
  4401. do
  4402. IFS=$as_save_IFS
  4403. test -z "$as_dir" && as_dir=.
  4404. for ac_exec_ext in '' $ac_executable_extensions; do
  4405. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4406. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  4407. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4408. break 2
  4409. fi
  4410. done
  4411. done
  4412. IFS=$as_save_IFS
  4413. fi
  4414. fi
  4415. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  4416. if test -n "$ac_ct_DLLTOOL"; then
  4417. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  4418. $as_echo "$ac_ct_DLLTOOL" >&6; }
  4419. else
  4420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4421. $as_echo "no" >&6; }
  4422. fi
  4423. if test "x$ac_ct_DLLTOOL" = x; then
  4424. DLLTOOL="false"
  4425. else
  4426. case $cross_compiling:$ac_tool_warned in
  4427. yes:)
  4428. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4429. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4430. ac_tool_warned=yes ;;
  4431. esac
  4432. DLLTOOL=$ac_ct_DLLTOOL
  4433. fi
  4434. else
  4435. DLLTOOL="$ac_cv_prog_DLLTOOL"
  4436. fi
  4437. if test -n "$ac_tool_prefix"; then
  4438. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  4439. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  4440. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4441. $as_echo_n "checking for $ac_word... " >&6; }
  4442. if ${ac_cv_prog_OBJDUMP+:} false; then :
  4443. $as_echo_n "(cached) " >&6
  4444. else
  4445. if test -n "$OBJDUMP"; then
  4446. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  4447. else
  4448. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4449. for as_dir in $PATH
  4450. do
  4451. IFS=$as_save_IFS
  4452. test -z "$as_dir" && as_dir=.
  4453. for ac_exec_ext in '' $ac_executable_extensions; do
  4454. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4455. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  4456. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4457. break 2
  4458. fi
  4459. done
  4460. done
  4461. IFS=$as_save_IFS
  4462. fi
  4463. fi
  4464. OBJDUMP=$ac_cv_prog_OBJDUMP
  4465. if test -n "$OBJDUMP"; then
  4466. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  4467. $as_echo "$OBJDUMP" >&6; }
  4468. else
  4469. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4470. $as_echo "no" >&6; }
  4471. fi
  4472. fi
  4473. if test -z "$ac_cv_prog_OBJDUMP"; then
  4474. ac_ct_OBJDUMP=$OBJDUMP
  4475. # Extract the first word of "objdump", so it can be a program name with args.
  4476. set dummy objdump; ac_word=$2
  4477. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4478. $as_echo_n "checking for $ac_word... " >&6; }
  4479. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  4480. $as_echo_n "(cached) " >&6
  4481. else
  4482. if test -n "$ac_ct_OBJDUMP"; then
  4483. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  4484. else
  4485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4486. for as_dir in $PATH
  4487. do
  4488. IFS=$as_save_IFS
  4489. test -z "$as_dir" && as_dir=.
  4490. for ac_exec_ext in '' $ac_executable_extensions; do
  4491. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4492. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  4493. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4494. break 2
  4495. fi
  4496. done
  4497. done
  4498. IFS=$as_save_IFS
  4499. fi
  4500. fi
  4501. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  4502. if test -n "$ac_ct_OBJDUMP"; then
  4503. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  4504. $as_echo "$ac_ct_OBJDUMP" >&6; }
  4505. else
  4506. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4507. $as_echo "no" >&6; }
  4508. fi
  4509. if test "x$ac_ct_OBJDUMP" = x; then
  4510. OBJDUMP="false"
  4511. else
  4512. case $cross_compiling:$ac_tool_warned in
  4513. yes:)
  4514. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4515. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4516. ac_tool_warned=yes ;;
  4517. esac
  4518. OBJDUMP=$ac_ct_OBJDUMP
  4519. fi
  4520. else
  4521. OBJDUMP="$ac_cv_prog_OBJDUMP"
  4522. fi
  4523. ;;
  4524. esac
  4525. test -z "$AS" && AS=as
  4526. test -z "$DLLTOOL" && DLLTOOL=dlltool
  4527. test -z "$OBJDUMP" && OBJDUMP=objdump
  4528. case `pwd` in
  4529. *\ * | *\ *)
  4530. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
  4531. $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
  4532. esac
  4533. macro_version='2.4.2'
  4534. macro_revision='1.3337'
  4535. ltmain="$ac_aux_dir/ltmain.sh"
  4536. # Backslashify metacharacters that are still active within
  4537. # double-quoted strings.
  4538. sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
  4539. # Same as above, but do not quote variable references.
  4540. double_quote_subst='s/\(["`\\]\)/\\\1/g'
  4541. # Sed substitution to delay expansion of an escaped shell variable in a
  4542. # double_quote_subst'ed string.
  4543. delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
  4544. # Sed substitution to delay expansion of an escaped single quote.
  4545. delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
  4546. # Sed substitution to avoid accidental globbing in evaled expressions
  4547. no_glob_subst='s/\*/\\\*/g'
  4548. ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  4549. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
  4550. ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
  4551. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
  4552. $as_echo_n "checking how to print strings... " >&6; }
  4553. # Test print first, because it will be a builtin if present.
  4554. if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
  4555. test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
  4556. ECHO='print -r --'
  4557. elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
  4558. ECHO='printf %s\n'
  4559. else
  4560. # Use this function as a fallback that always works.
  4561. func_fallback_echo ()
  4562. {
  4563. eval 'cat <<_LTECHO_EOF
  4564. $1
  4565. _LTECHO_EOF'
  4566. }
  4567. ECHO='func_fallback_echo'
  4568. fi
  4569. # func_echo_all arg...
  4570. # Invoke $ECHO with all args, space-separated.
  4571. func_echo_all ()
  4572. {
  4573. $ECHO ""
  4574. }
  4575. case "$ECHO" in
  4576. printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
  4577. $as_echo "printf" >&6; } ;;
  4578. print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
  4579. $as_echo "print -r" >&6; } ;;
  4580. *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
  4581. $as_echo "cat" >&6; } ;;
  4582. esac
  4583. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
  4584. $as_echo_n "checking for a sed that does not truncate output... " >&6; }
  4585. if ${ac_cv_path_SED+:} false; then :
  4586. $as_echo_n "(cached) " >&6
  4587. else
  4588. ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
  4589. for ac_i in 1 2 3 4 5 6 7; do
  4590. ac_script="$ac_script$as_nl$ac_script"
  4591. done
  4592. echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
  4593. { ac_script=; unset ac_script;}
  4594. if test -z "$SED"; then
  4595. ac_path_SED_found=false
  4596. # Loop through the user's path and test for each of PROGNAME-LIST
  4597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4598. for as_dir in $PATH
  4599. do
  4600. IFS=$as_save_IFS
  4601. test -z "$as_dir" && as_dir=.
  4602. for ac_prog in sed gsed; do
  4603. for ac_exec_ext in '' $ac_executable_extensions; do
  4604. ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
  4605. as_fn_executable_p "$ac_path_SED" || continue
  4606. # Check for GNU ac_path_SED and select it if it is found.
  4607. # Check for GNU $ac_path_SED
  4608. case `"$ac_path_SED" --version 2>&1` in
  4609. *GNU*)
  4610. ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
  4611. *)
  4612. ac_count=0
  4613. $as_echo_n 0123456789 >"conftest.in"
  4614. while :
  4615. do
  4616. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4617. mv "conftest.tmp" "conftest.in"
  4618. cp "conftest.in" "conftest.nl"
  4619. $as_echo '' >> "conftest.nl"
  4620. "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4621. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4622. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4623. if test $ac_count -gt ${ac_path_SED_max-0}; then
  4624. # Best one so far, save it but keep looking for a better one
  4625. ac_cv_path_SED="$ac_path_SED"
  4626. ac_path_SED_max=$ac_count
  4627. fi
  4628. # 10*(2^10) chars as input seems more than enough
  4629. test $ac_count -gt 10 && break
  4630. done
  4631. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4632. esac
  4633. $ac_path_SED_found && break 3
  4634. done
  4635. done
  4636. done
  4637. IFS=$as_save_IFS
  4638. if test -z "$ac_cv_path_SED"; then
  4639. as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
  4640. fi
  4641. else
  4642. ac_cv_path_SED=$SED
  4643. fi
  4644. fi
  4645. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
  4646. $as_echo "$ac_cv_path_SED" >&6; }
  4647. SED="$ac_cv_path_SED"
  4648. rm -f conftest.sed
  4649. test -z "$SED" && SED=sed
  4650. Xsed="$SED -e 1s/^X//"
  4651. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
  4652. $as_echo_n "checking for fgrep... " >&6; }
  4653. if ${ac_cv_path_FGREP+:} false; then :
  4654. $as_echo_n "(cached) " >&6
  4655. else
  4656. if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
  4657. then ac_cv_path_FGREP="$GREP -F"
  4658. else
  4659. if test -z "$FGREP"; then
  4660. ac_path_FGREP_found=false
  4661. # Loop through the user's path and test for each of PROGNAME-LIST
  4662. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4663. for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
  4664. do
  4665. IFS=$as_save_IFS
  4666. test -z "$as_dir" && as_dir=.
  4667. for ac_prog in fgrep; do
  4668. for ac_exec_ext in '' $ac_executable_extensions; do
  4669. ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
  4670. as_fn_executable_p "$ac_path_FGREP" || continue
  4671. # Check for GNU ac_path_FGREP and select it if it is found.
  4672. # Check for GNU $ac_path_FGREP
  4673. case `"$ac_path_FGREP" --version 2>&1` in
  4674. *GNU*)
  4675. ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
  4676. *)
  4677. ac_count=0
  4678. $as_echo_n 0123456789 >"conftest.in"
  4679. while :
  4680. do
  4681. cat "conftest.in" "conftest.in" >"conftest.tmp"
  4682. mv "conftest.tmp" "conftest.in"
  4683. cp "conftest.in" "conftest.nl"
  4684. $as_echo 'FGREP' >> "conftest.nl"
  4685. "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
  4686. diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
  4687. as_fn_arith $ac_count + 1 && ac_count=$as_val
  4688. if test $ac_count -gt ${ac_path_FGREP_max-0}; then
  4689. # Best one so far, save it but keep looking for a better one
  4690. ac_cv_path_FGREP="$ac_path_FGREP"
  4691. ac_path_FGREP_max=$ac_count
  4692. fi
  4693. # 10*(2^10) chars as input seems more than enough
  4694. test $ac_count -gt 10 && break
  4695. done
  4696. rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
  4697. esac
  4698. $ac_path_FGREP_found && break 3
  4699. done
  4700. done
  4701. done
  4702. IFS=$as_save_IFS
  4703. if test -z "$ac_cv_path_FGREP"; then
  4704. as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
  4705. fi
  4706. else
  4707. ac_cv_path_FGREP=$FGREP
  4708. fi
  4709. fi
  4710. fi
  4711. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
  4712. $as_echo "$ac_cv_path_FGREP" >&6; }
  4713. FGREP="$ac_cv_path_FGREP"
  4714. test -z "$GREP" && GREP=grep
  4715. # Check whether --with-gnu-ld was given.
  4716. if test "${with_gnu_ld+set}" = set; then :
  4717. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  4718. else
  4719. with_gnu_ld=no
  4720. fi
  4721. ac_prog=ld
  4722. if test "$GCC" = yes; then
  4723. # Check if gcc -print-prog-name=ld gives a path.
  4724. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  4725. $as_echo_n "checking for ld used by $CC... " >&6; }
  4726. case $host in
  4727. *-*-mingw*)
  4728. # gcc leaves a trailing carriage return which upsets mingw
  4729. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  4730. *)
  4731. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  4732. esac
  4733. case $ac_prog in
  4734. # Accept absolute paths.
  4735. [\\/]* | ?:[\\/]*)
  4736. re_direlt='/[^/][^/]*/\.\./'
  4737. # Canonicalize the pathname of ld
  4738. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  4739. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  4740. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  4741. done
  4742. test -z "$LD" && LD="$ac_prog"
  4743. ;;
  4744. "")
  4745. # If it fails, then pretend we aren't using GCC.
  4746. ac_prog=ld
  4747. ;;
  4748. *)
  4749. # If it is relative, then search for the first ld in PATH.
  4750. with_gnu_ld=unknown
  4751. ;;
  4752. esac
  4753. elif test "$with_gnu_ld" = yes; then
  4754. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  4755. $as_echo_n "checking for GNU ld... " >&6; }
  4756. else
  4757. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  4758. $as_echo_n "checking for non-GNU ld... " >&6; }
  4759. fi
  4760. if ${lt_cv_path_LD+:} false; then :
  4761. $as_echo_n "(cached) " >&6
  4762. else
  4763. if test -z "$LD"; then
  4764. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4765. for ac_dir in $PATH; do
  4766. IFS="$lt_save_ifs"
  4767. test -z "$ac_dir" && ac_dir=.
  4768. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  4769. lt_cv_path_LD="$ac_dir/$ac_prog"
  4770. # Check to see if the program is GNU ld. I'd rather use --version,
  4771. # but apparently some variants of GNU ld only accept -v.
  4772. # Break only if it was the GNU/non-GNU ld that we prefer.
  4773. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  4774. *GNU* | *'with BFD'*)
  4775. test "$with_gnu_ld" != no && break
  4776. ;;
  4777. *)
  4778. test "$with_gnu_ld" != yes && break
  4779. ;;
  4780. esac
  4781. fi
  4782. done
  4783. IFS="$lt_save_ifs"
  4784. else
  4785. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  4786. fi
  4787. fi
  4788. LD="$lt_cv_path_LD"
  4789. if test -n "$LD"; then
  4790. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  4791. $as_echo "$LD" >&6; }
  4792. else
  4793. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4794. $as_echo "no" >&6; }
  4795. fi
  4796. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  4797. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  4798. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  4799. if ${lt_cv_prog_gnu_ld+:} false; then :
  4800. $as_echo_n "(cached) " >&6
  4801. else
  4802. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  4803. case `$LD -v 2>&1 </dev/null` in
  4804. *GNU* | *'with BFD'*)
  4805. lt_cv_prog_gnu_ld=yes
  4806. ;;
  4807. *)
  4808. lt_cv_prog_gnu_ld=no
  4809. ;;
  4810. esac
  4811. fi
  4812. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  4813. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  4814. with_gnu_ld=$lt_cv_prog_gnu_ld
  4815. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
  4816. $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
  4817. if ${lt_cv_path_NM+:} false; then :
  4818. $as_echo_n "(cached) " >&6
  4819. else
  4820. if test -n "$NM"; then
  4821. # Let the user override the test.
  4822. lt_cv_path_NM="$NM"
  4823. else
  4824. lt_nm_to_check="${ac_tool_prefix}nm"
  4825. if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
  4826. lt_nm_to_check="$lt_nm_to_check nm"
  4827. fi
  4828. for lt_tmp_nm in $lt_nm_to_check; do
  4829. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  4830. for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
  4831. IFS="$lt_save_ifs"
  4832. test -z "$ac_dir" && ac_dir=.
  4833. tmp_nm="$ac_dir/$lt_tmp_nm"
  4834. if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
  4835. # Check to see if the nm accepts a BSD-compat flag.
  4836. # Adding the `sed 1q' prevents false positives on HP-UX, which says:
  4837. # nm: unknown option "B" ignored
  4838. # Tru64's nm complains that /dev/null is an invalid object file
  4839. case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
  4840. */dev/null* | *'Invalid file or object type'*)
  4841. lt_cv_path_NM="$tmp_nm -B"
  4842. break
  4843. ;;
  4844. *)
  4845. case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
  4846. */dev/null*)
  4847. lt_cv_path_NM="$tmp_nm -p"
  4848. break
  4849. ;;
  4850. *)
  4851. lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
  4852. continue # so that we can try to find one that supports BSD flags
  4853. ;;
  4854. esac
  4855. ;;
  4856. esac
  4857. fi
  4858. done
  4859. IFS="$lt_save_ifs"
  4860. done
  4861. : ${lt_cv_path_NM=no}
  4862. fi
  4863. fi
  4864. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
  4865. $as_echo "$lt_cv_path_NM" >&6; }
  4866. if test "$lt_cv_path_NM" != "no"; then
  4867. NM="$lt_cv_path_NM"
  4868. else
  4869. # Didn't find any BSD compatible name lister, look for dumpbin.
  4870. if test -n "$DUMPBIN"; then :
  4871. # Let the user override the test.
  4872. else
  4873. if test -n "$ac_tool_prefix"; then
  4874. for ac_prog in dumpbin "link -dump"
  4875. do
  4876. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  4877. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  4878. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4879. $as_echo_n "checking for $ac_word... " >&6; }
  4880. if ${ac_cv_prog_DUMPBIN+:} false; then :
  4881. $as_echo_n "(cached) " >&6
  4882. else
  4883. if test -n "$DUMPBIN"; then
  4884. ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
  4885. else
  4886. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4887. for as_dir in $PATH
  4888. do
  4889. IFS=$as_save_IFS
  4890. test -z "$as_dir" && as_dir=.
  4891. for ac_exec_ext in '' $ac_executable_extensions; do
  4892. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4893. ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
  4894. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4895. break 2
  4896. fi
  4897. done
  4898. done
  4899. IFS=$as_save_IFS
  4900. fi
  4901. fi
  4902. DUMPBIN=$ac_cv_prog_DUMPBIN
  4903. if test -n "$DUMPBIN"; then
  4904. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
  4905. $as_echo "$DUMPBIN" >&6; }
  4906. else
  4907. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4908. $as_echo "no" >&6; }
  4909. fi
  4910. test -n "$DUMPBIN" && break
  4911. done
  4912. fi
  4913. if test -z "$DUMPBIN"; then
  4914. ac_ct_DUMPBIN=$DUMPBIN
  4915. for ac_prog in dumpbin "link -dump"
  4916. do
  4917. # Extract the first word of "$ac_prog", so it can be a program name with args.
  4918. set dummy $ac_prog; ac_word=$2
  4919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  4920. $as_echo_n "checking for $ac_word... " >&6; }
  4921. if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
  4922. $as_echo_n "(cached) " >&6
  4923. else
  4924. if test -n "$ac_ct_DUMPBIN"; then
  4925. ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
  4926. else
  4927. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  4928. for as_dir in $PATH
  4929. do
  4930. IFS=$as_save_IFS
  4931. test -z "$as_dir" && as_dir=.
  4932. for ac_exec_ext in '' $ac_executable_extensions; do
  4933. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  4934. ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
  4935. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  4936. break 2
  4937. fi
  4938. done
  4939. done
  4940. IFS=$as_save_IFS
  4941. fi
  4942. fi
  4943. ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
  4944. if test -n "$ac_ct_DUMPBIN"; then
  4945. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
  4946. $as_echo "$ac_ct_DUMPBIN" >&6; }
  4947. else
  4948. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  4949. $as_echo "no" >&6; }
  4950. fi
  4951. test -n "$ac_ct_DUMPBIN" && break
  4952. done
  4953. if test "x$ac_ct_DUMPBIN" = x; then
  4954. DUMPBIN=":"
  4955. else
  4956. case $cross_compiling:$ac_tool_warned in
  4957. yes:)
  4958. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  4959. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  4960. ac_tool_warned=yes ;;
  4961. esac
  4962. DUMPBIN=$ac_ct_DUMPBIN
  4963. fi
  4964. fi
  4965. case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
  4966. *COFF*)
  4967. DUMPBIN="$DUMPBIN -symbols"
  4968. ;;
  4969. *)
  4970. DUMPBIN=:
  4971. ;;
  4972. esac
  4973. fi
  4974. if test "$DUMPBIN" != ":"; then
  4975. NM="$DUMPBIN"
  4976. fi
  4977. fi
  4978. test -z "$NM" && NM=nm
  4979. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
  4980. $as_echo_n "checking the name lister ($NM) interface... " >&6; }
  4981. if ${lt_cv_nm_interface+:} false; then :
  4982. $as_echo_n "(cached) " >&6
  4983. else
  4984. lt_cv_nm_interface="BSD nm"
  4985. echo "int some_variable = 0;" > conftest.$ac_ext
  4986. (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
  4987. (eval "$ac_compile" 2>conftest.err)
  4988. cat conftest.err >&5
  4989. (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
  4990. (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
  4991. cat conftest.err >&5
  4992. (eval echo "\"\$as_me:$LINENO: output\"" >&5)
  4993. cat conftest.out >&5
  4994. if $GREP 'External.*some_variable' conftest.out > /dev/null; then
  4995. lt_cv_nm_interface="MS dumpbin"
  4996. fi
  4997. rm -f conftest*
  4998. fi
  4999. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
  5000. $as_echo "$lt_cv_nm_interface" >&6; }
  5001. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
  5002. $as_echo_n "checking whether ln -s works... " >&6; }
  5003. LN_S=$as_ln_s
  5004. if test "$LN_S" = "ln -s"; then
  5005. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  5006. $as_echo "yes" >&6; }
  5007. else
  5008. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
  5009. $as_echo "no, using $LN_S" >&6; }
  5010. fi
  5011. # find the maximum length of command line arguments
  5012. { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
  5013. $as_echo_n "checking the maximum length of command line arguments... " >&6; }
  5014. if ${lt_cv_sys_max_cmd_len+:} false; then :
  5015. $as_echo_n "(cached) " >&6
  5016. else
  5017. i=0
  5018. teststring="ABCD"
  5019. case $build_os in
  5020. msdosdjgpp*)
  5021. # On DJGPP, this test can blow up pretty badly due to problems in libc
  5022. # (any single argument exceeding 2000 bytes causes a buffer overrun
  5023. # during glob expansion). Even if it were fixed, the result of this
  5024. # check would be larger than it should be.
  5025. lt_cv_sys_max_cmd_len=12288; # 12K is about right
  5026. ;;
  5027. gnu*)
  5028. # Under GNU Hurd, this test is not required because there is
  5029. # no limit to the length of command line arguments.
  5030. # Libtool will interpret -1 as no limit whatsoever
  5031. lt_cv_sys_max_cmd_len=-1;
  5032. ;;
  5033. cygwin* | mingw* | cegcc*)
  5034. # On Win9x/ME, this test blows up -- it succeeds, but takes
  5035. # about 5 minutes as the teststring grows exponentially.
  5036. # Worse, since 9x/ME are not pre-emptively multitasking,
  5037. # you end up with a "frozen" computer, even though with patience
  5038. # the test eventually succeeds (with a max line length of 256k).
  5039. # Instead, let's just punt: use the minimum linelength reported by
  5040. # all of the supported platforms: 8192 (on NT/2K/XP).
  5041. lt_cv_sys_max_cmd_len=8192;
  5042. ;;
  5043. mint*)
  5044. # On MiNT this can take a long time and run out of memory.
  5045. lt_cv_sys_max_cmd_len=8192;
  5046. ;;
  5047. amigaos*)
  5048. # On AmigaOS with pdksh, this test takes hours, literally.
  5049. # So we just punt and use a minimum line length of 8192.
  5050. lt_cv_sys_max_cmd_len=8192;
  5051. ;;
  5052. netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
  5053. # This has been around since 386BSD, at least. Likely further.
  5054. if test -x /sbin/sysctl; then
  5055. lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
  5056. elif test -x /usr/sbin/sysctl; then
  5057. lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
  5058. else
  5059. lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
  5060. fi
  5061. # And add a safety zone
  5062. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5063. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5064. ;;
  5065. interix*)
  5066. # We know the value 262144 and hardcode it with a safety zone (like BSD)
  5067. lt_cv_sys_max_cmd_len=196608
  5068. ;;
  5069. os2*)
  5070. # The test takes a long time on OS/2.
  5071. lt_cv_sys_max_cmd_len=8192
  5072. ;;
  5073. osf*)
  5074. # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
  5075. # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
  5076. # nice to cause kernel panics so lets avoid the loop below.
  5077. # First set a reasonable default.
  5078. lt_cv_sys_max_cmd_len=16384
  5079. #
  5080. if test -x /sbin/sysconfig; then
  5081. case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
  5082. *1*) lt_cv_sys_max_cmd_len=-1 ;;
  5083. esac
  5084. fi
  5085. ;;
  5086. sco3.2v5*)
  5087. lt_cv_sys_max_cmd_len=102400
  5088. ;;
  5089. sysv5* | sco5v6* | sysv4.2uw2*)
  5090. kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
  5091. if test -n "$kargmax"; then
  5092. lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
  5093. else
  5094. lt_cv_sys_max_cmd_len=32768
  5095. fi
  5096. ;;
  5097. *)
  5098. lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
  5099. if test -n "$lt_cv_sys_max_cmd_len"; then
  5100. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
  5101. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
  5102. else
  5103. # Make teststring a little bigger before we do anything with it.
  5104. # a 1K string should be a reasonable start.
  5105. for i in 1 2 3 4 5 6 7 8 ; do
  5106. teststring=$teststring$teststring
  5107. done
  5108. SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
  5109. # If test is not a shell built-in, we'll probably end up computing a
  5110. # maximum length that is only half of the actual maximum length, but
  5111. # we can't tell.
  5112. while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
  5113. = "X$teststring$teststring"; } >/dev/null 2>&1 &&
  5114. test $i != 17 # 1/2 MB should be enough
  5115. do
  5116. i=`expr $i + 1`
  5117. teststring=$teststring$teststring
  5118. done
  5119. # Only check the string length outside the loop.
  5120. lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
  5121. teststring=
  5122. # Add a significant safety factor because C++ compilers can tack on
  5123. # massive amounts of additional arguments before passing them to the
  5124. # linker. It appears as though 1/2 is a usable value.
  5125. lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
  5126. fi
  5127. ;;
  5128. esac
  5129. fi
  5130. if test -n $lt_cv_sys_max_cmd_len ; then
  5131. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
  5132. $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
  5133. else
  5134. { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
  5135. $as_echo "none" >&6; }
  5136. fi
  5137. max_cmd_len=$lt_cv_sys_max_cmd_len
  5138. : ${CP="cp -f"}
  5139. : ${MV="mv -f"}
  5140. : ${RM="rm -f"}
  5141. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
  5142. $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
  5143. # Try some XSI features
  5144. xsi_shell=no
  5145. ( _lt_dummy="a/b/c"
  5146. test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
  5147. = c,a/b,b/c, \
  5148. && eval 'test $(( 1 + 1 )) -eq 2 \
  5149. && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
  5150. && xsi_shell=yes
  5151. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
  5152. $as_echo "$xsi_shell" >&6; }
  5153. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
  5154. $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
  5155. lt_shell_append=no
  5156. ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
  5157. >/dev/null 2>&1 \
  5158. && lt_shell_append=yes
  5159. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
  5160. $as_echo "$lt_shell_append" >&6; }
  5161. if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
  5162. lt_unset=unset
  5163. else
  5164. lt_unset=false
  5165. fi
  5166. # test EBCDIC or ASCII
  5167. case `echo X|tr X '\101'` in
  5168. A) # ASCII based system
  5169. # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
  5170. lt_SP2NL='tr \040 \012'
  5171. lt_NL2SP='tr \015\012 \040\040'
  5172. ;;
  5173. *) # EBCDIC based system
  5174. lt_SP2NL='tr \100 \n'
  5175. lt_NL2SP='tr \r\n \100\100'
  5176. ;;
  5177. esac
  5178. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
  5179. $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
  5180. if ${lt_cv_to_host_file_cmd+:} false; then :
  5181. $as_echo_n "(cached) " >&6
  5182. else
  5183. case $host in
  5184. *-*-mingw* )
  5185. case $build in
  5186. *-*-mingw* ) # actually msys
  5187. lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
  5188. ;;
  5189. *-*-cygwin* )
  5190. lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
  5191. ;;
  5192. * ) # otherwise, assume *nix
  5193. lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
  5194. ;;
  5195. esac
  5196. ;;
  5197. *-*-cygwin* )
  5198. case $build in
  5199. *-*-mingw* ) # actually msys
  5200. lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
  5201. ;;
  5202. *-*-cygwin* )
  5203. lt_cv_to_host_file_cmd=func_convert_file_noop
  5204. ;;
  5205. * ) # otherwise, assume *nix
  5206. lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
  5207. ;;
  5208. esac
  5209. ;;
  5210. * ) # unhandled hosts (and "normal" native builds)
  5211. lt_cv_to_host_file_cmd=func_convert_file_noop
  5212. ;;
  5213. esac
  5214. fi
  5215. to_host_file_cmd=$lt_cv_to_host_file_cmd
  5216. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
  5217. $as_echo "$lt_cv_to_host_file_cmd" >&6; }
  5218. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
  5219. $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
  5220. if ${lt_cv_to_tool_file_cmd+:} false; then :
  5221. $as_echo_n "(cached) " >&6
  5222. else
  5223. #assume ordinary cross tools, or native build.
  5224. lt_cv_to_tool_file_cmd=func_convert_file_noop
  5225. case $host in
  5226. *-*-mingw* )
  5227. case $build in
  5228. *-*-mingw* ) # actually msys
  5229. lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
  5230. ;;
  5231. esac
  5232. ;;
  5233. esac
  5234. fi
  5235. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  5236. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
  5237. $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
  5238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
  5239. $as_echo_n "checking for $LD option to reload object files... " >&6; }
  5240. if ${lt_cv_ld_reload_flag+:} false; then :
  5241. $as_echo_n "(cached) " >&6
  5242. else
  5243. lt_cv_ld_reload_flag='-r'
  5244. fi
  5245. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
  5246. $as_echo "$lt_cv_ld_reload_flag" >&6; }
  5247. reload_flag=$lt_cv_ld_reload_flag
  5248. case $reload_flag in
  5249. "" | " "*) ;;
  5250. *) reload_flag=" $reload_flag" ;;
  5251. esac
  5252. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5253. case $host_os in
  5254. cygwin* | mingw* | pw32* | cegcc*)
  5255. if test "$GCC" != yes; then
  5256. reload_cmds=false
  5257. fi
  5258. ;;
  5259. darwin*)
  5260. if test "$GCC" = yes; then
  5261. reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
  5262. else
  5263. reload_cmds='$LD$reload_flag -o $output$reload_objs'
  5264. fi
  5265. ;;
  5266. esac
  5267. if test -n "$ac_tool_prefix"; then
  5268. # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
  5269. set dummy ${ac_tool_prefix}objdump; ac_word=$2
  5270. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5271. $as_echo_n "checking for $ac_word... " >&6; }
  5272. if ${ac_cv_prog_OBJDUMP+:} false; then :
  5273. $as_echo_n "(cached) " >&6
  5274. else
  5275. if test -n "$OBJDUMP"; then
  5276. ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
  5277. else
  5278. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5279. for as_dir in $PATH
  5280. do
  5281. IFS=$as_save_IFS
  5282. test -z "$as_dir" && as_dir=.
  5283. for ac_exec_ext in '' $ac_executable_extensions; do
  5284. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5285. ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
  5286. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5287. break 2
  5288. fi
  5289. done
  5290. done
  5291. IFS=$as_save_IFS
  5292. fi
  5293. fi
  5294. OBJDUMP=$ac_cv_prog_OBJDUMP
  5295. if test -n "$OBJDUMP"; then
  5296. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
  5297. $as_echo "$OBJDUMP" >&6; }
  5298. else
  5299. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5300. $as_echo "no" >&6; }
  5301. fi
  5302. fi
  5303. if test -z "$ac_cv_prog_OBJDUMP"; then
  5304. ac_ct_OBJDUMP=$OBJDUMP
  5305. # Extract the first word of "objdump", so it can be a program name with args.
  5306. set dummy objdump; ac_word=$2
  5307. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5308. $as_echo_n "checking for $ac_word... " >&6; }
  5309. if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
  5310. $as_echo_n "(cached) " >&6
  5311. else
  5312. if test -n "$ac_ct_OBJDUMP"; then
  5313. ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
  5314. else
  5315. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5316. for as_dir in $PATH
  5317. do
  5318. IFS=$as_save_IFS
  5319. test -z "$as_dir" && as_dir=.
  5320. for ac_exec_ext in '' $ac_executable_extensions; do
  5321. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5322. ac_cv_prog_ac_ct_OBJDUMP="objdump"
  5323. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5324. break 2
  5325. fi
  5326. done
  5327. done
  5328. IFS=$as_save_IFS
  5329. fi
  5330. fi
  5331. ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
  5332. if test -n "$ac_ct_OBJDUMP"; then
  5333. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
  5334. $as_echo "$ac_ct_OBJDUMP" >&6; }
  5335. else
  5336. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5337. $as_echo "no" >&6; }
  5338. fi
  5339. if test "x$ac_ct_OBJDUMP" = x; then
  5340. OBJDUMP="false"
  5341. else
  5342. case $cross_compiling:$ac_tool_warned in
  5343. yes:)
  5344. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5345. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5346. ac_tool_warned=yes ;;
  5347. esac
  5348. OBJDUMP=$ac_ct_OBJDUMP
  5349. fi
  5350. else
  5351. OBJDUMP="$ac_cv_prog_OBJDUMP"
  5352. fi
  5353. test -z "$OBJDUMP" && OBJDUMP=objdump
  5354. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
  5355. $as_echo_n "checking how to recognize dependent libraries... " >&6; }
  5356. if ${lt_cv_deplibs_check_method+:} false; then :
  5357. $as_echo_n "(cached) " >&6
  5358. else
  5359. lt_cv_file_magic_cmd='$MAGIC_CMD'
  5360. lt_cv_file_magic_test_file=
  5361. lt_cv_deplibs_check_method='unknown'
  5362. # Need to set the preceding variable on all platforms that support
  5363. # interlibrary dependencies.
  5364. # 'none' -- dependencies not supported.
  5365. # `unknown' -- same as none, but documents that we really don't know.
  5366. # 'pass_all' -- all dependencies passed with no checks.
  5367. # 'test_compile' -- check by making test program.
  5368. # 'file_magic [[regex]]' -- check by looking for files in library path
  5369. # which responds to the $file_magic_cmd with a given extended regex.
  5370. # If you have `file' or equivalent on your system and you're not sure
  5371. # whether `pass_all' will *always* work, you probably want this one.
  5372. case $host_os in
  5373. aix[4-9]*)
  5374. lt_cv_deplibs_check_method=pass_all
  5375. ;;
  5376. beos*)
  5377. lt_cv_deplibs_check_method=pass_all
  5378. ;;
  5379. bsdi[45]*)
  5380. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
  5381. lt_cv_file_magic_cmd='/usr/bin/file -L'
  5382. lt_cv_file_magic_test_file=/shlib/libc.so
  5383. ;;
  5384. cygwin*)
  5385. # func_win32_libid is a shell function defined in ltmain.sh
  5386. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5387. lt_cv_file_magic_cmd='func_win32_libid'
  5388. ;;
  5389. mingw* | pw32*)
  5390. # Base MSYS/MinGW do not provide the 'file' command needed by
  5391. # func_win32_libid shell function, so use a weaker test based on 'objdump',
  5392. # unless we find 'file', for example because we are cross-compiling.
  5393. # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
  5394. if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
  5395. lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
  5396. lt_cv_file_magic_cmd='func_win32_libid'
  5397. else
  5398. # Keep this pattern in sync with the one in func_win32_libid.
  5399. lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
  5400. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5401. fi
  5402. ;;
  5403. cegcc*)
  5404. # use the weaker test based on 'objdump'. See mingw*.
  5405. lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
  5406. lt_cv_file_magic_cmd='$OBJDUMP -f'
  5407. ;;
  5408. darwin* | rhapsody*)
  5409. lt_cv_deplibs_check_method=pass_all
  5410. ;;
  5411. freebsd* | dragonfly*)
  5412. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5413. case $host_cpu in
  5414. i*86 )
  5415. # Not sure whether the presence of OpenBSD here was a mistake.
  5416. # Let's accept both of them until this is cleared up.
  5417. lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
  5418. lt_cv_file_magic_cmd=/usr/bin/file
  5419. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
  5420. ;;
  5421. esac
  5422. else
  5423. lt_cv_deplibs_check_method=pass_all
  5424. fi
  5425. ;;
  5426. gnu*)
  5427. lt_cv_deplibs_check_method=pass_all
  5428. ;;
  5429. haiku*)
  5430. lt_cv_deplibs_check_method=pass_all
  5431. ;;
  5432. hpux10.20* | hpux11*)
  5433. lt_cv_file_magic_cmd=/usr/bin/file
  5434. case $host_cpu in
  5435. ia64*)
  5436. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
  5437. lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
  5438. ;;
  5439. hppa*64*)
  5440. 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]'
  5441. lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
  5442. ;;
  5443. *)
  5444. lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
  5445. lt_cv_file_magic_test_file=/usr/lib/libc.sl
  5446. ;;
  5447. esac
  5448. ;;
  5449. interix[3-9]*)
  5450. # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
  5451. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
  5452. ;;
  5453. irix5* | irix6* | nonstopux*)
  5454. case $LD in
  5455. *-32|*"-32 ") libmagic=32-bit;;
  5456. *-n32|*"-n32 ") libmagic=N32;;
  5457. *-64|*"-64 ") libmagic=64-bit;;
  5458. *) libmagic=never-match;;
  5459. esac
  5460. lt_cv_deplibs_check_method=pass_all
  5461. ;;
  5462. # This must be glibc/ELF.
  5463. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  5464. lt_cv_deplibs_check_method=pass_all
  5465. ;;
  5466. netbsd*)
  5467. if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
  5468. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5469. else
  5470. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
  5471. fi
  5472. ;;
  5473. newos6*)
  5474. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
  5475. lt_cv_file_magic_cmd=/usr/bin/file
  5476. lt_cv_file_magic_test_file=/usr/lib/libnls.so
  5477. ;;
  5478. *nto* | *qnx*)
  5479. lt_cv_deplibs_check_method=pass_all
  5480. ;;
  5481. openbsd*)
  5482. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  5483. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
  5484. else
  5485. lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
  5486. fi
  5487. ;;
  5488. osf3* | osf4* | osf5*)
  5489. lt_cv_deplibs_check_method=pass_all
  5490. ;;
  5491. rdos*)
  5492. lt_cv_deplibs_check_method=pass_all
  5493. ;;
  5494. solaris*)
  5495. lt_cv_deplibs_check_method=pass_all
  5496. ;;
  5497. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  5498. lt_cv_deplibs_check_method=pass_all
  5499. ;;
  5500. sysv4 | sysv4.3*)
  5501. case $host_vendor in
  5502. motorola)
  5503. 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]'
  5504. lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
  5505. ;;
  5506. ncr)
  5507. lt_cv_deplibs_check_method=pass_all
  5508. ;;
  5509. sequent)
  5510. lt_cv_file_magic_cmd='/bin/file'
  5511. lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
  5512. ;;
  5513. sni)
  5514. lt_cv_file_magic_cmd='/bin/file'
  5515. lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
  5516. lt_cv_file_magic_test_file=/lib/libc.so
  5517. ;;
  5518. siemens)
  5519. lt_cv_deplibs_check_method=pass_all
  5520. ;;
  5521. pc)
  5522. lt_cv_deplibs_check_method=pass_all
  5523. ;;
  5524. esac
  5525. ;;
  5526. tpf*)
  5527. lt_cv_deplibs_check_method=pass_all
  5528. ;;
  5529. esac
  5530. fi
  5531. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
  5532. $as_echo "$lt_cv_deplibs_check_method" >&6; }
  5533. file_magic_glob=
  5534. want_nocaseglob=no
  5535. if test "$build" = "$host"; then
  5536. case $host_os in
  5537. mingw* | pw32*)
  5538. if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
  5539. want_nocaseglob=yes
  5540. else
  5541. file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
  5542. fi
  5543. ;;
  5544. esac
  5545. fi
  5546. file_magic_cmd=$lt_cv_file_magic_cmd
  5547. deplibs_check_method=$lt_cv_deplibs_check_method
  5548. test -z "$deplibs_check_method" && deplibs_check_method=unknown
  5549. if test -n "$ac_tool_prefix"; then
  5550. # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
  5551. set dummy ${ac_tool_prefix}dlltool; ac_word=$2
  5552. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5553. $as_echo_n "checking for $ac_word... " >&6; }
  5554. if ${ac_cv_prog_DLLTOOL+:} false; then :
  5555. $as_echo_n "(cached) " >&6
  5556. else
  5557. if test -n "$DLLTOOL"; then
  5558. ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
  5559. else
  5560. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5561. for as_dir in $PATH
  5562. do
  5563. IFS=$as_save_IFS
  5564. test -z "$as_dir" && as_dir=.
  5565. for ac_exec_ext in '' $ac_executable_extensions; do
  5566. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5567. ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
  5568. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5569. break 2
  5570. fi
  5571. done
  5572. done
  5573. IFS=$as_save_IFS
  5574. fi
  5575. fi
  5576. DLLTOOL=$ac_cv_prog_DLLTOOL
  5577. if test -n "$DLLTOOL"; then
  5578. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
  5579. $as_echo "$DLLTOOL" >&6; }
  5580. else
  5581. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5582. $as_echo "no" >&6; }
  5583. fi
  5584. fi
  5585. if test -z "$ac_cv_prog_DLLTOOL"; then
  5586. ac_ct_DLLTOOL=$DLLTOOL
  5587. # Extract the first word of "dlltool", so it can be a program name with args.
  5588. set dummy dlltool; ac_word=$2
  5589. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5590. $as_echo_n "checking for $ac_word... " >&6; }
  5591. if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
  5592. $as_echo_n "(cached) " >&6
  5593. else
  5594. if test -n "$ac_ct_DLLTOOL"; then
  5595. ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
  5596. else
  5597. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5598. for as_dir in $PATH
  5599. do
  5600. IFS=$as_save_IFS
  5601. test -z "$as_dir" && as_dir=.
  5602. for ac_exec_ext in '' $ac_executable_extensions; do
  5603. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5604. ac_cv_prog_ac_ct_DLLTOOL="dlltool"
  5605. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5606. break 2
  5607. fi
  5608. done
  5609. done
  5610. IFS=$as_save_IFS
  5611. fi
  5612. fi
  5613. ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
  5614. if test -n "$ac_ct_DLLTOOL"; then
  5615. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
  5616. $as_echo "$ac_ct_DLLTOOL" >&6; }
  5617. else
  5618. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5619. $as_echo "no" >&6; }
  5620. fi
  5621. if test "x$ac_ct_DLLTOOL" = x; then
  5622. DLLTOOL="false"
  5623. else
  5624. case $cross_compiling:$ac_tool_warned in
  5625. yes:)
  5626. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5627. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5628. ac_tool_warned=yes ;;
  5629. esac
  5630. DLLTOOL=$ac_ct_DLLTOOL
  5631. fi
  5632. else
  5633. DLLTOOL="$ac_cv_prog_DLLTOOL"
  5634. fi
  5635. test -z "$DLLTOOL" && DLLTOOL=dlltool
  5636. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
  5637. $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
  5638. if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
  5639. $as_echo_n "(cached) " >&6
  5640. else
  5641. lt_cv_sharedlib_from_linklib_cmd='unknown'
  5642. case $host_os in
  5643. cygwin* | mingw* | pw32* | cegcc*)
  5644. # two different shell functions defined in ltmain.sh
  5645. # decide which to use based on capabilities of $DLLTOOL
  5646. case `$DLLTOOL --help 2>&1` in
  5647. *--identify-strict*)
  5648. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
  5649. ;;
  5650. *)
  5651. lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
  5652. ;;
  5653. esac
  5654. ;;
  5655. *)
  5656. # fallback: assume linklib IS sharedlib
  5657. lt_cv_sharedlib_from_linklib_cmd="$ECHO"
  5658. ;;
  5659. esac
  5660. fi
  5661. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
  5662. $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
  5663. sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
  5664. test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
  5665. if test -n "$ac_tool_prefix"; then
  5666. for ac_prog in ar
  5667. do
  5668. # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
  5669. set dummy $ac_tool_prefix$ac_prog; ac_word=$2
  5670. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5671. $as_echo_n "checking for $ac_word... " >&6; }
  5672. if ${ac_cv_prog_AR+:} false; then :
  5673. $as_echo_n "(cached) " >&6
  5674. else
  5675. if test -n "$AR"; then
  5676. ac_cv_prog_AR="$AR" # Let the user override the test.
  5677. else
  5678. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5679. for as_dir in $PATH
  5680. do
  5681. IFS=$as_save_IFS
  5682. test -z "$as_dir" && as_dir=.
  5683. for ac_exec_ext in '' $ac_executable_extensions; do
  5684. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5685. ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
  5686. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5687. break 2
  5688. fi
  5689. done
  5690. done
  5691. IFS=$as_save_IFS
  5692. fi
  5693. fi
  5694. AR=$ac_cv_prog_AR
  5695. if test -n "$AR"; then
  5696. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
  5697. $as_echo "$AR" >&6; }
  5698. else
  5699. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5700. $as_echo "no" >&6; }
  5701. fi
  5702. test -n "$AR" && break
  5703. done
  5704. fi
  5705. if test -z "$AR"; then
  5706. ac_ct_AR=$AR
  5707. for ac_prog in ar
  5708. do
  5709. # Extract the first word of "$ac_prog", so it can be a program name with args.
  5710. set dummy $ac_prog; ac_word=$2
  5711. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5712. $as_echo_n "checking for $ac_word... " >&6; }
  5713. if ${ac_cv_prog_ac_ct_AR+:} false; then :
  5714. $as_echo_n "(cached) " >&6
  5715. else
  5716. if test -n "$ac_ct_AR"; then
  5717. ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
  5718. else
  5719. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5720. for as_dir in $PATH
  5721. do
  5722. IFS=$as_save_IFS
  5723. test -z "$as_dir" && as_dir=.
  5724. for ac_exec_ext in '' $ac_executable_extensions; do
  5725. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5726. ac_cv_prog_ac_ct_AR="$ac_prog"
  5727. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5728. break 2
  5729. fi
  5730. done
  5731. done
  5732. IFS=$as_save_IFS
  5733. fi
  5734. fi
  5735. ac_ct_AR=$ac_cv_prog_ac_ct_AR
  5736. if test -n "$ac_ct_AR"; then
  5737. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
  5738. $as_echo "$ac_ct_AR" >&6; }
  5739. else
  5740. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5741. $as_echo "no" >&6; }
  5742. fi
  5743. test -n "$ac_ct_AR" && break
  5744. done
  5745. if test "x$ac_ct_AR" = x; then
  5746. AR="false"
  5747. else
  5748. case $cross_compiling:$ac_tool_warned in
  5749. yes:)
  5750. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5751. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5752. ac_tool_warned=yes ;;
  5753. esac
  5754. AR=$ac_ct_AR
  5755. fi
  5756. fi
  5757. : ${AR=ar}
  5758. : ${AR_FLAGS=cru}
  5759. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
  5760. $as_echo_n "checking for archiver @FILE support... " >&6; }
  5761. if ${lt_cv_ar_at_file+:} false; then :
  5762. $as_echo_n "(cached) " >&6
  5763. else
  5764. lt_cv_ar_at_file=no
  5765. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  5766. /* end confdefs.h. */
  5767. int
  5768. main ()
  5769. {
  5770. ;
  5771. return 0;
  5772. }
  5773. _ACEOF
  5774. if ac_fn_c_try_compile "$LINENO"; then :
  5775. echo conftest.$ac_objext > conftest.lst
  5776. lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
  5777. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5778. (eval $lt_ar_try) 2>&5
  5779. ac_status=$?
  5780. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5781. test $ac_status = 0; }
  5782. if test "$ac_status" -eq 0; then
  5783. # Ensure the archiver fails upon bogus file names.
  5784. rm -f conftest.$ac_objext libconftest.a
  5785. { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
  5786. (eval $lt_ar_try) 2>&5
  5787. ac_status=$?
  5788. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  5789. test $ac_status = 0; }
  5790. if test "$ac_status" -ne 0; then
  5791. lt_cv_ar_at_file=@
  5792. fi
  5793. fi
  5794. rm -f conftest.* libconftest.a
  5795. fi
  5796. rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
  5797. fi
  5798. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
  5799. $as_echo "$lt_cv_ar_at_file" >&6; }
  5800. if test "x$lt_cv_ar_at_file" = xno; then
  5801. archiver_list_spec=
  5802. else
  5803. archiver_list_spec=$lt_cv_ar_at_file
  5804. fi
  5805. if test -n "$ac_tool_prefix"; then
  5806. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  5807. set dummy ${ac_tool_prefix}strip; ac_word=$2
  5808. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5809. $as_echo_n "checking for $ac_word... " >&6; }
  5810. if ${ac_cv_prog_STRIP+:} false; then :
  5811. $as_echo_n "(cached) " >&6
  5812. else
  5813. if test -n "$STRIP"; then
  5814. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  5815. else
  5816. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5817. for as_dir in $PATH
  5818. do
  5819. IFS=$as_save_IFS
  5820. test -z "$as_dir" && as_dir=.
  5821. for ac_exec_ext in '' $ac_executable_extensions; do
  5822. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5823. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  5824. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5825. break 2
  5826. fi
  5827. done
  5828. done
  5829. IFS=$as_save_IFS
  5830. fi
  5831. fi
  5832. STRIP=$ac_cv_prog_STRIP
  5833. if test -n "$STRIP"; then
  5834. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  5835. $as_echo "$STRIP" >&6; }
  5836. else
  5837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5838. $as_echo "no" >&6; }
  5839. fi
  5840. fi
  5841. if test -z "$ac_cv_prog_STRIP"; then
  5842. ac_ct_STRIP=$STRIP
  5843. # Extract the first word of "strip", so it can be a program name with args.
  5844. set dummy strip; ac_word=$2
  5845. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5846. $as_echo_n "checking for $ac_word... " >&6; }
  5847. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  5848. $as_echo_n "(cached) " >&6
  5849. else
  5850. if test -n "$ac_ct_STRIP"; then
  5851. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  5852. else
  5853. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5854. for as_dir in $PATH
  5855. do
  5856. IFS=$as_save_IFS
  5857. test -z "$as_dir" && as_dir=.
  5858. for ac_exec_ext in '' $ac_executable_extensions; do
  5859. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5860. ac_cv_prog_ac_ct_STRIP="strip"
  5861. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5862. break 2
  5863. fi
  5864. done
  5865. done
  5866. IFS=$as_save_IFS
  5867. fi
  5868. fi
  5869. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  5870. if test -n "$ac_ct_STRIP"; then
  5871. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  5872. $as_echo "$ac_ct_STRIP" >&6; }
  5873. else
  5874. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5875. $as_echo "no" >&6; }
  5876. fi
  5877. if test "x$ac_ct_STRIP" = x; then
  5878. STRIP=":"
  5879. else
  5880. case $cross_compiling:$ac_tool_warned in
  5881. yes:)
  5882. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5883. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5884. ac_tool_warned=yes ;;
  5885. esac
  5886. STRIP=$ac_ct_STRIP
  5887. fi
  5888. else
  5889. STRIP="$ac_cv_prog_STRIP"
  5890. fi
  5891. test -z "$STRIP" && STRIP=:
  5892. if test -n "$ac_tool_prefix"; then
  5893. # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
  5894. set dummy ${ac_tool_prefix}ranlib; ac_word=$2
  5895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5896. $as_echo_n "checking for $ac_word... " >&6; }
  5897. if ${ac_cv_prog_RANLIB+:} false; then :
  5898. $as_echo_n "(cached) " >&6
  5899. else
  5900. if test -n "$RANLIB"; then
  5901. ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
  5902. else
  5903. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5904. for as_dir in $PATH
  5905. do
  5906. IFS=$as_save_IFS
  5907. test -z "$as_dir" && as_dir=.
  5908. for ac_exec_ext in '' $ac_executable_extensions; do
  5909. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5910. ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
  5911. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5912. break 2
  5913. fi
  5914. done
  5915. done
  5916. IFS=$as_save_IFS
  5917. fi
  5918. fi
  5919. RANLIB=$ac_cv_prog_RANLIB
  5920. if test -n "$RANLIB"; then
  5921. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
  5922. $as_echo "$RANLIB" >&6; }
  5923. else
  5924. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5925. $as_echo "no" >&6; }
  5926. fi
  5927. fi
  5928. if test -z "$ac_cv_prog_RANLIB"; then
  5929. ac_ct_RANLIB=$RANLIB
  5930. # Extract the first word of "ranlib", so it can be a program name with args.
  5931. set dummy ranlib; ac_word=$2
  5932. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  5933. $as_echo_n "checking for $ac_word... " >&6; }
  5934. if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
  5935. $as_echo_n "(cached) " >&6
  5936. else
  5937. if test -n "$ac_ct_RANLIB"; then
  5938. ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
  5939. else
  5940. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  5941. for as_dir in $PATH
  5942. do
  5943. IFS=$as_save_IFS
  5944. test -z "$as_dir" && as_dir=.
  5945. for ac_exec_ext in '' $ac_executable_extensions; do
  5946. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  5947. ac_cv_prog_ac_ct_RANLIB="ranlib"
  5948. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  5949. break 2
  5950. fi
  5951. done
  5952. done
  5953. IFS=$as_save_IFS
  5954. fi
  5955. fi
  5956. ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
  5957. if test -n "$ac_ct_RANLIB"; then
  5958. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
  5959. $as_echo "$ac_ct_RANLIB" >&6; }
  5960. else
  5961. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  5962. $as_echo "no" >&6; }
  5963. fi
  5964. if test "x$ac_ct_RANLIB" = x; then
  5965. RANLIB=":"
  5966. else
  5967. case $cross_compiling:$ac_tool_warned in
  5968. yes:)
  5969. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  5970. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  5971. ac_tool_warned=yes ;;
  5972. esac
  5973. RANLIB=$ac_ct_RANLIB
  5974. fi
  5975. else
  5976. RANLIB="$ac_cv_prog_RANLIB"
  5977. fi
  5978. test -z "$RANLIB" && RANLIB=:
  5979. # Determine commands to create old-style static archives.
  5980. old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
  5981. old_postinstall_cmds='chmod 644 $oldlib'
  5982. old_postuninstall_cmds=
  5983. if test -n "$RANLIB"; then
  5984. case $host_os in
  5985. openbsd*)
  5986. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
  5987. ;;
  5988. *)
  5989. old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
  5990. ;;
  5991. esac
  5992. old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
  5993. fi
  5994. case $host_os in
  5995. darwin*)
  5996. lock_old_archive_extraction=yes ;;
  5997. *)
  5998. lock_old_archive_extraction=no ;;
  5999. esac
  6000. for ac_prog in gawk mawk nawk awk
  6001. do
  6002. # Extract the first word of "$ac_prog", so it can be a program name with args.
  6003. set dummy $ac_prog; ac_word=$2
  6004. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6005. $as_echo_n "checking for $ac_word... " >&6; }
  6006. if ${ac_cv_prog_AWK+:} false; then :
  6007. $as_echo_n "(cached) " >&6
  6008. else
  6009. if test -n "$AWK"; then
  6010. ac_cv_prog_AWK="$AWK" # Let the user override the test.
  6011. else
  6012. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6013. for as_dir in $PATH
  6014. do
  6015. IFS=$as_save_IFS
  6016. test -z "$as_dir" && as_dir=.
  6017. for ac_exec_ext in '' $ac_executable_extensions; do
  6018. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6019. ac_cv_prog_AWK="$ac_prog"
  6020. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6021. break 2
  6022. fi
  6023. done
  6024. done
  6025. IFS=$as_save_IFS
  6026. fi
  6027. fi
  6028. AWK=$ac_cv_prog_AWK
  6029. if test -n "$AWK"; then
  6030. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
  6031. $as_echo "$AWK" >&6; }
  6032. else
  6033. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6034. $as_echo "no" >&6; }
  6035. fi
  6036. test -n "$AWK" && break
  6037. done
  6038. # If no C compiler was specified, use CC.
  6039. LTCC=${LTCC-"$CC"}
  6040. # If no C compiler flags were specified, use CFLAGS.
  6041. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  6042. # Allow CC to be a program name with arguments.
  6043. compiler=$CC
  6044. # Check for command to grab the raw symbol name followed by C symbol from nm.
  6045. { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
  6046. $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
  6047. if ${lt_cv_sys_global_symbol_pipe+:} false; then :
  6048. $as_echo_n "(cached) " >&6
  6049. else
  6050. # These are sane defaults that work on at least a few old systems.
  6051. # [They come from Ultrix. What could be older than Ultrix?!! ;)]
  6052. # Character class describing NM global symbol codes.
  6053. symcode='[BCDEGRST]'
  6054. # Regexp to match symbols that can be accessed directly from C.
  6055. sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
  6056. # Define system-specific variables.
  6057. case $host_os in
  6058. aix*)
  6059. symcode='[BCDT]'
  6060. ;;
  6061. cygwin* | mingw* | pw32* | cegcc*)
  6062. symcode='[ABCDGISTW]'
  6063. ;;
  6064. hpux*)
  6065. if test "$host_cpu" = ia64; then
  6066. symcode='[ABCDEGRST]'
  6067. fi
  6068. ;;
  6069. irix* | nonstopux*)
  6070. symcode='[BCDEGRST]'
  6071. ;;
  6072. osf*)
  6073. symcode='[BCDEGQRST]'
  6074. ;;
  6075. solaris*)
  6076. symcode='[BDRT]'
  6077. ;;
  6078. sco3.2v5*)
  6079. symcode='[DT]'
  6080. ;;
  6081. sysv4.2uw2*)
  6082. symcode='[DT]'
  6083. ;;
  6084. sysv5* | sco5v6* | unixware* | OpenUNIX*)
  6085. symcode='[ABDT]'
  6086. ;;
  6087. sysv4)
  6088. symcode='[DFNSTU]'
  6089. ;;
  6090. esac
  6091. # If we're using GNU nm, then use its standard symbol codes.
  6092. case `$NM -V 2>&1` in
  6093. *GNU* | *'with BFD'*)
  6094. symcode='[ABCDGIRSTW]' ;;
  6095. esac
  6096. # Transform an extracted symbol line into a proper C declaration.
  6097. # Some systems (esp. on ia64) link data and code symbols differently,
  6098. # so use this general approach.
  6099. lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
  6100. # Transform an extracted symbol line into symbol name and symbol address
  6101. lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
  6102. 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'"
  6103. # Handle CRLF in mingw tool chain
  6104. opt_cr=
  6105. case $build_os in
  6106. mingw*)
  6107. opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
  6108. ;;
  6109. esac
  6110. # Try without a prefix underscore, then with it.
  6111. for ac_symprfx in "" "_"; do
  6112. # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
  6113. symxfrm="\\1 $ac_symprfx\\2 \\2"
  6114. # Write the raw and C identifiers.
  6115. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6116. # Fake it for dumpbin and say T for any non-static function
  6117. # and D for any global variable.
  6118. # Also find C++ and __fastcall symbols from MSVC++,
  6119. # which start with @ or ?.
  6120. lt_cv_sys_global_symbol_pipe="$AWK '"\
  6121. " {last_section=section; section=\$ 3};"\
  6122. " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
  6123. " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
  6124. " \$ 0!~/External *\|/{next};"\
  6125. " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
  6126. " {if(hide[section]) next};"\
  6127. " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
  6128. " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
  6129. " s[1]~/^[@?]/{print s[1], s[1]; next};"\
  6130. " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
  6131. " ' prfx=^$ac_symprfx"
  6132. else
  6133. lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
  6134. fi
  6135. lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
  6136. # Check to see that the pipe works correctly.
  6137. pipe_works=no
  6138. rm -f conftest*
  6139. cat > conftest.$ac_ext <<_LT_EOF
  6140. #ifdef __cplusplus
  6141. extern "C" {
  6142. #endif
  6143. char nm_test_var;
  6144. void nm_test_func(void);
  6145. void nm_test_func(void){}
  6146. #ifdef __cplusplus
  6147. }
  6148. #endif
  6149. int main(){nm_test_var='a';nm_test_func();return(0);}
  6150. _LT_EOF
  6151. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6152. (eval $ac_compile) 2>&5
  6153. ac_status=$?
  6154. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6155. test $ac_status = 0; }; then
  6156. # Now try to grab the symbols.
  6157. nlist=conftest.nm
  6158. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
  6159. (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
  6160. ac_status=$?
  6161. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6162. test $ac_status = 0; } && test -s "$nlist"; then
  6163. # Try sorting and uniquifying the output.
  6164. if sort "$nlist" | uniq > "$nlist"T; then
  6165. mv -f "$nlist"T "$nlist"
  6166. else
  6167. rm -f "$nlist"T
  6168. fi
  6169. # Make sure that we snagged all the symbols we need.
  6170. if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
  6171. if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
  6172. cat <<_LT_EOF > conftest.$ac_ext
  6173. /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
  6174. #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
  6175. /* DATA imports from DLLs on WIN32 con't be const, because runtime
  6176. relocations are performed -- see ld's documentation on pseudo-relocs. */
  6177. # define LT_DLSYM_CONST
  6178. #elif defined(__osf__)
  6179. /* This system does not cope well with relocations in const data. */
  6180. # define LT_DLSYM_CONST
  6181. #else
  6182. # define LT_DLSYM_CONST const
  6183. #endif
  6184. #ifdef __cplusplus
  6185. extern "C" {
  6186. #endif
  6187. _LT_EOF
  6188. # Now generate the symbol file.
  6189. eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
  6190. cat <<_LT_EOF >> conftest.$ac_ext
  6191. /* The mapping between symbol names and symbols. */
  6192. LT_DLSYM_CONST struct {
  6193. const char *name;
  6194. void *address;
  6195. }
  6196. lt__PROGRAM__LTX_preloaded_symbols[] =
  6197. {
  6198. { "@PROGRAM@", (void *) 0 },
  6199. _LT_EOF
  6200. $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
  6201. cat <<\_LT_EOF >> conftest.$ac_ext
  6202. {0, (void *) 0}
  6203. };
  6204. /* This works around a problem in FreeBSD linker */
  6205. #ifdef FREEBSD_WORKAROUND
  6206. static const void *lt_preloaded_setup() {
  6207. return lt__PROGRAM__LTX_preloaded_symbols;
  6208. }
  6209. #endif
  6210. #ifdef __cplusplus
  6211. }
  6212. #endif
  6213. _LT_EOF
  6214. # Now try linking the two files.
  6215. mv conftest.$ac_objext conftstm.$ac_objext
  6216. lt_globsym_save_LIBS=$LIBS
  6217. lt_globsym_save_CFLAGS=$CFLAGS
  6218. LIBS="conftstm.$ac_objext"
  6219. CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
  6220. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  6221. (eval $ac_link) 2>&5
  6222. ac_status=$?
  6223. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6224. test $ac_status = 0; } && test -s conftest${ac_exeext}; then
  6225. pipe_works=yes
  6226. fi
  6227. LIBS=$lt_globsym_save_LIBS
  6228. CFLAGS=$lt_globsym_save_CFLAGS
  6229. else
  6230. echo "cannot find nm_test_func in $nlist" >&5
  6231. fi
  6232. else
  6233. echo "cannot find nm_test_var in $nlist" >&5
  6234. fi
  6235. else
  6236. echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
  6237. fi
  6238. else
  6239. echo "$progname: failed program was:" >&5
  6240. cat conftest.$ac_ext >&5
  6241. fi
  6242. rm -rf conftest* conftst*
  6243. # Do not use the global_symbol_pipe unless it works.
  6244. if test "$pipe_works" = yes; then
  6245. break
  6246. else
  6247. lt_cv_sys_global_symbol_pipe=
  6248. fi
  6249. done
  6250. fi
  6251. if test -z "$lt_cv_sys_global_symbol_pipe"; then
  6252. lt_cv_sys_global_symbol_to_cdecl=
  6253. fi
  6254. if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
  6255. { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
  6256. $as_echo "failed" >&6; }
  6257. else
  6258. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
  6259. $as_echo "ok" >&6; }
  6260. fi
  6261. # Response file support.
  6262. if test "$lt_cv_nm_interface" = "MS dumpbin"; then
  6263. nm_file_list_spec='@'
  6264. elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
  6265. nm_file_list_spec='@'
  6266. fi
  6267. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
  6268. $as_echo_n "checking for sysroot... " >&6; }
  6269. # Check whether --with-sysroot was given.
  6270. if test "${with_sysroot+set}" = set; then :
  6271. withval=$with_sysroot;
  6272. else
  6273. with_sysroot=no
  6274. fi
  6275. lt_sysroot=
  6276. case ${with_sysroot} in #(
  6277. yes)
  6278. if test "$GCC" = yes; then
  6279. lt_sysroot=`$CC --print-sysroot 2>/dev/null`
  6280. fi
  6281. ;; #(
  6282. /*)
  6283. lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
  6284. ;; #(
  6285. no|'')
  6286. ;; #(
  6287. *)
  6288. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
  6289. $as_echo "${with_sysroot}" >&6; }
  6290. as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
  6291. ;;
  6292. esac
  6293. { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
  6294. $as_echo "${lt_sysroot:-no}" >&6; }
  6295. # Check whether --enable-libtool-lock was given.
  6296. if test "${enable_libtool_lock+set}" = set; then :
  6297. enableval=$enable_libtool_lock;
  6298. fi
  6299. test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
  6300. # Some flags need to be propagated to the compiler or linker for good
  6301. # libtool support.
  6302. case $host in
  6303. ia64-*-hpux*)
  6304. # Find out which ABI we are using.
  6305. echo 'int i;' > conftest.$ac_ext
  6306. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6307. (eval $ac_compile) 2>&5
  6308. ac_status=$?
  6309. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6310. test $ac_status = 0; }; then
  6311. case `/usr/bin/file conftest.$ac_objext` in
  6312. *ELF-32*)
  6313. HPUX_IA64_MODE="32"
  6314. ;;
  6315. *ELF-64*)
  6316. HPUX_IA64_MODE="64"
  6317. ;;
  6318. esac
  6319. fi
  6320. rm -rf conftest*
  6321. ;;
  6322. *-*-irix6*)
  6323. # Find out which ABI we are using.
  6324. echo '#line '$LINENO' "configure"' > conftest.$ac_ext
  6325. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6326. (eval $ac_compile) 2>&5
  6327. ac_status=$?
  6328. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6329. test $ac_status = 0; }; then
  6330. if test "$lt_cv_prog_gnu_ld" = yes; then
  6331. case `/usr/bin/file conftest.$ac_objext` in
  6332. *32-bit*)
  6333. LD="${LD-ld} -melf32bsmip"
  6334. ;;
  6335. *N32*)
  6336. LD="${LD-ld} -melf32bmipn32"
  6337. ;;
  6338. *64-bit*)
  6339. LD="${LD-ld} -melf64bmip"
  6340. ;;
  6341. esac
  6342. else
  6343. case `/usr/bin/file conftest.$ac_objext` in
  6344. *32-bit*)
  6345. LD="${LD-ld} -32"
  6346. ;;
  6347. *N32*)
  6348. LD="${LD-ld} -n32"
  6349. ;;
  6350. *64-bit*)
  6351. LD="${LD-ld} -64"
  6352. ;;
  6353. esac
  6354. fi
  6355. fi
  6356. rm -rf conftest*
  6357. ;;
  6358. x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \
  6359. s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
  6360. # Find out which ABI we are using.
  6361. echo 'int i;' > conftest.$ac_ext
  6362. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6363. (eval $ac_compile) 2>&5
  6364. ac_status=$?
  6365. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6366. test $ac_status = 0; }; then
  6367. case `/usr/bin/file conftest.o` in
  6368. *32-bit*)
  6369. case $host in
  6370. x86_64-*kfreebsd*-gnu)
  6371. LD="${LD-ld} -m elf_i386_fbsd"
  6372. ;;
  6373. x86_64-*linux*)
  6374. LD="${LD-ld} -m elf_i386"
  6375. ;;
  6376. ppc64-*linux*|powerpc64-*linux*)
  6377. LD="${LD-ld} -m elf32ppclinux"
  6378. ;;
  6379. s390x-*linux*)
  6380. LD="${LD-ld} -m elf_s390"
  6381. ;;
  6382. sparc64-*linux*)
  6383. LD="${LD-ld} -m elf32_sparc"
  6384. ;;
  6385. esac
  6386. ;;
  6387. *64-bit*)
  6388. case $host in
  6389. x86_64-*kfreebsd*-gnu)
  6390. LD="${LD-ld} -m elf_x86_64_fbsd"
  6391. ;;
  6392. x86_64-*linux*)
  6393. LD="${LD-ld} -m elf_x86_64"
  6394. ;;
  6395. ppc*-*linux*|powerpc*-*linux*)
  6396. LD="${LD-ld} -m elf64ppc"
  6397. ;;
  6398. s390*-*linux*|s390*-*tpf*)
  6399. LD="${LD-ld} -m elf64_s390"
  6400. ;;
  6401. sparc*-*linux*)
  6402. LD="${LD-ld} -m elf64_sparc"
  6403. ;;
  6404. esac
  6405. ;;
  6406. esac
  6407. fi
  6408. rm -rf conftest*
  6409. ;;
  6410. *-*-sco3.2v5*)
  6411. # On SCO OpenServer 5, we need -belf to get full-featured binaries.
  6412. SAVE_CFLAGS="$CFLAGS"
  6413. CFLAGS="$CFLAGS -belf"
  6414. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
  6415. $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
  6416. if ${lt_cv_cc_needs_belf+:} false; then :
  6417. $as_echo_n "(cached) " >&6
  6418. else
  6419. ac_ext=c
  6420. ac_cpp='$CPP $CPPFLAGS'
  6421. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6422. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6423. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6424. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  6425. /* end confdefs.h. */
  6426. int
  6427. main ()
  6428. {
  6429. ;
  6430. return 0;
  6431. }
  6432. _ACEOF
  6433. if ac_fn_c_try_link "$LINENO"; then :
  6434. lt_cv_cc_needs_belf=yes
  6435. else
  6436. lt_cv_cc_needs_belf=no
  6437. fi
  6438. rm -f core conftest.err conftest.$ac_objext \
  6439. conftest$ac_exeext conftest.$ac_ext
  6440. ac_ext=c
  6441. ac_cpp='$CPP $CPPFLAGS'
  6442. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  6443. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  6444. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  6445. fi
  6446. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
  6447. $as_echo "$lt_cv_cc_needs_belf" >&6; }
  6448. if test x"$lt_cv_cc_needs_belf" != x"yes"; then
  6449. # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
  6450. CFLAGS="$SAVE_CFLAGS"
  6451. fi
  6452. ;;
  6453. *-*solaris*)
  6454. # Find out which ABI we are using.
  6455. echo 'int i;' > conftest.$ac_ext
  6456. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  6457. (eval $ac_compile) 2>&5
  6458. ac_status=$?
  6459. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  6460. test $ac_status = 0; }; then
  6461. case `/usr/bin/file conftest.o` in
  6462. *64-bit*)
  6463. case $lt_cv_prog_gnu_ld in
  6464. yes*)
  6465. case $host in
  6466. i?86-*-solaris*)
  6467. LD="${LD-ld} -m elf_x86_64"
  6468. ;;
  6469. sparc*-*-solaris*)
  6470. LD="${LD-ld} -m elf64_sparc"
  6471. ;;
  6472. esac
  6473. # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
  6474. if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
  6475. LD="${LD-ld}_sol2"
  6476. fi
  6477. ;;
  6478. *)
  6479. if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
  6480. LD="${LD-ld} -64"
  6481. fi
  6482. ;;
  6483. esac
  6484. ;;
  6485. esac
  6486. fi
  6487. rm -rf conftest*
  6488. ;;
  6489. esac
  6490. need_locks="$enable_libtool_lock"
  6491. if test -n "$ac_tool_prefix"; then
  6492. # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
  6493. set dummy ${ac_tool_prefix}mt; ac_word=$2
  6494. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6495. $as_echo_n "checking for $ac_word... " >&6; }
  6496. if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
  6497. $as_echo_n "(cached) " >&6
  6498. else
  6499. if test -n "$MANIFEST_TOOL"; then
  6500. ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
  6501. else
  6502. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6503. for as_dir in $PATH
  6504. do
  6505. IFS=$as_save_IFS
  6506. test -z "$as_dir" && as_dir=.
  6507. for ac_exec_ext in '' $ac_executable_extensions; do
  6508. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6509. ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
  6510. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6511. break 2
  6512. fi
  6513. done
  6514. done
  6515. IFS=$as_save_IFS
  6516. fi
  6517. fi
  6518. MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
  6519. if test -n "$MANIFEST_TOOL"; then
  6520. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
  6521. $as_echo "$MANIFEST_TOOL" >&6; }
  6522. else
  6523. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6524. $as_echo "no" >&6; }
  6525. fi
  6526. fi
  6527. if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
  6528. ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
  6529. # Extract the first word of "mt", so it can be a program name with args.
  6530. set dummy mt; ac_word=$2
  6531. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6532. $as_echo_n "checking for $ac_word... " >&6; }
  6533. if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
  6534. $as_echo_n "(cached) " >&6
  6535. else
  6536. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6537. ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
  6538. else
  6539. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6540. for as_dir in $PATH
  6541. do
  6542. IFS=$as_save_IFS
  6543. test -z "$as_dir" && as_dir=.
  6544. for ac_exec_ext in '' $ac_executable_extensions; do
  6545. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6546. ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
  6547. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6548. break 2
  6549. fi
  6550. done
  6551. done
  6552. IFS=$as_save_IFS
  6553. fi
  6554. fi
  6555. ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
  6556. if test -n "$ac_ct_MANIFEST_TOOL"; then
  6557. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
  6558. $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
  6559. else
  6560. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6561. $as_echo "no" >&6; }
  6562. fi
  6563. if test "x$ac_ct_MANIFEST_TOOL" = x; then
  6564. MANIFEST_TOOL=":"
  6565. else
  6566. case $cross_compiling:$ac_tool_warned in
  6567. yes:)
  6568. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6569. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6570. ac_tool_warned=yes ;;
  6571. esac
  6572. MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
  6573. fi
  6574. else
  6575. MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
  6576. fi
  6577. test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
  6578. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
  6579. $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
  6580. if ${lt_cv_path_mainfest_tool+:} false; then :
  6581. $as_echo_n "(cached) " >&6
  6582. else
  6583. lt_cv_path_mainfest_tool=no
  6584. echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
  6585. $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
  6586. cat conftest.err >&5
  6587. if $GREP 'Manifest Tool' conftest.out > /dev/null; then
  6588. lt_cv_path_mainfest_tool=yes
  6589. fi
  6590. rm -f conftest*
  6591. fi
  6592. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
  6593. $as_echo "$lt_cv_path_mainfest_tool" >&6; }
  6594. if test "x$lt_cv_path_mainfest_tool" != xyes; then
  6595. MANIFEST_TOOL=:
  6596. fi
  6597. case $host_os in
  6598. rhapsody* | darwin*)
  6599. if test -n "$ac_tool_prefix"; then
  6600. # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
  6601. set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
  6602. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6603. $as_echo_n "checking for $ac_word... " >&6; }
  6604. if ${ac_cv_prog_DSYMUTIL+:} false; then :
  6605. $as_echo_n "(cached) " >&6
  6606. else
  6607. if test -n "$DSYMUTIL"; then
  6608. ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
  6609. else
  6610. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6611. for as_dir in $PATH
  6612. do
  6613. IFS=$as_save_IFS
  6614. test -z "$as_dir" && as_dir=.
  6615. for ac_exec_ext in '' $ac_executable_extensions; do
  6616. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6617. ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
  6618. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6619. break 2
  6620. fi
  6621. done
  6622. done
  6623. IFS=$as_save_IFS
  6624. fi
  6625. fi
  6626. DSYMUTIL=$ac_cv_prog_DSYMUTIL
  6627. if test -n "$DSYMUTIL"; then
  6628. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
  6629. $as_echo "$DSYMUTIL" >&6; }
  6630. else
  6631. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6632. $as_echo "no" >&6; }
  6633. fi
  6634. fi
  6635. if test -z "$ac_cv_prog_DSYMUTIL"; then
  6636. ac_ct_DSYMUTIL=$DSYMUTIL
  6637. # Extract the first word of "dsymutil", so it can be a program name with args.
  6638. set dummy dsymutil; ac_word=$2
  6639. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6640. $as_echo_n "checking for $ac_word... " >&6; }
  6641. if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
  6642. $as_echo_n "(cached) " >&6
  6643. else
  6644. if test -n "$ac_ct_DSYMUTIL"; then
  6645. ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
  6646. else
  6647. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6648. for as_dir in $PATH
  6649. do
  6650. IFS=$as_save_IFS
  6651. test -z "$as_dir" && as_dir=.
  6652. for ac_exec_ext in '' $ac_executable_extensions; do
  6653. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6654. ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
  6655. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6656. break 2
  6657. fi
  6658. done
  6659. done
  6660. IFS=$as_save_IFS
  6661. fi
  6662. fi
  6663. ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
  6664. if test -n "$ac_ct_DSYMUTIL"; then
  6665. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
  6666. $as_echo "$ac_ct_DSYMUTIL" >&6; }
  6667. else
  6668. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6669. $as_echo "no" >&6; }
  6670. fi
  6671. if test "x$ac_ct_DSYMUTIL" = x; then
  6672. DSYMUTIL=":"
  6673. else
  6674. case $cross_compiling:$ac_tool_warned in
  6675. yes:)
  6676. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6677. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6678. ac_tool_warned=yes ;;
  6679. esac
  6680. DSYMUTIL=$ac_ct_DSYMUTIL
  6681. fi
  6682. else
  6683. DSYMUTIL="$ac_cv_prog_DSYMUTIL"
  6684. fi
  6685. if test -n "$ac_tool_prefix"; then
  6686. # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
  6687. set dummy ${ac_tool_prefix}nmedit; ac_word=$2
  6688. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6689. $as_echo_n "checking for $ac_word... " >&6; }
  6690. if ${ac_cv_prog_NMEDIT+:} false; then :
  6691. $as_echo_n "(cached) " >&6
  6692. else
  6693. if test -n "$NMEDIT"; then
  6694. ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
  6695. else
  6696. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6697. for as_dir in $PATH
  6698. do
  6699. IFS=$as_save_IFS
  6700. test -z "$as_dir" && as_dir=.
  6701. for ac_exec_ext in '' $ac_executable_extensions; do
  6702. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6703. ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
  6704. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6705. break 2
  6706. fi
  6707. done
  6708. done
  6709. IFS=$as_save_IFS
  6710. fi
  6711. fi
  6712. NMEDIT=$ac_cv_prog_NMEDIT
  6713. if test -n "$NMEDIT"; then
  6714. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
  6715. $as_echo "$NMEDIT" >&6; }
  6716. else
  6717. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6718. $as_echo "no" >&6; }
  6719. fi
  6720. fi
  6721. if test -z "$ac_cv_prog_NMEDIT"; then
  6722. ac_ct_NMEDIT=$NMEDIT
  6723. # Extract the first word of "nmedit", so it can be a program name with args.
  6724. set dummy nmedit; ac_word=$2
  6725. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6726. $as_echo_n "checking for $ac_word... " >&6; }
  6727. if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
  6728. $as_echo_n "(cached) " >&6
  6729. else
  6730. if test -n "$ac_ct_NMEDIT"; then
  6731. ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
  6732. else
  6733. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6734. for as_dir in $PATH
  6735. do
  6736. IFS=$as_save_IFS
  6737. test -z "$as_dir" && as_dir=.
  6738. for ac_exec_ext in '' $ac_executable_extensions; do
  6739. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6740. ac_cv_prog_ac_ct_NMEDIT="nmedit"
  6741. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6742. break 2
  6743. fi
  6744. done
  6745. done
  6746. IFS=$as_save_IFS
  6747. fi
  6748. fi
  6749. ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
  6750. if test -n "$ac_ct_NMEDIT"; then
  6751. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
  6752. $as_echo "$ac_ct_NMEDIT" >&6; }
  6753. else
  6754. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6755. $as_echo "no" >&6; }
  6756. fi
  6757. if test "x$ac_ct_NMEDIT" = x; then
  6758. NMEDIT=":"
  6759. else
  6760. case $cross_compiling:$ac_tool_warned in
  6761. yes:)
  6762. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6763. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6764. ac_tool_warned=yes ;;
  6765. esac
  6766. NMEDIT=$ac_ct_NMEDIT
  6767. fi
  6768. else
  6769. NMEDIT="$ac_cv_prog_NMEDIT"
  6770. fi
  6771. if test -n "$ac_tool_prefix"; then
  6772. # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
  6773. set dummy ${ac_tool_prefix}lipo; ac_word=$2
  6774. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6775. $as_echo_n "checking for $ac_word... " >&6; }
  6776. if ${ac_cv_prog_LIPO+:} false; then :
  6777. $as_echo_n "(cached) " >&6
  6778. else
  6779. if test -n "$LIPO"; then
  6780. ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
  6781. else
  6782. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6783. for as_dir in $PATH
  6784. do
  6785. IFS=$as_save_IFS
  6786. test -z "$as_dir" && as_dir=.
  6787. for ac_exec_ext in '' $ac_executable_extensions; do
  6788. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6789. ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
  6790. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6791. break 2
  6792. fi
  6793. done
  6794. done
  6795. IFS=$as_save_IFS
  6796. fi
  6797. fi
  6798. LIPO=$ac_cv_prog_LIPO
  6799. if test -n "$LIPO"; then
  6800. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
  6801. $as_echo "$LIPO" >&6; }
  6802. else
  6803. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6804. $as_echo "no" >&6; }
  6805. fi
  6806. fi
  6807. if test -z "$ac_cv_prog_LIPO"; then
  6808. ac_ct_LIPO=$LIPO
  6809. # Extract the first word of "lipo", so it can be a program name with args.
  6810. set dummy lipo; ac_word=$2
  6811. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6812. $as_echo_n "checking for $ac_word... " >&6; }
  6813. if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
  6814. $as_echo_n "(cached) " >&6
  6815. else
  6816. if test -n "$ac_ct_LIPO"; then
  6817. ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
  6818. else
  6819. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6820. for as_dir in $PATH
  6821. do
  6822. IFS=$as_save_IFS
  6823. test -z "$as_dir" && as_dir=.
  6824. for ac_exec_ext in '' $ac_executable_extensions; do
  6825. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6826. ac_cv_prog_ac_ct_LIPO="lipo"
  6827. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6828. break 2
  6829. fi
  6830. done
  6831. done
  6832. IFS=$as_save_IFS
  6833. fi
  6834. fi
  6835. ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
  6836. if test -n "$ac_ct_LIPO"; then
  6837. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
  6838. $as_echo "$ac_ct_LIPO" >&6; }
  6839. else
  6840. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6841. $as_echo "no" >&6; }
  6842. fi
  6843. if test "x$ac_ct_LIPO" = x; then
  6844. LIPO=":"
  6845. else
  6846. case $cross_compiling:$ac_tool_warned in
  6847. yes:)
  6848. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6849. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6850. ac_tool_warned=yes ;;
  6851. esac
  6852. LIPO=$ac_ct_LIPO
  6853. fi
  6854. else
  6855. LIPO="$ac_cv_prog_LIPO"
  6856. fi
  6857. if test -n "$ac_tool_prefix"; then
  6858. # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
  6859. set dummy ${ac_tool_prefix}otool; ac_word=$2
  6860. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6861. $as_echo_n "checking for $ac_word... " >&6; }
  6862. if ${ac_cv_prog_OTOOL+:} false; then :
  6863. $as_echo_n "(cached) " >&6
  6864. else
  6865. if test -n "$OTOOL"; then
  6866. ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
  6867. else
  6868. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6869. for as_dir in $PATH
  6870. do
  6871. IFS=$as_save_IFS
  6872. test -z "$as_dir" && as_dir=.
  6873. for ac_exec_ext in '' $ac_executable_extensions; do
  6874. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6875. ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
  6876. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6877. break 2
  6878. fi
  6879. done
  6880. done
  6881. IFS=$as_save_IFS
  6882. fi
  6883. fi
  6884. OTOOL=$ac_cv_prog_OTOOL
  6885. if test -n "$OTOOL"; then
  6886. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
  6887. $as_echo "$OTOOL" >&6; }
  6888. else
  6889. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6890. $as_echo "no" >&6; }
  6891. fi
  6892. fi
  6893. if test -z "$ac_cv_prog_OTOOL"; then
  6894. ac_ct_OTOOL=$OTOOL
  6895. # Extract the first word of "otool", so it can be a program name with args.
  6896. set dummy otool; ac_word=$2
  6897. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6898. $as_echo_n "checking for $ac_word... " >&6; }
  6899. if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
  6900. $as_echo_n "(cached) " >&6
  6901. else
  6902. if test -n "$ac_ct_OTOOL"; then
  6903. ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
  6904. else
  6905. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6906. for as_dir in $PATH
  6907. do
  6908. IFS=$as_save_IFS
  6909. test -z "$as_dir" && as_dir=.
  6910. for ac_exec_ext in '' $ac_executable_extensions; do
  6911. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6912. ac_cv_prog_ac_ct_OTOOL="otool"
  6913. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6914. break 2
  6915. fi
  6916. done
  6917. done
  6918. IFS=$as_save_IFS
  6919. fi
  6920. fi
  6921. ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
  6922. if test -n "$ac_ct_OTOOL"; then
  6923. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
  6924. $as_echo "$ac_ct_OTOOL" >&6; }
  6925. else
  6926. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6927. $as_echo "no" >&6; }
  6928. fi
  6929. if test "x$ac_ct_OTOOL" = x; then
  6930. OTOOL=":"
  6931. else
  6932. case $cross_compiling:$ac_tool_warned in
  6933. yes:)
  6934. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  6935. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  6936. ac_tool_warned=yes ;;
  6937. esac
  6938. OTOOL=$ac_ct_OTOOL
  6939. fi
  6940. else
  6941. OTOOL="$ac_cv_prog_OTOOL"
  6942. fi
  6943. if test -n "$ac_tool_prefix"; then
  6944. # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
  6945. set dummy ${ac_tool_prefix}otool64; ac_word=$2
  6946. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6947. $as_echo_n "checking for $ac_word... " >&6; }
  6948. if ${ac_cv_prog_OTOOL64+:} false; then :
  6949. $as_echo_n "(cached) " >&6
  6950. else
  6951. if test -n "$OTOOL64"; then
  6952. ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
  6953. else
  6954. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6955. for as_dir in $PATH
  6956. do
  6957. IFS=$as_save_IFS
  6958. test -z "$as_dir" && as_dir=.
  6959. for ac_exec_ext in '' $ac_executable_extensions; do
  6960. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6961. ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
  6962. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  6963. break 2
  6964. fi
  6965. done
  6966. done
  6967. IFS=$as_save_IFS
  6968. fi
  6969. fi
  6970. OTOOL64=$ac_cv_prog_OTOOL64
  6971. if test -n "$OTOOL64"; then
  6972. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
  6973. $as_echo "$OTOOL64" >&6; }
  6974. else
  6975. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  6976. $as_echo "no" >&6; }
  6977. fi
  6978. fi
  6979. if test -z "$ac_cv_prog_OTOOL64"; then
  6980. ac_ct_OTOOL64=$OTOOL64
  6981. # Extract the first word of "otool64", so it can be a program name with args.
  6982. set dummy otool64; ac_word=$2
  6983. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  6984. $as_echo_n "checking for $ac_word... " >&6; }
  6985. if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
  6986. $as_echo_n "(cached) " >&6
  6987. else
  6988. if test -n "$ac_ct_OTOOL64"; then
  6989. ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
  6990. else
  6991. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  6992. for as_dir in $PATH
  6993. do
  6994. IFS=$as_save_IFS
  6995. test -z "$as_dir" && as_dir=.
  6996. for ac_exec_ext in '' $ac_executable_extensions; do
  6997. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  6998. ac_cv_prog_ac_ct_OTOOL64="otool64"
  6999. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  7000. break 2
  7001. fi
  7002. done
  7003. done
  7004. IFS=$as_save_IFS
  7005. fi
  7006. fi
  7007. ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
  7008. if test -n "$ac_ct_OTOOL64"; then
  7009. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
  7010. $as_echo "$ac_ct_OTOOL64" >&6; }
  7011. else
  7012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7013. $as_echo "no" >&6; }
  7014. fi
  7015. if test "x$ac_ct_OTOOL64" = x; then
  7016. OTOOL64=":"
  7017. else
  7018. case $cross_compiling:$ac_tool_warned in
  7019. yes:)
  7020. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  7021. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  7022. ac_tool_warned=yes ;;
  7023. esac
  7024. OTOOL64=$ac_ct_OTOOL64
  7025. fi
  7026. else
  7027. OTOOL64="$ac_cv_prog_OTOOL64"
  7028. fi
  7029. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
  7030. $as_echo_n "checking for -single_module linker flag... " >&6; }
  7031. if ${lt_cv_apple_cc_single_mod+:} false; then :
  7032. $as_echo_n "(cached) " >&6
  7033. else
  7034. lt_cv_apple_cc_single_mod=no
  7035. if test -z "${LT_MULTI_MODULE}"; then
  7036. # By default we will add the -single_module flag. You can override
  7037. # by either setting the environment variable LT_MULTI_MODULE
  7038. # non-empty at configure time, or by adding -multi_module to the
  7039. # link flags.
  7040. rm -rf libconftest.dylib*
  7041. echo "int foo(void){return 1;}" > conftest.c
  7042. echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7043. -dynamiclib -Wl,-single_module conftest.c" >&5
  7044. $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
  7045. -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
  7046. _lt_result=$?
  7047. # If there is a non-empty error log, and "single_module"
  7048. # appears in it, assume the flag caused a linker warning
  7049. if test -s conftest.err && $GREP single_module conftest.err; then
  7050. cat conftest.err >&5
  7051. # Otherwise, if the output was created with a 0 exit code from
  7052. # the compiler, it worked.
  7053. elif test -f libconftest.dylib && test $_lt_result -eq 0; then
  7054. lt_cv_apple_cc_single_mod=yes
  7055. else
  7056. cat conftest.err >&5
  7057. fi
  7058. rm -rf libconftest.dylib*
  7059. rm -f conftest.*
  7060. fi
  7061. fi
  7062. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
  7063. $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
  7064. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
  7065. $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
  7066. if ${lt_cv_ld_exported_symbols_list+:} false; then :
  7067. $as_echo_n "(cached) " >&6
  7068. else
  7069. lt_cv_ld_exported_symbols_list=no
  7070. save_LDFLAGS=$LDFLAGS
  7071. echo "_main" > conftest.sym
  7072. LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
  7073. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  7074. /* end confdefs.h. */
  7075. int
  7076. main ()
  7077. {
  7078. ;
  7079. return 0;
  7080. }
  7081. _ACEOF
  7082. if ac_fn_c_try_link "$LINENO"; then :
  7083. lt_cv_ld_exported_symbols_list=yes
  7084. else
  7085. lt_cv_ld_exported_symbols_list=no
  7086. fi
  7087. rm -f core conftest.err conftest.$ac_objext \
  7088. conftest$ac_exeext conftest.$ac_ext
  7089. LDFLAGS="$save_LDFLAGS"
  7090. fi
  7091. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
  7092. $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
  7093. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
  7094. $as_echo_n "checking for -force_load linker flag... " >&6; }
  7095. if ${lt_cv_ld_force_load+:} false; then :
  7096. $as_echo_n "(cached) " >&6
  7097. else
  7098. lt_cv_ld_force_load=no
  7099. cat > conftest.c << _LT_EOF
  7100. int forced_loaded() { return 2;}
  7101. _LT_EOF
  7102. echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
  7103. $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
  7104. echo "$AR cru libconftest.a conftest.o" >&5
  7105. $AR cru libconftest.a conftest.o 2>&5
  7106. echo "$RANLIB libconftest.a" >&5
  7107. $RANLIB libconftest.a 2>&5
  7108. cat > conftest.c << _LT_EOF
  7109. int main() { return 0;}
  7110. _LT_EOF
  7111. echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
  7112. $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
  7113. _lt_result=$?
  7114. if test -s conftest.err && $GREP force_load conftest.err; then
  7115. cat conftest.err >&5
  7116. elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
  7117. lt_cv_ld_force_load=yes
  7118. else
  7119. cat conftest.err >&5
  7120. fi
  7121. rm -f conftest.err libconftest.a conftest conftest.c
  7122. rm -rf conftest.dSYM
  7123. fi
  7124. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
  7125. $as_echo "$lt_cv_ld_force_load" >&6; }
  7126. case $host_os in
  7127. rhapsody* | darwin1.[012])
  7128. _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
  7129. darwin1.*)
  7130. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7131. darwin*) # darwin 5.x on
  7132. # if running on 10.5 or later, the deployment target defaults
  7133. # to the OS version, if on x86, and 10.4, the deployment
  7134. # target defaults to 10.4. Don't you love it?
  7135. case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
  7136. 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
  7137. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7138. 10.[012]*)
  7139. _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
  7140. 10.*)
  7141. _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
  7142. esac
  7143. ;;
  7144. esac
  7145. if test "$lt_cv_apple_cc_single_mod" = "yes"; then
  7146. _lt_dar_single_mod='$single_module'
  7147. fi
  7148. if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
  7149. _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
  7150. else
  7151. _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
  7152. fi
  7153. if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
  7154. _lt_dsymutil='~$DSYMUTIL $lib || :'
  7155. else
  7156. _lt_dsymutil=
  7157. fi
  7158. ;;
  7159. esac
  7160. for ac_header in dlfcn.h
  7161. do :
  7162. ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
  7163. "
  7164. if test "x$ac_cv_header_dlfcn_h" = xyes; then :
  7165. cat >>confdefs.h <<_ACEOF
  7166. #define HAVE_DLFCN_H 1
  7167. _ACEOF
  7168. fi
  7169. done
  7170. func_stripname_cnf ()
  7171. {
  7172. case ${2} in
  7173. .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;;
  7174. *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;;
  7175. esac
  7176. } # func_stripname_cnf
  7177. # Set options
  7178. enable_dlopen=no
  7179. # Check whether --enable-shared was given.
  7180. if test "${enable_shared+set}" = set; then :
  7181. enableval=$enable_shared; p=${PACKAGE-default}
  7182. case $enableval in
  7183. yes) enable_shared=yes ;;
  7184. no) enable_shared=no ;;
  7185. *)
  7186. enable_shared=no
  7187. # Look at the argument we got. We use all the common list separators.
  7188. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7189. for pkg in $enableval; do
  7190. IFS="$lt_save_ifs"
  7191. if test "X$pkg" = "X$p"; then
  7192. enable_shared=yes
  7193. fi
  7194. done
  7195. IFS="$lt_save_ifs"
  7196. ;;
  7197. esac
  7198. else
  7199. enable_shared=yes
  7200. fi
  7201. # Check whether --enable-static was given.
  7202. if test "${enable_static+set}" = set; then :
  7203. enableval=$enable_static; p=${PACKAGE-default}
  7204. case $enableval in
  7205. yes) enable_static=yes ;;
  7206. no) enable_static=no ;;
  7207. *)
  7208. enable_static=no
  7209. # Look at the argument we got. We use all the common list separators.
  7210. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7211. for pkg in $enableval; do
  7212. IFS="$lt_save_ifs"
  7213. if test "X$pkg" = "X$p"; then
  7214. enable_static=yes
  7215. fi
  7216. done
  7217. IFS="$lt_save_ifs"
  7218. ;;
  7219. esac
  7220. else
  7221. enable_static=yes
  7222. fi
  7223. # Check whether --with-pic was given.
  7224. if test "${with_pic+set}" = set; then :
  7225. withval=$with_pic; lt_p=${PACKAGE-default}
  7226. case $withval in
  7227. yes|no) pic_mode=$withval ;;
  7228. *)
  7229. pic_mode=default
  7230. # Look at the argument we got. We use all the common list separators.
  7231. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7232. for lt_pkg in $withval; do
  7233. IFS="$lt_save_ifs"
  7234. if test "X$lt_pkg" = "X$lt_p"; then
  7235. pic_mode=yes
  7236. fi
  7237. done
  7238. IFS="$lt_save_ifs"
  7239. ;;
  7240. esac
  7241. else
  7242. pic_mode=default
  7243. fi
  7244. test -z "$pic_mode" && pic_mode=default
  7245. # Check whether --enable-fast-install was given.
  7246. if test "${enable_fast_install+set}" = set; then :
  7247. enableval=$enable_fast_install; p=${PACKAGE-default}
  7248. case $enableval in
  7249. yes) enable_fast_install=yes ;;
  7250. no) enable_fast_install=no ;;
  7251. *)
  7252. enable_fast_install=no
  7253. # Look at the argument we got. We use all the common list separators.
  7254. lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
  7255. for pkg in $enableval; do
  7256. IFS="$lt_save_ifs"
  7257. if test "X$pkg" = "X$p"; then
  7258. enable_fast_install=yes
  7259. fi
  7260. done
  7261. IFS="$lt_save_ifs"
  7262. ;;
  7263. esac
  7264. else
  7265. enable_fast_install=yes
  7266. fi
  7267. # This can be used to rebuild libtool when needed
  7268. LIBTOOL_DEPS="$ltmain"
  7269. # Always use our own libtool.
  7270. LIBTOOL='$(SHELL) $(top_builddir)/libtool'
  7271. test -z "$LN_S" && LN_S="ln -s"
  7272. if test -n "${ZSH_VERSION+set}" ; then
  7273. setopt NO_GLOB_SUBST
  7274. fi
  7275. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
  7276. $as_echo_n "checking for objdir... " >&6; }
  7277. if ${lt_cv_objdir+:} false; then :
  7278. $as_echo_n "(cached) " >&6
  7279. else
  7280. rm -f .libs 2>/dev/null
  7281. mkdir .libs 2>/dev/null
  7282. if test -d .libs; then
  7283. lt_cv_objdir=.libs
  7284. else
  7285. # MS-DOS does not allow filenames that begin with a dot.
  7286. lt_cv_objdir=_libs
  7287. fi
  7288. rmdir .libs 2>/dev/null
  7289. fi
  7290. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
  7291. $as_echo "$lt_cv_objdir" >&6; }
  7292. objdir=$lt_cv_objdir
  7293. cat >>confdefs.h <<_ACEOF
  7294. #define LT_OBJDIR "$lt_cv_objdir/"
  7295. _ACEOF
  7296. case $host_os in
  7297. aix3*)
  7298. # AIX sometimes has problems with the GCC collect2 program. For some
  7299. # reason, if we set the COLLECT_NAMES environment variable, the problems
  7300. # vanish in a puff of smoke.
  7301. if test "X${COLLECT_NAMES+set}" != Xset; then
  7302. COLLECT_NAMES=
  7303. export COLLECT_NAMES
  7304. fi
  7305. ;;
  7306. esac
  7307. # Global variables:
  7308. ofile=libtool
  7309. can_build_shared=yes
  7310. # All known linkers require a `.a' archive for static linking (except MSVC,
  7311. # which needs '.lib').
  7312. libext=a
  7313. with_gnu_ld="$lt_cv_prog_gnu_ld"
  7314. old_CC="$CC"
  7315. old_CFLAGS="$CFLAGS"
  7316. # Set sane defaults for various variables
  7317. test -z "$CC" && CC=cc
  7318. test -z "$LTCC" && LTCC=$CC
  7319. test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
  7320. test -z "$LD" && LD=ld
  7321. test -z "$ac_objext" && ac_objext=o
  7322. for cc_temp in $compiler""; do
  7323. case $cc_temp in
  7324. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  7325. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  7326. \-*) ;;
  7327. *) break;;
  7328. esac
  7329. done
  7330. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  7331. # Only perform the check for file, if the check method requires it
  7332. test -z "$MAGIC_CMD" && MAGIC_CMD=file
  7333. case $deplibs_check_method in
  7334. file_magic*)
  7335. if test "$file_magic_cmd" = '$MAGIC_CMD'; then
  7336. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
  7337. $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
  7338. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7339. $as_echo_n "(cached) " >&6
  7340. else
  7341. case $MAGIC_CMD in
  7342. [\\/*] | ?:[\\/]*)
  7343. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7344. ;;
  7345. *)
  7346. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7347. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7348. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7349. for ac_dir in $ac_dummy; do
  7350. IFS="$lt_save_ifs"
  7351. test -z "$ac_dir" && ac_dir=.
  7352. if test -f $ac_dir/${ac_tool_prefix}file; then
  7353. lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
  7354. if test -n "$file_magic_test_file"; then
  7355. case $deplibs_check_method in
  7356. "file_magic "*)
  7357. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7358. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7359. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7360. $EGREP "$file_magic_regex" > /dev/null; then
  7361. :
  7362. else
  7363. cat <<_LT_EOF 1>&2
  7364. *** Warning: the command libtool uses to detect shared libraries,
  7365. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7366. *** The result is that libtool may fail to recognize shared libraries
  7367. *** as such. This will affect the creation of libtool libraries that
  7368. *** depend on shared libraries, but programs linked with such libtool
  7369. *** libraries will work regardless of this problem. Nevertheless, you
  7370. *** may want to report the problem to your system manager and/or to
  7371. *** bug-libtool@gnu.org
  7372. _LT_EOF
  7373. fi ;;
  7374. esac
  7375. fi
  7376. break
  7377. fi
  7378. done
  7379. IFS="$lt_save_ifs"
  7380. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7381. ;;
  7382. esac
  7383. fi
  7384. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7385. if test -n "$MAGIC_CMD"; then
  7386. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7387. $as_echo "$MAGIC_CMD" >&6; }
  7388. else
  7389. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7390. $as_echo "no" >&6; }
  7391. fi
  7392. if test -z "$lt_cv_path_MAGIC_CMD"; then
  7393. if test -n "$ac_tool_prefix"; then
  7394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
  7395. $as_echo_n "checking for file... " >&6; }
  7396. if ${lt_cv_path_MAGIC_CMD+:} false; then :
  7397. $as_echo_n "(cached) " >&6
  7398. else
  7399. case $MAGIC_CMD in
  7400. [\\/*] | ?:[\\/]*)
  7401. lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
  7402. ;;
  7403. *)
  7404. lt_save_MAGIC_CMD="$MAGIC_CMD"
  7405. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  7406. ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
  7407. for ac_dir in $ac_dummy; do
  7408. IFS="$lt_save_ifs"
  7409. test -z "$ac_dir" && ac_dir=.
  7410. if test -f $ac_dir/file; then
  7411. lt_cv_path_MAGIC_CMD="$ac_dir/file"
  7412. if test -n "$file_magic_test_file"; then
  7413. case $deplibs_check_method in
  7414. "file_magic "*)
  7415. file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
  7416. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7417. if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
  7418. $EGREP "$file_magic_regex" > /dev/null; then
  7419. :
  7420. else
  7421. cat <<_LT_EOF 1>&2
  7422. *** Warning: the command libtool uses to detect shared libraries,
  7423. *** $file_magic_cmd, produces output that libtool cannot recognize.
  7424. *** The result is that libtool may fail to recognize shared libraries
  7425. *** as such. This will affect the creation of libtool libraries that
  7426. *** depend on shared libraries, but programs linked with such libtool
  7427. *** libraries will work regardless of this problem. Nevertheless, you
  7428. *** may want to report the problem to your system manager and/or to
  7429. *** bug-libtool@gnu.org
  7430. _LT_EOF
  7431. fi ;;
  7432. esac
  7433. fi
  7434. break
  7435. fi
  7436. done
  7437. IFS="$lt_save_ifs"
  7438. MAGIC_CMD="$lt_save_MAGIC_CMD"
  7439. ;;
  7440. esac
  7441. fi
  7442. MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
  7443. if test -n "$MAGIC_CMD"; then
  7444. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
  7445. $as_echo "$MAGIC_CMD" >&6; }
  7446. else
  7447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  7448. $as_echo "no" >&6; }
  7449. fi
  7450. else
  7451. MAGIC_CMD=:
  7452. fi
  7453. fi
  7454. fi
  7455. ;;
  7456. esac
  7457. # Use C for the default configuration in the libtool script
  7458. lt_save_CC="$CC"
  7459. ac_ext=c
  7460. ac_cpp='$CPP $CPPFLAGS'
  7461. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  7462. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  7463. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  7464. # Source file extension for C test sources.
  7465. ac_ext=c
  7466. # Object file extension for compiled C test sources.
  7467. objext=o
  7468. objext=$objext
  7469. # Code to be used in simple compile tests
  7470. lt_simple_compile_test_code="int some_variable = 0;"
  7471. # Code to be used in simple link tests
  7472. lt_simple_link_test_code='int main(){return(0);}'
  7473. # If no C compiler was specified, use CC.
  7474. LTCC=${LTCC-"$CC"}
  7475. # If no C compiler flags were specified, use CFLAGS.
  7476. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  7477. # Allow CC to be a program name with arguments.
  7478. compiler=$CC
  7479. # Save the default compiler, since it gets overwritten when the other
  7480. # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
  7481. compiler_DEFAULT=$CC
  7482. # save warnings/boilerplate of simple test code
  7483. ac_outfile=conftest.$ac_objext
  7484. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  7485. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7486. _lt_compiler_boilerplate=`cat conftest.err`
  7487. $RM conftest*
  7488. ac_outfile=conftest.$ac_objext
  7489. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  7490. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  7491. _lt_linker_boilerplate=`cat conftest.err`
  7492. $RM -r conftest*
  7493. if test -n "$compiler"; then
  7494. lt_prog_compiler_no_builtin_flag=
  7495. if test "$GCC" = yes; then
  7496. case $cc_basename in
  7497. nvcc*)
  7498. lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
  7499. *)
  7500. lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
  7501. esac
  7502. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
  7503. $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
  7504. if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
  7505. $as_echo_n "(cached) " >&6
  7506. else
  7507. lt_cv_prog_compiler_rtti_exceptions=no
  7508. ac_outfile=conftest.$ac_objext
  7509. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7510. lt_compiler_flag="-fno-rtti -fno-exceptions"
  7511. # Insert the option either (1) after the last *FLAGS variable, or
  7512. # (2) before a word containing "conftest.", or (3) at the end.
  7513. # Note that $ac_compile itself does not contain backslashes and begins
  7514. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7515. # The option is referenced via a variable to avoid confusing sed.
  7516. lt_compile=`echo "$ac_compile" | $SED \
  7517. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7518. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7519. -e 's:$: $lt_compiler_flag:'`
  7520. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7521. (eval "$lt_compile" 2>conftest.err)
  7522. ac_status=$?
  7523. cat conftest.err >&5
  7524. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7525. if (exit $ac_status) && test -s "$ac_outfile"; then
  7526. # The compiler can only warn and ignore the option if not recognized
  7527. # So say no if there are warnings other than the usual output.
  7528. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7529. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7530. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7531. lt_cv_prog_compiler_rtti_exceptions=yes
  7532. fi
  7533. fi
  7534. $RM conftest*
  7535. fi
  7536. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
  7537. $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
  7538. if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
  7539. lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
  7540. else
  7541. :
  7542. fi
  7543. fi
  7544. lt_prog_compiler_wl=
  7545. lt_prog_compiler_pic=
  7546. lt_prog_compiler_static=
  7547. if test "$GCC" = yes; then
  7548. lt_prog_compiler_wl='-Wl,'
  7549. lt_prog_compiler_static='-static'
  7550. case $host_os in
  7551. aix*)
  7552. # All AIX code is PIC.
  7553. if test "$host_cpu" = ia64; then
  7554. # AIX 5 now supports IA64 processor
  7555. lt_prog_compiler_static='-Bstatic'
  7556. fi
  7557. ;;
  7558. amigaos*)
  7559. case $host_cpu in
  7560. powerpc)
  7561. # see comment about AmigaOS4 .so support
  7562. lt_prog_compiler_pic='-fPIC'
  7563. ;;
  7564. m68k)
  7565. # FIXME: we need at least 68020 code to build shared libraries, but
  7566. # adding the `-m68020' flag to GCC prevents building anything better,
  7567. # like `-m68040'.
  7568. lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
  7569. ;;
  7570. esac
  7571. ;;
  7572. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  7573. # PIC is the default for these OSes.
  7574. ;;
  7575. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7576. # This hack is so that the source file can tell whether it is being
  7577. # built for inclusion in a dll (and should export symbols for example).
  7578. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  7579. # (--disable-auto-import) libraries
  7580. lt_prog_compiler_pic='-DDLL_EXPORT'
  7581. ;;
  7582. darwin* | rhapsody*)
  7583. # PIC is the default on this platform
  7584. # Common symbols not allowed in MH_DYLIB files
  7585. lt_prog_compiler_pic='-fno-common'
  7586. ;;
  7587. haiku*)
  7588. # PIC is the default for Haiku.
  7589. # The "-static" flag exists, but is broken.
  7590. lt_prog_compiler_static=
  7591. ;;
  7592. hpux*)
  7593. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  7594. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  7595. # sets the default TLS model and affects inlining.
  7596. case $host_cpu in
  7597. hppa*64*)
  7598. # +Z the default
  7599. ;;
  7600. *)
  7601. lt_prog_compiler_pic='-fPIC'
  7602. ;;
  7603. esac
  7604. ;;
  7605. interix[3-9]*)
  7606. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  7607. # Instead, we relocate shared libraries at runtime.
  7608. ;;
  7609. msdosdjgpp*)
  7610. # Just because we use GCC doesn't mean we suddenly get shared libraries
  7611. # on systems that don't support them.
  7612. lt_prog_compiler_can_build_shared=no
  7613. enable_shared=no
  7614. ;;
  7615. *nto* | *qnx*)
  7616. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7617. # it will coredump.
  7618. lt_prog_compiler_pic='-fPIC -shared'
  7619. ;;
  7620. sysv4*MP*)
  7621. if test -d /usr/nec; then
  7622. lt_prog_compiler_pic=-Kconform_pic
  7623. fi
  7624. ;;
  7625. *)
  7626. lt_prog_compiler_pic='-fPIC'
  7627. ;;
  7628. esac
  7629. case $cc_basename in
  7630. nvcc*) # Cuda Compiler Driver 2.2
  7631. lt_prog_compiler_wl='-Xlinker '
  7632. if test -n "$lt_prog_compiler_pic"; then
  7633. lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
  7634. fi
  7635. ;;
  7636. esac
  7637. else
  7638. # PORTME Check for flag to pass linker flags through the system compiler.
  7639. case $host_os in
  7640. aix*)
  7641. lt_prog_compiler_wl='-Wl,'
  7642. if test "$host_cpu" = ia64; then
  7643. # AIX 5 now supports IA64 processor
  7644. lt_prog_compiler_static='-Bstatic'
  7645. else
  7646. lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
  7647. fi
  7648. ;;
  7649. mingw* | cygwin* | pw32* | os2* | cegcc*)
  7650. # This hack is so that the source file can tell whether it is being
  7651. # built for inclusion in a dll (and should export symbols for example).
  7652. lt_prog_compiler_pic='-DDLL_EXPORT'
  7653. ;;
  7654. hpux9* | hpux10* | hpux11*)
  7655. lt_prog_compiler_wl='-Wl,'
  7656. # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
  7657. # not for PA HP-UX.
  7658. case $host_cpu in
  7659. hppa*64*|ia64*)
  7660. # +Z the default
  7661. ;;
  7662. *)
  7663. lt_prog_compiler_pic='+Z'
  7664. ;;
  7665. esac
  7666. # Is there a better lt_prog_compiler_static that works with the bundled CC?
  7667. lt_prog_compiler_static='${wl}-a ${wl}archive'
  7668. ;;
  7669. irix5* | irix6* | nonstopux*)
  7670. lt_prog_compiler_wl='-Wl,'
  7671. # PIC (with -KPIC) is the default.
  7672. lt_prog_compiler_static='-non_shared'
  7673. ;;
  7674. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  7675. case $cc_basename in
  7676. # old Intel for x86_64 which still supported -KPIC.
  7677. ecc*)
  7678. lt_prog_compiler_wl='-Wl,'
  7679. lt_prog_compiler_pic='-KPIC'
  7680. lt_prog_compiler_static='-static'
  7681. ;;
  7682. # icc used to be incompatible with GCC.
  7683. # ICC 10 doesn't accept -KPIC any more.
  7684. icc* | ifort*)
  7685. lt_prog_compiler_wl='-Wl,'
  7686. lt_prog_compiler_pic='-fPIC'
  7687. lt_prog_compiler_static='-static'
  7688. ;;
  7689. # Lahey Fortran 8.1.
  7690. lf95*)
  7691. lt_prog_compiler_wl='-Wl,'
  7692. lt_prog_compiler_pic='--shared'
  7693. lt_prog_compiler_static='--static'
  7694. ;;
  7695. nagfor*)
  7696. # NAG Fortran compiler
  7697. lt_prog_compiler_wl='-Wl,-Wl,,'
  7698. lt_prog_compiler_pic='-PIC'
  7699. lt_prog_compiler_static='-Bstatic'
  7700. ;;
  7701. pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
  7702. # Portland Group compilers (*not* the Pentium gcc compiler,
  7703. # which looks to be a dead project)
  7704. lt_prog_compiler_wl='-Wl,'
  7705. lt_prog_compiler_pic='-fpic'
  7706. lt_prog_compiler_static='-Bstatic'
  7707. ;;
  7708. ccc*)
  7709. lt_prog_compiler_wl='-Wl,'
  7710. # All Alpha code is PIC.
  7711. lt_prog_compiler_static='-non_shared'
  7712. ;;
  7713. xl* | bgxl* | bgf* | mpixl*)
  7714. # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
  7715. lt_prog_compiler_wl='-Wl,'
  7716. lt_prog_compiler_pic='-qpic'
  7717. lt_prog_compiler_static='-qstaticlink'
  7718. ;;
  7719. *)
  7720. case `$CC -V 2>&1 | sed 5q` in
  7721. *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
  7722. # Sun Fortran 8.3 passes all unrecognized flags to the linker
  7723. lt_prog_compiler_pic='-KPIC'
  7724. lt_prog_compiler_static='-Bstatic'
  7725. lt_prog_compiler_wl=''
  7726. ;;
  7727. *Sun\ F* | *Sun*Fortran*)
  7728. lt_prog_compiler_pic='-KPIC'
  7729. lt_prog_compiler_static='-Bstatic'
  7730. lt_prog_compiler_wl='-Qoption ld '
  7731. ;;
  7732. *Sun\ C*)
  7733. # Sun C 5.9
  7734. lt_prog_compiler_pic='-KPIC'
  7735. lt_prog_compiler_static='-Bstatic'
  7736. lt_prog_compiler_wl='-Wl,'
  7737. ;;
  7738. *Intel*\ [CF]*Compiler*)
  7739. lt_prog_compiler_wl='-Wl,'
  7740. lt_prog_compiler_pic='-fPIC'
  7741. lt_prog_compiler_static='-static'
  7742. ;;
  7743. *Portland\ Group*)
  7744. lt_prog_compiler_wl='-Wl,'
  7745. lt_prog_compiler_pic='-fpic'
  7746. lt_prog_compiler_static='-Bstatic'
  7747. ;;
  7748. esac
  7749. ;;
  7750. esac
  7751. ;;
  7752. newsos6)
  7753. lt_prog_compiler_pic='-KPIC'
  7754. lt_prog_compiler_static='-Bstatic'
  7755. ;;
  7756. *nto* | *qnx*)
  7757. # QNX uses GNU C++, but need to define -shared option too, otherwise
  7758. # it will coredump.
  7759. lt_prog_compiler_pic='-fPIC -shared'
  7760. ;;
  7761. osf3* | osf4* | osf5*)
  7762. lt_prog_compiler_wl='-Wl,'
  7763. # All OSF/1 code is PIC.
  7764. lt_prog_compiler_static='-non_shared'
  7765. ;;
  7766. rdos*)
  7767. lt_prog_compiler_static='-non_shared'
  7768. ;;
  7769. solaris*)
  7770. lt_prog_compiler_pic='-KPIC'
  7771. lt_prog_compiler_static='-Bstatic'
  7772. case $cc_basename in
  7773. f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
  7774. lt_prog_compiler_wl='-Qoption ld ';;
  7775. *)
  7776. lt_prog_compiler_wl='-Wl,';;
  7777. esac
  7778. ;;
  7779. sunos4*)
  7780. lt_prog_compiler_wl='-Qoption ld '
  7781. lt_prog_compiler_pic='-PIC'
  7782. lt_prog_compiler_static='-Bstatic'
  7783. ;;
  7784. sysv4 | sysv4.2uw2* | sysv4.3*)
  7785. lt_prog_compiler_wl='-Wl,'
  7786. lt_prog_compiler_pic='-KPIC'
  7787. lt_prog_compiler_static='-Bstatic'
  7788. ;;
  7789. sysv4*MP*)
  7790. if test -d /usr/nec ;then
  7791. lt_prog_compiler_pic='-Kconform_pic'
  7792. lt_prog_compiler_static='-Bstatic'
  7793. fi
  7794. ;;
  7795. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  7796. lt_prog_compiler_wl='-Wl,'
  7797. lt_prog_compiler_pic='-KPIC'
  7798. lt_prog_compiler_static='-Bstatic'
  7799. ;;
  7800. unicos*)
  7801. lt_prog_compiler_wl='-Wl,'
  7802. lt_prog_compiler_can_build_shared=no
  7803. ;;
  7804. uts4*)
  7805. lt_prog_compiler_pic='-pic'
  7806. lt_prog_compiler_static='-Bstatic'
  7807. ;;
  7808. *)
  7809. lt_prog_compiler_can_build_shared=no
  7810. ;;
  7811. esac
  7812. fi
  7813. case $host_os in
  7814. # For platforms which do not support PIC, -DPIC is meaningless:
  7815. *djgpp*)
  7816. lt_prog_compiler_pic=
  7817. ;;
  7818. *)
  7819. lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
  7820. ;;
  7821. esac
  7822. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  7823. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  7824. if ${lt_cv_prog_compiler_pic+:} false; then :
  7825. $as_echo_n "(cached) " >&6
  7826. else
  7827. lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
  7828. fi
  7829. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
  7830. $as_echo "$lt_cv_prog_compiler_pic" >&6; }
  7831. lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
  7832. #
  7833. # Check to make sure the PIC flag actually works.
  7834. #
  7835. if test -n "$lt_prog_compiler_pic"; then
  7836. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
  7837. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
  7838. if ${lt_cv_prog_compiler_pic_works+:} false; then :
  7839. $as_echo_n "(cached) " >&6
  7840. else
  7841. lt_cv_prog_compiler_pic_works=no
  7842. ac_outfile=conftest.$ac_objext
  7843. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7844. lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
  7845. # Insert the option either (1) after the last *FLAGS variable, or
  7846. # (2) before a word containing "conftest.", or (3) at the end.
  7847. # Note that $ac_compile itself does not contain backslashes and begins
  7848. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7849. # The option is referenced via a variable to avoid confusing sed.
  7850. lt_compile=`echo "$ac_compile" | $SED \
  7851. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7852. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7853. -e 's:$: $lt_compiler_flag:'`
  7854. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7855. (eval "$lt_compile" 2>conftest.err)
  7856. ac_status=$?
  7857. cat conftest.err >&5
  7858. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7859. if (exit $ac_status) && test -s "$ac_outfile"; then
  7860. # The compiler can only warn and ignore the option if not recognized
  7861. # So say no if there are warnings other than the usual output.
  7862. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  7863. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7864. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  7865. lt_cv_prog_compiler_pic_works=yes
  7866. fi
  7867. fi
  7868. $RM conftest*
  7869. fi
  7870. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
  7871. $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
  7872. if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
  7873. case $lt_prog_compiler_pic in
  7874. "" | " "*) ;;
  7875. *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
  7876. esac
  7877. else
  7878. lt_prog_compiler_pic=
  7879. lt_prog_compiler_can_build_shared=no
  7880. fi
  7881. fi
  7882. #
  7883. # Check to make sure the static flag actually works.
  7884. #
  7885. wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
  7886. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  7887. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  7888. if ${lt_cv_prog_compiler_static_works+:} false; then :
  7889. $as_echo_n "(cached) " >&6
  7890. else
  7891. lt_cv_prog_compiler_static_works=no
  7892. save_LDFLAGS="$LDFLAGS"
  7893. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  7894. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  7895. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  7896. # The linker can only warn and ignore the option if not recognized
  7897. # So say no if there are warnings
  7898. if test -s conftest.err; then
  7899. # Append any errors to the config.log.
  7900. cat conftest.err 1>&5
  7901. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  7902. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  7903. if diff conftest.exp conftest.er2 >/dev/null; then
  7904. lt_cv_prog_compiler_static_works=yes
  7905. fi
  7906. else
  7907. lt_cv_prog_compiler_static_works=yes
  7908. fi
  7909. fi
  7910. $RM -r conftest*
  7911. LDFLAGS="$save_LDFLAGS"
  7912. fi
  7913. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
  7914. $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
  7915. if test x"$lt_cv_prog_compiler_static_works" = xyes; then
  7916. :
  7917. else
  7918. lt_prog_compiler_static=
  7919. fi
  7920. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7921. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7922. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7923. $as_echo_n "(cached) " >&6
  7924. else
  7925. lt_cv_prog_compiler_c_o=no
  7926. $RM -r conftest 2>/dev/null
  7927. mkdir conftest
  7928. cd conftest
  7929. mkdir out
  7930. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7931. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7932. # Insert the option either (1) after the last *FLAGS variable, or
  7933. # (2) before a word containing "conftest.", or (3) at the end.
  7934. # Note that $ac_compile itself does not contain backslashes and begins
  7935. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7936. lt_compile=`echo "$ac_compile" | $SED \
  7937. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7938. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7939. -e 's:$: $lt_compiler_flag:'`
  7940. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7941. (eval "$lt_compile" 2>out/conftest.err)
  7942. ac_status=$?
  7943. cat out/conftest.err >&5
  7944. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7945. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7946. then
  7947. # The compiler can only warn and ignore the option if not recognized
  7948. # So say no if there are warnings
  7949. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7950. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7951. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7952. lt_cv_prog_compiler_c_o=yes
  7953. fi
  7954. fi
  7955. chmod u+w . 2>&5
  7956. $RM conftest*
  7957. # SGI C++ compiler will create directory out/ii_files/ for
  7958. # template instantiation
  7959. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  7960. $RM out/* && rmdir out
  7961. cd ..
  7962. $RM -r conftest
  7963. $RM conftest*
  7964. fi
  7965. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  7966. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  7967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  7968. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  7969. if ${lt_cv_prog_compiler_c_o+:} false; then :
  7970. $as_echo_n "(cached) " >&6
  7971. else
  7972. lt_cv_prog_compiler_c_o=no
  7973. $RM -r conftest 2>/dev/null
  7974. mkdir conftest
  7975. cd conftest
  7976. mkdir out
  7977. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  7978. lt_compiler_flag="-o out/conftest2.$ac_objext"
  7979. # Insert the option either (1) after the last *FLAGS variable, or
  7980. # (2) before a word containing "conftest.", or (3) at the end.
  7981. # Note that $ac_compile itself does not contain backslashes and begins
  7982. # with a dollar sign (not a hyphen), so the echo should work correctly.
  7983. lt_compile=`echo "$ac_compile" | $SED \
  7984. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  7985. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  7986. -e 's:$: $lt_compiler_flag:'`
  7987. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  7988. (eval "$lt_compile" 2>out/conftest.err)
  7989. ac_status=$?
  7990. cat out/conftest.err >&5
  7991. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  7992. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  7993. then
  7994. # The compiler can only warn and ignore the option if not recognized
  7995. # So say no if there are warnings
  7996. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  7997. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  7998. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  7999. lt_cv_prog_compiler_c_o=yes
  8000. fi
  8001. fi
  8002. chmod u+w . 2>&5
  8003. $RM conftest*
  8004. # SGI C++ compiler will create directory out/ii_files/ for
  8005. # template instantiation
  8006. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  8007. $RM out/* && rmdir out
  8008. cd ..
  8009. $RM -r conftest
  8010. $RM conftest*
  8011. fi
  8012. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
  8013. $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
  8014. hard_links="nottested"
  8015. if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
  8016. # do not overwrite the value of need_locks provided by the user
  8017. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  8018. $as_echo_n "checking if we can lock with hard links... " >&6; }
  8019. hard_links=yes
  8020. $RM conftest*
  8021. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8022. touch conftest.a
  8023. ln conftest.a conftest.b 2>&5 || hard_links=no
  8024. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  8025. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  8026. $as_echo "$hard_links" >&6; }
  8027. if test "$hard_links" = no; then
  8028. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  8029. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  8030. need_locks=warn
  8031. fi
  8032. else
  8033. need_locks=no
  8034. fi
  8035. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  8036. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  8037. runpath_var=
  8038. allow_undefined_flag=
  8039. always_export_symbols=no
  8040. archive_cmds=
  8041. archive_expsym_cmds=
  8042. compiler_needs_object=no
  8043. enable_shared_with_static_runtimes=no
  8044. export_dynamic_flag_spec=
  8045. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  8046. hardcode_automatic=no
  8047. hardcode_direct=no
  8048. hardcode_direct_absolute=no
  8049. hardcode_libdir_flag_spec=
  8050. hardcode_libdir_separator=
  8051. hardcode_minus_L=no
  8052. hardcode_shlibpath_var=unsupported
  8053. inherit_rpath=no
  8054. link_all_deplibs=unknown
  8055. module_cmds=
  8056. module_expsym_cmds=
  8057. old_archive_from_new_cmds=
  8058. old_archive_from_expsyms_cmds=
  8059. thread_safe_flag_spec=
  8060. whole_archive_flag_spec=
  8061. # include_expsyms should be a list of space-separated symbols to be *always*
  8062. # included in the symbol list
  8063. include_expsyms=
  8064. # exclude_expsyms can be an extended regexp of symbols to exclude
  8065. # it will be wrapped by ` (' and `)$', so one must not match beginning or
  8066. # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
  8067. # as well as any symbol that contains `d'.
  8068. exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  8069. # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
  8070. # platforms (ab)use it in PIC code, but their linkers get confused if
  8071. # the symbol is explicitly referenced. Since portable code cannot
  8072. # rely on this symbol name, it's probably fine to never include it in
  8073. # preloaded symbol tables.
  8074. # Exclude shared library initialization/finalization symbols.
  8075. extract_expsyms_cmds=
  8076. case $host_os in
  8077. cygwin* | mingw* | pw32* | cegcc*)
  8078. # FIXME: the MSVC++ port hasn't been tested in a loooong time
  8079. # When not using gcc, we currently assume that we are using
  8080. # Microsoft Visual C++.
  8081. if test "$GCC" != yes; then
  8082. with_gnu_ld=no
  8083. fi
  8084. ;;
  8085. interix*)
  8086. # we just hope/assume this is gcc and not c89 (= MSVC++)
  8087. with_gnu_ld=yes
  8088. ;;
  8089. openbsd*)
  8090. with_gnu_ld=no
  8091. ;;
  8092. esac
  8093. ld_shlibs=yes
  8094. # On some targets, GNU ld is compatible enough with the native linker
  8095. # that we're better off using the native interface for both.
  8096. lt_use_gnu_ld_interface=no
  8097. if test "$with_gnu_ld" = yes; then
  8098. case $host_os in
  8099. aix*)
  8100. # The AIX port of GNU ld has always aspired to compatibility
  8101. # with the native linker. However, as the warning in the GNU ld
  8102. # block says, versions before 2.19.5* couldn't really create working
  8103. # shared libraries, regardless of the interface used.
  8104. case `$LD -v 2>&1` in
  8105. *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
  8106. *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
  8107. *\ \(GNU\ Binutils\)\ [3-9]*) ;;
  8108. *)
  8109. lt_use_gnu_ld_interface=yes
  8110. ;;
  8111. esac
  8112. ;;
  8113. *)
  8114. lt_use_gnu_ld_interface=yes
  8115. ;;
  8116. esac
  8117. fi
  8118. if test "$lt_use_gnu_ld_interface" = yes; then
  8119. # If archive_cmds runs LD, not CC, wlarc should be empty
  8120. wlarc='${wl}'
  8121. # Set some defaults for GNU ld with shared library support. These
  8122. # are reset later if shared libraries are not supported. Putting them
  8123. # here allows them to be overridden if necessary.
  8124. runpath_var=LD_RUN_PATH
  8125. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8126. export_dynamic_flag_spec='${wl}--export-dynamic'
  8127. # ancient GNU ld didn't support --whole-archive et. al.
  8128. if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
  8129. whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  8130. else
  8131. whole_archive_flag_spec=
  8132. fi
  8133. supports_anon_versioning=no
  8134. case `$LD -v 2>&1` in
  8135. *GNU\ gold*) supports_anon_versioning=yes ;;
  8136. *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
  8137. *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
  8138. *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
  8139. *\ 2.11.*) ;; # other 2.11 versions
  8140. *) supports_anon_versioning=yes ;;
  8141. esac
  8142. # See if GNU ld supports shared libraries.
  8143. case $host_os in
  8144. aix[3-9]*)
  8145. # On AIX/PPC, the GNU linker is very broken
  8146. if test "$host_cpu" != ia64; then
  8147. ld_shlibs=no
  8148. cat <<_LT_EOF 1>&2
  8149. *** Warning: the GNU linker, at least up to release 2.19, is reported
  8150. *** to be unable to reliably create shared libraries on AIX.
  8151. *** Therefore, libtool is disabling shared libraries support. If you
  8152. *** really care for shared libraries, you may want to install binutils
  8153. *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
  8154. *** You will then need to restart the configuration process.
  8155. _LT_EOF
  8156. fi
  8157. ;;
  8158. amigaos*)
  8159. case $host_cpu in
  8160. powerpc)
  8161. # see comment about AmigaOS4 .so support
  8162. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8163. archive_expsym_cmds=''
  8164. ;;
  8165. m68k)
  8166. 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)'
  8167. hardcode_libdir_flag_spec='-L$libdir'
  8168. hardcode_minus_L=yes
  8169. ;;
  8170. esac
  8171. ;;
  8172. beos*)
  8173. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8174. allow_undefined_flag=unsupported
  8175. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  8176. # support --undefined. This deserves some investigation. FIXME
  8177. archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8178. else
  8179. ld_shlibs=no
  8180. fi
  8181. ;;
  8182. cygwin* | mingw* | pw32* | cegcc*)
  8183. # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
  8184. # as there is no search path for DLLs.
  8185. hardcode_libdir_flag_spec='-L$libdir'
  8186. export_dynamic_flag_spec='${wl}--export-all-symbols'
  8187. allow_undefined_flag=unsupported
  8188. always_export_symbols=no
  8189. enable_shared_with_static_runtimes=yes
  8190. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  8191. exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  8192. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  8193. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8194. # If the export-symbols file already is a .def file (1st line
  8195. # is EXPORTS), use it as is; otherwise, prepend...
  8196. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8197. cp $export_symbols $output_objdir/$soname.def;
  8198. else
  8199. echo EXPORTS > $output_objdir/$soname.def;
  8200. cat $export_symbols >> $output_objdir/$soname.def;
  8201. fi~
  8202. $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  8203. else
  8204. ld_shlibs=no
  8205. fi
  8206. ;;
  8207. haiku*)
  8208. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8209. link_all_deplibs=yes
  8210. ;;
  8211. interix[3-9]*)
  8212. hardcode_direct=no
  8213. hardcode_shlibpath_var=no
  8214. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8215. export_dynamic_flag_spec='${wl}-E'
  8216. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  8217. # Instead, shared libraries are loaded at an image base (0x10000000 by
  8218. # default) and relocated if they conflict, which is a slow very memory
  8219. # consuming and fragmenting process. To avoid this, we pick a random,
  8220. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  8221. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  8222. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  8223. 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'
  8224. ;;
  8225. gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
  8226. tmp_diet=no
  8227. if test "$host_os" = linux-dietlibc; then
  8228. case $cc_basename in
  8229. diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
  8230. esac
  8231. fi
  8232. if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
  8233. && test "$tmp_diet" = no
  8234. then
  8235. tmp_addflag=' $pic_flag'
  8236. tmp_sharedflag='-shared'
  8237. case $cc_basename,$host_cpu in
  8238. pgcc*) # Portland Group C compiler
  8239. 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'
  8240. tmp_addflag=' $pic_flag'
  8241. ;;
  8242. pgf77* | pgf90* | pgf95* | pgfortran*)
  8243. # Portland Group f77 and f90 compilers
  8244. 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'
  8245. tmp_addflag=' $pic_flag -Mnomain' ;;
  8246. ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
  8247. tmp_addflag=' -i_dynamic' ;;
  8248. efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
  8249. tmp_addflag=' -i_dynamic -nofor_main' ;;
  8250. ifc* | ifort*) # Intel Fortran compiler
  8251. tmp_addflag=' -nofor_main' ;;
  8252. lf95*) # Lahey Fortran 8.1
  8253. whole_archive_flag_spec=
  8254. tmp_sharedflag='--shared' ;;
  8255. xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
  8256. tmp_sharedflag='-qmkshrobj'
  8257. tmp_addflag= ;;
  8258. nvcc*) # Cuda Compiler Driver 2.2
  8259. 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'
  8260. compiler_needs_object=yes
  8261. ;;
  8262. esac
  8263. case `$CC -V 2>&1 | sed 5q` in
  8264. *Sun\ C*) # Sun C 5.9
  8265. 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'
  8266. compiler_needs_object=yes
  8267. tmp_sharedflag='-G' ;;
  8268. *Sun\ F*) # Sun Fortran 8.3
  8269. tmp_sharedflag='-G' ;;
  8270. esac
  8271. archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8272. if test "x$supports_anon_versioning" = xyes; then
  8273. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8274. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8275. echo "local: *; };" >> $output_objdir/$libname.ver~
  8276. $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  8277. fi
  8278. case $cc_basename in
  8279. xlf* | bgf* | bgxlf* | mpixlf*)
  8280. # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
  8281. whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
  8282. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8283. archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
  8284. if test "x$supports_anon_versioning" = xyes; then
  8285. archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
  8286. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  8287. echo "local: *; };" >> $output_objdir/$libname.ver~
  8288. $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
  8289. fi
  8290. ;;
  8291. esac
  8292. else
  8293. ld_shlibs=no
  8294. fi
  8295. ;;
  8296. netbsd*)
  8297. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8298. archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
  8299. wlarc=
  8300. else
  8301. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8302. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8303. fi
  8304. ;;
  8305. solaris*)
  8306. if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
  8307. ld_shlibs=no
  8308. cat <<_LT_EOF 1>&2
  8309. *** Warning: The releases 2.8.* of the GNU linker cannot reliably
  8310. *** create shared libraries on Solaris systems. Therefore, libtool
  8311. *** is disabling shared libraries support. We urge you to upgrade GNU
  8312. *** binutils to release 2.9.1 or newer. Another option is to modify
  8313. *** your PATH or compiler configuration so that the native linker is
  8314. *** used, and then restart.
  8315. _LT_EOF
  8316. elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8317. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8318. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8319. else
  8320. ld_shlibs=no
  8321. fi
  8322. ;;
  8323. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
  8324. case `$LD -v 2>&1` in
  8325. *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
  8326. ld_shlibs=no
  8327. cat <<_LT_EOF 1>&2
  8328. *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
  8329. *** reliably create shared libraries on SCO systems. Therefore, libtool
  8330. *** is disabling shared libraries support. We urge you to upgrade GNU
  8331. *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
  8332. *** your PATH or compiler configuration so that the native linker is
  8333. *** used, and then restart.
  8334. _LT_EOF
  8335. ;;
  8336. *)
  8337. # For security reasons, it is highly recommended that you always
  8338. # use absolute paths for naming shared libraries, and exclude the
  8339. # DT_RUNPATH tag from executables and libraries. But doing so
  8340. # requires that you compile everything twice, which is a pain.
  8341. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8342. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8343. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8344. archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8345. else
  8346. ld_shlibs=no
  8347. fi
  8348. ;;
  8349. esac
  8350. ;;
  8351. sunos4*)
  8352. archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8353. wlarc=
  8354. hardcode_direct=yes
  8355. hardcode_shlibpath_var=no
  8356. ;;
  8357. *)
  8358. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  8359. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8360. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  8361. else
  8362. ld_shlibs=no
  8363. fi
  8364. ;;
  8365. esac
  8366. if test "$ld_shlibs" = no; then
  8367. runpath_var=
  8368. hardcode_libdir_flag_spec=
  8369. export_dynamic_flag_spec=
  8370. whole_archive_flag_spec=
  8371. fi
  8372. else
  8373. # PORTME fill in a description of your system's linker (not GNU ld)
  8374. case $host_os in
  8375. aix3*)
  8376. allow_undefined_flag=unsupported
  8377. always_export_symbols=yes
  8378. 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'
  8379. # Note: this linker hardcodes the directories in LIBPATH if there
  8380. # are no directories specified by -L.
  8381. hardcode_minus_L=yes
  8382. if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
  8383. # Neither direct hardcoding nor static linking is supported with a
  8384. # broken collect2.
  8385. hardcode_direct=unsupported
  8386. fi
  8387. ;;
  8388. aix[4-9]*)
  8389. if test "$host_cpu" = ia64; then
  8390. # On IA64, the linker does run time linking by default, so we don't
  8391. # have to do anything special.
  8392. aix_use_runtimelinking=no
  8393. exp_sym_flag='-Bexport'
  8394. no_entry_flag=""
  8395. else
  8396. # If we're using GNU nm, then we don't want the "-C" option.
  8397. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  8398. # Also, AIX nm treats weak defined symbols like other global
  8399. # defined symbols, whereas GNU nm marks them as "W".
  8400. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  8401. 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'
  8402. else
  8403. export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  8404. fi
  8405. aix_use_runtimelinking=no
  8406. # Test if we are trying to use run time linking or normal
  8407. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  8408. # need to do runtime linking.
  8409. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  8410. for ld_flag in $LDFLAGS; do
  8411. if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
  8412. aix_use_runtimelinking=yes
  8413. break
  8414. fi
  8415. done
  8416. ;;
  8417. esac
  8418. exp_sym_flag='-bexport'
  8419. no_entry_flag='-bnoentry'
  8420. fi
  8421. # When large executables or shared objects are built, AIX ld can
  8422. # have problems creating the table of contents. If linking a library
  8423. # or program results in "error TOC overflow" add -mminimal-toc to
  8424. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  8425. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  8426. archive_cmds=''
  8427. hardcode_direct=yes
  8428. hardcode_direct_absolute=yes
  8429. hardcode_libdir_separator=':'
  8430. link_all_deplibs=yes
  8431. file_list_spec='${wl}-f,'
  8432. if test "$GCC" = yes; then
  8433. case $host_os in aix4.[012]|aix4.[012].*)
  8434. # We only want to do this on AIX 4.2 and lower, the check
  8435. # below for broken collect2 doesn't work under 4.3+
  8436. collect2name=`${CC} -print-prog-name=collect2`
  8437. if test -f "$collect2name" &&
  8438. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  8439. then
  8440. # We have reworked collect2
  8441. :
  8442. else
  8443. # We have old collect2
  8444. hardcode_direct=unsupported
  8445. # It fails to find uninstalled libraries when the uninstalled
  8446. # path is not listed in the libpath. Setting hardcode_minus_L
  8447. # to unsupported forces relinking
  8448. hardcode_minus_L=yes
  8449. hardcode_libdir_flag_spec='-L$libdir'
  8450. hardcode_libdir_separator=
  8451. fi
  8452. ;;
  8453. esac
  8454. shared_flag='-shared'
  8455. if test "$aix_use_runtimelinking" = yes; then
  8456. shared_flag="$shared_flag "'${wl}-G'
  8457. fi
  8458. else
  8459. # not using gcc
  8460. if test "$host_cpu" = ia64; then
  8461. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  8462. # chokes on -Wl,-G. The following line is correct:
  8463. shared_flag='-G'
  8464. else
  8465. if test "$aix_use_runtimelinking" = yes; then
  8466. shared_flag='${wl}-G'
  8467. else
  8468. shared_flag='${wl}-bM:SRE'
  8469. fi
  8470. fi
  8471. fi
  8472. export_dynamic_flag_spec='${wl}-bexpall'
  8473. # It seems that -bexpall does not export symbols beginning with
  8474. # underscore (_), so it is better to generate a list of symbols to export.
  8475. always_export_symbols=yes
  8476. if test "$aix_use_runtimelinking" = yes; then
  8477. # Warning - without using the other runtime loading flags (-brtl),
  8478. # -berok will link without error, but may produce a broken library.
  8479. allow_undefined_flag='-berok'
  8480. # Determine the default libpath from the value encoded in an
  8481. # empty executable.
  8482. if test "${lt_cv_aix_libpath+set}" = set; then
  8483. aix_libpath=$lt_cv_aix_libpath
  8484. else
  8485. if ${lt_cv_aix_libpath_+:} false; then :
  8486. $as_echo_n "(cached) " >&6
  8487. else
  8488. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8489. /* end confdefs.h. */
  8490. int
  8491. main ()
  8492. {
  8493. ;
  8494. return 0;
  8495. }
  8496. _ACEOF
  8497. if ac_fn_c_try_link "$LINENO"; then :
  8498. lt_aix_libpath_sed='
  8499. /Import File Strings/,/^$/ {
  8500. /^0/ {
  8501. s/^0 *\([^ ]*\) *$/\1/
  8502. p
  8503. }
  8504. }'
  8505. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8506. # Check for a 64-bit object if we didn't find anything.
  8507. if test -z "$lt_cv_aix_libpath_"; then
  8508. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8509. fi
  8510. fi
  8511. rm -f core conftest.err conftest.$ac_objext \
  8512. conftest$ac_exeext conftest.$ac_ext
  8513. if test -z "$lt_cv_aix_libpath_"; then
  8514. lt_cv_aix_libpath_="/usr/lib:/lib"
  8515. fi
  8516. fi
  8517. aix_libpath=$lt_cv_aix_libpath_
  8518. fi
  8519. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8520. 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"
  8521. else
  8522. if test "$host_cpu" = ia64; then
  8523. hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
  8524. allow_undefined_flag="-z nodefs"
  8525. 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"
  8526. else
  8527. # Determine the default libpath from the value encoded in an
  8528. # empty executable.
  8529. if test "${lt_cv_aix_libpath+set}" = set; then
  8530. aix_libpath=$lt_cv_aix_libpath
  8531. else
  8532. if ${lt_cv_aix_libpath_+:} false; then :
  8533. $as_echo_n "(cached) " >&6
  8534. else
  8535. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8536. /* end confdefs.h. */
  8537. int
  8538. main ()
  8539. {
  8540. ;
  8541. return 0;
  8542. }
  8543. _ACEOF
  8544. if ac_fn_c_try_link "$LINENO"; then :
  8545. lt_aix_libpath_sed='
  8546. /Import File Strings/,/^$/ {
  8547. /^0/ {
  8548. s/^0 *\([^ ]*\) *$/\1/
  8549. p
  8550. }
  8551. }'
  8552. lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8553. # Check for a 64-bit object if we didn't find anything.
  8554. if test -z "$lt_cv_aix_libpath_"; then
  8555. lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  8556. fi
  8557. fi
  8558. rm -f core conftest.err conftest.$ac_objext \
  8559. conftest$ac_exeext conftest.$ac_ext
  8560. if test -z "$lt_cv_aix_libpath_"; then
  8561. lt_cv_aix_libpath_="/usr/lib:/lib"
  8562. fi
  8563. fi
  8564. aix_libpath=$lt_cv_aix_libpath_
  8565. fi
  8566. hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
  8567. # Warning - without using the other run time loading flags,
  8568. # -berok will link without error, but may produce a broken library.
  8569. no_undefined_flag=' ${wl}-bernotok'
  8570. allow_undefined_flag=' ${wl}-berok'
  8571. if test "$with_gnu_ld" = yes; then
  8572. # We only use this code for GNU lds that support --whole-archive.
  8573. whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  8574. else
  8575. # Exported symbols can be pulled into shared objects from archives
  8576. whole_archive_flag_spec='$convenience'
  8577. fi
  8578. archive_cmds_need_lc=yes
  8579. # This is similar to how AIX traditionally builds its shared libraries.
  8580. 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'
  8581. fi
  8582. fi
  8583. ;;
  8584. amigaos*)
  8585. case $host_cpu in
  8586. powerpc)
  8587. # see comment about AmigaOS4 .so support
  8588. archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  8589. archive_expsym_cmds=''
  8590. ;;
  8591. m68k)
  8592. 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)'
  8593. hardcode_libdir_flag_spec='-L$libdir'
  8594. hardcode_minus_L=yes
  8595. ;;
  8596. esac
  8597. ;;
  8598. bsdi[45]*)
  8599. export_dynamic_flag_spec=-rdynamic
  8600. ;;
  8601. cygwin* | mingw* | pw32* | cegcc*)
  8602. # When not using gcc, we currently assume that we are using
  8603. # Microsoft Visual C++.
  8604. # hardcode_libdir_flag_spec is actually meaningless, as there is
  8605. # no search path for DLLs.
  8606. case $cc_basename in
  8607. cl*)
  8608. # Native MSVC
  8609. hardcode_libdir_flag_spec=' '
  8610. allow_undefined_flag=unsupported
  8611. always_export_symbols=yes
  8612. file_list_spec='@'
  8613. # Tell ltmain to make .lib files, not .a files.
  8614. libext=lib
  8615. # Tell ltmain to make .dll files, not .so files.
  8616. shrext_cmds=".dll"
  8617. # FIXME: Setting linknames here is a bad hack.
  8618. archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  8619. archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  8620. sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  8621. else
  8622. sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  8623. fi~
  8624. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  8625. linknames='
  8626. # The linker will not automatically build a static lib if we build a DLL.
  8627. # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
  8628. enable_shared_with_static_runtimes=yes
  8629. exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  8630. export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
  8631. # Don't use ranlib
  8632. old_postinstall_cmds='chmod 644 $oldlib'
  8633. postlink_cmds='lt_outputfile="@OUTPUT@"~
  8634. lt_tool_outputfile="@TOOL_OUTPUT@"~
  8635. case $lt_outputfile in
  8636. *.exe|*.EXE) ;;
  8637. *)
  8638. lt_outputfile="$lt_outputfile.exe"
  8639. lt_tool_outputfile="$lt_tool_outputfile.exe"
  8640. ;;
  8641. esac~
  8642. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  8643. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  8644. $RM "$lt_outputfile.manifest";
  8645. fi'
  8646. ;;
  8647. *)
  8648. # Assume MSVC wrapper
  8649. hardcode_libdir_flag_spec=' '
  8650. allow_undefined_flag=unsupported
  8651. # Tell ltmain to make .lib files, not .a files.
  8652. libext=lib
  8653. # Tell ltmain to make .dll files, not .so files.
  8654. shrext_cmds=".dll"
  8655. # FIXME: Setting linknames here is a bad hack.
  8656. archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
  8657. # The linker will automatically build a .lib file if we build a DLL.
  8658. old_archive_from_new_cmds='true'
  8659. # FIXME: Should let the user specify the lib program.
  8660. old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
  8661. enable_shared_with_static_runtimes=yes
  8662. ;;
  8663. esac
  8664. ;;
  8665. darwin* | rhapsody*)
  8666. archive_cmds_need_lc=no
  8667. hardcode_direct=no
  8668. hardcode_automatic=yes
  8669. hardcode_shlibpath_var=unsupported
  8670. if test "$lt_cv_ld_force_load" = "yes"; then
  8671. 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\"`'
  8672. else
  8673. whole_archive_flag_spec=''
  8674. fi
  8675. link_all_deplibs=yes
  8676. allow_undefined_flag="$_lt_dar_allow_undefined"
  8677. case $cc_basename in
  8678. ifort*) _lt_dar_can_shared=yes ;;
  8679. *) _lt_dar_can_shared=$GCC ;;
  8680. esac
  8681. if test "$_lt_dar_can_shared" = "yes"; then
  8682. output_verbose_link_cmd=func_echo_all
  8683. archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  8684. module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  8685. 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}"
  8686. 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}"
  8687. else
  8688. ld_shlibs=no
  8689. fi
  8690. ;;
  8691. dgux*)
  8692. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8693. hardcode_libdir_flag_spec='-L$libdir'
  8694. hardcode_shlibpath_var=no
  8695. ;;
  8696. # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
  8697. # support. Future versions do this automatically, but an explicit c++rt0.o
  8698. # does not break anything, and helps significantly (at the cost of a little
  8699. # extra space).
  8700. freebsd2.2*)
  8701. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
  8702. hardcode_libdir_flag_spec='-R$libdir'
  8703. hardcode_direct=yes
  8704. hardcode_shlibpath_var=no
  8705. ;;
  8706. # Unfortunately, older versions of FreeBSD 2 do not have this feature.
  8707. freebsd2.*)
  8708. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8709. hardcode_direct=yes
  8710. hardcode_minus_L=yes
  8711. hardcode_shlibpath_var=no
  8712. ;;
  8713. # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
  8714. freebsd* | dragonfly*)
  8715. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8716. hardcode_libdir_flag_spec='-R$libdir'
  8717. hardcode_direct=yes
  8718. hardcode_shlibpath_var=no
  8719. ;;
  8720. hpux9*)
  8721. if test "$GCC" = yes; then
  8722. archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  8723. else
  8724. 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'
  8725. fi
  8726. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8727. hardcode_libdir_separator=:
  8728. hardcode_direct=yes
  8729. # hardcode_minus_L: Not really in the search PATH,
  8730. # but as the default location of the library.
  8731. hardcode_minus_L=yes
  8732. export_dynamic_flag_spec='${wl}-E'
  8733. ;;
  8734. hpux10*)
  8735. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8736. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8737. else
  8738. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8739. fi
  8740. if test "$with_gnu_ld" = no; then
  8741. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8742. hardcode_libdir_separator=:
  8743. hardcode_direct=yes
  8744. hardcode_direct_absolute=yes
  8745. export_dynamic_flag_spec='${wl}-E'
  8746. # hardcode_minus_L: Not really in the search PATH,
  8747. # but as the default location of the library.
  8748. hardcode_minus_L=yes
  8749. fi
  8750. ;;
  8751. hpux11*)
  8752. if test "$GCC" = yes && test "$with_gnu_ld" = no; then
  8753. case $host_cpu in
  8754. hppa*64*)
  8755. archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8756. ;;
  8757. ia64*)
  8758. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8759. ;;
  8760. *)
  8761. archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8762. ;;
  8763. esac
  8764. else
  8765. case $host_cpu in
  8766. hppa*64*)
  8767. archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8768. ;;
  8769. ia64*)
  8770. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
  8771. ;;
  8772. *)
  8773. # Older versions of the 11.00 compiler do not understand -b yet
  8774. # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
  8775. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
  8776. $as_echo_n "checking if $CC understands -b... " >&6; }
  8777. if ${lt_cv_prog_compiler__b+:} false; then :
  8778. $as_echo_n "(cached) " >&6
  8779. else
  8780. lt_cv_prog_compiler__b=no
  8781. save_LDFLAGS="$LDFLAGS"
  8782. LDFLAGS="$LDFLAGS -b"
  8783. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  8784. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  8785. # The linker can only warn and ignore the option if not recognized
  8786. # So say no if there are warnings
  8787. if test -s conftest.err; then
  8788. # Append any errors to the config.log.
  8789. cat conftest.err 1>&5
  8790. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  8791. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  8792. if diff conftest.exp conftest.er2 >/dev/null; then
  8793. lt_cv_prog_compiler__b=yes
  8794. fi
  8795. else
  8796. lt_cv_prog_compiler__b=yes
  8797. fi
  8798. fi
  8799. $RM -r conftest*
  8800. LDFLAGS="$save_LDFLAGS"
  8801. fi
  8802. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
  8803. $as_echo "$lt_cv_prog_compiler__b" >&6; }
  8804. if test x"$lt_cv_prog_compiler__b" = xyes; then
  8805. archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
  8806. else
  8807. archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
  8808. fi
  8809. ;;
  8810. esac
  8811. fi
  8812. if test "$with_gnu_ld" = no; then
  8813. hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
  8814. hardcode_libdir_separator=:
  8815. case $host_cpu in
  8816. hppa*64*|ia64*)
  8817. hardcode_direct=no
  8818. hardcode_shlibpath_var=no
  8819. ;;
  8820. *)
  8821. hardcode_direct=yes
  8822. hardcode_direct_absolute=yes
  8823. export_dynamic_flag_spec='${wl}-E'
  8824. # hardcode_minus_L: Not really in the search PATH,
  8825. # but as the default location of the library.
  8826. hardcode_minus_L=yes
  8827. ;;
  8828. esac
  8829. fi
  8830. ;;
  8831. irix5* | irix6* | nonstopux*)
  8832. if test "$GCC" = yes; then
  8833. archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8834. # Try to use the -exported_symbol ld option, if it does not
  8835. # work, assume that -exports_file does not work either and
  8836. # implicitly export all symbols.
  8837. # This should be the same for all languages, so no per-tag cache variable.
  8838. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
  8839. $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
  8840. if ${lt_cv_irix_exported_symbol+:} false; then :
  8841. $as_echo_n "(cached) " >&6
  8842. else
  8843. save_LDFLAGS="$LDFLAGS"
  8844. LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
  8845. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  8846. /* end confdefs.h. */
  8847. int foo (void) { return 0; }
  8848. _ACEOF
  8849. if ac_fn_c_try_link "$LINENO"; then :
  8850. lt_cv_irix_exported_symbol=yes
  8851. else
  8852. lt_cv_irix_exported_symbol=no
  8853. fi
  8854. rm -f core conftest.err conftest.$ac_objext \
  8855. conftest$ac_exeext conftest.$ac_ext
  8856. LDFLAGS="$save_LDFLAGS"
  8857. fi
  8858. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
  8859. $as_echo "$lt_cv_irix_exported_symbol" >&6; }
  8860. if test "$lt_cv_irix_exported_symbol" = yes; then
  8861. archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
  8862. fi
  8863. else
  8864. 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'
  8865. 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'
  8866. fi
  8867. archive_cmds_need_lc='no'
  8868. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8869. hardcode_libdir_separator=:
  8870. inherit_rpath=yes
  8871. link_all_deplibs=yes
  8872. ;;
  8873. netbsd*)
  8874. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  8875. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
  8876. else
  8877. archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
  8878. fi
  8879. hardcode_libdir_flag_spec='-R$libdir'
  8880. hardcode_direct=yes
  8881. hardcode_shlibpath_var=no
  8882. ;;
  8883. newsos6)
  8884. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8885. hardcode_direct=yes
  8886. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8887. hardcode_libdir_separator=:
  8888. hardcode_shlibpath_var=no
  8889. ;;
  8890. *nto* | *qnx*)
  8891. ;;
  8892. openbsd*)
  8893. if test -f /usr/libexec/ld.so; then
  8894. hardcode_direct=yes
  8895. hardcode_shlibpath_var=no
  8896. hardcode_direct_absolute=yes
  8897. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  8898. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8899. archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
  8900. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8901. export_dynamic_flag_spec='${wl}-E'
  8902. else
  8903. case $host_os in
  8904. openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
  8905. archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
  8906. hardcode_libdir_flag_spec='-R$libdir'
  8907. ;;
  8908. *)
  8909. archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
  8910. hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
  8911. ;;
  8912. esac
  8913. fi
  8914. else
  8915. ld_shlibs=no
  8916. fi
  8917. ;;
  8918. os2*)
  8919. hardcode_libdir_flag_spec='-L$libdir'
  8920. hardcode_minus_L=yes
  8921. allow_undefined_flag=unsupported
  8922. 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'
  8923. old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
  8924. ;;
  8925. osf3*)
  8926. if test "$GCC" = yes; then
  8927. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8928. 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'
  8929. else
  8930. allow_undefined_flag=' -expect_unresolved \*'
  8931. 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'
  8932. fi
  8933. archive_cmds_need_lc='no'
  8934. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8935. hardcode_libdir_separator=:
  8936. ;;
  8937. osf4* | osf5*) # as osf3* with the addition of -msym flag
  8938. if test "$GCC" = yes; then
  8939. allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
  8940. archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
  8941. hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
  8942. else
  8943. allow_undefined_flag=' -expect_unresolved \*'
  8944. 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'
  8945. 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~
  8946. $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'
  8947. # Both c and cxx compiler support -rpath directly
  8948. hardcode_libdir_flag_spec='-rpath $libdir'
  8949. fi
  8950. archive_cmds_need_lc='no'
  8951. hardcode_libdir_separator=:
  8952. ;;
  8953. solaris*)
  8954. no_undefined_flag=' -z defs'
  8955. if test "$GCC" = yes; then
  8956. wlarc='${wl}'
  8957. archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
  8958. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8959. $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8960. else
  8961. case `$CC -V 2>&1` in
  8962. *"Compilers 5.0"*)
  8963. wlarc=''
  8964. archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
  8965. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8966. $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
  8967. ;;
  8968. *)
  8969. wlarc='${wl}'
  8970. archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8971. archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  8972. $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
  8973. ;;
  8974. esac
  8975. fi
  8976. hardcode_libdir_flag_spec='-R$libdir'
  8977. hardcode_shlibpath_var=no
  8978. case $host_os in
  8979. solaris2.[0-5] | solaris2.[0-5].*) ;;
  8980. *)
  8981. # The compiler driver will combine and reorder linker options,
  8982. # but understands `-z linker_flag'. GCC discards it without `$wl',
  8983. # but is careful enough not to reorder.
  8984. # Supported since Solaris 2.6 (maybe 2.5.1?)
  8985. if test "$GCC" = yes; then
  8986. whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  8987. else
  8988. whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
  8989. fi
  8990. ;;
  8991. esac
  8992. link_all_deplibs=yes
  8993. ;;
  8994. sunos4*)
  8995. if test "x$host_vendor" = xsequent; then
  8996. # Use $CC to link under sequent, because it throws in some extra .o
  8997. # files that make .init and .fini sections work.
  8998. archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
  8999. else
  9000. archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
  9001. fi
  9002. hardcode_libdir_flag_spec='-L$libdir'
  9003. hardcode_direct=yes
  9004. hardcode_minus_L=yes
  9005. hardcode_shlibpath_var=no
  9006. ;;
  9007. sysv4)
  9008. case $host_vendor in
  9009. sni)
  9010. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9011. hardcode_direct=yes # is this really true???
  9012. ;;
  9013. siemens)
  9014. ## LD is ld it makes a PLAMLIB
  9015. ## CC just makes a GrossModule.
  9016. archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
  9017. reload_cmds='$CC -r -o $output$reload_objs'
  9018. hardcode_direct=no
  9019. ;;
  9020. motorola)
  9021. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9022. hardcode_direct=no #Motorola manual says yes, but my tests say they lie
  9023. ;;
  9024. esac
  9025. runpath_var='LD_RUN_PATH'
  9026. hardcode_shlibpath_var=no
  9027. ;;
  9028. sysv4.3*)
  9029. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9030. hardcode_shlibpath_var=no
  9031. export_dynamic_flag_spec='-Bexport'
  9032. ;;
  9033. sysv4*MP*)
  9034. if test -d /usr/nec; then
  9035. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9036. hardcode_shlibpath_var=no
  9037. runpath_var=LD_RUN_PATH
  9038. hardcode_runpath_var=yes
  9039. ld_shlibs=yes
  9040. fi
  9041. ;;
  9042. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  9043. no_undefined_flag='${wl}-z,text'
  9044. archive_cmds_need_lc=no
  9045. hardcode_shlibpath_var=no
  9046. runpath_var='LD_RUN_PATH'
  9047. if test "$GCC" = yes; then
  9048. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9049. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9050. else
  9051. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9052. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9053. fi
  9054. ;;
  9055. sysv5* | sco3.2v5* | sco5v6*)
  9056. # Note: We can NOT use -z defs as we might desire, because we do not
  9057. # link with -lc, and that would cause any symbols used from libc to
  9058. # always be unresolved, which means just about no library would
  9059. # ever link correctly. If we're not using GNU ld we use -z text
  9060. # though, which does catch some bad symbols but isn't as heavy-handed
  9061. # as -z defs.
  9062. no_undefined_flag='${wl}-z,text'
  9063. allow_undefined_flag='${wl}-z,nodefs'
  9064. archive_cmds_need_lc=no
  9065. hardcode_shlibpath_var=no
  9066. hardcode_libdir_flag_spec='${wl}-R,$libdir'
  9067. hardcode_libdir_separator=':'
  9068. link_all_deplibs=yes
  9069. export_dynamic_flag_spec='${wl}-Bexport'
  9070. runpath_var='LD_RUN_PATH'
  9071. if test "$GCC" = yes; then
  9072. archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9073. archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9074. else
  9075. archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9076. archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  9077. fi
  9078. ;;
  9079. uts4*)
  9080. archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
  9081. hardcode_libdir_flag_spec='-L$libdir'
  9082. hardcode_shlibpath_var=no
  9083. ;;
  9084. *)
  9085. ld_shlibs=no
  9086. ;;
  9087. esac
  9088. if test x$host_vendor = xsni; then
  9089. case $host in
  9090. sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
  9091. export_dynamic_flag_spec='${wl}-Blargedynsym'
  9092. ;;
  9093. esac
  9094. fi
  9095. fi
  9096. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
  9097. $as_echo "$ld_shlibs" >&6; }
  9098. test "$ld_shlibs" = no && can_build_shared=no
  9099. with_gnu_ld=$with_gnu_ld
  9100. #
  9101. # Do we need to explicitly link libc?
  9102. #
  9103. case "x$archive_cmds_need_lc" in
  9104. x|xyes)
  9105. # Assume -lc should be added
  9106. archive_cmds_need_lc=yes
  9107. if test "$enable_shared" = yes && test "$GCC" = yes; then
  9108. case $archive_cmds in
  9109. *'~'*)
  9110. # FIXME: we may have to deal with multi-command sequences.
  9111. ;;
  9112. '$CC '*)
  9113. # Test whether the compiler implicitly links with -lc since on some
  9114. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  9115. # to ld, don't add -lc before -lgcc.
  9116. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  9117. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  9118. if ${lt_cv_archive_cmds_need_lc+:} false; then :
  9119. $as_echo_n "(cached) " >&6
  9120. else
  9121. $RM conftest*
  9122. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  9123. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  9124. (eval $ac_compile) 2>&5
  9125. ac_status=$?
  9126. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9127. test $ac_status = 0; } 2>conftest.err; then
  9128. soname=conftest
  9129. lib=conftest
  9130. libobjs=conftest.$ac_objext
  9131. deplibs=
  9132. wl=$lt_prog_compiler_wl
  9133. pic_flag=$lt_prog_compiler_pic
  9134. compiler_flags=-v
  9135. linker_flags=-v
  9136. verstring=
  9137. output_objdir=.
  9138. libname=conftest
  9139. lt_save_allow_undefined_flag=$allow_undefined_flag
  9140. allow_undefined_flag=
  9141. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  9142. (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  9143. ac_status=$?
  9144. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  9145. test $ac_status = 0; }
  9146. then
  9147. lt_cv_archive_cmds_need_lc=no
  9148. else
  9149. lt_cv_archive_cmds_need_lc=yes
  9150. fi
  9151. allow_undefined_flag=$lt_save_allow_undefined_flag
  9152. else
  9153. cat conftest.err 1>&5
  9154. fi
  9155. $RM conftest*
  9156. fi
  9157. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
  9158. $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
  9159. archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
  9160. ;;
  9161. esac
  9162. fi
  9163. ;;
  9164. esac
  9165. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  9166. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  9167. if test "$GCC" = yes; then
  9168. case $host_os in
  9169. darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
  9170. *) lt_awk_arg="/^libraries:/" ;;
  9171. esac
  9172. case $host_os in
  9173. mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
  9174. *) lt_sed_strip_eq="s,=/,/,g" ;;
  9175. esac
  9176. lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
  9177. case $lt_search_path_spec in
  9178. *\;*)
  9179. # if the path contains ";" then we assume it to be the separator
  9180. # otherwise default to the standard path separator (i.e. ":") - it is
  9181. # assumed that no part of a normal pathname contains ";" but that should
  9182. # okay in the real world where ";" in dirpaths is itself problematic.
  9183. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
  9184. ;;
  9185. *)
  9186. lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
  9187. ;;
  9188. esac
  9189. # Ok, now we have the path, separated by spaces, we can step through it
  9190. # and add multilib dir if necessary.
  9191. lt_tmp_lt_search_path_spec=
  9192. lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
  9193. for lt_sys_path in $lt_search_path_spec; do
  9194. if test -d "$lt_sys_path/$lt_multi_os_dir"; then
  9195. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
  9196. else
  9197. test -d "$lt_sys_path" && \
  9198. lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
  9199. fi
  9200. done
  9201. lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
  9202. BEGIN {RS=" "; FS="/|\n";} {
  9203. lt_foo="";
  9204. lt_count=0;
  9205. for (lt_i = NF; lt_i > 0; lt_i--) {
  9206. if ($lt_i != "" && $lt_i != ".") {
  9207. if ($lt_i == "..") {
  9208. lt_count++;
  9209. } else {
  9210. if (lt_count == 0) {
  9211. lt_foo="/" $lt_i lt_foo;
  9212. } else {
  9213. lt_count--;
  9214. }
  9215. }
  9216. }
  9217. }
  9218. if (lt_foo != "") { lt_freq[lt_foo]++; }
  9219. if (lt_freq[lt_foo] == 1) { print lt_foo; }
  9220. }'`
  9221. # AWK program above erroneously prepends '/' to C:/dos/paths
  9222. # for these hosts.
  9223. case $host_os in
  9224. mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
  9225. $SED 's,/\([A-Za-z]:\),\1,g'` ;;
  9226. esac
  9227. sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
  9228. else
  9229. sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
  9230. fi
  9231. library_names_spec=
  9232. libname_spec='lib$name'
  9233. soname_spec=
  9234. shrext_cmds=".so"
  9235. postinstall_cmds=
  9236. postuninstall_cmds=
  9237. finish_cmds=
  9238. finish_eval=
  9239. shlibpath_var=
  9240. shlibpath_overrides_runpath=unknown
  9241. version_type=none
  9242. dynamic_linker="$host_os ld.so"
  9243. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  9244. need_lib_prefix=unknown
  9245. hardcode_into_libs=no
  9246. # when you set need_version to no, make sure it does not cause -set_version
  9247. # flags to be left without arguments
  9248. need_version=unknown
  9249. case $host_os in
  9250. aix3*)
  9251. version_type=linux # correct to gnu/linux during the next big refactor
  9252. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  9253. shlibpath_var=LIBPATH
  9254. # AIX 3 has no versioning support, so we append a major version to the name.
  9255. soname_spec='${libname}${release}${shared_ext}$major'
  9256. ;;
  9257. aix[4-9]*)
  9258. version_type=linux # correct to gnu/linux during the next big refactor
  9259. need_lib_prefix=no
  9260. need_version=no
  9261. hardcode_into_libs=yes
  9262. if test "$host_cpu" = ia64; then
  9263. # AIX 5 supports IA64
  9264. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  9265. shlibpath_var=LD_LIBRARY_PATH
  9266. else
  9267. # With GCC up to 2.95.x, collect2 would create an import file
  9268. # for dependence libraries. The import file would start with
  9269. # the line `#! .'. This would cause the generated library to
  9270. # depend on `.', always an invalid library. This was fixed in
  9271. # development snapshots of GCC prior to 3.0.
  9272. case $host_os in
  9273. aix4 | aix4.[01] | aix4.[01].*)
  9274. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  9275. echo ' yes '
  9276. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  9277. :
  9278. else
  9279. can_build_shared=no
  9280. fi
  9281. ;;
  9282. esac
  9283. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  9284. # soname into executable. Probably we can add versioning support to
  9285. # collect2, so additional links can be useful in future.
  9286. if test "$aix_use_runtimelinking" = yes; then
  9287. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  9288. # instead of lib<name>.a to let people know that these are not
  9289. # typical AIX shared libraries.
  9290. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9291. else
  9292. # We preserve .a as extension for shared libraries through AIX4.2
  9293. # and later when we are not doing run time linking.
  9294. library_names_spec='${libname}${release}.a $libname.a'
  9295. soname_spec='${libname}${release}${shared_ext}$major'
  9296. fi
  9297. shlibpath_var=LIBPATH
  9298. fi
  9299. ;;
  9300. amigaos*)
  9301. case $host_cpu in
  9302. powerpc)
  9303. # Since July 2007 AmigaOS4 officially supports .so libraries.
  9304. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  9305. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9306. ;;
  9307. m68k)
  9308. library_names_spec='$libname.ixlibrary $libname.a'
  9309. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  9310. 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'
  9311. ;;
  9312. esac
  9313. ;;
  9314. beos*)
  9315. library_names_spec='${libname}${shared_ext}'
  9316. dynamic_linker="$host_os ld.so"
  9317. shlibpath_var=LIBRARY_PATH
  9318. ;;
  9319. bsdi[45]*)
  9320. version_type=linux # correct to gnu/linux during the next big refactor
  9321. need_version=no
  9322. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9323. soname_spec='${libname}${release}${shared_ext}$major'
  9324. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  9325. shlibpath_var=LD_LIBRARY_PATH
  9326. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  9327. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  9328. # the default ld.so.conf also contains /usr/contrib/lib and
  9329. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  9330. # libtool to hard-code these into programs
  9331. ;;
  9332. cygwin* | mingw* | pw32* | cegcc*)
  9333. version_type=windows
  9334. shrext_cmds=".dll"
  9335. need_version=no
  9336. need_lib_prefix=no
  9337. case $GCC,$cc_basename in
  9338. yes,*)
  9339. # gcc
  9340. library_names_spec='$libname.dll.a'
  9341. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9342. postinstall_cmds='base_file=`basename \${file}`~
  9343. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9344. dldir=$destdir/`dirname \$dlpath`~
  9345. test -d \$dldir || mkdir -p \$dldir~
  9346. $install_prog $dir/$dlname \$dldir/$dlname~
  9347. chmod a+x \$dldir/$dlname~
  9348. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  9349. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  9350. fi'
  9351. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9352. dlpath=$dir/\$dldll~
  9353. $RM \$dlpath'
  9354. shlibpath_overrides_runpath=yes
  9355. case $host_os in
  9356. cygwin*)
  9357. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  9358. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9359. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
  9360. ;;
  9361. mingw* | cegcc*)
  9362. # MinGW DLLs use traditional 'lib' prefix
  9363. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9364. ;;
  9365. pw32*)
  9366. # pw32 DLLs use 'pw' prefix rather than 'lib'
  9367. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9368. ;;
  9369. esac
  9370. dynamic_linker='Win32 ld.exe'
  9371. ;;
  9372. *,cl*)
  9373. # Native MSVC
  9374. libname_spec='$name'
  9375. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  9376. library_names_spec='${libname}.dll.lib'
  9377. case $build_os in
  9378. mingw*)
  9379. sys_lib_search_path_spec=
  9380. lt_save_ifs=$IFS
  9381. IFS=';'
  9382. for lt_path in $LIB
  9383. do
  9384. IFS=$lt_save_ifs
  9385. # Let DOS variable expansion print the short 8.3 style file name.
  9386. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  9387. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  9388. done
  9389. IFS=$lt_save_ifs
  9390. # Convert to MSYS style.
  9391. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  9392. ;;
  9393. cygwin*)
  9394. # Convert to unix form, then to dos form, then back to unix form
  9395. # but this time dos style (no spaces!) so that the unix form looks
  9396. # like /cygdrive/c/PROGRA~1:/cygdr...
  9397. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  9398. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  9399. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9400. ;;
  9401. *)
  9402. sys_lib_search_path_spec="$LIB"
  9403. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  9404. # It is most probably a Windows format PATH.
  9405. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  9406. else
  9407. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  9408. fi
  9409. # FIXME: find the short name or the path components, as spaces are
  9410. # common. (e.g. "Program Files" -> "PROGRA~1")
  9411. ;;
  9412. esac
  9413. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  9414. postinstall_cmds='base_file=`basename \${file}`~
  9415. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  9416. dldir=$destdir/`dirname \$dlpath`~
  9417. test -d \$dldir || mkdir -p \$dldir~
  9418. $install_prog $dir/$dlname \$dldir/$dlname'
  9419. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  9420. dlpath=$dir/\$dldll~
  9421. $RM \$dlpath'
  9422. shlibpath_overrides_runpath=yes
  9423. dynamic_linker='Win32 link.exe'
  9424. ;;
  9425. *)
  9426. # Assume MSVC wrapper
  9427. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  9428. dynamic_linker='Win32 ld.exe'
  9429. ;;
  9430. esac
  9431. # FIXME: first we should search . and the directory the executable is in
  9432. shlibpath_var=PATH
  9433. ;;
  9434. darwin* | rhapsody*)
  9435. dynamic_linker="$host_os dyld"
  9436. version_type=darwin
  9437. need_lib_prefix=no
  9438. need_version=no
  9439. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  9440. soname_spec='${libname}${release}${major}$shared_ext'
  9441. shlibpath_overrides_runpath=yes
  9442. shlibpath_var=DYLD_LIBRARY_PATH
  9443. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  9444. sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
  9445. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  9446. ;;
  9447. dgux*)
  9448. version_type=linux # correct to gnu/linux during the next big refactor
  9449. need_lib_prefix=no
  9450. need_version=no
  9451. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  9452. soname_spec='${libname}${release}${shared_ext}$major'
  9453. shlibpath_var=LD_LIBRARY_PATH
  9454. ;;
  9455. freebsd* | dragonfly*)
  9456. # DragonFly does not have aout. When/if they implement a new
  9457. # versioning mechanism, adjust this.
  9458. if test -x /usr/bin/objformat; then
  9459. objformat=`/usr/bin/objformat`
  9460. else
  9461. case $host_os in
  9462. freebsd[23].*) objformat=aout ;;
  9463. *) objformat=elf ;;
  9464. esac
  9465. fi
  9466. version_type=freebsd-$objformat
  9467. case $version_type in
  9468. freebsd-elf*)
  9469. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9470. need_version=no
  9471. need_lib_prefix=no
  9472. ;;
  9473. freebsd-*)
  9474. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  9475. need_version=yes
  9476. ;;
  9477. esac
  9478. shlibpath_var=LD_LIBRARY_PATH
  9479. case $host_os in
  9480. freebsd2.*)
  9481. shlibpath_overrides_runpath=yes
  9482. ;;
  9483. freebsd3.[01]* | freebsdelf3.[01]*)
  9484. shlibpath_overrides_runpath=yes
  9485. hardcode_into_libs=yes
  9486. ;;
  9487. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  9488. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  9489. shlibpath_overrides_runpath=no
  9490. hardcode_into_libs=yes
  9491. ;;
  9492. *) # from 4.6 on, and DragonFly
  9493. shlibpath_overrides_runpath=yes
  9494. hardcode_into_libs=yes
  9495. ;;
  9496. esac
  9497. ;;
  9498. gnu*)
  9499. version_type=linux # correct to gnu/linux during the next big refactor
  9500. need_lib_prefix=no
  9501. need_version=no
  9502. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9503. soname_spec='${libname}${release}${shared_ext}$major'
  9504. shlibpath_var=LD_LIBRARY_PATH
  9505. shlibpath_overrides_runpath=no
  9506. hardcode_into_libs=yes
  9507. ;;
  9508. haiku*)
  9509. version_type=linux # correct to gnu/linux during the next big refactor
  9510. need_lib_prefix=no
  9511. need_version=no
  9512. dynamic_linker="$host_os runtime_loader"
  9513. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  9514. soname_spec='${libname}${release}${shared_ext}$major'
  9515. shlibpath_var=LIBRARY_PATH
  9516. shlibpath_overrides_runpath=yes
  9517. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  9518. hardcode_into_libs=yes
  9519. ;;
  9520. hpux9* | hpux10* | hpux11*)
  9521. # Give a soname corresponding to the major version so that dld.sl refuses to
  9522. # link against other versions.
  9523. version_type=sunos
  9524. need_lib_prefix=no
  9525. need_version=no
  9526. case $host_cpu in
  9527. ia64*)
  9528. shrext_cmds='.so'
  9529. hardcode_into_libs=yes
  9530. dynamic_linker="$host_os dld.so"
  9531. shlibpath_var=LD_LIBRARY_PATH
  9532. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9533. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9534. soname_spec='${libname}${release}${shared_ext}$major'
  9535. if test "X$HPUX_IA64_MODE" = X32; then
  9536. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  9537. else
  9538. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  9539. fi
  9540. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9541. ;;
  9542. hppa*64*)
  9543. shrext_cmds='.sl'
  9544. hardcode_into_libs=yes
  9545. dynamic_linker="$host_os dld.sl"
  9546. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  9547. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  9548. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9549. soname_spec='${libname}${release}${shared_ext}$major'
  9550. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  9551. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  9552. ;;
  9553. *)
  9554. shrext_cmds='.sl'
  9555. dynamic_linker="$host_os dld.sl"
  9556. shlibpath_var=SHLIB_PATH
  9557. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  9558. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9559. soname_spec='${libname}${release}${shared_ext}$major'
  9560. ;;
  9561. esac
  9562. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  9563. postinstall_cmds='chmod 555 $lib'
  9564. # or fails outright, so override atomically:
  9565. install_override_mode=555
  9566. ;;
  9567. interix[3-9]*)
  9568. version_type=linux # correct to gnu/linux during the next big refactor
  9569. need_lib_prefix=no
  9570. need_version=no
  9571. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9572. soname_spec='${libname}${release}${shared_ext}$major'
  9573. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  9574. shlibpath_var=LD_LIBRARY_PATH
  9575. shlibpath_overrides_runpath=no
  9576. hardcode_into_libs=yes
  9577. ;;
  9578. irix5* | irix6* | nonstopux*)
  9579. case $host_os in
  9580. nonstopux*) version_type=nonstopux ;;
  9581. *)
  9582. if test "$lt_cv_prog_gnu_ld" = yes; then
  9583. version_type=linux # correct to gnu/linux during the next big refactor
  9584. else
  9585. version_type=irix
  9586. fi ;;
  9587. esac
  9588. need_lib_prefix=no
  9589. need_version=no
  9590. soname_spec='${libname}${release}${shared_ext}$major'
  9591. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  9592. case $host_os in
  9593. irix5* | nonstopux*)
  9594. libsuff= shlibsuff=
  9595. ;;
  9596. *)
  9597. case $LD in # libtool.m4 will add one of these switches to LD
  9598. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  9599. libsuff= shlibsuff= libmagic=32-bit;;
  9600. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  9601. libsuff=32 shlibsuff=N32 libmagic=N32;;
  9602. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  9603. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  9604. *) libsuff= shlibsuff= libmagic=never-match;;
  9605. esac
  9606. ;;
  9607. esac
  9608. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  9609. shlibpath_overrides_runpath=no
  9610. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  9611. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  9612. hardcode_into_libs=yes
  9613. ;;
  9614. # No shared lib support for Linux oldld, aout, or coff.
  9615. linux*oldld* | linux*aout* | linux*coff*)
  9616. dynamic_linker=no
  9617. ;;
  9618. # This must be glibc/ELF.
  9619. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  9620. version_type=linux # correct to gnu/linux during the next big refactor
  9621. need_lib_prefix=no
  9622. need_version=no
  9623. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9624. soname_spec='${libname}${release}${shared_ext}$major'
  9625. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  9626. shlibpath_var=LD_LIBRARY_PATH
  9627. shlibpath_overrides_runpath=no
  9628. # Some binutils ld are patched to set DT_RUNPATH
  9629. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  9630. $as_echo_n "(cached) " >&6
  9631. else
  9632. lt_cv_shlibpath_overrides_runpath=no
  9633. save_LDFLAGS=$LDFLAGS
  9634. save_libdir=$libdir
  9635. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
  9636. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
  9637. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9638. /* end confdefs.h. */
  9639. int
  9640. main ()
  9641. {
  9642. ;
  9643. return 0;
  9644. }
  9645. _ACEOF
  9646. if ac_fn_c_try_link "$LINENO"; then :
  9647. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  9648. lt_cv_shlibpath_overrides_runpath=yes
  9649. fi
  9650. fi
  9651. rm -f core conftest.err conftest.$ac_objext \
  9652. conftest$ac_exeext conftest.$ac_ext
  9653. LDFLAGS=$save_LDFLAGS
  9654. libdir=$save_libdir
  9655. fi
  9656. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  9657. # This implies no fast_install, which is unacceptable.
  9658. # Some rework will be needed to allow for fast_install
  9659. # before this can be enabled.
  9660. hardcode_into_libs=yes
  9661. # Append ld.so.conf contents to the search path
  9662. if test -f /etc/ld.so.conf; then
  9663. 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' ' '`
  9664. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  9665. fi
  9666. # We used to test for /lib/ld.so.1 and disable shared libraries on
  9667. # powerpc, because MkLinux only supported shared libraries with the
  9668. # GNU dynamic linker. Since this was broken with cross compilers,
  9669. # most powerpc-linux boxes support dynamic linking these days and
  9670. # people can always --disable-shared, the test was removed, and we
  9671. # assume the GNU/Linux dynamic linker is in use.
  9672. dynamic_linker='GNU/Linux ld.so'
  9673. ;;
  9674. netbsd*)
  9675. version_type=sunos
  9676. need_lib_prefix=no
  9677. need_version=no
  9678. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  9679. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9680. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9681. dynamic_linker='NetBSD (a.out) ld.so'
  9682. else
  9683. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  9684. soname_spec='${libname}${release}${shared_ext}$major'
  9685. dynamic_linker='NetBSD ld.elf_so'
  9686. fi
  9687. shlibpath_var=LD_LIBRARY_PATH
  9688. shlibpath_overrides_runpath=yes
  9689. hardcode_into_libs=yes
  9690. ;;
  9691. newsos6)
  9692. version_type=linux # correct to gnu/linux during the next big refactor
  9693. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9694. shlibpath_var=LD_LIBRARY_PATH
  9695. shlibpath_overrides_runpath=yes
  9696. ;;
  9697. *nto* | *qnx*)
  9698. version_type=qnx
  9699. need_lib_prefix=no
  9700. need_version=no
  9701. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9702. soname_spec='${libname}${release}${shared_ext}$major'
  9703. shlibpath_var=LD_LIBRARY_PATH
  9704. shlibpath_overrides_runpath=no
  9705. hardcode_into_libs=yes
  9706. dynamic_linker='ldqnx.so'
  9707. ;;
  9708. openbsd*)
  9709. version_type=sunos
  9710. sys_lib_dlsearch_path_spec="/usr/lib"
  9711. need_lib_prefix=no
  9712. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  9713. case $host_os in
  9714. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  9715. *) need_version=no ;;
  9716. esac
  9717. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9718. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  9719. shlibpath_var=LD_LIBRARY_PATH
  9720. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  9721. case $host_os in
  9722. openbsd2.[89] | openbsd2.[89].*)
  9723. shlibpath_overrides_runpath=no
  9724. ;;
  9725. *)
  9726. shlibpath_overrides_runpath=yes
  9727. ;;
  9728. esac
  9729. else
  9730. shlibpath_overrides_runpath=yes
  9731. fi
  9732. ;;
  9733. os2*)
  9734. libname_spec='$name'
  9735. shrext_cmds=".dll"
  9736. need_lib_prefix=no
  9737. library_names_spec='$libname${shared_ext} $libname.a'
  9738. dynamic_linker='OS/2 ld.exe'
  9739. shlibpath_var=LIBPATH
  9740. ;;
  9741. osf3* | osf4* | osf5*)
  9742. version_type=osf
  9743. need_lib_prefix=no
  9744. need_version=no
  9745. soname_spec='${libname}${release}${shared_ext}$major'
  9746. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9747. shlibpath_var=LD_LIBRARY_PATH
  9748. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  9749. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  9750. ;;
  9751. rdos*)
  9752. dynamic_linker=no
  9753. ;;
  9754. solaris*)
  9755. version_type=linux # correct to gnu/linux during the next big refactor
  9756. need_lib_prefix=no
  9757. need_version=no
  9758. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9759. soname_spec='${libname}${release}${shared_ext}$major'
  9760. shlibpath_var=LD_LIBRARY_PATH
  9761. shlibpath_overrides_runpath=yes
  9762. hardcode_into_libs=yes
  9763. # ldd complains unless libraries are executable
  9764. postinstall_cmds='chmod +x $lib'
  9765. ;;
  9766. sunos4*)
  9767. version_type=sunos
  9768. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  9769. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  9770. shlibpath_var=LD_LIBRARY_PATH
  9771. shlibpath_overrides_runpath=yes
  9772. if test "$with_gnu_ld" = yes; then
  9773. need_lib_prefix=no
  9774. fi
  9775. need_version=yes
  9776. ;;
  9777. sysv4 | sysv4.3*)
  9778. version_type=linux # correct to gnu/linux during the next big refactor
  9779. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9780. soname_spec='${libname}${release}${shared_ext}$major'
  9781. shlibpath_var=LD_LIBRARY_PATH
  9782. case $host_vendor in
  9783. sni)
  9784. shlibpath_overrides_runpath=no
  9785. need_lib_prefix=no
  9786. runpath_var=LD_RUN_PATH
  9787. ;;
  9788. siemens)
  9789. need_lib_prefix=no
  9790. ;;
  9791. motorola)
  9792. need_lib_prefix=no
  9793. need_version=no
  9794. shlibpath_overrides_runpath=no
  9795. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  9796. ;;
  9797. esac
  9798. ;;
  9799. sysv4*MP*)
  9800. if test -d /usr/nec ;then
  9801. version_type=linux # correct to gnu/linux during the next big refactor
  9802. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  9803. soname_spec='$libname${shared_ext}.$major'
  9804. shlibpath_var=LD_LIBRARY_PATH
  9805. fi
  9806. ;;
  9807. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  9808. version_type=freebsd-elf
  9809. need_lib_prefix=no
  9810. need_version=no
  9811. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  9812. soname_spec='${libname}${release}${shared_ext}$major'
  9813. shlibpath_var=LD_LIBRARY_PATH
  9814. shlibpath_overrides_runpath=yes
  9815. hardcode_into_libs=yes
  9816. if test "$with_gnu_ld" = yes; then
  9817. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  9818. else
  9819. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  9820. case $host_os in
  9821. sco3.2v5*)
  9822. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  9823. ;;
  9824. esac
  9825. fi
  9826. sys_lib_dlsearch_path_spec='/usr/lib'
  9827. ;;
  9828. tpf*)
  9829. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  9830. version_type=linux # correct to gnu/linux during the next big refactor
  9831. need_lib_prefix=no
  9832. need_version=no
  9833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9834. shlibpath_var=LD_LIBRARY_PATH
  9835. shlibpath_overrides_runpath=no
  9836. hardcode_into_libs=yes
  9837. ;;
  9838. uts4*)
  9839. version_type=linux # correct to gnu/linux during the next big refactor
  9840. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  9841. soname_spec='${libname}${release}${shared_ext}$major'
  9842. shlibpath_var=LD_LIBRARY_PATH
  9843. ;;
  9844. *)
  9845. dynamic_linker=no
  9846. ;;
  9847. esac
  9848. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  9849. $as_echo "$dynamic_linker" >&6; }
  9850. test "$dynamic_linker" = no && can_build_shared=no
  9851. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  9852. if test "$GCC" = yes; then
  9853. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  9854. fi
  9855. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  9856. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  9857. fi
  9858. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  9859. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  9860. fi
  9861. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  9862. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  9863. hardcode_action=
  9864. if test -n "$hardcode_libdir_flag_spec" ||
  9865. test -n "$runpath_var" ||
  9866. test "X$hardcode_automatic" = "Xyes" ; then
  9867. # We can hardcode non-existent directories.
  9868. if test "$hardcode_direct" != no &&
  9869. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  9870. # have to relink, otherwise we might link with an installed library
  9871. # when we should be linking with a yet-to-be-installed one
  9872. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
  9873. test "$hardcode_minus_L" != no; then
  9874. # Linking always hardcodes the temporary library directory.
  9875. hardcode_action=relink
  9876. else
  9877. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  9878. hardcode_action=immediate
  9879. fi
  9880. else
  9881. # We cannot hardcode anything, or else we can only hardcode existing
  9882. # directories.
  9883. hardcode_action=unsupported
  9884. fi
  9885. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
  9886. $as_echo "$hardcode_action" >&6; }
  9887. if test "$hardcode_action" = relink ||
  9888. test "$inherit_rpath" = yes; then
  9889. # Fast installation is not supported
  9890. enable_fast_install=no
  9891. elif test "$shlibpath_overrides_runpath" = yes ||
  9892. test "$enable_shared" = no; then
  9893. # Fast installation is not necessary
  9894. enable_fast_install=needless
  9895. fi
  9896. if test "x$enable_dlopen" != xyes; then
  9897. enable_dlopen=unknown
  9898. enable_dlopen_self=unknown
  9899. enable_dlopen_self_static=unknown
  9900. else
  9901. lt_cv_dlopen=no
  9902. lt_cv_dlopen_libs=
  9903. case $host_os in
  9904. beos*)
  9905. lt_cv_dlopen="load_add_on"
  9906. lt_cv_dlopen_libs=
  9907. lt_cv_dlopen_self=yes
  9908. ;;
  9909. mingw* | pw32* | cegcc*)
  9910. lt_cv_dlopen="LoadLibrary"
  9911. lt_cv_dlopen_libs=
  9912. ;;
  9913. cygwin*)
  9914. lt_cv_dlopen="dlopen"
  9915. lt_cv_dlopen_libs=
  9916. ;;
  9917. darwin*)
  9918. # if libdl is installed we need to link against it
  9919. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  9920. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  9921. if ${ac_cv_lib_dl_dlopen+:} false; then :
  9922. $as_echo_n "(cached) " >&6
  9923. else
  9924. ac_check_lib_save_LIBS=$LIBS
  9925. LIBS="-ldl $LIBS"
  9926. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9927. /* end confdefs.h. */
  9928. /* Override any GCC internal prototype to avoid an error.
  9929. Use char because int might match the return type of a GCC
  9930. builtin and then its argument prototype would still apply. */
  9931. #ifdef __cplusplus
  9932. extern "C"
  9933. #endif
  9934. char dlopen ();
  9935. int
  9936. main ()
  9937. {
  9938. return dlopen ();
  9939. ;
  9940. return 0;
  9941. }
  9942. _ACEOF
  9943. if ac_fn_c_try_link "$LINENO"; then :
  9944. ac_cv_lib_dl_dlopen=yes
  9945. else
  9946. ac_cv_lib_dl_dlopen=no
  9947. fi
  9948. rm -f core conftest.err conftest.$ac_objext \
  9949. conftest$ac_exeext conftest.$ac_ext
  9950. LIBS=$ac_check_lib_save_LIBS
  9951. fi
  9952. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  9953. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  9954. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  9955. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  9956. else
  9957. lt_cv_dlopen="dyld"
  9958. lt_cv_dlopen_libs=
  9959. lt_cv_dlopen_self=yes
  9960. fi
  9961. ;;
  9962. *)
  9963. ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
  9964. if test "x$ac_cv_func_shl_load" = xyes; then :
  9965. lt_cv_dlopen="shl_load"
  9966. else
  9967. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
  9968. $as_echo_n "checking for shl_load in -ldld... " >&6; }
  9969. if ${ac_cv_lib_dld_shl_load+:} false; then :
  9970. $as_echo_n "(cached) " >&6
  9971. else
  9972. ac_check_lib_save_LIBS=$LIBS
  9973. LIBS="-ldld $LIBS"
  9974. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  9975. /* end confdefs.h. */
  9976. /* Override any GCC internal prototype to avoid an error.
  9977. Use char because int might match the return type of a GCC
  9978. builtin and then its argument prototype would still apply. */
  9979. #ifdef __cplusplus
  9980. extern "C"
  9981. #endif
  9982. char shl_load ();
  9983. int
  9984. main ()
  9985. {
  9986. return shl_load ();
  9987. ;
  9988. return 0;
  9989. }
  9990. _ACEOF
  9991. if ac_fn_c_try_link "$LINENO"; then :
  9992. ac_cv_lib_dld_shl_load=yes
  9993. else
  9994. ac_cv_lib_dld_shl_load=no
  9995. fi
  9996. rm -f core conftest.err conftest.$ac_objext \
  9997. conftest$ac_exeext conftest.$ac_ext
  9998. LIBS=$ac_check_lib_save_LIBS
  9999. fi
  10000. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
  10001. $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
  10002. if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
  10003. lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
  10004. else
  10005. ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
  10006. if test "x$ac_cv_func_dlopen" = xyes; then :
  10007. lt_cv_dlopen="dlopen"
  10008. else
  10009. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
  10010. $as_echo_n "checking for dlopen in -ldl... " >&6; }
  10011. if ${ac_cv_lib_dl_dlopen+:} false; then :
  10012. $as_echo_n "(cached) " >&6
  10013. else
  10014. ac_check_lib_save_LIBS=$LIBS
  10015. LIBS="-ldl $LIBS"
  10016. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10017. /* end confdefs.h. */
  10018. /* Override any GCC internal prototype to avoid an error.
  10019. Use char because int might match the return type of a GCC
  10020. builtin and then its argument prototype would still apply. */
  10021. #ifdef __cplusplus
  10022. extern "C"
  10023. #endif
  10024. char dlopen ();
  10025. int
  10026. main ()
  10027. {
  10028. return dlopen ();
  10029. ;
  10030. return 0;
  10031. }
  10032. _ACEOF
  10033. if ac_fn_c_try_link "$LINENO"; then :
  10034. ac_cv_lib_dl_dlopen=yes
  10035. else
  10036. ac_cv_lib_dl_dlopen=no
  10037. fi
  10038. rm -f core conftest.err conftest.$ac_objext \
  10039. conftest$ac_exeext conftest.$ac_ext
  10040. LIBS=$ac_check_lib_save_LIBS
  10041. fi
  10042. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
  10043. $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
  10044. if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
  10045. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
  10046. else
  10047. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
  10048. $as_echo_n "checking for dlopen in -lsvld... " >&6; }
  10049. if ${ac_cv_lib_svld_dlopen+:} false; then :
  10050. $as_echo_n "(cached) " >&6
  10051. else
  10052. ac_check_lib_save_LIBS=$LIBS
  10053. LIBS="-lsvld $LIBS"
  10054. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10055. /* end confdefs.h. */
  10056. /* Override any GCC internal prototype to avoid an error.
  10057. Use char because int might match the return type of a GCC
  10058. builtin and then its argument prototype would still apply. */
  10059. #ifdef __cplusplus
  10060. extern "C"
  10061. #endif
  10062. char dlopen ();
  10063. int
  10064. main ()
  10065. {
  10066. return dlopen ();
  10067. ;
  10068. return 0;
  10069. }
  10070. _ACEOF
  10071. if ac_fn_c_try_link "$LINENO"; then :
  10072. ac_cv_lib_svld_dlopen=yes
  10073. else
  10074. ac_cv_lib_svld_dlopen=no
  10075. fi
  10076. rm -f core conftest.err conftest.$ac_objext \
  10077. conftest$ac_exeext conftest.$ac_ext
  10078. LIBS=$ac_check_lib_save_LIBS
  10079. fi
  10080. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
  10081. $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
  10082. if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
  10083. lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
  10084. else
  10085. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
  10086. $as_echo_n "checking for dld_link in -ldld... " >&6; }
  10087. if ${ac_cv_lib_dld_dld_link+:} false; then :
  10088. $as_echo_n "(cached) " >&6
  10089. else
  10090. ac_check_lib_save_LIBS=$LIBS
  10091. LIBS="-ldld $LIBS"
  10092. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10093. /* end confdefs.h. */
  10094. /* Override any GCC internal prototype to avoid an error.
  10095. Use char because int might match the return type of a GCC
  10096. builtin and then its argument prototype would still apply. */
  10097. #ifdef __cplusplus
  10098. extern "C"
  10099. #endif
  10100. char dld_link ();
  10101. int
  10102. main ()
  10103. {
  10104. return dld_link ();
  10105. ;
  10106. return 0;
  10107. }
  10108. _ACEOF
  10109. if ac_fn_c_try_link "$LINENO"; then :
  10110. ac_cv_lib_dld_dld_link=yes
  10111. else
  10112. ac_cv_lib_dld_dld_link=no
  10113. fi
  10114. rm -f core conftest.err conftest.$ac_objext \
  10115. conftest$ac_exeext conftest.$ac_ext
  10116. LIBS=$ac_check_lib_save_LIBS
  10117. fi
  10118. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
  10119. $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
  10120. if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
  10121. lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
  10122. fi
  10123. fi
  10124. fi
  10125. fi
  10126. fi
  10127. fi
  10128. ;;
  10129. esac
  10130. if test "x$lt_cv_dlopen" != xno; then
  10131. enable_dlopen=yes
  10132. else
  10133. enable_dlopen=no
  10134. fi
  10135. case $lt_cv_dlopen in
  10136. dlopen)
  10137. save_CPPFLAGS="$CPPFLAGS"
  10138. test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
  10139. save_LDFLAGS="$LDFLAGS"
  10140. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
  10141. save_LIBS="$LIBS"
  10142. LIBS="$lt_cv_dlopen_libs $LIBS"
  10143. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
  10144. $as_echo_n "checking whether a program can dlopen itself... " >&6; }
  10145. if ${lt_cv_dlopen_self+:} false; then :
  10146. $as_echo_n "(cached) " >&6
  10147. else
  10148. if test "$cross_compiling" = yes; then :
  10149. lt_cv_dlopen_self=cross
  10150. else
  10151. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10152. lt_status=$lt_dlunknown
  10153. cat > conftest.$ac_ext <<_LT_EOF
  10154. #line $LINENO "configure"
  10155. #include "confdefs.h"
  10156. #if HAVE_DLFCN_H
  10157. #include <dlfcn.h>
  10158. #endif
  10159. #include <stdio.h>
  10160. #ifdef RTLD_GLOBAL
  10161. # define LT_DLGLOBAL RTLD_GLOBAL
  10162. #else
  10163. # ifdef DL_GLOBAL
  10164. # define LT_DLGLOBAL DL_GLOBAL
  10165. # else
  10166. # define LT_DLGLOBAL 0
  10167. # endif
  10168. #endif
  10169. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10170. find out it does not work in some platform. */
  10171. #ifndef LT_DLLAZY_OR_NOW
  10172. # ifdef RTLD_LAZY
  10173. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10174. # else
  10175. # ifdef DL_LAZY
  10176. # define LT_DLLAZY_OR_NOW DL_LAZY
  10177. # else
  10178. # ifdef RTLD_NOW
  10179. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10180. # else
  10181. # ifdef DL_NOW
  10182. # define LT_DLLAZY_OR_NOW DL_NOW
  10183. # else
  10184. # define LT_DLLAZY_OR_NOW 0
  10185. # endif
  10186. # endif
  10187. # endif
  10188. # endif
  10189. #endif
  10190. /* When -fvisbility=hidden is used, assume the code has been annotated
  10191. correspondingly for the symbols needed. */
  10192. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10193. int fnord () __attribute__((visibility("default")));
  10194. #endif
  10195. int fnord () { return 42; }
  10196. int main ()
  10197. {
  10198. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10199. int status = $lt_dlunknown;
  10200. if (self)
  10201. {
  10202. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10203. else
  10204. {
  10205. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10206. else puts (dlerror ());
  10207. }
  10208. /* dlclose (self); */
  10209. }
  10210. else
  10211. puts (dlerror ());
  10212. return status;
  10213. }
  10214. _LT_EOF
  10215. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10216. (eval $ac_link) 2>&5
  10217. ac_status=$?
  10218. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10219. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10220. (./conftest; exit; ) >&5 2>/dev/null
  10221. lt_status=$?
  10222. case x$lt_status in
  10223. x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
  10224. x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
  10225. x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
  10226. esac
  10227. else :
  10228. # compilation failed
  10229. lt_cv_dlopen_self=no
  10230. fi
  10231. fi
  10232. rm -fr conftest*
  10233. fi
  10234. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
  10235. $as_echo "$lt_cv_dlopen_self" >&6; }
  10236. if test "x$lt_cv_dlopen_self" = xyes; then
  10237. wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
  10238. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
  10239. $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
  10240. if ${lt_cv_dlopen_self_static+:} false; then :
  10241. $as_echo_n "(cached) " >&6
  10242. else
  10243. if test "$cross_compiling" = yes; then :
  10244. lt_cv_dlopen_self_static=cross
  10245. else
  10246. lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
  10247. lt_status=$lt_dlunknown
  10248. cat > conftest.$ac_ext <<_LT_EOF
  10249. #line $LINENO "configure"
  10250. #include "confdefs.h"
  10251. #if HAVE_DLFCN_H
  10252. #include <dlfcn.h>
  10253. #endif
  10254. #include <stdio.h>
  10255. #ifdef RTLD_GLOBAL
  10256. # define LT_DLGLOBAL RTLD_GLOBAL
  10257. #else
  10258. # ifdef DL_GLOBAL
  10259. # define LT_DLGLOBAL DL_GLOBAL
  10260. # else
  10261. # define LT_DLGLOBAL 0
  10262. # endif
  10263. #endif
  10264. /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
  10265. find out it does not work in some platform. */
  10266. #ifndef LT_DLLAZY_OR_NOW
  10267. # ifdef RTLD_LAZY
  10268. # define LT_DLLAZY_OR_NOW RTLD_LAZY
  10269. # else
  10270. # ifdef DL_LAZY
  10271. # define LT_DLLAZY_OR_NOW DL_LAZY
  10272. # else
  10273. # ifdef RTLD_NOW
  10274. # define LT_DLLAZY_OR_NOW RTLD_NOW
  10275. # else
  10276. # ifdef DL_NOW
  10277. # define LT_DLLAZY_OR_NOW DL_NOW
  10278. # else
  10279. # define LT_DLLAZY_OR_NOW 0
  10280. # endif
  10281. # endif
  10282. # endif
  10283. # endif
  10284. #endif
  10285. /* When -fvisbility=hidden is used, assume the code has been annotated
  10286. correspondingly for the symbols needed. */
  10287. #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
  10288. int fnord () __attribute__((visibility("default")));
  10289. #endif
  10290. int fnord () { return 42; }
  10291. int main ()
  10292. {
  10293. void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
  10294. int status = $lt_dlunknown;
  10295. if (self)
  10296. {
  10297. if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
  10298. else
  10299. {
  10300. if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
  10301. else puts (dlerror ());
  10302. }
  10303. /* dlclose (self); */
  10304. }
  10305. else
  10306. puts (dlerror ());
  10307. return status;
  10308. }
  10309. _LT_EOF
  10310. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
  10311. (eval $ac_link) 2>&5
  10312. ac_status=$?
  10313. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  10314. test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
  10315. (./conftest; exit; ) >&5 2>/dev/null
  10316. lt_status=$?
  10317. case x$lt_status in
  10318. x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
  10319. x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
  10320. x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
  10321. esac
  10322. else :
  10323. # compilation failed
  10324. lt_cv_dlopen_self_static=no
  10325. fi
  10326. fi
  10327. rm -fr conftest*
  10328. fi
  10329. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
  10330. $as_echo "$lt_cv_dlopen_self_static" >&6; }
  10331. fi
  10332. CPPFLAGS="$save_CPPFLAGS"
  10333. LDFLAGS="$save_LDFLAGS"
  10334. LIBS="$save_LIBS"
  10335. ;;
  10336. esac
  10337. case $lt_cv_dlopen_self in
  10338. yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
  10339. *) enable_dlopen_self=unknown ;;
  10340. esac
  10341. case $lt_cv_dlopen_self_static in
  10342. yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
  10343. *) enable_dlopen_self_static=unknown ;;
  10344. esac
  10345. fi
  10346. striplib=
  10347. old_striplib=
  10348. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
  10349. $as_echo_n "checking whether stripping libraries is possible... " >&6; }
  10350. if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
  10351. test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
  10352. test -z "$striplib" && striplib="$STRIP --strip-unneeded"
  10353. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10354. $as_echo "yes" >&6; }
  10355. else
  10356. # FIXME - insert some real tests, host_os isn't really good enough
  10357. case $host_os in
  10358. darwin*)
  10359. if test -n "$STRIP" ; then
  10360. striplib="$STRIP -x"
  10361. old_striplib="$STRIP -S"
  10362. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  10363. $as_echo "yes" >&6; }
  10364. else
  10365. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10366. $as_echo "no" >&6; }
  10367. fi
  10368. ;;
  10369. *)
  10370. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10371. $as_echo "no" >&6; }
  10372. ;;
  10373. esac
  10374. fi
  10375. # Report which library types will actually be built
  10376. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
  10377. $as_echo_n "checking if libtool supports shared libraries... " >&6; }
  10378. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
  10379. $as_echo "$can_build_shared" >&6; }
  10380. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
  10381. $as_echo_n "checking whether to build shared libraries... " >&6; }
  10382. test "$can_build_shared" = "no" && enable_shared=no
  10383. # On AIX, shared libraries and static libraries use the same namespace, and
  10384. # are all built from PIC.
  10385. case $host_os in
  10386. aix3*)
  10387. test "$enable_shared" = yes && enable_static=no
  10388. if test -n "$RANLIB"; then
  10389. archive_cmds="$archive_cmds~\$RANLIB \$lib"
  10390. postinstall_cmds='$RANLIB $lib'
  10391. fi
  10392. ;;
  10393. aix[4-9]*)
  10394. if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
  10395. test "$enable_shared" = yes && enable_static=no
  10396. fi
  10397. ;;
  10398. esac
  10399. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
  10400. $as_echo "$enable_shared" >&6; }
  10401. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
  10402. $as_echo_n "checking whether to build static libraries... " >&6; }
  10403. # Make sure either enable_shared or enable_static is yes.
  10404. test "$enable_shared" = yes || enable_static=yes
  10405. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
  10406. $as_echo "$enable_static" >&6; }
  10407. fi
  10408. ac_ext=c
  10409. ac_cpp='$CPP $CPPFLAGS'
  10410. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10411. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10412. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10413. CC="$lt_save_CC"
  10414. if test -n "$CXX" && ( test "X$CXX" != "Xno" &&
  10415. ( (test "X$CXX" = "Xg++" && `g++ -v >/dev/null 2>&1` ) ||
  10416. (test "X$CXX" != "Xg++"))) ; then
  10417. ac_ext=cpp
  10418. ac_cpp='$CXXCPP $CPPFLAGS'
  10419. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10420. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10421. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10422. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
  10423. $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
  10424. if test -z "$CXXCPP"; then
  10425. if ${ac_cv_prog_CXXCPP+:} false; then :
  10426. $as_echo_n "(cached) " >&6
  10427. else
  10428. # Double quotes because CXXCPP needs to be expanded
  10429. for CXXCPP in "$CXX -E" "/lib/cpp"
  10430. do
  10431. ac_preproc_ok=false
  10432. for ac_cxx_preproc_warn_flag in '' yes
  10433. do
  10434. # Use a header file that comes with gcc, so configuring glibc
  10435. # with a fresh cross-compiler works.
  10436. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10437. # <limits.h> exists even on freestanding compilers.
  10438. # On the NeXT, cc -E runs the code through the compiler's parser,
  10439. # not just through cpp. "Syntax error" is here to catch this case.
  10440. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10441. /* end confdefs.h. */
  10442. #ifdef __STDC__
  10443. # include <limits.h>
  10444. #else
  10445. # include <assert.h>
  10446. #endif
  10447. Syntax error
  10448. _ACEOF
  10449. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10450. else
  10451. # Broken: fails on valid input.
  10452. continue
  10453. fi
  10454. rm -f conftest.err conftest.i conftest.$ac_ext
  10455. # OK, works on sane cases. Now check whether nonexistent headers
  10456. # can be detected and how.
  10457. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10458. /* end confdefs.h. */
  10459. #include <ac_nonexistent.h>
  10460. _ACEOF
  10461. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10462. # Broken: success on invalid input.
  10463. continue
  10464. else
  10465. # Passes both tests.
  10466. ac_preproc_ok=:
  10467. break
  10468. fi
  10469. rm -f conftest.err conftest.i conftest.$ac_ext
  10470. done
  10471. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10472. rm -f conftest.i conftest.err conftest.$ac_ext
  10473. if $ac_preproc_ok; then :
  10474. break
  10475. fi
  10476. done
  10477. ac_cv_prog_CXXCPP=$CXXCPP
  10478. fi
  10479. CXXCPP=$ac_cv_prog_CXXCPP
  10480. else
  10481. ac_cv_prog_CXXCPP=$CXXCPP
  10482. fi
  10483. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
  10484. $as_echo "$CXXCPP" >&6; }
  10485. ac_preproc_ok=false
  10486. for ac_cxx_preproc_warn_flag in '' yes
  10487. do
  10488. # Use a header file that comes with gcc, so configuring glibc
  10489. # with a fresh cross-compiler works.
  10490. # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
  10491. # <limits.h> exists even on freestanding compilers.
  10492. # On the NeXT, cc -E runs the code through the compiler's parser,
  10493. # not just through cpp. "Syntax error" is here to catch this case.
  10494. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10495. /* end confdefs.h. */
  10496. #ifdef __STDC__
  10497. # include <limits.h>
  10498. #else
  10499. # include <assert.h>
  10500. #endif
  10501. Syntax error
  10502. _ACEOF
  10503. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10504. else
  10505. # Broken: fails on valid input.
  10506. continue
  10507. fi
  10508. rm -f conftest.err conftest.i conftest.$ac_ext
  10509. # OK, works on sane cases. Now check whether nonexistent headers
  10510. # can be detected and how.
  10511. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10512. /* end confdefs.h. */
  10513. #include <ac_nonexistent.h>
  10514. _ACEOF
  10515. if ac_fn_cxx_try_cpp "$LINENO"; then :
  10516. # Broken: success on invalid input.
  10517. continue
  10518. else
  10519. # Passes both tests.
  10520. ac_preproc_ok=:
  10521. break
  10522. fi
  10523. rm -f conftest.err conftest.i conftest.$ac_ext
  10524. done
  10525. # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
  10526. rm -f conftest.i conftest.err conftest.$ac_ext
  10527. if $ac_preproc_ok; then :
  10528. else
  10529. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  10530. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  10531. as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
  10532. See \`config.log' for more details" "$LINENO" 5; }
  10533. fi
  10534. ac_ext=c
  10535. ac_cpp='$CPP $CPPFLAGS'
  10536. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10537. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10538. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  10539. else
  10540. _lt_caught_CXX_error=yes
  10541. fi
  10542. ac_ext=cpp
  10543. ac_cpp='$CXXCPP $CPPFLAGS'
  10544. ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  10545. ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  10546. ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
  10547. archive_cmds_need_lc_CXX=no
  10548. allow_undefined_flag_CXX=
  10549. always_export_symbols_CXX=no
  10550. archive_expsym_cmds_CXX=
  10551. compiler_needs_object_CXX=no
  10552. export_dynamic_flag_spec_CXX=
  10553. hardcode_direct_CXX=no
  10554. hardcode_direct_absolute_CXX=no
  10555. hardcode_libdir_flag_spec_CXX=
  10556. hardcode_libdir_separator_CXX=
  10557. hardcode_minus_L_CXX=no
  10558. hardcode_shlibpath_var_CXX=unsupported
  10559. hardcode_automatic_CXX=no
  10560. inherit_rpath_CXX=no
  10561. module_cmds_CXX=
  10562. module_expsym_cmds_CXX=
  10563. link_all_deplibs_CXX=unknown
  10564. old_archive_cmds_CXX=$old_archive_cmds
  10565. reload_flag_CXX=$reload_flag
  10566. reload_cmds_CXX=$reload_cmds
  10567. no_undefined_flag_CXX=
  10568. whole_archive_flag_spec_CXX=
  10569. enable_shared_with_static_runtimes_CXX=no
  10570. # Source file extension for C++ test sources.
  10571. ac_ext=cpp
  10572. # Object file extension for compiled C++ test sources.
  10573. objext=o
  10574. objext_CXX=$objext
  10575. # No sense in running all these tests if we already determined that
  10576. # the CXX compiler isn't working. Some variables (like enable_shared)
  10577. # are currently assumed to apply to all compilers on this platform,
  10578. # and will be corrupted by setting them based on a non-working compiler.
  10579. if test "$_lt_caught_CXX_error" != yes; then
  10580. # Code to be used in simple compile tests
  10581. lt_simple_compile_test_code="int some_variable = 0;"
  10582. # Code to be used in simple link tests
  10583. lt_simple_link_test_code='int main(int, char *[]) { return(0); }'
  10584. # ltmain only uses $CC for tagged configurations so make sure $CC is set.
  10585. # If no C compiler was specified, use CC.
  10586. LTCC=${LTCC-"$CC"}
  10587. # If no C compiler flags were specified, use CFLAGS.
  10588. LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
  10589. # Allow CC to be a program name with arguments.
  10590. compiler=$CC
  10591. # save warnings/boilerplate of simple test code
  10592. ac_outfile=conftest.$ac_objext
  10593. echo "$lt_simple_compile_test_code" >conftest.$ac_ext
  10594. eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10595. _lt_compiler_boilerplate=`cat conftest.err`
  10596. $RM conftest*
  10597. ac_outfile=conftest.$ac_objext
  10598. echo "$lt_simple_link_test_code" >conftest.$ac_ext
  10599. eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
  10600. _lt_linker_boilerplate=`cat conftest.err`
  10601. $RM -r conftest*
  10602. # Allow CC to be a program name with arguments.
  10603. lt_save_CC=$CC
  10604. lt_save_CFLAGS=$CFLAGS
  10605. lt_save_LD=$LD
  10606. lt_save_GCC=$GCC
  10607. GCC=$GXX
  10608. lt_save_with_gnu_ld=$with_gnu_ld
  10609. lt_save_path_LD=$lt_cv_path_LD
  10610. if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then
  10611. lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx
  10612. else
  10613. $as_unset lt_cv_prog_gnu_ld
  10614. fi
  10615. if test -n "${lt_cv_path_LDCXX+set}"; then
  10616. lt_cv_path_LD=$lt_cv_path_LDCXX
  10617. else
  10618. $as_unset lt_cv_path_LD
  10619. fi
  10620. test -z "${LDCXX+set}" || LD=$LDCXX
  10621. CC=${CXX-"c++"}
  10622. CFLAGS=$CXXFLAGS
  10623. compiler=$CC
  10624. compiler_CXX=$CC
  10625. for cc_temp in $compiler""; do
  10626. case $cc_temp in
  10627. compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
  10628. distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
  10629. \-*) ;;
  10630. *) break;;
  10631. esac
  10632. done
  10633. cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
  10634. if test -n "$compiler"; then
  10635. # We don't want -fno-exception when compiling C++ code, so set the
  10636. # no_builtin_flag separately
  10637. if test "$GXX" = yes; then
  10638. lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin'
  10639. else
  10640. lt_prog_compiler_no_builtin_flag_CXX=
  10641. fi
  10642. if test "$GXX" = yes; then
  10643. # Set up default GNU C++ configuration
  10644. # Check whether --with-gnu-ld was given.
  10645. if test "${with_gnu_ld+set}" = set; then :
  10646. withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
  10647. else
  10648. with_gnu_ld=no
  10649. fi
  10650. ac_prog=ld
  10651. if test "$GCC" = yes; then
  10652. # Check if gcc -print-prog-name=ld gives a path.
  10653. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
  10654. $as_echo_n "checking for ld used by $CC... " >&6; }
  10655. case $host in
  10656. *-*-mingw*)
  10657. # gcc leaves a trailing carriage return which upsets mingw
  10658. ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
  10659. *)
  10660. ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
  10661. esac
  10662. case $ac_prog in
  10663. # Accept absolute paths.
  10664. [\\/]* | ?:[\\/]*)
  10665. re_direlt='/[^/][^/]*/\.\./'
  10666. # Canonicalize the pathname of ld
  10667. ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
  10668. while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
  10669. ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
  10670. done
  10671. test -z "$LD" && LD="$ac_prog"
  10672. ;;
  10673. "")
  10674. # If it fails, then pretend we aren't using GCC.
  10675. ac_prog=ld
  10676. ;;
  10677. *)
  10678. # If it is relative, then search for the first ld in PATH.
  10679. with_gnu_ld=unknown
  10680. ;;
  10681. esac
  10682. elif test "$with_gnu_ld" = yes; then
  10683. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
  10684. $as_echo_n "checking for GNU ld... " >&6; }
  10685. else
  10686. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
  10687. $as_echo_n "checking for non-GNU ld... " >&6; }
  10688. fi
  10689. if ${lt_cv_path_LD+:} false; then :
  10690. $as_echo_n "(cached) " >&6
  10691. else
  10692. if test -z "$LD"; then
  10693. lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
  10694. for ac_dir in $PATH; do
  10695. IFS="$lt_save_ifs"
  10696. test -z "$ac_dir" && ac_dir=.
  10697. if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
  10698. lt_cv_path_LD="$ac_dir/$ac_prog"
  10699. # Check to see if the program is GNU ld. I'd rather use --version,
  10700. # but apparently some variants of GNU ld only accept -v.
  10701. # Break only if it was the GNU/non-GNU ld that we prefer.
  10702. case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
  10703. *GNU* | *'with BFD'*)
  10704. test "$with_gnu_ld" != no && break
  10705. ;;
  10706. *)
  10707. test "$with_gnu_ld" != yes && break
  10708. ;;
  10709. esac
  10710. fi
  10711. done
  10712. IFS="$lt_save_ifs"
  10713. else
  10714. lt_cv_path_LD="$LD" # Let the user override the test with a path.
  10715. fi
  10716. fi
  10717. LD="$lt_cv_path_LD"
  10718. if test -n "$LD"; then
  10719. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
  10720. $as_echo "$LD" >&6; }
  10721. else
  10722. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  10723. $as_echo "no" >&6; }
  10724. fi
  10725. test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
  10726. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
  10727. $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
  10728. if ${lt_cv_prog_gnu_ld+:} false; then :
  10729. $as_echo_n "(cached) " >&6
  10730. else
  10731. # I'd rather use --version here, but apparently some GNU lds only accept -v.
  10732. case `$LD -v 2>&1 </dev/null` in
  10733. *GNU* | *'with BFD'*)
  10734. lt_cv_prog_gnu_ld=yes
  10735. ;;
  10736. *)
  10737. lt_cv_prog_gnu_ld=no
  10738. ;;
  10739. esac
  10740. fi
  10741. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
  10742. $as_echo "$lt_cv_prog_gnu_ld" >&6; }
  10743. with_gnu_ld=$lt_cv_prog_gnu_ld
  10744. # Check if GNU C++ uses GNU ld as the underlying linker, since the
  10745. # archiving commands below assume that GNU ld is being used.
  10746. if test "$with_gnu_ld" = yes; then
  10747. archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10748. archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  10749. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  10750. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  10751. # If archive_cmds runs LD, not CC, wlarc should be empty
  10752. # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to
  10753. # investigate it a little bit more. (MM)
  10754. wlarc='${wl}'
  10755. # ancient GNU ld didn't support --whole-archive et. al.
  10756. if eval "`$CC -print-prog-name=ld` --help 2>&1" |
  10757. $GREP 'no-whole-archive' > /dev/null; then
  10758. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  10759. else
  10760. whole_archive_flag_spec_CXX=
  10761. fi
  10762. else
  10763. with_gnu_ld=no
  10764. wlarc=
  10765. # A generic and very simple default shared library creation
  10766. # command for GNU C++ for the case where it uses the native
  10767. # linker, instead of GNU ld. If possible, this setting should
  10768. # overridden to take advantage of the native linker features on
  10769. # the platform it is being used on.
  10770. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  10771. fi
  10772. # Commands to make compiler produce verbose output that lists
  10773. # what "hidden" libraries, object files and flags are used when
  10774. # linking a shared library.
  10775. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  10776. else
  10777. GXX=no
  10778. with_gnu_ld=no
  10779. wlarc=
  10780. fi
  10781. # PORTME: fill in a description of your system's C++ link characteristics
  10782. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  10783. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  10784. ld_shlibs_CXX=yes
  10785. case $host_os in
  10786. aix3*)
  10787. # FIXME: insert proper C++ library support
  10788. ld_shlibs_CXX=no
  10789. ;;
  10790. aix[4-9]*)
  10791. if test "$host_cpu" = ia64; then
  10792. # On IA64, the linker does run time linking by default, so we don't
  10793. # have to do anything special.
  10794. aix_use_runtimelinking=no
  10795. exp_sym_flag='-Bexport'
  10796. no_entry_flag=""
  10797. else
  10798. aix_use_runtimelinking=no
  10799. # Test if we are trying to use run time linking or normal
  10800. # AIX style linking. If -brtl is somewhere in LDFLAGS, we
  10801. # need to do runtime linking.
  10802. case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
  10803. for ld_flag in $LDFLAGS; do
  10804. case $ld_flag in
  10805. *-brtl*)
  10806. aix_use_runtimelinking=yes
  10807. break
  10808. ;;
  10809. esac
  10810. done
  10811. ;;
  10812. esac
  10813. exp_sym_flag='-bexport'
  10814. no_entry_flag='-bnoentry'
  10815. fi
  10816. # When large executables or shared objects are built, AIX ld can
  10817. # have problems creating the table of contents. If linking a library
  10818. # or program results in "error TOC overflow" add -mminimal-toc to
  10819. # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
  10820. # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
  10821. archive_cmds_CXX=''
  10822. hardcode_direct_CXX=yes
  10823. hardcode_direct_absolute_CXX=yes
  10824. hardcode_libdir_separator_CXX=':'
  10825. link_all_deplibs_CXX=yes
  10826. file_list_spec_CXX='${wl}-f,'
  10827. if test "$GXX" = yes; then
  10828. case $host_os in aix4.[012]|aix4.[012].*)
  10829. # We only want to do this on AIX 4.2 and lower, the check
  10830. # below for broken collect2 doesn't work under 4.3+
  10831. collect2name=`${CC} -print-prog-name=collect2`
  10832. if test -f "$collect2name" &&
  10833. strings "$collect2name" | $GREP resolve_lib_name >/dev/null
  10834. then
  10835. # We have reworked collect2
  10836. :
  10837. else
  10838. # We have old collect2
  10839. hardcode_direct_CXX=unsupported
  10840. # It fails to find uninstalled libraries when the uninstalled
  10841. # path is not listed in the libpath. Setting hardcode_minus_L
  10842. # to unsupported forces relinking
  10843. hardcode_minus_L_CXX=yes
  10844. hardcode_libdir_flag_spec_CXX='-L$libdir'
  10845. hardcode_libdir_separator_CXX=
  10846. fi
  10847. esac
  10848. shared_flag='-shared'
  10849. if test "$aix_use_runtimelinking" = yes; then
  10850. shared_flag="$shared_flag "'${wl}-G'
  10851. fi
  10852. else
  10853. # not using gcc
  10854. if test "$host_cpu" = ia64; then
  10855. # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
  10856. # chokes on -Wl,-G. The following line is correct:
  10857. shared_flag='-G'
  10858. else
  10859. if test "$aix_use_runtimelinking" = yes; then
  10860. shared_flag='${wl}-G'
  10861. else
  10862. shared_flag='${wl}-bM:SRE'
  10863. fi
  10864. fi
  10865. fi
  10866. export_dynamic_flag_spec_CXX='${wl}-bexpall'
  10867. # It seems that -bexpall does not export symbols beginning with
  10868. # underscore (_), so it is better to generate a list of symbols to
  10869. # export.
  10870. always_export_symbols_CXX=yes
  10871. if test "$aix_use_runtimelinking" = yes; then
  10872. # Warning - without using the other runtime loading flags (-brtl),
  10873. # -berok will link without error, but may produce a broken library.
  10874. allow_undefined_flag_CXX='-berok'
  10875. # Determine the default libpath from the value encoded in an empty
  10876. # executable.
  10877. if test "${lt_cv_aix_libpath+set}" = set; then
  10878. aix_libpath=$lt_cv_aix_libpath
  10879. else
  10880. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10881. $as_echo_n "(cached) " >&6
  10882. else
  10883. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10884. /* end confdefs.h. */
  10885. int
  10886. main ()
  10887. {
  10888. ;
  10889. return 0;
  10890. }
  10891. _ACEOF
  10892. if ac_fn_cxx_try_link "$LINENO"; then :
  10893. lt_aix_libpath_sed='
  10894. /Import File Strings/,/^$/ {
  10895. /^0/ {
  10896. s/^0 *\([^ ]*\) *$/\1/
  10897. p
  10898. }
  10899. }'
  10900. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10901. # Check for a 64-bit object if we didn't find anything.
  10902. if test -z "$lt_cv_aix_libpath__CXX"; then
  10903. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10904. fi
  10905. fi
  10906. rm -f core conftest.err conftest.$ac_objext \
  10907. conftest$ac_exeext conftest.$ac_ext
  10908. if test -z "$lt_cv_aix_libpath__CXX"; then
  10909. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10910. fi
  10911. fi
  10912. aix_libpath=$lt_cv_aix_libpath__CXX
  10913. fi
  10914. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10915. archive_expsym_cmds_CXX='$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"
  10916. else
  10917. if test "$host_cpu" = ia64; then
  10918. hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib'
  10919. allow_undefined_flag_CXX="-z nodefs"
  10920. archive_expsym_cmds_CXX="\$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"
  10921. else
  10922. # Determine the default libpath from the value encoded in an
  10923. # empty executable.
  10924. if test "${lt_cv_aix_libpath+set}" = set; then
  10925. aix_libpath=$lt_cv_aix_libpath
  10926. else
  10927. if ${lt_cv_aix_libpath__CXX+:} false; then :
  10928. $as_echo_n "(cached) " >&6
  10929. else
  10930. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  10931. /* end confdefs.h. */
  10932. int
  10933. main ()
  10934. {
  10935. ;
  10936. return 0;
  10937. }
  10938. _ACEOF
  10939. if ac_fn_cxx_try_link "$LINENO"; then :
  10940. lt_aix_libpath_sed='
  10941. /Import File Strings/,/^$/ {
  10942. /^0/ {
  10943. s/^0 *\([^ ]*\) *$/\1/
  10944. p
  10945. }
  10946. }'
  10947. lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10948. # Check for a 64-bit object if we didn't find anything.
  10949. if test -z "$lt_cv_aix_libpath__CXX"; then
  10950. lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
  10951. fi
  10952. fi
  10953. rm -f core conftest.err conftest.$ac_objext \
  10954. conftest$ac_exeext conftest.$ac_ext
  10955. if test -z "$lt_cv_aix_libpath__CXX"; then
  10956. lt_cv_aix_libpath__CXX="/usr/lib:/lib"
  10957. fi
  10958. fi
  10959. aix_libpath=$lt_cv_aix_libpath__CXX
  10960. fi
  10961. hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath"
  10962. # Warning - without using the other run time loading flags,
  10963. # -berok will link without error, but may produce a broken library.
  10964. no_undefined_flag_CXX=' ${wl}-bernotok'
  10965. allow_undefined_flag_CXX=' ${wl}-berok'
  10966. if test "$with_gnu_ld" = yes; then
  10967. # We only use this code for GNU lds that support --whole-archive.
  10968. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  10969. else
  10970. # Exported symbols can be pulled into shared objects from archives
  10971. whole_archive_flag_spec_CXX='$convenience'
  10972. fi
  10973. archive_cmds_need_lc_CXX=yes
  10974. # This is similar to how AIX traditionally builds its shared
  10975. # libraries.
  10976. archive_expsym_cmds_CXX="\$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'
  10977. fi
  10978. fi
  10979. ;;
  10980. beos*)
  10981. if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
  10982. allow_undefined_flag_CXX=unsupported
  10983. # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
  10984. # support --undefined. This deserves some investigation. FIXME
  10985. archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  10986. else
  10987. ld_shlibs_CXX=no
  10988. fi
  10989. ;;
  10990. chorus*)
  10991. case $cc_basename in
  10992. *)
  10993. # FIXME: insert proper C++ library support
  10994. ld_shlibs_CXX=no
  10995. ;;
  10996. esac
  10997. ;;
  10998. cygwin* | mingw* | pw32* | cegcc*)
  10999. case $GXX,$cc_basename in
  11000. ,cl* | no,cl*)
  11001. # Native MSVC
  11002. # hardcode_libdir_flag_spec is actually meaningless, as there is
  11003. # no search path for DLLs.
  11004. hardcode_libdir_flag_spec_CXX=' '
  11005. allow_undefined_flag_CXX=unsupported
  11006. always_export_symbols_CXX=yes
  11007. file_list_spec_CXX='@'
  11008. # Tell ltmain to make .lib files, not .a files.
  11009. libext=lib
  11010. # Tell ltmain to make .dll files, not .so files.
  11011. shrext_cmds=".dll"
  11012. # FIXME: Setting linknames here is a bad hack.
  11013. archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
  11014. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11015. $SED -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
  11016. else
  11017. $SED -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
  11018. fi~
  11019. $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
  11020. linknames='
  11021. # The linker will not automatically build a static lib if we build a DLL.
  11022. # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true'
  11023. enable_shared_with_static_runtimes_CXX=yes
  11024. # Don't use ranlib
  11025. old_postinstall_cmds_CXX='chmod 644 $oldlib'
  11026. postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~
  11027. lt_tool_outputfile="@TOOL_OUTPUT@"~
  11028. case $lt_outputfile in
  11029. *.exe|*.EXE) ;;
  11030. *)
  11031. lt_outputfile="$lt_outputfile.exe"
  11032. lt_tool_outputfile="$lt_tool_outputfile.exe"
  11033. ;;
  11034. esac~
  11035. func_to_tool_file "$lt_outputfile"~
  11036. if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
  11037. $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
  11038. $RM "$lt_outputfile.manifest";
  11039. fi'
  11040. ;;
  11041. *)
  11042. # g++
  11043. # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless,
  11044. # as there is no search path for DLLs.
  11045. hardcode_libdir_flag_spec_CXX='-L$libdir'
  11046. export_dynamic_flag_spec_CXX='${wl}--export-all-symbols'
  11047. allow_undefined_flag_CXX=unsupported
  11048. always_export_symbols_CXX=no
  11049. enable_shared_with_static_runtimes_CXX=yes
  11050. if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
  11051. archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11052. # If the export-symbols file already is a .def file (1st line
  11053. # is EXPORTS), use it as is; otherwise, prepend...
  11054. archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
  11055. cp $export_symbols $output_objdir/$soname.def;
  11056. else
  11057. echo EXPORTS > $output_objdir/$soname.def;
  11058. cat $export_symbols >> $output_objdir/$soname.def;
  11059. fi~
  11060. $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
  11061. else
  11062. ld_shlibs_CXX=no
  11063. fi
  11064. ;;
  11065. esac
  11066. ;;
  11067. darwin* | rhapsody*)
  11068. archive_cmds_need_lc_CXX=no
  11069. hardcode_direct_CXX=no
  11070. hardcode_automatic_CXX=yes
  11071. hardcode_shlibpath_var_CXX=unsupported
  11072. if test "$lt_cv_ld_force_load" = "yes"; then
  11073. whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
  11074. else
  11075. whole_archive_flag_spec_CXX=''
  11076. fi
  11077. link_all_deplibs_CXX=yes
  11078. allow_undefined_flag_CXX="$_lt_dar_allow_undefined"
  11079. case $cc_basename in
  11080. ifort*) _lt_dar_can_shared=yes ;;
  11081. *) _lt_dar_can_shared=$GCC ;;
  11082. esac
  11083. if test "$_lt_dar_can_shared" = "yes"; then
  11084. output_verbose_link_cmd=func_echo_all
  11085. archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
  11086. module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
  11087. archive_expsym_cmds_CXX="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}"
  11088. module_expsym_cmds_CXX="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}"
  11089. if test "$lt_cv_apple_cc_single_mod" != "yes"; then
  11090. archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dsymutil}"
  11091. archive_expsym_cmds_CXX="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \${lib}-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \${lib}-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring${_lt_dar_export_syms}${_lt_dsymutil}"
  11092. fi
  11093. else
  11094. ld_shlibs_CXX=no
  11095. fi
  11096. ;;
  11097. dgux*)
  11098. case $cc_basename in
  11099. ec++*)
  11100. # FIXME: insert proper C++ library support
  11101. ld_shlibs_CXX=no
  11102. ;;
  11103. ghcx*)
  11104. # Green Hills C++ Compiler
  11105. # FIXME: insert proper C++ library support
  11106. ld_shlibs_CXX=no
  11107. ;;
  11108. *)
  11109. # FIXME: insert proper C++ library support
  11110. ld_shlibs_CXX=no
  11111. ;;
  11112. esac
  11113. ;;
  11114. freebsd2.*)
  11115. # C++ shared libraries reported to be fairly broken before
  11116. # switch to ELF
  11117. ld_shlibs_CXX=no
  11118. ;;
  11119. freebsd-elf*)
  11120. archive_cmds_need_lc_CXX=no
  11121. ;;
  11122. freebsd* | dragonfly*)
  11123. # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF
  11124. # conventions
  11125. ld_shlibs_CXX=yes
  11126. ;;
  11127. gnu*)
  11128. ;;
  11129. haiku*)
  11130. archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11131. link_all_deplibs_CXX=yes
  11132. ;;
  11133. hpux9*)
  11134. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11135. hardcode_libdir_separator_CXX=:
  11136. export_dynamic_flag_spec_CXX='${wl}-E'
  11137. hardcode_direct_CXX=yes
  11138. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11139. # but as the default
  11140. # location of the library.
  11141. case $cc_basename in
  11142. CC*)
  11143. # FIXME: insert proper C++ library support
  11144. ld_shlibs_CXX=no
  11145. ;;
  11146. aCC*)
  11147. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11148. # Commands to make compiler produce verbose output that lists
  11149. # what "hidden" libraries, object files and flags are used when
  11150. # linking a shared library.
  11151. #
  11152. # There doesn't appear to be a way to prevent this compiler from
  11153. # explicitly linking system object files so we need to strip them
  11154. # from the output so that they don't get included in the library
  11155. # dependencies.
  11156. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11157. ;;
  11158. *)
  11159. if test "$GXX" = yes; then
  11160. archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
  11161. else
  11162. # FIXME: insert proper C++ library support
  11163. ld_shlibs_CXX=no
  11164. fi
  11165. ;;
  11166. esac
  11167. ;;
  11168. hpux10*|hpux11*)
  11169. if test $with_gnu_ld = no; then
  11170. hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir'
  11171. hardcode_libdir_separator_CXX=:
  11172. case $host_cpu in
  11173. hppa*64*|ia64*)
  11174. ;;
  11175. *)
  11176. export_dynamic_flag_spec_CXX='${wl}-E'
  11177. ;;
  11178. esac
  11179. fi
  11180. case $host_cpu in
  11181. hppa*64*|ia64*)
  11182. hardcode_direct_CXX=no
  11183. hardcode_shlibpath_var_CXX=no
  11184. ;;
  11185. *)
  11186. hardcode_direct_CXX=yes
  11187. hardcode_direct_absolute_CXX=yes
  11188. hardcode_minus_L_CXX=yes # Not in the search PATH,
  11189. # but as the default
  11190. # location of the library.
  11191. ;;
  11192. esac
  11193. case $cc_basename in
  11194. CC*)
  11195. # FIXME: insert proper C++ library support
  11196. ld_shlibs_CXX=no
  11197. ;;
  11198. aCC*)
  11199. case $host_cpu in
  11200. hppa*64*)
  11201. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11202. ;;
  11203. ia64*)
  11204. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11205. ;;
  11206. *)
  11207. archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11208. ;;
  11209. esac
  11210. # Commands to make compiler produce verbose output that lists
  11211. # what "hidden" libraries, object files and flags are used when
  11212. # linking a shared library.
  11213. #
  11214. # There doesn't appear to be a way to prevent this compiler from
  11215. # explicitly linking system object files so we need to strip them
  11216. # from the output so that they don't get included in the library
  11217. # dependencies.
  11218. output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11219. ;;
  11220. *)
  11221. if test "$GXX" = yes; then
  11222. if test $with_gnu_ld = no; then
  11223. case $host_cpu in
  11224. hppa*64*)
  11225. archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11226. ;;
  11227. ia64*)
  11228. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11229. ;;
  11230. *)
  11231. archive_cmds_CXX='$CC -shared -nostdlib $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11232. ;;
  11233. esac
  11234. fi
  11235. else
  11236. # FIXME: insert proper C++ library support
  11237. ld_shlibs_CXX=no
  11238. fi
  11239. ;;
  11240. esac
  11241. ;;
  11242. interix[3-9]*)
  11243. hardcode_direct_CXX=no
  11244. hardcode_shlibpath_var_CXX=no
  11245. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11246. export_dynamic_flag_spec_CXX='${wl}-E'
  11247. # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
  11248. # Instead, shared libraries are loaded at an image base (0x10000000 by
  11249. # default) and relocated if they conflict, which is a slow very memory
  11250. # consuming and fragmenting process. To avoid this, we pick a random,
  11251. # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
  11252. # time. Moving up from 0x10000000 also allows more sbrk(2) space.
  11253. archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
  11254. archive_expsym_cmds_CXX='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'
  11255. ;;
  11256. irix5* | irix6*)
  11257. case $cc_basename in
  11258. CC*)
  11259. # SGI C++
  11260. archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11261. # Archives containing C++ object files must be created using
  11262. # "CC -ar", where "CC" is the IRIX C++ compiler. This is
  11263. # necessary to make sure instantiated templates are included
  11264. # in the archive.
  11265. old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs'
  11266. ;;
  11267. *)
  11268. if test "$GXX" = yes; then
  11269. if test "$with_gnu_ld" = no; then
  11270. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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'
  11271. else
  11272. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` -o $lib'
  11273. fi
  11274. fi
  11275. link_all_deplibs_CXX=yes
  11276. ;;
  11277. esac
  11278. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11279. hardcode_libdir_separator_CXX=:
  11280. inherit_rpath_CXX=yes
  11281. ;;
  11282. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  11283. case $cc_basename in
  11284. KCC*)
  11285. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11286. # KCC will only create a shared library if the output file
  11287. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11288. # to its proper name (with version) after linking.
  11289. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11290. archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib'
  11291. # Commands to make compiler produce verbose output that lists
  11292. # what "hidden" libraries, object files and flags are used when
  11293. # linking a shared library.
  11294. #
  11295. # There doesn't appear to be a way to prevent this compiler from
  11296. # explicitly linking system object files so we need to strip them
  11297. # from the output so that they don't get included in the library
  11298. # dependencies.
  11299. output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11300. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11301. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11302. # Archives containing C++ object files must be created using
  11303. # "CC -Bstatic", where "CC" is the KAI C++ compiler.
  11304. old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs'
  11305. ;;
  11306. icpc* | ecpc* )
  11307. # Intel C++
  11308. with_gnu_ld=yes
  11309. # version 8.0 and above of icpc choke on multiply defined symbols
  11310. # if we add $predep_objects and $postdep_objects, however 7.1 and
  11311. # earlier do not add the objects themselves.
  11312. case `$CC -V 2>&1` in
  11313. *"Version 7."*)
  11314. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11315. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11316. ;;
  11317. *) # Version 8.0 or newer
  11318. tmp_idyn=
  11319. case $host_cpu in
  11320. ia64*) tmp_idyn=' -i_dynamic';;
  11321. esac
  11322. archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11323. archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
  11324. ;;
  11325. esac
  11326. archive_cmds_need_lc_CXX=no
  11327. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11328. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11329. whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
  11330. ;;
  11331. pgCC* | pgcpp*)
  11332. # Portland Group C++ compiler
  11333. case `$CC -V` in
  11334. *pgCC\ [1-5].* | *pgcpp\ [1-5].*)
  11335. prelink_cmds_CXX='tpldir=Template.dir~
  11336. rm -rf $tpldir~
  11337. $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~
  11338. compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"'
  11339. old_archive_cmds_CXX='tpldir=Template.dir~
  11340. rm -rf $tpldir~
  11341. $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~
  11342. $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~
  11343. $RANLIB $oldlib'
  11344. archive_cmds_CXX='tpldir=Template.dir~
  11345. rm -rf $tpldir~
  11346. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11347. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11348. archive_expsym_cmds_CXX='tpldir=Template.dir~
  11349. rm -rf $tpldir~
  11350. $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~
  11351. $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11352. ;;
  11353. *) # Version 6 and above use weak symbols
  11354. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname -o $lib'
  11355. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname ${wl}-retain-symbols-file ${wl}$export_symbols -o $lib'
  11356. ;;
  11357. esac
  11358. hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir'
  11359. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11360. whole_archive_flag_spec_CXX='${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'
  11361. ;;
  11362. cxx*)
  11363. # Compaq C++
  11364. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11365. archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols'
  11366. runpath_var=LD_RUN_PATH
  11367. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11368. hardcode_libdir_separator_CXX=:
  11369. # Commands to make compiler produce verbose output that lists
  11370. # what "hidden" libraries, object files and flags are used when
  11371. # linking a shared library.
  11372. #
  11373. # There doesn't appear to be a way to prevent this compiler from
  11374. # explicitly linking system object files so we need to strip them
  11375. # from the output so that they don't get included in the library
  11376. # dependencies.
  11377. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed'
  11378. ;;
  11379. xl* | mpixl* | bgxl*)
  11380. # IBM XL 8.0 on PPC, with GNU ld
  11381. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11382. export_dynamic_flag_spec_CXX='${wl}--export-dynamic'
  11383. archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
  11384. if test "x$supports_anon_versioning" = xyes; then
  11385. archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~
  11386. cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
  11387. echo "local: *; };" >> $output_objdir/$libname.ver~
  11388. $CC -qmkshrobj $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
  11389. fi
  11390. ;;
  11391. *)
  11392. case `$CC -V 2>&1 | sed 5q` in
  11393. *Sun\ C*)
  11394. # Sun C++ 5.9
  11395. no_undefined_flag_CXX=' -zdefs'
  11396. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11397. archive_expsym_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file ${wl}$export_symbols'
  11398. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11399. whole_archive_flag_spec_CXX='${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'
  11400. compiler_needs_object_CXX=yes
  11401. # Not sure whether something based on
  11402. # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1
  11403. # would be better.
  11404. output_verbose_link_cmd='func_echo_all'
  11405. # Archives containing C++ object files must be created using
  11406. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11407. # necessary to make sure instantiated templates are included
  11408. # in the archive.
  11409. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11410. ;;
  11411. esac
  11412. ;;
  11413. esac
  11414. ;;
  11415. lynxos*)
  11416. # FIXME: insert proper C++ library support
  11417. ld_shlibs_CXX=no
  11418. ;;
  11419. m88k*)
  11420. # FIXME: insert proper C++ library support
  11421. ld_shlibs_CXX=no
  11422. ;;
  11423. mvs*)
  11424. case $cc_basename in
  11425. cxx*)
  11426. # FIXME: insert proper C++ library support
  11427. ld_shlibs_CXX=no
  11428. ;;
  11429. *)
  11430. # FIXME: insert proper C++ library support
  11431. ld_shlibs_CXX=no
  11432. ;;
  11433. esac
  11434. ;;
  11435. netbsd*)
  11436. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  11437. archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags'
  11438. wlarc=
  11439. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11440. hardcode_direct_CXX=yes
  11441. hardcode_shlibpath_var_CXX=no
  11442. fi
  11443. # Workaround some broken pre-1.5 toolchains
  11444. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"'
  11445. ;;
  11446. *nto* | *qnx*)
  11447. ld_shlibs_CXX=yes
  11448. ;;
  11449. openbsd2*)
  11450. # C++ shared libraries are fairly broken
  11451. ld_shlibs_CXX=no
  11452. ;;
  11453. openbsd*)
  11454. if test -f /usr/libexec/ld.so; then
  11455. hardcode_direct_CXX=yes
  11456. hardcode_shlibpath_var_CXX=no
  11457. hardcode_direct_absolute_CXX=yes
  11458. archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib'
  11459. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11460. if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  11461. archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-retain-symbols-file,$export_symbols -o $lib'
  11462. export_dynamic_flag_spec_CXX='${wl}-E'
  11463. whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
  11464. fi
  11465. output_verbose_link_cmd=func_echo_all
  11466. else
  11467. ld_shlibs_CXX=no
  11468. fi
  11469. ;;
  11470. osf3* | osf4* | osf5*)
  11471. case $cc_basename in
  11472. KCC*)
  11473. # Kuck and Associates, Inc. (KAI) C++ Compiler
  11474. # KCC will only create a shared library if the output file
  11475. # ends with ".so" (or ".sl" for HP-UX), so rename the library
  11476. # to its proper name (with version) after linking.
  11477. archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib'
  11478. hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir'
  11479. hardcode_libdir_separator_CXX=:
  11480. # Archives containing C++ object files must be created using
  11481. # the KAI C++ compiler.
  11482. case $host in
  11483. osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;;
  11484. *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;;
  11485. esac
  11486. ;;
  11487. RCC*)
  11488. # Rational C++ 2.4.1
  11489. # FIXME: insert proper C++ library support
  11490. ld_shlibs_CXX=no
  11491. ;;
  11492. cxx*)
  11493. case $host in
  11494. osf3*)
  11495. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11496. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && func_echo_all "${wl}-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11497. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11498. ;;
  11499. *)
  11500. allow_undefined_flag_CXX=' -expect_unresolved \*'
  11501. archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
  11502. archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~
  11503. echo "-hidden">> $lib.exp~
  11504. $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname ${wl}-input ${wl}$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~
  11505. $RM $lib.exp'
  11506. hardcode_libdir_flag_spec_CXX='-rpath $libdir'
  11507. ;;
  11508. esac
  11509. hardcode_libdir_separator_CXX=:
  11510. # Commands to make compiler produce verbose output that lists
  11511. # what "hidden" libraries, object files and flags are used when
  11512. # linking a shared library.
  11513. #
  11514. # There doesn't appear to be a way to prevent this compiler from
  11515. # explicitly linking system object files so we need to strip them
  11516. # from the output so that they don't get included in the library
  11517. # dependencies.
  11518. output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"'
  11519. ;;
  11520. *)
  11521. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11522. allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*'
  11523. case $host in
  11524. osf3*)
  11525. archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  11526. ;;
  11527. *)
  11528. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $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'
  11529. ;;
  11530. esac
  11531. hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir'
  11532. hardcode_libdir_separator_CXX=:
  11533. # Commands to make compiler produce verbose output that lists
  11534. # what "hidden" libraries, object files and flags are used when
  11535. # linking a shared library.
  11536. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11537. else
  11538. # FIXME: insert proper C++ library support
  11539. ld_shlibs_CXX=no
  11540. fi
  11541. ;;
  11542. esac
  11543. ;;
  11544. psos*)
  11545. # FIXME: insert proper C++ library support
  11546. ld_shlibs_CXX=no
  11547. ;;
  11548. sunos4*)
  11549. case $cc_basename in
  11550. CC*)
  11551. # Sun C++ 4.x
  11552. # FIXME: insert proper C++ library support
  11553. ld_shlibs_CXX=no
  11554. ;;
  11555. lcc*)
  11556. # Lucid
  11557. # FIXME: insert proper C++ library support
  11558. ld_shlibs_CXX=no
  11559. ;;
  11560. *)
  11561. # FIXME: insert proper C++ library support
  11562. ld_shlibs_CXX=no
  11563. ;;
  11564. esac
  11565. ;;
  11566. solaris*)
  11567. case $cc_basename in
  11568. CC* | sunCC*)
  11569. # Sun C++ 4.2, 5.x and Centerline C++
  11570. archive_cmds_need_lc_CXX=yes
  11571. no_undefined_flag_CXX=' -zdefs'
  11572. archive_cmds_CXX='$CC -G${allow_undefined_flag} -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags'
  11573. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11574. $CC -G${allow_undefined_flag} ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11575. hardcode_libdir_flag_spec_CXX='-R$libdir'
  11576. hardcode_shlibpath_var_CXX=no
  11577. case $host_os in
  11578. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11579. *)
  11580. # The compiler driver will combine and reorder linker options,
  11581. # but understands `-z linker_flag'.
  11582. # Supported since Solaris 2.6 (maybe 2.5.1?)
  11583. whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract'
  11584. ;;
  11585. esac
  11586. link_all_deplibs_CXX=yes
  11587. output_verbose_link_cmd='func_echo_all'
  11588. # Archives containing C++ object files must be created using
  11589. # "CC -xar", where "CC" is the Sun C++ compiler. This is
  11590. # necessary to make sure instantiated templates are included
  11591. # in the archive.
  11592. old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs'
  11593. ;;
  11594. gcx*)
  11595. # Green Hills C++ Compiler
  11596. archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11597. # The C++ compiler must be used to create the archive.
  11598. old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs'
  11599. ;;
  11600. *)
  11601. # GNU C++ compiler with Solaris linker
  11602. if test "$GXX" = yes && test "$with_gnu_ld" = no; then
  11603. no_undefined_flag_CXX=' ${wl}-z ${wl}defs'
  11604. if $CC --version | $GREP -v '^2\.7' > /dev/null; then
  11605. archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11606. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11607. $CC -shared $pic_flag -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11608. # Commands to make compiler produce verbose output that lists
  11609. # what "hidden" libraries, object files and flags are used when
  11610. # linking a shared library.
  11611. output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11612. else
  11613. # g++ 2.7 appears to require `-G' NOT `-shared' on this
  11614. # platform.
  11615. archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib'
  11616. archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
  11617. $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp'
  11618. # Commands to make compiler produce verbose output that lists
  11619. # what "hidden" libraries, object files and flags are used when
  11620. # linking a shared library.
  11621. output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"'
  11622. fi
  11623. hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir'
  11624. case $host_os in
  11625. solaris2.[0-5] | solaris2.[0-5].*) ;;
  11626. *)
  11627. whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
  11628. ;;
  11629. esac
  11630. fi
  11631. ;;
  11632. esac
  11633. ;;
  11634. sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
  11635. no_undefined_flag_CXX='${wl}-z,text'
  11636. archive_cmds_need_lc_CXX=no
  11637. hardcode_shlibpath_var_CXX=no
  11638. runpath_var='LD_RUN_PATH'
  11639. case $cc_basename in
  11640. CC*)
  11641. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11642. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11643. ;;
  11644. *)
  11645. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11646. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11647. ;;
  11648. esac
  11649. ;;
  11650. sysv5* | sco3.2v5* | sco5v6*)
  11651. # Note: We can NOT use -z defs as we might desire, because we do not
  11652. # link with -lc, and that would cause any symbols used from libc to
  11653. # always be unresolved, which means just about no library would
  11654. # ever link correctly. If we're not using GNU ld we use -z text
  11655. # though, which does catch some bad symbols but isn't as heavy-handed
  11656. # as -z defs.
  11657. no_undefined_flag_CXX='${wl}-z,text'
  11658. allow_undefined_flag_CXX='${wl}-z,nodefs'
  11659. archive_cmds_need_lc_CXX=no
  11660. hardcode_shlibpath_var_CXX=no
  11661. hardcode_libdir_flag_spec_CXX='${wl}-R,$libdir'
  11662. hardcode_libdir_separator_CXX=':'
  11663. link_all_deplibs_CXX=yes
  11664. export_dynamic_flag_spec_CXX='${wl}-Bexport'
  11665. runpath_var='LD_RUN_PATH'
  11666. case $cc_basename in
  11667. CC*)
  11668. archive_cmds_CXX='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11669. archive_expsym_cmds_CXX='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11670. old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~
  11671. '"$old_archive_cmds_CXX"
  11672. reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~
  11673. '"$reload_cmds_CXX"
  11674. ;;
  11675. *)
  11676. archive_cmds_CXX='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11677. archive_expsym_cmds_CXX='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
  11678. ;;
  11679. esac
  11680. ;;
  11681. tandem*)
  11682. case $cc_basename in
  11683. NCC*)
  11684. # NonStop-UX NCC 3.20
  11685. # FIXME: insert proper C++ library support
  11686. ld_shlibs_CXX=no
  11687. ;;
  11688. *)
  11689. # FIXME: insert proper C++ library support
  11690. ld_shlibs_CXX=no
  11691. ;;
  11692. esac
  11693. ;;
  11694. vxworks*)
  11695. # FIXME: insert proper C++ library support
  11696. ld_shlibs_CXX=no
  11697. ;;
  11698. *)
  11699. # FIXME: insert proper C++ library support
  11700. ld_shlibs_CXX=no
  11701. ;;
  11702. esac
  11703. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  11704. $as_echo "$ld_shlibs_CXX" >&6; }
  11705. test "$ld_shlibs_CXX" = no && can_build_shared=no
  11706. GCC_CXX="$GXX"
  11707. LD_CXX="$LD"
  11708. ## CAVEAT EMPTOR:
  11709. ## There is no encapsulation within the following macros, do not change
  11710. ## the running order or otherwise move them around unless you know exactly
  11711. ## what you are doing...
  11712. # Dependencies to place before and after the object being linked:
  11713. predep_objects_CXX=
  11714. postdep_objects_CXX=
  11715. predeps_CXX=
  11716. postdeps_CXX=
  11717. compiler_lib_search_path_CXX=
  11718. cat > conftest.$ac_ext <<_LT_EOF
  11719. class Foo
  11720. {
  11721. public:
  11722. Foo (void) { a = 0; }
  11723. private:
  11724. int a;
  11725. };
  11726. _LT_EOF
  11727. _lt_libdeps_save_CFLAGS=$CFLAGS
  11728. case "$CC $CFLAGS " in #(
  11729. *\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;;
  11730. *\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;;
  11731. *\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;;
  11732. esac
  11733. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  11734. (eval $ac_compile) 2>&5
  11735. ac_status=$?
  11736. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  11737. test $ac_status = 0; }; then
  11738. # Parse the compiler output and extract the necessary
  11739. # objects, libraries and library flags.
  11740. # Sentinel used to keep track of whether or not we are before
  11741. # the conftest object file.
  11742. pre_test_object_deps_done=no
  11743. for p in `eval "$output_verbose_link_cmd"`; do
  11744. case ${prev}${p} in
  11745. -L* | -R* | -l*)
  11746. # Some compilers place space between "-{L,R}" and the path.
  11747. # Remove the space.
  11748. if test $p = "-L" ||
  11749. test $p = "-R"; then
  11750. prev=$p
  11751. continue
  11752. fi
  11753. # Expand the sysroot to ease extracting the directories later.
  11754. if test -z "$prev"; then
  11755. case $p in
  11756. -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;;
  11757. -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;;
  11758. -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;;
  11759. esac
  11760. fi
  11761. case $p in
  11762. =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;;
  11763. esac
  11764. if test "$pre_test_object_deps_done" = no; then
  11765. case ${prev} in
  11766. -L | -R)
  11767. # Internal compiler library paths should come after those
  11768. # provided the user. The postdeps already come after the
  11769. # user supplied libs so there is no need to process them.
  11770. if test -z "$compiler_lib_search_path_CXX"; then
  11771. compiler_lib_search_path_CXX="${prev}${p}"
  11772. else
  11773. compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}"
  11774. fi
  11775. ;;
  11776. # The "-l" case would never come before the object being
  11777. # linked, so don't bother handling this case.
  11778. esac
  11779. else
  11780. if test -z "$postdeps_CXX"; then
  11781. postdeps_CXX="${prev}${p}"
  11782. else
  11783. postdeps_CXX="${postdeps_CXX} ${prev}${p}"
  11784. fi
  11785. fi
  11786. prev=
  11787. ;;
  11788. *.lto.$objext) ;; # Ignore GCC LTO objects
  11789. *.$objext)
  11790. # This assumes that the test object file only shows up
  11791. # once in the compiler output.
  11792. if test "$p" = "conftest.$objext"; then
  11793. pre_test_object_deps_done=yes
  11794. continue
  11795. fi
  11796. if test "$pre_test_object_deps_done" = no; then
  11797. if test -z "$predep_objects_CXX"; then
  11798. predep_objects_CXX="$p"
  11799. else
  11800. predep_objects_CXX="$predep_objects_CXX $p"
  11801. fi
  11802. else
  11803. if test -z "$postdep_objects_CXX"; then
  11804. postdep_objects_CXX="$p"
  11805. else
  11806. postdep_objects_CXX="$postdep_objects_CXX $p"
  11807. fi
  11808. fi
  11809. ;;
  11810. *) ;; # Ignore the rest.
  11811. esac
  11812. done
  11813. # Clean up.
  11814. rm -f a.out a.exe
  11815. else
  11816. echo "libtool.m4: error: problem compiling CXX test program"
  11817. fi
  11818. $RM -f confest.$objext
  11819. CFLAGS=$_lt_libdeps_save_CFLAGS
  11820. # PORTME: override above test on systems where it is broken
  11821. case $host_os in
  11822. interix[3-9]*)
  11823. # Interix 3.5 installs completely hosed .la files for C++, so rather than
  11824. # hack all around it, let's just trust "g++" to DTRT.
  11825. predep_objects_CXX=
  11826. postdep_objects_CXX=
  11827. postdeps_CXX=
  11828. ;;
  11829. linux*)
  11830. case `$CC -V 2>&1 | sed 5q` in
  11831. *Sun\ C*)
  11832. # Sun C++ 5.9
  11833. # The more standards-conforming stlport4 library is
  11834. # incompatible with the Cstd library. Avoid specifying
  11835. # it if it's in CXXFLAGS. Ignore libCrun as
  11836. # -library=stlport4 depends on it.
  11837. case " $CXX $CXXFLAGS " in
  11838. *" -library=stlport4 "*)
  11839. solaris_use_stlport4=yes
  11840. ;;
  11841. esac
  11842. if test "$solaris_use_stlport4" != yes; then
  11843. postdeps_CXX='-library=Cstd -library=Crun'
  11844. fi
  11845. ;;
  11846. esac
  11847. ;;
  11848. solaris*)
  11849. case $cc_basename in
  11850. CC* | sunCC*)
  11851. # The more standards-conforming stlport4 library is
  11852. # incompatible with the Cstd library. Avoid specifying
  11853. # it if it's in CXXFLAGS. Ignore libCrun as
  11854. # -library=stlport4 depends on it.
  11855. case " $CXX $CXXFLAGS " in
  11856. *" -library=stlport4 "*)
  11857. solaris_use_stlport4=yes
  11858. ;;
  11859. esac
  11860. # Adding this requires a known-good setup of shared libraries for
  11861. # Sun compiler versions before 5.6, else PIC objects from an old
  11862. # archive will be linked into the output, leading to subtle bugs.
  11863. if test "$solaris_use_stlport4" != yes; then
  11864. postdeps_CXX='-library=Cstd -library=Crun'
  11865. fi
  11866. ;;
  11867. esac
  11868. ;;
  11869. esac
  11870. case " $postdeps_CXX " in
  11871. *" -lc "*) archive_cmds_need_lc_CXX=no ;;
  11872. esac
  11873. compiler_lib_search_dirs_CXX=
  11874. if test -n "${compiler_lib_search_path_CXX}"; then
  11875. compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | ${SED} -e 's! -L! !g' -e 's!^ !!'`
  11876. fi
  11877. lt_prog_compiler_wl_CXX=
  11878. lt_prog_compiler_pic_CXX=
  11879. lt_prog_compiler_static_CXX=
  11880. # C++ specific cases for pic, static, wl, etc.
  11881. if test "$GXX" = yes; then
  11882. lt_prog_compiler_wl_CXX='-Wl,'
  11883. lt_prog_compiler_static_CXX='-static'
  11884. case $host_os in
  11885. aix*)
  11886. # All AIX code is PIC.
  11887. if test "$host_cpu" = ia64; then
  11888. # AIX 5 now supports IA64 processor
  11889. lt_prog_compiler_static_CXX='-Bstatic'
  11890. fi
  11891. ;;
  11892. amigaos*)
  11893. case $host_cpu in
  11894. powerpc)
  11895. # see comment about AmigaOS4 .so support
  11896. lt_prog_compiler_pic_CXX='-fPIC'
  11897. ;;
  11898. m68k)
  11899. # FIXME: we need at least 68020 code to build shared libraries, but
  11900. # adding the `-m68020' flag to GCC prevents building anything better,
  11901. # like `-m68040'.
  11902. lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4'
  11903. ;;
  11904. esac
  11905. ;;
  11906. beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
  11907. # PIC is the default for these OSes.
  11908. ;;
  11909. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11910. # This hack is so that the source file can tell whether it is being
  11911. # built for inclusion in a dll (and should export symbols for example).
  11912. # Although the cygwin gcc ignores -fPIC, still need this for old-style
  11913. # (--disable-auto-import) libraries
  11914. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11915. ;;
  11916. darwin* | rhapsody*)
  11917. # PIC is the default on this platform
  11918. # Common symbols not allowed in MH_DYLIB files
  11919. lt_prog_compiler_pic_CXX='-fno-common'
  11920. ;;
  11921. *djgpp*)
  11922. # DJGPP does not support shared libraries at all
  11923. lt_prog_compiler_pic_CXX=
  11924. ;;
  11925. haiku*)
  11926. # PIC is the default for Haiku.
  11927. # The "-static" flag exists, but is broken.
  11928. lt_prog_compiler_static_CXX=
  11929. ;;
  11930. interix[3-9]*)
  11931. # Interix 3.x gcc -fpic/-fPIC options generate broken code.
  11932. # Instead, we relocate shared libraries at runtime.
  11933. ;;
  11934. sysv4*MP*)
  11935. if test -d /usr/nec; then
  11936. lt_prog_compiler_pic_CXX=-Kconform_pic
  11937. fi
  11938. ;;
  11939. hpux*)
  11940. # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
  11941. # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
  11942. # sets the default TLS model and affects inlining.
  11943. case $host_cpu in
  11944. hppa*64*)
  11945. ;;
  11946. *)
  11947. lt_prog_compiler_pic_CXX='-fPIC'
  11948. ;;
  11949. esac
  11950. ;;
  11951. *qnx* | *nto*)
  11952. # QNX uses GNU C++, but need to define -shared option too, otherwise
  11953. # it will coredump.
  11954. lt_prog_compiler_pic_CXX='-fPIC -shared'
  11955. ;;
  11956. *)
  11957. lt_prog_compiler_pic_CXX='-fPIC'
  11958. ;;
  11959. esac
  11960. else
  11961. case $host_os in
  11962. aix[4-9]*)
  11963. # All AIX code is PIC.
  11964. if test "$host_cpu" = ia64; then
  11965. # AIX 5 now supports IA64 processor
  11966. lt_prog_compiler_static_CXX='-Bstatic'
  11967. else
  11968. lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp'
  11969. fi
  11970. ;;
  11971. chorus*)
  11972. case $cc_basename in
  11973. cxch68*)
  11974. # Green Hills C++ Compiler
  11975. # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a"
  11976. ;;
  11977. esac
  11978. ;;
  11979. mingw* | cygwin* | os2* | pw32* | cegcc*)
  11980. # This hack is so that the source file can tell whether it is being
  11981. # built for inclusion in a dll (and should export symbols for example).
  11982. lt_prog_compiler_pic_CXX='-DDLL_EXPORT'
  11983. ;;
  11984. dgux*)
  11985. case $cc_basename in
  11986. ec++*)
  11987. lt_prog_compiler_pic_CXX='-KPIC'
  11988. ;;
  11989. ghcx*)
  11990. # Green Hills C++ Compiler
  11991. lt_prog_compiler_pic_CXX='-pic'
  11992. ;;
  11993. *)
  11994. ;;
  11995. esac
  11996. ;;
  11997. freebsd* | dragonfly*)
  11998. # FreeBSD uses GNU C++
  11999. ;;
  12000. hpux9* | hpux10* | hpux11*)
  12001. case $cc_basename in
  12002. CC*)
  12003. lt_prog_compiler_wl_CXX='-Wl,'
  12004. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12005. if test "$host_cpu" != ia64; then
  12006. lt_prog_compiler_pic_CXX='+Z'
  12007. fi
  12008. ;;
  12009. aCC*)
  12010. lt_prog_compiler_wl_CXX='-Wl,'
  12011. lt_prog_compiler_static_CXX='${wl}-a ${wl}archive'
  12012. case $host_cpu in
  12013. hppa*64*|ia64*)
  12014. # +Z the default
  12015. ;;
  12016. *)
  12017. lt_prog_compiler_pic_CXX='+Z'
  12018. ;;
  12019. esac
  12020. ;;
  12021. *)
  12022. ;;
  12023. esac
  12024. ;;
  12025. interix*)
  12026. # This is c89, which is MS Visual C++ (no shared libs)
  12027. # Anyone wants to do a port?
  12028. ;;
  12029. irix5* | irix6* | nonstopux*)
  12030. case $cc_basename in
  12031. CC*)
  12032. lt_prog_compiler_wl_CXX='-Wl,'
  12033. lt_prog_compiler_static_CXX='-non_shared'
  12034. # CC pic flag -KPIC is the default.
  12035. ;;
  12036. *)
  12037. ;;
  12038. esac
  12039. ;;
  12040. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12041. case $cc_basename in
  12042. KCC*)
  12043. # KAI C++ Compiler
  12044. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12045. lt_prog_compiler_pic_CXX='-fPIC'
  12046. ;;
  12047. ecpc* )
  12048. # old Intel C++ for x86_64 which still supported -KPIC.
  12049. lt_prog_compiler_wl_CXX='-Wl,'
  12050. lt_prog_compiler_pic_CXX='-KPIC'
  12051. lt_prog_compiler_static_CXX='-static'
  12052. ;;
  12053. icpc* )
  12054. # Intel C++, used to be incompatible with GCC.
  12055. # ICC 10 doesn't accept -KPIC any more.
  12056. lt_prog_compiler_wl_CXX='-Wl,'
  12057. lt_prog_compiler_pic_CXX='-fPIC'
  12058. lt_prog_compiler_static_CXX='-static'
  12059. ;;
  12060. pgCC* | pgcpp*)
  12061. # Portland Group C++ compiler
  12062. lt_prog_compiler_wl_CXX='-Wl,'
  12063. lt_prog_compiler_pic_CXX='-fpic'
  12064. lt_prog_compiler_static_CXX='-Bstatic'
  12065. ;;
  12066. cxx*)
  12067. # Compaq C++
  12068. # Make sure the PIC flag is empty. It appears that all Alpha
  12069. # Linux and Compaq Tru64 Unix objects are PIC.
  12070. lt_prog_compiler_pic_CXX=
  12071. lt_prog_compiler_static_CXX='-non_shared'
  12072. ;;
  12073. xlc* | xlC* | bgxl[cC]* | mpixl[cC]*)
  12074. # IBM XL 8.0, 9.0 on PPC and BlueGene
  12075. lt_prog_compiler_wl_CXX='-Wl,'
  12076. lt_prog_compiler_pic_CXX='-qpic'
  12077. lt_prog_compiler_static_CXX='-qstaticlink'
  12078. ;;
  12079. *)
  12080. case `$CC -V 2>&1 | sed 5q` in
  12081. *Sun\ C*)
  12082. # Sun C++ 5.9
  12083. lt_prog_compiler_pic_CXX='-KPIC'
  12084. lt_prog_compiler_static_CXX='-Bstatic'
  12085. lt_prog_compiler_wl_CXX='-Qoption ld '
  12086. ;;
  12087. esac
  12088. ;;
  12089. esac
  12090. ;;
  12091. lynxos*)
  12092. ;;
  12093. m88k*)
  12094. ;;
  12095. mvs*)
  12096. case $cc_basename in
  12097. cxx*)
  12098. lt_prog_compiler_pic_CXX='-W c,exportall'
  12099. ;;
  12100. *)
  12101. ;;
  12102. esac
  12103. ;;
  12104. netbsd*)
  12105. ;;
  12106. *qnx* | *nto*)
  12107. # QNX uses GNU C++, but need to define -shared option too, otherwise
  12108. # it will coredump.
  12109. lt_prog_compiler_pic_CXX='-fPIC -shared'
  12110. ;;
  12111. osf3* | osf4* | osf5*)
  12112. case $cc_basename in
  12113. KCC*)
  12114. lt_prog_compiler_wl_CXX='--backend -Wl,'
  12115. ;;
  12116. RCC*)
  12117. # Rational C++ 2.4.1
  12118. lt_prog_compiler_pic_CXX='-pic'
  12119. ;;
  12120. cxx*)
  12121. # Digital/Compaq C++
  12122. lt_prog_compiler_wl_CXX='-Wl,'
  12123. # Make sure the PIC flag is empty. It appears that all Alpha
  12124. # Linux and Compaq Tru64 Unix objects are PIC.
  12125. lt_prog_compiler_pic_CXX=
  12126. lt_prog_compiler_static_CXX='-non_shared'
  12127. ;;
  12128. *)
  12129. ;;
  12130. esac
  12131. ;;
  12132. psos*)
  12133. ;;
  12134. solaris*)
  12135. case $cc_basename in
  12136. CC* | sunCC*)
  12137. # Sun C++ 4.2, 5.x and Centerline C++
  12138. lt_prog_compiler_pic_CXX='-KPIC'
  12139. lt_prog_compiler_static_CXX='-Bstatic'
  12140. lt_prog_compiler_wl_CXX='-Qoption ld '
  12141. ;;
  12142. gcx*)
  12143. # Green Hills C++ Compiler
  12144. lt_prog_compiler_pic_CXX='-PIC'
  12145. ;;
  12146. *)
  12147. ;;
  12148. esac
  12149. ;;
  12150. sunos4*)
  12151. case $cc_basename in
  12152. CC*)
  12153. # Sun C++ 4.x
  12154. lt_prog_compiler_pic_CXX='-pic'
  12155. lt_prog_compiler_static_CXX='-Bstatic'
  12156. ;;
  12157. lcc*)
  12158. # Lucid
  12159. lt_prog_compiler_pic_CXX='-pic'
  12160. ;;
  12161. *)
  12162. ;;
  12163. esac
  12164. ;;
  12165. sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
  12166. case $cc_basename in
  12167. CC*)
  12168. lt_prog_compiler_wl_CXX='-Wl,'
  12169. lt_prog_compiler_pic_CXX='-KPIC'
  12170. lt_prog_compiler_static_CXX='-Bstatic'
  12171. ;;
  12172. esac
  12173. ;;
  12174. tandem*)
  12175. case $cc_basename in
  12176. NCC*)
  12177. # NonStop-UX NCC 3.20
  12178. lt_prog_compiler_pic_CXX='-KPIC'
  12179. ;;
  12180. *)
  12181. ;;
  12182. esac
  12183. ;;
  12184. vxworks*)
  12185. ;;
  12186. *)
  12187. lt_prog_compiler_can_build_shared_CXX=no
  12188. ;;
  12189. esac
  12190. fi
  12191. case $host_os in
  12192. # For platforms which do not support PIC, -DPIC is meaningless:
  12193. *djgpp*)
  12194. lt_prog_compiler_pic_CXX=
  12195. ;;
  12196. *)
  12197. lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC"
  12198. ;;
  12199. esac
  12200. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
  12201. $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
  12202. if ${lt_cv_prog_compiler_pic_CXX+:} false; then :
  12203. $as_echo_n "(cached) " >&6
  12204. else
  12205. lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX
  12206. fi
  12207. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5
  12208. $as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; }
  12209. lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX
  12210. #
  12211. # Check to make sure the PIC flag actually works.
  12212. #
  12213. if test -n "$lt_prog_compiler_pic_CXX"; then
  12214. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5
  12215. $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; }
  12216. if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then :
  12217. $as_echo_n "(cached) " >&6
  12218. else
  12219. lt_cv_prog_compiler_pic_works_CXX=no
  12220. ac_outfile=conftest.$ac_objext
  12221. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12222. lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC"
  12223. # Insert the option either (1) after the last *FLAGS variable, or
  12224. # (2) before a word containing "conftest.", or (3) at the end.
  12225. # Note that $ac_compile itself does not contain backslashes and begins
  12226. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12227. # The option is referenced via a variable to avoid confusing sed.
  12228. lt_compile=`echo "$ac_compile" | $SED \
  12229. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12230. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12231. -e 's:$: $lt_compiler_flag:'`
  12232. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12233. (eval "$lt_compile" 2>conftest.err)
  12234. ac_status=$?
  12235. cat conftest.err >&5
  12236. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12237. if (exit $ac_status) && test -s "$ac_outfile"; then
  12238. # The compiler can only warn and ignore the option if not recognized
  12239. # So say no if there are warnings other than the usual output.
  12240. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
  12241. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12242. if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
  12243. lt_cv_prog_compiler_pic_works_CXX=yes
  12244. fi
  12245. fi
  12246. $RM conftest*
  12247. fi
  12248. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5
  12249. $as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; }
  12250. if test x"$lt_cv_prog_compiler_pic_works_CXX" = xyes; then
  12251. case $lt_prog_compiler_pic_CXX in
  12252. "" | " "*) ;;
  12253. *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;;
  12254. esac
  12255. else
  12256. lt_prog_compiler_pic_CXX=
  12257. lt_prog_compiler_can_build_shared_CXX=no
  12258. fi
  12259. fi
  12260. #
  12261. # Check to make sure the static flag actually works.
  12262. #
  12263. wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\"
  12264. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
  12265. $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
  12266. if ${lt_cv_prog_compiler_static_works_CXX+:} false; then :
  12267. $as_echo_n "(cached) " >&6
  12268. else
  12269. lt_cv_prog_compiler_static_works_CXX=no
  12270. save_LDFLAGS="$LDFLAGS"
  12271. LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
  12272. echo "$lt_simple_link_test_code" > conftest.$ac_ext
  12273. if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
  12274. # The linker can only warn and ignore the option if not recognized
  12275. # So say no if there are warnings
  12276. if test -s conftest.err; then
  12277. # Append any errors to the config.log.
  12278. cat conftest.err 1>&5
  12279. $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
  12280. $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
  12281. if diff conftest.exp conftest.er2 >/dev/null; then
  12282. lt_cv_prog_compiler_static_works_CXX=yes
  12283. fi
  12284. else
  12285. lt_cv_prog_compiler_static_works_CXX=yes
  12286. fi
  12287. fi
  12288. $RM -r conftest*
  12289. LDFLAGS="$save_LDFLAGS"
  12290. fi
  12291. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5
  12292. $as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; }
  12293. if test x"$lt_cv_prog_compiler_static_works_CXX" = xyes; then
  12294. :
  12295. else
  12296. lt_prog_compiler_static_CXX=
  12297. fi
  12298. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12299. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12300. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12301. $as_echo_n "(cached) " >&6
  12302. else
  12303. lt_cv_prog_compiler_c_o_CXX=no
  12304. $RM -r conftest 2>/dev/null
  12305. mkdir conftest
  12306. cd conftest
  12307. mkdir out
  12308. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12309. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12310. # Insert the option either (1) after the last *FLAGS variable, or
  12311. # (2) before a word containing "conftest.", or (3) at the end.
  12312. # Note that $ac_compile itself does not contain backslashes and begins
  12313. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12314. lt_compile=`echo "$ac_compile" | $SED \
  12315. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12316. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12317. -e 's:$: $lt_compiler_flag:'`
  12318. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12319. (eval "$lt_compile" 2>out/conftest.err)
  12320. ac_status=$?
  12321. cat out/conftest.err >&5
  12322. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12323. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12324. then
  12325. # The compiler can only warn and ignore the option if not recognized
  12326. # So say no if there are warnings
  12327. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12328. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12329. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12330. lt_cv_prog_compiler_c_o_CXX=yes
  12331. fi
  12332. fi
  12333. chmod u+w . 2>&5
  12334. $RM conftest*
  12335. # SGI C++ compiler will create directory out/ii_files/ for
  12336. # template instantiation
  12337. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12338. $RM out/* && rmdir out
  12339. cd ..
  12340. $RM -r conftest
  12341. $RM conftest*
  12342. fi
  12343. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12344. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12345. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
  12346. $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
  12347. if ${lt_cv_prog_compiler_c_o_CXX+:} false; then :
  12348. $as_echo_n "(cached) " >&6
  12349. else
  12350. lt_cv_prog_compiler_c_o_CXX=no
  12351. $RM -r conftest 2>/dev/null
  12352. mkdir conftest
  12353. cd conftest
  12354. mkdir out
  12355. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12356. lt_compiler_flag="-o out/conftest2.$ac_objext"
  12357. # Insert the option either (1) after the last *FLAGS variable, or
  12358. # (2) before a word containing "conftest.", or (3) at the end.
  12359. # Note that $ac_compile itself does not contain backslashes and begins
  12360. # with a dollar sign (not a hyphen), so the echo should work correctly.
  12361. lt_compile=`echo "$ac_compile" | $SED \
  12362. -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
  12363. -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
  12364. -e 's:$: $lt_compiler_flag:'`
  12365. (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
  12366. (eval "$lt_compile" 2>out/conftest.err)
  12367. ac_status=$?
  12368. cat out/conftest.err >&5
  12369. echo "$as_me:$LINENO: \$? = $ac_status" >&5
  12370. if (exit $ac_status) && test -s out/conftest2.$ac_objext
  12371. then
  12372. # The compiler can only warn and ignore the option if not recognized
  12373. # So say no if there are warnings
  12374. $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
  12375. $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
  12376. if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
  12377. lt_cv_prog_compiler_c_o_CXX=yes
  12378. fi
  12379. fi
  12380. chmod u+w . 2>&5
  12381. $RM conftest*
  12382. # SGI C++ compiler will create directory out/ii_files/ for
  12383. # template instantiation
  12384. test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
  12385. $RM out/* && rmdir out
  12386. cd ..
  12387. $RM -r conftest
  12388. $RM conftest*
  12389. fi
  12390. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5
  12391. $as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; }
  12392. hard_links="nottested"
  12393. if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then
  12394. # do not overwrite the value of need_locks provided by the user
  12395. { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
  12396. $as_echo_n "checking if we can lock with hard links... " >&6; }
  12397. hard_links=yes
  12398. $RM conftest*
  12399. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12400. touch conftest.a
  12401. ln conftest.a conftest.b 2>&5 || hard_links=no
  12402. ln conftest.a conftest.b 2>/dev/null && hard_links=no
  12403. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
  12404. $as_echo "$hard_links" >&6; }
  12405. if test "$hard_links" = no; then
  12406. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
  12407. $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
  12408. need_locks=warn
  12409. fi
  12410. else
  12411. need_locks=no
  12412. fi
  12413. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
  12414. $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
  12415. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12416. exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
  12417. case $host_os in
  12418. aix[4-9]*)
  12419. # If we're using GNU nm, then we don't want the "-C" option.
  12420. # -C means demangle to AIX nm, but means don't demangle with GNU nm
  12421. # Also, AIX nm treats weak defined symbols like other global defined
  12422. # symbols, whereas GNU nm marks them as "W".
  12423. if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
  12424. export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12425. else
  12426. export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
  12427. fi
  12428. ;;
  12429. pw32*)
  12430. export_symbols_cmds_CXX="$ltdll_cmds"
  12431. ;;
  12432. cygwin* | mingw* | cegcc*)
  12433. case $cc_basename in
  12434. cl*)
  12435. exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
  12436. ;;
  12437. *)
  12438. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
  12439. exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
  12440. ;;
  12441. esac
  12442. ;;
  12443. *)
  12444. export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
  12445. ;;
  12446. esac
  12447. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5
  12448. $as_echo "$ld_shlibs_CXX" >&6; }
  12449. test "$ld_shlibs_CXX" = no && can_build_shared=no
  12450. with_gnu_ld_CXX=$with_gnu_ld
  12451. #
  12452. # Do we need to explicitly link libc?
  12453. #
  12454. case "x$archive_cmds_need_lc_CXX" in
  12455. x|xyes)
  12456. # Assume -lc should be added
  12457. archive_cmds_need_lc_CXX=yes
  12458. if test "$enable_shared" = yes && test "$GCC" = yes; then
  12459. case $archive_cmds_CXX in
  12460. *'~'*)
  12461. # FIXME: we may have to deal with multi-command sequences.
  12462. ;;
  12463. '$CC '*)
  12464. # Test whether the compiler implicitly links with -lc since on some
  12465. # systems, -lgcc has to come before -lc. If gcc already passes -lc
  12466. # to ld, don't add -lc before -lgcc.
  12467. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
  12468. $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
  12469. if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then :
  12470. $as_echo_n "(cached) " >&6
  12471. else
  12472. $RM conftest*
  12473. echo "$lt_simple_compile_test_code" > conftest.$ac_ext
  12474. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
  12475. (eval $ac_compile) 2>&5
  12476. ac_status=$?
  12477. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12478. test $ac_status = 0; } 2>conftest.err; then
  12479. soname=conftest
  12480. lib=conftest
  12481. libobjs=conftest.$ac_objext
  12482. deplibs=
  12483. wl=$lt_prog_compiler_wl_CXX
  12484. pic_flag=$lt_prog_compiler_pic_CXX
  12485. compiler_flags=-v
  12486. linker_flags=-v
  12487. verstring=
  12488. output_objdir=.
  12489. libname=conftest
  12490. lt_save_allow_undefined_flag=$allow_undefined_flag_CXX
  12491. allow_undefined_flag_CXX=
  12492. if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
  12493. (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
  12494. ac_status=$?
  12495. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  12496. test $ac_status = 0; }
  12497. then
  12498. lt_cv_archive_cmds_need_lc_CXX=no
  12499. else
  12500. lt_cv_archive_cmds_need_lc_CXX=yes
  12501. fi
  12502. allow_undefined_flag_CXX=$lt_save_allow_undefined_flag
  12503. else
  12504. cat conftest.err 1>&5
  12505. fi
  12506. $RM conftest*
  12507. fi
  12508. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5
  12509. $as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; }
  12510. archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX
  12511. ;;
  12512. esac
  12513. fi
  12514. ;;
  12515. esac
  12516. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
  12517. $as_echo_n "checking dynamic linker characteristics... " >&6; }
  12518. library_names_spec=
  12519. libname_spec='lib$name'
  12520. soname_spec=
  12521. shrext_cmds=".so"
  12522. postinstall_cmds=
  12523. postuninstall_cmds=
  12524. finish_cmds=
  12525. finish_eval=
  12526. shlibpath_var=
  12527. shlibpath_overrides_runpath=unknown
  12528. version_type=none
  12529. dynamic_linker="$host_os ld.so"
  12530. sys_lib_dlsearch_path_spec="/lib /usr/lib"
  12531. need_lib_prefix=unknown
  12532. hardcode_into_libs=no
  12533. # when you set need_version to no, make sure it does not cause -set_version
  12534. # flags to be left without arguments
  12535. need_version=unknown
  12536. case $host_os in
  12537. aix3*)
  12538. version_type=linux # correct to gnu/linux during the next big refactor
  12539. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
  12540. shlibpath_var=LIBPATH
  12541. # AIX 3 has no versioning support, so we append a major version to the name.
  12542. soname_spec='${libname}${release}${shared_ext}$major'
  12543. ;;
  12544. aix[4-9]*)
  12545. version_type=linux # correct to gnu/linux during the next big refactor
  12546. need_lib_prefix=no
  12547. need_version=no
  12548. hardcode_into_libs=yes
  12549. if test "$host_cpu" = ia64; then
  12550. # AIX 5 supports IA64
  12551. library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
  12552. shlibpath_var=LD_LIBRARY_PATH
  12553. else
  12554. # With GCC up to 2.95.x, collect2 would create an import file
  12555. # for dependence libraries. The import file would start with
  12556. # the line `#! .'. This would cause the generated library to
  12557. # depend on `.', always an invalid library. This was fixed in
  12558. # development snapshots of GCC prior to 3.0.
  12559. case $host_os in
  12560. aix4 | aix4.[01] | aix4.[01].*)
  12561. if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
  12562. echo ' yes '
  12563. echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
  12564. :
  12565. else
  12566. can_build_shared=no
  12567. fi
  12568. ;;
  12569. esac
  12570. # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
  12571. # soname into executable. Probably we can add versioning support to
  12572. # collect2, so additional links can be useful in future.
  12573. if test "$aix_use_runtimelinking" = yes; then
  12574. # If using run time linking (on AIX 4.2 or later) use lib<name>.so
  12575. # instead of lib<name>.a to let people know that these are not
  12576. # typical AIX shared libraries.
  12577. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12578. else
  12579. # We preserve .a as extension for shared libraries through AIX4.2
  12580. # and later when we are not doing run time linking.
  12581. library_names_spec='${libname}${release}.a $libname.a'
  12582. soname_spec='${libname}${release}${shared_ext}$major'
  12583. fi
  12584. shlibpath_var=LIBPATH
  12585. fi
  12586. ;;
  12587. amigaos*)
  12588. case $host_cpu in
  12589. powerpc)
  12590. # Since July 2007 AmigaOS4 officially supports .so libraries.
  12591. # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
  12592. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12593. ;;
  12594. m68k)
  12595. library_names_spec='$libname.ixlibrary $libname.a'
  12596. # Create ${libname}_ixlibrary.a entries in /sys/libs.
  12597. 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'
  12598. ;;
  12599. esac
  12600. ;;
  12601. beos*)
  12602. library_names_spec='${libname}${shared_ext}'
  12603. dynamic_linker="$host_os ld.so"
  12604. shlibpath_var=LIBRARY_PATH
  12605. ;;
  12606. bsdi[45]*)
  12607. version_type=linux # correct to gnu/linux during the next big refactor
  12608. need_version=no
  12609. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12610. soname_spec='${libname}${release}${shared_ext}$major'
  12611. finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
  12612. shlibpath_var=LD_LIBRARY_PATH
  12613. sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
  12614. sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
  12615. # the default ld.so.conf also contains /usr/contrib/lib and
  12616. # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
  12617. # libtool to hard-code these into programs
  12618. ;;
  12619. cygwin* | mingw* | pw32* | cegcc*)
  12620. version_type=windows
  12621. shrext_cmds=".dll"
  12622. need_version=no
  12623. need_lib_prefix=no
  12624. case $GCC,$cc_basename in
  12625. yes,*)
  12626. # gcc
  12627. library_names_spec='$libname.dll.a'
  12628. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12629. postinstall_cmds='base_file=`basename \${file}`~
  12630. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12631. dldir=$destdir/`dirname \$dlpath`~
  12632. test -d \$dldir || mkdir -p \$dldir~
  12633. $install_prog $dir/$dlname \$dldir/$dlname~
  12634. chmod a+x \$dldir/$dlname~
  12635. if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
  12636. eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
  12637. fi'
  12638. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12639. dlpath=$dir/\$dldll~
  12640. $RM \$dlpath'
  12641. shlibpath_overrides_runpath=yes
  12642. case $host_os in
  12643. cygwin*)
  12644. # Cygwin DLLs use 'cyg' prefix rather than 'lib'
  12645. soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12646. ;;
  12647. mingw* | cegcc*)
  12648. # MinGW DLLs use traditional 'lib' prefix
  12649. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12650. ;;
  12651. pw32*)
  12652. # pw32 DLLs use 'pw' prefix rather than 'lib'
  12653. library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12654. ;;
  12655. esac
  12656. dynamic_linker='Win32 ld.exe'
  12657. ;;
  12658. *,cl*)
  12659. # Native MSVC
  12660. libname_spec='$name'
  12661. soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
  12662. library_names_spec='${libname}.dll.lib'
  12663. case $build_os in
  12664. mingw*)
  12665. sys_lib_search_path_spec=
  12666. lt_save_ifs=$IFS
  12667. IFS=';'
  12668. for lt_path in $LIB
  12669. do
  12670. IFS=$lt_save_ifs
  12671. # Let DOS variable expansion print the short 8.3 style file name.
  12672. lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
  12673. sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
  12674. done
  12675. IFS=$lt_save_ifs
  12676. # Convert to MSYS style.
  12677. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
  12678. ;;
  12679. cygwin*)
  12680. # Convert to unix form, then to dos form, then back to unix form
  12681. # but this time dos style (no spaces!) so that the unix form looks
  12682. # like /cygdrive/c/PROGRA~1:/cygdr...
  12683. sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
  12684. sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
  12685. sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12686. ;;
  12687. *)
  12688. sys_lib_search_path_spec="$LIB"
  12689. if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
  12690. # It is most probably a Windows format PATH.
  12691. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
  12692. else
  12693. sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
  12694. fi
  12695. # FIXME: find the short name or the path components, as spaces are
  12696. # common. (e.g. "Program Files" -> "PROGRA~1")
  12697. ;;
  12698. esac
  12699. # DLL is installed to $(libdir)/../bin by postinstall_cmds
  12700. postinstall_cmds='base_file=`basename \${file}`~
  12701. dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
  12702. dldir=$destdir/`dirname \$dlpath`~
  12703. test -d \$dldir || mkdir -p \$dldir~
  12704. $install_prog $dir/$dlname \$dldir/$dlname'
  12705. postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
  12706. dlpath=$dir/\$dldll~
  12707. $RM \$dlpath'
  12708. shlibpath_overrides_runpath=yes
  12709. dynamic_linker='Win32 link.exe'
  12710. ;;
  12711. *)
  12712. # Assume MSVC wrapper
  12713. library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
  12714. dynamic_linker='Win32 ld.exe'
  12715. ;;
  12716. esac
  12717. # FIXME: first we should search . and the directory the executable is in
  12718. shlibpath_var=PATH
  12719. ;;
  12720. darwin* | rhapsody*)
  12721. dynamic_linker="$host_os dyld"
  12722. version_type=darwin
  12723. need_lib_prefix=no
  12724. need_version=no
  12725. library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
  12726. soname_spec='${libname}${release}${major}$shared_ext'
  12727. shlibpath_overrides_runpath=yes
  12728. shlibpath_var=DYLD_LIBRARY_PATH
  12729. shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
  12730. sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
  12731. ;;
  12732. dgux*)
  12733. version_type=linux # correct to gnu/linux during the next big refactor
  12734. need_lib_prefix=no
  12735. need_version=no
  12736. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
  12737. soname_spec='${libname}${release}${shared_ext}$major'
  12738. shlibpath_var=LD_LIBRARY_PATH
  12739. ;;
  12740. freebsd* | dragonfly*)
  12741. # DragonFly does not have aout. When/if they implement a new
  12742. # versioning mechanism, adjust this.
  12743. if test -x /usr/bin/objformat; then
  12744. objformat=`/usr/bin/objformat`
  12745. else
  12746. case $host_os in
  12747. freebsd[23].*) objformat=aout ;;
  12748. *) objformat=elf ;;
  12749. esac
  12750. fi
  12751. version_type=freebsd-$objformat
  12752. case $version_type in
  12753. freebsd-elf*)
  12754. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  12755. need_version=no
  12756. need_lib_prefix=no
  12757. ;;
  12758. freebsd-*)
  12759. library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
  12760. need_version=yes
  12761. ;;
  12762. esac
  12763. shlibpath_var=LD_LIBRARY_PATH
  12764. case $host_os in
  12765. freebsd2.*)
  12766. shlibpath_overrides_runpath=yes
  12767. ;;
  12768. freebsd3.[01]* | freebsdelf3.[01]*)
  12769. shlibpath_overrides_runpath=yes
  12770. hardcode_into_libs=yes
  12771. ;;
  12772. freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
  12773. freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
  12774. shlibpath_overrides_runpath=no
  12775. hardcode_into_libs=yes
  12776. ;;
  12777. *) # from 4.6 on, and DragonFly
  12778. shlibpath_overrides_runpath=yes
  12779. hardcode_into_libs=yes
  12780. ;;
  12781. esac
  12782. ;;
  12783. gnu*)
  12784. version_type=linux # correct to gnu/linux during the next big refactor
  12785. need_lib_prefix=no
  12786. need_version=no
  12787. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12788. soname_spec='${libname}${release}${shared_ext}$major'
  12789. shlibpath_var=LD_LIBRARY_PATH
  12790. shlibpath_overrides_runpath=no
  12791. hardcode_into_libs=yes
  12792. ;;
  12793. haiku*)
  12794. version_type=linux # correct to gnu/linux during the next big refactor
  12795. need_lib_prefix=no
  12796. need_version=no
  12797. dynamic_linker="$host_os runtime_loader"
  12798. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
  12799. soname_spec='${libname}${release}${shared_ext}$major'
  12800. shlibpath_var=LIBRARY_PATH
  12801. shlibpath_overrides_runpath=yes
  12802. sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
  12803. hardcode_into_libs=yes
  12804. ;;
  12805. hpux9* | hpux10* | hpux11*)
  12806. # Give a soname corresponding to the major version so that dld.sl refuses to
  12807. # link against other versions.
  12808. version_type=sunos
  12809. need_lib_prefix=no
  12810. need_version=no
  12811. case $host_cpu in
  12812. ia64*)
  12813. shrext_cmds='.so'
  12814. hardcode_into_libs=yes
  12815. dynamic_linker="$host_os dld.so"
  12816. shlibpath_var=LD_LIBRARY_PATH
  12817. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12818. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12819. soname_spec='${libname}${release}${shared_ext}$major'
  12820. if test "X$HPUX_IA64_MODE" = X32; then
  12821. sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
  12822. else
  12823. sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
  12824. fi
  12825. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12826. ;;
  12827. hppa*64*)
  12828. shrext_cmds='.sl'
  12829. hardcode_into_libs=yes
  12830. dynamic_linker="$host_os dld.sl"
  12831. shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
  12832. shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
  12833. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12834. soname_spec='${libname}${release}${shared_ext}$major'
  12835. sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
  12836. sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
  12837. ;;
  12838. *)
  12839. shrext_cmds='.sl'
  12840. dynamic_linker="$host_os dld.sl"
  12841. shlibpath_var=SHLIB_PATH
  12842. shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
  12843. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12844. soname_spec='${libname}${release}${shared_ext}$major'
  12845. ;;
  12846. esac
  12847. # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
  12848. postinstall_cmds='chmod 555 $lib'
  12849. # or fails outright, so override atomically:
  12850. install_override_mode=555
  12851. ;;
  12852. interix[3-9]*)
  12853. version_type=linux # correct to gnu/linux during the next big refactor
  12854. need_lib_prefix=no
  12855. need_version=no
  12856. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12857. soname_spec='${libname}${release}${shared_ext}$major'
  12858. dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
  12859. shlibpath_var=LD_LIBRARY_PATH
  12860. shlibpath_overrides_runpath=no
  12861. hardcode_into_libs=yes
  12862. ;;
  12863. irix5* | irix6* | nonstopux*)
  12864. case $host_os in
  12865. nonstopux*) version_type=nonstopux ;;
  12866. *)
  12867. if test "$lt_cv_prog_gnu_ld" = yes; then
  12868. version_type=linux # correct to gnu/linux during the next big refactor
  12869. else
  12870. version_type=irix
  12871. fi ;;
  12872. esac
  12873. need_lib_prefix=no
  12874. need_version=no
  12875. soname_spec='${libname}${release}${shared_ext}$major'
  12876. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
  12877. case $host_os in
  12878. irix5* | nonstopux*)
  12879. libsuff= shlibsuff=
  12880. ;;
  12881. *)
  12882. case $LD in # libtool.m4 will add one of these switches to LD
  12883. *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
  12884. libsuff= shlibsuff= libmagic=32-bit;;
  12885. *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
  12886. libsuff=32 shlibsuff=N32 libmagic=N32;;
  12887. *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
  12888. libsuff=64 shlibsuff=64 libmagic=64-bit;;
  12889. *) libsuff= shlibsuff= libmagic=never-match;;
  12890. esac
  12891. ;;
  12892. esac
  12893. shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
  12894. shlibpath_overrides_runpath=no
  12895. sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
  12896. sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
  12897. hardcode_into_libs=yes
  12898. ;;
  12899. # No shared lib support for Linux oldld, aout, or coff.
  12900. linux*oldld* | linux*aout* | linux*coff*)
  12901. dynamic_linker=no
  12902. ;;
  12903. # This must be glibc/ELF.
  12904. linux* | k*bsd*-gnu | kopensolaris*-gnu)
  12905. version_type=linux # correct to gnu/linux during the next big refactor
  12906. need_lib_prefix=no
  12907. need_version=no
  12908. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12909. soname_spec='${libname}${release}${shared_ext}$major'
  12910. finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
  12911. shlibpath_var=LD_LIBRARY_PATH
  12912. shlibpath_overrides_runpath=no
  12913. # Some binutils ld are patched to set DT_RUNPATH
  12914. if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
  12915. $as_echo_n "(cached) " >&6
  12916. else
  12917. lt_cv_shlibpath_overrides_runpath=no
  12918. save_LDFLAGS=$LDFLAGS
  12919. save_libdir=$libdir
  12920. eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \
  12921. LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\""
  12922. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  12923. /* end confdefs.h. */
  12924. int
  12925. main ()
  12926. {
  12927. ;
  12928. return 0;
  12929. }
  12930. _ACEOF
  12931. if ac_fn_cxx_try_link "$LINENO"; then :
  12932. if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
  12933. lt_cv_shlibpath_overrides_runpath=yes
  12934. fi
  12935. fi
  12936. rm -f core conftest.err conftest.$ac_objext \
  12937. conftest$ac_exeext conftest.$ac_ext
  12938. LDFLAGS=$save_LDFLAGS
  12939. libdir=$save_libdir
  12940. fi
  12941. shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
  12942. # This implies no fast_install, which is unacceptable.
  12943. # Some rework will be needed to allow for fast_install
  12944. # before this can be enabled.
  12945. hardcode_into_libs=yes
  12946. # Append ld.so.conf contents to the search path
  12947. if test -f /etc/ld.so.conf; then
  12948. 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' ' '`
  12949. sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
  12950. fi
  12951. # We used to test for /lib/ld.so.1 and disable shared libraries on
  12952. # powerpc, because MkLinux only supported shared libraries with the
  12953. # GNU dynamic linker. Since this was broken with cross compilers,
  12954. # most powerpc-linux boxes support dynamic linking these days and
  12955. # people can always --disable-shared, the test was removed, and we
  12956. # assume the GNU/Linux dynamic linker is in use.
  12957. dynamic_linker='GNU/Linux ld.so'
  12958. ;;
  12959. netbsd*)
  12960. version_type=sunos
  12961. need_lib_prefix=no
  12962. need_version=no
  12963. if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
  12964. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  12965. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  12966. dynamic_linker='NetBSD (a.out) ld.so'
  12967. else
  12968. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
  12969. soname_spec='${libname}${release}${shared_ext}$major'
  12970. dynamic_linker='NetBSD ld.elf_so'
  12971. fi
  12972. shlibpath_var=LD_LIBRARY_PATH
  12973. shlibpath_overrides_runpath=yes
  12974. hardcode_into_libs=yes
  12975. ;;
  12976. newsos6)
  12977. version_type=linux # correct to gnu/linux during the next big refactor
  12978. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12979. shlibpath_var=LD_LIBRARY_PATH
  12980. shlibpath_overrides_runpath=yes
  12981. ;;
  12982. *nto* | *qnx*)
  12983. version_type=qnx
  12984. need_lib_prefix=no
  12985. need_version=no
  12986. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  12987. soname_spec='${libname}${release}${shared_ext}$major'
  12988. shlibpath_var=LD_LIBRARY_PATH
  12989. shlibpath_overrides_runpath=no
  12990. hardcode_into_libs=yes
  12991. dynamic_linker='ldqnx.so'
  12992. ;;
  12993. openbsd*)
  12994. version_type=sunos
  12995. sys_lib_dlsearch_path_spec="/usr/lib"
  12996. need_lib_prefix=no
  12997. # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
  12998. case $host_os in
  12999. openbsd3.3 | openbsd3.3.*) need_version=yes ;;
  13000. *) need_version=no ;;
  13001. esac
  13002. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13003. finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
  13004. shlibpath_var=LD_LIBRARY_PATH
  13005. if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
  13006. case $host_os in
  13007. openbsd2.[89] | openbsd2.[89].*)
  13008. shlibpath_overrides_runpath=no
  13009. ;;
  13010. *)
  13011. shlibpath_overrides_runpath=yes
  13012. ;;
  13013. esac
  13014. else
  13015. shlibpath_overrides_runpath=yes
  13016. fi
  13017. ;;
  13018. os2*)
  13019. libname_spec='$name'
  13020. shrext_cmds=".dll"
  13021. need_lib_prefix=no
  13022. library_names_spec='$libname${shared_ext} $libname.a'
  13023. dynamic_linker='OS/2 ld.exe'
  13024. shlibpath_var=LIBPATH
  13025. ;;
  13026. osf3* | osf4* | osf5*)
  13027. version_type=osf
  13028. need_lib_prefix=no
  13029. need_version=no
  13030. soname_spec='${libname}${release}${shared_ext}$major'
  13031. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13032. shlibpath_var=LD_LIBRARY_PATH
  13033. sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
  13034. sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
  13035. ;;
  13036. rdos*)
  13037. dynamic_linker=no
  13038. ;;
  13039. solaris*)
  13040. version_type=linux # correct to gnu/linux during the next big refactor
  13041. need_lib_prefix=no
  13042. need_version=no
  13043. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13044. soname_spec='${libname}${release}${shared_ext}$major'
  13045. shlibpath_var=LD_LIBRARY_PATH
  13046. shlibpath_overrides_runpath=yes
  13047. hardcode_into_libs=yes
  13048. # ldd complains unless libraries are executable
  13049. postinstall_cmds='chmod +x $lib'
  13050. ;;
  13051. sunos4*)
  13052. version_type=sunos
  13053. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
  13054. finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
  13055. shlibpath_var=LD_LIBRARY_PATH
  13056. shlibpath_overrides_runpath=yes
  13057. if test "$with_gnu_ld" = yes; then
  13058. need_lib_prefix=no
  13059. fi
  13060. need_version=yes
  13061. ;;
  13062. sysv4 | sysv4.3*)
  13063. version_type=linux # correct to gnu/linux during the next big refactor
  13064. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13065. soname_spec='${libname}${release}${shared_ext}$major'
  13066. shlibpath_var=LD_LIBRARY_PATH
  13067. case $host_vendor in
  13068. sni)
  13069. shlibpath_overrides_runpath=no
  13070. need_lib_prefix=no
  13071. runpath_var=LD_RUN_PATH
  13072. ;;
  13073. siemens)
  13074. need_lib_prefix=no
  13075. ;;
  13076. motorola)
  13077. need_lib_prefix=no
  13078. need_version=no
  13079. shlibpath_overrides_runpath=no
  13080. sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
  13081. ;;
  13082. esac
  13083. ;;
  13084. sysv4*MP*)
  13085. if test -d /usr/nec ;then
  13086. version_type=linux # correct to gnu/linux during the next big refactor
  13087. library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
  13088. soname_spec='$libname${shared_ext}.$major'
  13089. shlibpath_var=LD_LIBRARY_PATH
  13090. fi
  13091. ;;
  13092. sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
  13093. version_type=freebsd-elf
  13094. need_lib_prefix=no
  13095. need_version=no
  13096. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
  13097. soname_spec='${libname}${release}${shared_ext}$major'
  13098. shlibpath_var=LD_LIBRARY_PATH
  13099. shlibpath_overrides_runpath=yes
  13100. hardcode_into_libs=yes
  13101. if test "$with_gnu_ld" = yes; then
  13102. sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
  13103. else
  13104. sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
  13105. case $host_os in
  13106. sco3.2v5*)
  13107. sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
  13108. ;;
  13109. esac
  13110. fi
  13111. sys_lib_dlsearch_path_spec='/usr/lib'
  13112. ;;
  13113. tpf*)
  13114. # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
  13115. version_type=linux # correct to gnu/linux during the next big refactor
  13116. need_lib_prefix=no
  13117. need_version=no
  13118. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13119. shlibpath_var=LD_LIBRARY_PATH
  13120. shlibpath_overrides_runpath=no
  13121. hardcode_into_libs=yes
  13122. ;;
  13123. uts4*)
  13124. version_type=linux # correct to gnu/linux during the next big refactor
  13125. library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
  13126. soname_spec='${libname}${release}${shared_ext}$major'
  13127. shlibpath_var=LD_LIBRARY_PATH
  13128. ;;
  13129. *)
  13130. dynamic_linker=no
  13131. ;;
  13132. esac
  13133. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
  13134. $as_echo "$dynamic_linker" >&6; }
  13135. test "$dynamic_linker" = no && can_build_shared=no
  13136. variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
  13137. if test "$GCC" = yes; then
  13138. variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
  13139. fi
  13140. if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
  13141. sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
  13142. fi
  13143. if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
  13144. sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
  13145. fi
  13146. { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
  13147. $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
  13148. hardcode_action_CXX=
  13149. if test -n "$hardcode_libdir_flag_spec_CXX" ||
  13150. test -n "$runpath_var_CXX" ||
  13151. test "X$hardcode_automatic_CXX" = "Xyes" ; then
  13152. # We can hardcode non-existent directories.
  13153. if test "$hardcode_direct_CXX" != no &&
  13154. # If the only mechanism to avoid hardcoding is shlibpath_var, we
  13155. # have to relink, otherwise we might link with an installed library
  13156. # when we should be linking with a yet-to-be-installed one
  13157. ## test "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" != no &&
  13158. test "$hardcode_minus_L_CXX" != no; then
  13159. # Linking always hardcodes the temporary library directory.
  13160. hardcode_action_CXX=relink
  13161. else
  13162. # We can link without hardcoding, and we can hardcode nonexisting dirs.
  13163. hardcode_action_CXX=immediate
  13164. fi
  13165. else
  13166. # We cannot hardcode anything, or else we can only hardcode existing
  13167. # directories.
  13168. hardcode_action_CXX=unsupported
  13169. fi
  13170. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5
  13171. $as_echo "$hardcode_action_CXX" >&6; }
  13172. if test "$hardcode_action_CXX" = relink ||
  13173. test "$inherit_rpath_CXX" = yes; then
  13174. # Fast installation is not supported
  13175. enable_fast_install=no
  13176. elif test "$shlibpath_overrides_runpath" = yes ||
  13177. test "$enable_shared" = no; then
  13178. # Fast installation is not necessary
  13179. enable_fast_install=needless
  13180. fi
  13181. fi # test -n "$compiler"
  13182. CC=$lt_save_CC
  13183. CFLAGS=$lt_save_CFLAGS
  13184. LDCXX=$LD
  13185. LD=$lt_save_LD
  13186. GCC=$lt_save_GCC
  13187. with_gnu_ld=$lt_save_with_gnu_ld
  13188. lt_cv_path_LDCXX=$lt_cv_path_LD
  13189. lt_cv_path_LD=$lt_save_path_LD
  13190. lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld
  13191. lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld
  13192. fi # test "$_lt_caught_CXX_error" != yes
  13193. ac_ext=c
  13194. ac_cpp='$CPP $CPPFLAGS'
  13195. ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
  13196. ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
  13197. ac_compiler_gnu=$ac_cv_c_compiler_gnu
  13198. ac_config_commands="$ac_config_commands libtool"
  13199. # Only expand once:
  13200. ac_config_headers="$ac_config_headers config.h"
  13201. am__api_version='1.12'
  13202. # Find a good install program. We prefer a C program (faster),
  13203. # so one script is as good as another. But avoid the broken or
  13204. # incompatible versions:
  13205. # SysV /etc/install, /usr/sbin/install
  13206. # SunOS /usr/etc/install
  13207. # IRIX /sbin/install
  13208. # AIX /bin/install
  13209. # AmigaOS /C/install, which installs bootblocks on floppy discs
  13210. # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
  13211. # AFS /usr/afsws/bin/install, which mishandles nonexistent args
  13212. # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
  13213. # OS/2's system install, which has a completely different semantic
  13214. # ./install, which can be erroneously created by make from ./install.sh.
  13215. # Reject install programs that cannot install multiple files.
  13216. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
  13217. $as_echo_n "checking for a BSD-compatible install... " >&6; }
  13218. if test -z "$INSTALL"; then
  13219. if ${ac_cv_path_install+:} false; then :
  13220. $as_echo_n "(cached) " >&6
  13221. else
  13222. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13223. for as_dir in $PATH
  13224. do
  13225. IFS=$as_save_IFS
  13226. test -z "$as_dir" && as_dir=.
  13227. # Account for people who put trailing slashes in PATH elements.
  13228. case $as_dir/ in #((
  13229. ./ | .// | /[cC]/* | \
  13230. /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
  13231. ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
  13232. /usr/ucb/* ) ;;
  13233. *)
  13234. # OSF1 and SCO ODT 3.0 have their own names for install.
  13235. # Don't use installbsd from OSF since it installs stuff as root
  13236. # by default.
  13237. for ac_prog in ginstall scoinst install; do
  13238. for ac_exec_ext in '' $ac_executable_extensions; do
  13239. if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
  13240. if test $ac_prog = install &&
  13241. grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13242. # AIX install. It has an incompatible calling convention.
  13243. :
  13244. elif test $ac_prog = install &&
  13245. grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
  13246. # program-specific install script used by HP pwplus--don't use.
  13247. :
  13248. else
  13249. rm -rf conftest.one conftest.two conftest.dir
  13250. echo one > conftest.one
  13251. echo two > conftest.two
  13252. mkdir conftest.dir
  13253. if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
  13254. test -s conftest.one && test -s conftest.two &&
  13255. test -s conftest.dir/conftest.one &&
  13256. test -s conftest.dir/conftest.two
  13257. then
  13258. ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
  13259. break 3
  13260. fi
  13261. fi
  13262. fi
  13263. done
  13264. done
  13265. ;;
  13266. esac
  13267. done
  13268. IFS=$as_save_IFS
  13269. rm -rf conftest.one conftest.two conftest.dir
  13270. fi
  13271. if test "${ac_cv_path_install+set}" = set; then
  13272. INSTALL=$ac_cv_path_install
  13273. else
  13274. # As a last resort, use the slow shell script. Don't cache a
  13275. # value for INSTALL within a source directory, because that will
  13276. # break other packages using the cache if that directory is
  13277. # removed, or if the value is a relative name.
  13278. INSTALL=$ac_install_sh
  13279. fi
  13280. fi
  13281. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
  13282. $as_echo "$INSTALL" >&6; }
  13283. # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
  13284. # It thinks the first close brace ends the variable substitution.
  13285. test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
  13286. test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
  13287. test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
  13288. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
  13289. $as_echo_n "checking whether build environment is sane... " >&6; }
  13290. # Reject unsafe characters in $srcdir or the absolute working directory
  13291. # name. Accept space and tab only in the latter.
  13292. am_lf='
  13293. '
  13294. case `pwd` in
  13295. *[\\\"\#\$\&\'\`$am_lf]*)
  13296. as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
  13297. esac
  13298. case $srcdir in
  13299. *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
  13300. as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
  13301. esac
  13302. # Do 'set' in a subshell so we don't clobber the current shell's
  13303. # arguments. Must try -L first in case configure is actually a
  13304. # symlink; some systems play weird games with the mod time of symlinks
  13305. # (eg FreeBSD returns the mod time of the symlink's containing
  13306. # directory).
  13307. if (
  13308. am_has_slept=no
  13309. for am_try in 1 2; do
  13310. echo "timestamp, slept: $am_has_slept" > conftest.file
  13311. set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
  13312. if test "$*" = "X"; then
  13313. # -L didn't work.
  13314. set X `ls -t "$srcdir/configure" conftest.file`
  13315. fi
  13316. if test "$*" != "X $srcdir/configure conftest.file" \
  13317. && test "$*" != "X conftest.file $srcdir/configure"; then
  13318. # If neither matched, then we have a broken ls. This can happen
  13319. # if, for instance, CONFIG_SHELL is bash and it inherits a
  13320. # broken ls alias from the environment. This has actually
  13321. # happened. Such a system could not be considered "sane".
  13322. as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
  13323. alias in your environment" "$LINENO" 5
  13324. fi
  13325. if test "$2" = conftest.file || test $am_try -eq 2; then
  13326. break
  13327. fi
  13328. # Just in case.
  13329. sleep 1
  13330. am_has_slept=yes
  13331. done
  13332. test "$2" = conftest.file
  13333. )
  13334. then
  13335. # Ok.
  13336. :
  13337. else
  13338. as_fn_error $? "newly created file is older than distributed files!
  13339. Check your system clock" "$LINENO" 5
  13340. fi
  13341. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13342. $as_echo "yes" >&6; }
  13343. # If we didn't sleep, we still need to ensure time stamps of config.status and
  13344. # generated files are strictly newer.
  13345. am_sleep_pid=
  13346. if grep 'slept: no' conftest.file >/dev/null 2>&1; then
  13347. ( sleep 1 ) &
  13348. am_sleep_pid=$!
  13349. fi
  13350. rm -f conftest.file
  13351. test "$program_prefix" != NONE &&
  13352. program_transform_name="s&^&$program_prefix&;$program_transform_name"
  13353. # Use a double $ so make ignores it.
  13354. test "$program_suffix" != NONE &&
  13355. program_transform_name="s&\$&$program_suffix&;$program_transform_name"
  13356. # Double any \ or $.
  13357. # By default was `s,x,x', remove it if useless.
  13358. ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
  13359. program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
  13360. # expand $ac_aux_dir to an absolute path
  13361. am_aux_dir=`cd $ac_aux_dir && pwd`
  13362. if test x"${MISSING+set}" != xset; then
  13363. case $am_aux_dir in
  13364. *\ * | *\ *)
  13365. MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
  13366. *)
  13367. MISSING="\${SHELL} $am_aux_dir/missing" ;;
  13368. esac
  13369. fi
  13370. # Use eval to expand $SHELL
  13371. if eval "$MISSING --run true"; then
  13372. am_missing_run="$MISSING --run "
  13373. else
  13374. am_missing_run=
  13375. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
  13376. $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
  13377. fi
  13378. if test x"${install_sh}" != xset; then
  13379. case $am_aux_dir in
  13380. *\ * | *\ *)
  13381. install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
  13382. *)
  13383. install_sh="\${SHELL} $am_aux_dir/install-sh"
  13384. esac
  13385. fi
  13386. # Installed binaries are usually stripped using 'strip' when the user
  13387. # run "make install-strip". However 'strip' might not be the right
  13388. # tool to use in cross-compilation environments, therefore Automake
  13389. # will honor the 'STRIP' environment variable to overrule this program.
  13390. if test "$cross_compiling" != no; then
  13391. if test -n "$ac_tool_prefix"; then
  13392. # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
  13393. set dummy ${ac_tool_prefix}strip; ac_word=$2
  13394. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13395. $as_echo_n "checking for $ac_word... " >&6; }
  13396. if ${ac_cv_prog_STRIP+:} false; then :
  13397. $as_echo_n "(cached) " >&6
  13398. else
  13399. if test -n "$STRIP"; then
  13400. ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
  13401. else
  13402. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13403. for as_dir in $PATH
  13404. do
  13405. IFS=$as_save_IFS
  13406. test -z "$as_dir" && as_dir=.
  13407. for ac_exec_ext in '' $ac_executable_extensions; do
  13408. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13409. ac_cv_prog_STRIP="${ac_tool_prefix}strip"
  13410. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13411. break 2
  13412. fi
  13413. done
  13414. done
  13415. IFS=$as_save_IFS
  13416. fi
  13417. fi
  13418. STRIP=$ac_cv_prog_STRIP
  13419. if test -n "$STRIP"; then
  13420. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
  13421. $as_echo "$STRIP" >&6; }
  13422. else
  13423. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13424. $as_echo "no" >&6; }
  13425. fi
  13426. fi
  13427. if test -z "$ac_cv_prog_STRIP"; then
  13428. ac_ct_STRIP=$STRIP
  13429. # Extract the first word of "strip", so it can be a program name with args.
  13430. set dummy strip; ac_word=$2
  13431. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
  13432. $as_echo_n "checking for $ac_word... " >&6; }
  13433. if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
  13434. $as_echo_n "(cached) " >&6
  13435. else
  13436. if test -n "$ac_ct_STRIP"; then
  13437. ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
  13438. else
  13439. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13440. for as_dir in $PATH
  13441. do
  13442. IFS=$as_save_IFS
  13443. test -z "$as_dir" && as_dir=.
  13444. for ac_exec_ext in '' $ac_executable_extensions; do
  13445. if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
  13446. ac_cv_prog_ac_ct_STRIP="strip"
  13447. $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
  13448. break 2
  13449. fi
  13450. done
  13451. done
  13452. IFS=$as_save_IFS
  13453. fi
  13454. fi
  13455. ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
  13456. if test -n "$ac_ct_STRIP"; then
  13457. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
  13458. $as_echo "$ac_ct_STRIP" >&6; }
  13459. else
  13460. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13461. $as_echo "no" >&6; }
  13462. fi
  13463. if test "x$ac_ct_STRIP" = x; then
  13464. STRIP=":"
  13465. else
  13466. case $cross_compiling:$ac_tool_warned in
  13467. yes:)
  13468. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
  13469. $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
  13470. ac_tool_warned=yes ;;
  13471. esac
  13472. STRIP=$ac_ct_STRIP
  13473. fi
  13474. else
  13475. STRIP="$ac_cv_prog_STRIP"
  13476. fi
  13477. fi
  13478. INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
  13479. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
  13480. $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
  13481. if test -z "$MKDIR_P"; then
  13482. if ${ac_cv_path_mkdir+:} false; then :
  13483. $as_echo_n "(cached) " >&6
  13484. else
  13485. as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  13486. for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
  13487. do
  13488. IFS=$as_save_IFS
  13489. test -z "$as_dir" && as_dir=.
  13490. for ac_prog in mkdir gmkdir; do
  13491. for ac_exec_ext in '' $ac_executable_extensions; do
  13492. as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
  13493. case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
  13494. 'mkdir (GNU coreutils) '* | \
  13495. 'mkdir (coreutils) '* | \
  13496. 'mkdir (fileutils) '4.1*)
  13497. ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
  13498. break 3;;
  13499. esac
  13500. done
  13501. done
  13502. done
  13503. IFS=$as_save_IFS
  13504. fi
  13505. test -d ./--version && rmdir ./--version
  13506. if test "${ac_cv_path_mkdir+set}" = set; then
  13507. MKDIR_P="$ac_cv_path_mkdir -p"
  13508. else
  13509. # As a last resort, use the slow shell script. Don't cache a
  13510. # value for MKDIR_P within a source directory, because that will
  13511. # break other packages using the cache if that directory is
  13512. # removed, or if the value is a relative name.
  13513. MKDIR_P="$ac_install_sh -d"
  13514. fi
  13515. fi
  13516. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
  13517. $as_echo "$MKDIR_P" >&6; }
  13518. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
  13519. $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
  13520. set x ${MAKE-make}
  13521. ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
  13522. if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
  13523. $as_echo_n "(cached) " >&6
  13524. else
  13525. cat >conftest.make <<\_ACEOF
  13526. SHELL = /bin/sh
  13527. all:
  13528. @echo '@@@%%%=$(MAKE)=@@@%%%'
  13529. _ACEOF
  13530. # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
  13531. case `${MAKE-make} -f conftest.make 2>/dev/null` in
  13532. *@@@%%%=?*=@@@%%%*)
  13533. eval ac_cv_prog_make_${ac_make}_set=yes;;
  13534. *)
  13535. eval ac_cv_prog_make_${ac_make}_set=no;;
  13536. esac
  13537. rm -f conftest.make
  13538. fi
  13539. if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
  13540. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13541. $as_echo "yes" >&6; }
  13542. SET_MAKE=
  13543. else
  13544. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13545. $as_echo "no" >&6; }
  13546. SET_MAKE="MAKE=${MAKE-make}"
  13547. fi
  13548. rm -rf .tst 2>/dev/null
  13549. mkdir .tst 2>/dev/null
  13550. if test -d .tst; then
  13551. am__leading_dot=.
  13552. else
  13553. am__leading_dot=_
  13554. fi
  13555. rmdir .tst 2>/dev/null
  13556. DEPDIR="${am__leading_dot}deps"
  13557. ac_config_commands="$ac_config_commands depfiles"
  13558. am_make=${MAKE-make}
  13559. cat > confinc << 'END'
  13560. am__doit:
  13561. @echo this is the am__doit target
  13562. .PHONY: am__doit
  13563. END
  13564. # If we don't find an include directive, just comment out the code.
  13565. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
  13566. $as_echo_n "checking for style of include used by $am_make... " >&6; }
  13567. am__include="#"
  13568. am__quote=
  13569. _am_result=none
  13570. # First try GNU make style include.
  13571. echo "include confinc" > confmf
  13572. # Ignore all kinds of additional output from 'make'.
  13573. case `$am_make -s -f confmf 2> /dev/null` in #(
  13574. *the\ am__doit\ target*)
  13575. am__include=include
  13576. am__quote=
  13577. _am_result=GNU
  13578. ;;
  13579. esac
  13580. # Now try BSD make style include.
  13581. if test "$am__include" = "#"; then
  13582. echo '.include "confinc"' > confmf
  13583. case `$am_make -s -f confmf 2> /dev/null` in #(
  13584. *the\ am__doit\ target*)
  13585. am__include=.include
  13586. am__quote="\""
  13587. _am_result=BSD
  13588. ;;
  13589. esac
  13590. fi
  13591. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
  13592. $as_echo "$_am_result" >&6; }
  13593. rm -f confinc confmf
  13594. # Check whether --enable-dependency-tracking was given.
  13595. if test "${enable_dependency_tracking+set}" = set; then :
  13596. enableval=$enable_dependency_tracking;
  13597. fi
  13598. if test "x$enable_dependency_tracking" != xno; then
  13599. am_depcomp="$ac_aux_dir/depcomp"
  13600. AMDEPBACKSLASH='\'
  13601. am__nodep='_no'
  13602. fi
  13603. if test "x$enable_dependency_tracking" != xno; then
  13604. AMDEP_TRUE=
  13605. AMDEP_FALSE='#'
  13606. else
  13607. AMDEP_TRUE='#'
  13608. AMDEP_FALSE=
  13609. fi
  13610. if test "`cd $srcdir && pwd`" != "`pwd`"; then
  13611. # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
  13612. # is not polluted with repeated "-I."
  13613. am__isrc=' -I$(srcdir)'
  13614. # test to see if srcdir already configured
  13615. if test -f $srcdir/config.status; then
  13616. as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
  13617. fi
  13618. fi
  13619. # test whether we have cygpath
  13620. if test -z "$CYGPATH_W"; then
  13621. if (cygpath --version) >/dev/null 2>/dev/null; then
  13622. CYGPATH_W='cygpath -w'
  13623. else
  13624. CYGPATH_W=echo
  13625. fi
  13626. fi
  13627. # Define the identity of the package.
  13628. PACKAGE='klish'
  13629. VERSION='1.5.6'
  13630. cat >>confdefs.h <<_ACEOF
  13631. #define PACKAGE "$PACKAGE"
  13632. _ACEOF
  13633. cat >>confdefs.h <<_ACEOF
  13634. #define VERSION "$VERSION"
  13635. _ACEOF
  13636. # Some tools Automake needs.
  13637. ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
  13638. AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
  13639. AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
  13640. AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
  13641. MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
  13642. # For better backward compatibility. To be removed once Automake 1.9.x
  13643. # dies out for good. For more background, see:
  13644. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
  13645. # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
  13646. mkdir_p='$(MKDIR_P)'
  13647. # We need awk for the "check" target. The system "awk" is bad on
  13648. # some platforms.
  13649. # Always define AMTAR for backward compatibility. Yes, it's still used
  13650. # in the wild :-( We should find a proper way to deprecate it ...
  13651. AMTAR='$${TAR-tar}'
  13652. am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
  13653. depcc="$CC" am_compiler_list=
  13654. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13655. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13656. if ${am_cv_CC_dependencies_compiler_type+:} false; then :
  13657. $as_echo_n "(cached) " >&6
  13658. else
  13659. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13660. # We make a subdir and do the tests there. Otherwise we can end up
  13661. # making bogus files that we don't know about and never remove. For
  13662. # instance it was reported that on HP-UX the gcc test will end up
  13663. # making a dummy file named 'D' -- because '-MD' means "put the output
  13664. # in D".
  13665. rm -rf conftest.dir
  13666. mkdir conftest.dir
  13667. # Copy depcomp to subdir because otherwise we won't find it if we're
  13668. # using a relative directory.
  13669. cp "$am_depcomp" conftest.dir
  13670. cd conftest.dir
  13671. # We will build objects and dependencies in a subdirectory because
  13672. # it helps to detect inapplicable dependency modes. For instance
  13673. # both Tru64's cc and ICC support -MD to output dependencies as a
  13674. # side effect of compilation, but ICC will put the dependencies in
  13675. # the current directory while Tru64 will put them in the object
  13676. # directory.
  13677. mkdir sub
  13678. am_cv_CC_dependencies_compiler_type=none
  13679. if test "$am_compiler_list" = ""; then
  13680. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13681. fi
  13682. am__universal=false
  13683. case " $depcc " in #(
  13684. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13685. esac
  13686. for depmode in $am_compiler_list; do
  13687. # Setup a source with many dependencies, because some compilers
  13688. # like to wrap large dependency lists on column 80 (with \), and
  13689. # we should not choose a depcomp mode which is confused by this.
  13690. #
  13691. # We need to recreate these files for each test, as the compiler may
  13692. # overwrite some of them when testing with obscure command lines.
  13693. # This happens at least with the AIX C compiler.
  13694. : > sub/conftest.c
  13695. for i in 1 2 3 4 5 6; do
  13696. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13697. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  13698. # Solaris 10 /bin/sh.
  13699. echo '/* dummy */' > sub/conftst$i.h
  13700. done
  13701. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13702. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  13703. # mode. It turns out that the SunPro C++ compiler does not properly
  13704. # handle '-M -o', and we need to detect this. Also, some Intel
  13705. # versions had trouble with output in subdirs.
  13706. am__obj=sub/conftest.${OBJEXT-o}
  13707. am__minus_obj="-o $am__obj"
  13708. case $depmode in
  13709. gcc)
  13710. # This depmode causes a compiler race in universal mode.
  13711. test "$am__universal" = false || continue
  13712. ;;
  13713. nosideeffect)
  13714. # After this tag, mechanisms are not by side-effect, so they'll
  13715. # only be used when explicitly requested.
  13716. if test "x$enable_dependency_tracking" = xyes; then
  13717. continue
  13718. else
  13719. break
  13720. fi
  13721. ;;
  13722. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13723. # This compiler won't grok '-c -o', but also, the minuso test has
  13724. # not run yet. These depmodes are late enough in the game, and
  13725. # so weak that their functioning should not be impacted.
  13726. am__obj=conftest.${OBJEXT-o}
  13727. am__minus_obj=
  13728. ;;
  13729. none) break ;;
  13730. esac
  13731. if depmode=$depmode \
  13732. source=sub/conftest.c object=$am__obj \
  13733. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13734. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13735. >/dev/null 2>conftest.err &&
  13736. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13737. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13738. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13739. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13740. # icc doesn't choke on unknown options, it will just issue warnings
  13741. # or remarks (even with -Werror). So we grep stderr for any message
  13742. # that says an option was ignored or not supported.
  13743. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13744. # icc: Command line warning: ignoring option '-M'; no argument required
  13745. # The diagnosis changed in icc 8.0:
  13746. # icc: Command line remark: option '-MP' not supported
  13747. if (grep 'ignoring option' conftest.err ||
  13748. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13749. am_cv_CC_dependencies_compiler_type=$depmode
  13750. break
  13751. fi
  13752. fi
  13753. done
  13754. cd ..
  13755. rm -rf conftest.dir
  13756. else
  13757. am_cv_CC_dependencies_compiler_type=none
  13758. fi
  13759. fi
  13760. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
  13761. $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
  13762. CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
  13763. if
  13764. test "x$enable_dependency_tracking" != xno \
  13765. && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
  13766. am__fastdepCC_TRUE=
  13767. am__fastdepCC_FALSE='#'
  13768. else
  13769. am__fastdepCC_TRUE='#'
  13770. am__fastdepCC_FALSE=
  13771. fi
  13772. depcc="$CXX" am_compiler_list=
  13773. { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
  13774. $as_echo_n "checking dependency style of $depcc... " >&6; }
  13775. if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
  13776. $as_echo_n "(cached) " >&6
  13777. else
  13778. if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
  13779. # We make a subdir and do the tests there. Otherwise we can end up
  13780. # making bogus files that we don't know about and never remove. For
  13781. # instance it was reported that on HP-UX the gcc test will end up
  13782. # making a dummy file named 'D' -- because '-MD' means "put the output
  13783. # in D".
  13784. rm -rf conftest.dir
  13785. mkdir conftest.dir
  13786. # Copy depcomp to subdir because otherwise we won't find it if we're
  13787. # using a relative directory.
  13788. cp "$am_depcomp" conftest.dir
  13789. cd conftest.dir
  13790. # We will build objects and dependencies in a subdirectory because
  13791. # it helps to detect inapplicable dependency modes. For instance
  13792. # both Tru64's cc and ICC support -MD to output dependencies as a
  13793. # side effect of compilation, but ICC will put the dependencies in
  13794. # the current directory while Tru64 will put them in the object
  13795. # directory.
  13796. mkdir sub
  13797. am_cv_CXX_dependencies_compiler_type=none
  13798. if test "$am_compiler_list" = ""; then
  13799. am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
  13800. fi
  13801. am__universal=false
  13802. case " $depcc " in #(
  13803. *\ -arch\ *\ -arch\ *) am__universal=true ;;
  13804. esac
  13805. for depmode in $am_compiler_list; do
  13806. # Setup a source with many dependencies, because some compilers
  13807. # like to wrap large dependency lists on column 80 (with \), and
  13808. # we should not choose a depcomp mode which is confused by this.
  13809. #
  13810. # We need to recreate these files for each test, as the compiler may
  13811. # overwrite some of them when testing with obscure command lines.
  13812. # This happens at least with the AIX C compiler.
  13813. : > sub/conftest.c
  13814. for i in 1 2 3 4 5 6; do
  13815. echo '#include "conftst'$i'.h"' >> sub/conftest.c
  13816. # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
  13817. # Solaris 10 /bin/sh.
  13818. echo '/* dummy */' > sub/conftst$i.h
  13819. done
  13820. echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
  13821. # We check with '-c' and '-o' for the sake of the "dashmstdout"
  13822. # mode. It turns out that the SunPro C++ compiler does not properly
  13823. # handle '-M -o', and we need to detect this. Also, some Intel
  13824. # versions had trouble with output in subdirs.
  13825. am__obj=sub/conftest.${OBJEXT-o}
  13826. am__minus_obj="-o $am__obj"
  13827. case $depmode in
  13828. gcc)
  13829. # This depmode causes a compiler race in universal mode.
  13830. test "$am__universal" = false || continue
  13831. ;;
  13832. nosideeffect)
  13833. # After this tag, mechanisms are not by side-effect, so they'll
  13834. # only be used when explicitly requested.
  13835. if test "x$enable_dependency_tracking" = xyes; then
  13836. continue
  13837. else
  13838. break
  13839. fi
  13840. ;;
  13841. msvc7 | msvc7msys | msvisualcpp | msvcmsys)
  13842. # This compiler won't grok '-c -o', but also, the minuso test has
  13843. # not run yet. These depmodes are late enough in the game, and
  13844. # so weak that their functioning should not be impacted.
  13845. am__obj=conftest.${OBJEXT-o}
  13846. am__minus_obj=
  13847. ;;
  13848. none) break ;;
  13849. esac
  13850. if depmode=$depmode \
  13851. source=sub/conftest.c object=$am__obj \
  13852. depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
  13853. $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
  13854. >/dev/null 2>conftest.err &&
  13855. grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
  13856. grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
  13857. grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
  13858. ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
  13859. # icc doesn't choke on unknown options, it will just issue warnings
  13860. # or remarks (even with -Werror). So we grep stderr for any message
  13861. # that says an option was ignored or not supported.
  13862. # When given -MP, icc 7.0 and 7.1 complain thusly:
  13863. # icc: Command line warning: ignoring option '-M'; no argument required
  13864. # The diagnosis changed in icc 8.0:
  13865. # icc: Command line remark: option '-MP' not supported
  13866. if (grep 'ignoring option' conftest.err ||
  13867. grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
  13868. am_cv_CXX_dependencies_compiler_type=$depmode
  13869. break
  13870. fi
  13871. fi
  13872. done
  13873. cd ..
  13874. rm -rf conftest.dir
  13875. else
  13876. am_cv_CXX_dependencies_compiler_type=none
  13877. fi
  13878. fi
  13879. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
  13880. $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
  13881. CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
  13882. if
  13883. test "x$enable_dependency_tracking" != xno \
  13884. && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
  13885. am__fastdepCXX_TRUE=
  13886. am__fastdepCXX_FALSE='#'
  13887. else
  13888. am__fastdepCXX_TRUE='#'
  13889. am__fastdepCXX_FALSE=
  13890. fi
  13891. if test "x$CC" != xcc; then
  13892. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5
  13893. $as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; }
  13894. else
  13895. { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5
  13896. $as_echo_n "checking whether cc understands -c and -o together... " >&6; }
  13897. fi
  13898. set dummy $CC; ac_cc=`$as_echo "$2" |
  13899. sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  13900. if eval \${ac_cv_prog_cc_${ac_cc}_c_o+:} false; then :
  13901. $as_echo_n "(cached) " >&6
  13902. else
  13903. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  13904. /* end confdefs.h. */
  13905. int
  13906. main ()
  13907. {
  13908. ;
  13909. return 0;
  13910. }
  13911. _ACEOF
  13912. # Make sure it works both with $CC and with simple cc.
  13913. # We do the test twice because some compilers refuse to overwrite an
  13914. # existing .o file with -o, though they will create one.
  13915. ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13916. rm -f conftest2.*
  13917. if { { case "(($ac_try" in
  13918. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13919. *) ac_try_echo=$ac_try;;
  13920. esac
  13921. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13922. $as_echo "$ac_try_echo"; } >&5
  13923. (eval "$ac_try") 2>&5
  13924. ac_status=$?
  13925. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13926. test $ac_status = 0; } &&
  13927. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13928. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13929. *) ac_try_echo=$ac_try;;
  13930. esac
  13931. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13932. $as_echo "$ac_try_echo"; } >&5
  13933. (eval "$ac_try") 2>&5
  13934. ac_status=$?
  13935. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13936. test $ac_status = 0; };
  13937. then
  13938. eval ac_cv_prog_cc_${ac_cc}_c_o=yes
  13939. if test "x$CC" != xcc; then
  13940. # Test first that cc exists at all.
  13941. if { ac_try='cc -c conftest.$ac_ext >&5'
  13942. { { case "(($ac_try" in
  13943. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13944. *) ac_try_echo=$ac_try;;
  13945. esac
  13946. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13947. $as_echo "$ac_try_echo"; } >&5
  13948. (eval "$ac_try") 2>&5
  13949. ac_status=$?
  13950. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13951. test $ac_status = 0; }; }; then
  13952. ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5'
  13953. rm -f conftest2.*
  13954. if { { case "(($ac_try" in
  13955. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13956. *) ac_try_echo=$ac_try;;
  13957. esac
  13958. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13959. $as_echo "$ac_try_echo"; } >&5
  13960. (eval "$ac_try") 2>&5
  13961. ac_status=$?
  13962. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13963. test $ac_status = 0; } &&
  13964. test -f conftest2.$ac_objext && { { case "(($ac_try" in
  13965. *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
  13966. *) ac_try_echo=$ac_try;;
  13967. esac
  13968. eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
  13969. $as_echo "$ac_try_echo"; } >&5
  13970. (eval "$ac_try") 2>&5
  13971. ac_status=$?
  13972. $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
  13973. test $ac_status = 0; };
  13974. then
  13975. # cc works too.
  13976. :
  13977. else
  13978. # cc exists but doesn't like -o.
  13979. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13980. fi
  13981. fi
  13982. fi
  13983. else
  13984. eval ac_cv_prog_cc_${ac_cc}_c_o=no
  13985. fi
  13986. rm -f core conftest*
  13987. fi
  13988. if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then
  13989. { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
  13990. $as_echo "yes" >&6; }
  13991. else
  13992. { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
  13993. $as_echo "no" >&6; }
  13994. $as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h
  13995. fi
  13996. # FIXME: we rely on the cache variable name because
  13997. # there is no other way.
  13998. set dummy $CC
  13999. am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'`
  14000. eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o
  14001. if test "$am_t" != yes; then
  14002. # Losing compiler, so override with the script.
  14003. # FIXME: It is wrong to rewrite CC.
  14004. # But if we don't then we get into trouble of one sort or another.
  14005. # A longer-term fix would be to have automake use am__CC in this case,
  14006. # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
  14007. CC="$am_aux_dir/compile $CC"
  14008. fi
  14009. # needed to handle 64-bit architecture
  14010. # The cast to long int works around a bug in the HP C Compiler
  14011. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14012. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14013. # This bug is HP SR number 8606223364.
  14014. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of int" >&5
  14015. $as_echo_n "checking size of int... " >&6; }
  14016. if ${ac_cv_sizeof_int+:} false; then :
  14017. $as_echo_n "(cached) " >&6
  14018. else
  14019. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (int))" "ac_cv_sizeof_int" "$ac_includes_default"; then :
  14020. else
  14021. if test "$ac_cv_type_int" = yes; then
  14022. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14023. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14024. as_fn_error 77 "cannot compute sizeof (int)
  14025. See \`config.log' for more details" "$LINENO" 5; }
  14026. else
  14027. ac_cv_sizeof_int=0
  14028. fi
  14029. fi
  14030. fi
  14031. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_int" >&5
  14032. $as_echo "$ac_cv_sizeof_int" >&6; }
  14033. cat >>confdefs.h <<_ACEOF
  14034. #define SIZEOF_INT $ac_cv_sizeof_int
  14035. _ACEOF
  14036. # The cast to long int works around a bug in the HP C Compiler
  14037. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14038. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14039. # This bug is HP SR number 8606223364.
  14040. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long" >&5
  14041. $as_echo_n "checking size of long... " >&6; }
  14042. if ${ac_cv_sizeof_long+:} false; then :
  14043. $as_echo_n "(cached) " >&6
  14044. else
  14045. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (long))" "ac_cv_sizeof_long" "$ac_includes_default"; then :
  14046. else
  14047. if test "$ac_cv_type_long" = yes; then
  14048. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14049. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14050. as_fn_error 77 "cannot compute sizeof (long)
  14051. See \`config.log' for more details" "$LINENO" 5; }
  14052. else
  14053. ac_cv_sizeof_long=0
  14054. fi
  14055. fi
  14056. fi
  14057. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long" >&5
  14058. $as_echo "$ac_cv_sizeof_long" >&6; }
  14059. cat >>confdefs.h <<_ACEOF
  14060. #define SIZEOF_LONG $ac_cv_sizeof_long
  14061. _ACEOF
  14062. # The cast to long int works around a bug in the HP C Compiler
  14063. # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects
  14064. # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'.
  14065. # This bug is HP SR number 8606223364.
  14066. { $as_echo "$as_me:${as_lineno-$LINENO}: checking size of size_t" >&5
  14067. $as_echo_n "checking size of size_t... " >&6; }
  14068. if ${ac_cv_sizeof_size_t+:} false; then :
  14069. $as_echo_n "(cached) " >&6
  14070. else
  14071. if ac_fn_c_compute_int "$LINENO" "(long int) (sizeof (size_t))" "ac_cv_sizeof_size_t" "$ac_includes_default"; then :
  14072. else
  14073. if test "$ac_cv_type_size_t" = yes; then
  14074. { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
  14075. $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
  14076. as_fn_error 77 "cannot compute sizeof (size_t)
  14077. See \`config.log' for more details" "$LINENO" 5; }
  14078. else
  14079. ac_cv_sizeof_size_t=0
  14080. fi
  14081. fi
  14082. fi
  14083. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_size_t" >&5
  14084. $as_echo "$ac_cv_sizeof_size_t" >&6; }
  14085. cat >>confdefs.h <<_ACEOF
  14086. #define SIZEOF_SIZE_T $ac_cv_sizeof_size_t
  14087. _ACEOF
  14088. #------------------------------------------------------------------------
  14089. # Handle the --prefix=... option
  14090. #------------------------------------------------------------------------
  14091. if test "${prefix}" = "NONE"; then
  14092. prefix=/usr/local
  14093. fi
  14094. if test "${exec_prefix}" = "NONE"; then
  14095. exec_prefix=$prefix
  14096. fi
  14097. # libdir must be a fully qualified path (not ${exec_prefix}/lib)
  14098. eval libdir="$libdir"
  14099. ################################
  14100. # Deal with debugging options
  14101. ################################
  14102. # Check whether --enable-debug was given.
  14103. if test "${enable_debug+set}" = set; then :
  14104. enableval=$enable_debug;
  14105. else
  14106. enable_debug=no
  14107. fi
  14108. if test x$enable_debug = xyes; then
  14109. DEBUG_TRUE=
  14110. DEBUG_FALSE='#'
  14111. else
  14112. DEBUG_TRUE='#'
  14113. DEBUG_FALSE=
  14114. fi
  14115. ################################
  14116. # Check for the LUB library
  14117. ################################
  14118. LUB_LIBS="-llub"
  14119. LUB_CFLAGS=""
  14120. if test "x$LUB_LIBS" = "x"; then
  14121. as_fn_error $? "Cannot find the \"Little Useful Bits\" library" "$LINENO" 5
  14122. fi
  14123. ################################
  14124. # Check for the KONF library
  14125. ################################
  14126. KONF_LIBS="-lkonf"
  14127. KONF_CFLAGS=""
  14128. if test "x$KONF_LIBS" = "x"; then
  14129. as_fn_error $? "Cannot find the \"CLI config\" library" "$LINENO" 5
  14130. fi
  14131. ################################
  14132. # Check for the TINYRL library
  14133. ################################
  14134. TINYRL_LIBS="-ltinyrl"
  14135. TINYRL_CFLAGS=""
  14136. if test "x$TINYRL_LIBS" = "x"; then
  14137. as_fn_error $? "Cannot find the \"Tiny Readline\" library" "$LINENO" 5
  14138. fi
  14139. ################################
  14140. # Check for the TINYXML library
  14141. ################################
  14142. TINYXML_LIBS="-ltinyxml"
  14143. TINYXML_CXXFLAGS="-std=gnu++98"
  14144. if test "x$TINYXML_LIBS" = "x"; then
  14145. as_fn_error $? "Cannot find the \"Tiny XML\" library" "$LINENO" 5
  14146. fi
  14147. ################################
  14148. # Search for network functions (like connect())
  14149. ################################
  14150. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
  14151. $as_echo_n "checking for library containing socket... " >&6; }
  14152. if ${ac_cv_search_socket+:} false; then :
  14153. $as_echo_n "(cached) " >&6
  14154. else
  14155. ac_func_search_save_LIBS=$LIBS
  14156. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14157. /* end confdefs.h. */
  14158. /* Override any GCC internal prototype to avoid an error.
  14159. Use char because int might match the return type of a GCC
  14160. builtin and then its argument prototype would still apply. */
  14161. #ifdef __cplusplus
  14162. extern "C"
  14163. #endif
  14164. char socket ();
  14165. int
  14166. main ()
  14167. {
  14168. return socket ();
  14169. ;
  14170. return 0;
  14171. }
  14172. _ACEOF
  14173. for ac_lib in '' socket; do
  14174. if test -z "$ac_lib"; then
  14175. ac_res="none required"
  14176. else
  14177. ac_res=-l$ac_lib
  14178. LIBS="-l$ac_lib $ac_func_search_save_LIBS"
  14179. fi
  14180. if ac_fn_c_try_link "$LINENO"; then :
  14181. ac_cv_search_socket=$ac_res
  14182. fi
  14183. rm -f core conftest.err conftest.$ac_objext \
  14184. conftest$ac_exeext
  14185. if ${ac_cv_search_socket+:} false; then :
  14186. break
  14187. fi
  14188. done
  14189. if ${ac_cv_search_socket+:} false; then :
  14190. else
  14191. ac_cv_search_socket=no
  14192. fi
  14193. rm conftest.$ac_ext
  14194. LIBS=$ac_func_search_save_LIBS
  14195. fi
  14196. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
  14197. $as_echo "$ac_cv_search_socket" >&6; }
  14198. ac_res=$ac_cv_search_socket
  14199. if test "$ac_res" != no; then :
  14200. test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
  14201. fi
  14202. ################################
  14203. # Check for regex.h
  14204. ################################
  14205. for ac_header in regex.h
  14206. do :
  14207. ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
  14208. if test "x$ac_cv_header_regex_h" = xyes; then :
  14209. cat >>confdefs.h <<_ACEOF
  14210. #define HAVE_REGEX_H 1
  14211. _ACEOF
  14212. else
  14213. as_fn_error $? "regex.h not found: regular expressions are not supported" "$LINENO" 5
  14214. fi
  14215. done
  14216. ################################
  14217. # Check for getopt_long()
  14218. ################################
  14219. for ac_header in getopt.h
  14220. do :
  14221. ac_fn_c_check_header_mongrel "$LINENO" "getopt.h" "ac_cv_header_getopt_h" "$ac_includes_default"
  14222. if test "x$ac_cv_header_getopt_h" = xyes; then :
  14223. cat >>confdefs.h <<_ACEOF
  14224. #define HAVE_GETOPT_H 1
  14225. _ACEOF
  14226. else
  14227. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: getopt.h not found: only short parameters can be used on command line" >&5
  14228. $as_echo "$as_me: WARNING: getopt.h not found: only short parameters can be used on command line" >&2;}
  14229. fi
  14230. done
  14231. ################################
  14232. # Check for locale.h
  14233. ################################
  14234. for ac_header in locale.h
  14235. do :
  14236. ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
  14237. if test "x$ac_cv_header_locale_h" = xyes; then :
  14238. cat >>confdefs.h <<_ACEOF
  14239. #define HAVE_LOCALE_H 1
  14240. _ACEOF
  14241. else
  14242. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: locale.h not found: the locales is not supported" >&5
  14243. $as_echo "$as_me: WARNING: locale.h not found: the locales is not supported" >&2;}
  14244. fi
  14245. done
  14246. ################################
  14247. # Check for CODESET within nl_langinfo
  14248. ################################
  14249. { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5
  14250. $as_echo_n "checking for nl_langinfo and CODESET... " >&6; }
  14251. if ${am_cv_langinfo_codeset+:} false; then :
  14252. $as_echo_n "(cached) " >&6
  14253. else
  14254. cat confdefs.h - <<_ACEOF >conftest.$ac_ext
  14255. /* end confdefs.h. */
  14256. #include <langinfo.h>
  14257. int
  14258. main ()
  14259. {
  14260. char* cs = nl_langinfo(CODESET); return !cs;
  14261. ;
  14262. return 0;
  14263. }
  14264. _ACEOF
  14265. if ac_fn_c_try_link "$LINENO"; then :
  14266. am_cv_langinfo_codeset=yes
  14267. else
  14268. am_cv_langinfo_codeset=no
  14269. fi
  14270. rm -f core conftest.err conftest.$ac_objext \
  14271. conftest$ac_exeext conftest.$ac_ext
  14272. fi
  14273. { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5
  14274. $as_echo "$am_cv_langinfo_codeset" >&6; }
  14275. if test $am_cv_langinfo_codeset = yes; then
  14276. $as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h
  14277. fi
  14278. ################################
  14279. # Check for pwd.h and grp.h
  14280. ################################
  14281. for ac_header in pwd.h
  14282. do :
  14283. ac_fn_c_check_header_mongrel "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
  14284. if test "x$ac_cv_header_pwd_h" = xyes; then :
  14285. cat >>confdefs.h <<_ACEOF
  14286. #define HAVE_PWD_H 1
  14287. _ACEOF
  14288. else
  14289. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: pwd.h not found: the pwd operations is not supported" >&5
  14290. $as_echo "$as_me: WARNING: pwd.h not found: the pwd operations is not supported" >&2;}
  14291. fi
  14292. done
  14293. for ac_header in grp.h
  14294. do :
  14295. ac_fn_c_check_header_mongrel "$LINENO" "grp.h" "ac_cv_header_grp_h" "$ac_includes_default"
  14296. if test "x$ac_cv_header_grp_h" = xyes; then :
  14297. cat >>confdefs.h <<_ACEOF
  14298. #define HAVE_GRP_H 1
  14299. _ACEOF
  14300. else
  14301. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: grp.h not found: the grp operations is not supported" >&5
  14302. $as_echo "$as_me: WARNING: grp.h not found: the grp operations is not supported" >&2;}
  14303. fi
  14304. done
  14305. ################################
  14306. # Check for chroot
  14307. ################################
  14308. for ac_func in chroot
  14309. do :
  14310. ac_fn_c_check_func "$LINENO" "chroot" "ac_cv_func_chroot"
  14311. if test "x$ac_cv_func_chroot" = xyes; then :
  14312. cat >>confdefs.h <<_ACEOF
  14313. #define HAVE_CHROOT 1
  14314. _ACEOF
  14315. else
  14316. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: chroot() not found: the choot is not supported" >&5
  14317. $as_echo "$as_me: WARNING: chroot() not found: the choot is not supported" >&2;}
  14318. fi
  14319. done
  14320. ac_config_files="$ac_config_files Makefile"
  14321. cat >confcache <<\_ACEOF
  14322. # This file is a shell script that caches the results of configure
  14323. # tests run on this system so they can be shared between configure
  14324. # scripts and configure runs, see configure's option --config-cache.
  14325. # It is not useful on other systems. If it contains results you don't
  14326. # want to keep, you may remove or edit it.
  14327. #
  14328. # config.status only pays attention to the cache file if you give it
  14329. # the --recheck option to rerun configure.
  14330. #
  14331. # `ac_cv_env_foo' variables (set or unset) will be overridden when
  14332. # loading this file, other *unset* `ac_cv_foo' will be assigned the
  14333. # following values.
  14334. _ACEOF
  14335. # The following way of writing the cache mishandles newlines in values,
  14336. # but we know of no workaround that is simple, portable, and efficient.
  14337. # So, we kill variables containing newlines.
  14338. # Ultrix sh set writes to stderr and can't be redirected directly,
  14339. # and sets the high bit in the cache file unless we assign to the vars.
  14340. (
  14341. for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
  14342. eval ac_val=\$$ac_var
  14343. case $ac_val in #(
  14344. *${as_nl}*)
  14345. case $ac_var in #(
  14346. *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
  14347. $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
  14348. esac
  14349. case $ac_var in #(
  14350. _ | IFS | as_nl) ;; #(
  14351. BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
  14352. *) { eval $ac_var=; unset $ac_var;} ;;
  14353. esac ;;
  14354. esac
  14355. done
  14356. (set) 2>&1 |
  14357. case $as_nl`(ac_space=' '; set) 2>&1` in #(
  14358. *${as_nl}ac_space=\ *)
  14359. # `set' does not quote correctly, so add quotes: double-quote
  14360. # substitution turns \\\\ into \\, and sed turns \\ into \.
  14361. sed -n \
  14362. "s/'/'\\\\''/g;
  14363. s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
  14364. ;; #(
  14365. *)
  14366. # `set' quotes correctly as required by POSIX, so do not add quotes.
  14367. sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
  14368. ;;
  14369. esac |
  14370. sort
  14371. ) |
  14372. sed '
  14373. /^ac_cv_env_/b end
  14374. t clear
  14375. :clear
  14376. s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
  14377. t end
  14378. s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
  14379. :end' >>confcache
  14380. if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
  14381. if test -w "$cache_file"; then
  14382. if test "x$cache_file" != "x/dev/null"; then
  14383. { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
  14384. $as_echo "$as_me: updating cache $cache_file" >&6;}
  14385. if test ! -f "$cache_file" || test -h "$cache_file"; then
  14386. cat confcache >"$cache_file"
  14387. else
  14388. case $cache_file in #(
  14389. */* | ?:*)
  14390. mv -f confcache "$cache_file"$$ &&
  14391. mv -f "$cache_file"$$ "$cache_file" ;; #(
  14392. *)
  14393. mv -f confcache "$cache_file" ;;
  14394. esac
  14395. fi
  14396. fi
  14397. else
  14398. { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
  14399. $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
  14400. fi
  14401. fi
  14402. rm -f confcache
  14403. test "x$prefix" = xNONE && prefix=$ac_default_prefix
  14404. # Let make expand exec_prefix.
  14405. test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
  14406. DEFS=-DHAVE_CONFIG_H
  14407. ac_libobjs=
  14408. ac_ltlibobjs=
  14409. U=
  14410. for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
  14411. # 1. Remove the extension, and $U if already installed.
  14412. ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
  14413. ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
  14414. # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
  14415. # will be set to the directory where LIBOBJS objects are built.
  14416. as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
  14417. as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
  14418. done
  14419. LIBOBJS=$ac_libobjs
  14420. LTLIBOBJS=$ac_ltlibobjs
  14421. { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
  14422. $as_echo_n "checking that generated files are newer than configure... " >&6; }
  14423. if test -n "$am_sleep_pid"; then
  14424. # Hide warnings about reused PIDs.
  14425. wait $am_sleep_pid 2>/dev/null
  14426. fi
  14427. { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
  14428. $as_echo "done" >&6; }
  14429. if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
  14430. as_fn_error $? "conditional \"AMDEP\" was never defined.
  14431. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14432. fi
  14433. if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
  14434. as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
  14435. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14436. fi
  14437. if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
  14438. as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
  14439. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14440. fi
  14441. if test -n "$EXEEXT"; then
  14442. am__EXEEXT_TRUE=
  14443. am__EXEEXT_FALSE='#'
  14444. else
  14445. am__EXEEXT_TRUE='#'
  14446. am__EXEEXT_FALSE=
  14447. fi
  14448. if test -z "${DEBUG_TRUE}" && test -z "${DEBUG_FALSE}"; then
  14449. as_fn_error $? "conditional \"DEBUG\" was never defined.
  14450. Usually this means the macro was only invoked conditionally." "$LINENO" 5
  14451. fi
  14452. : "${CONFIG_STATUS=./config.status}"
  14453. ac_write_fail=0
  14454. ac_clean_files_save=$ac_clean_files
  14455. ac_clean_files="$ac_clean_files $CONFIG_STATUS"
  14456. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
  14457. $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
  14458. as_write_fail=0
  14459. cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
  14460. #! $SHELL
  14461. # Generated by $as_me.
  14462. # Run this file to recreate the current configuration.
  14463. # Compiler output produced by configure, useful for debugging
  14464. # configure, is in config.log if it exists.
  14465. debug=false
  14466. ac_cs_recheck=false
  14467. ac_cs_silent=false
  14468. SHELL=\${CONFIG_SHELL-$SHELL}
  14469. export SHELL
  14470. _ASEOF
  14471. cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
  14472. ## -------------------- ##
  14473. ## M4sh Initialization. ##
  14474. ## -------------------- ##
  14475. # Be more Bourne compatible
  14476. DUALCASE=1; export DUALCASE # for MKS sh
  14477. if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
  14478. emulate sh
  14479. NULLCMD=:
  14480. # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
  14481. # is contrary to our usage. Disable this feature.
  14482. alias -g '${1+"$@"}'='"$@"'
  14483. setopt NO_GLOB_SUBST
  14484. else
  14485. case `(set -o) 2>/dev/null` in #(
  14486. *posix*) :
  14487. set -o posix ;; #(
  14488. *) :
  14489. ;;
  14490. esac
  14491. fi
  14492. as_nl='
  14493. '
  14494. export as_nl
  14495. # Printing a long string crashes Solaris 7 /usr/bin/printf.
  14496. as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
  14497. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
  14498. as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
  14499. # Prefer a ksh shell builtin over an external printf program on Solaris,
  14500. # but without wasting forks for bash or zsh.
  14501. if test -z "$BASH_VERSION$ZSH_VERSION" \
  14502. && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
  14503. as_echo='print -r --'
  14504. as_echo_n='print -rn --'
  14505. elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
  14506. as_echo='printf %s\n'
  14507. as_echo_n='printf %s'
  14508. else
  14509. if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
  14510. as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
  14511. as_echo_n='/usr/ucb/echo -n'
  14512. else
  14513. as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
  14514. as_echo_n_body='eval
  14515. arg=$1;
  14516. case $arg in #(
  14517. *"$as_nl"*)
  14518. expr "X$arg" : "X\\(.*\\)$as_nl";
  14519. arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
  14520. esac;
  14521. expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
  14522. '
  14523. export as_echo_n_body
  14524. as_echo_n='sh -c $as_echo_n_body as_echo'
  14525. fi
  14526. export as_echo_body
  14527. as_echo='sh -c $as_echo_body as_echo'
  14528. fi
  14529. # The user is always right.
  14530. if test "${PATH_SEPARATOR+set}" != set; then
  14531. PATH_SEPARATOR=:
  14532. (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
  14533. (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
  14534. PATH_SEPARATOR=';'
  14535. }
  14536. fi
  14537. # IFS
  14538. # We need space, tab and new line, in precisely that order. Quoting is
  14539. # there to prevent editors from complaining about space-tab.
  14540. # (If _AS_PATH_WALK were called with IFS unset, it would disable word
  14541. # splitting by setting IFS to empty value.)
  14542. IFS=" "" $as_nl"
  14543. # Find who we are. Look in the path if we contain no directory separator.
  14544. as_myself=
  14545. case $0 in #((
  14546. *[\\/]* ) as_myself=$0 ;;
  14547. *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
  14548. for as_dir in $PATH
  14549. do
  14550. IFS=$as_save_IFS
  14551. test -z "$as_dir" && as_dir=.
  14552. test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
  14553. done
  14554. IFS=$as_save_IFS
  14555. ;;
  14556. esac
  14557. # We did not find ourselves, most probably we were run as `sh COMMAND'
  14558. # in which case we are not to be found in the path.
  14559. if test "x$as_myself" = x; then
  14560. as_myself=$0
  14561. fi
  14562. if test ! -f "$as_myself"; then
  14563. $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
  14564. exit 1
  14565. fi
  14566. # Unset variables that we do not need and which cause bugs (e.g. in
  14567. # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
  14568. # suppresses any "Segmentation fault" message there. '((' could
  14569. # trigger a bug in pdksh 5.2.14.
  14570. for as_var in BASH_ENV ENV MAIL MAILPATH
  14571. do eval test x\${$as_var+set} = xset \
  14572. && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
  14573. done
  14574. PS1='$ '
  14575. PS2='> '
  14576. PS4='+ '
  14577. # NLS nuisances.
  14578. LC_ALL=C
  14579. export LC_ALL
  14580. LANGUAGE=C
  14581. export LANGUAGE
  14582. # CDPATH.
  14583. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14584. # as_fn_error STATUS ERROR [LINENO LOG_FD]
  14585. # ----------------------------------------
  14586. # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
  14587. # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
  14588. # script with STATUS, using 1 if that was 0.
  14589. as_fn_error ()
  14590. {
  14591. as_status=$1; test $as_status -eq 0 && as_status=1
  14592. if test "$4"; then
  14593. as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
  14594. $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
  14595. fi
  14596. $as_echo "$as_me: error: $2" >&2
  14597. as_fn_exit $as_status
  14598. } # as_fn_error
  14599. # as_fn_set_status STATUS
  14600. # -----------------------
  14601. # Set $? to STATUS, without forking.
  14602. as_fn_set_status ()
  14603. {
  14604. return $1
  14605. } # as_fn_set_status
  14606. # as_fn_exit STATUS
  14607. # -----------------
  14608. # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
  14609. as_fn_exit ()
  14610. {
  14611. set +e
  14612. as_fn_set_status $1
  14613. exit $1
  14614. } # as_fn_exit
  14615. # as_fn_unset VAR
  14616. # ---------------
  14617. # Portably unset VAR.
  14618. as_fn_unset ()
  14619. {
  14620. { eval $1=; unset $1;}
  14621. }
  14622. as_unset=as_fn_unset
  14623. # as_fn_append VAR VALUE
  14624. # ----------------------
  14625. # Append the text in VALUE to the end of the definition contained in VAR. Take
  14626. # advantage of any shell optimizations that allow amortized linear growth over
  14627. # repeated appends, instead of the typical quadratic growth present in naive
  14628. # implementations.
  14629. if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
  14630. eval 'as_fn_append ()
  14631. {
  14632. eval $1+=\$2
  14633. }'
  14634. else
  14635. as_fn_append ()
  14636. {
  14637. eval $1=\$$1\$2
  14638. }
  14639. fi # as_fn_append
  14640. # as_fn_arith ARG...
  14641. # ------------------
  14642. # Perform arithmetic evaluation on the ARGs, and store the result in the
  14643. # global $as_val. Take advantage of shells that can avoid forks. The arguments
  14644. # must be portable across $(()) and expr.
  14645. if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
  14646. eval 'as_fn_arith ()
  14647. {
  14648. as_val=$(( $* ))
  14649. }'
  14650. else
  14651. as_fn_arith ()
  14652. {
  14653. as_val=`expr "$@" || test $? -eq 1`
  14654. }
  14655. fi # as_fn_arith
  14656. if expr a : '\(a\)' >/dev/null 2>&1 &&
  14657. test "X`expr 00001 : '.*\(...\)'`" = X001; then
  14658. as_expr=expr
  14659. else
  14660. as_expr=false
  14661. fi
  14662. if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
  14663. as_basename=basename
  14664. else
  14665. as_basename=false
  14666. fi
  14667. if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
  14668. as_dirname=dirname
  14669. else
  14670. as_dirname=false
  14671. fi
  14672. as_me=`$as_basename -- "$0" ||
  14673. $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
  14674. X"$0" : 'X\(//\)$' \| \
  14675. X"$0" : 'X\(/\)' \| . 2>/dev/null ||
  14676. $as_echo X/"$0" |
  14677. sed '/^.*\/\([^/][^/]*\)\/*$/{
  14678. s//\1/
  14679. q
  14680. }
  14681. /^X\/\(\/\/\)$/{
  14682. s//\1/
  14683. q
  14684. }
  14685. /^X\/\(\/\).*/{
  14686. s//\1/
  14687. q
  14688. }
  14689. s/.*/./; q'`
  14690. # Avoid depending upon Character Ranges.
  14691. as_cr_letters='abcdefghijklmnopqrstuvwxyz'
  14692. as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
  14693. as_cr_Letters=$as_cr_letters$as_cr_LETTERS
  14694. as_cr_digits='0123456789'
  14695. as_cr_alnum=$as_cr_Letters$as_cr_digits
  14696. ECHO_C= ECHO_N= ECHO_T=
  14697. case `echo -n x` in #(((((
  14698. -n*)
  14699. case `echo 'xy\c'` in
  14700. *c*) ECHO_T=' ';; # ECHO_T is single tab character.
  14701. xy) ECHO_C='\c';;
  14702. *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
  14703. ECHO_T=' ';;
  14704. esac;;
  14705. *)
  14706. ECHO_N='-n';;
  14707. esac
  14708. rm -f conf$$ conf$$.exe conf$$.file
  14709. if test -d conf$$.dir; then
  14710. rm -f conf$$.dir/conf$$.file
  14711. else
  14712. rm -f conf$$.dir
  14713. mkdir conf$$.dir 2>/dev/null
  14714. fi
  14715. if (echo >conf$$.file) 2>/dev/null; then
  14716. if ln -s conf$$.file conf$$ 2>/dev/null; then
  14717. as_ln_s='ln -s'
  14718. # ... but there are two gotchas:
  14719. # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
  14720. # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
  14721. # In both cases, we have to default to `cp -pR'.
  14722. ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
  14723. as_ln_s='cp -pR'
  14724. elif ln conf$$.file conf$$ 2>/dev/null; then
  14725. as_ln_s=ln
  14726. else
  14727. as_ln_s='cp -pR'
  14728. fi
  14729. else
  14730. as_ln_s='cp -pR'
  14731. fi
  14732. rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
  14733. rmdir conf$$.dir 2>/dev/null
  14734. # as_fn_mkdir_p
  14735. # -------------
  14736. # Create "$as_dir" as a directory, including parents if necessary.
  14737. as_fn_mkdir_p ()
  14738. {
  14739. case $as_dir in #(
  14740. -*) as_dir=./$as_dir;;
  14741. esac
  14742. test -d "$as_dir" || eval $as_mkdir_p || {
  14743. as_dirs=
  14744. while :; do
  14745. case $as_dir in #(
  14746. *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
  14747. *) as_qdir=$as_dir;;
  14748. esac
  14749. as_dirs="'$as_qdir' $as_dirs"
  14750. as_dir=`$as_dirname -- "$as_dir" ||
  14751. $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  14752. X"$as_dir" : 'X\(//\)[^/]' \| \
  14753. X"$as_dir" : 'X\(//\)$' \| \
  14754. X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
  14755. $as_echo X"$as_dir" |
  14756. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  14757. s//\1/
  14758. q
  14759. }
  14760. /^X\(\/\/\)[^/].*/{
  14761. s//\1/
  14762. q
  14763. }
  14764. /^X\(\/\/\)$/{
  14765. s//\1/
  14766. q
  14767. }
  14768. /^X\(\/\).*/{
  14769. s//\1/
  14770. q
  14771. }
  14772. s/.*/./; q'`
  14773. test -d "$as_dir" && break
  14774. done
  14775. test -z "$as_dirs" || eval "mkdir $as_dirs"
  14776. } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
  14777. } # as_fn_mkdir_p
  14778. if mkdir -p . 2>/dev/null; then
  14779. as_mkdir_p='mkdir -p "$as_dir"'
  14780. else
  14781. test -d ./-p && rmdir ./-p
  14782. as_mkdir_p=false
  14783. fi
  14784. # as_fn_executable_p FILE
  14785. # -----------------------
  14786. # Test if FILE is an executable regular file.
  14787. as_fn_executable_p ()
  14788. {
  14789. test -f "$1" && test -x "$1"
  14790. } # as_fn_executable_p
  14791. as_test_x='test -x'
  14792. as_executable_p=as_fn_executable_p
  14793. # Sed expression to map a string onto a valid CPP name.
  14794. as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
  14795. # Sed expression to map a string onto a valid variable name.
  14796. as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
  14797. exec 6>&1
  14798. ## ----------------------------------- ##
  14799. ## Main body of $CONFIG_STATUS script. ##
  14800. ## ----------------------------------- ##
  14801. _ASEOF
  14802. test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
  14803. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14804. # Save the log message, to keep $0 and so on meaningful, and to
  14805. # report actual input values of CONFIG_FILES etc. instead of their
  14806. # values after options handling.
  14807. ac_log="
  14808. This file was extended by klish $as_me 1.5.6, which was
  14809. generated by GNU Autoconf 2.69. Invocation command line was
  14810. CONFIG_FILES = $CONFIG_FILES
  14811. CONFIG_HEADERS = $CONFIG_HEADERS
  14812. CONFIG_LINKS = $CONFIG_LINKS
  14813. CONFIG_COMMANDS = $CONFIG_COMMANDS
  14814. $ $0 $@
  14815. on `(hostname || uname -n) 2>/dev/null | sed 1q`
  14816. "
  14817. _ACEOF
  14818. case $ac_config_files in *"
  14819. "*) set x $ac_config_files; shift; ac_config_files=$*;;
  14820. esac
  14821. case $ac_config_headers in *"
  14822. "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
  14823. esac
  14824. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14825. # Files that config.status was made for.
  14826. config_files="$ac_config_files"
  14827. config_headers="$ac_config_headers"
  14828. config_commands="$ac_config_commands"
  14829. _ACEOF
  14830. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14831. ac_cs_usage="\
  14832. \`$as_me' instantiates files and other configuration actions
  14833. from templates according to the current configuration. Unless the files
  14834. and actions are specified as TAGs, all are instantiated by default.
  14835. Usage: $0 [OPTION]... [TAG]...
  14836. -h, --help print this help, then exit
  14837. -V, --version print version number and configuration settings, then exit
  14838. --config print configuration, then exit
  14839. -q, --quiet, --silent
  14840. do not print progress messages
  14841. -d, --debug don't remove temporary files
  14842. --recheck update $as_me by reconfiguring in the same conditions
  14843. --file=FILE[:TEMPLATE]
  14844. instantiate the configuration file FILE
  14845. --header=FILE[:TEMPLATE]
  14846. instantiate the configuration header FILE
  14847. Configuration files:
  14848. $config_files
  14849. Configuration headers:
  14850. $config_headers
  14851. Configuration commands:
  14852. $config_commands
  14853. Report bugs to <serj.kalichev at gmail dot com>."
  14854. _ACEOF
  14855. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14856. ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
  14857. ac_cs_version="\\
  14858. klish config.status 1.5.6
  14859. configured by $0, generated by GNU Autoconf 2.69,
  14860. with options \\"\$ac_cs_config\\"
  14861. Copyright (C) 2012 Free Software Foundation, Inc.
  14862. This config.status script is free software; the Free Software Foundation
  14863. gives unlimited permission to copy, distribute and modify it."
  14864. ac_pwd='$ac_pwd'
  14865. srcdir='$srcdir'
  14866. INSTALL='$INSTALL'
  14867. MKDIR_P='$MKDIR_P'
  14868. AWK='$AWK'
  14869. test -n "\$AWK" || AWK=awk
  14870. _ACEOF
  14871. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14872. # The default lists apply if the user does not specify any file.
  14873. ac_need_defaults=:
  14874. while test $# != 0
  14875. do
  14876. case $1 in
  14877. --*=?*)
  14878. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14879. ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
  14880. ac_shift=:
  14881. ;;
  14882. --*=)
  14883. ac_option=`expr "X$1" : 'X\([^=]*\)='`
  14884. ac_optarg=
  14885. ac_shift=:
  14886. ;;
  14887. *)
  14888. ac_option=$1
  14889. ac_optarg=$2
  14890. ac_shift=shift
  14891. ;;
  14892. esac
  14893. case $ac_option in
  14894. # Handling of the options.
  14895. -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
  14896. ac_cs_recheck=: ;;
  14897. --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
  14898. $as_echo "$ac_cs_version"; exit ;;
  14899. --config | --confi | --conf | --con | --co | --c )
  14900. $as_echo "$ac_cs_config"; exit ;;
  14901. --debug | --debu | --deb | --de | --d | -d )
  14902. debug=: ;;
  14903. --file | --fil | --fi | --f )
  14904. $ac_shift
  14905. case $ac_optarg in
  14906. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14907. '') as_fn_error $? "missing file argument" ;;
  14908. esac
  14909. as_fn_append CONFIG_FILES " '$ac_optarg'"
  14910. ac_need_defaults=false;;
  14911. --header | --heade | --head | --hea )
  14912. $ac_shift
  14913. case $ac_optarg in
  14914. *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
  14915. esac
  14916. as_fn_append CONFIG_HEADERS " '$ac_optarg'"
  14917. ac_need_defaults=false;;
  14918. --he | --h)
  14919. # Conflict between --help and --header
  14920. as_fn_error $? "ambiguous option: \`$1'
  14921. Try \`$0 --help' for more information.";;
  14922. --help | --hel | -h )
  14923. $as_echo "$ac_cs_usage"; exit ;;
  14924. -q | -quiet | --quiet | --quie | --qui | --qu | --q \
  14925. | -silent | --silent | --silen | --sile | --sil | --si | --s)
  14926. ac_cs_silent=: ;;
  14927. # This is an error.
  14928. -*) as_fn_error $? "unrecognized option: \`$1'
  14929. Try \`$0 --help' for more information." ;;
  14930. *) as_fn_append ac_config_targets " $1"
  14931. ac_need_defaults=false ;;
  14932. esac
  14933. shift
  14934. done
  14935. ac_configure_extra_args=
  14936. if $ac_cs_silent; then
  14937. exec 6>/dev/null
  14938. ac_configure_extra_args="$ac_configure_extra_args --silent"
  14939. fi
  14940. _ACEOF
  14941. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14942. if \$ac_cs_recheck; then
  14943. set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
  14944. shift
  14945. \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
  14946. CONFIG_SHELL='$SHELL'
  14947. export CONFIG_SHELL
  14948. exec "\$@"
  14949. fi
  14950. _ACEOF
  14951. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  14952. exec 5>>config.log
  14953. {
  14954. echo
  14955. sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
  14956. ## Running $as_me. ##
  14957. _ASBOX
  14958. $as_echo "$ac_log"
  14959. } >&5
  14960. _ACEOF
  14961. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  14962. #
  14963. # INIT-COMMANDS
  14964. #
  14965. # The HP-UX ksh and POSIX shell print the target directory to stdout
  14966. # if CDPATH is set.
  14967. (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
  14968. sed_quote_subst='$sed_quote_subst'
  14969. double_quote_subst='$double_quote_subst'
  14970. delay_variable_subst='$delay_variable_subst'
  14971. AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`'
  14972. DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
  14973. OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
  14974. macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
  14975. macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
  14976. enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
  14977. enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
  14978. pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
  14979. enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
  14980. SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
  14981. ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
  14982. PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
  14983. host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
  14984. host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
  14985. host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
  14986. build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
  14987. build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
  14988. build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
  14989. SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
  14990. Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
  14991. GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
  14992. EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
  14993. FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
  14994. LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
  14995. NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
  14996. LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
  14997. max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
  14998. ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
  14999. exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
  15000. lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
  15001. lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
  15002. lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
  15003. lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
  15004. lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
  15005. reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
  15006. reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
  15007. deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
  15008. file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
  15009. file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
  15010. want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
  15011. sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
  15012. AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
  15013. AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
  15014. archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
  15015. STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
  15016. RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
  15017. old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15018. old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15019. old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
  15020. lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
  15021. CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
  15022. CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
  15023. compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
  15024. GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
  15025. lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
  15026. lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
  15027. lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
  15028. 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"`'
  15029. nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
  15030. lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
  15031. objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
  15032. MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
  15033. lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
  15034. lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
  15035. lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
  15036. lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
  15037. lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
  15038. need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
  15039. MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
  15040. DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
  15041. NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
  15042. LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
  15043. OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
  15044. OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
  15045. libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
  15046. shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
  15047. extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15048. archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
  15049. enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
  15050. export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
  15051. whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
  15052. compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
  15053. old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
  15054. old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
  15055. archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
  15056. archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15057. module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
  15058. module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
  15059. with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
  15060. allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15061. no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
  15062. hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
  15063. hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
  15064. hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
  15065. hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
  15066. hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
  15067. hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15068. hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
  15069. inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
  15070. link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
  15071. always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
  15072. export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
  15073. exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
  15074. include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
  15075. prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
  15076. postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
  15077. file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
  15078. variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
  15079. need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
  15080. need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
  15081. version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
  15082. runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
  15083. shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
  15084. shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
  15085. libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
  15086. library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
  15087. soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
  15088. install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
  15089. postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
  15090. postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
  15091. finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
  15092. finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
  15093. hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
  15094. sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
  15095. sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
  15096. hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
  15097. enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
  15098. enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
  15099. enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
  15100. old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
  15101. striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
  15102. compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`'
  15103. predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`'
  15104. postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`'
  15105. predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`'
  15106. postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`'
  15107. compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`'
  15108. LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`'
  15109. reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15110. reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15111. old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15112. compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`'
  15113. GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`'
  15114. lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15115. lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`'
  15116. lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`'
  15117. lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`'
  15118. lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`'
  15119. archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`'
  15120. enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`'
  15121. export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15122. whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15123. compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`'
  15124. old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15125. old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15126. archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15127. archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15128. module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15129. module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15130. with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`'
  15131. allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15132. no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`'
  15133. hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15134. hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`'
  15135. hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`'
  15136. hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`'
  15137. hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`'
  15138. hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`'
  15139. hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`'
  15140. inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`'
  15141. link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`'
  15142. always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`'
  15143. export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15144. exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15145. include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`'
  15146. prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15147. postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`'
  15148. file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`'
  15149. hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`'
  15150. compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`'
  15151. predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15152. postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`'
  15153. predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`'
  15154. postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`'
  15155. compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`'
  15156. LTCC='$LTCC'
  15157. LTCFLAGS='$LTCFLAGS'
  15158. compiler='$compiler_DEFAULT'
  15159. # A function that is used when there is no print builtin or printf.
  15160. func_fallback_echo ()
  15161. {
  15162. eval 'cat <<_LTECHO_EOF
  15163. \$1
  15164. _LTECHO_EOF'
  15165. }
  15166. # Quote evaled strings.
  15167. for var in AS \
  15168. DLLTOOL \
  15169. OBJDUMP \
  15170. SHELL \
  15171. ECHO \
  15172. PATH_SEPARATOR \
  15173. SED \
  15174. GREP \
  15175. EGREP \
  15176. FGREP \
  15177. LD \
  15178. NM \
  15179. LN_S \
  15180. lt_SP2NL \
  15181. lt_NL2SP \
  15182. reload_flag \
  15183. deplibs_check_method \
  15184. file_magic_cmd \
  15185. file_magic_glob \
  15186. want_nocaseglob \
  15187. sharedlib_from_linklib_cmd \
  15188. AR \
  15189. AR_FLAGS \
  15190. archiver_list_spec \
  15191. STRIP \
  15192. RANLIB \
  15193. CC \
  15194. CFLAGS \
  15195. compiler \
  15196. lt_cv_sys_global_symbol_pipe \
  15197. lt_cv_sys_global_symbol_to_cdecl \
  15198. lt_cv_sys_global_symbol_to_c_name_address \
  15199. lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
  15200. nm_file_list_spec \
  15201. lt_prog_compiler_no_builtin_flag \
  15202. lt_prog_compiler_pic \
  15203. lt_prog_compiler_wl \
  15204. lt_prog_compiler_static \
  15205. lt_cv_prog_compiler_c_o \
  15206. need_locks \
  15207. MANIFEST_TOOL \
  15208. DSYMUTIL \
  15209. NMEDIT \
  15210. LIPO \
  15211. OTOOL \
  15212. OTOOL64 \
  15213. shrext_cmds \
  15214. export_dynamic_flag_spec \
  15215. whole_archive_flag_spec \
  15216. compiler_needs_object \
  15217. with_gnu_ld \
  15218. allow_undefined_flag \
  15219. no_undefined_flag \
  15220. hardcode_libdir_flag_spec \
  15221. hardcode_libdir_separator \
  15222. exclude_expsyms \
  15223. include_expsyms \
  15224. file_list_spec \
  15225. variables_saved_for_relink \
  15226. libname_spec \
  15227. library_names_spec \
  15228. soname_spec \
  15229. install_override_mode \
  15230. finish_eval \
  15231. old_striplib \
  15232. striplib \
  15233. compiler_lib_search_dirs \
  15234. predep_objects \
  15235. postdep_objects \
  15236. predeps \
  15237. postdeps \
  15238. compiler_lib_search_path \
  15239. LD_CXX \
  15240. reload_flag_CXX \
  15241. compiler_CXX \
  15242. lt_prog_compiler_no_builtin_flag_CXX \
  15243. lt_prog_compiler_pic_CXX \
  15244. lt_prog_compiler_wl_CXX \
  15245. lt_prog_compiler_static_CXX \
  15246. lt_cv_prog_compiler_c_o_CXX \
  15247. export_dynamic_flag_spec_CXX \
  15248. whole_archive_flag_spec_CXX \
  15249. compiler_needs_object_CXX \
  15250. with_gnu_ld_CXX \
  15251. allow_undefined_flag_CXX \
  15252. no_undefined_flag_CXX \
  15253. hardcode_libdir_flag_spec_CXX \
  15254. hardcode_libdir_separator_CXX \
  15255. exclude_expsyms_CXX \
  15256. include_expsyms_CXX \
  15257. file_list_spec_CXX \
  15258. compiler_lib_search_dirs_CXX \
  15259. predep_objects_CXX \
  15260. postdep_objects_CXX \
  15261. predeps_CXX \
  15262. postdeps_CXX \
  15263. compiler_lib_search_path_CXX; do
  15264. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15265. *[\\\\\\\`\\"\\\$]*)
  15266. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
  15267. ;;
  15268. *)
  15269. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15270. ;;
  15271. esac
  15272. done
  15273. # Double-quote double-evaled strings.
  15274. for var in reload_cmds \
  15275. old_postinstall_cmds \
  15276. old_postuninstall_cmds \
  15277. old_archive_cmds \
  15278. extract_expsyms_cmds \
  15279. old_archive_from_new_cmds \
  15280. old_archive_from_expsyms_cmds \
  15281. archive_cmds \
  15282. archive_expsym_cmds \
  15283. module_cmds \
  15284. module_expsym_cmds \
  15285. export_symbols_cmds \
  15286. prelink_cmds \
  15287. postlink_cmds \
  15288. postinstall_cmds \
  15289. postuninstall_cmds \
  15290. finish_cmds \
  15291. sys_lib_search_path_spec \
  15292. sys_lib_dlsearch_path_spec \
  15293. reload_cmds_CXX \
  15294. old_archive_cmds_CXX \
  15295. old_archive_from_new_cmds_CXX \
  15296. old_archive_from_expsyms_cmds_CXX \
  15297. archive_cmds_CXX \
  15298. archive_expsym_cmds_CXX \
  15299. module_cmds_CXX \
  15300. module_expsym_cmds_CXX \
  15301. export_symbols_cmds_CXX \
  15302. prelink_cmds_CXX \
  15303. postlink_cmds_CXX; do
  15304. case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
  15305. *[\\\\\\\`\\"\\\$]*)
  15306. eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
  15307. ;;
  15308. *)
  15309. eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
  15310. ;;
  15311. esac
  15312. done
  15313. ac_aux_dir='$ac_aux_dir'
  15314. xsi_shell='$xsi_shell'
  15315. lt_shell_append='$lt_shell_append'
  15316. # See if we are running on zsh, and set the options which allow our
  15317. # commands through without removal of \ escapes INIT.
  15318. if test -n "\${ZSH_VERSION+set}" ; then
  15319. setopt NO_GLOB_SUBST
  15320. fi
  15321. PACKAGE='$PACKAGE'
  15322. VERSION='$VERSION'
  15323. TIMESTAMP='$TIMESTAMP'
  15324. RM='$RM'
  15325. ofile='$ofile'
  15326. AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
  15327. _ACEOF
  15328. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15329. # Handling of arguments.
  15330. for ac_config_target in $ac_config_targets
  15331. do
  15332. case $ac_config_target in
  15333. "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
  15334. "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
  15335. "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
  15336. "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
  15337. *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
  15338. esac
  15339. done
  15340. # If the user did not use the arguments to specify the items to instantiate,
  15341. # then the envvar interface is used. Set only those that are not.
  15342. # We use the long form for the default assignment because of an extremely
  15343. # bizarre bug on SunOS 4.1.3.
  15344. if $ac_need_defaults; then
  15345. test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
  15346. test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
  15347. test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
  15348. fi
  15349. # Have a temporary directory for convenience. Make it in the build tree
  15350. # simply because there is no reason against having it here, and in addition,
  15351. # creating and moving files from /tmp can sometimes cause problems.
  15352. # Hook for its removal unless debugging.
  15353. # Note that there is a small window in which the directory will not be cleaned:
  15354. # after its creation but before its name has been assigned to `$tmp'.
  15355. $debug ||
  15356. {
  15357. tmp= ac_tmp=
  15358. trap 'exit_status=$?
  15359. : "${ac_tmp:=$tmp}"
  15360. { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
  15361. ' 0
  15362. trap 'as_fn_exit 1' 1 2 13 15
  15363. }
  15364. # Create a (secure) tmp directory for tmp files.
  15365. {
  15366. tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
  15367. test -d "$tmp"
  15368. } ||
  15369. {
  15370. tmp=./conf$$-$RANDOM
  15371. (umask 077 && mkdir "$tmp")
  15372. } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
  15373. ac_tmp=$tmp
  15374. # Set up the scripts for CONFIG_FILES section.
  15375. # No need to generate them if there are no CONFIG_FILES.
  15376. # This happens for instance with `./config.status config.h'.
  15377. if test -n "$CONFIG_FILES"; then
  15378. ac_cr=`echo X | tr X '\015'`
  15379. # On cygwin, bash can eat \r inside `` if the user requested igncr.
  15380. # But we know of no other shell where ac_cr would be empty at this
  15381. # point, so we can use a bashism as a fallback.
  15382. if test "x$ac_cr" = x; then
  15383. eval ac_cr=\$\'\\r\'
  15384. fi
  15385. ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
  15386. if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
  15387. ac_cs_awk_cr='\\r'
  15388. else
  15389. ac_cs_awk_cr=$ac_cr
  15390. fi
  15391. echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
  15392. _ACEOF
  15393. {
  15394. echo "cat >conf$$subs.awk <<_ACEOF" &&
  15395. echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
  15396. echo "_ACEOF"
  15397. } >conf$$subs.sh ||
  15398. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15399. ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
  15400. ac_delim='%!_!# '
  15401. for ac_last_try in false false false false false :; do
  15402. . ./conf$$subs.sh ||
  15403. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15404. ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
  15405. if test $ac_delim_n = $ac_delim_num; then
  15406. break
  15407. elif $ac_last_try; then
  15408. as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
  15409. else
  15410. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15411. fi
  15412. done
  15413. rm -f conf$$subs.sh
  15414. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15415. cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
  15416. _ACEOF
  15417. sed -n '
  15418. h
  15419. s/^/S["/; s/!.*/"]=/
  15420. p
  15421. g
  15422. s/^[^!]*!//
  15423. :repl
  15424. t repl
  15425. s/'"$ac_delim"'$//
  15426. t delim
  15427. :nl
  15428. h
  15429. s/\(.\{148\}\)..*/\1/
  15430. t more1
  15431. s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
  15432. p
  15433. n
  15434. b repl
  15435. :more1
  15436. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15437. p
  15438. g
  15439. s/.\{148\}//
  15440. t nl
  15441. :delim
  15442. h
  15443. s/\(.\{148\}\)..*/\1/
  15444. t more2
  15445. s/["\\]/\\&/g; s/^/"/; s/$/"/
  15446. p
  15447. b
  15448. :more2
  15449. s/["\\]/\\&/g; s/^/"/; s/$/"\\/
  15450. p
  15451. g
  15452. s/.\{148\}//
  15453. t delim
  15454. ' <conf$$subs.awk | sed '
  15455. /^[^""]/{
  15456. N
  15457. s/\n//
  15458. }
  15459. ' >>$CONFIG_STATUS || ac_write_fail=1
  15460. rm -f conf$$subs.awk
  15461. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15462. _ACAWK
  15463. cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
  15464. for (key in S) S_is_set[key] = 1
  15465. FS = ""
  15466. }
  15467. {
  15468. line = $ 0
  15469. nfields = split(line, field, "@")
  15470. substed = 0
  15471. len = length(field[1])
  15472. for (i = 2; i < nfields; i++) {
  15473. key = field[i]
  15474. keylen = length(key)
  15475. if (S_is_set[key]) {
  15476. value = S[key]
  15477. line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
  15478. len += length(value) + length(field[++i])
  15479. substed = 1
  15480. } else
  15481. len += 1 + keylen
  15482. }
  15483. print line
  15484. }
  15485. _ACAWK
  15486. _ACEOF
  15487. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15488. if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
  15489. sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
  15490. else
  15491. cat
  15492. fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
  15493. || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
  15494. _ACEOF
  15495. # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
  15496. # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
  15497. # trailing colons and then remove the whole line if VPATH becomes empty
  15498. # (actually we leave an empty line to preserve line numbers).
  15499. if test "x$srcdir" = x.; then
  15500. ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
  15501. h
  15502. s///
  15503. s/^/:/
  15504. s/[ ]*$/:/
  15505. s/:\$(srcdir):/:/g
  15506. s/:\${srcdir}:/:/g
  15507. s/:@srcdir@:/:/g
  15508. s/^:*//
  15509. s/:*$//
  15510. x
  15511. s/\(=[ ]*\).*/\1/
  15512. G
  15513. s/\n//
  15514. s/^[^=]*=[ ]*$//
  15515. }'
  15516. fi
  15517. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15518. fi # test -n "$CONFIG_FILES"
  15519. # Set up the scripts for CONFIG_HEADERS section.
  15520. # No need to generate them if there are no CONFIG_HEADERS.
  15521. # This happens for instance with `./config.status Makefile'.
  15522. if test -n "$CONFIG_HEADERS"; then
  15523. cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
  15524. BEGIN {
  15525. _ACEOF
  15526. # Transform confdefs.h into an awk script `defines.awk', embedded as
  15527. # here-document in config.status, that substitutes the proper values into
  15528. # config.h.in to produce config.h.
  15529. # Create a delimiter string that does not exist in confdefs.h, to ease
  15530. # handling of long lines.
  15531. ac_delim='%!_!# '
  15532. for ac_last_try in false false :; do
  15533. ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
  15534. if test -z "$ac_tt"; then
  15535. break
  15536. elif $ac_last_try; then
  15537. as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
  15538. else
  15539. ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
  15540. fi
  15541. done
  15542. # For the awk script, D is an array of macro values keyed by name,
  15543. # likewise P contains macro parameters if any. Preserve backslash
  15544. # newline sequences.
  15545. ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
  15546. sed -n '
  15547. s/.\{148\}/&'"$ac_delim"'/g
  15548. t rset
  15549. :rset
  15550. s/^[ ]*#[ ]*define[ ][ ]*/ /
  15551. t def
  15552. d
  15553. :def
  15554. s/\\$//
  15555. t bsnl
  15556. s/["\\]/\\&/g
  15557. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15558. D["\1"]=" \3"/p
  15559. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
  15560. d
  15561. :bsnl
  15562. s/["\\]/\\&/g
  15563. s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
  15564. D["\1"]=" \3\\\\\\n"\\/p
  15565. t cont
  15566. s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
  15567. t cont
  15568. d
  15569. :cont
  15570. n
  15571. s/.\{148\}/&'"$ac_delim"'/g
  15572. t clear
  15573. :clear
  15574. s/\\$//
  15575. t bsnlc
  15576. s/["\\]/\\&/g; s/^/"/; s/$/"/p
  15577. d
  15578. :bsnlc
  15579. s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
  15580. b cont
  15581. ' <confdefs.h | sed '
  15582. s/'"$ac_delim"'/"\\\
  15583. "/g' >>$CONFIG_STATUS || ac_write_fail=1
  15584. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15585. for (key in D) D_is_set[key] = 1
  15586. FS = ""
  15587. }
  15588. /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
  15589. line = \$ 0
  15590. split(line, arg, " ")
  15591. if (arg[1] == "#") {
  15592. defundef = arg[2]
  15593. mac1 = arg[3]
  15594. } else {
  15595. defundef = substr(arg[1], 2)
  15596. mac1 = arg[2]
  15597. }
  15598. split(mac1, mac2, "(") #)
  15599. macro = mac2[1]
  15600. prefix = substr(line, 1, index(line, defundef) - 1)
  15601. if (D_is_set[macro]) {
  15602. # Preserve the white space surrounding the "#".
  15603. print prefix "define", macro P[macro] D[macro]
  15604. next
  15605. } else {
  15606. # Replace #undef with comments. This is necessary, for example,
  15607. # in the case of _POSIX_SOURCE, which is predefined and required
  15608. # on some systems where configure will not decide to define it.
  15609. if (defundef == "undef") {
  15610. print "/*", prefix defundef, macro, "*/"
  15611. next
  15612. }
  15613. }
  15614. }
  15615. { print }
  15616. _ACAWK
  15617. _ACEOF
  15618. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15619. as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
  15620. fi # test -n "$CONFIG_HEADERS"
  15621. eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
  15622. shift
  15623. for ac_tag
  15624. do
  15625. case $ac_tag in
  15626. :[FHLC]) ac_mode=$ac_tag; continue;;
  15627. esac
  15628. case $ac_mode$ac_tag in
  15629. :[FHL]*:*);;
  15630. :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
  15631. :[FH]-) ac_tag=-:-;;
  15632. :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
  15633. esac
  15634. ac_save_IFS=$IFS
  15635. IFS=:
  15636. set x $ac_tag
  15637. IFS=$ac_save_IFS
  15638. shift
  15639. ac_file=$1
  15640. shift
  15641. case $ac_mode in
  15642. :L) ac_source=$1;;
  15643. :[FH])
  15644. ac_file_inputs=
  15645. for ac_f
  15646. do
  15647. case $ac_f in
  15648. -) ac_f="$ac_tmp/stdin";;
  15649. *) # Look for the file first in the build tree, then in the source tree
  15650. # (if the path is not absolute). The absolute path cannot be DOS-style,
  15651. # because $ac_f cannot contain `:'.
  15652. test -f "$ac_f" ||
  15653. case $ac_f in
  15654. [\\/$]*) false;;
  15655. *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
  15656. esac ||
  15657. as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
  15658. esac
  15659. case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
  15660. as_fn_append ac_file_inputs " '$ac_f'"
  15661. done
  15662. # Let's still pretend it is `configure' which instantiates (i.e., don't
  15663. # use $as_me), people would be surprised to read:
  15664. # /* config.h. Generated by config.status. */
  15665. configure_input='Generated from '`
  15666. $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
  15667. `' by configure.'
  15668. if test x"$ac_file" != x-; then
  15669. configure_input="$ac_file. $configure_input"
  15670. { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
  15671. $as_echo "$as_me: creating $ac_file" >&6;}
  15672. fi
  15673. # Neutralize special characters interpreted by sed in replacement strings.
  15674. case $configure_input in #(
  15675. *\&* | *\|* | *\\* )
  15676. ac_sed_conf_input=`$as_echo "$configure_input" |
  15677. sed 's/[\\\\&|]/\\\\&/g'`;; #(
  15678. *) ac_sed_conf_input=$configure_input;;
  15679. esac
  15680. case $ac_tag in
  15681. *:-:* | *:-) cat >"$ac_tmp/stdin" \
  15682. || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
  15683. esac
  15684. ;;
  15685. esac
  15686. ac_dir=`$as_dirname -- "$ac_file" ||
  15687. $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15688. X"$ac_file" : 'X\(//\)[^/]' \| \
  15689. X"$ac_file" : 'X\(//\)$' \| \
  15690. X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
  15691. $as_echo X"$ac_file" |
  15692. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15693. s//\1/
  15694. q
  15695. }
  15696. /^X\(\/\/\)[^/].*/{
  15697. s//\1/
  15698. q
  15699. }
  15700. /^X\(\/\/\)$/{
  15701. s//\1/
  15702. q
  15703. }
  15704. /^X\(\/\).*/{
  15705. s//\1/
  15706. q
  15707. }
  15708. s/.*/./; q'`
  15709. as_dir="$ac_dir"; as_fn_mkdir_p
  15710. ac_builddir=.
  15711. case "$ac_dir" in
  15712. .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15713. *)
  15714. ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
  15715. # A ".." for each directory in $ac_dir_suffix.
  15716. ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
  15717. case $ac_top_builddir_sub in
  15718. "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
  15719. *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
  15720. esac ;;
  15721. esac
  15722. ac_abs_top_builddir=$ac_pwd
  15723. ac_abs_builddir=$ac_pwd$ac_dir_suffix
  15724. # for backward compatibility:
  15725. ac_top_builddir=$ac_top_build_prefix
  15726. case $srcdir in
  15727. .) # We are building in place.
  15728. ac_srcdir=.
  15729. ac_top_srcdir=$ac_top_builddir_sub
  15730. ac_abs_top_srcdir=$ac_pwd ;;
  15731. [\\/]* | ?:[\\/]* ) # Absolute name.
  15732. ac_srcdir=$srcdir$ac_dir_suffix;
  15733. ac_top_srcdir=$srcdir
  15734. ac_abs_top_srcdir=$srcdir ;;
  15735. *) # Relative name.
  15736. ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
  15737. ac_top_srcdir=$ac_top_build_prefix$srcdir
  15738. ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
  15739. esac
  15740. ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
  15741. case $ac_mode in
  15742. :F)
  15743. #
  15744. # CONFIG_FILE
  15745. #
  15746. case $INSTALL in
  15747. [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
  15748. *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
  15749. esac
  15750. ac_MKDIR_P=$MKDIR_P
  15751. case $MKDIR_P in
  15752. [\\/$]* | ?:[\\/]* ) ;;
  15753. */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
  15754. esac
  15755. _ACEOF
  15756. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15757. # If the template does not know about datarootdir, expand it.
  15758. # FIXME: This hack should be removed a few years after 2.60.
  15759. ac_datarootdir_hack=; ac_datarootdir_seen=
  15760. ac_sed_dataroot='
  15761. /datarootdir/ {
  15762. p
  15763. q
  15764. }
  15765. /@datadir@/p
  15766. /@docdir@/p
  15767. /@infodir@/p
  15768. /@localedir@/p
  15769. /@mandir@/p'
  15770. case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
  15771. *datarootdir*) ac_datarootdir_seen=yes;;
  15772. *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
  15773. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
  15774. $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
  15775. _ACEOF
  15776. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15777. ac_datarootdir_hack='
  15778. s&@datadir@&$datadir&g
  15779. s&@docdir@&$docdir&g
  15780. s&@infodir@&$infodir&g
  15781. s&@localedir@&$localedir&g
  15782. s&@mandir@&$mandir&g
  15783. s&\\\${datarootdir}&$datarootdir&g' ;;
  15784. esac
  15785. _ACEOF
  15786. # Neutralize VPATH when `$srcdir' = `.'.
  15787. # Shell code in configure.ac might set extrasub.
  15788. # FIXME: do we really want to maintain this feature?
  15789. cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
  15790. ac_sed_extra="$ac_vpsub
  15791. $extrasub
  15792. _ACEOF
  15793. cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
  15794. :t
  15795. /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
  15796. s|@configure_input@|$ac_sed_conf_input|;t t
  15797. s&@top_builddir@&$ac_top_builddir_sub&;t t
  15798. s&@top_build_prefix@&$ac_top_build_prefix&;t t
  15799. s&@srcdir@&$ac_srcdir&;t t
  15800. s&@abs_srcdir@&$ac_abs_srcdir&;t t
  15801. s&@top_srcdir@&$ac_top_srcdir&;t t
  15802. s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
  15803. s&@builddir@&$ac_builddir&;t t
  15804. s&@abs_builddir@&$ac_abs_builddir&;t t
  15805. s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
  15806. s&@INSTALL@&$ac_INSTALL&;t t
  15807. s&@MKDIR_P@&$ac_MKDIR_P&;t t
  15808. $ac_datarootdir_hack
  15809. "
  15810. eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
  15811. >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15812. test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
  15813. { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
  15814. { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
  15815. "$ac_tmp/out"`; test -z "$ac_out"; } &&
  15816. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15817. which seems to be undefined. Please make sure it is defined" >&5
  15818. $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
  15819. which seems to be undefined. Please make sure it is defined" >&2;}
  15820. rm -f "$ac_tmp/stdin"
  15821. case $ac_file in
  15822. -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
  15823. *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
  15824. esac \
  15825. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15826. ;;
  15827. :H)
  15828. #
  15829. # CONFIG_HEADER
  15830. #
  15831. if test x"$ac_file" != x-; then
  15832. {
  15833. $as_echo "/* $configure_input */" \
  15834. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
  15835. } >"$ac_tmp/config.h" \
  15836. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15837. if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
  15838. { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
  15839. $as_echo "$as_me: $ac_file is unchanged" >&6;}
  15840. else
  15841. rm -f "$ac_file"
  15842. mv "$ac_tmp/config.h" "$ac_file" \
  15843. || as_fn_error $? "could not create $ac_file" "$LINENO" 5
  15844. fi
  15845. else
  15846. $as_echo "/* $configure_input */" \
  15847. && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
  15848. || as_fn_error $? "could not create -" "$LINENO" 5
  15849. fi
  15850. # Compute "$ac_file"'s index in $config_headers.
  15851. _am_arg="$ac_file"
  15852. _am_stamp_count=1
  15853. for _am_header in $config_headers :; do
  15854. case $_am_header in
  15855. $_am_arg | $_am_arg:* )
  15856. break ;;
  15857. * )
  15858. _am_stamp_count=`expr $_am_stamp_count + 1` ;;
  15859. esac
  15860. done
  15861. echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
  15862. $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  15863. X"$_am_arg" : 'X\(//\)[^/]' \| \
  15864. X"$_am_arg" : 'X\(//\)$' \| \
  15865. X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
  15866. $as_echo X"$_am_arg" |
  15867. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  15868. s//\1/
  15869. q
  15870. }
  15871. /^X\(\/\/\)[^/].*/{
  15872. s//\1/
  15873. q
  15874. }
  15875. /^X\(\/\/\)$/{
  15876. s//\1/
  15877. q
  15878. }
  15879. /^X\(\/\).*/{
  15880. s//\1/
  15881. q
  15882. }
  15883. s/.*/./; q'`/stamp-h$_am_stamp_count
  15884. ;;
  15885. :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
  15886. $as_echo "$as_me: executing $ac_file commands" >&6;}
  15887. ;;
  15888. esac
  15889. case $ac_file$ac_mode in
  15890. "libtool":C)
  15891. # See if we are running on zsh, and set the options which allow our
  15892. # commands through without removal of \ escapes.
  15893. if test -n "${ZSH_VERSION+set}" ; then
  15894. setopt NO_GLOB_SUBST
  15895. fi
  15896. cfgfile="${ofile}T"
  15897. trap "$RM \"$cfgfile\"; exit 1" 1 2 15
  15898. $RM "$cfgfile"
  15899. cat <<_LT_EOF >> "$cfgfile"
  15900. #! $SHELL
  15901. # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
  15902. # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
  15903. # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
  15904. # NOTE: Changes made to this file will be lost: look at ltmain.sh.
  15905. #
  15906. # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
  15907. # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
  15908. # Foundation, Inc.
  15909. # Written by Gordon Matzigkeit, 1996
  15910. #
  15911. # This file is part of GNU Libtool.
  15912. #
  15913. # GNU Libtool is free software; you can redistribute it and/or
  15914. # modify it under the terms of the GNU General Public License as
  15915. # published by the Free Software Foundation; either version 2 of
  15916. # the License, or (at your option) any later version.
  15917. #
  15918. # As a special exception to the GNU General Public License,
  15919. # if you distribute this file as part of a program or library that
  15920. # is built using GNU Libtool, you may include this file under the
  15921. # same distribution terms that you use for the rest of that program.
  15922. #
  15923. # GNU Libtool is distributed in the hope that it will be useful,
  15924. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  15925. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15926. # GNU General Public License for more details.
  15927. #
  15928. # You should have received a copy of the GNU General Public License
  15929. # along with GNU Libtool; see the file COPYING. If not, a copy
  15930. # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
  15931. # obtained by writing to the Free Software Foundation, Inc.,
  15932. # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  15933. # The names of the tagged configurations supported by this script.
  15934. available_tags="CXX "
  15935. # ### BEGIN LIBTOOL CONFIG
  15936. # Assembler program.
  15937. AS=$lt_AS
  15938. # DLL creation program.
  15939. DLLTOOL=$lt_DLLTOOL
  15940. # Object dumper program.
  15941. OBJDUMP=$lt_OBJDUMP
  15942. # Which release of libtool.m4 was used?
  15943. macro_version=$macro_version
  15944. macro_revision=$macro_revision
  15945. # Whether or not to build shared libraries.
  15946. build_libtool_libs=$enable_shared
  15947. # Whether or not to build static libraries.
  15948. build_old_libs=$enable_static
  15949. # What type of objects to build.
  15950. pic_mode=$pic_mode
  15951. # Whether or not to optimize for fast installation.
  15952. fast_install=$enable_fast_install
  15953. # Shell to use when invoking shell scripts.
  15954. SHELL=$lt_SHELL
  15955. # An echo program that protects backslashes.
  15956. ECHO=$lt_ECHO
  15957. # The PATH separator for the build system.
  15958. PATH_SEPARATOR=$lt_PATH_SEPARATOR
  15959. # The host system.
  15960. host_alias=$host_alias
  15961. host=$host
  15962. host_os=$host_os
  15963. # The build system.
  15964. build_alias=$build_alias
  15965. build=$build
  15966. build_os=$build_os
  15967. # A sed program that does not truncate output.
  15968. SED=$lt_SED
  15969. # Sed that helps us avoid accidentally triggering echo(1) options like -n.
  15970. Xsed="\$SED -e 1s/^X//"
  15971. # A grep program that handles long lines.
  15972. GREP=$lt_GREP
  15973. # An ERE matcher.
  15974. EGREP=$lt_EGREP
  15975. # A literal string matcher.
  15976. FGREP=$lt_FGREP
  15977. # A BSD- or MS-compatible name lister.
  15978. NM=$lt_NM
  15979. # Whether we need soft or hard links.
  15980. LN_S=$lt_LN_S
  15981. # What is the maximum length of a command?
  15982. max_cmd_len=$max_cmd_len
  15983. # Object file suffix (normally "o").
  15984. objext=$ac_objext
  15985. # Executable file suffix (normally "").
  15986. exeext=$exeext
  15987. # whether the shell understands "unset".
  15988. lt_unset=$lt_unset
  15989. # turn spaces into newlines.
  15990. SP2NL=$lt_lt_SP2NL
  15991. # turn newlines into spaces.
  15992. NL2SP=$lt_lt_NL2SP
  15993. # convert \$build file names to \$host format.
  15994. to_host_file_cmd=$lt_cv_to_host_file_cmd
  15995. # convert \$build files to toolchain format.
  15996. to_tool_file_cmd=$lt_cv_to_tool_file_cmd
  15997. # Method to check whether dependent libraries are shared objects.
  15998. deplibs_check_method=$lt_deplibs_check_method
  15999. # Command to use when deplibs_check_method = "file_magic".
  16000. file_magic_cmd=$lt_file_magic_cmd
  16001. # How to find potential files when deplibs_check_method = "file_magic".
  16002. file_magic_glob=$lt_file_magic_glob
  16003. # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
  16004. want_nocaseglob=$lt_want_nocaseglob
  16005. # Command to associate shared and link libraries.
  16006. sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
  16007. # The archiver.
  16008. AR=$lt_AR
  16009. # Flags to create an archive.
  16010. AR_FLAGS=$lt_AR_FLAGS
  16011. # How to feed a file listing to the archiver.
  16012. archiver_list_spec=$lt_archiver_list_spec
  16013. # A symbol stripping program.
  16014. STRIP=$lt_STRIP
  16015. # Commands used to install an old-style archive.
  16016. RANLIB=$lt_RANLIB
  16017. old_postinstall_cmds=$lt_old_postinstall_cmds
  16018. old_postuninstall_cmds=$lt_old_postuninstall_cmds
  16019. # Whether to use a lock for old archive extraction.
  16020. lock_old_archive_extraction=$lock_old_archive_extraction
  16021. # A C compiler.
  16022. LTCC=$lt_CC
  16023. # LTCC compiler flags.
  16024. LTCFLAGS=$lt_CFLAGS
  16025. # Take the output of nm and produce a listing of raw symbols and C names.
  16026. global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
  16027. # Transform the output of nm in a proper C declaration.
  16028. global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
  16029. # Transform the output of nm in a C name address pair.
  16030. global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
  16031. # Transform the output of nm in a C name address pair when lib prefix is needed.
  16032. global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
  16033. # Specify filename containing input files for \$NM.
  16034. nm_file_list_spec=$lt_nm_file_list_spec
  16035. # The root where to search for dependent libraries,and in which our libraries should be installed.
  16036. lt_sysroot=$lt_sysroot
  16037. # The name of the directory that contains temporary libtool files.
  16038. objdir=$objdir
  16039. # Used to examine libraries when file_magic_cmd begins with "file".
  16040. MAGIC_CMD=$MAGIC_CMD
  16041. # Must we lock files when doing compilation?
  16042. need_locks=$lt_need_locks
  16043. # Manifest tool.
  16044. MANIFEST_TOOL=$lt_MANIFEST_TOOL
  16045. # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
  16046. DSYMUTIL=$lt_DSYMUTIL
  16047. # Tool to change global to local symbols on Mac OS X.
  16048. NMEDIT=$lt_NMEDIT
  16049. # Tool to manipulate fat objects and archives on Mac OS X.
  16050. LIPO=$lt_LIPO
  16051. # ldd/readelf like tool for Mach-O binaries on Mac OS X.
  16052. OTOOL=$lt_OTOOL
  16053. # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
  16054. OTOOL64=$lt_OTOOL64
  16055. # Old archive suffix (normally "a").
  16056. libext=$libext
  16057. # Shared library suffix (normally ".so").
  16058. shrext_cmds=$lt_shrext_cmds
  16059. # The commands to extract the exported symbol list from a shared archive.
  16060. extract_expsyms_cmds=$lt_extract_expsyms_cmds
  16061. # Variables whose values should be saved in libtool wrapper scripts and
  16062. # restored at link time.
  16063. variables_saved_for_relink=$lt_variables_saved_for_relink
  16064. # Do we need the "lib" prefix for modules?
  16065. need_lib_prefix=$need_lib_prefix
  16066. # Do we need a version for libraries?
  16067. need_version=$need_version
  16068. # Library versioning type.
  16069. version_type=$version_type
  16070. # Shared library runtime path variable.
  16071. runpath_var=$runpath_var
  16072. # Shared library path variable.
  16073. shlibpath_var=$shlibpath_var
  16074. # Is shlibpath searched before the hard-coded library search path?
  16075. shlibpath_overrides_runpath=$shlibpath_overrides_runpath
  16076. # Format of library name prefix.
  16077. libname_spec=$lt_libname_spec
  16078. # List of archive names. First name is the real one, the rest are links.
  16079. # The last name is the one that the linker finds with -lNAME
  16080. library_names_spec=$lt_library_names_spec
  16081. # The coded name of the library, if different from the real name.
  16082. soname_spec=$lt_soname_spec
  16083. # Permission mode override for installation of shared libraries.
  16084. install_override_mode=$lt_install_override_mode
  16085. # Command to use after installation of a shared archive.
  16086. postinstall_cmds=$lt_postinstall_cmds
  16087. # Command to use after uninstallation of a shared archive.
  16088. postuninstall_cmds=$lt_postuninstall_cmds
  16089. # Commands used to finish a libtool library installation in a directory.
  16090. finish_cmds=$lt_finish_cmds
  16091. # As "finish_cmds", except a single script fragment to be evaled but
  16092. # not shown.
  16093. finish_eval=$lt_finish_eval
  16094. # Whether we should hardcode library paths into libraries.
  16095. hardcode_into_libs=$hardcode_into_libs
  16096. # Compile-time system search path for libraries.
  16097. sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
  16098. # Run-time system search path for libraries.
  16099. sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
  16100. # Whether dlopen is supported.
  16101. dlopen_support=$enable_dlopen
  16102. # Whether dlopen of programs is supported.
  16103. dlopen_self=$enable_dlopen_self
  16104. # Whether dlopen of statically linked programs is supported.
  16105. dlopen_self_static=$enable_dlopen_self_static
  16106. # Commands to strip libraries.
  16107. old_striplib=$lt_old_striplib
  16108. striplib=$lt_striplib
  16109. # The linker used to build libraries.
  16110. LD=$lt_LD
  16111. # How to create reloadable object files.
  16112. reload_flag=$lt_reload_flag
  16113. reload_cmds=$lt_reload_cmds
  16114. # Commands used to build an old-style archive.
  16115. old_archive_cmds=$lt_old_archive_cmds
  16116. # A language specific compiler.
  16117. CC=$lt_compiler
  16118. # Is the compiler the GNU compiler?
  16119. with_gcc=$GCC
  16120. # Compiler flag to turn off builtin functions.
  16121. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
  16122. # Additional compiler flags for building library objects.
  16123. pic_flag=$lt_lt_prog_compiler_pic
  16124. # How to pass a linker flag through the compiler.
  16125. wl=$lt_lt_prog_compiler_wl
  16126. # Compiler flag to prevent dynamic linking.
  16127. link_static_flag=$lt_lt_prog_compiler_static
  16128. # Does compiler simultaneously support -c and -o options?
  16129. compiler_c_o=$lt_lt_cv_prog_compiler_c_o
  16130. # Whether or not to add -lc for building shared libraries.
  16131. build_libtool_need_lc=$archive_cmds_need_lc
  16132. # Whether or not to disallow shared libs when runtime libs are static.
  16133. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
  16134. # Compiler flag to allow reflexive dlopens.
  16135. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
  16136. # Compiler flag to generate shared objects directly from archives.
  16137. whole_archive_flag_spec=$lt_whole_archive_flag_spec
  16138. # Whether the compiler copes with passing no objects directly.
  16139. compiler_needs_object=$lt_compiler_needs_object
  16140. # Create an old-style archive from a shared archive.
  16141. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
  16142. # Create a temporary old-style archive to link instead of a shared archive.
  16143. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
  16144. # Commands used to build a shared archive.
  16145. archive_cmds=$lt_archive_cmds
  16146. archive_expsym_cmds=$lt_archive_expsym_cmds
  16147. # Commands used to build a loadable module if different from building
  16148. # a shared archive.
  16149. module_cmds=$lt_module_cmds
  16150. module_expsym_cmds=$lt_module_expsym_cmds
  16151. # Whether we are building with GNU ld or not.
  16152. with_gnu_ld=$lt_with_gnu_ld
  16153. # Flag that allows shared libraries with undefined symbols to be built.
  16154. allow_undefined_flag=$lt_allow_undefined_flag
  16155. # Flag that enforces no undefined symbols.
  16156. no_undefined_flag=$lt_no_undefined_flag
  16157. # Flag to hardcode \$libdir into a binary during linking.
  16158. # This must work even if \$libdir does not exist
  16159. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
  16160. # Whether we need a single "-rpath" flag with a separated argument.
  16161. hardcode_libdir_separator=$lt_hardcode_libdir_separator
  16162. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16163. # DIR into the resulting binary.
  16164. hardcode_direct=$hardcode_direct
  16165. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16166. # DIR into the resulting binary and the resulting library dependency is
  16167. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16168. # library is relocated.
  16169. hardcode_direct_absolute=$hardcode_direct_absolute
  16170. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16171. # into the resulting binary.
  16172. hardcode_minus_L=$hardcode_minus_L
  16173. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16174. # into the resulting binary.
  16175. hardcode_shlibpath_var=$hardcode_shlibpath_var
  16176. # Set to "yes" if building a shared library automatically hardcodes DIR
  16177. # into the library and all subsequent libraries and executables linked
  16178. # against it.
  16179. hardcode_automatic=$hardcode_automatic
  16180. # Set to yes if linker adds runtime paths of dependent libraries
  16181. # to runtime path list.
  16182. inherit_rpath=$inherit_rpath
  16183. # Whether libtool must link a program against all its dependency libraries.
  16184. link_all_deplibs=$link_all_deplibs
  16185. # Set to "yes" if exported symbols are required.
  16186. always_export_symbols=$always_export_symbols
  16187. # The commands to list exported symbols.
  16188. export_symbols_cmds=$lt_export_symbols_cmds
  16189. # Symbols that should not be listed in the preloaded symbols.
  16190. exclude_expsyms=$lt_exclude_expsyms
  16191. # Symbols that must always be exported.
  16192. include_expsyms=$lt_include_expsyms
  16193. # Commands necessary for linking programs (against libraries) with templates.
  16194. prelink_cmds=$lt_prelink_cmds
  16195. # Commands necessary for finishing linking programs.
  16196. postlink_cmds=$lt_postlink_cmds
  16197. # Specify filename containing input files.
  16198. file_list_spec=$lt_file_list_spec
  16199. # How to hardcode a shared library path into an executable.
  16200. hardcode_action=$hardcode_action
  16201. # The directories searched by this compiler when creating a shared library.
  16202. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs
  16203. # Dependencies to place before and after the objects being linked to
  16204. # create a shared library.
  16205. predep_objects=$lt_predep_objects
  16206. postdep_objects=$lt_postdep_objects
  16207. predeps=$lt_predeps
  16208. postdeps=$lt_postdeps
  16209. # The library search path used internally by the compiler when linking
  16210. # a shared library.
  16211. compiler_lib_search_path=$lt_compiler_lib_search_path
  16212. # ### END LIBTOOL CONFIG
  16213. _LT_EOF
  16214. case $host_os in
  16215. aix3*)
  16216. cat <<\_LT_EOF >> "$cfgfile"
  16217. # AIX sometimes has problems with the GCC collect2 program. For some
  16218. # reason, if we set the COLLECT_NAMES environment variable, the problems
  16219. # vanish in a puff of smoke.
  16220. if test "X${COLLECT_NAMES+set}" != Xset; then
  16221. COLLECT_NAMES=
  16222. export COLLECT_NAMES
  16223. fi
  16224. _LT_EOF
  16225. ;;
  16226. esac
  16227. ltmain="$ac_aux_dir/ltmain.sh"
  16228. # We use sed instead of cat because bash on DJGPP gets confused if
  16229. # if finds mixed CR/LF and LF-only lines. Since sed operates in
  16230. # text mode, it properly converts lines to CR/LF. This bash problem
  16231. # is reportedly fixed, but why not run on old versions too?
  16232. sed '$q' "$ltmain" >> "$cfgfile" \
  16233. || (rm -f "$cfgfile"; exit 1)
  16234. if test x"$xsi_shell" = xyes; then
  16235. sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
  16236. func_dirname ()\
  16237. {\
  16238. \ case ${1} in\
  16239. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16240. \ * ) func_dirname_result="${3}" ;;\
  16241. \ esac\
  16242. } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
  16243. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16244. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16245. test 0 -eq $? || _lt_function_replace_fail=:
  16246. sed -e '/^func_basename ()$/,/^} # func_basename /c\
  16247. func_basename ()\
  16248. {\
  16249. \ func_basename_result="${1##*/}"\
  16250. } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16251. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16252. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16253. test 0 -eq $? || _lt_function_replace_fail=:
  16254. sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
  16255. func_dirname_and_basename ()\
  16256. {\
  16257. \ case ${1} in\
  16258. \ */*) func_dirname_result="${1%/*}${2}" ;;\
  16259. \ * ) func_dirname_result="${3}" ;;\
  16260. \ esac\
  16261. \ func_basename_result="${1##*/}"\
  16262. } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
  16263. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16264. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16265. test 0 -eq $? || _lt_function_replace_fail=:
  16266. sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
  16267. func_stripname ()\
  16268. {\
  16269. \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
  16270. \ # positional parameters, so assign one to ordinary parameter first.\
  16271. \ func_stripname_result=${3}\
  16272. \ func_stripname_result=${func_stripname_result#"${1}"}\
  16273. \ func_stripname_result=${func_stripname_result%"${2}"}\
  16274. } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
  16275. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16276. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16277. test 0 -eq $? || _lt_function_replace_fail=:
  16278. sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
  16279. func_split_long_opt ()\
  16280. {\
  16281. \ func_split_long_opt_name=${1%%=*}\
  16282. \ func_split_long_opt_arg=${1#*=}\
  16283. } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16284. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16285. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16286. test 0 -eq $? || _lt_function_replace_fail=:
  16287. sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
  16288. func_split_short_opt ()\
  16289. {\
  16290. \ func_split_short_opt_arg=${1#??}\
  16291. \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
  16292. } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
  16293. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16294. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16295. test 0 -eq $? || _lt_function_replace_fail=:
  16296. sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
  16297. func_lo2o ()\
  16298. {\
  16299. \ case ${1} in\
  16300. \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
  16301. \ *) func_lo2o_result=${1} ;;\
  16302. \ esac\
  16303. } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
  16304. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16305. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16306. test 0 -eq $? || _lt_function_replace_fail=:
  16307. sed -e '/^func_xform ()$/,/^} # func_xform /c\
  16308. func_xform ()\
  16309. {\
  16310. func_xform_result=${1%.*}.lo\
  16311. } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
  16312. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16313. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16314. test 0 -eq $? || _lt_function_replace_fail=:
  16315. sed -e '/^func_arith ()$/,/^} # func_arith /c\
  16316. func_arith ()\
  16317. {\
  16318. func_arith_result=$(( $* ))\
  16319. } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
  16320. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16321. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16322. test 0 -eq $? || _lt_function_replace_fail=:
  16323. sed -e '/^func_len ()$/,/^} # func_len /c\
  16324. func_len ()\
  16325. {\
  16326. func_len_result=${#1}\
  16327. } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
  16328. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16329. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16330. test 0 -eq $? || _lt_function_replace_fail=:
  16331. fi
  16332. if test x"$lt_shell_append" = xyes; then
  16333. sed -e '/^func_append ()$/,/^} # func_append /c\
  16334. func_append ()\
  16335. {\
  16336. eval "${1}+=\\${2}"\
  16337. } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
  16338. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16339. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16340. test 0 -eq $? || _lt_function_replace_fail=:
  16341. sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
  16342. func_append_quoted ()\
  16343. {\
  16344. \ func_quote_for_eval "${2}"\
  16345. \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
  16346. } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
  16347. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16348. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16349. test 0 -eq $? || _lt_function_replace_fail=:
  16350. # Save a `func_append' function call where possible by direct use of '+='
  16351. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
  16352. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16353. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16354. test 0 -eq $? || _lt_function_replace_fail=:
  16355. else
  16356. # Save a `func_append' function call even when '+=' is not available
  16357. sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
  16358. && mv -f "$cfgfile.tmp" "$cfgfile" \
  16359. || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
  16360. test 0 -eq $? || _lt_function_replace_fail=:
  16361. fi
  16362. if test x"$_lt_function_replace_fail" = x":"; then
  16363. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
  16364. $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
  16365. fi
  16366. mv -f "$cfgfile" "$ofile" ||
  16367. (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
  16368. chmod +x "$ofile"
  16369. cat <<_LT_EOF >> "$ofile"
  16370. # ### BEGIN LIBTOOL TAG CONFIG: CXX
  16371. # The linker used to build libraries.
  16372. LD=$lt_LD_CXX
  16373. # How to create reloadable object files.
  16374. reload_flag=$lt_reload_flag_CXX
  16375. reload_cmds=$lt_reload_cmds_CXX
  16376. # Commands used to build an old-style archive.
  16377. old_archive_cmds=$lt_old_archive_cmds_CXX
  16378. # A language specific compiler.
  16379. CC=$lt_compiler_CXX
  16380. # Is the compiler the GNU compiler?
  16381. with_gcc=$GCC_CXX
  16382. # Compiler flag to turn off builtin functions.
  16383. no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX
  16384. # Additional compiler flags for building library objects.
  16385. pic_flag=$lt_lt_prog_compiler_pic_CXX
  16386. # How to pass a linker flag through the compiler.
  16387. wl=$lt_lt_prog_compiler_wl_CXX
  16388. # Compiler flag to prevent dynamic linking.
  16389. link_static_flag=$lt_lt_prog_compiler_static_CXX
  16390. # Does compiler simultaneously support -c and -o options?
  16391. compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX
  16392. # Whether or not to add -lc for building shared libraries.
  16393. build_libtool_need_lc=$archive_cmds_need_lc_CXX
  16394. # Whether or not to disallow shared libs when runtime libs are static.
  16395. allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX
  16396. # Compiler flag to allow reflexive dlopens.
  16397. export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX
  16398. # Compiler flag to generate shared objects directly from archives.
  16399. whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX
  16400. # Whether the compiler copes with passing no objects directly.
  16401. compiler_needs_object=$lt_compiler_needs_object_CXX
  16402. # Create an old-style archive from a shared archive.
  16403. old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX
  16404. # Create a temporary old-style archive to link instead of a shared archive.
  16405. old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX
  16406. # Commands used to build a shared archive.
  16407. archive_cmds=$lt_archive_cmds_CXX
  16408. archive_expsym_cmds=$lt_archive_expsym_cmds_CXX
  16409. # Commands used to build a loadable module if different from building
  16410. # a shared archive.
  16411. module_cmds=$lt_module_cmds_CXX
  16412. module_expsym_cmds=$lt_module_expsym_cmds_CXX
  16413. # Whether we are building with GNU ld or not.
  16414. with_gnu_ld=$lt_with_gnu_ld_CXX
  16415. # Flag that allows shared libraries with undefined symbols to be built.
  16416. allow_undefined_flag=$lt_allow_undefined_flag_CXX
  16417. # Flag that enforces no undefined symbols.
  16418. no_undefined_flag=$lt_no_undefined_flag_CXX
  16419. # Flag to hardcode \$libdir into a binary during linking.
  16420. # This must work even if \$libdir does not exist
  16421. hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX
  16422. # Whether we need a single "-rpath" flag with a separated argument.
  16423. hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX
  16424. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16425. # DIR into the resulting binary.
  16426. hardcode_direct=$hardcode_direct_CXX
  16427. # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
  16428. # DIR into the resulting binary and the resulting library dependency is
  16429. # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
  16430. # library is relocated.
  16431. hardcode_direct_absolute=$hardcode_direct_absolute_CXX
  16432. # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
  16433. # into the resulting binary.
  16434. hardcode_minus_L=$hardcode_minus_L_CXX
  16435. # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
  16436. # into the resulting binary.
  16437. hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX
  16438. # Set to "yes" if building a shared library automatically hardcodes DIR
  16439. # into the library and all subsequent libraries and executables linked
  16440. # against it.
  16441. hardcode_automatic=$hardcode_automatic_CXX
  16442. # Set to yes if linker adds runtime paths of dependent libraries
  16443. # to runtime path list.
  16444. inherit_rpath=$inherit_rpath_CXX
  16445. # Whether libtool must link a program against all its dependency libraries.
  16446. link_all_deplibs=$link_all_deplibs_CXX
  16447. # Set to "yes" if exported symbols are required.
  16448. always_export_symbols=$always_export_symbols_CXX
  16449. # The commands to list exported symbols.
  16450. export_symbols_cmds=$lt_export_symbols_cmds_CXX
  16451. # Symbols that should not be listed in the preloaded symbols.
  16452. exclude_expsyms=$lt_exclude_expsyms_CXX
  16453. # Symbols that must always be exported.
  16454. include_expsyms=$lt_include_expsyms_CXX
  16455. # Commands necessary for linking programs (against libraries) with templates.
  16456. prelink_cmds=$lt_prelink_cmds_CXX
  16457. # Commands necessary for finishing linking programs.
  16458. postlink_cmds=$lt_postlink_cmds_CXX
  16459. # Specify filename containing input files.
  16460. file_list_spec=$lt_file_list_spec_CXX
  16461. # How to hardcode a shared library path into an executable.
  16462. hardcode_action=$hardcode_action_CXX
  16463. # The directories searched by this compiler when creating a shared library.
  16464. compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX
  16465. # Dependencies to place before and after the objects being linked to
  16466. # create a shared library.
  16467. predep_objects=$lt_predep_objects_CXX
  16468. postdep_objects=$lt_postdep_objects_CXX
  16469. predeps=$lt_predeps_CXX
  16470. postdeps=$lt_postdeps_CXX
  16471. # The library search path used internally by the compiler when linking
  16472. # a shared library.
  16473. compiler_lib_search_path=$lt_compiler_lib_search_path_CXX
  16474. # ### END LIBTOOL TAG CONFIG: CXX
  16475. _LT_EOF
  16476. ;;
  16477. "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
  16478. # Autoconf 2.62 quotes --file arguments for eval, but not when files
  16479. # are listed without --file. Let's play safe and only enable the eval
  16480. # if we detect the quoting.
  16481. case $CONFIG_FILES in
  16482. *\'*) eval set x "$CONFIG_FILES" ;;
  16483. *) set x $CONFIG_FILES ;;
  16484. esac
  16485. shift
  16486. for mf
  16487. do
  16488. # Strip MF so we end up with the name of the file.
  16489. mf=`echo "$mf" | sed -e 's/:.*$//'`
  16490. # Check whether this is an Automake generated Makefile or not.
  16491. # We used to match only the files named 'Makefile.in', but
  16492. # some people rename them; so instead we look at the file content.
  16493. # Grep'ing the first line is not enough: some people post-process
  16494. # each Makefile.in and add a new line on top of each file to say so.
  16495. # Grep'ing the whole file is not good either: AIX grep has a line
  16496. # limit of 2048, but all sed's we know have understand at least 4000.
  16497. if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
  16498. dirpart=`$as_dirname -- "$mf" ||
  16499. $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16500. X"$mf" : 'X\(//\)[^/]' \| \
  16501. X"$mf" : 'X\(//\)$' \| \
  16502. X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
  16503. $as_echo X"$mf" |
  16504. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16505. s//\1/
  16506. q
  16507. }
  16508. /^X\(\/\/\)[^/].*/{
  16509. s//\1/
  16510. q
  16511. }
  16512. /^X\(\/\/\)$/{
  16513. s//\1/
  16514. q
  16515. }
  16516. /^X\(\/\).*/{
  16517. s//\1/
  16518. q
  16519. }
  16520. s/.*/./; q'`
  16521. else
  16522. continue
  16523. fi
  16524. # Extract the definition of DEPDIR, am__include, and am__quote
  16525. # from the Makefile without running 'make'.
  16526. DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
  16527. test -z "$DEPDIR" && continue
  16528. am__include=`sed -n 's/^am__include = //p' < "$mf"`
  16529. test -z "am__include" && continue
  16530. am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
  16531. # Find all dependency output files, they are included files with
  16532. # $(DEPDIR) in their names. We invoke sed twice because it is the
  16533. # simplest approach to changing $(DEPDIR) to its actual value in the
  16534. # expansion.
  16535. for file in `sed -n "
  16536. s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
  16537. sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
  16538. # Make sure the directory exists.
  16539. test -f "$dirpart/$file" && continue
  16540. fdir=`$as_dirname -- "$file" ||
  16541. $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
  16542. X"$file" : 'X\(//\)[^/]' \| \
  16543. X"$file" : 'X\(//\)$' \| \
  16544. X"$file" : 'X\(/\)' \| . 2>/dev/null ||
  16545. $as_echo X"$file" |
  16546. sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
  16547. s//\1/
  16548. q
  16549. }
  16550. /^X\(\/\/\)[^/].*/{
  16551. s//\1/
  16552. q
  16553. }
  16554. /^X\(\/\/\)$/{
  16555. s//\1/
  16556. q
  16557. }
  16558. /^X\(\/\).*/{
  16559. s//\1/
  16560. q
  16561. }
  16562. s/.*/./; q'`
  16563. as_dir=$dirpart/$fdir; as_fn_mkdir_p
  16564. # echo "creating $dirpart/$file"
  16565. echo '# dummy' > "$dirpart/$file"
  16566. done
  16567. done
  16568. }
  16569. ;;
  16570. esac
  16571. done # for ac_tag
  16572. as_fn_exit 0
  16573. _ACEOF
  16574. ac_clean_files=$ac_clean_files_save
  16575. test $ac_write_fail = 0 ||
  16576. as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
  16577. # configure is writing to config.log, and then calls config.status.
  16578. # config.status does its own redirection, appending to config.log.
  16579. # Unfortunately, on DOS this fails, as config.log is still kept open
  16580. # by configure, so config.status won't be able to write to it; its
  16581. # output is simply discarded. So we exec the FD to /dev/null,
  16582. # effectively closing config.log, so it can be properly (re)opened and
  16583. # appended to by config.status. When coming back to configure, we
  16584. # need to make the FD available again.
  16585. if test "$no_create" != yes; then
  16586. ac_cs_success=:
  16587. ac_config_status_args=
  16588. test "$silent" = yes &&
  16589. ac_config_status_args="$ac_config_status_args --quiet"
  16590. exec 5>/dev/null
  16591. $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
  16592. exec 5>>config.log
  16593. # Use ||, not &&, to avoid exiting from the if with $? = 1, which
  16594. # would make configure fail if this is the last instruction.
  16595. $ac_cs_success || as_fn_exit 1
  16596. fi
  16597. if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
  16598. { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
  16599. $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
  16600. fi